Version Description
- 2020-02-12 =
- Styling improvements on mobile mode.
- Added the functionality of theme picker on Code-Generator and WordPress plugin.
- Added the option to set the system language.
- Revamped styling/functionality of chat rating on Standalone - No 3CX mode.
- Disabled maximize video button on not supported devices.
- Enabled the configuration of text on more functional areas.
- Enabled phone-only mode on Code-Generator.
- Updated to show only the agent's first name after taking the ownership on 3CX mode.
- Added the support of CDN on Code-Generator.
- Added New badge on Standalone - No 3CX mode for incoming chats.
- Added the logic to adapt chat messages text color based on background color.
- Enabled the configuration of images on Code-Generator.
- Enabled the option to disable offline functionality on Code-Generator.
- Refreshed translations.
- Security Fixes.
- Fixed issue with typing indicator on 3CX mode.
- Fixed issue with space not working in case that themes/plugins use smooth scrolling.
- Fixed issue with default agent image not being svg.
- Fixed issue with popout configuration for mobile mode.
- Fixed issue with passing parameters on popout window.
- Fixed issue with multisite WordPress installation.
- Fixed issue with special characters on chat window.
- Fixed issue not showing ending message in case that session terminated
- Prevent reloading the popped-out window by clicking on the minimized chat bubble.
- Fixed issue not showing exception in case of a non-valid attachment uploaded by the visitor.
Download this release
Release Info
Developer | wpdev3cx |
Plugin | WP Live Chat Support |
Version | 9.3.0 |
Comparing to | |
See all releases |
Code changes from version 9.2.1 to 9.3.0
- ajax/user.php +2 -2
- changelog.txt +27 -0
- components/theme_picker/js/theme_picker.js +143 -0
- components/theme_picker/theme_picker.css +93 -0
- components/theme_picker/theme_picker.php +87 -0
- config.php +1 -1
- css/vendor/bootstrap/{wplc_bootstrap_9_2_1.css → wplc_bootstrap_9_3_0.css} +0 -0
- images/svgs/angry.svg +1 -0
- images/svgs/frown.svg +1 -0
- images/svgs/grin.svg +1 -0
- images/svgs/meh.svg +1 -0
- images/svgs/smile.svg +1 -0
- images/vi_avatar.png +0 -0
- includes/data_access/chat_data.php +2 -1
- includes/data_access/chat_rating_data.php +1 -0
- includes/helpers/chat_helper.php +1 -0
- includes/helpers/chat_rating_helper.php +21 -23
- includes/helpers/theme_helper.php +16 -4
- includes/helpers/utils_helper.php +50 -27
- includes/models/session.php +23 -13
- includes/models/settings.php +59 -21
- includes/models/theme.php +42 -1
- includes/wplc_activator.php +1 -4
- includes/wplc_updater.php +10 -3
- js/wplc_utils.js +0 -1
- modules/activation_wizard/activation_wizard_controller.php +84 -74
- modules/activation_wizard/activation_wizard_page.php +7 -0
- modules/activation_wizard/activation_wizard_style.css +112 -23
- modules/activation_wizard/js/activation_wizard.js +122 -25
- modules/activation_wizard/wizard_partials/style_settings.php +16 -48
- modules/agent_chat/agent_chat_style.css +38 -23
- modules/agent_chat/agent_chat_view.php +1 -0
- modules/agent_chat/js/agent_chat.js +42 -10
- modules/agent_chat/js/agent_chat_chatbox.js +52 -25
- modules/agent_chat/js/mcu_websocket.js +11 -0
- modules/chat_client/chat_client_controller.php +5 -17
- modules/chat_client/chat_client_page.php +8 -8
- modules/chat_client/chat_client_view.php +10 -5
- modules/chat_client/js/callus.js +4 -5
ajax/user.php
CHANGED
@@ -347,7 +347,6 @@ function wplc_validate_user_call( $check_id = true ) {
|
|
347 |
die( TCXChatAjaxResponse::error_ajax_respose( "Wrong Chat id" ) );
|
348 |
}
|
349 |
}
|
350 |
-
|
351 |
return $cid;
|
352 |
}
|
353 |
|
@@ -419,8 +418,9 @@ function wplc_upload_file() {
|
|
419 |
function wplc_rate_chat() {
|
420 |
$cid = sanitize_text_field( $_POST['cid'] );
|
421 |
$rating_score = sanitize_text_field( $_POST['rate'] );
|
|
|
422 |
|
423 |
-
if ( TCXChatRatingHelper::set_chat_rating( $cid, $rating_score ) !== false ) {
|
424 |
die( TCXChatAjaxResponse::success_ajax_respose( array( 'cid' => $cid ) ) );
|
425 |
} else {
|
426 |
die( TCXChatAjaxResponse::error_ajax_respose( "There was an error sending your chat rating. Please contact support" ) );
|
347 |
die( TCXChatAjaxResponse::error_ajax_respose( "Wrong Chat id" ) );
|
348 |
}
|
349 |
}
|
|
|
350 |
return $cid;
|
351 |
}
|
352 |
|
418 |
function wplc_rate_chat() {
|
419 |
$cid = sanitize_text_field( $_POST['cid'] );
|
420 |
$rating_score = sanitize_text_field( $_POST['rate'] );
|
421 |
+
$rating_comments = sanitize_text_field( $_POST['comments'] );
|
422 |
|
423 |
+
if ( TCXChatRatingHelper::set_chat_rating( $cid, $rating_score,$rating_comments ) !== false ) {
|
424 |
die( TCXChatAjaxResponse::success_ajax_respose( array( 'cid' => $cid ) ) );
|
425 |
} else {
|
426 |
die( TCXChatAjaxResponse::error_ajax_respose( "There was an error sending your chat rating. Please contact support" ) );
|
changelog.txt
CHANGED
@@ -1,3 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
= 9.2.1 - 2020-12-23 =
|
2 |
* Adjusted default popout behavior on 3CX mode.
|
3 |
* Fixed “New Message” tab notification to be shown only after the visitor engaged on chat.
|
1 |
+
= 9.3.0 - 2020-02-12 =
|
2 |
+
* Styling improvements on mobile mode.
|
3 |
+
* Added the functionality of theme picker on Code-Generator and WordPress plugin.
|
4 |
+
* Added the option to set the system language.
|
5 |
+
* Revamped styling/functionality of chat rating on “Standalone - No 3CX” mode.
|
6 |
+
* Disabled maximize video button on not supported devices.
|
7 |
+
* Enabled the configuration of text on more functional areas.
|
8 |
+
* Enabled phone-only mode on Code-Generator.
|
9 |
+
* Updated to show only the agent's first name after taking the ownership on 3CX mode.
|
10 |
+
* Added the support of CDN on Code-Generator.
|
11 |
+
* Added “New” badge on “Standalone - No 3CX” mode for incoming chats.
|
12 |
+
* Added the logic to adapt chat messages text color based on background color.
|
13 |
+
* Enabled the configuration of images on Code-Generator.
|
14 |
+
* Enabled the option to disable offline functionality on Code-Generator.
|
15 |
+
* Refreshed translations.
|
16 |
+
* Security Fixes.
|
17 |
+
* Fixed issue with typing indicator on 3CX mode.
|
18 |
+
* Fixed issue with space not working in case that themes/plugins use smooth scrolling.
|
19 |
+
* Fixed issue with default agent image not being svg.
|
20 |
+
* Fixed issue with popout configuration for mobile mode.
|
21 |
+
* Fixed issue with passing parameters on popout window.
|
22 |
+
* Fixed issue with multisite WordPress installation.
|
23 |
+
* Fixed issue with special characters on chat window.
|
24 |
+
* Fixed issue not showing ending message in case that session terminated
|
25 |
+
* Prevent reloading the popped-out window by clicking on the minimized chat bubble.
|
26 |
+
* Fixed issue not showing exception in case of a non-valid attachment uploaded by the visitor.
|
27 |
+
|
28 |
= 9.2.1 - 2020-12-23 =
|
29 |
* Adjusted default popout behavior on 3CX mode.
|
30 |
* Fixed “New Message” tab notification to be shown only after the visitor engaged on chat.
|
components/theme_picker/js/theme_picker.js
ADDED
@@ -0,0 +1,143 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery(document).ready(function () {
|
2 |
+
|
3 |
+
jQuery("#wplc_theme_picker_component").trigger("theme_picker-loaded");
|
4 |
+
|
5 |
+
jQuery('input[type=radio][name=wplc_theme]').change(function () {
|
6 |
+
onThemeSelection(jQuery(this));
|
7 |
+
});
|
8 |
+
|
9 |
+
jQuery(".wplc_style_colorpicker_input").focusout(function () {
|
10 |
+
jQuery("#color_picker").hide();
|
11 |
+
});
|
12 |
+
|
13 |
+
jQuery('#wplc_custom_theme .wplc_style_colorpicker').click(function () {
|
14 |
+
if (jQuery('input[type=radio][name=wplc_theme]:checked').val() === 'custom') {
|
15 |
+
//set the selected color on color picker based
|
16 |
+
var selected_color = jQuery(this).data("color");
|
17 |
+
jQuery(".wplc_style_colorpicker_input").val(selected_color);
|
18 |
+
|
19 |
+
jQuery("#color_picker").data("color_id", this.id);
|
20 |
+
jQuery("#color_picker").show();
|
21 |
+
set_selected_colorpicker(this.id);
|
22 |
+
setTimeout(function () {
|
23 |
+
//if not in timeout click event get executed before the .show() completion and picker appears in wrong position
|
24 |
+
//because it's position is relative to #color_picker element
|
25 |
+
jQuery(".wplc_style_colorpicker_input").click();
|
26 |
+
}, 50);
|
27 |
+
}
|
28 |
+
});
|
29 |
+
|
30 |
+
jQuery('.wplc_style_colorpicker_input').change(function () {
|
31 |
+
jQuery("#color_picker").hide();
|
32 |
+
});
|
33 |
+
|
34 |
+
jQuery('.wplc_style_colorpicker_input').on("input", function () {
|
35 |
+
var input_id = jQuery("#color_picker").data("color_id");
|
36 |
+
jQuery("#" + input_id).css("background-color", jQuery(this).val());
|
37 |
+
jQuery("#" + input_id).data("color", jQuery(this).val());
|
38 |
+
jQuery(".wplc_pallet_color[data-color_id=" + input_id + "] input.wplc_style_colorpicker_value").val(jQuery(this).val());
|
39 |
+
jQuery('#wplc_theme_picker_component').trigger('theme_picker-color-input', {
|
40 |
+
selectedTheme: 'custom',
|
41 |
+
color: jQuery(this).val(),
|
42 |
+
changedColor:input_id
|
43 |
+
});
|
44 |
+
});
|
45 |
+
|
46 |
+
jQuery(".wplc_theme").on("click",function(e){
|
47 |
+
if (!jQuery(e.target).is('input[type=radio][name=wplc_theme]')) {
|
48 |
+
const themeRadioElement = jQuery(this).find('input[type=radio][name=wplc_theme]');
|
49 |
+
if (themeRadioElement && !themeRadioElement.is(':checked')) {
|
50 |
+
themeRadioElement.click();
|
51 |
+
onThemeSelection(themeRadioElement);
|
52 |
+
if (jQuery(e.target).is("#wplc_custom_theme .wplc_style_colorpicker")) {
|
53 |
+
jQuery(e.target).click();
|
54 |
+
}
|
55 |
+
}
|
56 |
+
}
|
57 |
+
});
|
58 |
+
});
|
59 |
+
|
60 |
+
function onThemeSelection(selectedTheme){
|
61 |
+
var selection = selectedTheme.val();
|
62 |
+
|
63 |
+
var themeBaseColorPicker = jQuery(".wplc_pallet[data-pallet_name="+selection+"] .wplc_pallet_color .wplc_pallet_base_color");
|
64 |
+
var baseColor = '#000000';
|
65 |
+
if(themeBaseColorPicker!==undefined)
|
66 |
+
{
|
67 |
+
baseColor = themeBaseColorPicker.data("color");
|
68 |
+
}
|
69 |
+
|
70 |
+
jQuery('#wplc_theme_picker_component').trigger('theme_picker-color-input', {
|
71 |
+
selectedTheme: selection,
|
72 |
+
color: baseColor,
|
73 |
+
changedColor:'base_color'
|
74 |
+
});
|
75 |
+
if (selection === 'custom') {
|
76 |
+
set_selected_colorpicker("base_color");
|
77 |
+
} else {
|
78 |
+
set_selected_colorpicker("none");
|
79 |
+
jQuery("#wplc_picker_header").html('');
|
80 |
+
}
|
81 |
+
}
|
82 |
+
|
83 |
+
function mapPickerAlias(pickerAlias) {
|
84 |
+
var result = '';
|
85 |
+
switch (pickerAlias) {
|
86 |
+
case 'base_color':
|
87 |
+
result = 'Base';
|
88 |
+
break;
|
89 |
+
case 'buttons_color':
|
90 |
+
result = 'Buttons';
|
91 |
+
break;
|
92 |
+
case 'client_color':
|
93 |
+
result = 'Visitor Chat';
|
94 |
+
break;
|
95 |
+
case 'agent_color':
|
96 |
+
result = 'Agent Chat';
|
97 |
+
break;
|
98 |
+
default:
|
99 |
+
break;
|
100 |
+
}
|
101 |
+
return result;
|
102 |
+
}
|
103 |
+
|
104 |
+
function mapPickerHeaderPosition(pickerAlias) {
|
105 |
+
var result = '';
|
106 |
+
switch (pickerAlias) {
|
107 |
+
case 'base_color':
|
108 |
+
result = '0px';
|
109 |
+
break;
|
110 |
+
case 'buttons_color':
|
111 |
+
result = '34px';
|
112 |
+
break;
|
113 |
+
case 'agent_color':
|
114 |
+
result = '65px';
|
115 |
+
break;
|
116 |
+
case 'client_color':
|
117 |
+
result = '106px';
|
118 |
+
break;
|
119 |
+
default:
|
120 |
+
break;
|
121 |
+
}
|
122 |
+
return result;
|
123 |
+
}
|
124 |
+
|
125 |
+
function set_selected_colorpicker(pickerId) {
|
126 |
+
var picker_header = mapPickerAlias(pickerId);
|
127 |
+
var picker_header_left_shift = mapPickerHeaderPosition(pickerId);
|
128 |
+
jQuery("#wplc_picker_header").html(picker_header);
|
129 |
+
jQuery("#wplc_picker_header").css("left",picker_header_left_shift);
|
130 |
+
|
131 |
+
var colorpickerBorders = jQuery(".wplc_pallet[data-pallet_name='custom'] .wplc_pallet_color .wplc_colorpicker_border");
|
132 |
+
colorpickerBorders.removeClass("wplc_selected_border");
|
133 |
+
colorpickerBorders.addClass("wplc_no_border");
|
134 |
+
var selectedColorpickerBorder = jQuery(".wplc_pallet[data-pallet_name='custom'] .wplc_pallet_color[data-color_id='" + pickerId + "'] .wplc_colorpicker_border");
|
135 |
+
selectedColorpickerBorder.removeClass("wplc_no_border");
|
136 |
+
selectedColorpickerBorder.addClass("wplc_selected_border");
|
137 |
+
var colorpickers = jQuery(".wplc_pallet[data-pallet_name='custom'] .wplc_style_colorpicker");
|
138 |
+
colorpickers.removeClass("wplc_selected_colorpicker");
|
139 |
+
colorpickers.addClass("wplc_default_colorpicker");
|
140 |
+
var selectedColorpicker = jQuery(".wplc_pallet[data-pallet_name='custom'] .wplc_pallet_color[data-color_id='" + pickerId + "'] .wplc_colorpicker_border .wplc_style_colorpicker");
|
141 |
+
selectedColorpicker.addClass("wplc_selected_colorpicker");
|
142 |
+
selectedColorpicker.removeClass("wplc_default_colorpicker");
|
143 |
+
}
|
components/theme_picker/theme_picker.css
ADDED
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.wplc_theme{
|
2 |
+
width:fit-content;
|
3 |
+
margin-bottom:15px;
|
4 |
+
cursor:pointer;
|
5 |
+
}
|
6 |
+
|
7 |
+
.wplc_theme_chooser_container{
|
8 |
+
justify-content: space-evenly !important;
|
9 |
+
}
|
10 |
+
|
11 |
+
#wplc_custom_theme .wplc_pallet {
|
12 |
+
margin-bottom: 10px;
|
13 |
+
}
|
14 |
+
|
15 |
+
.wplc_pallet {
|
16 |
+
display: flex;
|
17 |
+
flex-direction: row;
|
18 |
+
align-items: center;
|
19 |
+
justify-content: flex-start;
|
20 |
+
position: relative;
|
21 |
+
min-height: 40px;
|
22 |
+
}
|
23 |
+
|
24 |
+
.wplc_pallet_color {
|
25 |
+
margin-right: 13px;
|
26 |
+
}
|
27 |
+
|
28 |
+
.wplc_colorpicker_border {
|
29 |
+
border-radius: 50%;
|
30 |
+
}
|
31 |
+
|
32 |
+
.wplc_no_border {
|
33 |
+
border-style: none;
|
34 |
+
padding: 0px;
|
35 |
+
}
|
36 |
+
|
37 |
+
.wplc_selected_border {
|
38 |
+
transition: .2s;
|
39 |
+
transform: scale(1.1);
|
40 |
+
box-shadow: 0 0 0 4px rgba(0, 0, 0, .2);
|
41 |
+
}
|
42 |
+
|
43 |
+
.wplc_selected_colorpicker {
|
44 |
+
width: 30px;
|
45 |
+
height: 30px;
|
46 |
+
}
|
47 |
+
|
48 |
+
.wplc_default_colorpicker {
|
49 |
+
width: 30px;
|
50 |
+
height: 30px;
|
51 |
+
}
|
52 |
+
|
53 |
+
#wplc_custom_theme .wplc_style_colorpicker {
|
54 |
+
cursor: pointer;
|
55 |
+
}
|
56 |
+
|
57 |
+
.wplc_style_colorpicker {
|
58 |
+
border-radius: 50%;
|
59 |
+
}
|
60 |
+
|
61 |
+
.wplc_colorpicker_label {
|
62 |
+
font-weight: 500;
|
63 |
+
}
|
64 |
+
|
65 |
+
.wplc_style_colorpicker_input {
|
66 |
+
width: 0px;
|
67 |
+
height: 0px;
|
68 |
+
position: absolute;
|
69 |
+
top: 22px;
|
70 |
+
left: 35px;
|
71 |
+
z-index: -1;
|
72 |
+
opacity: 0;
|
73 |
+
}
|
74 |
+
|
75 |
+
.wplc_chat_preview,
|
76 |
+
.wplc_colorpickers {
|
77 |
+
display: flex;
|
78 |
+
flex-direction: column;
|
79 |
+
justify-content: center;
|
80 |
+
}
|
81 |
+
|
82 |
+
#color_picker {
|
83 |
+
position: absolute;
|
84 |
+
}
|
85 |
+
|
86 |
+
#wplc_picker_header {
|
87 |
+
font-size: 15px;
|
88 |
+
font-weight: 600;
|
89 |
+
cursor: auto;
|
90 |
+
position: relative;
|
91 |
+
}
|
92 |
+
|
93 |
+
|
components/theme_picker/theme_picker.php
ADDED
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="wplc_theme_picker_component">
|
2 |
+
<div class="d-flex flex-column align-items-center">
|
3 |
+
<?php foreach ( $themes as $theme ) { ?>
|
4 |
+
<div class="form-group wplc_theme">
|
5 |
+
<input type="radio" value="<?= $theme->alias ?>" name="wplc_theme" id="<?= $theme->alias ?>"
|
6 |
+
<?= ( $wplc_settings->wplc_theme == $theme->alias ? ' checked' : '' ); ?> />
|
7 |
+
<label class="col-form-label wplc_colorpicker_label"
|
8 |
+
for="<?= $theme->alias ?>"><?= $theme->name ?></label>
|
9 |
+
<div class="wplc_pallet" data-pallet_name="<?= $theme->alias ?>">
|
10 |
+
<div class="wplc_pallet_color">
|
11 |
+
<div class="wplc_style_colorpicker wplc_default_colorpicker wplc_pallet_base_color"
|
12 |
+
data-color="<?= $theme->base_color ?>"
|
13 |
+
style="background-color: <?= $theme->base_color ?>"></div>
|
14 |
+
</div>
|
15 |
+
<div class="wplc_pallet_color">
|
16 |
+
<div class="wplc_style_colorpicker wplc_default_colorpicker wplc_pallet_button_color"
|
17 |
+
data-color="<?= $theme->button_color ?>"
|
18 |
+
style="background-color: <?= $theme->button_color ?>"></div>
|
19 |
+
</div>
|
20 |
+
<div class="wplc_pallet_color">
|
21 |
+
<div class="wplc_style_colorpicker wplc_default_colorpicker wplc_pallet_agent_color"
|
22 |
+
data-color="<?= $theme->agent_color ?>"
|
23 |
+
style="background-color: <?= $theme->agent_color ?>"></div>
|
24 |
+
</div>
|
25 |
+
<div class="wplc_pallet_color">
|
26 |
+
<div class="wplc_style_colorpicker wplc_default_colorpicker wplc_pallet_client_color"
|
27 |
+
data-color="<?= $theme->client_color ?>"
|
28 |
+
style="background-color: <?= $theme->client_color ?>"></div>
|
29 |
+
</div>
|
30 |
+
</div>
|
31 |
+
</div>
|
32 |
+
<?php } ?>
|
33 |
+
|
34 |
+
<div class="form-group wplc_theme" id="wplc_custom_theme">
|
35 |
+
<input type="radio" value="custom" name="wplc_theme" id='CustomTheme'
|
36 |
+
<?= ( $wplc_settings->wplc_theme == 'custom' ? ' checked' : '' ); ?> />
|
37 |
+
<label class="col-form-label wplc_colorpicker_label"
|
38 |
+
for="CustomTheme"><?= __( "Customize", "wp-live-chat-support" ) ?></label>
|
39 |
+
<div class="wplc_pallet" data-pallet_name="custom">
|
40 |
+
<div class="wplc_pallet_color" data-color_id="base_color">
|
41 |
+
<input class="wplc_style_colorpicker_value" type="hidden"
|
42 |
+
name="wplc_settings_base_color" value="<?= $wplc_settings->wplc_settings_base_color ?>"/>
|
43 |
+
<div class="wplc_colorpicker_border">
|
44 |
+
<div class="wplc_style_colorpicker wplc_default_colorpicker wplc_pallet_base_color"
|
45 |
+
data-color="<?= $wplc_settings->wplc_settings_base_color ?>"
|
46 |
+
id="base_color"
|
47 |
+
style="background-color: <?= $wplc_settings->wplc_settings_base_color ?>"></div>
|
48 |
+
</div>
|
49 |
+
</div>
|
50 |
+
<div class="wplc_pallet_color" data-color_id="buttons_color">
|
51 |
+
<input class="wplc_style_colorpicker_value" type="hidden"
|
52 |
+
name="wplc_settings_button_color" value="<?= $wplc_settings->wplc_settings_button_color ?>"/>
|
53 |
+
<div class="wplc_colorpicker_border">
|
54 |
+
<div class="wplc_style_colorpicker wplc_default_colorpicker wplc_pallet_button_color"
|
55 |
+
data-color="<?= $wplc_settings->wplc_settings_button_color ?>"
|
56 |
+
id="buttons_color"
|
57 |
+
style="background-color: <?= $wplc_settings->wplc_settings_button_color ?>"></div>
|
58 |
+
</div>
|
59 |
+
</div>
|
60 |
+
<div class="wplc_pallet_color" data-color_id="agent_color">
|
61 |
+
<input class="wplc_style_colorpicker_value" type="hidden"
|
62 |
+
name="wplc_settings_agent_color" value="<?= $wplc_settings->wplc_settings_agent_color ?>"/>
|
63 |
+
<div class="wplc_colorpicker_border">
|
64 |
+
<div class="wplc_style_colorpicker wplc_default_colorpicker wplc_pallet_agent_color"
|
65 |
+
data-color="<?= $wplc_settings->wplc_settings_agent_color ?>"
|
66 |
+
id="agent_color"
|
67 |
+
style="background-color: <?= $wplc_settings->wplc_settings_agent_color ?>"></div>
|
68 |
+
</div>
|
69 |
+
</div>
|
70 |
+
<div class="wplc_pallet_color" data-color_id="client_color">
|
71 |
+
<input class="wplc_style_colorpicker_value" type="hidden"
|
72 |
+
name="wplc_settings_client_color" value="<?= $wplc_settings->wplc_settings_client_color ?>"/>
|
73 |
+
<div class="wplc_colorpicker_border">
|
74 |
+
<div class="wplc_style_colorpicker wplc_default_colorpicker wplc_pallet_client_color"
|
75 |
+
data-color="<?= $wplc_settings->wplc_settings_client_color ?>"
|
76 |
+
id="client_color"
|
77 |
+
style="background-color: <?= $wplc_settings->wplc_settings_client_color ?>"></div>
|
78 |
+
</div>
|
79 |
+
</div>
|
80 |
+
</div>
|
81 |
+
<div id="color_picker">
|
82 |
+
<label id="wplc_picker_header"></label>
|
83 |
+
<input class="wplc_style_colorpicker_input" type="color" value="#0596d4">
|
84 |
+
</div>
|
85 |
+
</div>
|
86 |
+
</div>
|
87 |
+
</div>
|
config.php
CHANGED
@@ -9,7 +9,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
9 |
|
10 |
define('WPLC_MIN_WP_VERSION', "5.3");
|
11 |
define('WPLC_MIN_PHP_VERSION', "5.4");
|
12 |
-
define('WPLC_PLUGIN_VERSION', "9.
|
13 |
define('WPLC_PLUGIN_DIR', dirname(__FILE__));
|
14 |
define('WPLC_PLUGIN_URL', wplc_plugins_url( '/', __FILE__ ) );
|
15 |
define('WPLC_PLUGIN', plugin_basename( __FILE__ ) );
|
9 |
|
10 |
define('WPLC_MIN_WP_VERSION', "5.3");
|
11 |
define('WPLC_MIN_PHP_VERSION', "5.4");
|
12 |
+
define('WPLC_PLUGIN_VERSION', "9.3.0");
|
13 |
define('WPLC_PLUGIN_DIR', dirname(__FILE__));
|
14 |
define('WPLC_PLUGIN_URL', wplc_plugins_url( '/', __FILE__ ) );
|
15 |
define('WPLC_PLUGIN', plugin_basename( __FILE__ ) );
|
css/vendor/bootstrap/{wplc_bootstrap_9_2_1.css → wplc_bootstrap_9_3_0.css}
RENAMED
File without changes
|
images/svgs/angry.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path d="M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 464c-119.1 0-216-96.9-216-216S128.9 40 248 40s216 96.9 216 216-96.9 216-216 216zm0-136c-31.2 0-60.6 13.8-80.6 37.8-5.7 6.8-4.8 16.9 2 22.5s16.9 4.8 22.5-2c27.9-33.4 84.2-33.4 112.1 0 5.3 6.4 15.4 8 22.5 2 6.8-5.7 7.7-15.8 2-22.5-19.9-24-49.3-37.8-80.5-37.8zm-48-96c0-2.9-.9-5.6-1.7-8.2.6.1 1.1.2 1.7.2 6.9 0 13.2-4.5 15.3-11.4 2.6-8.5-2.2-17.4-10.7-19.9l-80-24c-8.4-2.5-17.4 2.3-19.9 10.7-2.6 8.5 2.2 17.4 10.7 19.9l31 9.3c-6.3 5.8-10.5 14.1-10.5 23.4 0 17.7 14.3 32 32 32s32.1-14.3 32.1-32zm171.4-63.3l-80 24c-8.5 2.5-13.3 11.5-10.7 19.9 2.1 6.9 8.4 11.4 15.3 11.4.6 0 1.1-.2 1.7-.2-.7 2.7-1.7 5.3-1.7 8.2 0 17.7 14.3 32 32 32s32-14.3 32-32c0-9.3-4.1-17.5-10.5-23.4l31-9.3c8.5-2.5 13.3-11.5 10.7-19.9-2.4-8.5-11.4-13.2-19.8-10.7z"/></svg>
|
images/svgs/frown.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path d="M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 464c-119.1 0-216-96.9-216-216S128.9 40 248 40s216 96.9 216 216-96.9 216-216 216zm0-152c-44.4 0-86.2 19.6-114.8 53.8-5.7 6.8-4.8 16.9 2 22.5 6.8 5.7 16.9 4.8 22.5-2 22.4-26.8 55.3-42.2 90.2-42.2s67.8 15.4 90.2 42.2c5.3 6.4 15.4 8 22.5 2 6.8-5.7 7.7-15.8 2-22.5C334.2 339.6 292.4 320 248 320zm-80-80c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32z"/></svg>
|
images/svgs/grin.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path d="M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 464c-119.1 0-216-96.9-216-216S128.9 40 248 40s216 96.9 216 216-96.9 216-216 216zm123.1-151.2C340.9 330.5 296 336 248 336s-92.9-5.5-123.1-15.2c-5.3-1.7-11.1-.5-15.3 3.1-4.2 3.7-6.2 9.2-5.3 14.8 9.2 55 83.2 93.3 143.8 93.3s134.5-38.3 143.8-93.3c.9-5.5-1.1-11.1-5.3-14.8-4.3-3.7-10.2-4.9-15.5-3.1zM248 400c-35 0-77-16.3-98.5-40.3 57.5 10.8 139.6 10.8 197.1 0C325 383.7 283 400 248 400zm-80-160c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32z"/></svg>
|
images/svgs/meh.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path d="M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 464c-119.1 0-216-96.9-216-216S128.9 40 248 40s216 96.9 216 216-96.9 216-216 216zm-80-232c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160-64c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm16 160H152c-8.8 0-16 7.2-16 16s7.2 16 16 16h192c8.8 0 16-7.2 16-16s-7.2-16-16-16z"/></svg>
|
images/svgs/smile.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path d="M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 464c-119.1 0-216-96.9-216-216S128.9 40 248 40s216 96.9 216 216-96.9 216-216 216zm90.2-146.2C315.8 352.6 282.9 368 248 368s-67.8-15.4-90.2-42.2c-5.7-6.8-15.8-7.7-22.5-2-6.8 5.7-7.7 15.7-2 22.5C161.7 380.4 203.6 400 248 400s86.3-19.6 114.8-53.8c5.7-6.8 4.8-16.9-2-22.5-6.8-5.6-16.9-4.7-22.6 2.1zM168 240c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32z"/></svg>
|
images/vi_avatar.png
DELETED
Binary file
|
includes/data_access/chat_data.php
CHANGED
@@ -178,7 +178,8 @@ class TCXChatData {
|
|
178 |
$wplc_tblname_msgs.msgfrom ,
|
179 |
$wplc_tblname_msgs.msg,
|
180 |
$wplc_tblname_msgs.originates,
|
181 |
-
$wplc_tblname_chat_ratings.rating
|
|
|
182 |
from $wplc_tblname_chats
|
183 |
left join $wplc_tblname_msgs on $wplc_tblname_msgs.chat_sess_id = $wplc_tblname_chats.id
|
184 |
left join $wplc_tblname_chat_ratings on $wplc_tblname_chat_ratings.cid = $wplc_tblname_chats.id
|
178 |
$wplc_tblname_msgs.msgfrom ,
|
179 |
$wplc_tblname_msgs.msg,
|
180 |
$wplc_tblname_msgs.originates,
|
181 |
+
$wplc_tblname_chat_ratings.rating,
|
182 |
+
$wplc_tblname_chat_ratings.comments
|
183 |
from $wplc_tblname_chats
|
184 |
left join $wplc_tblname_msgs on $wplc_tblname_msgs.chat_sess_id = $wplc_tblname_chats.id
|
185 |
left join $wplc_tblname_chat_ratings on $wplc_tblname_chat_ratings.cid = $wplc_tblname_chats.id
|
includes/data_access/chat_rating_data.php
CHANGED
@@ -11,6 +11,7 @@ class TCXChatRatingData {
|
|
11 |
'cid' => array( 'type' => 'int', 'format' => '%d' ),
|
12 |
'aid' => array( 'type' => 'int', 'format' => '%d' ),
|
13 |
'rating' => array( 'type' => 'int', 'format' => '%d' ),
|
|
|
14 |
);
|
15 |
}
|
16 |
|
11 |
'cid' => array( 'type' => 'int', 'format' => '%d' ),
|
12 |
'aid' => array( 'type' => 'int', 'format' => '%d' ),
|
13 |
'rating' => array( 'type' => 'int', 'format' => '%d' ),
|
14 |
+
'comments' => array( 'type' => 'varchar', 'format' => '%s' ),
|
15 |
);
|
16 |
}
|
17 |
|
includes/helpers/chat_helper.php
CHANGED
@@ -141,6 +141,7 @@ class TCXChatHelper {
|
|
141 |
$session->url = $db_result->url;
|
142 |
$session->client_data = json_decode( $db_result->client_data, true );
|
143 |
$session->rating = is_null( $db_result->rating ) ? - 1 : intval( $db_result->rating );
|
|
|
144 |
$session->avatar_name_alias = TCXUtilsHelper::wplc_isDoubleByte($session->name) ? 'Visitor' : $session->name;
|
145 |
|
146 |
$session->custom_fields = null;
|
141 |
$session->url = $db_result->url;
|
142 |
$session->client_data = json_decode( $db_result->client_data, true );
|
143 |
$session->rating = is_null( $db_result->rating ) ? - 1 : intval( $db_result->rating );
|
144 |
+
$session->rating_comments = $db_result->comments;
|
145 |
$session->avatar_name_alias = TCXUtilsHelper::wplc_isDoubleByte($session->name) ? 'Visitor' : $session->name;
|
146 |
|
147 |
$session->custom_fields = null;
|
includes/helpers/chat_rating_helper.php
CHANGED
@@ -9,31 +9,29 @@ class TCXChatRatingHelper {
|
|
9 |
}
|
10 |
}
|
11 |
|
12 |
-
public static function set_chat_rating( $cid, $rating_score ) {
|
13 |
global $wpdb;
|
14 |
-
$chat
|
15 |
-
$rating = TCXChatRatingData::get_chat_rating_by_chat($wpdb
|
16 |
-
|
17 |
-
if($rating!=null && !empty($rating))
|
18 |
-
|
19 |
-
|
20 |
-
'
|
21 |
-
'timestamp' => current_time( 'mysql',true ),
|
22 |
-
));
|
23 |
-
}
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
'
|
28 |
-
'
|
29 |
-
'
|
30 |
-
|
31 |
-
));
|
32 |
}
|
33 |
}
|
34 |
|
35 |
-
public static function module_db_integration()
|
36 |
-
{
|
37 |
global $wplc_tblname_chat_ratings;
|
38 |
$sql = "
|
39 |
CREATE TABLE `" . $wplc_tblname_chat_ratings . "` (
|
@@ -42,13 +40,13 @@ class TCXChatRatingHelper {
|
|
42 |
`cid` int(11) NOT NULL,
|
43 |
`aid` int(11) NOT NULL,
|
44 |
`rating` int(11) NOT NULL,
|
|
|
45 |
PRIMARY KEY (`id`)
|
46 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=1 ;
|
47 |
";
|
48 |
|
49 |
-
dbDelta($sql);
|
50 |
}
|
51 |
|
52 |
|
53 |
-
|
54 |
}
|
9 |
}
|
10 |
}
|
11 |
|
12 |
+
public static function set_chat_rating( $cid, $rating_score, $rating_comments ) {
|
13 |
global $wpdb;
|
14 |
+
$chat = TCXChatData::get_chat( $wpdb, $cid );
|
15 |
+
$rating = TCXChatRatingData::get_chat_rating_by_chat( $wpdb, $cid );
|
16 |
+
|
17 |
+
if ( $rating != null && ! empty( $rating ) ) {
|
18 |
+
return TCXChatRatingData::update_chat_rating( $wpdb, $rating->id, array(
|
19 |
+
'rating' => $rating_score,
|
20 |
+
'comments' => $rating_comments,
|
21 |
+
'timestamp' => current_time( 'mysql', true ),
|
22 |
+
) );
|
23 |
+
} else {
|
24 |
+
return TCXChatRatingData::add_chat_rating( $wpdb, array(
|
25 |
+
'cid' => $chat->id,
|
26 |
+
'aid' => $chat->agent_id,
|
27 |
+
'rating' => $rating_score,
|
28 |
+
'comments' => $rating_comments,
|
29 |
+
'timestamp' => current_time( 'mysql', true ),
|
30 |
+
) );
|
|
|
31 |
}
|
32 |
}
|
33 |
|
34 |
+
public static function module_db_integration() {
|
|
|
35 |
global $wplc_tblname_chat_ratings;
|
36 |
$sql = "
|
37 |
CREATE TABLE `" . $wplc_tblname_chat_ratings . "` (
|
40 |
`cid` int(11) NOT NULL,
|
41 |
`aid` int(11) NOT NULL,
|
42 |
`rating` int(11) NOT NULL,
|
43 |
+
`comments` VARCHAR(2000),
|
44 |
PRIMARY KEY (`id`)
|
45 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=1 ;
|
46 |
";
|
47 |
|
48 |
+
dbDelta( $sql );
|
49 |
}
|
50 |
|
51 |
|
|
|
52 |
}
|
includes/helpers/theme_helper.php
CHANGED
@@ -2,14 +2,27 @@
|
|
2 |
|
3 |
class TCXThemeHelper {
|
4 |
|
5 |
-
public static function get_theme( $
|
6 |
$result = null;
|
7 |
-
switch ( $
|
8 |
case 'custom':
|
9 |
$result = self::get_custom_theme();
|
10 |
break;
|
11 |
default:
|
12 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
break;
|
14 |
}
|
15 |
|
@@ -18,7 +31,6 @@ class TCXThemeHelper {
|
|
18 |
|
19 |
private static function get_default_theme() {
|
20 |
$result = new TCXTheme();
|
21 |
-
$wplc_settings = TCXSettings::getSettings();
|
22 |
$result->agent_color = '#eeeeee';
|
23 |
$result->client_color = '#d4d4d4';
|
24 |
$result->base_color = '#373737';
|
2 |
|
3 |
class TCXThemeHelper {
|
4 |
|
5 |
+
public static function get_theme( $theme_alias ) {
|
6 |
$result = null;
|
7 |
+
switch ( $theme_alias ) {
|
8 |
case 'custom':
|
9 |
$result = self::get_custom_theme();
|
10 |
break;
|
11 |
default:
|
12 |
+
$themes = TCXTheme::available_themes();
|
13 |
+
$themeExists = false;
|
14 |
+
foreach ($themes as $theme)
|
15 |
+
{
|
16 |
+
if($theme->alias===$theme_alias)
|
17 |
+
{
|
18 |
+
$result = $theme;
|
19 |
+
$themeExists = true;
|
20 |
+
break;
|
21 |
+
}
|
22 |
+
}
|
23 |
+
if(!$themeExists) {
|
24 |
+
$result = self::get_default_theme();
|
25 |
+
}
|
26 |
break;
|
27 |
}
|
28 |
|
31 |
|
32 |
private static function get_default_theme() {
|
33 |
$result = new TCXTheme();
|
|
|
34 |
$result->agent_color = '#eeeeee';
|
35 |
$result->client_color = '#d4d4d4';
|
36 |
$result->base_color = '#373737';
|
includes/helpers/utils_helper.php
CHANGED
@@ -306,8 +306,9 @@ class TCXUtilsHelper {
|
|
306 |
$now_day = gmdate( 'd', $now_wp );
|
307 |
$now_month = gmdate( 'm', $now_wp );
|
308 |
$now_year = gmdate( 'Y', $now_wp );
|
|
|
309 |
// calculate time in UTC then add skew, so comparison is between UTC timestamps
|
310 |
-
if ( array_key_exists( $now_dayofweek, $wplc_settings->wplc_bh_schedule ) ) {
|
311 |
foreach ( $wplc_settings->wplc_bh_schedule[ $now_dayofweek ] as $schedule ) {
|
312 |
$t1 = $skew + gmmktime( $schedule['from']['h'], $schedule['from']['m'], 0, $now_month, $now_day, $now_year );
|
313 |
$t2 = $skew + gmmktime( $schedule['to']['h'], $schedule['to']['m'], 59, $now_month, $now_day, $now_year );
|
@@ -360,22 +361,30 @@ class TCXUtilsHelper {
|
|
360 |
}
|
361 |
|
362 |
public static function get_client_dictionary() {
|
363 |
-
$result
|
364 |
-
$wplc_settings
|
365 |
-
$result->OfflineFormTitle
|
366 |
-
$result->OfflineFormFinishMessage
|
367 |
-
$result->
|
368 |
-
$result->
|
369 |
-
|
370 |
-
$result->
|
371 |
-
$result->
|
372 |
-
$result->
|
373 |
-
$result->
|
374 |
-
$result->
|
375 |
-
$result->
|
376 |
-
$result->
|
377 |
-
$result->
|
378 |
-
$result->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
379 |
|
380 |
return $result;
|
381 |
}
|
@@ -472,8 +481,8 @@ class TCXUtilsHelper {
|
|
472 |
( $wplc_settings->wplc_exclude_archive && is_archive() ) ||
|
473 |
! self::wplc_include_chat_on_page( $current_view_id, $include_on_pages, $exclude_from_pages ) ||
|
474 |
! self::wplc_include_chat_on_post_type( $current_post_type, $wplc_settings->wplc_exclude_post_types ) ||
|
475 |
-
( $wplc_settings->wplc_hide_when_offline && ! TCXAgentsHelper::exist_available_agent() ) ||
|
476 |
-
TCXUtilsHelper::wplc_is_user_banned() ||
|
477 |
! $wplc_compatibility->wp ||
|
478 |
! $wplc_compatibility->php ||
|
479 |
! $wplc_compatibility->ie
|
@@ -540,10 +549,10 @@ class TCXUtilsHelper {
|
|
540 |
TCXSettings::setSettingValue( 'wplc_allow_video', $video );
|
541 |
}
|
542 |
|
543 |
-
public static function get_mcu_data( $wplc_socket_url, $wplc_chat_server_session, $force_update = false ) {
|
544 |
$wplc_settings = TCXSettings::getSettings();
|
545 |
$guid = get_option( 'WPLC_GUID' );
|
546 |
-
$force_update = $force_update ||
|
547 |
WPLC_CHAT_SERVER != $wplc_settings->wplc_cluster_manager_route_server ||
|
548 |
empty( $wplc_settings->wplc_socket_url ) ||
|
549 |
empty( $wplc_settings->wplc_chat_server_session ) ||
|
@@ -562,19 +571,20 @@ class TCXUtilsHelper {
|
|
562 |
if ( $force_update ) {
|
563 |
wplc_check_guid( true );
|
564 |
$guid = get_option( 'WPLC_GUID' );
|
565 |
-
$result = self::wplc_get_mcu_data_from_cm( $guid, true );
|
566 |
}
|
567 |
}
|
568 |
|
569 |
return $result;
|
570 |
}
|
571 |
|
572 |
-
public static function wplc_get_mcu_data_from_cm( $guid, $return_result = false ) {
|
573 |
$result = array(
|
574 |
"socket_url" => '',
|
575 |
"chat_server_session" => ''
|
576 |
);
|
577 |
-
$
|
|
|
578 |
if ( is_array( $response ) ) {
|
579 |
if ( $response['response']['code'] == "200" ) {
|
580 |
$data = json_decode( $response['body'], true );
|
@@ -589,6 +599,9 @@ class TCXUtilsHelper {
|
|
589 |
}
|
590 |
update_option( 'WPLC_CM_SESSION_CHECK', time() );
|
591 |
update_option( 'WPLC_NO_SERVER_MATCH', false );
|
|
|
|
|
|
|
592 |
} else if ( ! $data['result'] && isset( $data['errorCode'] ) ) {
|
593 |
switch ( intval( $data['errorCode'] ) ) {
|
594 |
/*ERROR_GUID_NOT_FOUND = 20000*/
|
@@ -658,6 +671,7 @@ class TCXUtilsHelper {
|
|
658 |
),
|
659 |
"only_agents_notice" => __( 'Only chat agents can accept chats', 'wp-live-chat-support' ),
|
660 |
'in_progress_notice' => __( "In progress with another agent", 'wp-live-chat-support' ),
|
|
|
661 |
'images_url' => WPLC_PLUGIN_URL . "images/",
|
662 |
'ajaxurl' => admin_url( 'admin-ajax.php' ),
|
663 |
'chat_list_url' => admin_url( 'admin.php?page=wplivechat-menu' ),
|
@@ -665,7 +679,6 @@ class TCXUtilsHelper {
|
|
665 |
"enable_ring" => $wplc_settings->wplc_enable_msg_sound,
|
666 |
"enable_new_visitor_ring" => $wplc_settings->wplc_enable_visitor_sound,
|
667 |
"enable_files" => $wplc_settings->wplc_ux_file_share,
|
668 |
-
"enable_typing" => $wplc_settings->wplc_typing_enabled,
|
669 |
"channel" => $wplc_settings->wplc_channel,
|
670 |
"socket_url" => esc_url_raw( $wplc_chat_server_data["socket_url"], [ "wss" ] ) . '/chatchannel?aid=' . $wplc_current_user->ID . '&pid=' . get_option( 'WPLC_GUID' ),
|
671 |
"chat_server_session" => $wplc_chat_server_data["chat_server_session"],
|
@@ -679,11 +692,11 @@ class TCXUtilsHelper {
|
|
679 |
"wplc_is_chat_page" => $is_chat_page,
|
680 |
);
|
681 |
|
682 |
-
if ( TCXAgentsHelper::is_agent_accepting( get_current_user_id() ) ) {
|
683 |
$script_data["agent_accepts_data"] = true;
|
684 |
} else {
|
685 |
$script_data["agent_accepts_data"] = false;
|
686 |
-
}
|
687 |
|
688 |
return $script_data;
|
689 |
}
|
@@ -765,8 +778,18 @@ class TCXUtilsHelper {
|
|
765 |
if ( mb_strlen( $value, 'UTF-8' ) != strlen( $value ) ) {
|
766 |
return true;
|
767 |
}
|
|
|
768 |
return false;
|
769 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
770 |
}
|
771 |
|
772 |
|
306 |
$now_day = gmdate( 'd', $now_wp );
|
307 |
$now_month = gmdate( 'm', $now_wp );
|
308 |
$now_year = gmdate( 'Y', $now_wp );
|
309 |
+
|
310 |
// calculate time in UTC then add skew, so comparison is between UTC timestamps
|
311 |
+
if ( array_key_exists( $now_dayofweek, $wplc_settings->wplc_bh_schedule ) && is_array($wplc_settings->wplc_bh_schedule[ $now_dayofweek ]) ) {
|
312 |
foreach ( $wplc_settings->wplc_bh_schedule[ $now_dayofweek ] as $schedule ) {
|
313 |
$t1 = $skew + gmmktime( $schedule['from']['h'], $schedule['from']['m'], 0, $now_month, $now_day, $now_year );
|
314 |
$t2 = $skew + gmmktime( $schedule['to']['h'], $schedule['to']['m'], 59, $now_month, $now_day, $now_year );
|
361 |
}
|
362 |
|
363 |
public static function get_client_dictionary() {
|
364 |
+
$result = new stdClass();
|
365 |
+
$wplc_settings = TCXSettings::getSettings();
|
366 |
+
$result->OfflineFormTitle = $wplc_settings->wplc_pro_na;
|
367 |
+
$result->OfflineFormFinishMessage = $wplc_settings->wplc_offline_finish_message;
|
368 |
+
$result->OfflineFormEmailMessage = $wplc_settings->wplc_offline_email_message;
|
369 |
+
$result->OfflineFormNameMessage = $wplc_settings->wplc_offline_name_message;
|
370 |
+
$result->OfflineFormMaximumCharactersReached = $wplc_settings->wplc_offline_length_error;
|
371 |
+
$result->OfflineFormInvalidEmail = $wplc_settings->wplc_offline_email_invalid;
|
372 |
+
$result->OfflineFormInvalidName = $wplc_settings->wplc_offline_name_invalid;
|
373 |
+
$result->RateMessage = $wplc_settings->wplc_rate_message;
|
374 |
+
$result->RateCommentsMessage = $wplc_settings->wplc_rate_comments_message;
|
375 |
+
$result->RateFeedbackRequestMessage = $wplc_settings->wplc_rate_feedback_request_message;
|
376 |
+
$result->AuthFieldsReplacement = $wplc_settings->wplc_user_alternative_text;
|
377 |
+
$result->FirstResponse = $wplc_settings->wplc_pro_auto_first_response_chat_msg;
|
378 |
+
$result->ChatTitle = $wplc_settings->wplc_chat_title;
|
379 |
+
$result->ChatIntro = $wplc_settings->wplc_chat_intro;
|
380 |
+
$result->StartButtonText = $wplc_settings->wplc_button_start_text;
|
381 |
+
$result->ChatWelcomeMessage = $wplc_settings->wplc_welcome_msg;
|
382 |
+
$result->ChatNoAnswerMessage = $wplc_settings->wplc_user_no_answer;
|
383 |
+
$result->InactivityMessage = 'Chat session closed due to inactivity. Try again later.';
|
384 |
+
$result->ChatEndMessage = $wplc_settings->wplc_text_chat_ended;
|
385 |
+
$result->GreetingMessage = $wplc_settings->wplc_greeting_message;
|
386 |
+
$result->GreetingOfflineMessage = $wplc_settings->wplc_offline_greeting_message;
|
387 |
+
$result->CallTitle = $wplc_settings->wplc_call_title;
|
388 |
|
389 |
return $result;
|
390 |
}
|
481 |
( $wplc_settings->wplc_exclude_archive && is_archive() ) ||
|
482 |
! self::wplc_include_chat_on_page( $current_view_id, $include_on_pages, $exclude_from_pages ) ||
|
483 |
! self::wplc_include_chat_on_post_type( $current_post_type, $wplc_settings->wplc_exclude_post_types ) ||
|
484 |
+
// ( $wplc_settings->wplc_hide_when_offline && ! TCXAgentsHelper::exist_available_agent() ) ||
|
485 |
+
(TCXUtilsHelper::wplc_is_user_banned() && $wplc_settings->wplc_channel!='phone')||
|
486 |
! $wplc_compatibility->wp ||
|
487 |
! $wplc_compatibility->php ||
|
488 |
! $wplc_compatibility->ie
|
549 |
TCXSettings::setSettingValue( 'wplc_allow_video', $video );
|
550 |
}
|
551 |
|
552 |
+
public static function get_mcu_data( $wplc_socket_url, $wplc_chat_server_session, $force_update = false, $force_reset = false ) {
|
553 |
$wplc_settings = TCXSettings::getSettings();
|
554 |
$guid = get_option( 'WPLC_GUID' );
|
555 |
+
$force_update = $force_update || $force_reset ||
|
556 |
WPLC_CHAT_SERVER != $wplc_settings->wplc_cluster_manager_route_server ||
|
557 |
empty( $wplc_settings->wplc_socket_url ) ||
|
558 |
empty( $wplc_settings->wplc_chat_server_session ) ||
|
571 |
if ( $force_update ) {
|
572 |
wplc_check_guid( true );
|
573 |
$guid = get_option( 'WPLC_GUID' );
|
574 |
+
$result = self::wplc_get_mcu_data_from_cm( $guid, true, $force_reset );
|
575 |
}
|
576 |
}
|
577 |
|
578 |
return $result;
|
579 |
}
|
580 |
|
581 |
+
public static function wplc_get_mcu_data_from_cm( $guid, $return_result = false, $force_reset = false ) {
|
582 |
$result = array(
|
583 |
"socket_url" => '',
|
584 |
"chat_server_session" => ''
|
585 |
);
|
586 |
+
$version = $force_reset ? '0.0.0.0' : WPLC_PLUGIN_VERSION;
|
587 |
+
$response = wp_remote_get( WPLC_CHAT_SERVER . '?website=' . get_option( 'siteurl' ) . '&guid=' . $guid . '&pluginversion=' . $version );
|
588 |
if ( is_array( $response ) ) {
|
589 |
if ( $response['response']['code'] == "200" ) {
|
590 |
$data = json_decode( $response['body'], true );
|
599 |
}
|
600 |
update_option( 'WPLC_CM_SESSION_CHECK', time() );
|
601 |
update_option( 'WPLC_NO_SERVER_MATCH', false );
|
602 |
+
if ( $force_reset ) {
|
603 |
+
$result = self::wplc_get_mcu_data_from_cm( $guid, $return_result );
|
604 |
+
}
|
605 |
} else if ( ! $data['result'] && isset( $data['errorCode'] ) ) {
|
606 |
switch ( intval( $data['errorCode'] ) ) {
|
607 |
/*ERROR_GUID_NOT_FOUND = 20000*/
|
671 |
),
|
672 |
"only_agents_notice" => __( 'Only chat agents can accept chats', 'wp-live-chat-support' ),
|
673 |
'in_progress_notice' => __( "In progress with another agent", 'wp-live-chat-support' ),
|
674 |
+
'chat_closed' => __("Chat session ended","wp-live-chat-support"),
|
675 |
'images_url' => WPLC_PLUGIN_URL . "images/",
|
676 |
'ajaxurl' => admin_url( 'admin-ajax.php' ),
|
677 |
'chat_list_url' => admin_url( 'admin.php?page=wplivechat-menu' ),
|
679 |
"enable_ring" => $wplc_settings->wplc_enable_msg_sound,
|
680 |
"enable_new_visitor_ring" => $wplc_settings->wplc_enable_visitor_sound,
|
681 |
"enable_files" => $wplc_settings->wplc_ux_file_share,
|
|
|
682 |
"channel" => $wplc_settings->wplc_channel,
|
683 |
"socket_url" => esc_url_raw( $wplc_chat_server_data["socket_url"], [ "wss" ] ) . '/chatchannel?aid=' . $wplc_current_user->ID . '&pid=' . get_option( 'WPLC_GUID' ),
|
684 |
"chat_server_session" => $wplc_chat_server_data["chat_server_session"],
|
692 |
"wplc_is_chat_page" => $is_chat_page,
|
693 |
);
|
694 |
|
695 |
+
/*if ( TCXAgentsHelper::is_agent_accepting( get_current_user_id() ) ) {
|
696 |
$script_data["agent_accepts_data"] = true;
|
697 |
} else {
|
698 |
$script_data["agent_accepts_data"] = false;
|
699 |
+
}*/
|
700 |
|
701 |
return $script_data;
|
702 |
}
|
778 |
if ( mb_strlen( $value, 'UTF-8' ) != strlen( $value ) ) {
|
779 |
return true;
|
780 |
}
|
781 |
+
|
782 |
return false;
|
783 |
}
|
784 |
+
|
785 |
+
public static function wplc_check_channel_change_on_save( $saved_channel ) {
|
786 |
+
$result = $saved_channel;
|
787 |
+
if ( ! empty( $_GET['wplc_action'] ) && $_GET['wplc_action'] == 'save_settings' && ! empty( $_POST['wplc_channel'] ) ) {
|
788 |
+
$result = $_POST['wplc_channel'];
|
789 |
+
}
|
790 |
+
|
791 |
+
return $result;
|
792 |
+
}
|
793 |
}
|
794 |
|
795 |
|
includes/models/session.php
CHANGED
@@ -20,19 +20,29 @@ class TCXChatSession
|
|
20 |
public $client_counter;
|
21 |
public $avatar_name_alias;
|
22 |
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
|
37 |
public function getStatusName()
|
38 |
{
|
20 |
public $client_counter;
|
21 |
public $avatar_name_alias;
|
22 |
|
23 |
+
|
24 |
+
public function getRatingHtml(){
|
25 |
+
switch ($this->rating) {
|
26 |
+
case 0:
|
27 |
+
return '<img src="'.wplc_protocol_agnostic_url( WPLC_PLUGIN_URL . 'images/svgs/angry.svg' ).'" alt="😭" > <span>'. __( "Very Bad", 'wp-live-chat-support' ) .'</span>';
|
28 |
+
break;
|
29 |
+
case 1:
|
30 |
+
return '<img src="'.wplc_protocol_agnostic_url( WPLC_PLUGIN_URL . 'images/svgs/frown.svg' ).'" alt="☹" ><span>'. __( "Bad", 'wp-live-chat-support' ) .'</span>';
|
31 |
+
break;
|
32 |
+
case 2:
|
33 |
+
return '<img src="'.wplc_protocol_agnostic_url( WPLC_PLUGIN_URL . 'images/svgs/meh.svg' ).'" alt="😐" ><span>'. __( "Neutral", 'wp-live-chat-support' ) .'</span>';
|
34 |
+
break;
|
35 |
+
case 3:
|
36 |
+
return '<img src="'.wplc_protocol_agnostic_url( WPLC_PLUGIN_URL . 'images/svgs/smile.svg' ).'" alt="🙂" ><span>'. __( "Good", 'wp-live-chat-support' ) .'</span>';
|
37 |
+
break;
|
38 |
+
case 4:
|
39 |
+
return '<img src="'.wplc_protocol_agnostic_url( WPLC_PLUGIN_URL . 'images/svgs/grin.svg' ).'" alt="😀" ><span>'. __( "Very Good", 'wp-live-chat-support' ) .'</span>';
|
40 |
+
break;
|
41 |
+
default:
|
42 |
+
return __("No Rating",'wp-live-chat-support');
|
43 |
+
break;
|
44 |
+
}
|
45 |
+
}
|
46 |
|
47 |
public function getStatusName()
|
48 |
{
|
includes/models/settings.php
CHANGED
@@ -30,7 +30,6 @@ class TCXSettings {
|
|
30 |
public $wplc_enable_encryption;
|
31 |
public $wplc_enable_initiate_chat;
|
32 |
public $wplc_enable_msg_sound;
|
33 |
-
public $wplc_enable_transcripts;
|
34 |
public $wplc_enable_visitor_sound;
|
35 |
public $wplc_enable_voice_notes_on_admin;
|
36 |
public $wplc_enable_voice_notes_on_visitor;
|
@@ -58,8 +57,6 @@ class TCXSettings {
|
|
58 |
public $wplc_messagetone;
|
59 |
public $wplc_new_chat_ringer_count;
|
60 |
public $wplc_theme;
|
61 |
-
public $wplc_node_enable_typing_preview;
|
62 |
-
public $wplc_powered_by_link;
|
63 |
public $wplc_pro_auto_first_response_chat_msg;
|
64 |
public $wplc_pro_chat_email_address;
|
65 |
public $wplc_pro_chat_email_offline_subject;
|
@@ -86,8 +83,6 @@ class TCXSettings {
|
|
86 |
public $wplc_social_fb;
|
87 |
public $wplc_social_tw;
|
88 |
public $wplc_text_chat_ended;
|
89 |
-
public $wplc_typing_enabled;
|
90 |
-
public $wplc_popout_enabled;
|
91 |
public $wplc_use_geolocalization;
|
92 |
public $wplc_user_alternative_text;
|
93 |
public $wplc_user_default_visitor_name;
|
@@ -115,6 +110,16 @@ class TCXSettings {
|
|
115 |
public $wplc_offline_greeting_mode;
|
116 |
public $wplc_offline_greeting_message;
|
117 |
public $wplc_ignore_queue_ownership;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
118 |
|
119 |
private function __construct() {
|
120 |
|
@@ -143,7 +148,6 @@ class TCXSettings {
|
|
143 |
"wplc_enable_encryption" => "boolean",
|
144 |
"wplc_enable_initiate_chat" => "boolean",
|
145 |
"wplc_enable_msg_sound" => "boolean",
|
146 |
-
"wplc_enable_transcripts" => "boolean",
|
147 |
"wplc_enable_visitor_sound" => "boolean",
|
148 |
"wplc_enable_voice_notes_on_admin" => "boolean",
|
149 |
"wplc_enable_voice_notes_on_visitor" => "boolean",
|
@@ -169,9 +173,7 @@ class TCXSettings {
|
|
169 |
"wplc_agent_default_name" => "string",
|
170 |
"wplc_messagetone" => "string",
|
171 |
"wplc_new_chat_ringer_count" => "integer",
|
172 |
-
"wplc_theme"
|
173 |
-
"wplc_node_enable_typing_preview" => "boolean",
|
174 |
-
"wplc_powered_by_link" => "string",
|
175 |
"wplc_powered_by" => "boolean",
|
176 |
"wplc_pro_auto_first_response_chat_msg" => "string",
|
177 |
"wplc_pro_chat_email_address" => "string",
|
@@ -199,7 +201,6 @@ class TCXSettings {
|
|
199 |
"wplc_social_fb" => "url",
|
200 |
"wplc_social_tw" => "url",
|
201 |
"wplc_text_chat_ended" => "string",
|
202 |
-
"wplc_typing_enabled" => "boolean",
|
203 |
"wplc_use_geolocalization" => "boolean",
|
204 |
"wplc_user_alternative_text" => "string",
|
205 |
"wplc_user_default_visitor_name" => "string",
|
@@ -236,12 +237,21 @@ class TCXSettings {
|
|
236 |
"wplc_allow_chat" => "boolean",
|
237 |
"wplc_allow_video" => "boolean",
|
238 |
"wplc_cluster_manager_route_server" => "string",
|
239 |
-
"wplc_popout_enabled" => "boolean",
|
240 |
"wplc_greeting_mode" => "string",
|
241 |
"wplc_greeting_message" => "string",
|
242 |
"wplc_offline_greeting_mode" => "string",
|
|
|
|
|
243 |
"wplc_offline_greeting_message" => "string",
|
244 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
245 |
);
|
246 |
}
|
247 |
|
@@ -261,7 +271,7 @@ class TCXSettings {
|
|
261 |
$result->wplc_chat_icon = wplc_plugins_url( '/images/wplc_icon.png', $wplc_base_file );
|
262 |
$result->wplc_chat_icon_type = "Default";
|
263 |
$result->wplc_chat_logo = '';
|
264 |
-
$result->wplc_agent_logo =
|
265 |
$result->wplc_chatbox_height = 0;
|
266 |
$result->wplc_chatbox_absolute_height = 330;
|
267 |
$result->wplc_close_btn_text = __( "close", 'wp-live-chat-support' );
|
@@ -272,7 +282,6 @@ class TCXSettings {
|
|
272 |
$result->wplc_enable_encryption = false;
|
273 |
$result->wplc_enable_initiate_chat = false;
|
274 |
$result->wplc_enable_msg_sound = true;
|
275 |
-
$result->wplc_enable_transcripts = true;
|
276 |
$result->wplc_enable_visitor_sound = true;
|
277 |
$result->wplc_enable_voice_notes_on_admin = false;
|
278 |
$result->wplc_enable_voice_notes_on_visitor = false;
|
@@ -300,9 +309,7 @@ class TCXSettings {
|
|
300 |
$result->wplc_agent_default_name = 'Support';
|
301 |
$result->wplc_messagetone = '';
|
302 |
$result->wplc_new_chat_ringer_count = 4;
|
303 |
-
$result->wplc_theme
|
304 |
-
$result->wplc_node_enable_typing_preview = false;
|
305 |
-
$result->wplc_powered_by_link = '';
|
306 |
$result->wplc_powered_by = true;
|
307 |
$result->wplc_pro_auto_first_response_chat_msg = '';
|
308 |
$result->wplc_pro_chat_email_address = get_option( 'admin_email' );
|
@@ -330,7 +337,6 @@ class TCXSettings {
|
|
330 |
$result->wplc_social_fb = '';
|
331 |
$result->wplc_social_tw = '';
|
332 |
$result->wplc_text_chat_ended = __( "Your session is over. Please feel free to contact us again!", 'wp-live-chat-support' );
|
333 |
-
$result->wplc_typing_enabled = true;
|
334 |
$result->wplc_use_geolocalization = false;
|
335 |
$result->wplc_user_alternative_text = __( "Please click 'Chat' to initiate a chat with an agent", 'wp-live-chat-support' );
|
336 |
$result->wplc_user_default_visitor_name = __( "Guest", 'wp-live-chat-support' );
|
@@ -348,14 +354,24 @@ class TCXSettings {
|
|
348 |
$result->wplc_allow_call = false;
|
349 |
$result->wplc_allow_chat = true;
|
350 |
$result->wplc_allow_video = false;
|
351 |
-
$result->wplc_popout_enabled = false;
|
352 |
$result->wplc_cluster_manager_route_server = '';
|
353 |
$result->wplc_greeting_mode = 'none';
|
354 |
$result->wplc_greeting_message = __( "Hey, we're here to help!", 'wp-live-chat-support' );
|
355 |
$result->wplc_offline_greeting_mode = 'none';
|
|
|
|
|
356 |
$result->wplc_offline_greeting_message = __( "Hey, we're here to help!", 'wp-live-chat-support' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
357 |
$result->wplc_ignore_queue_ownership = false;
|
358 |
-
$result->
|
|
|
|
|
359 |
"enable" => true,
|
360 |
"size" => 2,
|
361 |
"logo" => "",
|
@@ -369,7 +385,7 @@ class TCXSettings {
|
|
369 |
<span class=\"wplc_block_icon\">{wplc_icon}</span>
|
370 |
</div>"
|
371 |
);
|
372 |
-
$result->wplc_autorespond_settings
|
373 |
"wplc_ar_enable" => false,
|
374 |
"wplc_ar_from_name" => "3CX Live Chat",
|
375 |
"wplc_ar_from_email" => get_option( 'admin_email' ),
|
@@ -449,6 +465,28 @@ class TCXSettings {
|
|
449 |
return $result;
|
450 |
}
|
451 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
452 |
public function getSaveUrl() {
|
453 |
return admin_url( "admin.php?page=wplivechat-menu-settings&wplc_action=save_settings&nonce=" . wp_create_nonce( "saveSettings" ) );
|
454 |
}
|
30 |
public $wplc_enable_encryption;
|
31 |
public $wplc_enable_initiate_chat;
|
32 |
public $wplc_enable_msg_sound;
|
|
|
33 |
public $wplc_enable_visitor_sound;
|
34 |
public $wplc_enable_voice_notes_on_admin;
|
35 |
public $wplc_enable_voice_notes_on_visitor;
|
57 |
public $wplc_messagetone;
|
58 |
public $wplc_new_chat_ringer_count;
|
59 |
public $wplc_theme;
|
|
|
|
|
60 |
public $wplc_pro_auto_first_response_chat_msg;
|
61 |
public $wplc_pro_chat_email_address;
|
62 |
public $wplc_pro_chat_email_offline_subject;
|
83 |
public $wplc_social_fb;
|
84 |
public $wplc_social_tw;
|
85 |
public $wplc_text_chat_ended;
|
|
|
|
|
86 |
public $wplc_use_geolocalization;
|
87 |
public $wplc_user_alternative_text;
|
88 |
public $wplc_user_default_visitor_name;
|
110 |
public $wplc_offline_greeting_mode;
|
111 |
public $wplc_offline_greeting_message;
|
112 |
public $wplc_ignore_queue_ownership;
|
113 |
+
public $wplc_offline_name_message;
|
114 |
+
public $wplc_offline_email_message;
|
115 |
+
public $wplc_offline_length_error;
|
116 |
+
public $wplc_offline_email_invalid;
|
117 |
+
public $wplc_offline_name_invalid;
|
118 |
+
public $wplc_rate_message;
|
119 |
+
public $wplc_rate_comments_message;
|
120 |
+
public $wplc_rate_feedback_request_message;
|
121 |
+
public $wplc_call_title;
|
122 |
+
public $wplc_language;
|
123 |
|
124 |
private function __construct() {
|
125 |
|
148 |
"wplc_enable_encryption" => "boolean",
|
149 |
"wplc_enable_initiate_chat" => "boolean",
|
150 |
"wplc_enable_msg_sound" => "boolean",
|
|
|
151 |
"wplc_enable_visitor_sound" => "boolean",
|
152 |
"wplc_enable_voice_notes_on_admin" => "boolean",
|
153 |
"wplc_enable_voice_notes_on_visitor" => "boolean",
|
173 |
"wplc_agent_default_name" => "string",
|
174 |
"wplc_messagetone" => "string",
|
175 |
"wplc_new_chat_ringer_count" => "integer",
|
176 |
+
"wplc_theme" => "string",
|
|
|
|
|
177 |
"wplc_powered_by" => "boolean",
|
178 |
"wplc_pro_auto_first_response_chat_msg" => "string",
|
179 |
"wplc_pro_chat_email_address" => "string",
|
201 |
"wplc_social_fb" => "url",
|
202 |
"wplc_social_tw" => "url",
|
203 |
"wplc_text_chat_ended" => "string",
|
|
|
204 |
"wplc_use_geolocalization" => "boolean",
|
205 |
"wplc_user_alternative_text" => "string",
|
206 |
"wplc_user_default_visitor_name" => "string",
|
237 |
"wplc_allow_chat" => "boolean",
|
238 |
"wplc_allow_video" => "boolean",
|
239 |
"wplc_cluster_manager_route_server" => "string",
|
|
|
240 |
"wplc_greeting_mode" => "string",
|
241 |
"wplc_greeting_message" => "string",
|
242 |
"wplc_offline_greeting_mode" => "string",
|
243 |
+
"wplc_offline_name_message" => "string",
|
244 |
+
"wplc_offline_email_message" => "string",
|
245 |
"wplc_offline_greeting_message" => "string",
|
246 |
+
"wplc_offline_length_error" => "string",
|
247 |
+
"wplc_offline_email_invalid" => "string",
|
248 |
+
"wplc_offline_name_invalid" => "string",
|
249 |
+
"wplc_ignore_queue_ownership" => "boolean",
|
250 |
+
"wplc_rate_message" => "string",
|
251 |
+
"wplc_rate_comments_message" => "string",
|
252 |
+
"wplc_rate_feedback_request_message" => "string",
|
253 |
+
"wplc_call_title" => "string",
|
254 |
+
"wplc_language" => "string",
|
255 |
);
|
256 |
}
|
257 |
|
271 |
$result->wplc_chat_icon = wplc_plugins_url( '/images/wplc_icon.png', $wplc_base_file );
|
272 |
$result->wplc_chat_icon_type = "Default";
|
273 |
$result->wplc_chat_logo = '';
|
274 |
+
$result->wplc_agent_logo = '';
|
275 |
$result->wplc_chatbox_height = 0;
|
276 |
$result->wplc_chatbox_absolute_height = 330;
|
277 |
$result->wplc_close_btn_text = __( "close", 'wp-live-chat-support' );
|
282 |
$result->wplc_enable_encryption = false;
|
283 |
$result->wplc_enable_initiate_chat = false;
|
284 |
$result->wplc_enable_msg_sound = true;
|
|
|
285 |
$result->wplc_enable_visitor_sound = true;
|
286 |
$result->wplc_enable_voice_notes_on_admin = false;
|
287 |
$result->wplc_enable_voice_notes_on_visitor = false;
|
309 |
$result->wplc_agent_default_name = 'Support';
|
310 |
$result->wplc_messagetone = '';
|
311 |
$result->wplc_new_chat_ringer_count = 4;
|
312 |
+
$result->wplc_theme = '3CX';
|
|
|
|
|
313 |
$result->wplc_powered_by = true;
|
314 |
$result->wplc_pro_auto_first_response_chat_msg = '';
|
315 |
$result->wplc_pro_chat_email_address = get_option( 'admin_email' );
|
337 |
$result->wplc_social_fb = '';
|
338 |
$result->wplc_social_tw = '';
|
339 |
$result->wplc_text_chat_ended = __( "Your session is over. Please feel free to contact us again!", 'wp-live-chat-support' );
|
|
|
340 |
$result->wplc_use_geolocalization = false;
|
341 |
$result->wplc_user_alternative_text = __( "Please click 'Chat' to initiate a chat with an agent", 'wp-live-chat-support' );
|
342 |
$result->wplc_user_default_visitor_name = __( "Guest", 'wp-live-chat-support' );
|
354 |
$result->wplc_allow_call = false;
|
355 |
$result->wplc_allow_chat = true;
|
356 |
$result->wplc_allow_video = false;
|
|
|
357 |
$result->wplc_cluster_manager_route_server = '';
|
358 |
$result->wplc_greeting_mode = 'none';
|
359 |
$result->wplc_greeting_message = __( "Hey, we're here to help!", 'wp-live-chat-support' );
|
360 |
$result->wplc_offline_greeting_mode = 'none';
|
361 |
+
$result->wplc_offline_name_message = __( "Could we have your name?", 'wp-live-chat-support' );
|
362 |
+
$result->wplc_offline_email_message = __( "Could we have your email?", 'wp-live-chat-support' );
|
363 |
$result->wplc_offline_greeting_message = __( "Hey, we're here to help!", 'wp-live-chat-support' );
|
364 |
+
$result->wplc_offline_length_error = __( "Maximum characters reached", 'wp-live-chat-support' );
|
365 |
+
$result->wplc_offline_email_invalid = __( "I'm sorry, that doesn't look like an email address. Can you try again?", 'wp-live-chat-support' );
|
366 |
+
$result->wplc_offline_name_invalid = __( "I'm sorry, the provided name is not valid.", 'wp-live-chat-support' );
|
367 |
+
$result->wplc_rate_message = __( "Rate your conversation", 'wp-live-chat-support' );
|
368 |
+
$result->wplc_rate_comments_message = __( "Tell us your feedback", 'wp-live-chat-support' );
|
369 |
+
$result->wplc_rate_feedback_request_message = __( 'Do you want to give us more detailed feedback?', 'wp-live-chat-support' );
|
370 |
+
$result->wplc_call_title = __( "Call Us", 'wp-live-chat-support' );
|
371 |
$result->wplc_ignore_queue_ownership = false;
|
372 |
+
$result->wplc_language = "browser";
|
373 |
+
|
374 |
+
$result->wplc_gutenberg_settings = array(
|
375 |
"enable" => true,
|
376 |
"size" => 2,
|
377 |
"logo" => "",
|
385 |
<span class=\"wplc_block_icon\">{wplc_icon}</span>
|
386 |
</div>"
|
387 |
);
|
388 |
+
$result->wplc_autorespond_settings = array(
|
389 |
"wplc_ar_enable" => false,
|
390 |
"wplc_ar_from_name" => "3CX Live Chat",
|
391 |
"wplc_ar_from_email" => get_option( 'admin_email' ),
|
465 |
return $result;
|
466 |
}
|
467 |
|
468 |
+
public static function setTheme( $theme_alias ) {
|
469 |
+
$result = false;
|
470 |
+
$theme = TCXTheme::get_theme($theme_alias);
|
471 |
+
if($theme_alias === 'custom' || $theme!==null) {
|
472 |
+
self::setSettingValue( 'wplc_theme', $theme_alias );
|
473 |
+
if ( $theme_alias !== 'custom' ) {
|
474 |
+
|
475 |
+
self::setSettingValue( 'wplc_settings_base_color', $theme->base_color );
|
476 |
+
self::setSettingValue( 'wplc_settings_agent_color', $theme->agent_color );
|
477 |
+
self::setSettingValue( 'wplc_settings_client_color', $theme->client_color );
|
478 |
+
self::setSettingValue( 'wplc_settings_button_color', $theme->button_color );
|
479 |
+
$result = true;
|
480 |
+
|
481 |
+
} else {
|
482 |
+
$result = true;
|
483 |
+
}
|
484 |
+
}
|
485 |
+
|
486 |
+
return $result;
|
487 |
+
}
|
488 |
+
|
489 |
+
|
490 |
public function getSaveUrl() {
|
491 |
return admin_url( "admin.php?page=wplivechat-menu-settings&wplc_action=save_settings&nonce=" . wp_create_nonce( "saveSettings" ) );
|
492 |
}
|
includes/models/theme.php
CHANGED
@@ -4,8 +4,49 @@ class TCXTheme
|
|
4 |
public function __construct()
|
5 |
{}
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
|
8 |
public $name;
|
|
|
9 |
public $base_color;
|
10 |
public $button_color;
|
11 |
public $agent_color;
|
@@ -13,4 +54,4 @@ class TCXTheme
|
|
13 |
|
14 |
}
|
15 |
|
16 |
-
?>
|
4 |
public function __construct()
|
5 |
{}
|
6 |
|
7 |
+
public static function create_theme($alias,$name,$base_color,$button_color,$agent_color,$client_color){
|
8 |
+
$result = new TCXTheme();
|
9 |
+
$result->alias = $alias;
|
10 |
+
$result->name = $name;
|
11 |
+
$result->base_color = $base_color;
|
12 |
+
$result->button_color = $button_color;
|
13 |
+
$result->agent_color = $agent_color;
|
14 |
+
$result->client_color = $client_color;
|
15 |
+
|
16 |
+
return $result;
|
17 |
+
|
18 |
+
}
|
19 |
+
|
20 |
+
public static function available_themes(){
|
21 |
+
$themes = [];
|
22 |
+
array_push($themes,self::create_theme('3CX','3CX','#373737','#0596d4','#eeeeee','#d4d4d4'));
|
23 |
+
array_push($themes,self::create_theme('SaltyWater','Salty Water','#186c77','#05d6d6','#eeeeee','#d4d4d4'));
|
24 |
+
array_push($themes,self::create_theme('SummerVibes','Summer Vibes','#d97e17','#d63005','#eeeeee','#d4d4d4'));
|
25 |
+
return $themes;
|
26 |
+
}
|
27 |
+
|
28 |
+
public static function get_theme($alias){
|
29 |
+
|
30 |
+
$result = array_filter(
|
31 |
+
self::available_themes(),
|
32 |
+
function ($theme) use (&$alias) {
|
33 |
+
return $theme->alias == $alias;
|
34 |
+
}
|
35 |
+
);
|
36 |
+
if(count($result)===1)
|
37 |
+
{
|
38 |
+
return $result[array_keys($result)[0]];
|
39 |
+
}
|
40 |
+
else
|
41 |
+
{
|
42 |
+
return null;
|
43 |
+
}
|
44 |
+
|
45 |
+
|
46 |
+
}
|
47 |
|
48 |
public $name;
|
49 |
+
public $alias;
|
50 |
public $base_color;
|
51 |
public $button_color;
|
52 |
public $agent_color;
|
54 |
|
55 |
}
|
56 |
|
57 |
+
?>
|
includes/wplc_activator.php
CHANGED
@@ -41,9 +41,6 @@ function wplc_choose_deactivate() {
|
|
41 |
|
42 |
function wplc_redirect_on_activate($plugin){
|
43 |
if($plugin == 'wp-live-chat-support/wp-live-chat-support.php') {
|
44 |
-
|
45 |
-
exit( wp_redirect( admin_url( 'admin.php?page=wplc-getting-started' ) ) );
|
46 |
-
//exit( wp_redirect( admin_url( 'admin.php?page=wplivechat-menu-settings') ) );
|
47 |
-
}
|
48 |
}
|
49 |
}
|
41 |
|
42 |
function wplc_redirect_on_activate($plugin){
|
43 |
if($plugin == 'wp-live-chat-support/wp-live-chat-support.php') {
|
44 |
+
wplc_redirect_to_wizard();
|
|
|
|
|
|
|
45 |
}
|
46 |
}
|
includes/wplc_updater.php
CHANGED
@@ -15,6 +15,7 @@ class TCXUpdater {
|
|
15 |
"9.0.25" => array( "wplc_migrate_settings_9_0_25" ),
|
16 |
"9.1.1" => array( "wplc_migrate_settings_9_1_1","wplc_upgrade_tables_to_utf8mb4" ),
|
17 |
"9.2.0" => array( "wplc_migrate_settings_9_2_0" ),
|
|
|
18 |
);
|
19 |
}
|
20 |
|
@@ -378,9 +379,6 @@ class TCXUpdater {
|
|
378 |
|
379 |
$wplc_et_data = get_option( "WPLC_ET_SETTINGS" );
|
380 |
if ( ! empty( $wplc_et_data ) ) {
|
381 |
-
if ( isset( $wplc_et_data['wplc_enable_transcripts'] ) ) {
|
382 |
-
$wplc_settings->wplc_enable_transcripts = boolval( $wplc_et_data['wplc_enable_transcripts'] );
|
383 |
-
}
|
384 |
if ( isset( $wplc_et_data['wplc_send_transcripts_when_chat_ends'] ) ) {
|
385 |
$wplc_settings->wplc_send_transcripts_when_chat_ends = boolval( $wplc_et_data['wplc_send_transcripts_when_chat_ends'] );
|
386 |
}
|
@@ -524,6 +522,15 @@ class TCXUpdater {
|
|
524 |
return $wplc_settings;
|
525 |
}
|
526 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
527 |
public function wplc_upgrade_tables_to_utf8mb4($dbSettings, $wplc_settings){
|
528 |
global $wplc_tblname_chats;
|
529 |
global $wplc_tblname_msgs;
|
15 |
"9.0.25" => array( "wplc_migrate_settings_9_0_25" ),
|
16 |
"9.1.1" => array( "wplc_migrate_settings_9_1_1","wplc_upgrade_tables_to_utf8mb4" ),
|
17 |
"9.2.0" => array( "wplc_migrate_settings_9_2_0" ),
|
18 |
+
"9.3.0" => array( "wplc_migrate_settings_9_3_0" ),
|
19 |
);
|
20 |
}
|
21 |
|
379 |
|
380 |
$wplc_et_data = get_option( "WPLC_ET_SETTINGS" );
|
381 |
if ( ! empty( $wplc_et_data ) ) {
|
|
|
|
|
|
|
382 |
if ( isset( $wplc_et_data['wplc_send_transcripts_when_chat_ends'] ) ) {
|
383 |
$wplc_settings->wplc_send_transcripts_when_chat_ends = boolval( $wplc_et_data['wplc_send_transcripts_when_chat_ends'] );
|
384 |
}
|
522 |
return $wplc_settings;
|
523 |
}
|
524 |
|
525 |
+
public function wplc_migrate_settings_9_3_0($dbSettings, $wplc_settings){
|
526 |
+
if ( isset($wplc_settings->wplc_popout_enabled) ) {
|
527 |
+
unset($wplc_settings->wplc_popout_enabled);
|
528 |
+
}
|
529 |
+
return $wplc_settings;
|
530 |
+
}
|
531 |
+
|
532 |
+
|
533 |
+
|
534 |
public function wplc_upgrade_tables_to_utf8mb4($dbSettings, $wplc_settings){
|
535 |
global $wplc_tblname_chats;
|
536 |
global $wplc_tblname_msgs;
|
js/wplc_utils.js
CHANGED
@@ -84,6 +84,5 @@ function wplc_lightenDarkenColor(color, percent) {
|
|
84 |
B = (num >> 8 & 0x00FF) + amt,
|
85 |
G = (num & 0x0000FF) + amt;
|
86 |
var result = "#" + (0x1000000 + (R<255?R<1?0:R:255)*0x10000 + (B<255?B<1?0:B:255)*0x100 + (G<255?G<1?0:G:255)).toString(16).slice(1);
|
87 |
-
console.log("color",result);
|
88 |
return result;
|
89 |
}
|
84 |
B = (num >> 8 & 0x00FF) + amt,
|
85 |
G = (num & 0x0000FF) + amt;
|
86 |
var result = "#" + (0x1000000 + (R<255?R<1?0:R:255)*0x10000 + (B<255?B<1?0:B:255)*0x100 + (G<255?G<1?0:G:255)).toString(16).slice(1);
|
|
|
87 |
return result;
|
88 |
}
|
modules/activation_wizard/activation_wizard_controller.php
CHANGED
@@ -6,6 +6,9 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
6 |
class ActivationWizardController extends BaseController {
|
7 |
|
8 |
public function __construct( $alias ) {
|
|
|
|
|
|
|
9 |
parent::__construct( __( "Activation Wizard", 'wp-live-chat-support' ), $alias );
|
10 |
$this->init_actions();
|
11 |
$this->parse_action( $this->available_actions );
|
@@ -15,52 +18,52 @@ class ActivationWizardController extends BaseController {
|
|
15 |
//Channels :: wp,phone,mcu
|
16 |
$steps_array = array(
|
17 |
0 => (object) array(
|
18 |
-
"id"
|
19 |
-
"icon"
|
20 |
-
"label"
|
21 |
-
"view"
|
22 |
-
"channels"
|
23 |
-
"jsvalidation" =>""
|
24 |
),
|
25 |
1 => (object) array(
|
26 |
-
"id"
|
27 |
-
"icon"
|
28 |
-
"label"
|
29 |
-
"view"
|
30 |
-
"channels"
|
31 |
-
"jsvalidation" =>""
|
32 |
),
|
33 |
2 => (object) array(
|
34 |
-
"id"
|
35 |
-
"icon"
|
36 |
-
"label"
|
37 |
-
"view"
|
38 |
-
"channels"
|
39 |
-
"jsvalidation" =>"validatePbx"
|
40 |
),
|
41 |
3 => (object) array(
|
42 |
-
"id"
|
43 |
-
"icon"
|
44 |
-
"label"
|
45 |
-
"view"
|
46 |
-
"channels"
|
47 |
-
"jsvalidation" =>""
|
48 |
),
|
49 |
4 => (object) array(
|
50 |
-
"id"
|
51 |
-
"icon"
|
52 |
-
"label"
|
53 |
-
"view"
|
54 |
-
"channels"
|
55 |
-
"jsvalidation" =>""
|
56 |
),
|
57 |
5 => (object) array(
|
58 |
-
"id"
|
59 |
-
"icon"
|
60 |
-
"label"
|
61 |
-
"view"
|
62 |
-
"channels"
|
63 |
-
"jsvalidation" =>""
|
64 |
),
|
65 |
);
|
66 |
|
@@ -125,50 +128,54 @@ class ActivationWizardController extends BaseController {
|
|
125 |
|
126 |
if ( array_key_exists( 'wplc_pbx_exist', $data ) ) {
|
127 |
TCXSettings::setSettingValue( 'wplc_channel', $data['wplc_pbx_exist'] );
|
128 |
-
if($data['wplc_pbx_exist']==='phone')
|
129 |
-
{
|
130 |
-
TCXSettings::setSettingValue( 'wplc_popout_enabled', 1 );
|
131 |
-
}
|
132 |
$result['Channel'] = true;
|
133 |
}
|
134 |
|
135 |
-
if ( array_key_exists( '
|
136 |
-
|
137 |
-
|
138 |
-
TCXSettings::setSettingValue( 'wplc_settings_base_color', $color );
|
139 |
-
$result['BaseColor'] = true;
|
140 |
-
} else {
|
141 |
-
$result['BaseColor'] = false;
|
142 |
}
|
143 |
-
}
|
144 |
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
|
|
154 |
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
172 |
}
|
173 |
}
|
174 |
|
@@ -207,7 +214,8 @@ class ActivationWizardController extends BaseController {
|
|
207 |
'ClientColor' => __( 'Visitor chat bubble', 'wp-live-chat-support' ),
|
208 |
'clickToTalkUrl' => __( 'Click2Talk url', 'wp-live-chat-support' ),
|
209 |
'c2cMode' => __( 'Chat mode', 'wp-live-chat-support' ),
|
210 |
-
'c2cAuthType' => __( 'Chat authentication fields', 'wp-live-chat-support' )
|
|
|
211 |
);
|
212 |
$this->view_data['fully_completed'] = count( $this->view_data['activation_result']['Agents']['Error'] ) == 0;
|
213 |
$this->view_data['new_agents'] = count( $this->view_data['activation_result']['Agents']['Success'] ) == 0;
|
@@ -225,6 +233,8 @@ class ActivationWizardController extends BaseController {
|
|
225 |
$this->view_data["saveUrl"] = admin_url( "admin.php?page=wplc-getting-started&wplc_action=save_activation_settings&nonce=" . wp_create_nonce( "saveActivationSettings" ) );
|
226 |
$this->view_data["active_channels"] = count( explode( ',', str_replace( 'wp,', '', WPLC_ENABLE_CHANNELS ) ) );
|
227 |
|
|
|
|
|
228 |
return $this->load_view( plugin_dir_path( __FILE__ ) . "activation_wizard_view.php", $return_html, $add_wrapper );
|
229 |
}
|
230 |
}
|
6 |
class ActivationWizardController extends BaseController {
|
7 |
|
8 |
public function __construct( $alias ) {
|
9 |
+
if ( get_option( "WPLC_SETUP_WIZARD_RUN", 'NOTEXIST' ) === "1" ) {
|
10 |
+
exit( wp_redirect( admin_url( 'admin.php?page=wplivechat-menu' ) ) );
|
11 |
+
}
|
12 |
parent::__construct( __( "Activation Wizard", 'wp-live-chat-support' ), $alias );
|
13 |
$this->init_actions();
|
14 |
$this->parse_action( $this->available_actions );
|
18 |
//Channels :: wp,phone,mcu
|
19 |
$steps_array = array(
|
20 |
0 => (object) array(
|
21 |
+
"id" => "step-channel",
|
22 |
+
"icon" => 'progress1.svg',
|
23 |
+
"label" => __( "Select Channel", 'wp-live-chat-support' ),
|
24 |
+
"view" => "wizard_partials/channel_selection.php",
|
25 |
+
"channels" => "*",
|
26 |
+
"jsvalidation" => ""
|
27 |
),
|
28 |
1 => (object) array(
|
29 |
+
"id" => "step-agents",
|
30 |
+
"icon" => 'progress2.svg',
|
31 |
+
"label" => __( "Invite Agents", 'wp-live-chat-support' ),
|
32 |
+
"view" => "wizard_partials/invite_agents.php",
|
33 |
+
"channels" => "wp,mcu",
|
34 |
+
"jsvalidation" => ""
|
35 |
),
|
36 |
2 => (object) array(
|
37 |
+
"id" => "step-pbx",
|
38 |
+
"icon" => 'progress2.svg',
|
39 |
+
"label" => __( "PBX Settings", 'wp-live-chat-support' ),
|
40 |
+
"view" => "wizard_partials/pbx_settings.php",
|
41 |
+
"channels" => "phone",
|
42 |
+
"jsvalidation" => "validatePbx"
|
43 |
),
|
44 |
3 => (object) array(
|
45 |
+
"id" => "step-auth",
|
46 |
+
"icon" => 'progress3.svg',
|
47 |
+
"label" => __( "Chat Settings", 'wp-live-chat-support' ),
|
48 |
+
"view" => "wizard_partials/auth_settings.php",
|
49 |
+
"channels" => "phone",
|
50 |
+
"jsvalidation" => ""
|
51 |
),
|
52 |
4 => (object) array(
|
53 |
+
"id" => "step-styling",
|
54 |
+
"icon" => 'progress4.svg',
|
55 |
+
"label" => __( "Style Settings", 'wp-live-chat-support' ),
|
56 |
+
"view" => "wizard_partials/style_settings.php",
|
57 |
+
"channels" => "*",
|
58 |
+
"jsvalidation" => ""
|
59 |
),
|
60 |
5 => (object) array(
|
61 |
+
"id" => "step-finish",
|
62 |
+
"icon" => 'progress6.svg',
|
63 |
+
"label" => __( "Finish", 'wp-live-chat-support' ),
|
64 |
+
"view" => "wizard_partials/wizard_finish.php",
|
65 |
+
"channels" => "*",
|
66 |
+
"jsvalidation" => ""
|
67 |
),
|
68 |
);
|
69 |
|
128 |
|
129 |
if ( array_key_exists( 'wplc_pbx_exist', $data ) ) {
|
130 |
TCXSettings::setSettingValue( 'wplc_channel', $data['wplc_pbx_exist'] );
|
|
|
|
|
|
|
|
|
131 |
$result['Channel'] = true;
|
132 |
}
|
133 |
|
134 |
+
if ( array_key_exists( 'wplc_theme', $data ) ) {
|
135 |
+
if ( TCXSettings::setTheme( $data["wplc_theme"] ) ) {
|
136 |
+
$result['Theme'] = true;
|
|
|
|
|
|
|
|
|
137 |
}
|
|
|
138 |
|
139 |
+
if ( $data["wplc_theme"] === 'custom' ) {
|
140 |
+
if ( array_key_exists( 'wplc_settings_base_color', $data ) ) {
|
141 |
+
$color = sanitize_hex_color( $data['wplc_settings_base_color'] );
|
142 |
+
if ( $color !== '' && $color !== null ) {
|
143 |
+
TCXSettings::setSettingValue( 'wplc_settings_base_color', $color );
|
144 |
+
$result['BaseColor'] = true;
|
145 |
+
} else {
|
146 |
+
$result['BaseColor'] = false;
|
147 |
+
}
|
148 |
+
}
|
149 |
|
150 |
+
if ( array_key_exists( 'wplc_settings_agent_color', $data ) ) {
|
151 |
+
$color = sanitize_hex_color( $data['wplc_settings_agent_color'] );
|
152 |
+
if ( $color !== '' && $color !== null ) {
|
153 |
+
TCXSettings::setSettingValue( 'wplc_settings_agent_color', $color );
|
154 |
+
$result['AgentColor'] = true;
|
155 |
+
} else {
|
156 |
+
$result['AgentColor'] = false;
|
157 |
+
}
|
158 |
+
}
|
159 |
|
160 |
+
if ( array_key_exists( 'wplc_settings_client_color', $data ) ) {
|
161 |
+
$color = sanitize_hex_color( $data['wplc_settings_client_color'] );
|
162 |
+
if ( $color !== '' && $color !== null ) {
|
163 |
+
TCXSettings::setSettingValue( 'wplc_settings_client_color', $color );
|
164 |
+
$result['ClientColor'] = true;
|
165 |
+
} else {
|
166 |
+
$result['ClientColor'] = false;
|
167 |
+
}
|
168 |
+
}
|
169 |
+
|
170 |
+
if ( array_key_exists( 'wplc_settings_button_color', $data ) ) {
|
171 |
+
$color = sanitize_hex_color( $data['wplc_settings_button_color'] );
|
172 |
+
if ( $color !== '' && $color !== null ) {
|
173 |
+
TCXSettings::setSettingValue( 'wplc_settings_button_color', $color );
|
174 |
+
$result['ButtonsColor'] = true;
|
175 |
+
} else {
|
176 |
+
$result['ButtonsColor'] = false;
|
177 |
+
}
|
178 |
+
}
|
179 |
}
|
180 |
}
|
181 |
|
214 |
'ClientColor' => __( 'Visitor chat bubble', 'wp-live-chat-support' ),
|
215 |
'clickToTalkUrl' => __( 'Click2Talk url', 'wp-live-chat-support' ),
|
216 |
'c2cMode' => __( 'Chat mode', 'wp-live-chat-support' ),
|
217 |
+
'c2cAuthType' => __( 'Chat authentication fields', 'wp-live-chat-support' ),
|
218 |
+
'Theme' => __( "Theme", "wp-live-chat-support" )
|
219 |
);
|
220 |
$this->view_data['fully_completed'] = count( $this->view_data['activation_result']['Agents']['Error'] ) == 0;
|
221 |
$this->view_data['new_agents'] = count( $this->view_data['activation_result']['Agents']['Success'] ) == 0;
|
233 |
$this->view_data["saveUrl"] = admin_url( "admin.php?page=wplc-getting-started&wplc_action=save_activation_settings&nonce=" . wp_create_nonce( "saveActivationSettings" ) );
|
234 |
$this->view_data["active_channels"] = count( explode( ',', str_replace( 'wp,', '', WPLC_ENABLE_CHANNELS ) ) );
|
235 |
|
236 |
+
$this->view_data["themes"] = TCXTheme::available_themes();
|
237 |
+
|
238 |
return $this->load_view( plugin_dir_path( __FILE__ ) . "activation_wizard_view.php", $return_html, $add_wrapper );
|
239 |
}
|
240 |
}
|
modules/activation_wizard/activation_wizard_page.php
CHANGED
@@ -5,6 +5,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
5 |
}
|
6 |
add_action( 'admin_enqueue_scripts', 'wplc_add_activation_wizard_page_resources' );
|
7 |
add_action( 'admin_menu', 'wplc_admin_activation_wizard_menu', 5 );
|
|
|
8 |
function wplc_admin_activation_wizard_menu() {
|
9 |
$activationwizard_hook = wplc_add_ordered_submenu_page( 'wplivechat-menu', __( 'Getting Started', 'wp-live-chat-support' ), __( 'Getting Started', 'wp-live-chat-support' ), 'wplc_cap_admin', 'wplc-getting-started', 'wplc_admin_activation_wizard', 0 );
|
10 |
}
|
@@ -22,6 +23,9 @@ function wplc_add_activation_wizard_page_resources( $hook ) {
|
|
22 |
wp_register_style( "wplc-activation-wizard-css", wplc_plugins_url( '/activation_wizard_style.css', __FILE__ ), array( 'wplc-bootstrap' ), WPLC_PLUGIN_VERSION );
|
23 |
wp_enqueue_style( "wplc-activation-wizard-css" );
|
24 |
|
|
|
|
|
|
|
25 |
wp_register_script( 'wplc-bootstrap-js', wplc_plugins_url( '/js/vendor/bootstrap/bootstrap.min.js', $wplc_base_file ), array(), WPLC_PLUGIN_VERSION, true );
|
26 |
wp_enqueue_script( 'wplc-bootstrap-js' );
|
27 |
|
@@ -31,6 +35,9 @@ function wplc_add_activation_wizard_page_resources( $hook ) {
|
|
31 |
wp_register_script( "wplc-activation-wizard", wplc_plugins_url( '/js/activation_wizard.js', __FILE__ ), array( 'jquery' ), WPLC_PLUGIN_VERSION, true );
|
32 |
wp_enqueue_script( "wplc-activation-wizard" );
|
33 |
|
|
|
|
|
|
|
34 |
$script_data = array(
|
35 |
'chat_list_url' => $settings->wplc_channel == 'phone' ? admin_url( 'admin.php?page=wplivechat-menu-settings' ) : admin_url( 'admin.php?page=wplivechat-menu' ),
|
36 |
);
|
5 |
}
|
6 |
add_action( 'admin_enqueue_scripts', 'wplc_add_activation_wizard_page_resources' );
|
7 |
add_action( 'admin_menu', 'wplc_admin_activation_wizard_menu', 5 );
|
8 |
+
/*update_option( "WPLC_SETUP_WIZARD_RUN", false );*/
|
9 |
function wplc_admin_activation_wizard_menu() {
|
10 |
$activationwizard_hook = wplc_add_ordered_submenu_page( 'wplivechat-menu', __( 'Getting Started', 'wp-live-chat-support' ), __( 'Getting Started', 'wp-live-chat-support' ), 'wplc_cap_admin', 'wplc-getting-started', 'wplc_admin_activation_wizard', 0 );
|
11 |
}
|
23 |
wp_register_style( "wplc-activation-wizard-css", wplc_plugins_url( '/activation_wizard_style.css', __FILE__ ), array( 'wplc-bootstrap' ), WPLC_PLUGIN_VERSION );
|
24 |
wp_enqueue_style( "wplc-activation-wizard-css" );
|
25 |
|
26 |
+
wp_register_style("wplc-component-theme-picker-style", wplc_plugins_url( '/components/theme_picker/theme_picker.css', $wplc_base_file ),array(), WPLC_PLUGIN_VERSION );
|
27 |
+
wp_enqueue_style("wplc-component-theme-picker-style" );
|
28 |
+
|
29 |
wp_register_script( 'wplc-bootstrap-js', wplc_plugins_url( '/js/vendor/bootstrap/bootstrap.min.js', $wplc_base_file ), array(), WPLC_PLUGIN_VERSION, true );
|
30 |
wp_enqueue_script( 'wplc-bootstrap-js' );
|
31 |
|
35 |
wp_register_script( "wplc-activation-wizard", wplc_plugins_url( '/js/activation_wizard.js', __FILE__ ), array( 'jquery' ), WPLC_PLUGIN_VERSION, true );
|
36 |
wp_enqueue_script( "wplc-activation-wizard" );
|
37 |
|
38 |
+
wp_register_script("wplc-component-theme-picker", wplc_plugins_url( '/components/theme_picker/js/theme_picker.js', $wplc_base_file ),array(), WPLC_PLUGIN_VERSION,true );
|
39 |
+
wp_enqueue_script("wplc-component-theme-picker" );
|
40 |
+
|
41 |
$script_data = array(
|
42 |
'chat_list_url' => $settings->wplc_channel == 'phone' ? admin_url( 'admin.php?page=wplivechat-menu-settings' ) : admin_url( 'admin.php?page=wplivechat-menu' ),
|
43 |
);
|
modules/activation_wizard/activation_wizard_style.css
CHANGED
@@ -279,8 +279,8 @@
|
|
279 |
background-color: #F5F6FA;
|
280 |
}
|
281 |
|
282 |
-
#wplc-messagebox{
|
283 |
-
margin-top:25px;
|
284 |
}
|
285 |
|
286 |
#wplc-messagebox-left {
|
@@ -296,16 +296,16 @@
|
|
296 |
}
|
297 |
|
298 |
#wplc-messagebox-icon > img {
|
299 |
-
height:
|
300 |
}
|
301 |
|
302 |
#wplc-messagebox-complete {
|
303 |
position: absolute;
|
304 |
-
top:
|
305 |
-
line-height:
|
306 |
-
width:
|
307 |
-
font-size:
|
308 |
-
|
309 |
}
|
310 |
|
311 |
#wplc-messagebox-right {
|
@@ -315,7 +315,7 @@
|
|
315 |
min-height: 250px;
|
316 |
}
|
317 |
|
318 |
-
.wplc-messagebox-result-row{
|
319 |
line-height: 45px;
|
320 |
font-size: 15px;
|
321 |
font-weight: 500
|
@@ -325,9 +325,63 @@
|
|
325 |
border: solid 1px black;
|
326 |
}
|
327 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
328 |
.wplc_style_colorpicker {
|
329 |
-
|
330 |
-
padding: 1px !important;
|
331 |
}
|
332 |
|
333 |
.wplc_colorpicker_label {
|
@@ -335,12 +389,38 @@
|
|
335 |
font-weight: 500;
|
336 |
}
|
337 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
338 |
.wplc_chat_preview,
|
339 |
.wplc_colorpickers {
|
340 |
display: flex;
|
341 |
flex-direction: column;
|
342 |
justify-content: center;
|
343 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
344 |
/*----------------------------*/
|
345 |
|
346 |
#chat_preview_container .panel {
|
@@ -392,6 +472,12 @@
|
|
392 |
height: 35px
|
393 |
}
|
394 |
|
|
|
|
|
|
|
|
|
|
|
|
|
395 |
#chat_preview_container .img_cont {
|
396 |
position: relative;
|
397 |
height: 28px;
|
@@ -417,12 +503,8 @@
|
|
417 |
border: 1px solid white
|
418 |
}
|
419 |
|
420 |
-
|
421 |
#chat_preview_container .user_info {
|
422 |
-
margin-top: 11px;
|
423 |
-
margin-bottom: auto;
|
424 |
margin-left: 10px;
|
425 |
-
line-height: 1
|
426 |
}
|
427 |
|
428 |
|
@@ -448,7 +530,6 @@
|
|
448 |
|
449 |
#chat_preview_container .action_menu_btn {
|
450 |
color: white;
|
451 |
-
cursor: pointer;
|
452 |
width: 25px;
|
453 |
margin-right: 5px
|
454 |
}
|
@@ -503,7 +584,9 @@
|
|
503 |
|
504 |
#chat_preview_container .chatroot .chat-message-input-form .chat-message-input {
|
505 |
outline: none;
|
506 |
-
box-sizing: border-box
|
|
|
|
|
507 |
}
|
508 |
|
509 |
#chat_preview_container .chatroot .banner {
|
@@ -558,7 +641,6 @@
|
|
558 |
}
|
559 |
|
560 |
#chat_preview_container .chatroot .send-trigger {
|
561 |
-
cursor: pointer;
|
562 |
height: 100%;
|
563 |
margin-top: 10px;
|
564 |
margin-left: 10px
|
@@ -587,7 +669,11 @@
|
|
587 |
#chat_preview_container .messageroot .user_img_msg {
|
588 |
height: 27px;
|
589 |
min-width: 27px;
|
590 |
-
max-width: 27px
|
|
|
|
|
|
|
|
|
591 |
}
|
592 |
|
593 |
#chat_preview_container .messageroot .msg_bubble {
|
@@ -710,7 +796,7 @@
|
|
710 |
font-size: 11px !important;
|
711 |
font-family: inherit !important;
|
712 |
padding: 10px 0 4px 0 !important;
|
713 |
-
margin:0px !important;
|
714 |
display: block !important;
|
715 |
width: 100% !important;
|
716 |
border: none !important;
|
@@ -718,6 +804,7 @@
|
|
718 |
border-bottom: 1px solid #373737 !important;
|
719 |
border-bottom: 1px solid var(--call-us-form-header-background, #373737) !important
|
720 |
}
|
|
|
721 |
#chat_preview_container .chatbody {
|
722 |
overflow-y: hidden;
|
723 |
transition: height 0.2s ease-in-out
|
@@ -750,8 +837,8 @@
|
|
750 |
color: rgba(8, 149, 211, 1);
|
751 |
}
|
752 |
|
753 |
-
|
754 |
-
|
755 |
border: 1px solid #7e8993;
|
756 |
border-radius: 50%;
|
757 |
background: #fff;
|
@@ -788,4 +875,6 @@
|
|
788 |
|
789 |
.wplc-checklist-check {
|
790 |
height: 11px;
|
791 |
-
}
|
|
|
|
279 |
background-color: #F5F6FA;
|
280 |
}
|
281 |
|
282 |
+
#wplc-messagebox {
|
283 |
+
margin-top: 25px;
|
284 |
}
|
285 |
|
286 |
#wplc-messagebox-left {
|
296 |
}
|
297 |
|
298 |
#wplc-messagebox-icon > img {
|
299 |
+
height: 125px;
|
300 |
}
|
301 |
|
302 |
#wplc-messagebox-complete {
|
303 |
position: absolute;
|
304 |
+
top: 55px;
|
305 |
+
line-height: 18px;
|
306 |
+
width: 100px;
|
307 |
+
font-size: 15px;
|
308 |
+
left: 29px;
|
309 |
}
|
310 |
|
311 |
#wplc-messagebox-right {
|
315 |
min-height: 250px;
|
316 |
}
|
317 |
|
318 |
+
.wplc-messagebox-result-row {
|
319 |
line-height: 45px;
|
320 |
font-size: 15px;
|
321 |
font-weight: 500
|
325 |
border: solid 1px black;
|
326 |
}
|
327 |
|
328 |
+
.wplc_colorpicker_label {
|
329 |
+
font-size: 18px !important;
|
330 |
+
font-weight: 500;
|
331 |
+
}
|
332 |
+
|
333 |
+
/*.wplc_theme_chooser_container{
|
334 |
+
justify-content: space-evenly !important;
|
335 |
+
}
|
336 |
+
|
337 |
+
#wplc_custom_theme .wplc_pallet {
|
338 |
+
margin-bottom: 10px;
|
339 |
+
}
|
340 |
+
|
341 |
+
.wplc_pallet {
|
342 |
+
display: flex;
|
343 |
+
flex-direction: row;
|
344 |
+
align-items: center;
|
345 |
+
justify-content: flex-start;
|
346 |
+
position: relative;
|
347 |
+
min-height: 40px;
|
348 |
+
}
|
349 |
+
|
350 |
+
.wplc_pallet_color {
|
351 |
+
margin-right: 13px;
|
352 |
+
}
|
353 |
+
|
354 |
+
.wplc_colorpicker_border {
|
355 |
+
border-radius: 50%;
|
356 |
+
}
|
357 |
+
|
358 |
+
.wplc_no_border {
|
359 |
+
border-style: none;
|
360 |
+
padding: 0px;
|
361 |
+
}
|
362 |
+
|
363 |
+
.wplc_selected_border {
|
364 |
+
transition: .2s;
|
365 |
+
transform: scale(1.1);
|
366 |
+
box-shadow: 0 0 0 4px rgba(0, 0, 0, .2);
|
367 |
+
}
|
368 |
+
|
369 |
+
.wplc_selected_colorpicker {
|
370 |
+
width: 30px;
|
371 |
+
height: 30px;
|
372 |
+
}
|
373 |
+
|
374 |
+
.wplc_default_colorpicker {
|
375 |
+
width: 30px;
|
376 |
+
height: 30px;
|
377 |
+
}
|
378 |
+
|
379 |
+
#wplc_custom_theme .wplc_style_colorpicker {
|
380 |
+
cursor: pointer;
|
381 |
+
}
|
382 |
+
|
383 |
.wplc_style_colorpicker {
|
384 |
+
border-radius: 50%;
|
|
|
385 |
}
|
386 |
|
387 |
.wplc_colorpicker_label {
|
389 |
font-weight: 500;
|
390 |
}
|
391 |
|
392 |
+
.wplc_style_colorpicker_input {
|
393 |
+
width: 0px;
|
394 |
+
height: 0px;
|
395 |
+
position: absolute;
|
396 |
+
top: 22px;
|
397 |
+
left: 35px;
|
398 |
+
z-index: -1;
|
399 |
+
opacity: 0;
|
400 |
+
}
|
401 |
+
|
402 |
.wplc_chat_preview,
|
403 |
.wplc_colorpickers {
|
404 |
display: flex;
|
405 |
flex-direction: column;
|
406 |
justify-content: center;
|
407 |
}
|
408 |
+
|
409 |
+
!*.wplc_colorpickers>.row{
|
410 |
+
position:relative;
|
411 |
+
}
|
412 |
+
*!
|
413 |
+
#color_picker {
|
414 |
+
position: absolute;
|
415 |
+
}
|
416 |
+
|
417 |
+
#wplc_picker_header {
|
418 |
+
font-size: 15px;
|
419 |
+
font-weight: 600;
|
420 |
+
cursor: auto;
|
421 |
+
position: relative;
|
422 |
+
}*/
|
423 |
+
|
424 |
/*----------------------------*/
|
425 |
|
426 |
#chat_preview_container .panel {
|
472 |
height: 35px
|
473 |
}
|
474 |
|
475 |
+
#chat_preview_container .user_info_container {
|
476 |
+
display: flex;
|
477 |
+
flex-direction: row;
|
478 |
+
align-items: center;
|
479 |
+
}
|
480 |
+
|
481 |
#chat_preview_container .img_cont {
|
482 |
position: relative;
|
483 |
height: 28px;
|
503 |
border: 1px solid white
|
504 |
}
|
505 |
|
|
|
506 |
#chat_preview_container .user_info {
|
|
|
|
|
507 |
margin-left: 10px;
|
|
|
508 |
}
|
509 |
|
510 |
|
530 |
|
531 |
#chat_preview_container .action_menu_btn {
|
532 |
color: white;
|
|
|
533 |
width: 25px;
|
534 |
margin-right: 5px
|
535 |
}
|
584 |
|
585 |
#chat_preview_container .chatroot .chat-message-input-form .chat-message-input {
|
586 |
outline: none;
|
587 |
+
box-sizing: border-box;
|
588 |
+
border: none;
|
589 |
+
box-shadow: none;
|
590 |
}
|
591 |
|
592 |
#chat_preview_container .chatroot .banner {
|
641 |
}
|
642 |
|
643 |
#chat_preview_container .chatroot .send-trigger {
|
|
|
644 |
height: 100%;
|
645 |
margin-top: 10px;
|
646 |
margin-left: 10px
|
669 |
#chat_preview_container .messageroot .user_img_msg {
|
670 |
height: 27px;
|
671 |
min-width: 27px;
|
672 |
+
max-width: 27px;
|
673 |
+
}
|
674 |
+
|
675 |
+
#chat_preview_container .messageroot .user_img_msg circle {
|
676 |
+
fill: var(--call-us-client-text-color, #d4d4d4);
|
677 |
}
|
678 |
|
679 |
#chat_preview_container .messageroot .msg_bubble {
|
796 |
font-size: 11px !important;
|
797 |
font-family: inherit !important;
|
798 |
padding: 10px 0 4px 0 !important;
|
799 |
+
margin: 0px !important;
|
800 |
display: block !important;
|
801 |
width: 100% !important;
|
802 |
border: none !important;
|
804 |
border-bottom: 1px solid #373737 !important;
|
805 |
border-bottom: 1px solid var(--call-us-form-header-background, #373737) !important
|
806 |
}
|
807 |
+
|
808 |
#chat_preview_container .chatbody {
|
809 |
overflow-y: hidden;
|
810 |
transition: height 0.2s ease-in-out
|
837 |
color: rgba(8, 149, 211, 1);
|
838 |
}
|
839 |
|
840 |
+
input[type="checkbox"],
|
841 |
+
input[type="radio"] {
|
842 |
border: 1px solid #7e8993;
|
843 |
border-radius: 50%;
|
844 |
background: #fff;
|
875 |
|
876 |
.wplc-checklist-check {
|
877 |
height: 11px;
|
878 |
+
}
|
879 |
+
|
880 |
+
|
modules/activation_wizard/js/activation_wizard.js
CHANGED
@@ -4,7 +4,7 @@ jQuery(document).ready(function () {
|
|
4 |
|
5 |
if (jQuery("form#wplc_wizard").length > 0) {
|
6 |
wplc_setup_channel_selection();
|
7 |
-
|
8 |
setup_agents_carousel();
|
9 |
setup_styling_manage();
|
10 |
setup_form_submission();
|
@@ -17,10 +17,10 @@ jQuery(document).ready(function () {
|
|
17 |
var current_step, next_step, previous_step, is_next_final, is_previous_first;
|
18 |
var opacity;
|
19 |
|
20 |
-
jQuery("#wplc_wizard").on("keydown", function(event) {
|
21 |
if (event.keyCode === 13) {
|
22 |
-
let buttonNext = jQuery("fieldset[data-step-id="+jQuery("#wplc_wizard_progressbar li.active").prop("id")+"] .next:enabled");
|
23 |
-
if(buttonNext) {
|
24 |
buttonNext.click();
|
25 |
}
|
26 |
event.stopPropagation();
|
@@ -36,10 +36,10 @@ jQuery(document).ready(function () {
|
|
36 |
if (validationresult.error) {
|
37 |
setupElementValidation(validationresult.object, validationresult.message);
|
38 |
if (!validationresult.object.validity.valid) {
|
39 |
-
jQuery(validationresult.object).off('input', function(event) {
|
40 |
setupElementValidation(validationresult.object, validationresult.message);
|
41 |
});
|
42 |
-
jQuery(validationresult.object).on('input', function(event) {
|
43 |
setupElementValidation(validationresult.object, validationresult.message);
|
44 |
});
|
45 |
}
|
@@ -100,7 +100,7 @@ jQuery(document).ready(function () {
|
|
100 |
//show the previous fieldset
|
101 |
previous_step.show();
|
102 |
const disableNext = (
|
103 |
-
(jQuery(previous_step).data("step-id") == 'step-pbx' && jQuery("#clickToTalkUrl").val().length <= 0
|
104 |
(jQuery(previous_step).data("step-id") == 'step-auth' && (jQuery('input[name="wplc_auth_mode"]:checked').val() === undefined || jQuery('input[name="wplc_c2c_mode"]:checked').val() === undefined))
|
105 |
);
|
106 |
|
@@ -217,7 +217,7 @@ function setup_agents_carousel() {
|
|
217 |
}
|
218 |
|
219 |
function wplc_setup_auth_selection() {
|
220 |
-
jQuery('input[name="wplc_auth_mode"],input[name="wplc_c2c_mode"]').on('change', function(event) {
|
221 |
var disableNext = jQuery('input[name="wplc_auth_mode"]:checked').val() === undefined || jQuery('input[name="wplc_c2c_mode"]:checked').val() === undefined;
|
222 |
jQuery(".next").prop('disabled', disableNext);
|
223 |
});
|
@@ -225,33 +225,129 @@ function wplc_setup_auth_selection() {
|
|
225 |
|
226 |
function setup_styling_manage() {
|
227 |
|
228 |
-
|
|
|
|
|
229 |
|
230 |
-
jQuery("#
|
231 |
-
|
232 |
-
|
233 |
-
jQuery("#client_color").val(wplc.style.getPropertyValue("--call-us-client-text-color"));
|
234 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
235 |
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
|
240 |
-
|
241 |
-
|
|
|
|
|
|
|
|
|
242 |
});
|
243 |
-
|
244 |
-
|
|
|
245 |
});
|
246 |
-
|
247 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
248 |
});
|
249 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
250 |
}
|
251 |
|
252 |
function setup_form_submission() {
|
253 |
jQuery("body").on("click", "#button_finish", function () {
|
254 |
-
jQuery("#wplc_wizard").
|
|
|
255 |
});
|
256 |
}
|
257 |
|
@@ -289,7 +385,7 @@ function setup_completion() {
|
|
289 |
|
290 |
function setup_pbx_settings() {
|
291 |
|
292 |
-
|
293 |
jQuery(".next").prop('disabled', jQuery(this).val().length <= 0);
|
294 |
});
|
295 |
|
@@ -322,6 +418,7 @@ function validatePbx() {
|
|
322 |
}
|
323 |
return result;
|
324 |
}
|
|
|
325 |
function analyzeClickToTalkUrl(urlStr) {
|
326 |
let result = {
|
327 |
error: false
|
@@ -347,4 +444,4 @@ function setupElementValidation(element, message) {
|
|
347 |
element.setCustomValidity(message);
|
348 |
}
|
349 |
element.reportValidity();
|
350 |
-
}
|
4 |
|
5 |
if (jQuery("form#wplc_wizard").length > 0) {
|
6 |
wplc_setup_channel_selection();
|
7 |
+
wplc_setup_auth_selection();
|
8 |
setup_agents_carousel();
|
9 |
setup_styling_manage();
|
10 |
setup_form_submission();
|
17 |
var current_step, next_step, previous_step, is_next_final, is_previous_first;
|
18 |
var opacity;
|
19 |
|
20 |
+
jQuery("#wplc_wizard").on("keydown", function (event) {
|
21 |
if (event.keyCode === 13) {
|
22 |
+
let buttonNext = jQuery("fieldset[data-step-id=" + jQuery("#wplc_wizard_progressbar li.active").prop("id") + "] .next:enabled");
|
23 |
+
if (buttonNext) {
|
24 |
buttonNext.click();
|
25 |
}
|
26 |
event.stopPropagation();
|
36 |
if (validationresult.error) {
|
37 |
setupElementValidation(validationresult.object, validationresult.message);
|
38 |
if (!validationresult.object.validity.valid) {
|
39 |
+
jQuery(validationresult.object).off('input', function (event) {
|
40 |
setupElementValidation(validationresult.object, validationresult.message);
|
41 |
});
|
42 |
+
jQuery(validationresult.object).on('input', function (event) {
|
43 |
setupElementValidation(validationresult.object, validationresult.message);
|
44 |
});
|
45 |
}
|
100 |
//show the previous fieldset
|
101 |
previous_step.show();
|
102 |
const disableNext = (
|
103 |
+
(jQuery(previous_step).data("step-id") == 'step-pbx' && jQuery("#clickToTalkUrl").val().length <= 0) ||
|
104 |
(jQuery(previous_step).data("step-id") == 'step-auth' && (jQuery('input[name="wplc_auth_mode"]:checked').val() === undefined || jQuery('input[name="wplc_c2c_mode"]:checked').val() === undefined))
|
105 |
);
|
106 |
|
217 |
}
|
218 |
|
219 |
function wplc_setup_auth_selection() {
|
220 |
+
jQuery('input[name="wplc_auth_mode"],input[name="wplc_c2c_mode"]').on('change', function (event) {
|
221 |
var disableNext = jQuery('input[name="wplc_auth_mode"]:checked').val() === undefined || jQuery('input[name="wplc_c2c_mode"]:checked').val() === undefined;
|
222 |
jQuery(".next").prop('disabled', disableNext);
|
223 |
});
|
225 |
|
226 |
function setup_styling_manage() {
|
227 |
|
228 |
+
jQuery("#wplc_theme_picker_component").on("theme_picker-loaded",function(){
|
229 |
+
change_template_colors("3CX");
|
230 |
+
});
|
231 |
|
232 |
+
jQuery("#wplc_theme_picker_component").on("theme_picker-color-input",function(e, data){
|
233 |
+
change_template_colors(data.selectedTheme);
|
234 |
+
});
|
|
|
235 |
|
236 |
+
/* jQuery('input[type=radio][name=wplc_selected_theme]').change(function () {
|
237 |
+
var selection = jQuery(this).val();
|
238 |
+
change_template_colors(selection);
|
239 |
+
if (selection === 'custom') {
|
240 |
+
jQuery("#wplc_custom_theme .wplc_style_colorpicker").mouseenter(function () {
|
241 |
+
jQuery(this).css("cursor", "pointer");
|
242 |
+
});
|
243 |
|
244 |
+
jQuery("#wplc_custom_theme .wplc_style_colorpicker").mouseleave(function () {
|
245 |
+
jQuery(this).css("cursor", "default");
|
246 |
+
});
|
247 |
|
248 |
+
set_selected_colorpicker("base_color");
|
249 |
+
} else {
|
250 |
+
jQuery("#wplc_custom_theme .wplc_style_colorpicker").unbind('mouseenter mouseleave');
|
251 |
+
set_selected_colorpicker("none");
|
252 |
+
jQuery("#wplc_picker_header").html('');
|
253 |
+
}
|
254 |
});
|
255 |
+
|
256 |
+
jQuery(".wplc_style_colorpicker_input").focusout(function () {
|
257 |
+
jQuery("#color_picker").hide();
|
258 |
});
|
259 |
+
|
260 |
+
jQuery('#wplc_custom_theme .wplc_style_colorpicker').click(function () {
|
261 |
+
if (jQuery('input[type=radio][name=wplc_selected_theme]:checked').val() === 'custom') {
|
262 |
+
|
263 |
+
/!*
|
264 |
+
<div className="wplc_style_colorpicker_input">
|
265 |
+
THis is a test
|
266 |
+
<input id="color_picker" type="color" value="#0596d4">
|
267 |
+
</div>
|
268 |
+
*!/
|
269 |
+
|
270 |
+
//set the selected color on color picker based
|
271 |
+
var selected_color = jQuery(".wplc_style_colorpicker_value[name=" + this.id + "]").val();
|
272 |
+
jQuery(".wplc_style_colorpicker_input").val(selected_color);
|
273 |
+
|
274 |
+
jQuery("#color_picker").data("color_id", this.id);
|
275 |
+
jQuery("#color_picker").show();
|
276 |
+
set_selected_colorpicker(this.id);
|
277 |
+
setTimeout(function () {
|
278 |
+
//if not in timeout click event get executed before the .show() completion and picker appears in wrong position
|
279 |
+
//because it's position is relative to #color_picker element
|
280 |
+
jQuery(".wplc_style_colorpicker_input").click();
|
281 |
+
}, 50);
|
282 |
+
}
|
283 |
});
|
284 |
|
285 |
+
jQuery('.wplc_style_colorpicker_input').change(function () {
|
286 |
+
var input_id = jQuery("#color_picker").data("color_id"); //jQuery(this).closest(".wplc_pallet_color").data("color_id");
|
287 |
+
jQuery("#" + input_id).css("background-color", jQuery(this).val());
|
288 |
+
jQuery("#" + input_id).data("color", jQuery(this).val());
|
289 |
+
jQuery(".wplc_style_colorpicker_value[name=" + input_id + "]").val(jQuery(this).val());
|
290 |
+
change_template_colors('custom');
|
291 |
+
jQuery("#color_picker").hide();
|
292 |
+
});*/
|
293 |
+
}
|
294 |
+
|
295 |
+
function change_template_colors(themeName) {
|
296 |
+
var wplc = jQuery("#chat_preview_container")[0];
|
297 |
+
const pallet = jQuery(".wplc_pallet[data-pallet_name='" + themeName + "']");
|
298 |
+
|
299 |
+
const baseColor = pallet.find('.wplc_pallet_base_color').length != 0 ? pallet.find('.wplc_pallet_base_color').data('color') : '';
|
300 |
+
const buttonsColor = pallet.find('.wplc_pallet_button_color'.length != 0) ? pallet.find('.wplc_pallet_button_color').data('color') : '';
|
301 |
+
const agentColor = pallet.find('.wplc_pallet_agent_color') ? pallet.find('.wplc_pallet_agent_color').data('color') : '';
|
302 |
+
const clientColor = pallet.find('.wplc_pallet_client_color') ? pallet.find('.wplc_pallet_client_color').data('color') : '';
|
303 |
+
|
304 |
+
wplc.style.setProperty("--call-us-form-header-background", baseColor);
|
305 |
+
wplc.style.setProperty("--call-us-main-button-background", buttonsColor);
|
306 |
+
wplc.style.setProperty("--call-us-agent-text-color", agentColor);
|
307 |
+
wplc.style.setProperty("--call-us-client-text-color", clientColor);
|
308 |
+
|
309 |
+
jQuery('#chat_preview_container .messageroot .msg_container_send').css("color", getContrast(agentColor));
|
310 |
+
jQuery('#chat_preview_container .messageroot .msg_container').css("color", getContrast(clientColor));
|
311 |
+
|
312 |
+
// TODO - to be commented out and remove the hardcoded "#FFFFFF" below when the color/fill should be adaptable
|
313 |
+
// jQuery('#chat_preview_container .user_info .user_name').css("color", getContrast(baseColor));
|
314 |
+
// jQuery('#chat_preview_container .action_menu_btn svg').css("fill", getContrast(baseColor));
|
315 |
+
// jQuery('#chat_preview_container .messageroot .user_img_msg text').css("color", getContrast(clientColor));
|
316 |
+
// jQuery('#chat_preview_container .messageroot .user_img_msg text').css("fill", getContrast(clientColor));
|
317 |
+
|
318 |
+
jQuery('#chat_preview_container .user_info .user_name').css("color", '#FFFFFF');
|
319 |
+
jQuery('#chat_preview_container .action_menu_btn svg').css("fill", '#FFFFFF');
|
320 |
+
jQuery('#chat_preview_container .messageroot .user_img_msg text').css("color", '#FFFFFF');
|
321 |
+
jQuery('#chat_preview_container .messageroot .user_img_msg text').css("fill", '#FFFFFF');
|
322 |
+
}
|
323 |
+
|
324 |
+
function getContrast(hexcolor) {
|
325 |
+
// If a leading # is provided, remove it
|
326 |
+
if (hexcolor.slice(0, 1) === '#') {
|
327 |
+
hexcolor = hexcolor.slice(1);
|
328 |
+
}
|
329 |
+
|
330 |
+
// If a three-character hexcode, make six-character
|
331 |
+
if (hexcolor.length === 3) {
|
332 |
+
hexcolor = hexcolor.split('').map((hex) => hex + hex).join('');
|
333 |
+
}
|
334 |
+
|
335 |
+
// Convert to RGB value
|
336 |
+
const r = parseInt(hexcolor.substr(0, 2), 16);
|
337 |
+
const g = parseInt(hexcolor.substr(2, 2), 16);
|
338 |
+
const b = parseInt(hexcolor.substr(4, 2), 16);
|
339 |
+
|
340 |
+
// Get YIQ ratio
|
341 |
+
const yiq = ((r * 299) + (g * 587) + (b * 114)) / 1000;
|
342 |
+
|
343 |
+
// Check contrast
|
344 |
+
return (yiq >= 128) ? '#000000' : '#FFFFFF';
|
345 |
}
|
346 |
|
347 |
function setup_form_submission() {
|
348 |
jQuery("body").on("click", "#button_finish", function () {
|
349 |
+
//console.log("data",jQuery("form#wplc_wizard").serialize());
|
350 |
+
jQuery("form#wplc_wizard").submit();
|
351 |
});
|
352 |
}
|
353 |
|
385 |
|
386 |
function setup_pbx_settings() {
|
387 |
|
388 |
+
jQuery("#clickToTalkUrl").on("input", function (event) {
|
389 |
jQuery(".next").prop('disabled', jQuery(this).val().length <= 0);
|
390 |
});
|
391 |
|
418 |
}
|
419 |
return result;
|
420 |
}
|
421 |
+
|
422 |
function analyzeClickToTalkUrl(urlStr) {
|
423 |
let result = {
|
424 |
error: false
|
444 |
element.setCustomValidity(message);
|
445 |
}
|
446 |
element.reportValidity();
|
447 |
+
}
|
modules/activation_wizard/wizard_partials/style_settings.php
CHANGED
@@ -1,39 +1,9 @@
|
|
1 |
<div class="wizard_body">
|
2 |
-
<div class="row">
|
3 |
-
<div class="
|
4 |
-
|
5 |
-
<div class="form-group offset-md-3 col-md-6">
|
6 |
-
<label class="col-form-label wplc_colorpicker_label"
|
7 |
-
for="base_color"><?= __( "Base color", 'wp-live-chat-support' ) ?></label>
|
8 |
-
<input class="form-control wplc_style_colorpicker" type="color" id="base_color" name="base_color"/>
|
9 |
-
</div>
|
10 |
-
</div>
|
11 |
-
<div class="row">
|
12 |
-
<div class="form-group offset-md-3 col-md-6">
|
13 |
-
<label class="col-form-label wplc_colorpicker_label"
|
14 |
-
for="buttons_color"><?= __( "Buttons color", 'wp-live-chat-support' ) ?></label>
|
15 |
-
<input class="form-control wplc_style_colorpicker" type="color" id="buttons_color"
|
16 |
-
name="buttons_color">
|
17 |
-
</div>
|
18 |
-
</div>
|
19 |
-
<div class="row">
|
20 |
-
<div class="form-group offset-md-3 col-md-6">
|
21 |
-
<label class="col-form-label wplc_colorpicker_label"
|
22 |
-
for="agent_color"><?= __( "Agent bubble color", 'wp-live-chat-support' ) ?></label>
|
23 |
-
<input class="form-control wplc_style_colorpicker" type="color" id="agent_color"
|
24 |
-
name="agent_color"/>
|
25 |
-
</div>
|
26 |
-
</div>
|
27 |
-
<div class="row">
|
28 |
-
<div class="form-group offset-md-3 col-md-6">
|
29 |
-
<label class="col-form-label wplc_colorpicker_label"
|
30 |
-
for="client_color"><?= __( "Client bubble color", 'wp-live-chat-support' ) ?></label>
|
31 |
-
<input class="form-control wplc_style_colorpicker" type="color" id="client_color"
|
32 |
-
name="client_color"/>
|
33 |
-
</div>
|
34 |
-
</div>
|
35 |
</div>
|
36 |
-
<div class="
|
37 |
<div id="chat_preview_container" style="
|
38 |
--call-us-form-header-background:#373737;
|
39 |
--call-us-main-button-background:#0596d4;
|
@@ -45,9 +15,10 @@
|
|
45 |
<div class="panel_head">
|
46 |
<div class="root">
|
47 |
<div class="d-flex">
|
48 |
-
<div class="
|
49 |
<div class="img_cont">
|
50 |
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 46.9 46.9"
|
|
|
51 |
<path d="M23.4 46.9C10.5 46.9 0 36.4 0 23.4c0-6.2 2.5-12.1 6.8-16.5C11.2 2.5 17.2 0 23.4 0h.1c12.9 0 23.4 10.5 23.4 23.4 0 13-10.5 23.4-23.5 23.5zm0-45.3c-12.1 0-21.9 9.8-21.8 21.9 0 5.8 2.3 11.3 6.4 15.4 4.1 4.1 9.6 6.4 15.4 6.4 12.1 0 21.8-9.8 21.8-21.9 0-12.1-9.7-21.8-21.8-21.8z"
|
52 |
fill="#0596d4"></path>
|
53 |
<circle cx="23.4" cy="23.4" r="18.6" fill="#eaeaea"></circle>
|
@@ -86,11 +57,10 @@
|
|
86 |
<div class="messageroot">
|
87 |
<div class="d-flex justify-content-start msg_bubble">
|
88 |
<div class="img_cont_msg">
|
89 |
-
|
90 |
-
class="rounded-circle user_img_msg">
|
91 |
</div>
|
92 |
<div class="msg_container" style="color: black;">
|
93 |
-
<span>
|
94 |
<div class="msg_sub">
|
95 |
<span class="msg_time">
|
96 |
<div class="msg_sender_name">Visitor </div>
|
@@ -103,7 +73,7 @@
|
|
103 |
<div class="messageroot">
|
104 |
<div class="d-flex justify-content-end msg_bubble">
|
105 |
<div class="msg_container_send" style="color: black;">
|
106 |
-
<span>
|
107 |
<div class="msg_sub">
|
108 |
<span class="msg_time_send">
|
109 |
<div class="msg_sender_name">Agent</div>
|
@@ -127,14 +97,17 @@
|
|
127 |
</div>
|
128 |
<div class="card-footer card-footer">
|
129 |
<div class="chat-message-input-form">
|
130 |
-
<div class="materialInput"><input
|
|
|
131 |
placeholder="Type your message..."
|
132 |
maxlength="20479" name="chatInput"
|
133 |
autocomplete="off"
|
|
|
134 |
class="chat-message-input"></div>
|
135 |
-
<div class="chat-action-buttons send-trigger
|
136 |
<svg aria-hidden="true" focusable="false" data-prefix="fas"
|
137 |
-
data-icon="paper-plane" role="img"
|
|
|
138 |
viewBox="0 0 512 512"
|
139 |
class="svg-inline--fa fa-paper-plane fa-w-16 fa-2x"
|
140 |
style="width: 20px; height: 20px;">
|
@@ -145,11 +118,6 @@
|
|
145 |
</div>
|
146 |
<div class="banner">
|
147 |
<div class="chat-action-buttons">
|
148 |
-
<span class="emoji-trigger">
|
149 |
-
<svg viewBox="0 0 24 24" style="width: 20px; height: 20px;">
|
150 |
-
<path d="M20,12A8,8 0 0,0 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20A8,8 0 0,0 20,12M22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2A10,10 0 0,1 22,12M10,9.5C10,10.3 9.3,11 8.5,11C7.7,11 7,10.3 7,9.5C7,8.7 7.7,8 8.5,8C9.3,8 10,8.7 10,9.5M17,9.5C17,10.3 16.3,11 15.5,11C14.7,11 14,10.3 14,9.5C14,8.7 14.7,8 15.5,8C16.3,8 17,8.7 17,9.5M12,17.23C10.25,17.23 8.71,16.5 7.81,15.42L9.23,14C9.68,14.72 10.75,15.23 12,15.23C13.25,15.23 14.32,14.72 14.77,14L16.19,15.42C15.29,16.5 13.75,17.23 12,17.23Z"></path>
|
151 |
-
</svg>
|
152 |
-
</span>
|
153 |
</div>
|
154 |
<span class="powered-by"><a href="https://www.3cx.com" target="_blank">Powered By 3CX </a></span>
|
155 |
</div>
|
1 |
<div class="wizard_body">
|
2 |
+
<div class="row d-flex flex-row wplc_theme_chooser_container">
|
3 |
+
<div class="my-2 wplc_colorpickers">
|
4 |
+
<?php require_once( WPLC_PLUGIN_DIR . "/components/theme_picker/theme_picker.php" ); ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
</div>
|
6 |
+
<div class="my-2 wplc_chat_preview d-flex flex-column align-items-center">
|
7 |
<div id="chat_preview_container" style="
|
8 |
--call-us-form-header-background:#373737;
|
9 |
--call-us-main-button-background:#0596d4;
|
15 |
<div class="panel_head">
|
16 |
<div class="root">
|
17 |
<div class="d-flex">
|
18 |
+
<div class="user_info_container">
|
19 |
<div class="img_cont">
|
20 |
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 46.9 46.9"
|
21 |
+
class="">
|
22 |
<path d="M23.4 46.9C10.5 46.9 0 36.4 0 23.4c0-6.2 2.5-12.1 6.8-16.5C11.2 2.5 17.2 0 23.4 0h.1c12.9 0 23.4 10.5 23.4 23.4 0 13-10.5 23.4-23.5 23.5zm0-45.3c-12.1 0-21.9 9.8-21.8 21.9 0 5.8 2.3 11.3 6.4 15.4 4.1 4.1 9.6 6.4 15.4 6.4 12.1 0 21.8-9.8 21.8-21.9 0-12.1-9.7-21.8-21.8-21.8z"
|
23 |
fill="#0596d4"></path>
|
24 |
<circle cx="23.4" cy="23.4" r="18.6" fill="#eaeaea"></circle>
|
57 |
<div class="messageroot">
|
58 |
<div class="d-flex justify-content-start msg_bubble">
|
59 |
<div class="img_cont_msg">
|
60 |
+
<svg class="rounded-circle user_img_msg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="64px" height="64px" viewBox="0 0 64 64" version="1.1"><circle fill="#d4d4d4" cx="32" width="64" height="64" cy="32" r="32"/><text x="50%" y="50%" style="color: #fff; line-height: 1;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;" alignment-baseline="middle" text-anchor="middle" font-size="28" font-weight="600" dy=".1em" dominant-baseline="middle">VI</text></svg>
|
|
|
61 |
</div>
|
62 |
<div class="msg_container" style="color: black;">
|
63 |
+
<span>I want to know more about your products</span>
|
64 |
<div class="msg_sub">
|
65 |
<span class="msg_time">
|
66 |
<div class="msg_sender_name">Visitor </div>
|
73 |
<div class="messageroot">
|
74 |
<div class="d-flex justify-content-end msg_bubble">
|
75 |
<div class="msg_container_send" style="color: black;">
|
76 |
+
<span>Yes, of course! We are here to help.</span>
|
77 |
<div class="msg_sub">
|
78 |
<span class="msg_time_send">
|
79 |
<div class="msg_sender_name">Agent</div>
|
97 |
</div>
|
98 |
<div class="card-footer card-footer">
|
99 |
<div class="chat-message-input-form">
|
100 |
+
<div class="materialInput"><input type="text"
|
101 |
+
readonly
|
102 |
placeholder="Type your message..."
|
103 |
maxlength="20479" name="chatInput"
|
104 |
autocomplete="off"
|
105 |
+
value='Type your message...'
|
106 |
class="chat-message-input"></div>
|
107 |
+
<div class="chat-action-buttons send-trigger">
|
108 |
<svg aria-hidden="true" focusable="false" data-prefix="fas"
|
109 |
+
data-icon="paper-plane" role="img"
|
110 |
+
xmlns="http://www.w3.org/2000/svg"
|
111 |
viewBox="0 0 512 512"
|
112 |
class="svg-inline--fa fa-paper-plane fa-w-16 fa-2x"
|
113 |
style="width: 20px; height: 20px;">
|
118 |
</div>
|
119 |
<div class="banner">
|
120 |
<div class="chat-action-buttons">
|
|
|
|
|
|
|
|
|
|
|
121 |
</div>
|
122 |
<span class="powered-by"><a href="https://www.3cx.com" target="_blank">Powered By 3CX </a></span>
|
123 |
</div>
|
modules/agent_chat/agent_chat_style.css
CHANGED
@@ -63,18 +63,19 @@
|
|
63 |
width: 50%;
|
64 |
}
|
65 |
|
66 |
-
.wplc_sidebar_title{
|
67 |
-
font-size:15px;
|
68 |
}
|
|
|
69 |
#chat_sidebar_wrapper {
|
70 |
margin-bottom: 10px;
|
71 |
}
|
72 |
|
73 |
-
#chat_sidebar_wrapper p{
|
74 |
margin-bottom: 0px;
|
75 |
}
|
76 |
|
77 |
-
#chat_sidebar_wrapper hr{
|
78 |
margin-top: 5px;
|
79 |
}
|
80 |
|
@@ -82,6 +83,7 @@
|
|
82 |
width: 4em;
|
83 |
}
|
84 |
|
|
|
85 |
#wplc_bh_offline,
|
86 |
#wplc_agent_offline,
|
87 |
#wplc_no_chat {
|
@@ -91,8 +93,9 @@
|
|
91 |
line-height: 1.5em;
|
92 |
display: none;
|
93 |
}
|
94 |
-
|
95 |
-
|
|
|
96 |
}
|
97 |
|
98 |
#active_chat_box_wrapper {
|
@@ -144,8 +147,7 @@
|
|
144 |
}
|
145 |
|
146 |
#chat_list_head,
|
147 |
-
#wplc_sidebar_box_head
|
148 |
-
{
|
149 |
background: rgb(8, 149, 211);
|
150 |
background: linear-gradient(90deg, rgba(8, 149, 211, 1) 0%, rgba(44, 129, 211, 1) 100%);
|
151 |
height: 70px;
|
@@ -172,7 +174,6 @@
|
|
172 |
}
|
173 |
|
174 |
|
175 |
-
|
176 |
#chat_list_head_row .chat_list_head_row_element {
|
177 |
padding-left: 30px;
|
178 |
}
|
@@ -197,7 +198,7 @@
|
|
197 |
height: 100px;
|
198 |
}
|
199 |
|
200 |
-
#wplc_sidebar_box_body{
|
201 |
justify-content: flex-start;
|
202 |
padding: 10px;
|
203 |
min-width: 250px;
|
@@ -329,20 +330,20 @@
|
|
329 |
box-shadow: none;
|
330 |
}
|
331 |
|
332 |
-
.wplc_sidebar_info_row{
|
333 |
margin-bottom: 10px;
|
334 |
}
|
335 |
|
336 |
-
#wplc_cf_name{
|
337 |
-
margin-bottom:5px;
|
338 |
}
|
339 |
|
340 |
-
.wplc_sidebar_element_label{
|
341 |
font-weight: bold;
|
342 |
}
|
343 |
|
344 |
-
.wplc_sidebar_element_value{
|
345 |
-
font-size:15px;
|
346 |
}
|
347 |
|
348 |
.wplc_p_cul {
|
@@ -353,9 +354,13 @@
|
|
353 |
padding: 10px;
|
354 |
}
|
355 |
|
|
|
|
|
|
|
|
|
356 |
.chat_img {
|
357 |
padding-right: 15px;
|
358 |
-
position:relative;
|
359 |
}
|
360 |
|
361 |
.chat_img img {
|
@@ -405,6 +410,11 @@
|
|
405 |
background-color: transparent;
|
406 |
}
|
407 |
|
|
|
|
|
|
|
|
|
|
|
408 |
.chat_visitor_info_first_line {
|
409 |
display: flex;
|
410 |
flex-direction: row;
|
@@ -424,7 +434,13 @@
|
|
424 |
.chat_list.active_chat {
|
425 |
box-shadow: 5px 5px 5px #888888;
|
426 |
background-color: #F5F6FA;
|
427 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
428 |
}
|
429 |
|
430 |
.incoming_msg {
|
@@ -541,11 +557,6 @@
|
|
541 |
color: #ffffff;
|
542 |
}
|
543 |
|
544 |
-
#wplc_message_count {
|
545 |
-
font-size: 10px;
|
546 |
-
vertical-align: middle;
|
547 |
-
}
|
548 |
-
|
549 |
#wplc_join_chat {
|
550 |
width: 100%;
|
551 |
display: flex;
|
@@ -596,3 +607,7 @@
|
|
596 |
line-height: 1.7;
|
597 |
}
|
598 |
|
|
|
|
|
|
|
|
63 |
width: 50%;
|
64 |
}
|
65 |
|
66 |
+
.wplc_sidebar_title {
|
67 |
+
font-size: 15px;
|
68 |
}
|
69 |
+
|
70 |
#chat_sidebar_wrapper {
|
71 |
margin-bottom: 10px;
|
72 |
}
|
73 |
|
74 |
+
#chat_sidebar_wrapper p {
|
75 |
margin-bottom: 0px;
|
76 |
}
|
77 |
|
78 |
+
#chat_sidebar_wrapper hr {
|
79 |
margin-top: 5px;
|
80 |
}
|
81 |
|
83 |
width: 4em;
|
84 |
}
|
85 |
|
86 |
+
#wplc_chat_joined,
|
87 |
#wplc_bh_offline,
|
88 |
#wplc_agent_offline,
|
89 |
#wplc_no_chat {
|
93 |
line-height: 1.5em;
|
94 |
display: none;
|
95 |
}
|
96 |
+
|
97 |
+
#inactive_message {
|
98 |
+
margin-left: 15px;
|
99 |
}
|
100 |
|
101 |
#active_chat_box_wrapper {
|
147 |
}
|
148 |
|
149 |
#chat_list_head,
|
150 |
+
#wplc_sidebar_box_head {
|
|
|
151 |
background: rgb(8, 149, 211);
|
152 |
background: linear-gradient(90deg, rgba(8, 149, 211, 1) 0%, rgba(44, 129, 211, 1) 100%);
|
153 |
height: 70px;
|
174 |
}
|
175 |
|
176 |
|
|
|
177 |
#chat_list_head_row .chat_list_head_row_element {
|
178 |
padding-left: 30px;
|
179 |
}
|
198 |
height: 100px;
|
199 |
}
|
200 |
|
201 |
+
#wplc_sidebar_box_body {
|
202 |
justify-content: flex-start;
|
203 |
padding: 10px;
|
204 |
min-width: 250px;
|
330 |
box-shadow: none;
|
331 |
}
|
332 |
|
333 |
+
.wplc_sidebar_info_row {
|
334 |
margin-bottom: 10px;
|
335 |
}
|
336 |
|
337 |
+
#wplc_cf_name {
|
338 |
+
margin-bottom: 5px;
|
339 |
}
|
340 |
|
341 |
+
.wplc_sidebar_element_label {
|
342 |
font-weight: bold;
|
343 |
}
|
344 |
|
345 |
+
.wplc_sidebar_element_value {
|
346 |
+
font-size: 15px;
|
347 |
}
|
348 |
|
349 |
.wplc_p_cul {
|
354 |
padding: 10px;
|
355 |
}
|
356 |
|
357 |
+
.wplc_p_cul:hover{
|
358 |
+
cursor:pointer;
|
359 |
+
}
|
360 |
+
|
361 |
.chat_img {
|
362 |
padding-right: 15px;
|
363 |
+
position: relative;
|
364 |
}
|
365 |
|
366 |
.chat_img img {
|
410 |
background-color: transparent;
|
411 |
}
|
412 |
|
413 |
+
.chat_right_info {
|
414 |
+
display: flex;
|
415 |
+
flex-direction: row;
|
416 |
+
}
|
417 |
+
|
418 |
.chat_visitor_info_first_line {
|
419 |
display: flex;
|
420 |
flex-direction: row;
|
434 |
.chat_list.active_chat {
|
435 |
box-shadow: 5px 5px 5px #888888;
|
436 |
background-color: #F5F6FA;
|
437 |
+
}
|
438 |
+
|
439 |
+
.time_elapsed_label.chat_date{
|
440 |
+
width:55px;
|
441 |
+
max-width:55px;
|
442 |
+
margin-left:5px;
|
443 |
+
text-align: right;
|
444 |
}
|
445 |
|
446 |
.incoming_msg {
|
557 |
color: #ffffff;
|
558 |
}
|
559 |
|
|
|
|
|
|
|
|
|
|
|
560 |
#wplc_join_chat {
|
561 |
width: 100%;
|
562 |
display: flex;
|
607 |
line-height: 1.7;
|
608 |
}
|
609 |
|
610 |
+
.wplc-badge-new{
|
611 |
+
font-weight: 500 !important;
|
612 |
+
height: 1.6em !important;
|
613 |
+
}
|
modules/agent_chat/agent_chat_view.php
CHANGED
@@ -51,6 +51,7 @@
|
|
51 |
<div id="wplc_chat_disable">
|
52 |
<img src="<?= wplc_protocol_agnostic_url( WPLC_PLUGIN_URL . '/images/svgs/offline_ic.svg' ); ?>">
|
53 |
<div id="inactive_message">
|
|
|
54 |
<div id="wplc_no_chat"><?= __( "There are no active chats." ) ?></div>
|
55 |
<div id="wplc_agent_offline"><?= __( "You have set your status to offline.", 'wp-live-chat-support' ) ?>
|
56 |
<br/>
|
51 |
<div id="wplc_chat_disable">
|
52 |
<img src="<?= wplc_protocol_agnostic_url( WPLC_PLUGIN_URL . '/images/svgs/offline_ic.svg' ); ?>">
|
53 |
<div id="inactive_message">
|
54 |
+
<div id="wplc_chat_joined"><?= __( "Another agent is already in chat." ) ?></div>
|
55 |
<div id="wplc_no_chat"><?= __( "There are no active chats." ) ?></div>
|
56 |
<div id="wplc_agent_offline"><?= __( "You have set your status to offline.", 'wp-live-chat-support' ) ?>
|
57 |
<br/>
|
modules/agent_chat/js/agent_chat.js
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
var wplc_pending_refresh = null;
|
2 |
var my_chats = [];
|
3 |
-
var current_chats = {};
|
4 |
var active_chat = -1;
|
5 |
var wplc_poll_list_run = true;
|
6 |
var ringer_count = 0;
|
@@ -30,7 +29,9 @@ jQuery(function () {
|
|
30 |
}
|
31 |
|
32 |
var chatID = jQuery(this).data("cid");
|
33 |
-
if (jQuery(this).data("
|
|
|
|
|
34 |
wplc_open_chat(chatID, jQuery(this));
|
35 |
} else {
|
36 |
jQuery("#chat_list_body").removeClass("chat_loading");
|
@@ -75,11 +76,35 @@ function wplc_open_chat(chatID, element) {
|
|
75 |
} else {
|
76 |
jQuery("#wplc_join_chat").hide();
|
77 |
jQuery("#wplc_chat_messages").show();
|
78 |
-
|
79 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
}
|
81 |
}
|
82 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
function wplc_set_dismiss_migration_notice() {
|
84 |
jQuery("#wplc_migration_notice .notice-dismiss").on('click', function () {
|
85 |
var data = {
|
@@ -120,6 +145,7 @@ function wplc_set_chat_status(isOnline) {
|
|
120 |
wplc_set_chat_panel_ui(false);
|
121 |
jQuery("#chat_list_body").empty();
|
122 |
jQuery("#wplc_no_chat").hide();
|
|
|
123 |
jQuery("#wplc_agent_offline").hide();
|
124 |
jQuery("#wplc_bh_offline").show();
|
125 |
} else if (isOnline) {
|
@@ -128,11 +154,13 @@ function wplc_set_chat_status(isOnline) {
|
|
128 |
jQuery("#wplc_no_chat").show();
|
129 |
jQuery("#wplc_bh_offline").hide();
|
130 |
jQuery("#wplc_agent_offline").hide();
|
|
|
131 |
}
|
132 |
} else {
|
133 |
wplc_set_chat_panel_ui(false);
|
134 |
jQuery("#chat_list_body").empty();
|
135 |
jQuery("#wplc_bh_offline").hide();
|
|
|
136 |
jQuery("#wplc_no_chat").hide();
|
137 |
jQuery("#wplc_agent_offline").show();
|
138 |
}
|
@@ -368,23 +396,25 @@ function wplc_create_chat_list_element(chat, addContainer) {
|
|
368 |
if (v_country_image !== '') {
|
369 |
v_country_image_html = "<span class='flag-tag'> <img src='" + v_country_image + "' alt='" + v_country + "' title='" + v_country + "' /> </span>";
|
370 |
}
|
371 |
-
|
372 |
var hide_element = (active_filters.only_assigned && v_agent != localization_data.user_id) || (active_filters.hide_browsing && v_status == 5);
|
373 |
|
374 |
var test_list_html = addContainer ? '<div id="wplc_chat_cont' + chat['id'] + '" data-hash="' + chat['hash'] + '" style="display: ' + (hide_element ? 'none' : 'block') + ';" >' : '';
|
375 |
test_list_html += '<div class="chat_list wplc_p_cul ' + ' ' + (active_chat == chat['id'] ? 'active_chat' : '') + '" id="wplc_p_ul_' + chat['id'] + '" data-cid="' + chat['id'] + '" data-sid="' + chat['session'] + '" data-enable="' + v_available_for_chat + '" data-aid="' + v_agent + '" data-status ="' + v_status + '">';
|
376 |
test_list_html += ' <div class="chat_img">';
|
377 |
-
test_list_html +=
|
378 |
test_list_html += ' <img src="' + gravatarSource + '" alt="sunil">';
|
379 |
test_list_html += ' </div>';
|
380 |
test_list_html += ' <div class="chat_ib">';
|
381 |
test_list_html += ' <div class="chat_visitor_info">';
|
382 |
test_list_html += ' <div class="chat_visitor_info_first_line">';
|
383 |
-
test_list_html += ' <h5 class="chat_visitor_name">' + v_country_image_html + v_name + '
|
384 |
test_list_html += ' </div>';
|
385 |
test_list_html += ' </div>';
|
386 |
test_list_html += ' <div class="chat_right_info">';
|
387 |
-
test_list_html +=
|
|
|
|
|
388 |
test_list_html += ' </div>';
|
389 |
test_list_html += ' </div>';
|
390 |
test_list_html += '</div>';
|
@@ -406,7 +436,8 @@ function wplc_update_chat_list_item(items) {
|
|
406 |
var current_id = parseInt(chatID);
|
407 |
if (items[current_id].agent_id === localization_data.user_id && !my_chats.includes(current_id)) {
|
408 |
my_chats.push(current_id);
|
409 |
-
}
|
|
|
410 |
var chatContainer = jQuery("#wplc_chat_cont" + current_id);
|
411 |
if (items[current_id].hash !== chatContainer.data("hash")) {
|
412 |
var wplc_v_html = wplc_create_chat_list_element(items[current_id], chatContainer.length === 0);
|
@@ -422,7 +453,7 @@ function wplc_update_chat_list_item(items) {
|
|
422 |
jQuery("#chat_list_body").append(wplc_v_html);
|
423 |
}
|
424 |
}
|
425 |
-
jQuery(".chat_list.wplc_p_cul[data-sid='" + items[current_id].session + "']
|
426 |
|
427 |
});
|
428 |
wplc_set_chat_panel_ui();
|
@@ -456,6 +487,7 @@ function wplc_remove_chat_list_item(items) {
|
|
456 |
Object.keys(items).forEach(function (chatID) {
|
457 |
var current_id = parseInt(chatID);
|
458 |
jQuery("#wplc_chat_cont" + current_id).fadeOut(2000).delay(2000).remove();
|
|
|
459 |
});
|
460 |
wplc_set_chat_panel_ui();
|
461 |
|
1 |
var wplc_pending_refresh = null;
|
2 |
var my_chats = [];
|
|
|
3 |
var active_chat = -1;
|
4 |
var wplc_poll_list_run = true;
|
5 |
var ringer_count = 0;
|
29 |
}
|
30 |
|
31 |
var chatID = jQuery(this).data("cid");
|
32 |
+
if (jQuery(this).data("status") === 3 && !my_chats.includes(parseInt(chatID))) {
|
33 |
+
wplc_open_joined_chat(chatID, jQuery(this))
|
34 |
+
} else if (chatID != active_chat) {
|
35 |
wplc_open_chat(chatID, jQuery(this));
|
36 |
} else {
|
37 |
jQuery("#chat_list_body").removeClass("chat_loading");
|
76 |
} else {
|
77 |
jQuery("#wplc_join_chat").hide();
|
78 |
jQuery("#wplc_chat_messages").show();
|
79 |
+
var completedStatuses = [0,1,13,14,15,16];
|
80 |
+
if( completedStatuses.indexOf(element.data("status"))>=0)
|
81 |
+
{
|
82 |
+
jQuery("#wplc_admin_close_chat").hide();
|
83 |
+
jQuery("#wplc_chat_actions").hide();
|
84 |
+
jQuery("body").trigger("openCompletedChat", active_chat);
|
85 |
+
}
|
86 |
+
else {
|
87 |
+
jQuery("#wplc_chat_actions").show();
|
88 |
+
jQuery("body").trigger("joinChat", active_chat);
|
89 |
+
}
|
90 |
}
|
91 |
}
|
92 |
|
93 |
+
function wplc_open_joined_chat(chatID, element) {
|
94 |
+
active_chat = chatID;
|
95 |
+
wplc_set_chat_panel_ui(false);
|
96 |
+
|
97 |
+
jQuery(".wplc_p_cul.active_chat").removeClass("active_chat");
|
98 |
+
element.addClass("active_chat");
|
99 |
+
|
100 |
+
jQuery("#wplc_no_chat").hide();
|
101 |
+
jQuery("#wplc_bh_offline").hide();
|
102 |
+
jQuery("#wplc_agent_offline").hide();
|
103 |
+
jQuery("#wplc_chat_joined").show();
|
104 |
+
wplc_change_chat_status(false);
|
105 |
+
jQuery("#chat_list_body").removeClass("chat_loading");
|
106 |
+
}
|
107 |
+
|
108 |
function wplc_set_dismiss_migration_notice() {
|
109 |
jQuery("#wplc_migration_notice .notice-dismiss").on('click', function () {
|
110 |
var data = {
|
145 |
wplc_set_chat_panel_ui(false);
|
146 |
jQuery("#chat_list_body").empty();
|
147 |
jQuery("#wplc_no_chat").hide();
|
148 |
+
jQuery("#wplc_chat_joined").hide();
|
149 |
jQuery("#wplc_agent_offline").hide();
|
150 |
jQuery("#wplc_bh_offline").show();
|
151 |
} else if (isOnline) {
|
154 |
jQuery("#wplc_no_chat").show();
|
155 |
jQuery("#wplc_bh_offline").hide();
|
156 |
jQuery("#wplc_agent_offline").hide();
|
157 |
+
jQuery("#wplc_chat_joined").hide();
|
158 |
}
|
159 |
} else {
|
160 |
wplc_set_chat_panel_ui(false);
|
161 |
jQuery("#chat_list_body").empty();
|
162 |
jQuery("#wplc_bh_offline").hide();
|
163 |
+
jQuery("#wplc_chat_joined").hide();
|
164 |
jQuery("#wplc_no_chat").hide();
|
165 |
jQuery("#wplc_agent_offline").show();
|
166 |
}
|
396 |
if (v_country_image !== '') {
|
397 |
v_country_image_html = "<span class='flag-tag'> <img src='" + v_country_image + "' alt='" + v_country + "' title='" + v_country + "' /> </span>";
|
398 |
}
|
399 |
+
var new_chat_badge = parseInt(v_status) === 2 ? '<div class="wplc_new_chat_badge" ><span class="badge badge-pill badge-danger wplc-badge-new">New</span></div>' : '';
|
400 |
var hide_element = (active_filters.only_assigned && v_agent != localization_data.user_id) || (active_filters.hide_browsing && v_status == 5);
|
401 |
|
402 |
var test_list_html = addContainer ? '<div id="wplc_chat_cont' + chat['id'] + '" data-hash="' + chat['hash'] + '" style="display: ' + (hide_element ? 'none' : 'block') + ';" >' : '';
|
403 |
test_list_html += '<div class="chat_list wplc_p_cul ' + ' ' + (active_chat == chat['id'] ? 'active_chat' : '') + '" id="wplc_p_ul_' + chat['id'] + '" data-cid="' + chat['id'] + '" data-sid="' + chat['session'] + '" data-enable="' + v_available_for_chat + '" data-aid="' + v_agent + '" data-status ="' + v_status + '">';
|
404 |
test_list_html += ' <div class="chat_img">';
|
405 |
+
test_list_html += wplc_get_chat_status_element(chat['id'], parseInt(v_status), parseInt(chat['state']));
|
406 |
test_list_html += ' <img src="' + gravatarSource + '" alt="sunil">';
|
407 |
test_list_html += ' </div>';
|
408 |
test_list_html += ' <div class="chat_ib">';
|
409 |
test_list_html += ' <div class="chat_visitor_info">';
|
410 |
test_list_html += ' <div class="chat_visitor_info_first_line">';
|
411 |
+
test_list_html += ' <h5 class="chat_visitor_name">' + v_country_image_html + v_name + ' </h5>';
|
412 |
test_list_html += ' </div>';
|
413 |
test_list_html += ' </div>';
|
414 |
test_list_html += ' <div class="chat_right_info">';
|
415 |
+
test_list_html += new_chat_badge;
|
416 |
+
test_list_html += ' <div class="wplc_message_count"><span class="badge badge-danger" ></span></div>';
|
417 |
+
test_list_html += ' <span data-start="' + v_start + '" class="time_elapsed_label chat_date">' + v_time + '</span>';
|
418 |
test_list_html += ' </div>';
|
419 |
test_list_html += ' </div>';
|
420 |
test_list_html += '</div>';
|
436 |
var current_id = parseInt(chatID);
|
437 |
if (items[current_id].agent_id === localization_data.user_id && !my_chats.includes(current_id)) {
|
438 |
my_chats.push(current_id);
|
439 |
+
}
|
440 |
+
;
|
441 |
var chatContainer = jQuery("#wplc_chat_cont" + current_id);
|
442 |
if (items[current_id].hash !== chatContainer.data("hash")) {
|
443 |
var wplc_v_html = wplc_create_chat_list_element(items[current_id], chatContainer.length === 0);
|
453 |
jQuery("#chat_list_body").append(wplc_v_html);
|
454 |
}
|
455 |
}
|
456 |
+
jQuery(".chat_list.wplc_p_cul[data-sid='" + items[current_id].session + "'] .wplc_message_count").hide();
|
457 |
|
458 |
});
|
459 |
wplc_set_chat_panel_ui();
|
487 |
Object.keys(items).forEach(function (chatID) {
|
488 |
var current_id = parseInt(chatID);
|
489 |
jQuery("#wplc_chat_cont" + current_id).fadeOut(2000).delay(2000).remove();
|
490 |
+
jQuery("body").trigger("wplc-chat-removed",current_id);
|
491 |
});
|
492 |
wplc_set_chat_panel_ui();
|
493 |
|
modules/agent_chat/js/agent_chat_chatbox.js
CHANGED
@@ -6,15 +6,10 @@ jQuery(function () {
|
|
6 |
if (localization_data.enable_files) {
|
7 |
wplc_setup_file_picker();
|
8 |
}
|
9 |
-
|
10 |
-
if (localization_data.enable_typing) {
|
11 |
-
wplc_setup_typing();
|
12 |
-
}
|
13 |
-
|
14 |
if (localization_data.channel === 'mcu') {
|
15 |
wplc_setup_mcu_channel();
|
16 |
}
|
17 |
-
|
18 |
wplc_change_chat_status(false);
|
19 |
|
20 |
jQuery("body").on("openChat", function (e, cid) {
|
@@ -22,10 +17,36 @@ jQuery(function () {
|
|
22 |
wplc_load_chat_info(cid);
|
23 |
});
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
jQuery("body").on("joinChat", function (e, cid) {
|
26 |
wplc_init_chat(cid);
|
27 |
});
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
});
|
30 |
|
31 |
function wplc_load_chat_info(cid) {
|
@@ -204,7 +225,7 @@ function wplc_create_message_html(message_data, type, chat) {
|
|
204 |
|
205 |
// console.log('msg', message_data);
|
206 |
|
207 |
-
let templateIncoming =
|
208 |
let templateOutgoing = generate_outgoing_message_template();
|
209 |
|
210 |
let sender = parseInt(message_data.originates) === 2 ? chat.name : 'admin';
|
@@ -219,7 +240,7 @@ function wplc_create_message_html(message_data, type, chat) {
|
|
219 |
mid: message_data.id,
|
220 |
elementId: type + "_" + message_data.id,
|
221 |
senderType: senderType,
|
222 |
-
message:
|
223 |
gravatarSource: "//www.gravatar.com/avatar/" + avatarEmail + "?s=64&d=" + encodeURIComponent(localization_data.wplc_protocol + "://ui-avatars.com/api//" + avatarName + "/64/" + wplc_stringToColor(sender) + "/fff")
|
224 |
};
|
225 |
|
@@ -241,7 +262,7 @@ function wplc_create_message_html(message_data, type, chat) {
|
|
241 |
var messageElement = jQuery(template);
|
242 |
messageElement.find(".wplc_msg_container").text(data.message);
|
243 |
|
244 |
-
return wplc_linkify_message(TCXemojione.convertTextToEmoji(messageElement[0].outerHTML,localization_data.images_url+"/emojis/32/"), message_data.is_file);
|
245 |
}
|
246 |
|
247 |
function generate_submessage_text(date, name) {
|
@@ -266,7 +287,7 @@ function generate_submessage_text(date, name) {
|
|
266 |
return result;
|
267 |
}
|
268 |
|
269 |
-
function
|
270 |
let templateIncoming = `<div id="{{elementId}}" class="incoming_msg">`
|
271 |
|
272 |
if (localization_data.show_avatar) {
|
@@ -451,16 +472,15 @@ function wplc_enable_chat(chat) {
|
|
451 |
jQuery("#chat_custom_fields_info").html(custom_fields_html);
|
452 |
}
|
453 |
jQuery("#wplc_info_visitor_name_value").html(chat.name);
|
454 |
-
if(chat.email!=='' && chat.email !== undefined) {
|
455 |
-
if(chat.email !=='no email set') {
|
456 |
jQuery("#wplc_info_visitor_email_value").html("<a href='mailto:" + chat.email + "'>" + chat.email + "</a>");
|
457 |
|
458 |
-
}else {
|
459 |
-
jQuery("#wplc_info_visitor_email_value").html("<span>"+chat.email+"</span>");
|
460 |
}
|
461 |
jQuery("#wplc_info_visitor_email_value").show();
|
462 |
-
}else
|
463 |
-
{
|
464 |
jQuery("#wplc_info_visitor_email").hide();
|
465 |
}
|
466 |
|
@@ -470,13 +490,13 @@ function wplc_enable_chat(chat) {
|
|
470 |
var infoBar = jQuery("#wplc_sidebar");
|
471 |
if (infoBar.is(":visible")) {
|
472 |
infoBar.css('min-width', '0px');
|
473 |
-
infoBar.animate({width:"0px"}, 500
|
474 |
jQuery(this).hide()
|
475 |
});
|
476 |
|
477 |
} else {
|
478 |
infoBar.css('display', 'flex');
|
479 |
-
infoBar.css('max-width', '250px').animate({width:"250px"}, 500
|
480 |
jQuery(this).css('min-width', '250px');
|
481 |
});
|
482 |
}
|
@@ -489,11 +509,17 @@ function wplc_enable_chat(chat) {
|
|
489 |
function wplc_change_chat_status(enabled) {
|
490 |
let chatInputElement = jQuery("#wplc_agent_chat_input");
|
491 |
|
492 |
-
if (!enabled
|
493 |
-
jQuery("#
|
494 |
-
|
495 |
-
|
496 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
497 |
jQuery("#inactive_chat_box").hide();
|
498 |
|
499 |
jQuery("#active_chat_box")
|
@@ -620,11 +646,12 @@ function wplc_escape_html(s, forAttribute) {
|
|
620 |
}
|
621 |
|
622 |
function update_badge_counter(sessionID) {
|
623 |
-
var
|
|
|
624 |
var counter = badge.text();
|
625 |
counter = counter == '' ? 1 : parseInt(counter) + 1;
|
626 |
badge.html(counter);
|
627 |
-
|
628 |
}
|
629 |
|
630 |
function wplc_end_chat_call(chatID, chatStatus = -1) {
|
6 |
if (localization_data.enable_files) {
|
7 |
wplc_setup_file_picker();
|
8 |
}
|
|
|
|
|
|
|
|
|
|
|
9 |
if (localization_data.channel === 'mcu') {
|
10 |
wplc_setup_mcu_channel();
|
11 |
}
|
12 |
+
wplc_setup_typing();
|
13 |
wplc_change_chat_status(false);
|
14 |
|
15 |
jQuery("body").on("openChat", function (e, cid) {
|
17 |
wplc_load_chat_info(cid);
|
18 |
});
|
19 |
|
20 |
+
jQuery("body").on("openCompletedChat",function(e,cid){
|
21 |
+
wplc_get_chat_messages_call(active_chat).then(function (response) {
|
22 |
+
if (!response.ErrorFound) {
|
23 |
+
response.Data.forEach((msg) => {
|
24 |
+
wplc_render_message(msg, "server_message", wplc_running_chat);
|
25 |
+
});
|
26 |
+
wplc_render_message({
|
27 |
+
added_at: new Date(),
|
28 |
+
code: "NONE",
|
29 |
+
id: "-1",
|
30 |
+
is_file: false,
|
31 |
+
msg: localization_data.chat_closed,
|
32 |
+
originates: "1"
|
33 |
+
}, "server_message", wplc_running_chat);
|
34 |
+
jQuery("#chat_list_body").removeClass("chat_loading");
|
35 |
+
}
|
36 |
+
});
|
37 |
+
})
|
38 |
+
|
39 |
jQuery("body").on("joinChat", function (e, cid) {
|
40 |
wplc_init_chat(cid);
|
41 |
});
|
42 |
|
43 |
+
jQuery("body").on("wplc-chat-removed", function (e, cid) {
|
44 |
+
if (cid === parseInt(wplc_running_chat.id) && (jQuery("#active_chat_box").is(":visible") || jQuery("#inactive_chat_box").is(":hidden"))) {
|
45 |
+
jQuery("#active_chat_box").fadeOut();
|
46 |
+
jQuery("#inactive_chat_box").fadeIn();
|
47 |
+
}
|
48 |
+
});
|
49 |
+
|
50 |
});
|
51 |
|
52 |
function wplc_load_chat_info(cid) {
|
225 |
|
226 |
// console.log('msg', message_data);
|
227 |
|
228 |
+
let templateIncoming = generate_incoming_message_template();
|
229 |
let templateOutgoing = generate_outgoing_message_template();
|
230 |
|
231 |
let sender = parseInt(message_data.originates) === 2 ? chat.name : 'admin';
|
240 |
mid: message_data.id,
|
241 |
elementId: type + "_" + message_data.id,
|
242 |
senderType: senderType,
|
243 |
+
message: wplc_decodeHtml(message_data.msg),
|
244 |
gravatarSource: "//www.gravatar.com/avatar/" + avatarEmail + "?s=64&d=" + encodeURIComponent(localization_data.wplc_protocol + "://ui-avatars.com/api//" + avatarName + "/64/" + wplc_stringToColor(sender) + "/fff")
|
245 |
};
|
246 |
|
262 |
var messageElement = jQuery(template);
|
263 |
messageElement.find(".wplc_msg_container").text(data.message);
|
264 |
|
265 |
+
return wplc_linkify_message(TCXemojione.convertTextToEmoji(messageElement[0].outerHTML, localization_data.images_url + "/emojis/32/"), message_data.is_file);
|
266 |
}
|
267 |
|
268 |
function generate_submessage_text(date, name) {
|
287 |
return result;
|
288 |
}
|
289 |
|
290 |
+
function generate_incoming_message_template() {
|
291 |
let templateIncoming = `<div id="{{elementId}}" class="incoming_msg">`
|
292 |
|
293 |
if (localization_data.show_avatar) {
|
472 |
jQuery("#chat_custom_fields_info").html(custom_fields_html);
|
473 |
}
|
474 |
jQuery("#wplc_info_visitor_name_value").html(chat.name);
|
475 |
+
if (chat.email !== '' && chat.email !== undefined) {
|
476 |
+
if (chat.email !== 'no email set') {
|
477 |
jQuery("#wplc_info_visitor_email_value").html("<a href='mailto:" + chat.email + "'>" + chat.email + "</a>");
|
478 |
|
479 |
+
} else {
|
480 |
+
jQuery("#wplc_info_visitor_email_value").html("<span>" + chat.email + "</span>");
|
481 |
}
|
482 |
jQuery("#wplc_info_visitor_email_value").show();
|
483 |
+
} else {
|
|
|
484 |
jQuery("#wplc_info_visitor_email").hide();
|
485 |
}
|
486 |
|
490 |
var infoBar = jQuery("#wplc_sidebar");
|
491 |
if (infoBar.is(":visible")) {
|
492 |
infoBar.css('min-width', '0px');
|
493 |
+
infoBar.animate({width: "0px"}, 500, function () {
|
494 |
jQuery(this).hide()
|
495 |
});
|
496 |
|
497 |
} else {
|
498 |
infoBar.css('display', 'flex');
|
499 |
+
infoBar.css('max-width', '250px').animate({width: "250px"}, 500, function () {
|
500 |
jQuery(this).css('min-width', '250px');
|
501 |
});
|
502 |
}
|
509 |
function wplc_change_chat_status(enabled) {
|
510 |
let chatInputElement = jQuery("#wplc_agent_chat_input");
|
511 |
|
512 |
+
if (!enabled) {
|
513 |
+
jQuery("#wplc_admin_close_chat").hide();
|
514 |
+
wplc_render_message({
|
515 |
+
id: -1,
|
516 |
+
msg: "Chat session ended.",
|
517 |
+
added_at: new Date()
|
518 |
+
}, "server_message", wplc_running_chat)
|
519 |
+
/* jQuery("#active_chat_box").fadeOut();
|
520 |
+
jQuery("#inactive_chat_box").fadeIn(); */
|
521 |
+
|
522 |
+
} else if (enabled && (jQuery("#active_chat_box").is(":hidden") || jQuery("#inactive_chat_box").is(":visible"))) {
|
523 |
jQuery("#inactive_chat_box").hide();
|
524 |
|
525 |
jQuery("#active_chat_box")
|
646 |
}
|
647 |
|
648 |
function update_badge_counter(sessionID) {
|
649 |
+
var badge_container = jQuery(".chat_list.wplc_p_cul[data-sid='" + sessionID + "'] .wplc_message_count");
|
650 |
+
var badge = badge_container.find(".badge");
|
651 |
var counter = badge.text();
|
652 |
counter = counter == '' ? 1 : parseInt(counter) + 1;
|
653 |
badge.html(counter);
|
654 |
+
badge_container.show();
|
655 |
}
|
656 |
|
657 |
function wplc_end_chat_call(chatID, chatStatus = -1) {
|
modules/agent_chat/js/mcu_websocket.js
CHANGED
@@ -140,6 +140,7 @@ function wplc_socketEventsSetup() {
|
|
140 |
} else if (data.notification == 'UpdateChat') {
|
141 |
jQuery("body").trigger('mcu-chat-list-update', data.data);
|
142 |
} else if (data.notification == 'agent_login') {
|
|
|
143 |
jQuery("body").trigger('mcu-socket-connected')
|
144 |
clientId = data.clientKey;
|
145 |
sessionStorage.setItem('AgentID', clientId);
|
@@ -178,6 +179,16 @@ function wplc_login() {
|
|
178 |
}
|
179 |
|
180 |
socket.send(JSON.stringify(loginRequest));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
181 |
// console.log("login agent",loginRequest);
|
182 |
}
|
183 |
|
140 |
} else if (data.notification == 'UpdateChat') {
|
141 |
jQuery("body").trigger('mcu-chat-list-update', data.data);
|
142 |
} else if (data.notification == 'agent_login') {
|
143 |
+
sessionStorage.removeItem('AgentLoginRequest');
|
144 |
jQuery("body").trigger('mcu-socket-connected')
|
145 |
clientId = data.clientKey;
|
146 |
sessionStorage.setItem('AgentID', clientId);
|
179 |
}
|
180 |
|
181 |
socket.send(JSON.stringify(loginRequest));
|
182 |
+
sessionStorage.setItem('AgentLoginRequest', new Date());
|
183 |
+
setTimeout(function(){
|
184 |
+
var loginRequestTime = sessionStorage.getItem('AgentLoginRequest');
|
185 |
+
if(loginRequestTime!==null && loginRequestTime!==undefined)
|
186 |
+
{
|
187 |
+
wplc_force_reload_mcu_data();
|
188 |
+
}
|
189 |
+
},3000)
|
190 |
+
|
191 |
+
|
192 |
// console.log("login agent",loginRequest);
|
193 |
}
|
194 |
|
modules/chat_client/chat_client_controller.php
CHANGED
@@ -119,22 +119,17 @@ class ChatClientController extends BaseController {
|
|
119 |
$this->view_data["integrations"] = $this->get_integration_links();
|
120 |
$this->view_data["minimized"] = $this->get_minimized_status();
|
121 |
$this->view_data["popup_when_online"] = $this->wplc_settings->wplc_auto_pop_up_online ? "true" : "false";
|
122 |
-
$this->view_data["enable_typing"] = $this->wplc_settings->wplc_typing_enabled ? "true" : "false";
|
123 |
$this->view_data["is_enable"] = $this->wplc_settings->wplc_settings_enabled == "1" ? "true" : "false";
|
124 |
$this->view_data["enable_mobile"] = $this->wplc_settings->wplc_enabled_on_mobile ? "true" : "false";
|
125 |
$this->view_data["enable_poweredby"] = $this->wplc_settings->wplc_powered_by ? "true" : "false";
|
126 |
$this->view_data["enable_msg_sounds"] = $this->wplc_settings->wplc_enable_msg_sound ? "true" : "false";
|
127 |
$this->view_data["channel"] = $this->wplc_settings->wplc_channel;
|
128 |
-
|
129 |
$this->view_data["message_sound"] = isset( $this->wplc_settings->wplc_messagetone ) ? TCXRingtonesHelper::get_messagetone_url( $this->wplc_settings->wplc_messagetone ) : '';
|
130 |
-
$this->view_data["popout_enabled"] = 'false';
|
131 |
-
|
132 |
$this->view_data["wp_url"] = admin_url( 'admin-ajax.php' );
|
133 |
switch ( $this->wplc_settings->wplc_channel ) {
|
134 |
case 'phone':
|
135 |
$c2c_url = parse_url( esc_url_raw( $this->wplc_settings->wplc_channel_url ) );
|
136 |
$this->view_data["channel_url"] = ( array_key_exists( 'scheme', $c2c_url ) ? $c2c_url['scheme'] : '' ) . "://" . $c2c_url['host'] . ( array_key_exists( 'port', $c2c_url ) ? ":" . $c2c_url['port'] : '' );
|
137 |
-
$this->view_data["popout_enabled"] = $this->wplc_settings->wplc_popout_enabled ? "true" : "false";
|
138 |
break;
|
139 |
case 'wp':
|
140 |
$this->view_data["channel_url"] = esc_url_raw( $this->wplc_settings->wplc_channel_url );
|
@@ -146,31 +141,25 @@ class ChatClientController extends BaseController {
|
|
146 |
break;
|
147 |
}
|
148 |
|
149 |
-
|
150 |
$this->view_data["files_url"] = esc_url_raw( $this->wplc_settings->wplc_files_url );
|
151 |
-
|
152 |
$this->view_data["secret"] = wp_create_nonce( "wplc" );
|
153 |
-
|
154 |
$this->view_data["chatParty"] = $this->wplc_settings->wplc_chat_party;
|
155 |
|
156 |
-
$theme
|
157 |
$this->view_data["agentColor"] = $theme->agent_color;
|
158 |
$this->view_data["clientColor"] = $theme->client_color;
|
159 |
$this->view_data["baseColor"] = $theme->base_color;
|
160 |
$this->view_data["buttonColor"] = $theme->button_color;
|
161 |
-
|
162 |
$this->view_data["gdpr_enabled"] = $this->wplc_settings->wplc_gdpr_enabled == '1' ? "true" : "false";
|
163 |
$this->view_data["gdpr_message"] = wplc_gdpr_generate_retention_agreement_notice( $this->wplc_settings );
|
164 |
$this->view_data["files_enabled"] = $this->wplc_settings->wplc_channel != "phone" && $this->wplc_settings->wplc_ux_file_share == '1' ? "true" : "false";
|
165 |
$this->view_data["rating_enabled"] = $this->wplc_settings->wplc_channel != "phone" && $this->wplc_settings->wplc_ux_exp_rating == '1' ? "true" : "false";
|
166 |
$this->view_data["departments_enabled"] = $this->wplc_settings->wplc_allow_department_selection == '1' ? "true" : "false";
|
167 |
-
|
168 |
$this->view_data["chat_height"] = $this->wplc_settings->wplc_chatbox_height == 0 ? $this->wplc_settings->wplc_chatbox_absolute_height . 'px'
|
169 |
: $this->wplc_settings->wplc_chatbox_height * 95 / 100 . 'vh';
|
170 |
$this->view_data["minimizedStyle"] = $this->get_minimized_style();
|
171 |
-
|
172 |
$this->view_data["showAgentsName"] = $this->wplc_settings->wplc_show_agent_name == '1' ? "true" : "false";
|
173 |
-
|
174 |
$this->view_data["visitor_name"] = '';
|
175 |
$this->view_data["visitor_email"] = '';
|
176 |
if ( ! $embed_code ) {
|
@@ -188,15 +177,14 @@ class ChatClientController extends BaseController {
|
|
188 |
$this->view_data["allowCalls"] = $this->wplc_settings->wplc_channel == "phone" && $this->wplc_settings->wplc_allow_call == '1' ? "true" : "false";
|
189 |
$this->view_data["allowVideo"] = $this->wplc_settings->wplc_channel == "phone" && $this->wplc_settings->wplc_allow_video == '1' ? "true" : "false";
|
190 |
$this->view_data["acknowledgeReceived"] = $this->wplc_settings->wplc_channel == "phone" ? "true" : "false";
|
191 |
-
|
192 |
$this->view_data["greetingMode"] = $this->wplc_settings->wplc_greeting_mode;
|
193 |
$this->view_data["offlineGreetingMode"] = $this->wplc_settings->wplc_offline_greeting_mode;
|
194 |
$this->view_data["ignoreQueueOwnership"] = $this->wplc_settings->wplc_ignore_queue_ownership == '1' ? "true" : "false";
|
195 |
-
|
196 |
-
|
197 |
$this->view_data["messageDateFormat"] = $this->get_date_format();
|
198 |
$this->view_data["messageUserinfoFormat"] = $this->get_user_info_format();
|
199 |
$this->view_data['inBusinessSchedule'] = TCXUtilsHelper::wplc_check_chatbox_enabled_business_hours() ? "true" : "false";
|
|
|
200 |
|
201 |
return $this->load_view( plugin_dir_path( __FILE__ ) . "chat_client_view.php", $return_html, $add_wrapper );
|
202 |
}
|
@@ -204,7 +192,7 @@ class ChatClientController extends BaseController {
|
|
204 |
public function preview_view() {
|
205 |
$default_settings = TCXSettings::getDefaultSettings();
|
206 |
$this->view_data["channel_url"] = esc_url_raw( $default_settings->wplc_channel_url );
|
207 |
-
$theme
|
208 |
$this->view_data["agentColor"] = $theme->agent_color;
|
209 |
$this->view_data["clientColor"] = $theme->client_color;
|
210 |
$this->view_data["baseColor"] = $theme->base_color;
|
119 |
$this->view_data["integrations"] = $this->get_integration_links();
|
120 |
$this->view_data["minimized"] = $this->get_minimized_status();
|
121 |
$this->view_data["popup_when_online"] = $this->wplc_settings->wplc_auto_pop_up_online ? "true" : "false";
|
|
|
122 |
$this->view_data["is_enable"] = $this->wplc_settings->wplc_settings_enabled == "1" ? "true" : "false";
|
123 |
$this->view_data["enable_mobile"] = $this->wplc_settings->wplc_enabled_on_mobile ? "true" : "false";
|
124 |
$this->view_data["enable_poweredby"] = $this->wplc_settings->wplc_powered_by ? "true" : "false";
|
125 |
$this->view_data["enable_msg_sounds"] = $this->wplc_settings->wplc_enable_msg_sound ? "true" : "false";
|
126 |
$this->view_data["channel"] = $this->wplc_settings->wplc_channel;
|
|
|
127 |
$this->view_data["message_sound"] = isset( $this->wplc_settings->wplc_messagetone ) ? TCXRingtonesHelper::get_messagetone_url( $this->wplc_settings->wplc_messagetone ) : '';
|
|
|
|
|
128 |
$this->view_data["wp_url"] = admin_url( 'admin-ajax.php' );
|
129 |
switch ( $this->wplc_settings->wplc_channel ) {
|
130 |
case 'phone':
|
131 |
$c2c_url = parse_url( esc_url_raw( $this->wplc_settings->wplc_channel_url ) );
|
132 |
$this->view_data["channel_url"] = ( array_key_exists( 'scheme', $c2c_url ) ? $c2c_url['scheme'] : '' ) . "://" . $c2c_url['host'] . ( array_key_exists( 'port', $c2c_url ) ? ":" . $c2c_url['port'] : '' );
|
|
|
133 |
break;
|
134 |
case 'wp':
|
135 |
$this->view_data["channel_url"] = esc_url_raw( $this->wplc_settings->wplc_channel_url );
|
141 |
break;
|
142 |
}
|
143 |
|
|
|
144 |
$this->view_data["files_url"] = esc_url_raw( $this->wplc_settings->wplc_files_url );
|
|
|
145 |
$this->view_data["secret"] = wp_create_nonce( "wplc" );
|
|
|
146 |
$this->view_data["chatParty"] = $this->wplc_settings->wplc_chat_party;
|
147 |
|
148 |
+
$theme = TCXThemeHelper::get_theme( $this->wplc_settings->wplc_theme );
|
149 |
$this->view_data["agentColor"] = $theme->agent_color;
|
150 |
$this->view_data["clientColor"] = $theme->client_color;
|
151 |
$this->view_data["baseColor"] = $theme->base_color;
|
152 |
$this->view_data["buttonColor"] = $theme->button_color;
|
|
|
153 |
$this->view_data["gdpr_enabled"] = $this->wplc_settings->wplc_gdpr_enabled == '1' ? "true" : "false";
|
154 |
$this->view_data["gdpr_message"] = wplc_gdpr_generate_retention_agreement_notice( $this->wplc_settings );
|
155 |
$this->view_data["files_enabled"] = $this->wplc_settings->wplc_channel != "phone" && $this->wplc_settings->wplc_ux_file_share == '1' ? "true" : "false";
|
156 |
$this->view_data["rating_enabled"] = $this->wplc_settings->wplc_channel != "phone" && $this->wplc_settings->wplc_ux_exp_rating == '1' ? "true" : "false";
|
157 |
$this->view_data["departments_enabled"] = $this->wplc_settings->wplc_allow_department_selection == '1' ? "true" : "false";
|
158 |
+
$this->view_data["chatDelay"] = intval( $this->wplc_settings->wplc_chat_delay ) * 1000;
|
159 |
$this->view_data["chat_height"] = $this->wplc_settings->wplc_chatbox_height == 0 ? $this->wplc_settings->wplc_chatbox_absolute_height . 'px'
|
160 |
: $this->wplc_settings->wplc_chatbox_height * 95 / 100 . 'vh';
|
161 |
$this->view_data["minimizedStyle"] = $this->get_minimized_style();
|
|
|
162 |
$this->view_data["showAgentsName"] = $this->wplc_settings->wplc_show_agent_name == '1' ? "true" : "false";
|
|
|
163 |
$this->view_data["visitor_name"] = '';
|
164 |
$this->view_data["visitor_email"] = '';
|
165 |
if ( ! $embed_code ) {
|
177 |
$this->view_data["allowCalls"] = $this->wplc_settings->wplc_channel == "phone" && $this->wplc_settings->wplc_allow_call == '1' ? "true" : "false";
|
178 |
$this->view_data["allowVideo"] = $this->wplc_settings->wplc_channel == "phone" && $this->wplc_settings->wplc_allow_video == '1' ? "true" : "false";
|
179 |
$this->view_data["acknowledgeReceived"] = $this->wplc_settings->wplc_channel == "phone" ? "true" : "false";
|
|
|
180 |
$this->view_data["greetingMode"] = $this->wplc_settings->wplc_greeting_mode;
|
181 |
$this->view_data["offlineGreetingMode"] = $this->wplc_settings->wplc_offline_greeting_mode;
|
182 |
$this->view_data["ignoreQueueOwnership"] = $this->wplc_settings->wplc_ignore_queue_ownership == '1' ? "true" : "false";
|
183 |
+
$this->view_data["offline_enabled"] = $this->wplc_settings->wplc_hide_when_offline == '1' ? "false" : "true";
|
|
|
184 |
$this->view_data["messageDateFormat"] = $this->get_date_format();
|
185 |
$this->view_data["messageUserinfoFormat"] = $this->get_user_info_format();
|
186 |
$this->view_data['inBusinessSchedule'] = TCXUtilsHelper::wplc_check_chatbox_enabled_business_hours() ? "true" : "false";
|
187 |
+
$this->view_data['chatLang'] = $this->wplc_settings->wplc_language;
|
188 |
|
189 |
return $this->load_view( plugin_dir_path( __FILE__ ) . "chat_client_view.php", $return_html, $add_wrapper );
|
190 |
}
|
192 |
public function preview_view() {
|
193 |
$default_settings = TCXSettings::getDefaultSettings();
|
194 |
$this->view_data["channel_url"] = esc_url_raw( $default_settings->wplc_channel_url );
|
195 |
+
$theme = TCXThemeHelper::get_theme( $this->wplc_settings->wplc_theme );
|
196 |
$this->view_data["agentColor"] = $theme->agent_color;
|
197 |
$this->view_data["clientColor"] = $theme->client_color;
|
198 |
$this->view_data["baseColor"] = $theme->base_color;
|
modules/chat_client/chat_client_page.php
CHANGED
@@ -7,6 +7,7 @@ if (!defined('ABSPATH')) {
|
|
7 |
add_action('wplc_version_migration', 'wplc_chat_activation' );
|
8 |
add_action('wp_enqueue_scripts', 'wplc_add_chat_client_page_resources' );
|
9 |
add_action('wp_footer', 'wplc_chat_client_page');
|
|
|
10 |
|
11 |
function wplc_add_chat_client_page_resources($hook)
|
12 |
{
|
@@ -22,14 +23,6 @@ function wplc_add_chat_client_page_resources($hook)
|
|
22 |
wp_register_script( "wplc-chat_app", wplc_plugins_url( '/js/callus.js', __FILE__ ), array(), WPLC_PLUGIN_VERSION, true );
|
23 |
wp_enqueue_script( 'wplc-chat_app' );
|
24 |
|
25 |
-
$script_data = array(
|
26 |
-
'wplc_delay' => intval( $wplc_settings->wplc_chat_delay ) * 1000
|
27 |
-
);
|
28 |
-
|
29 |
-
wp_register_script( "wplc-chat_client", wplc_plugins_url( '/js/chat_client.js', __FILE__ ), array(), WPLC_PLUGIN_VERSION, true );
|
30 |
-
wp_enqueue_script( 'wplc-chat_client' );
|
31 |
-
|
32 |
-
wp_localize_script( 'wplc-chat_client', 'chat_localization_data', $script_data );
|
33 |
}
|
34 |
}
|
35 |
|
@@ -49,3 +42,10 @@ function wplc_chat_activation()
|
|
49 |
TCXChatRatingHelper::module_db_integration();
|
50 |
}
|
51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
add_action('wplc_version_migration', 'wplc_chat_activation' );
|
8 |
add_action('wp_enqueue_scripts', 'wplc_add_chat_client_page_resources' );
|
9 |
add_action('wp_footer', 'wplc_chat_client_page');
|
10 |
+
add_filter('script_loader_tag', 'wplc_defer_callus_js', 10, 2);
|
11 |
|
12 |
function wplc_add_chat_client_page_resources($hook)
|
13 |
{
|
23 |
wp_register_script( "wplc-chat_app", wplc_plugins_url( '/js/callus.js', __FILE__ ), array(), WPLC_PLUGIN_VERSION, true );
|
24 |
wp_enqueue_script( 'wplc-chat_app' );
|
25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
}
|
27 |
}
|
28 |
|
42 |
TCXChatRatingHelper::module_db_integration();
|
43 |
}
|
44 |
|
45 |
+
function wplc_defer_callus_js( $url ) {
|
46 |
+
if ( strpos( $url, 'callus.js' ) ) {
|
47 |
+
return str_replace( ' src', ' defer src', $url );
|
48 |
+
}else{
|
49 |
+
return $url;
|
50 |
+
}
|
51 |
+
}
|
modules/chat_client/chat_client_view.php
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
<div id="wplc-chat-container"
|
2 |
<?php if ( $onlyPhone ) { ?>
|
3 |
<call-us-phone
|
4 |
style="position: fixed; <?= $position_style ?> justify-content: flex-end;
|
@@ -11,7 +11,11 @@
|
|
11 |
wp-url="<?= $wp_url ?>"
|
12 |
party="<?= $chatParty ?>"
|
13 |
animation-style="<?= $animation ?>"
|
|
|
|
|
|
|
14 |
in-business-schedule="<?= $inBusinessSchedule ?>"
|
|
|
15 |
>
|
16 |
</call-us-phone>
|
17 |
<?php } else { ?>
|
@@ -25,7 +29,7 @@
|
|
25 |
--call-us-agent-text-color:<?= $agentColor ?>;
|
26 |
--call-us-form-height:<?= $chat_height ?>;"
|
27 |
id="wp-live-chat-by-3CX"
|
28 |
-
channel-url="<?=
|
29 |
files-url="<?= wplc_protocol_agnostic_url( $files_url ) ?>"
|
30 |
wp-url="<?= wplc_protocol_agnostic_url( $wp_url ) ?>"
|
31 |
minimized="<?= $minimized ?>"
|
@@ -38,17 +42,16 @@
|
|
38 |
allow-soundnotifications="<?= $enable_msg_sounds ?>"
|
39 |
enable-mute="<?= $enable_msg_sounds ?>"
|
40 |
enable-onmobile="<?= $enable_mobile ?>"
|
|
|
41 |
enable="<?= $is_enable ?>"
|
42 |
in-business-schedule="<?= $inBusinessSchedule ?>"
|
43 |
soundnotification-url="<?= $message_sound ?>"
|
44 |
-
popout="<?= $popout_enabled ?>"
|
45 |
facebook-integration-url="<?= $integrations->facebook ?>"
|
46 |
twitter-integration-url="<?= $integrations->twitter ?>"
|
47 |
email-integration-url="<?= property_exists( $integrations, 'mail' ) ? $integrations->mail : '' ?>"
|
48 |
ignore-queueownership="<?= $ignoreQueueOwnership ?>"
|
49 |
enable-poweredby="<?= $enable_poweredby ?>"
|
50 |
authentication="<?= $auth_type ?>"
|
51 |
-
show-typing-indicator="<?= $enable_typing ?>"
|
52 |
operator-name="<?= $agent_name ?>"
|
53 |
show-operator-actual-name="<?= $showAgentsName ?>"
|
54 |
show-operator-actual-image="<?= $showAgentsName ?>"
|
@@ -70,8 +73,10 @@
|
|
70 |
visitor-email="<?= $visitor_email ?>"
|
71 |
greeting-visibility="<?= $greetingMode ?>"
|
72 |
greeting-offline-visibility="<?= $offlineGreetingMode ?>"
|
|
|
|
|
73 |
|
74 |
>
|
75 |
</call-us>
|
76 |
<?php } ?>
|
77 |
-
</div>
|
1 |
+
<div id="wplc-chat-container">
|
2 |
<?php if ( $onlyPhone ) { ?>
|
3 |
<call-us-phone
|
4 |
style="position: fixed; <?= $position_style ?> justify-content: flex-end;
|
11 |
wp-url="<?= $wp_url ?>"
|
12 |
party="<?= $chatParty ?>"
|
13 |
animation-style="<?= $animation ?>"
|
14 |
+
chat-delay="<?=$chatDelay?>"
|
15 |
+
enable="<?= $is_enable ?>"
|
16 |
+
enable-onmobile="<?= $enable_mobile ?>"
|
17 |
in-business-schedule="<?= $inBusinessSchedule ?>"
|
18 |
+
<?= $chatLang!=='browser'? "lang=\"".$chatLang."\"":"" ?>
|
19 |
>
|
20 |
</call-us-phone>
|
21 |
<?php } else { ?>
|
29 |
--call-us-agent-text-color:<?= $agentColor ?>;
|
30 |
--call-us-form-height:<?= $chat_height ?>;"
|
31 |
id="wp-live-chat-by-3CX"
|
32 |
+
channel-url="<?= $channel_url ?>"
|
33 |
files-url="<?= wplc_protocol_agnostic_url( $files_url ) ?>"
|
34 |
wp-url="<?= wplc_protocol_agnostic_url( $wp_url ) ?>"
|
35 |
minimized="<?= $minimized ?>"
|
42 |
allow-soundnotifications="<?= $enable_msg_sounds ?>"
|
43 |
enable-mute="<?= $enable_msg_sounds ?>"
|
44 |
enable-onmobile="<?= $enable_mobile ?>"
|
45 |
+
offline-enabled = "<?= $offline_enabled ?>"
|
46 |
enable="<?= $is_enable ?>"
|
47 |
in-business-schedule="<?= $inBusinessSchedule ?>"
|
48 |
soundnotification-url="<?= $message_sound ?>"
|
|
|
49 |
facebook-integration-url="<?= $integrations->facebook ?>"
|
50 |
twitter-integration-url="<?= $integrations->twitter ?>"
|
51 |
email-integration-url="<?= property_exists( $integrations, 'mail' ) ? $integrations->mail : '' ?>"
|
52 |
ignore-queueownership="<?= $ignoreQueueOwnership ?>"
|
53 |
enable-poweredby="<?= $enable_poweredby ?>"
|
54 |
authentication="<?= $auth_type ?>"
|
|
|
55 |
operator-name="<?= $agent_name ?>"
|
56 |
show-operator-actual-name="<?= $showAgentsName ?>"
|
57 |
show-operator-actual-image="<?= $showAgentsName ?>"
|
73 |
visitor-email="<?= $visitor_email ?>"
|
74 |
greeting-visibility="<?= $greetingMode ?>"
|
75 |
greeting-offline-visibility="<?= $offlineGreetingMode ?>"
|
76 |
+
chat-delay="<?=$chatDelay?>"
|
77 |
+
<?= $chatLang!=='browser'? "lang=\"".$chatLang."\"":"" ?>
|
78 |
|
79 |
>
|
80 |
</call-us>
|
81 |
<?php } ?>
|
82 |
+
</div>
|
modules/chat_client/js/callus.js
CHANGED
@@ -1,24 +1,25 @@
|
|
1 |
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.callus=t():e.callus=t()}(self,(function(){return(()=>{var __webpack_modules__={4537:e=>{"use strict";e.exports=function(e,t){var n=new Array(arguments.length-1),r=0,i=2,s=!0;for(;i<arguments.length;)n[r++]=arguments[i++];return new Promise((function(i,o){n[r]=function(e){if(s)if(s=!1,e)o(e);else{for(var t=new Array(arguments.length-1),n=0;n<t.length;)t[n++]=arguments[n];i.apply(null,t)}};try{e.apply(t||null,n)}catch(e){s&&(s=!1,o(e))}}))}},7419:(e,t)=>{"use strict";var n=t;n.length=function(e){var t=e.length;if(!t)return 0;for(var n=0;--t%4>1&&"="===e.charAt(t);)++n;return Math.ceil(3*e.length)/4-n};for(var r=new Array(64),i=new Array(123),s=0;s<64;)i[r[s]=s<26?s+65:s<52?s+71:s<62?s-4:s-59|43]=s++;n.encode=function(e,t,n){for(var i,s=null,o=[],a=0,c=0;t<n;){var l=e[t++];switch(c){case 0:o[a++]=r[l>>2],i=(3&l)<<4,c=1;break;case 1:o[a++]=r[i|l>>4],i=(15&l)<<2,c=2;break;case 2:o[a++]=r[i|l>>6],o[a++]=r[63&l],c=0}a>8191&&((s||(s=[])).push(String.fromCharCode.apply(String,o)),a=0)}return c&&(o[a++]=r[i],o[a++]=61,1===c&&(o[a++]=61)),s?(a&&s.push(String.fromCharCode.apply(String,o.slice(0,a))),s.join("")):String.fromCharCode.apply(String,o.slice(0,a))};var o="invalid encoding";n.decode=function(e,t,n){for(var r,s=n,a=0,c=0;c<e.length;){var l=e.charCodeAt(c++);if(61===l&&a>1)break;if(void 0===(l=i[l]))throw Error(o);switch(a){case 0:r=l,a=1;break;case 1:t[n++]=r<<2|(48&l)>>4,r=l,a=2;break;case 2:t[n++]=(15&r)<<4|(60&l)>>2,r=l,a=3;break;case 3:t[n++]=(3&r)<<6|l,a=0}}if(1===a)throw Error(o);return n-s},n.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},9211:e=>{"use strict";function t(){this._listeners={}}e.exports=t,t.prototype.on=function(e,t,n){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:n||this}),this},t.prototype.off=function(e,t){if(void 0===e)this._listeners={};else if(void 0===t)this._listeners[e]=[];else for(var n=this._listeners[e],r=0;r<n.length;)n[r].fn===t?n.splice(r,1):++r;return this},t.prototype.emit=function(e){var t=this._listeners[e];if(t){for(var n=[],r=1;r<arguments.length;)n.push(arguments[r++]);for(r=0;r<t.length;)t[r].fn.apply(t[r++].ctx,n)}return this}},945:e=>{"use strict";function t(e){return"undefined"!=typeof Float32Array?function(){var t=new Float32Array([-0]),n=new Uint8Array(t.buffer),r=128===n[3];function i(e,r,i){t[0]=e,r[i]=n[0],r[i+1]=n[1],r[i+2]=n[2],r[i+3]=n[3]}function s(e,r,i){t[0]=e,r[i]=n[3],r[i+1]=n[2],r[i+2]=n[1],r[i+3]=n[0]}function o(e,r){return n[0]=e[r],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],t[0]}function a(e,r){return n[3]=e[r],n[2]=e[r+1],n[1]=e[r+2],n[0]=e[r+3],t[0]}e.writeFloatLE=r?i:s,e.writeFloatBE=r?s:i,e.readFloatLE=r?o:a,e.readFloatBE=r?a:o}():function(){function t(e,t,n,r){var i=t<0?1:0;if(i&&(t=-t),0===t)e(1/t>0?0:2147483648,n,r);else if(isNaN(t))e(2143289344,n,r);else if(t>34028234663852886e22)e((i<<31|2139095040)>>>0,n,r);else if(t<11754943508222875e-54)e((i<<31|Math.round(t/1401298464324817e-60))>>>0,n,r);else{var s=Math.floor(Math.log(t)/Math.LN2);e((i<<31|s+127<<23|8388607&Math.round(t*Math.pow(2,-s)*8388608))>>>0,n,r)}}function o(e,t,n){var r=e(t,n),i=2*(r>>31)+1,s=r>>>23&255,o=8388607&r;return 255===s?o?NaN:i*(1/0):0===s?1401298464324817e-60*i*o:i*Math.pow(2,s-150)*(o+8388608)}e.writeFloatLE=t.bind(null,n),e.writeFloatBE=t.bind(null,r),e.readFloatLE=o.bind(null,i),e.readFloatBE=o.bind(null,s)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),n=new Uint8Array(t.buffer),r=128===n[7];function i(e,r,i){t[0]=e,r[i]=n[0],r[i+1]=n[1],r[i+2]=n[2],r[i+3]=n[3],r[i+4]=n[4],r[i+5]=n[5],r[i+6]=n[6],r[i+7]=n[7]}function s(e,r,i){t[0]=e,r[i]=n[7],r[i+1]=n[6],r[i+2]=n[5],r[i+3]=n[4],r[i+4]=n[3],r[i+5]=n[2],r[i+6]=n[1],r[i+7]=n[0]}function o(e,r){return n[0]=e[r],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],n[4]=e[r+4],n[5]=e[r+5],n[6]=e[r+6],n[7]=e[r+7],t[0]}function a(e,r){return n[7]=e[r],n[6]=e[r+1],n[5]=e[r+2],n[4]=e[r+3],n[3]=e[r+4],n[2]=e[r+5],n[1]=e[r+6],n[0]=e[r+7],t[0]}e.writeDoubleLE=r?i:s,e.writeDoubleBE=r?s:i,e.readDoubleLE=r?o:a,e.readDoubleBE=r?a:o}():function(){function t(e,t,n,r,i,s){var o=r<0?1:0;if(o&&(r=-r),0===r)e(0,i,s+t),e(1/r>0?0:2147483648,i,s+n);else if(isNaN(r))e(0,i,s+t),e(2146959360,i,s+n);else if(r>17976931348623157e292)e(0,i,s+t),e((o<<31|2146435072)>>>0,i,s+n);else{var a;if(r<22250738585072014e-324)e((a=r/5e-324)>>>0,i,s+t),e((o<<31|a/4294967296)>>>0,i,s+n);else{var c=Math.floor(Math.log(r)/Math.LN2);1024===c&&(c=1023),e(4503599627370496*(a=r*Math.pow(2,-c))>>>0,i,s+t),e((o<<31|c+1023<<20|1048576*a&1048575)>>>0,i,s+n)}}}function o(e,t,n,r,i){var s=e(r,i+t),o=e(r,i+n),a=2*(o>>31)+1,c=o>>>20&2047,l=4294967296*(1048575&o)+s;return 2047===c?l?NaN:a*(1/0):0===c?5e-324*a*l:a*Math.pow(2,c-1075)*(l+4503599627370496)}e.writeDoubleLE=t.bind(null,n,0,4),e.writeDoubleBE=t.bind(null,r,4,0),e.readDoubleLE=o.bind(null,i,0,4),e.readDoubleBE=o.bind(null,s,4,0)}(),e}function n(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}function r(e,t,n){t[n]=e>>>24,t[n+1]=e>>>16&255,t[n+2]=e>>>8&255,t[n+3]=255&e}function i(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function s(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},7199:module=>{"use strict";function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}module.exports=inquire},6662:e=>{"use strict";e.exports=function(e,t,n){var r=n||8192,i=r>>>1,s=null,o=r;return function(n){if(n<1||n>i)return e(n);o+n>r&&(s=e(r),o=0);var a=t.call(s,o,o+=n);return 7&o&&(o=1+(7|o)),a}}},4997:(e,t)=>{"use strict";var n=t;n.length=function(e){for(var t=0,n=0,r=0;r<e.length;++r)(n=e.charCodeAt(r))<128?t+=1:n<2048?t+=2:55296==(64512&n)&&56320==(64512&e.charCodeAt(r+1))?(++r,t+=4):t+=3;return t},n.read=function(e,t,n){if(n-t<1)return"";for(var r,i=null,s=[],o=0;t<n;)(r=e[t++])<128?s[o++]=r:r>191&&r<224?s[o++]=(31&r)<<6|63&e[t++]:r>239&&r<365?(r=((7&r)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,s[o++]=55296+(r>>10),s[o++]=56320+(1023&r)):s[o++]=(15&r)<<12|(63&e[t++])<<6|63&e[t++],o>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,s)),o=0);return i?(o&&i.push(String.fromCharCode.apply(String,s.slice(0,o))),i.join("")):String.fromCharCode.apply(String,s.slice(0,o))},n.write=function(e,t,n){for(var r,i,s=n,o=0;o<e.length;++o)(r=e.charCodeAt(o))<128?t[n++]=r:r<2048?(t[n++]=r>>6|192,t[n++]=63&r|128):55296==(64512&r)&&56320==(64512&(i=e.charCodeAt(o+1)))?(r=65536+((1023&r)<<10)+(1023&i),++o,t[n++]=r>>18|240,t[n++]=r>>12&63|128,t[n++]=r>>6&63|128,t[n++]=63&r|128):(t[n++]=r>>12|224,t[n++]=r>>6&63|128,t[n++]=63&r|128);return n-s}},7363:()=>{(function(){"use strict";var e=window.Document.prototype.createElement,t=window.Document.prototype.createElementNS,n=window.Document.prototype.importNode,r=window.Document.prototype.prepend,i=window.Document.prototype.append,s=window.DocumentFragment.prototype.prepend,o=window.DocumentFragment.prototype.append,a=window.Node.prototype.cloneNode,c=window.Node.prototype.appendChild,l=window.Node.prototype.insertBefore,f=window.Node.prototype.removeChild,u=window.Node.prototype.replaceChild,d=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),h=window.Element.prototype.attachShadow,p=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),m=window.Element.prototype.getAttribute,g=window.Element.prototype.setAttribute,v=window.Element.prototype.removeAttribute,b=window.Element.prototype.getAttributeNS,y=window.Element.prototype.setAttributeNS,_=window.Element.prototype.removeAttributeNS,A=window.Element.prototype.insertAdjacentElement,w=window.Element.prototype.insertAdjacentHTML,C=window.Element.prototype.prepend,E=window.Element.prototype.append,S=window.Element.prototype.before,T=window.Element.prototype.after,O=window.Element.prototype.replaceWith,x=window.Element.prototype.remove,M=window.HTMLElement,N=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),I=window.HTMLElement.prototype.insertAdjacentElement,R=window.HTMLElement.prototype.insertAdjacentHTML,k=new Set;function P(e){var t=k.has(e);return e=/^[a-z][.0-9_a-z]*-[-.0-9_a-z]*$/.test(e),!t&&e}"annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ").forEach((function(e){return k.add(e)}));var D=document.contains?document.contains.bind(document):document.documentElement.contains.bind(document.documentElement);function F(e){var t=e.isConnected;if(void 0!==t)return t;if(D(e))return!0;for(;e&&!(e.__CE_isImportDocument||e instanceof Document);)e=e.parentNode||(window.ShadowRoot&&e instanceof ShadowRoot?e.host:void 0);return!(!e||!(e.__CE_isImportDocument||e instanceof Document))}function B(e){var t=e.children;if(t)return Array.prototype.slice.call(t);for(t=[],e=e.firstChild;e;e=e.nextSibling)e.nodeType===Node.ELEMENT_NODE&&t.push(e);return t}function L(e,t){for(;t&&t!==e&&!t.nextSibling;)t=t.parentNode;return t&&t!==e?t.nextSibling:null}function j(e,t,n){for(var r=e;r;){if(r.nodeType===Node.ELEMENT_NODE){var i=r;t(i);var s=i.localName;if("link"===s&&"import"===i.getAttribute("rel")){if(r=i.import,void 0===n&&(n=new Set),r instanceof Node&&!n.has(r))for(n.add(r),r=r.firstChild;r;r=r.nextSibling)j(r,t,n);r=L(e,i);continue}if("template"===s){r=L(e,i);continue}if(i=i.__CE_shadowRoot)for(i=i.firstChild;i;i=i.nextSibling)j(i,t,n)}r=r.firstChild?r.firstChild:L(e,r)}}function U(){var e=!(null==ae||!ae.noDocumentConstructionObserver),t=!(null==ae||!ae.shadyDomFastWalk);this.h=[],this.a=[],this.f=!1,this.shadyDomFastWalk=t,this.C=!e}function q(e,t,n,r){var i=window.ShadyDom;if(e.shadyDomFastWalk&&i&&i.inUse){if(t.nodeType===Node.ELEMENT_NODE&&n(t),t.querySelectorAll)for(e=i.nativeMethods.querySelectorAll.call(t,"*"),t=0;t<e.length;t++)n(e[t])}else j(t,n,r)}function z(e,t){e.f&&q(e,t,(function(t){return G(e,t)}))}function G(e,t){if(e.f&&!t.__CE_patched){t.__CE_patched=!0;for(var n=0;n<e.h.length;n++)e.h[n](t);for(n=0;n<e.a.length;n++)e.a[n](t)}}function H(e,t){var n=[];for(q(e,t,(function(e){return n.push(e)})),t=0;t<n.length;t++){var r=n[t];1===r.__CE_state?e.connectedCallback(r):$(e,r)}}function V(e,t){var n=[];for(q(e,t,(function(e){return n.push(e)})),t=0;t<n.length;t++){var r=n[t];1===r.__CE_state&&e.disconnectedCallback(r)}}function W(e,t,n){var r=(n=void 0===n?{}:n).D,i=n.upgrade||function(t){return $(e,t)},s=[];for(q(e,t,(function(t){if(e.f&&G(e,t),"link"===t.localName&&"import"===t.getAttribute("rel")){var n=t.import;n instanceof Node&&(n.__CE_isImportDocument=!0,n.__CE_registry=document.__CE_registry),n&&"complete"===n.readyState?n.__CE_documentLoadHandled=!0:t.addEventListener("load",(function(){var n=t.import;if(!n.__CE_documentLoadHandled){n.__CE_documentLoadHandled=!0;var s=new Set;r&&(r.forEach((function(e){return s.add(e)})),s.delete(n)),W(e,n,{D:s,upgrade:i})}}))}else s.push(t)}),r),t=0;t<s.length;t++)i(s[t])}function $(e,t){try{var n=t.ownerDocument,r=n.__CE_registry,i=r&&(n.defaultView||n.__CE_isImportDocument)?re(r,t.localName):void 0;if(i&&void 0===t.__CE_state){i.constructionStack.push(t);try{try{if(new i.constructorFunction!==t)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{i.constructionStack.pop()}}catch(e){throw t.__CE_state=2,e}if(t.__CE_state=1,t.__CE_definition=i,i.attributeChangedCallback&&t.hasAttributes()){var s=i.observedAttributes;for(i=0;i<s.length;i++){var o=s[i],a=t.getAttribute(o);null!==a&&e.attributeChangedCallback(t,o,null,a,null)}}F(t)&&e.connectedCallback(t)}}catch(e){Y(e)}}function Q(n,r,i,s){var o=r.__CE_registry;if(o&&(null===s||"http://www.w3.org/1999/xhtml"===s)&&(o=re(o,i)))try{var a=new o.constructorFunction;if(void 0===a.__CE_state||void 0===a.__CE_definition)throw Error("Failed to construct '"+i+"': The returned value was not constructed with the HTMLElement constructor.");if("http://www.w3.org/1999/xhtml"!==a.namespaceURI)throw Error("Failed to construct '"+i+"': The constructed element's namespace must be the HTML namespace.");if(a.hasAttributes())throw Error("Failed to construct '"+i+"': The constructed element must not have any attributes.");if(null!==a.firstChild)throw Error("Failed to construct '"+i+"': The constructed element must not have any children.");if(null!==a.parentNode)throw Error("Failed to construct '"+i+"': The constructed element must not have a parent node.");if(a.ownerDocument!==r)throw Error("Failed to construct '"+i+"': The constructed element's owner document is incorrect.");if(a.localName!==i)throw Error("Failed to construct '"+i+"': The constructed element's local name is incorrect.");return a}catch(o){return Y(o),r=null===s?e.call(r,i):t.call(r,s,i),Object.setPrototypeOf(r,HTMLUnknownElement.prototype),r.__CE_state=2,r.__CE_definition=void 0,G(n,r),r}return G(n,r=null===s?e.call(r,i):t.call(r,s,i)),r}function Y(e){var t=e.message,n=e.sourceURL||e.fileName||"",r=e.line||e.lineNumber||0,i=e.column||e.columnNumber||0,s=void 0;void 0===ErrorEvent.prototype.initErrorEvent?s=new ErrorEvent("error",{cancelable:!0,message:t,filename:n,lineno:r,colno:i,error:e}):((s=document.createEvent("ErrorEvent")).initErrorEvent("error",!1,!0,t,n,r),s.preventDefault=function(){Object.defineProperty(this,"defaultPrevented",{configurable:!0,get:function(){return!0}})}),void 0===s.error&&Object.defineProperty(s,"error",{configurable:!0,enumerable:!0,get:function(){return e}}),window.dispatchEvent(s),s.defaultPrevented||console.error(e)}function X(){var e=this;this.a=void 0,this.w=new Promise((function(t){e.g=t}))}function K(e){var t=document;this.g=void 0,this.b=e,this.a=t,W(this.b,this.a),"loading"===this.a.readyState&&(this.g=new MutationObserver(this.A.bind(this)),this.g.observe(this.a,{childList:!0,subtree:!0}))}function Z(e){e.g&&e.g.disconnect()}function J(e){this.j=new Map,this.l=new Map,this.u=new Map,this.o=!1,this.s=new Map,this.i=function(e){return e()},this.c=!1,this.m=[],this.b=e,this.v=e.C?new K(e):void 0}function ee(e,t){if(!P(t))throw new SyntaxError("The element name '"+t+"' is not valid.");if(re(e,t))throw Error("A custom element with name '"+t+"' has already been defined.");if(e.o)throw Error("A custom element is already being defined.")}function te(e,t,n){var r;e.o=!0;try{var i=n.prototype;if(!(i instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var s=function(e){var t=i[e];if(void 0!==t&&!(t instanceof Function))throw Error("The '"+e+"' callback must be a function.");return t},o=s("connectedCallback"),a=s("disconnectedCallback"),c=s("adoptedCallback"),l=(r=s("attributeChangedCallback"))&&n.observedAttributes||[]}catch(e){throw e}finally{e.o=!1}return n={localName:t,constructorFunction:n,connectedCallback:o,disconnectedCallback:a,adoptedCallback:c,attributeChangedCallback:r,observedAttributes:l,constructionStack:[]},e.l.set(t,n),e.u.set(n.constructorFunction,n),n}function ne(e){if(!1!==e.c){e.c=!1;for(var t=[],n=e.m,r=new Map,i=0;i<n.length;i++)r.set(n[i],[]);for(W(e.b,document,{upgrade:function(n){if(void 0===n.__CE_state){var i=n.localName,s=r.get(i);s?s.push(n):e.l.has(i)&&t.push(n)}}}),i=0;i<t.length;i++)$(e.b,t[i]);for(i=0;i<n.length;i++){for(var s=n[i],o=r.get(s),a=0;a<o.length;a++)$(e.b,o[a]);(s=e.s.get(s))&&s.resolve(void 0)}n.length=0}}function re(e,t){var n=e.l.get(t);if(n)return n;if(n=e.j.get(t)){e.j.delete(t);try{return te(e,t,n())}catch(e){Y(e)}}}function ie(e,t,n){function r(t){return function(n){for(var r=[],i=0;i<arguments.length;++i)r[i]=arguments[i];i=[];for(var s=[],o=0;o<r.length;o++){var a=r[o];if(a instanceof Element&&F(a)&&s.push(a),a instanceof DocumentFragment)for(a=a.firstChild;a;a=a.nextSibling)i.push(a);else i.push(a)}for(t.apply(this,r),r=0;r<s.length;r++)V(e,s[r]);if(F(this))for(r=0;r<i.length;r++)(s=i[r])instanceof Element&&H(e,s)}}void 0!==n.prepend&&(t.prepend=r(n.prepend)),void 0!==n.append&&(t.append=r(n.append))}function se(e){function n(t,n){Object.defineProperty(t,"innerHTML",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(t){var r=this,i=void 0;if(F(this)&&(i=[],q(e,this,(function(e){e!==r&&i.push(e)}))),n.set.call(this,t),i)for(var s=0;s<i.length;s++){var o=i[s];1===o.__CE_state&&e.disconnectedCallback(o)}return this.ownerDocument.__CE_registry?W(e,this):z(e,this),t}})}function r(t,n){t.insertAdjacentElement=function(t,r){var i=F(r);return t=n.call(this,t,r),i&&V(e,r),F(t)&&H(e,r),t}}function i(t,n){function r(t,n){for(var r=[];t!==n;t=t.nextSibling)r.push(t);for(n=0;n<r.length;n++)W(e,r[n])}t.insertAdjacentHTML=function(e,t){if("beforebegin"===(e=e.toLowerCase())){var i=this.previousSibling;n.call(this,e,t),r(i||this.parentNode.firstChild,this)}else if("afterbegin"===e)i=this.firstChild,n.call(this,e,t),r(this.firstChild,i);else if("beforeend"===e)i=this.lastChild,n.call(this,e,t),r(i||this.firstChild,null);else{if("afterend"!==e)throw new SyntaxError("The value provided ("+String(e)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");i=this.nextSibling,n.call(this,e,t),r(this.nextSibling,i)}}}h&&(Element.prototype.attachShadow=function(t){if(t=h.call(this,t),e.f&&!t.__CE_patched){t.__CE_patched=!0;for(var n=0;n<e.h.length;n++)e.h[n](t)}return this.__CE_shadowRoot=t}),p&&p.get?n(Element.prototype,p):N&&N.get?n(HTMLElement.prototype,N):function(e,t){e.f=!0,e.a.push(t)}(e,(function(e){n(e,{enumerable:!0,configurable:!0,get:function(){return a.call(this,!0).innerHTML},set:function(e){var n="template"===this.localName,r=n?this.content:this,i=t.call(document,this.namespaceURI,this.localName);for(i.innerHTML=e;0<r.childNodes.length;)f.call(r,r.childNodes[0]);for(e=n?i.content:i;0<e.childNodes.length;)c.call(r,e.childNodes[0])}})})),Element.prototype.setAttribute=function(t,n){if(1!==this.__CE_state)return g.call(this,t,n);var r=m.call(this,t);g.call(this,t,n),n=m.call(this,t),e.attributeChangedCallback(this,t,r,n,null)},Element.prototype.setAttributeNS=function(t,n,r){if(1!==this.__CE_state)return y.call(this,t,n,r);var i=b.call(this,t,n);y.call(this,t,n,r),r=b.call(this,t,n),e.attributeChangedCallback(this,n,i,r,t)},Element.prototype.removeAttribute=function(t){if(1!==this.__CE_state)return v.call(this,t);var n=m.call(this,t);v.call(this,t),null!==n&&e.attributeChangedCallback(this,t,n,null,null)},Element.prototype.removeAttributeNS=function(t,n){if(1!==this.__CE_state)return _.call(this,t,n);var r=b.call(this,t,n);_.call(this,t,n);var i=b.call(this,t,n);r!==i&&e.attributeChangedCallback(this,n,r,i,t)},I?r(HTMLElement.prototype,I):A&&r(Element.prototype,A),R?i(HTMLElement.prototype,R):w&&i(Element.prototype,w),ie(e,Element.prototype,{prepend:C,append:E}),function(e){function t(t){return function(n){for(var r=[],i=0;i<arguments.length;++i)r[i]=arguments[i];i=[];for(var s=[],o=0;o<r.length;o++){var a=r[o];if(a instanceof Element&&F(a)&&s.push(a),a instanceof DocumentFragment)for(a=a.firstChild;a;a=a.nextSibling)i.push(a);else i.push(a)}for(t.apply(this,r),r=0;r<s.length;r++)V(e,s[r]);if(F(this))for(r=0;r<i.length;r++)(s=i[r])instanceof Element&&H(e,s)}}var n=Element.prototype;void 0!==S&&(n.before=t(S)),void 0!==T&&(n.after=t(T)),void 0!==O&&(n.replaceWith=function(t){for(var n=[],r=0;r<arguments.length;++r)n[r]=arguments[r];r=[];for(var i=[],s=0;s<n.length;s++){var o=n[s];if(o instanceof Element&&F(o)&&i.push(o),o instanceof DocumentFragment)for(o=o.firstChild;o;o=o.nextSibling)r.push(o);else r.push(o)}for(s=F(this),O.apply(this,n),n=0;n<i.length;n++)V(e,i[n]);if(s)for(V(e,this),n=0;n<r.length;n++)(i=r[n])instanceof Element&&H(e,i)}),void 0!==x&&(n.remove=function(){var t=F(this);x.call(this),t&&V(e,this)})}(e)}U.prototype.connectedCallback=function(e){var t=e.__CE_definition;if(t.connectedCallback)try{t.connectedCallback.call(e)}catch(e){Y(e)}},U.prototype.disconnectedCallback=function(e){var t=e.__CE_definition;if(t.disconnectedCallback)try{t.disconnectedCallback.call(e)}catch(e){Y(e)}},U.prototype.attributeChangedCallback=function(e,t,n,r,i){var s=e.__CE_definition;if(s.attributeChangedCallback&&-1<s.observedAttributes.indexOf(t))try{s.attributeChangedCallback.call(e,t,n,r,i)}catch(e){Y(e)}},X.prototype.resolve=function(e){if(this.a)throw Error("Already resolved.");this.a=e,this.g(e)},K.prototype.A=function(e){var t=this.a.readyState;for("interactive"!==t&&"complete"!==t||Z(this),t=0;t<e.length;t++)for(var n=e[t].addedNodes,r=0;r<n.length;r++)W(this.b,n[r])},J.prototype.B=function(e,t){var n=this;if(!(t instanceof Function))throw new TypeError("Custom element constructor getters must be functions.");ee(this,e),this.j.set(e,t),this.m.push(e),this.c||(this.c=!0,this.i((function(){return ne(n)})))},J.prototype.define=function(e,t){var n=this;if(!(t instanceof Function))throw new TypeError("Custom element constructors must be functions.");ee(this,e),te(this,e,t),this.m.push(e),this.c||(this.c=!0,this.i((function(){return ne(n)})))},J.prototype.upgrade=function(e){W(this.b,e)},J.prototype.get=function(e){if(e=re(this,e))return e.constructorFunction},J.prototype.whenDefined=function(e){if(!P(e))return Promise.reject(new SyntaxError("'"+e+"' is not a valid custom element name."));var t=this.s.get(e);if(t)return t.w;t=new X,this.s.set(e,t);var n=this.l.has(e)||this.j.has(e);return e=-1===this.m.indexOf(e),n&&e&&t.resolve(void 0),t.w},J.prototype.polyfillWrapFlushCallback=function(e){this.v&&Z(this.v);var t=this.i;this.i=function(n){return e((function(){return t(n)}))}},window.CustomElementRegistry=J,J.prototype.define=J.prototype.define,J.prototype.upgrade=J.prototype.upgrade,J.prototype.get=J.prototype.get,J.prototype.whenDefined=J.prototype.whenDefined,J.prototype.polyfillDefineLazy=J.prototype.B,J.prototype.polyfillWrapFlushCallback=J.prototype.polyfillWrapFlushCallback;var oe={};var ae=window.customElements;function ce(){var t=new U;!function(t){function n(){var n=this.constructor,r=document.__CE_registry.u.get(n);if(!r)throw Error("Failed to construct a custom element: The constructor was not registered with `customElements`.");var i=r.constructionStack;if(0===i.length)return i=e.call(document,r.localName),Object.setPrototypeOf(i,n.prototype),i.__CE_state=1,i.__CE_definition=r,G(t,i),i;var s=i.length-1,o=i[s];if(o===oe)throw Error("Failed to construct '"+r.localName+"': This element was already constructed.");return i[s]=oe,Object.setPrototypeOf(o,n.prototype),G(t,o),o}n.prototype=M.prototype,Object.defineProperty(HTMLElement.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:n}),window.HTMLElement=n}(t),function(e){Document.prototype.createElement=function(t){return Q(e,this,t,null)},Document.prototype.importNode=function(t,r){return t=n.call(this,t,!!r),this.__CE_registry?W(e,t):z(e,t),t},Document.prototype.createElementNS=function(t,n){return Q(e,this,n,t)},ie(e,Document.prototype,{prepend:r,append:i})}(t),ie(t,DocumentFragment.prototype,{prepend:s,append:o}),function(e){function t(t,n){Object.defineProperty(t,"textContent",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(t){if(this.nodeType===Node.TEXT_NODE)n.set.call(this,t);else{var r=void 0;if(this.firstChild){var i=this.childNodes,s=i.length;if(0<s&&F(this)){r=Array(s);for(var o=0;o<s;o++)r[o]=i[o]}}if(n.set.call(this,t),r)for(t=0;t<r.length;t++)V(e,r[t])}}})}Node.prototype.insertBefore=function(t,n){if(t instanceof DocumentFragment){var r=B(t);if(t=l.call(this,t,n),F(this))for(n=0;n<r.length;n++)H(e,r[n]);return t}return r=t instanceof Element&&F(t),n=l.call(this,t,n),r&&V(e,t),F(this)&&H(e,t),n},Node.prototype.appendChild=function(t){if(t instanceof DocumentFragment){var n=B(t);if(t=c.call(this,t),F(this))for(var r=0;r<n.length;r++)H(e,n[r]);return t}return n=t instanceof Element&&F(t),r=c.call(this,t),n&&V(e,t),F(this)&&H(e,t),r},Node.prototype.cloneNode=function(t){return t=a.call(this,!!t),this.ownerDocument.__CE_registry?W(e,t):z(e,t),t},Node.prototype.removeChild=function(t){var n=t instanceof Element&&F(t),r=f.call(this,t);return n&&V(e,t),r},Node.prototype.replaceChild=function(t,n){if(t instanceof DocumentFragment){var r=B(t);if(t=u.call(this,t,n),F(this))for(V(e,n),n=0;n<r.length;n++)H(e,r[n]);return t}r=t instanceof Element&&F(t);var i=u.call(this,t,n),s=F(this);return s&&V(e,n),r&&V(e,t),s&&H(e,t),i},d&&d.get?t(Node.prototype,d):function(e,t){e.f=!0,e.h.push(t)}(e,(function(e){t(e,{enumerable:!0,configurable:!0,get:function(){for(var e=[],t=this.firstChild;t;t=t.nextSibling)t.nodeType!==Node.COMMENT_NODE&&e.push(t.textContent);return e.join("")},set:function(e){for(;this.firstChild;)f.call(this,this.firstChild);null!=e&&""!==e&&c.call(this,document.createTextNode(e))}})}))}(t),se(t),t=new J(t),document.__CE_registry=t,Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:t})}ae&&!ae.forcePolyfill&&"function"==typeof ae.define&&"function"==typeof ae.get||ce(),window.__CE_installPolyfill=ce}).call(self)},6919:function(e,t,n){(function(){"use strict";var e;function t(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}function r(e){var n="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return n?n.call(e):{next:t(e)}}function i(e){if(!(e instanceof Array)){e=r(e);for(var t,n=[];!(t=e.next()).done;)n.push(t.value);e=n}return e}var s="undefined"!=typeof window&&window===this?this:void 0!==n.g&&null!=n.g?n.g:this;function o(e,t){return{index:e,s:[],v:t}}function a(e,t,n,r){var i=0,s=0,a=0,l=0,f=Math.min(t-i,r-s);if(0==i&&0==s)e:{for(a=0;a<f;a++)if(e[a]!==n[a])break e;a=f}if(t==e.length&&r==n.length){l=e.length;for(var u=n.length,d=0;d<f-a&&c(e[--l],n[--u]);)d++;l=d}if(s+=a,r-=l,0==(t-=l)-(i+=a)&&0==r-s)return[];if(i==t){for(t=o(i,0);s<r;)t.s.push(n[s++]);return[t]}if(s==r)return[o(i,t-i)];for(r=r-(a=s)+1,l=t-(f=i)+1,t=Array(r),u=0;u<r;u++)t[u]=Array(l),t[u][0]=u;for(u=0;u<l;u++)t[0][u]=u;for(u=1;u<r;u++)for(d=1;d<l;d++)if(e[f+d-1]===n[a+u-1])t[u][d]=t[u-1][d-1];else{var h=t[u-1][d]+1,p=t[u][d-1]+1;t[u][d]=h<p?h:p}for(f=t.length-1,a=t[0].length-1,r=t[f][a],e=[];0<f||0<a;)0==f?(e.push(2),a--):0==a?(e.push(3),f--):(l=t[f-1][a-1],(h=(u=t[f-1][a])<(d=t[f][a-1])?u<l?u:l:d<l?d:l)==l?(l==r?e.push(0):(e.push(1),r=l),f--,a--):h==u?(e.push(3),f--,r=u):(e.push(2),a--,r=d));for(e.reverse(),t=void 0,f=[],a=0;a<e.length;a++)switch(e[a]){case 0:t&&(f.push(t),t=void 0),i++,s++;break;case 1:t||(t=o(i,0)),t.v++,i++,t.s.push(n[s]),s++;break;case 2:t||(t=o(i,0)),t.v++,i++;break;case 3:t||(t=o(i,0)),t.s.push(n[s]),s++}return t&&f.push(t),f}function c(e,t){return e===t}function l(){}function f(e){return e.__shady||(e.__shady=new l),e.__shady}function u(e){return e&&e.__shady}l.prototype.toJSON=function(){return{}};var d=window.ShadyDOM||{};d.T=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var h=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");function p(e){return(e=u(e))&&void 0!==e.firstChild}function m(e){return e instanceof ShadowRoot}function g(e){return(e=(e=u(e))&&e.root)&&Lt(e)}d.c=!!(h&&h.configurable&&h.get),d.F=d.force||!d.T,d.g=d.noPatch||!1,d.o=d.preferPerformance,d.G="on-demand"===d.g,d.L=navigator.userAgent.match("Trident");var v=Element.prototype,b=v.matches||v.matchesSelector||v.mozMatchesSelector||v.msMatchesSelector||v.oMatchesSelector||v.webkitMatchesSelector,y=document.createTextNode(""),_=0,A=[];function w(e){A.push(e),y.textContent=_++}new MutationObserver((function(){for(;A.length;)try{A.shift()()}catch(e){throw y.textContent=_++,e}})).observe(y,{characterData:!0});var C=document.contains?function(e,t){return e.__shady_native_contains(t)}:function(e,t){return e===t||e.documentElement&&e.documentElement.__shady_native_contains(t)};function E(e,t){for(;t;){if(t==e)return!0;t=t.__shady_parentNode}return!1}function S(e){for(var t=e.length-1;0<=t;t--){var n=e[t],i=n.getAttribute("id")||n.getAttribute("name");i&&"length"!==i&&isNaN(i)&&(e[i]=n)}return e.item=function(t){return e[t]},e.namedItem=function(t){if("length"!==t&&isNaN(t)&&e[t])return e[t];for(var n=r(e),i=n.next();!i.done;i=n.next())if(((i=i.value).getAttribute("id")||i.getAttribute("name"))==t)return i;return null},e}function T(e){var t=[];for(e=e.__shady_native_firstChild;e;e=e.__shady_native_nextSibling)t.push(e);return t}function O(e){var t=[];for(e=e.__shady_firstChild;e;e=e.__shady_nextSibling)t.push(e);return t}function x(e,t,n){if(n.configurable=!0,n.value)e[t]=n.value;else try{Object.defineProperty(e,t,n)}catch(e){}}function M(e,t,n,r){for(var i in n=void 0===n?"":n,t)r&&0<=r.indexOf(i)||x(e,n+i,t[i])}function N(e,t){for(var n in t)n in e&&x(e,n,t[n])}function I(e){var t={};return Object.getOwnPropertyNames(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t}function R(e,t){for(var n,r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++)e[n=r[i]]=t[n]}function k(e){return e instanceof Node?e:document.createTextNode(""+e)}function P(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];if(1===t.length)return k(t[0]);n=document.createDocumentFragment();for(var i=(t=r(t)).next();!i.done;i=t.next())n.appendChild(k(i.value));return n}var D,F=[];function B(e){D||(D=!0,w(L)),F.push(e)}function L(){D=!1;for(var e=!!F.length;F.length;)F.shift()();return e}L.list=F;var j=I({get childNodes(){return this.__shady_childNodes},get firstChild(){return this.__shady_firstChild},get lastChild(){return this.__shady_lastChild},get childElementCount(){return this.__shady_childElementCount},get children(){return this.__shady_children},get firstElementChild(){return this.__shady_firstElementChild},get lastElementChild(){return this.__shady_lastElementChild},get shadowRoot(){return this.__shady_shadowRoot}}),U=I({get textContent(){return this.__shady_textContent},set textContent(e){this.__shady_textContent=e},get innerHTML(){return this.__shady_innerHTML},set innerHTML(e){return this.__shady_innerHTML=e}}),q=I({get parentElement(){return this.__shady_parentElement},get parentNode(){return this.__shady_parentNode},get nextSibling(){return this.__shady_nextSibling},get previousSibling(){return this.__shady_previousSibling},get nextElementSibling(){return this.__shady_nextElementSibling},get previousElementSibling(){return this.__shady_previousElementSibling},get className(){return this.__shady_className},set className(e){return this.__shady_className=e}});function z(e){for(var t in e){var n=e[t];n&&(n.enumerable=!1)}}z(j),z(U),z(q);var G,H=d.c||!0===d.g,V=H?function(){}:function(e){var t=f(e);t.N||(t.N=!0,N(e,q))},W=H?function(){}:function(e){var t=f(e);t.M||(t.M=!0,N(e,j),window.customElements&&window.customElements.polyfillWrapFlushCallback&&!d.g||N(e,U))},$="__eventWrappers"+Date.now(),Q=(G=Object.getOwnPropertyDescriptor(Event.prototype,"composed"))?function(e){return G.get.call(e)}:null,Y=function(){function e(){}var t=!1,n={get capture(){return t=!0,!1}};return window.addEventListener("test",e,n),window.removeEventListener("test",e,n),t}();function X(e){if(e&&"object"==typeof e)var t=!!e.capture,n=!!e.once,r=!!e.passive,i=e.i;else t=!!e,r=n=!1;return{K:i,capture:t,once:n,passive:r,J:Y?e:t}}var K={blur:!0,focus:!0,focusin:!0,focusout:!0,click:!0,dblclick:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,wheel:!0,beforeinput:!0,input:!0,keydown:!0,keyup:!0,compositionstart:!0,compositionupdate:!0,compositionend:!0,touchstart:!0,touchend:!0,touchmove:!0,touchcancel:!0,pointerover:!0,pointerenter:!0,pointerdown:!0,pointermove:!0,pointerup:!0,pointercancel:!0,pointerout:!0,pointerleave:!0,gotpointercapture:!0,lostpointercapture:!0,dragstart:!0,drag:!0,dragenter:!0,dragleave:!0,dragover:!0,drop:!0,dragend:!0,DOMActivate:!0,DOMFocusIn:!0,DOMFocusOut:!0,keypress:!0},Z={DOMAttrModified:!0,DOMAttributeNameChanged:!0,DOMCharacterDataModified:!0,DOMElementNameChanged:!0,DOMNodeInserted:!0,DOMNodeInsertedIntoDocument:!0,DOMNodeRemoved:!0,DOMNodeRemovedFromDocument:!0,DOMSubtreeModified:!0};function J(e){return e instanceof Node?e.__shady_getRootNode():e}function ee(e,t){var n=[],r=e;for(e=J(e);r;)n.push(r),r=r.__shady_assignedSlot?r.__shady_assignedSlot:r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host&&(t||r!==e)?r.host:r.__shady_parentNode;return n[n.length-1]===document&&n.push(window),n}function te(e,t){if(!m)return e;e=ee(e,!0);for(var n,r,i=0,s=void 0,o=void 0;i<t.length;i++)if((r=J(n=t[i]))!==s&&(o=e.indexOf(r),s=r),!m(r)||-1<o)return n}function ne(e){function t(t,n){return(t=new e(t,n)).__composed=n&&!!n.composed,t}return t.__proto__=e,t.prototype=e.prototype,t}var re={focus:!0,blur:!0};function ie(e){return e.__target!==e.target||e.__relatedTarget!==e.relatedTarget}function se(e,t,n){if(n=t.__handlers&&t.__handlers[e.type]&&t.__handlers[e.type][n])for(var r,i=0;(r=n[i])&&(!ie(e)||e.target!==e.relatedTarget)&&(r.call(t,e),!e.__immediatePropagationStopped);i++);}function oe(e){var t=e.composedPath(),n=t.map((function(e){return te(e,t)})),r=e.bubbles;Object.defineProperty(e,"currentTarget",{configurable:!0,enumerable:!0,get:function(){return o}});var i=Event.CAPTURING_PHASE;Object.defineProperty(e,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return i}});for(var s=t.length-1;0<=s;s--){var o=t[s];if(i=o===n[s]?Event.AT_TARGET:Event.CAPTURING_PHASE,se(e,o,"capture"),e.B)return}for(s=0;s<t.length;s++){var a=(o=t[s])===n[s];if((a||r)&&(i=a?Event.AT_TARGET:Event.BUBBLING_PHASE,se(e,o,"bubble"),e.B))return}i=0,o=null}function ae(e,t,n,r,i,s){for(var o=0;o<e.length;o++){var a=e[o],c=a.type,l=a.capture,f=a.once,u=a.passive;if(t===a.node&&n===c&&r===l&&i===f&&s===u)return o}return-1}function ce(e){return L(),!d.o&&this instanceof Node&&!C(document,this)?(e.__target||de(e,this),oe(e)):this.__shady_native_dispatchEvent(e)}function le(e,t,n){var r=X(n),i=r.capture,s=r.once,o=r.passive,a=r.K;if(r=r.J,t){var c=typeof t;if(("function"===c||"object"===c)&&("object"!==c||t.handleEvent&&"function"==typeof t.handleEvent)){if(Z[e])return this.__shady_native_addEventListener(e,t,r);var l=a||this;if(a=t[$]){if(-1<ae(a,l,e,i,s,o))return}else t[$]=[];a=function(r){if(s&&this.__shady_removeEventListener(e,t,n),r.__target||de(r),l!==this){var o=Object.getOwnPropertyDescriptor(r,"currentTarget");Object.defineProperty(r,"currentTarget",{get:function(){return l},configurable:!0});var a=Object.getOwnPropertyDescriptor(r,"eventPhase");Object.defineProperty(r,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return i?Event.CAPTURING_PHASE:Event.BUBBLING_PHASE}})}if(r.__previousCurrentTarget=r.currentTarget,(!m(l)&&"slot"!==l.localName||-1!=r.composedPath().indexOf(l))&&(r.composed||-1<r.composedPath().indexOf(l)))if(ie(r)&&r.target===r.relatedTarget)r.eventPhase===Event.BUBBLING_PHASE&&r.stopImmediatePropagation();else if(r.eventPhase===Event.CAPTURING_PHASE||r.bubbles||r.target===l||l instanceof Window){var f="function"===c?t.call(l,r):t.handleEvent&&t.handleEvent(r);return l!==this&&(o?(Object.defineProperty(r,"currentTarget",o),o=null):delete r.currentTarget,a?(Object.defineProperty(r,"eventPhase",a),a=null):delete r.eventPhase),f}},t[$].push({node:l,type:e,capture:i,once:s,passive:o,V:a}),this.__handlers=this.__handlers||{},this.__handlers[e]=this.__handlers[e]||{capture:[],bubble:[]},this.__handlers[e][i?"capture":"bubble"].push(a),re[e]||this.__shady_native_addEventListener(e,a,r)}}}function fe(e,t,n){if(t){var r=X(n);n=r.capture;var i=r.once,s=r.passive,o=r.K;if(r=r.J,Z[e])return this.__shady_native_removeEventListener(e,t,r);var a=o||this;o=void 0;var c=null;try{c=t[$]}catch(e){}c&&(-1<(i=ae(c,a,e,n,i,s))&&(o=c.splice(i,1)[0].V,c.length||(t[$]=void 0))),this.__shady_native_removeEventListener(e,o||t,r),o&&this.__handlers&&this.__handlers[e]&&(-1<(t=(e=this.__handlers[e][n?"capture":"bubble"]).indexOf(o))&&e.splice(t,1))}}var ue=I({get composed(){return void 0===this.__composed&&(Q?this.__composed="focusin"===this.type||"focusout"===this.type||Q(this):!1!==this.isTrusted&&(this.__composed=K[this.type])),this.__composed||!1},composedPath:function(){return this.__composedPath||(this.__composedPath=ee(this.__target,this.composed)),this.__composedPath},get target(){return te(this.currentTarget||this.__previousCurrentTarget,this.composedPath())},get relatedTarget(){return this.__relatedTarget?(this.__relatedTargetComposedPath||(this.__relatedTargetComposedPath=ee(this.__relatedTarget,!0)),te(this.currentTarget||this.__previousCurrentTarget,this.__relatedTargetComposedPath)):null},stopPropagation:function(){Event.prototype.stopPropagation.call(this),this.B=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this),this.B=this.__immediatePropagationStopped=!0}});function de(e,t){if(t=void 0===t?e.target:t,e.__target=t,e.__relatedTarget=e.relatedTarget,d.c){if(!(t=Object.getPrototypeOf(e)).hasOwnProperty("__shady_patchedProto")){var n=Object.create(t);n.__shady_sourceProto=t,M(n,ue),t.__shady_patchedProto=n}e.__proto__=t.__shady_patchedProto}else M(e,ue)}var he=ne(Event),pe=ne(CustomEvent),me=ne(MouseEvent);var ge=Object.getOwnPropertyNames(Element.prototype).filter((function(e){return"on"===e.substring(0,2)})),ve=Object.getOwnPropertyNames(HTMLElement.prototype).filter((function(e){return"on"===e.substring(0,2)}));function be(e){return{set:function(t){var n=f(this),r=e.substring(2);n.h||(n.h={}),n.h[e]&&this.removeEventListener(r,n.h[e]),this.__shady_addEventListener(r,t),n.h[e]=t},get:function(){var t=u(this);return t&&t.h&&t.h[e]},configurable:!0}}var ye=I({dispatchEvent:ce,addEventListener:le,removeEventListener:fe}),_e=window.document,Ae=d.o,we=Object.getOwnPropertyDescriptor(Node.prototype,"isConnected"),Ce=we&&we.get;function Ee(e){for(var t;t=e.__shady_firstChild;)e.__shady_removeChild(t)}function Se(e){var t=u(e);if(t&&void 0!==t.A)for(t=e.__shady_firstChild;t;t=t.__shady_nextSibling)Se(t);(e=u(e))&&(e.A=void 0)}function Te(e){var t=e;if(e&&"slot"===e.localName){var n=u(e);(n=n&&n.l)&&(t=n.length?n[0]:Te(e.__shady_nextSibling))}return t}function Oe(e,t,n){if(e=(e=u(e))&&e.m){if(t)if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(var r=0,i=t.childNodes.length;r<i;r++)e.addedNodes.push(t.childNodes[r]);else e.addedNodes.push(t);n&&e.removedNodes.push(n),function(e){e.a||(e.a=!0,w((function(){e.flush()})))}(e)}}var xe=I({get parentNode(){var e=u(this);return void 0!==(e=e&&e.parentNode)?e:this.__shady_native_parentNode},get firstChild(){var e=u(this);return void 0!==(e=e&&e.firstChild)?e:this.__shady_native_firstChild},get lastChild(){var e=u(this);return void 0!==(e=e&&e.lastChild)?e:this.__shady_native_lastChild},get nextSibling(){var e=u(this);return void 0!==(e=e&&e.nextSibling)?e:this.__shady_native_nextSibling},get previousSibling(){var e=u(this);return void 0!==(e=e&&e.previousSibling)?e:this.__shady_native_previousSibling},get childNodes(){if(p(this)){var e=u(this);if(!e.childNodes){e.childNodes=[];for(var t=this.__shady_firstChild;t;t=t.__shady_nextSibling)e.childNodes.push(t)}var n=e.childNodes}else n=this.__shady_native_childNodes;return n.item=function(e){return n[e]},n},get parentElement(){var e=u(this);return(e=e&&e.parentNode)&&e.nodeType!==Node.ELEMENT_NODE&&(e=null),void 0!==e?e:this.__shady_native_parentElement},get isConnected(){if(Ce&&Ce.call(this))return!0;if(this.nodeType==Node.DOCUMENT_FRAGMENT_NODE)return!1;var e=this.ownerDocument;if(null===e||C(e,this))return!0;for(e=this;e&&!(e instanceof Document);)e=e.__shady_parentNode||(m(e)?e.host:void 0);return!!(e&&e instanceof Document)},get textContent(){if(p(this)){for(var e=[],t=this.__shady_firstChild;t;t=t.__shady_nextSibling)t.nodeType!==Node.COMMENT_NODE&&e.push(t.__shady_textContent);return e.join("")}return this.__shady_native_textContent},set textContent(e){switch(null==e&&(e=""),this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:if(!p(this)&&d.c){var t=this.__shady_firstChild;(t!=this.__shady_lastChild||t&&t.nodeType!=Node.TEXT_NODE)&&Ee(this),this.__shady_native_textContent=e}else Ee(this),(0<e.length||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_insertBefore(document.createTextNode(e));break;default:this.nodeValue=e}},insertBefore:function(e,t){if(this.ownerDocument!==_e&&e.ownerDocument!==_e)return this.__shady_native_insertBefore(e,t),e;if(e===this)throw Error("Failed to execute 'appendChild' on 'Node': The new child element contains the parent.");if(t){var n=u(t);if(void 0!==(n=n&&n.parentNode)&&n!==this||void 0===n&&t.__shady_native_parentNode!==this)throw Error("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.")}if(t===e)return e;Oe(this,e);var r=[],s=(n=zt(this))?n.host.localName:ze(this),o=e.__shady_parentNode;if(o){var a=ze(e),c=!!n||!zt(e)||Ae&&void 0!==this.__noInsertionPoint;o.__shady_removeChild(e,c)}o=!0;var l=(!Ae||void 0===e.__noInsertionPoint&&void 0===this.__noInsertionPoint)&&!qe(e,s),d=n&&!e.__noInsertionPoint&&(!Ae||e.nodeType===Node.DOCUMENT_FRAGMENT_NODE);return(d||l)&&(l&&(a=a||ze(e)),Ge(e,(function(e){if(d&&"slot"===e.localName&&r.push(e),l){var t=a;Le()&&(t&&Ue(e,t),(t=Le())&&t.scopeNode(e,s))}}))),r.length&&(Pt(n),n.f.push.apply(n.f,i(r)),Mt(n)),p(this)&&(function(e,t,n){bt(t,2);var r=f(t);if(void 0!==r.firstChild&&(r.childNodes=null),e.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(e=e.__shady_native_firstChild;e;e=e.__shady_native_nextSibling)yt(e,t,r,n);else yt(e,t,r,n)}(e,this,t),(c=u(this)).root?(o=!1,g(this)&&Mt(c.root)):n&&"slot"===this.localName&&(o=!1,Mt(n))),o?(n=m(this)?this.host:this,t?(t=Te(t),n.__shady_native_insertBefore(e,t)):n.__shady_native_appendChild(e)):e.ownerDocument!==this.ownerDocument&&this.ownerDocument.adoptNode(e),e},appendChild:function(e){if(this!=e||!m(e))return this.__shady_insertBefore(e)},removeChild:function(e,t){if(t=void 0!==t&&t,this.ownerDocument!==_e)return this.__shady_native_removeChild(e);if(e.__shady_parentNode!==this)throw Error("The node to be removed is not a child of this node: "+e);Oe(this,null,e);var n=zt(e),r=n&&function(e,t){if(e.a){Dt(e);var n,r=e.b;for(n in r)for(var i=r[n],s=0;s<i.length;s++){var o=i[s];if(E(t,o)){i.splice(s,1);var a=e.a.indexOf(o);if(0<=a&&(e.a.splice(a,1),(a=u(o.__shady_parentNode))&&a.u&&a.u--),s--,a=(o=u(o)).l)for(var c=0;c<a.length;c++){var l=a[c],f=l.__shady_native_parentNode;f&&f.__shady_native_removeChild(l)}o.l=[],o.assignedNodes=[],a=!0}}return a}}(n,e),i=u(this);if(p(this)&&(function(e,t){var n=f(e);t=f(t),e===t.firstChild&&(t.firstChild=n.nextSibling),e===t.lastChild&&(t.lastChild=n.previousSibling),e=n.previousSibling;var r=n.nextSibling;e&&(f(e).nextSibling=r),r&&(f(r).previousSibling=e),n.parentNode=n.previousSibling=n.nextSibling=void 0,void 0!==t.childNodes&&(t.childNodes=null)}(e,this),g(this))){Mt(i.root);var s=!0}if(Le()&&!t&&n&&e.nodeType!==Node.TEXT_NODE){var o=ze(e);Ge(e,(function(e){Ue(e,o)}))}return Se(e),n&&((t="slot"===this.localName)&&(s=!0),(r||t)&&Mt(n)),s||(s=m(this)?this.host:this,(!i.root&&"slot"!==e.localName||s===e.__shady_native_parentNode)&&s.__shady_native_removeChild(e)),e},replaceChild:function(e,t){return this.__shady_insertBefore(e,t),this.__shady_removeChild(t),e},cloneNode:function(e){if("template"==this.localName)return this.__shady_native_cloneNode(e);var t=this.__shady_native_cloneNode(!1);if(e&&t.nodeType!==Node.ATTRIBUTE_NODE){e=this.__shady_firstChild;for(var n;e;e=e.__shady_nextSibling)n=e.__shady_cloneNode(!0),t.__shady_appendChild(n)}return t},getRootNode:function(e){if(this&&this.nodeType){var t=f(this),n=t.A;return void 0===n&&(m(this)?(n=this,t.A=n):(n=(n=this.__shady_parentNode)?n.__shady_getRootNode(e):this,document.documentElement.__shady_native_contains(this)&&(t.A=n))),n}},contains:function(e){return E(this,e)}}),Me=I({get assignedSlot(){var e=this.__shady_parentNode;return(e=e&&e.__shady_shadowRoot)&&Nt(e),(e=u(this))&&e.assignedSlot||null}});function Ne(e,t,n){var r=[];return Ie(e,t,n,r),r}function Ie(e,t,n,r){for(e=e.__shady_firstChild;e;e=e.__shady_nextSibling){var i;if(i=e.nodeType===Node.ELEMENT_NODE){var s=t,o=n,a=r,c=s(i=e);c&&a.push(i),o&&o(c)?i=c:(Ie(i,s,o,a),i=void 0)}if(i)break}}var Re={get firstElementChild(){var e=u(this);if(e&&void 0!==e.firstChild){for(e=this.__shady_firstChild;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.__shady_nextSibling;return e}return this.__shady_native_firstElementChild},get lastElementChild(){var e=u(this);if(e&&void 0!==e.lastChild){for(e=this.__shady_lastChild;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.__shady_previousSibling;return e}return this.__shady_native_lastElementChild},get children(){return p(this)?S(Array.prototype.filter.call(O(this),(function(e){return e.nodeType===Node.ELEMENT_NODE}))):this.__shady_native_children},get childElementCount(){var e=this.__shady_children;return e?e.length:0}},ke=I((Re.append=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];this.__shady_insertBefore(P.apply(null,i(t)),null)},Re.prepend=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];this.__shady_insertBefore(P.apply(null,i(t)),this.__shady_firstChild)},Re.replaceChildren=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];for(;null!==(n=this.__shady_firstChild);)this.__shady_removeChild(n);this.__shady_insertBefore(P.apply(null,i(t)),null)},Re)),Pe=I({querySelector:function(e){return Ne(this,(function(t){return b.call(t,e)}),(function(e){return!!e}))[0]||null},querySelectorAll:function(e,t){if(t){t=Array.prototype.slice.call(this.__shady_native_querySelectorAll(e));var n=this.__shady_getRootNode();return S(t.filter((function(e){return e.__shady_getRootNode()==n})))}return S(Ne(this,(function(t){return b.call(t,e)})))}}),De=d.o&&!d.g?R({},ke):ke;R(ke,Pe);var Fe=I({after:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];if(null!==(n=this.__shady_parentNode)){var r=this.__shady_nextSibling;n.__shady_insertBefore(P.apply(null,i(t)),r)}},before:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];null!==(n=this.__shady_parentNode)&&n.__shady_insertBefore(P.apply(null,i(t)),this)},remove:function(){var e=this.__shady_parentNode;null!==e&&e.__shady_removeChild(this)},replaceWith:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];if(null!==(n=this.__shady_parentNode)){var r=this.__shady_nextSibling;n.__shady_removeChild(this),n.__shady_insertBefore(P.apply(null,i(t)),r)}}}),Be=null;function Le(){return Be||(Be=window.ShadyCSS&&window.ShadyCSS.ScopingShim),Be||null}function je(e,t,n){var r=Le();return!(!r||"class"!==t)&&(r.setElementClass(e,n),!0)}function Ue(e,t){var n=Le();n&&n.unscopeNode(e,t)}function qe(e,t){var n=Le();if(!n)return!0;if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(n=!0,e=e.__shady_firstChild;e;e=e.__shady_nextSibling)n=n&&qe(e,t);return n}return e.nodeType!==Node.ELEMENT_NODE||n.currentScopeForNode(e)===t}function ze(e){if(e.nodeType!==Node.ELEMENT_NODE)return"";var t=Le();return t?t.currentScopeForNode(e):""}function Ge(e,t){if(e)for(e.nodeType===Node.ELEMENT_NODE&&t(e),e=e.__shady_firstChild;e;e=e.__shady_nextSibling)e.nodeType===Node.ELEMENT_NODE&&Ge(e,t)}var He=window.document;function Ve(e,t){if("slot"===t)g(e=e.__shady_parentNode)&&Mt(u(e).root);else if("slot"===e.localName&&"name"===t&&(t=zt(e))){if(t.a){Dt(t);var n=e.O,r=Ft(e);if(r!==n){var i=(n=t.b[n]).indexOf(e);0<=i&&n.splice(i,1),(n=t.b[r]||(t.b[r]=[])).push(e),1<n.length&&(t.b[r]=Bt(n))}}Mt(t)}}var We=I({get previousElementSibling(){var e=u(this);if(e&&void 0!==e.previousSibling){for(e=this.__shady_previousSibling;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.__shady_previousSibling;return e}return this.__shady_native_previousElementSibling},get nextElementSibling(){var e=u(this);if(e&&void 0!==e.nextSibling){for(e=this.__shady_nextSibling;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.__shady_nextSibling;return e}return this.__shady_native_nextElementSibling},get slot(){return this.getAttribute("slot")},set slot(e){this.__shady_setAttribute("slot",e)},get className(){return this.getAttribute("class")||""},set className(e){this.__shady_setAttribute("class",e)},setAttribute:function(e,t){this.ownerDocument!==He?this.__shady_native_setAttribute(e,t):je(this,e,t)||(this.__shady_native_setAttribute(e,t),Ve(this,e))},removeAttribute:function(e){this.ownerDocument!==He?this.__shady_native_removeAttribute(e):je(this,e,"")?""===this.getAttribute(e)&&this.__shady_native_removeAttribute(e):(this.__shady_native_removeAttribute(e),Ve(this,e))}});d.o||ge.forEach((function(e){We[e]=be(e)}));var $e=I({attachShadow:function(e){if(!this)throw Error("Must provide a host.");if(!e)throw Error("Not enough arguments.");if(e.shadyUpgradeFragment&&!d.L){var t=e.shadyUpgradeFragment;if(t.__proto__=ShadowRoot.prototype,xt(t,this,e),_t(t,t),e=t.__noInsertionPoint?null:t.querySelectorAll("slot"),t.__noInsertionPoint=void 0,e&&e.length){var n=t;Pt(n),n.f.push.apply(n.f,i(e)),Mt(t)}t.host.__shady_native_appendChild(t)}else t=new Ot(Et,this,e);return this.__CE_shadowRoot=t},get shadowRoot(){var e=u(this);return e&&e.U||null}});R(We,$e);var Qe=/[&\u00A0"]/g,Ye=/[&\u00A0<>]/g;function Xe(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case" ":return" "}}function Ke(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;return t}var Ze=Ke("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),Je=Ke("style script xmp iframe noembed noframes plaintext noscript".split(" "));function et(e,t){"template"===e.localName&&(e=e.content);for(var n="",r=t?t(e):e.childNodes,i=0,s=r.length,o=void 0;i<s&&(o=r[i]);i++){e:{var a=o,c=e,l=t;switch(a.nodeType){case Node.ELEMENT_NODE:for(var f,u="<"+(c=a.localName),d=a.attributes,h=0;f=d[h];h++)u+=" "+f.name+'="'+f.value.replace(Qe,Xe)+'"';u+=">",a=Ze[c]?u:u+et(a,l)+"</"+c+">";break e;case Node.TEXT_NODE:a=a.data,a=c&&Je[c.localName]?a:a.replace(Ye,Xe);break e;case Node.COMMENT_NODE:a="\x3c!--"+a.data+"--\x3e";break e;default:throw window.console.error(a),Error("not implemented")}}n+=a}return n}var tt=document.implementation.createHTMLDocument("inert"),nt=I({get innerHTML(){return p(this)?et("template"===this.localName?this.content:this,O):this.__shady_native_innerHTML},set innerHTML(e){if("template"===this.localName)this.__shady_native_innerHTML=e;else{Ee(this);var t=this.localName||"div";for(t=this.namespaceURI&&this.namespaceURI!==tt.namespaceURI?tt.createElementNS(this.namespaceURI,t):tt.createElement(t),d.c?t.__shady_native_innerHTML=e:t.innerHTML=e;e=t.__shady_firstChild;)this.__shady_insertBefore(e)}}}),rt=I({blur:function(){var e=u(this);(e=(e=e&&e.root)&&e.activeElement)?e.__shady_blur():this.__shady_native_blur()}});d.o||ve.forEach((function(e){rt[e]=be(e)}));var it=I({assignedNodes:function(e){if("slot"===this.localName){var t=this.__shady_getRootNode();return t&&m(t)&&Nt(t),(t=u(this))&&(e&&e.flatten?t.l:t.assignedNodes)||[]}},addEventListener:function(e,t,n){if("slot"!==this.localName||"slotchange"===e)le.call(this,e,t,n);else{"object"!=typeof n&&(n={capture:!!n});var r=this.__shady_parentNode;if(!r)throw Error("ShadyDOM cannot attach event to slot unless it has a `parentNode`");n.i=this,r.__shady_addEventListener(e,t,n)}},removeEventListener:function(e,t,n){if("slot"!==this.localName||"slotchange"===e)fe.call(this,e,t,n);else{"object"!=typeof n&&(n={capture:!!n});var r=this.__shady_parentNode;if(!r)throw Error("ShadyDOM cannot attach event to slot unless it has a `parentNode`");n.i=this,r.__shady_removeEventListener(e,t,n)}}}),st=I({getElementById:function(e){return""===e?null:Ne(this,(function(t){return t.id==e}),(function(e){return!!e}))[0]||null}}),ot=I({get activeElement(){var e=d.c?document.__shady_native_activeElement:document.activeElement;if(!e||!e.nodeType)return null;var t=!!m(this);if(!(this===document||t&&this.host!==e&&this.host.__shady_native_contains(e)))return null;for(t=zt(e);t&&t!==this;)t=zt(e=t.host);return this===document?t?null:e:t===this?e:null}}),at=window.document,ct=I({importNode:function(e,t){if(e.ownerDocument!==at||"template"===e.localName)return this.__shady_native_importNode(e,t);var n=this.__shady_native_importNode(e,!1);if(t)for(e=e.__shady_firstChild;e;e=e.__shady_nextSibling)t=this.__shady_importNode(e,!0),n.__shady_appendChild(t);return n}}),lt=I({dispatchEvent:ce,addEventListener:le.bind(window),removeEventListener:fe.bind(window)}),ft={};Object.getOwnPropertyDescriptor(HTMLElement.prototype,"parentElement")&&(ft.parentElement=xe.parentElement),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"contains")&&(ft.contains=xe.contains),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"children")&&(ft.children=ke.children),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML")&&(ft.innerHTML=nt.innerHTML),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"className")&&(ft.className=We.className);var ut={EventTarget:[ye],Node:[xe,window.EventTarget?null:ye],Text:[Me],Comment:[Me],CDATASection:[Me],ProcessingInstruction:[Me],Element:[We,ke,Fe,Me,!d.c||"innerHTML"in Element.prototype?nt:null,window.HTMLSlotElement?null:it],HTMLElement:[rt,ft],HTMLSlotElement:[it],DocumentFragment:[De,st],Document:[ct,De,st,ot],Window:[lt],CharacterData:[Fe]},dt=d.c?null:["innerHTML","textContent"];function ht(e,t,n,r){t.forEach((function(t){return e&&t&&M(e,t,n,r)}))}function pt(e){var t,n=e?null:dt;for(t in ut)ht(window[t]&&window[t].prototype,ut[t],e,n)}function mt(e){return e.__shady_protoIsPatched=!0,ht(e,ut.EventTarget),ht(e,ut.Node),ht(e,ut.Element),ht(e,ut.HTMLElement),ht(e,ut.HTMLSlotElement),e}["Text","Comment","CDATASection","ProcessingInstruction"].forEach((function(e){var t=window[e],n=Object.create(t.prototype);n.__shady_protoIsPatched=!0,ht(n,ut.EventTarget),ht(n,ut.Node),ut[e]&&ht(n,ut[e]),t.prototype.__shady_patchedProto=n}));var gt=d.G,vt=d.c;function bt(e,t){if(gt&&!e.__shady_protoIsPatched&&!m(e)){var n=Object.getPrototypeOf(e),r=n.hasOwnProperty("__shady_patchedProto")&&n.__shady_patchedProto;r||(mt(r=Object.create(n)),n.__shady_patchedProto=r),Object.setPrototypeOf(e,r)}vt||(1===t?V(e):2===t&&W(e))}function yt(e,t,n,r){bt(e,1),r=r||null;var i=f(e),s=r?f(r):null;i.previousSibling=r?s.previousSibling:t.__shady_lastChild,(s=u(i.previousSibling))&&(s.nextSibling=e),(s=u(i.nextSibling=r))&&(s.previousSibling=e),i.parentNode=t,r?r===n.firstChild&&(n.firstChild=e):(n.lastChild=e,n.firstChild||(n.firstChild=e)),n.childNodes=null}function _t(e,t){var n=f(e);if(t||void 0===n.firstChild){n.childNodes=null;var r=n.firstChild=e.__shady_native_firstChild;for(n.lastChild=e.__shady_native_lastChild,bt(e,2),n=r,r=void 0;n;n=n.__shady_native_nextSibling){var i=f(n);i.parentNode=t||e,i.nextSibling=n.__shady_native_nextSibling,i.previousSibling=r||null,r=n,bt(n,1)}}}var At=I({addEventListener:function(e,t,n){"object"!=typeof n&&(n={capture:!!n}),n.i=n.i||this,this.host.__shady_addEventListener(e,t,n)},removeEventListener:function(e,t,n){"object"!=typeof n&&(n={capture:!!n}),n.i=n.i||this,this.host.__shady_removeEventListener(e,t,n)}});function wt(e,t){M(e,At,t),M(e,ot,t),M(e,nt,t),M(e,ke,t),d.g&&!t?(M(e,xe,t),M(e,st,t)):d.c||(M(e,q),M(e,j),M(e,U))}var Ct,Et={},St=d.deferConnectionCallbacks&&"loading"===document.readyState;function Tt(e){var t=[];do{t.unshift(e)}while(e=e.__shady_parentNode);return t}function Ot(e,t,n){if(e!==Et)throw new TypeError("Illegal constructor");this.a=null,xt(this,t,n)}function xt(e,t,n){if(e.host=t,e.mode=n&&n.mode,_t(e.host),(t=f(e.host)).root=e,t.U="closed"!==e.mode?e:null,(t=f(e)).firstChild=t.lastChild=t.parentNode=t.nextSibling=t.previousSibling=null,d.preferPerformance)for(;t=e.host.__shady_native_firstChild;)e.host.__shady_native_removeChild(t);else Mt(e)}function Mt(e){e.j||(e.j=!0,B((function(){return Nt(e)})))}function Nt(e){var t;if(t=e.j){for(var n;e;)e.j&&(n=e),m(e=(t=e).host.__shady_getRootNode())&&(t=u(t.host))&&0<t.u||(e=void 0);t=n}(n=t)&&n._renderSelf()}function It(e,t,n){var r=f(t),i=r.C;r.C=null,n||(n=(e=e.b[t.__shady_slot||"__catchall"])&&e[0]),n?(f(n).assignedNodes.push(t),r.assignedSlot=n):r.assignedSlot=void 0,i!==r.assignedSlot&&r.assignedSlot&&(f(r.assignedSlot).D=!0)}function Rt(e,t,n){for(var r=0,i=void 0;r<n.length&&(i=n[r]);r++)if("slot"==i.localName){var s=u(i).assignedNodes;s&&s.length&&Rt(e,t,s)}else t.push(n[r])}function kt(e,t){t.__shady_native_dispatchEvent(new Event("slotchange")),(t=u(t)).assignedSlot&&kt(e,t.assignedSlot)}function Pt(e){e.f=e.f||[],e.a=e.a||[],e.b=e.b||{}}function Dt(e){if(e.f&&e.f.length){for(var t,n=e.f,r=0;r<n.length;r++){var i=n[r];_t(i);var s=i.__shady_parentNode;_t(s),(s=u(s)).u=(s.u||0)+1,s=Ft(i),e.b[s]?((t=t||{})[s]=!0,e.b[s].push(i)):e.b[s]=[i],e.a.push(i)}if(t)for(var o in t)e.b[o]=Bt(e.b[o]);e.f=[]}}function Ft(e){var t=e.name||e.getAttribute("name")||"__catchall";return e.O=t}function Bt(e){return e.sort((function(e,t){e=Tt(e);for(var n=Tt(t),r=0;r<e.length;r++){t=e[r];var i=n[r];if(t!==i)return(e=O(t.__shady_parentNode)).indexOf(t)-e.indexOf(i)}}))}function Lt(e){return Dt(e),!(!e.a||!e.a.length)}if(Ot.prototype._renderSelf=function(){var e=St;if(St=!0,this.j=!1,this.a){Dt(this);for(var t,n=0;n<this.a.length;n++){var r=u(t=this.a[n]),i=r.assignedNodes;if(r.assignedNodes=[],r.l=[],r.I=i)for(r=0;r<i.length;r++){var s=u(i[r]);s.C=s.assignedSlot,s.assignedSlot===t&&(s.assignedSlot=null)}}for(n=this.host.__shady_firstChild;n;n=n.__shady_nextSibling)It(this,n);for(n=0;n<this.a.length;n++){if(!(i=u(t=this.a[n])).assignedNodes.length)for(r=t.__shady_firstChild;r;r=r.__shady_nextSibling)It(this,r,t);if((r=(r=u(t.__shady_parentNode))&&r.root)&&(Lt(r)||r.j)&&r._renderSelf(),Rt(this,i.l,i.assignedNodes),r=i.I){for(s=0;s<r.length;s++)u(r[s]).C=null;i.I=null,r.length>i.assignedNodes.length&&(i.D=!0)}i.D&&(i.D=!1,kt(this,t))}for(t=this.a,n=[],i=0;i<t.length;i++)(s=u(r=t[i].__shady_parentNode))&&s.root||!(0>n.indexOf(r))||n.push(r);for(t=0;t<n.length;t++){for(i=(s=n[t])===this?this.host:s,r=[],s=s.__shady_firstChild;s;s=s.__shady_nextSibling)if("slot"==s.localName)for(var o=u(s).l,c=0;c<o.length;c++)r.push(o[c]);else r.push(s);s=T(i),o=a(r,r.length,s,s.length);for(var l=c=0,f=void 0;c<o.length&&(f=o[c]);c++){for(var h=0,p=void 0;h<f.s.length&&(p=f.s[h]);h++)p.__shady_native_parentNode===i&&i.__shady_native_removeChild(p),s.splice(f.index+l,1);l-=f.v}for(l=0,f=void 0;l<o.length&&(f=o[l]);l++)for(c=s[f.index],h=f.index;h<f.index+f.v;h++)p=r[h],i.__shady_native_insertBefore(p,c),s.splice(h,0,p)}}if(!d.preferPerformance&&!this.H)for(n=this.host.__shady_firstChild;n;n=n.__shady_nextSibling)t=u(n),n.__shady_native_parentNode!==this.host||"slot"!==n.localName&&t.assignedSlot||this.host.__shady_native_removeChild(n);this.H=!0,St=e,Ct&&Ct()},function(e){e.__proto__=DocumentFragment.prototype,wt(e,"__shady_"),wt(e),Object.defineProperties(e,{nodeType:{value:Node.DOCUMENT_FRAGMENT_NODE,configurable:!0},nodeName:{value:"#document-fragment",configurable:!0},nodeValue:{value:null,configurable:!0}}),["localName","namespaceURI","prefix"].forEach((function(t){Object.defineProperty(e,t,{value:void 0,configurable:!0})})),["ownerDocument","baseURI","isConnected"].forEach((function(t){Object.defineProperty(e,t,{get:function(){return this.host[t]},configurable:!0})}))}(Ot.prototype),window.customElements&&window.customElements.define&&d.F&&!d.preferPerformance){var jt=new Map;Ct=function(){var e=[];jt.forEach((function(t,n){e.push([n,t])})),jt.clear();for(var t=0;t<e.length;t++){var n=e[t][0];e[t][1]?n.__shadydom_connectedCallback():n.__shadydom_disconnectedCallback()}},St&&document.addEventListener("readystatechange",(function(){St=!1,Ct()}),{once:!0});var Ut=window.customElements.define,qt=function(e,t){var n=t.prototype.connectedCallback,r=t.prototype.disconnectedCallback;Ut.call(window.customElements,e,function(e,t,n){var r=0,i="__isConnected"+r++;return(t||n)&&(e.prototype.connectedCallback=e.prototype.__shadydom_connectedCallback=function(){St?jt.set(this,!0):this[i]||(this[i]=!0,t&&t.call(this))},e.prototype.disconnectedCallback=e.prototype.__shadydom_disconnectedCallback=function(){St?this.isConnected||jt.set(this,!1):this[i]&&(this[i]=!1,n&&n.call(this))}),e}(t,n,r)),t.prototype.connectedCallback=n,t.prototype.disconnectedCallback=r};window.customElements.define=qt,Object.defineProperty(window.CustomElementRegistry.prototype,"define",{value:qt,configurable:!0})}function zt(e){if(m(e=e.__shady_getRootNode()))return e}function Gt(){this.a=!1,this.addedNodes=[],this.removedNodes=[],this.w=new Set}Gt.prototype.flush=function(){if(this.a){this.a=!1;var e=this.takeRecords();e.length&&this.w.forEach((function(t){t(e)}))}},Gt.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var e=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];return this.addedNodes=[],this.removedNodes=[],e}return[]};var Ht=d.c,Vt={querySelector:function(e){return this.__shady_native_querySelector(e)},querySelectorAll:function(e){return this.__shady_native_querySelectorAll(e)}},Wt={};function $t(e){Wt[e]=function(t){return t["__shady_native_"+e]}}function Qt(e,t){for(var n in M(e,t,"__shady_native_"),t)$t(n)}function Yt(e,t){t=void 0===t?[]:t;for(var n=0;n<t.length;n++){var r=t[n],i=Object.getOwnPropertyDescriptor(e,r);i&&(Object.defineProperty(e,"__shady_native_"+r,i),i.value?Vt[r]||(Vt[r]=i.value):$t(r))}}var Xt=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),Kt=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),Zt=document.implementation.createHTMLDocument("inert");function Jt(e){for(var t;t=e.__shady_native_firstChild;)e.__shady_native_removeChild(t)}var en=["firstElementChild","lastElementChild","children","childElementCount"],tn=["querySelector","querySelectorAll","append","prepend","replaceChildren"];function nn(e){this.node=e}function rn(e){Object.defineProperty(nn.prototype,e,{get:function(){return this.node["__shady_"+e]},set:function(t){this.node["__shady_"+e]=t},configurable:!0})}(e=nn.prototype).addEventListener=function(e,t,n){return this.node.__shady_addEventListener(e,t,n)},e.removeEventListener=function(e,t,n){return this.node.__shady_removeEventListener(e,t,n)},e.appendChild=function(e){return this.node.__shady_appendChild(e)},e.insertBefore=function(e,t){return this.node.__shady_insertBefore(e,t)},e.removeChild=function(e){return this.node.__shady_removeChild(e)},e.replaceChild=function(e,t){return this.node.__shady_replaceChild(e,t)},e.cloneNode=function(e){return this.node.__shady_cloneNode(e)},e.getRootNode=function(e){return this.node.__shady_getRootNode(e)},e.contains=function(e){return this.node.__shady_contains(e)},e.dispatchEvent=function(e){return this.node.__shady_dispatchEvent(e)},e.setAttribute=function(e,t){this.node.__shady_setAttribute(e,t)},e.getAttribute=function(e){return this.node.__shady_native_getAttribute(e)},e.removeAttribute=function(e){this.node.__shady_removeAttribute(e)},e.attachShadow=function(e){return this.node.__shady_attachShadow(e)},e.focus=function(){this.node.__shady_native_focus()},e.blur=function(){this.node.__shady_blur()},e.importNode=function(e,t){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_importNode(e,t)},e.getElementById=function(e){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_getElementById(e)},e.querySelector=function(e){return this.node.__shady_querySelector(e)},e.querySelectorAll=function(e,t){return this.node.__shady_querySelectorAll(e,t)},e.assignedNodes=function(e){if("slot"===this.node.localName)return this.node.__shady_assignedNodes(e)},e.append=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.node.__shady_append.apply(this.node,i(t))},e.prepend=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.node.__shady_prepend.apply(this.node,i(t))},e.after=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.node.__shady_after.apply(this.node,i(t))},e.before=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.node.__shady_before.apply(this.node,i(t))},e.remove=function(){return this.node.__shady_remove()},e.replaceWith=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.node.__shady_replaceWith.apply(this.node,i(t))},s.Object.defineProperties(nn.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){if(m(this.node)||this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_activeElement}},_activeElement:{configurable:!0,enumerable:!0,get:function(){return this.activeElement}},host:{configurable:!0,enumerable:!0,get:function(){if(m(this.node))return this.node.host}},parentNode:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_parentNode}},firstChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_firstChild}},lastChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_lastChild}},nextSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_nextSibling}},previousSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_previousSibling}},childNodes:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_childNodes}},parentElement:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_parentElement}},firstElementChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_firstElementChild}},lastElementChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_lastElementChild}},nextElementSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_nextElementSibling}},previousElementSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_previousElementSibling}},children:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_children}},childElementCount:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_childElementCount}},shadowRoot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_shadowRoot}},assignedSlot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_assignedSlot}},isConnected:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_isConnected}},innerHTML:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_innerHTML},set:function(e){this.node.__shady_innerHTML=e}},textContent:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_textContent},set:function(e){this.node.__shady_textContent=e}},slot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_slot},set:function(e){this.node.__shady_slot=e}},className:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_className},set:function(e){return this.node.__shady_className=e}}}),ge.forEach((function(e){return rn(e)})),ve.forEach((function(e){return rn(e)}));var sn=new WeakMap;function on(e){if(m(e)||e instanceof nn)return e;var t=sn.get(e);return t||(t=new nn(e),sn.set(e,t)),t}if(d.F){var an=d.c?function(e){return e}:function(e){return W(e),V(e),e};window.ShadyDOM={inUse:d.F,patch:an,isShadyRoot:m,enqueue:B,flush:L,flushInitial:function(e){!e.H&&e.j&&Nt(e)},settings:d,filterMutations:function(e,t){var n=t.getRootNode();return e.map((function(e){var t=n===e.target.getRootNode();if(t&&e.addedNodes){if((t=[].slice.call(e.addedNodes).filter((function(e){return n===e.getRootNode()}))).length)return e=Object.create(e),Object.defineProperty(e,"addedNodes",{value:t,configurable:!0}),e}else if(t)return e})).filter((function(e){return e}))},observeChildren:function(e,t){var n=f(e);n.m||(n.m=new Gt),n.m.w.add(t);var r=n.m;return{P:t,S:r,R:e,takeRecords:function(){return r.takeRecords()}}},unobserveChildren:function(e){var t=e&&e.S;t&&(t.w.delete(e.P),t.w.size||(f(e.R).m=null))},deferConnectionCallbacks:d.deferConnectionCallbacks,preferPerformance:d.preferPerformance,handlesDynamicScoping:!0,wrap:d.g?on:an,wrapIfNeeded:!0===d.g?on:function(e){return e},Wrapper:nn,composedPath:function(e){return e.__composedPath||(e.__composedPath=ee(e.target,!0)),e.__composedPath},noPatch:d.g,patchOnDemand:d.G,nativeMethods:Vt,nativeTree:Wt,patchElementProto:mt},function(){var e=["dispatchEvent","addEventListener","removeEventListener"];window.EventTarget?Yt(window.EventTarget.prototype,e):(Yt(Node.prototype,e),Yt(Window.prototype,e)),Ht?Yt(Node.prototype,"parentNode firstChild lastChild previousSibling nextSibling childNodes parentElement textContent".split(" ")):Qt(Node.prototype,{parentNode:{get:function(){return Xt.currentNode=this,Xt.parentNode()}},firstChild:{get:function(){return Xt.currentNode=this,Xt.firstChild()}},lastChild:{get:function(){return Xt.currentNode=this,Xt.lastChild()}},previousSibling:{get:function(){return Xt.currentNode=this,Xt.previousSibling()}},nextSibling:{get:function(){return Xt.currentNode=this,Xt.nextSibling()}},childNodes:{get:function(){var e=[];Xt.currentNode=this;for(var t=Xt.firstChild();t;)e.push(t),t=Xt.nextSibling();return e}},parentElement:{get:function(){return Kt.currentNode=this,Kt.parentNode()}},textContent:{get:function(){switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:for(var e,t=document.createTreeWalker(this,NodeFilter.SHOW_TEXT,null,!1),n="";e=t.nextNode();)n+=e.nodeValue;return n;default:return this.nodeValue}},set:function(e){switch(null==e&&(e=""),this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:Jt(this),(0<e.length||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_native_insertBefore(document.createTextNode(e),void 0);break;default:this.nodeValue=e}}}}),Yt(Node.prototype,"appendChild insertBefore removeChild replaceChild cloneNode contains".split(" ")),Yt(HTMLElement.prototype,["parentElement","contains"]),e={firstElementChild:{get:function(){return Kt.currentNode=this,Kt.firstChild()}},lastElementChild:{get:function(){return Kt.currentNode=this,Kt.lastChild()}},children:{get:function(){var e=[];Kt.currentNode=this;for(var t=Kt.firstChild();t;)e.push(t),t=Kt.nextSibling();return S(e)}},childElementCount:{get:function(){return this.children?this.children.length:0}}},Ht?(Yt(Element.prototype,en),Yt(Element.prototype,["previousElementSibling","nextElementSibling","innerHTML","className"]),Yt(HTMLElement.prototype,["children","innerHTML","className"])):(Qt(Element.prototype,e),Qt(Element.prototype,{previousElementSibling:{get:function(){return Kt.currentNode=this,Kt.previousSibling()}},nextElementSibling:{get:function(){return Kt.currentNode=this,Kt.nextSibling()}},innerHTML:{get:function(){return et(this,T)},set:function(e){var t="template"===this.localName?this.content:this;Jt(t);var n=this.localName||"div";for((n=this.namespaceURI&&this.namespaceURI!==Zt.namespaceURI?Zt.createElementNS(this.namespaceURI,n):Zt.createElement(n)).innerHTML=e,e="template"===this.localName?n.content:n;n=e.__shady_native_firstChild;)t.__shady_native_insertBefore(n,void 0)}},className:{get:function(){return this.getAttribute("class")||""},set:function(e){this.setAttribute("class",e)}}})),Yt(Element.prototype,"setAttribute getAttribute hasAttribute removeAttribute focus blur".split(" ")),Yt(Element.prototype,tn),Yt(HTMLElement.prototype,["focus","blur"]),window.HTMLTemplateElement&&Yt(window.HTMLTemplateElement.prototype,["innerHTML"]),Ht?Yt(DocumentFragment.prototype,en):Qt(DocumentFragment.prototype,e),Yt(DocumentFragment.prototype,tn),Ht?(Yt(Document.prototype,en),Yt(Document.prototype,["activeElement"])):Qt(Document.prototype,e),Yt(Document.prototype,["importNode","getElementById"]),Yt(Document.prototype,tn)}(),pt("__shady_"),Object.defineProperty(document,"_activeElement",ot.activeElement),M(Window.prototype,lt,"__shady_"),d.g?d.G&&M(Element.prototype,$e):(pt(),function(){if(!Q&&Object.getOwnPropertyDescriptor(Event.prototype,"isTrusted")){var e=function(){var e=new MouseEvent("click",{bubbles:!0,cancelable:!0,composed:!0});this.__shady_dispatchEvent(e)};Element.prototype.click?Element.prototype.click=e:HTMLElement.prototype.click&&(HTMLElement.prototype.click=e)}}()),function(){for(var e in re)window.__shady_native_addEventListener(e,(function(e){e.__target||(de(e),oe(e))}),!0)}(),window.Event=he,window.CustomEvent=pe,window.MouseEvent=me,window.ShadowRoot=Ot}}).call(this)},4048:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6660);t.openingParenthesis="([\"'{",t.closingParenthesis=")]\"'}",t.parenthesis=t.openingParenthesis.split("").map((function(e,n){return""+e+t.closingParenthesis.charAt(n)})),t.htmlAttributes=["src","data","href","cite","formaction","icon","manifest","poster","codebase","background","profile","usemap","itemtype","action","longdesc","classid","archive"],t.nonLatinAlphabetRanges="\\u0041-\\u005A\\u0061-\\u007A\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0\\u08A2-\\u08AC\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097F\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C33\\u0C35-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191C\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA697\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA793\\uA7A0-\\uA7AA\\uA7F8-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA80-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC",t.TLDs=r.TLDs},5176:(e,t,n)=>{"use strict";var r=n(4048),i=n(7182),s=n(8103),o=n(6371),a=function(e){for(var t=[],n=null,i=function(){var i=n.index,a=i+n[0].length,c=n[0];if("/"===e.charAt(a)&&(c+=e.charAt(a),a++),r.closingParenthesis.indexOf(e.charAt(a))>-1&&r.parenthesis.forEach((function(t){var n=t.charAt(0),r=t.charAt(1);o.checkParenthesis(n,r,c,e.charAt(a))&&(c+=e.charAt(a),a++)})),-1!==['""',"''","()"].indexOf(e.charAt(i-1)+e.charAt(a))&&o.isInsideAttribute(e.substring(i-o.maximumAttrLength-15,i)))return"continue";if(e.substring(a,e.length).indexOf("</a>")>-1&&e.substring(0,i).indexOf("<a")>-1&&o.isInsideAnchorTag(c,e,a))return"continue";if(n[s.iidxes.isURL]){var l=(n[s.iidxes.url.path]||"")+(n[s.iidxes.url.secondPartOfPath]||"")||void 0,f=n[s.iidxes.url.protocol1]||n[s.iidxes.url.protocol2]||n[s.iidxes.url.protocol3];t.push({start:i,end:a,string:c,isURL:!0,protocol:f,port:n[s.iidxes.url.port],ipv4:n[s.iidxes.url.ipv4Confirmation]?n[s.iidxes.url.ipv4]:void 0,ipv6:n[s.iidxes.url.ipv6],host:n[s.iidxes.url.byProtocol]?void 0:(n[s.iidxes.url.protocolWithDomain]||"").substr((f||"").length),confirmedByProtocol:!!n[s.iidxes.url.byProtocol],path:n[s.iidxes.url.byProtocol]?void 0:l,query:n[s.iidxes.url.query]||void 0,fragment:n[s.iidxes.url.fragment]||void 0})}else if(n[s.iidxes.isFile]){var u=c.substr(8);t.push({start:i,end:a,string:c,isFile:!0,protocol:n[s.iidxes.file.protocol],filename:n[s.iidxes.file.fileName],filePath:u,fileDirectory:u.substr(0,u.length-n[s.iidxes.file.fileName].length)})}else n[s.iidxes.isEmail]?t.push({start:i,end:a,string:c,isEmail:!0,local:n[s.iidxes.email.local],protocol:n[s.iidxes.email.protocol],host:n[s.iidxes.email.host]}):t.push({start:i,end:a,string:c})};null!==(n=s.finalRegex.exec(e));)i();return t},c=function(e){var t="string"==typeof e?{input:e,options:void 0,extensions:void 0}:e,n=t.input,r=t.options,s=t.extensions;if(s)for(var o=0;o<s.length;o++){var c=s[o];n=n.replace(c.test,c.transform)}var l=a(n),f="";for(o=0;o<l.length;o++)f=(f||(0===o?n.substring(0,l[o].start):""))+i.transform(l[o],r)+(l[o+1]?n.substring(l[o].end,l[o+1].start):n.substring(l[o].end));return f||n};c.list=function(e){return a(e)},c.validate={ip:function(e){return s.ipRegex.test(e)},email:function(e){return s.emailRegex.test(e)},file:function(e){return s.fileRegex.test(e)},url:function(e){return s.urlRegex.test(e)||s.ipRegex.test(e)}},t.Z=c},8103:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4048),i="([a-z0-9]+(-+[a-z0-9]+)*\\.)+("+r.TLDs+")",s="a-zA-Z\\d\\-._~\\!$&*+,;=:@%'\"\\[\\]()",o="((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",a="\\[(([a-f0-9:]+:+)+[a-f0-9]+)\\]",c="(https?:|ftps?:)\\/\\/",l="((("+c+")?("+i+"|"+o+"|("+c+")("+a+"|"+("([a-z0-9]+(-+[a-z0-9]+)*\\.)+([a-z0-9][a-z0-9-]{0,"+(Math.max.apply(this,r.TLDs.split("|").map((function(e){return e.length})))-2)+"}[a-z0-9])")+"))(?!@\\w)(:(\\d{1,5}))?)|(((https?:|ftps?:)\\/\\/)\\S+))",f=l+"((((\\/((["+s+"]+(\\/["+s+r.nonLatinAlphabetRanges+"]*)*))?)?)((\\?(["+s+"\\/?]*))?)((\\#(["+s+"\\/?]*))?))?\\b(((["+s+"\\/"+r.nonLatinAlphabetRanges+"][a-zA-Z\\d\\-_~+=\\/"+r.nonLatinAlphabetRanges+"]+)?))+)";t.email="\\b(mailto:)?([a-z0-9!#$%&'*+=?^_`{|}~-]+(\\.[a-z0-9!#$%&'*+=?^_`{|}~-]+)*)@("+i+"|"+o+")\\b",t.url="("+f+")|(\\b"+l+"(((\\/(([a-zA-Z\\d\\-._~\\!$&*+,;=:@%'\"\\[\\]()]+(\\/[a-zA-Z\\d\\-._~\\!$&*+,;=:@%'\"\\[\\]()]*)*))?)?)((\\?([a-zA-Z\\d\\-._~\\!$&*+,;=:@%'\"\\[\\]()\\/?]*))?)((\\#([a-zA-Z\\d\\-._~\\!$&*+,;=:@%'\"\\[\\]()\\/?]*))?))?\\b(([\\/]?))+)",t.file="(file:\\/\\/\\/)([a-z]+:(\\/|\\\\)+)?([\\w.]+([\\/\\\\]?)+)+",t.final="("+t.url+")|("+t.email+")|("+t.file+")",t.finalRegex=new RegExp(t.final,"gi"),t.ipRegex=new RegExp("^("+o+"|"+a+")$","i"),t.emailRegex=new RegExp("^("+t.email+")$","i"),t.fileRegex=new RegExp("^("+t.file+")$","i"),t.urlRegex=new RegExp("^("+t.url+")$","i");var u={isURL:0,isEmail:0,isFile:0,file:{fileName:0,protocol:0},email:{protocol:0,local:0,host:0},url:{ipv4:0,ipv6:0,ipv4Confirmation:0,byProtocol:0,port:0,protocol1:0,protocol2:0,protocol3:0,protocolWithDomain:0,path:0,secondPartOfPath:0,query:0,fragment:0}};t.iidxes=u;for(var d=["file:///some/file/path/filename.pdf","mailto:e+_mail.me@sub.domain.com","http://sub.domain.co.uk:3000/p/a/t/h_(asd)/h?q=abc123#dfdf","http://www.عربي.com","http://127.0.0.1:3000/p/a/t_(asd)/h?q=abc123#dfdf","http://[2a00:1450:4025:401::67]/k/something","a.org/abc/ი_გგ"].join(" "),h=null,p=0;null!==(h=t.finalRegex.exec(d));)0===p&&(u.isFile=h.lastIndexOf(h[0]),u.file.fileName=h.indexOf("filename.pdf"),u.file.protocol=h.indexOf("file:///")),1===p&&(u.isEmail=h.lastIndexOf(h[0]),u.email.protocol=h.indexOf("mailto:"),u.email.local=h.indexOf("e+_mail.me"),u.email.host=h.indexOf("sub.domain.com")),2===p&&(u.isURL=h.lastIndexOf(h[0]),u.url.protocol1=h.indexOf("http://"),u.url.protocolWithDomain=h.indexOf("http://sub.domain.co.uk:3000"),u.url.port=h.indexOf("3000"),u.url.path=h.indexOf("/p/a/t/h_(asd)/h"),u.url.query=h.indexOf("q=abc123"),u.url.fragment=h.indexOf("dfdf")),3===p&&(u.url.byProtocol=h.lastIndexOf("http://www.عربي.com"),u.url.protocol2=h.lastIndexOf("http://")),4===p&&(u.url.ipv4=h.indexOf("127.0.0.1"),u.url.ipv4Confirmation=h.indexOf("0.")),5===p&&(u.url.ipv6=h.indexOf("2a00:1450:4025:401::67"),u.url.protocol3=h.lastIndexOf("http://")),6===p&&(u.url.secondPartOfPath=h.indexOf("გგ")),p++},6660:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TLDs="(AAA|AARP|ABARTH|ABB|ABBOTT|ABBVIE|ABC|ABLE|ABOGADO|ABUDHABI|AC|ACADEMY|ACCENTURE|ACCOUNTANT|ACCOUNTANTS|ACO|ACTOR|AD|ADAC|ADS|ADULT|AE|AEG|AERO|AETNA|AF|AFAMILYCOMPANY|AFL|AFRICA|AG|AGAKHAN|AGENCY|AI|AIG|AIGO|AIRBUS|AIRFORCE|AIRTEL|AKDN|AL|ALFAROMEO|ALIBABA|ALIPAY|ALLFINANZ|ALLSTATE|ALLY|ALSACE|ALSTOM|AM|AMERICANEXPRESS|AMERICANFAMILY|AMEX|AMFAM|AMICA|AMSTERDAM|ANALYTICS|ANDROID|ANQUAN|ANZ|AO|AOL|APARTMENTS|APP|APPLE|AQ|AQUARELLE|AR|ARAB|ARAMCO|ARCHI|ARMY|ARPA|ART|ARTE|AS|ASDA|ASIA|ASSOCIATES|AT|ATHLETA|ATTORNEY|AU|AUCTION|AUDI|AUDIBLE|AUDIO|AUSPOST|AUTHOR|AUTO|AUTOS|AVIANCA|AW|AWS|AX|AXA|AZ|AZURE|BA|BABY|BAIDU|BANAMEX|BANANAREPUBLIC|BAND|BANK|BAR|BARCELONA|BARCLAYCARD|BARCLAYS|BAREFOOT|BARGAINS|BASEBALL|BASKETBALL|BAUHAUS|BAYERN|BB|BBC|BBT|BBVA|BCG|BCN|BD|BE|BEATS|BEAUTY|BEER|BENTLEY|BERLIN|BEST|BESTBUY|BET|BF|BG|BH|BHARTI|BI|BIBLE|BID|BIKE|BING|BINGO|BIO|BIZ|BJ|BLACK|BLACKFRIDAY|BLOCKBUSTER|BLOG|BLOOMBERG|BLUE|BM|BMS|BMW|BN|BNPPARIBAS|BO|BOATS|BOEHRINGER|BOFA|BOM|BOND|BOO|BOOK|BOOKING|BOSCH|BOSTIK|BOSTON|BOT|BOUTIQUE|BOX|BR|BRADESCO|BRIDGESTONE|BROADWAY|BROKER|BROTHER|BRUSSELS|BS|BT|BUDAPEST|BUGATTI|BUILD|BUILDERS|BUSINESS|BUY|BUZZ|BV|BW|BY|BZ|BZH|CA|CAB|CAFE|CAL|CALL|CALVINKLEIN|CAM|CAMERA|CAMP|CANCERRESEARCH|CANON|CAPETOWN|CAPITAL|CAPITALONE|CAR|CARAVAN|CARDS|CARE|CAREER|CAREERS|CARS|CASA|CASE|CASEIH|CASH|CASINO|CAT|CATERING|CATHOLIC|CBA|CBN|CBRE|CBS|CC|CD|CEB|CENTER|CEO|CERN|CF|CFA|CFD|CG|CH|CHANEL|CHANNEL|CHARITY|CHASE|CHAT|CHEAP|CHINTAI|CHRISTMAS|CHROME|CHURCH|CI|CIPRIANI|CIRCLE|CISCO|CITADEL|CITI|CITIC|CITY|CITYEATS|CK|CL|CLAIMS|CLEANING|CLICK|CLINIC|CLINIQUE|CLOTHING|CLOUD|CLUB|CLUBMED|CM|CN|CO|COACH|CODES|COFFEE|COLLEGE|COLOGNE|COM|COMCAST|COMMBANK|COMMUNITY|COMPANY|COMPARE|COMPUTER|COMSEC|CONDOS|CONSTRUCTION|CONSULTING|CONTACT|CONTRACTORS|COOKING|COOKINGCHANNEL|COOL|COOP|CORSICA|COUNTRY|COUPON|COUPONS|COURSES|CPA|CR|CREDIT|CREDITCARD|CREDITUNION|CRICKET|CROWN|CRS|CRUISE|CRUISES|CSC|CU|CUISINELLA|CV|CW|CX|CY|CYMRU|CYOU|CZ|DABUR|DAD|DANCE|DATA|DATE|DATING|DATSUN|DAY|DCLK|DDS|DE|DEAL|DEALER|DEALS|DEGREE|DELIVERY|DELL|DELOITTE|DELTA|DEMOCRAT|DENTAL|DENTIST|DESI|DESIGN|DEV|DHL|DIAMONDS|DIET|DIGITAL|DIRECT|DIRECTORY|DISCOUNT|DISCOVER|DISH|DIY|DJ|DK|DM|DNP|DO|DOCS|DOCTOR|DOG|DOMAINS|DOT|DOWNLOAD|DRIVE|DTV|DUBAI|DUCK|DUNLOP|DUPONT|DURBAN|DVAG|DVR|DZ|EARTH|EAT|EC|ECO|EDEKA|EDU|EDUCATION|EE|EG|EMAIL|EMERCK|ENERGY|ENGINEER|ENGINEERING|ENTERPRISES|EPSON|EQUIPMENT|ER|ERICSSON|ERNI|ES|ESQ|ESTATE|ESURANCE|ET|ETISALAT|EU|EUROVISION|EUS|EVENTS|EXCHANGE|EXPERT|EXPOSED|EXPRESS|EXTRASPACE|FAGE|FAIL|FAIRWINDS|FAITH|FAMILY|FAN|FANS|FARM|FARMERS|FASHION|FAST|FEDEX|FEEDBACK|FERRARI|FERRERO|FI|FIAT|FIDELITY|FIDO|FILM|FINAL|FINANCE|FINANCIAL|FIRE|FIRESTONE|FIRMDALE|FISH|FISHING|FIT|FITNESS|FJ|FK|FLICKR|FLIGHTS|FLIR|FLORIST|FLOWERS|FLY|FM|FO|FOO|FOOD|FOODNETWORK|FOOTBALL|FORD|FOREX|FORSALE|FORUM|FOUNDATION|FOX|FR|FREE|FRESENIUS|FRL|FROGANS|FRONTDOOR|FRONTIER|FTR|FUJITSU|FUJIXEROX|FUN|FUND|FURNITURE|FUTBOL|FYI|GA|GAL|GALLERY|GALLO|GALLUP|GAME|GAMES|GAP|GARDEN|GAY|GB|GBIZ|GD|GDN|GE|GEA|GENT|GENTING|GEORGE|GF|GG|GGEE|GH|GI|GIFT|GIFTS|GIVES|GIVING|GL|GLADE|GLASS|GLE|GLOBAL|GLOBO|GM|GMAIL|GMBH|GMO|GMX|GN|GODADDY|GOLD|GOLDPOINT|GOLF|GOO|GOODYEAR|GOOG|GOOGLE|GOP|GOT|GOV|GP|GQ|GR|GRAINGER|GRAPHICS|GRATIS|GREEN|GRIPE|GROCERY|GROUP|GS|GT|GU|GUARDIAN|GUCCI|GUGE|GUIDE|GUITARS|GURU|GW|GY|HAIR|HAMBURG|HANGOUT|HAUS|HBO|HDFC|HDFCBANK|HEALTH|HEALTHCARE|HELP|HELSINKI|HERE|HERMES|HGTV|HIPHOP|HISAMITSU|HITACHI|HIV|HK|HKT|HM|HN|HOCKEY|HOLDINGS|HOLIDAY|HOMEDEPOT|HOMEGOODS|HOMES|HOMESENSE|HONDA|HORSE|HOSPITAL|HOST|HOSTING|HOT|HOTELES|HOTELS|HOTMAIL|HOUSE|HOW|HR|HSBC|HT|HU|HUGHES|HYATT|HYUNDAI|IBM|ICBC|ICE|ICU|ID|IE|IEEE|IFM|IKANO|IL|IM|IMAMAT|IMDB|IMMO|IMMOBILIEN|IN|INC|INDUSTRIES|INFINITI|INFO|ING|INK|INSTITUTE|INSURANCE|INSURE|INT|INTEL|INTERNATIONAL|INTUIT|INVESTMENTS|IO|IPIRANGA|IQ|IR|IRISH|IS|ISMAILI|IST|ISTANBUL|IT|ITAU|ITV|IVECO|JAGUAR|JAVA|JCB|JCP|JE|JEEP|JETZT|JEWELRY|JIO|JLL|JM|JMP|JNJ|JO|JOBS|JOBURG|JOT|JOY|JP|JPMORGAN|JPRS|JUEGOS|JUNIPER|KAUFEN|KDDI|KE|KERRYHOTELS|KERRYLOGISTICS|KERRYPROPERTIES|KFH|KG|KH|KI|KIA|KIM|KINDER|KINDLE|KITCHEN|KIWI|KM|KN|KOELN|KOMATSU|KOSHER|KP|KPMG|KPN|KR|KRD|KRED|KUOKGROUP|KW|KY|KYOTO|KZ|LA|LACAIXA|LAMBORGHINI|LAMER|LANCASTER|LANCIA|LAND|LANDROVER|LANXESS|LASALLE|LAT|LATINO|LATROBE|LAW|LAWYER|LB|LC|LDS|LEASE|LECLERC|LEFRAK|LEGAL|LEGO|LEXUS|LGBT|LI|LIDL|LIFE|LIFEINSURANCE|LIFESTYLE|LIGHTING|LIKE|LILLY|LIMITED|LIMO|LINCOLN|LINDE|LINK|LIPSY|LIVE|LIVING|LIXIL|LK|LLC|LLP|LOAN|LOANS|LOCKER|LOCUS|LOFT|LOL|LONDON|LOTTE|LOTTO|LOVE|LPL|LPLFINANCIAL|LR|LS|LT|LTD|LTDA|LU|LUNDBECK|LUPIN|LUXE|LUXURY|LV|LY|MA|MACYS|MADRID|MAIF|MAISON|MAKEUP|MAN|MANAGEMENT|MANGO|MAP|MARKET|MARKETING|MARKETS|MARRIOTT|MARSHALLS|MASERATI|MATTEL|MBA|MC|MCKINSEY|MD|ME|MED|MEDIA|MEET|MELBOURNE|MEME|MEMORIAL|MEN|MENU|MERCKMSD|METLIFE|MG|MH|MIAMI|MICROSOFT|MIL|MINI|MINT|MIT|MITSUBISHI|MK|ML|MLB|MLS|MM|MMA|MN|MO|MOBI|MOBILE|MODA|MOE|MOI|MOM|MONASH|MONEY|MONSTER|MORMON|MORTGAGE|MOSCOW|MOTO|MOTORCYCLES|MOV|MOVIE|MP|MQ|MR|MS|MSD|MT|MTN|MTR|MU|MUSEUM|MUTUAL|MV|MW|MX|MY|MZ|NA|NAB|NAGOYA|NAME|NATIONWIDE|NATURA|NAVY|NBA|NC|NE|NEC|NET|NETBANK|NETFLIX|NETWORK|NEUSTAR|NEW|NEWHOLLAND|NEWS|NEXT|NEXTDIRECT|NEXUS|NF|NFL|NG|NGO|NHK|NI|NICO|NIKE|NIKON|NINJA|NISSAN|NISSAY|NL|NO|NOKIA|NORTHWESTERNMUTUAL|NORTON|NOW|NOWRUZ|NOWTV|NP|NR|NRA|NRW|NTT|NU|NYC|NZ|OBI|OBSERVER|OFF|OFFICE|OKINAWA|OLAYAN|OLAYANGROUP|OLDNAVY|OLLO|OM|OMEGA|ONE|ONG|ONL|ONLINE|ONYOURSIDE|OOO|OPEN|ORACLE|ORANGE|ORG|ORGANIC|ORIGINS|OSAKA|OTSUKA|OTT|OVH|PA|PAGE|PANASONIC|PARIS|PARS|PARTNERS|PARTS|PARTY|PASSAGENS|PAY|PCCW|PE|PET|PF|PFIZER|PG|PH|PHARMACY|PHD|PHILIPS|PHONE|PHOTO|PHOTOGRAPHY|PHOTOS|PHYSIO|PICS|PICTET|PICTURES|PID|PIN|PING|PINK|PIONEER|PIZZA|PK|PL|PLACE|PLAY|PLAYSTATION|PLUMBING|PLUS|PM|PN|PNC|POHL|POKER|POLITIE|PORN|POST|PR|PRAMERICA|PRAXI|PRESS|PRIME|PRO|PROD|PRODUCTIONS|PROF|PROGRESSIVE|PROMO|PROPERTIES|PROPERTY|PROTECTION|PRU|PRUDENTIAL|PS|PT|PUB|PW|PWC|PY|QA|QPON|QUEBEC|QUEST|QVC|RACING|RADIO|RAID|RE|READ|REALESTATE|REALTOR|REALTY|RECIPES|RED|REDSTONE|REDUMBRELLA|REHAB|REISE|REISEN|REIT|RELIANCE|REN|RENT|RENTALS|REPAIR|REPORT|REPUBLICAN|REST|RESTAURANT|REVIEW|REVIEWS|REXROTH|RICH|RICHARDLI|RICOH|RIGHTATHOME|RIL|RIO|RIP|RMIT|RO|ROCHER|ROCKS|RODEO|ROGERS|ROOM|RS|RSVP|RU|RUGBY|RUHR|RUN|RW|RWE|RYUKYU|SA|SAARLAND|SAFE|SAFETY|SAKURA|SALE|SALON|SAMSCLUB|SAMSUNG|SANDVIK|SANDVIKCOROMANT|SANOFI|SAP|SARL|SAS|SAVE|SAXO|SB|SBI|SBS|SC|SCA|SCB|SCHAEFFLER|SCHMIDT|SCHOLARSHIPS|SCHOOL|SCHULE|SCHWARZ|SCIENCE|SCJOHNSON|SCOR|SCOT|SD|SE|SEARCH|SEAT|SECURE|SECURITY|SEEK|SELECT|SENER|SERVICES|SES|SEVEN|SEW|SEX|SEXY|SFR|SG|SH|SHANGRILA|SHARP|SHAW|SHELL|SHIA|SHIKSHA|SHOES|SHOP|SHOPPING|SHOUJI|SHOW|SHOWTIME|SHRIRAM|SI|SILK|SINA|SINGLES|SITE|SJ|SK|SKI|SKIN|SKY|SKYPE|SL|SLING|SM|SMART|SMILE|SN|SNCF|SO|SOCCER|SOCIAL|SOFTBANK|SOFTWARE|SOHU|SOLAR|SOLUTIONS|SONG|SONY|SOY|SPACE|SPORT|SPOT|SPREADBETTING|SR|SRL|SS|ST|STADA|STAPLES|STAR|STATEBANK|STATEFARM|STC|STCGROUP|STOCKHOLM|STORAGE|STORE|STREAM|STUDIO|STUDY|STYLE|SU|SUCKS|SUPPLIES|SUPPLY|SUPPORT|SURF|SURGERY|SUZUKI|SV|SWATCH|SWIFTCOVER|SWISS|SX|SY|SYDNEY|SYMANTEC|SYSTEMS|SZ|TAB|TAIPEI|TALK|TAOBAO|TARGET|TATAMOTORS|TATAR|TATTOO|TAX|TAXI|TC|TCI|TD|TDK|TEAM|TECH|TECHNOLOGY|TEL|TEMASEK|TENNIS|TEVA|TF|TG|TH|THD|THEATER|THEATRE|TIAA|TICKETS|TIENDA|TIFFANY|TIPS|TIRES|TIROL|TJ|TJMAXX|TJX|TK|TKMAXX|TL|TM|TMALL|TN|TO|TODAY|TOKYO|TOOLS|TOP|TORAY|TOSHIBA|TOTAL|TOURS|TOWN|TOYOTA|TOYS|TR|TRADE|TRADING|TRAINING|TRAVEL|TRAVELCHANNEL|TRAVELERS|TRAVELERSINSURANCE|TRUST|TRV|TT|TUBE|TUI|TUNES|TUSHU|TV|TVS|TW|TZ|UA|UBANK|UBS|UG|UK|UNICOM|UNIVERSITY|UNO|UOL|UPS|US|UY|UZ|VA|VACATIONS|VANA|VANGUARD|VC|VE|VEGAS|VENTURES|VERISIGN|VERSICHERUNG|VET|VG|VI|VIAJES|VIDEO|VIG|VIKING|VILLAS|VIN|VIP|VIRGIN|VISA|VISION|VIVA|VIVO|VLAANDEREN|VN|VODKA|VOLKSWAGEN|VOLVO|VOTE|VOTING|VOTO|VOYAGE|VU|VUELOS|WALES|WALMART|WALTER|WANG|WANGGOU|WATCH|WATCHES|WEATHER|WEATHERCHANNEL|WEBCAM|WEBER|WEBSITE|WED|WEDDING|WEIBO|WEIR|WF|WHOSWHO|WIEN|WIKI|WILLIAMHILL|WIN|WINDOWS|WINE|WINNERS|WME|WOLTERSKLUWER|WOODSIDE|WORK|WORKS|WORLD|WOW|WS|WTC|WTF|XBOX|XEROX|XFINITY|XIHUAN|XIN|XN--11B4C3D|XN--1CK2E1B|XN--1QQW23A|XN--2SCRJ9C|XN--30RR7Y|XN--3BST00M|XN--3DS443G|XN--3E0B707E|XN--3HCRJ9C|XN--3OQ18VL8PN36A|XN--3PXU8K|XN--42C2D9A|XN--45BR5CYL|XN--45BRJ9C|XN--45Q11C|XN--4GBRIM|XN--54B7FTA0CC|XN--55QW42G|XN--55QX5D|XN--5SU34J936BGSG|XN--5TZM5G|XN--6FRZ82G|XN--6QQ986B3XL|XN--80ADXHKS|XN--80AO21A|XN--80AQECDR1A|XN--80ASEHDB|XN--80ASWG|XN--8Y0A063A|XN--90A3AC|XN--90AE|XN--90AIS|XN--9DBQ2A|XN--9ET52U|XN--9KRT00A|XN--B4W605FERD|XN--BCK1B9A5DRE4C|XN--C1AVG|XN--C2BR7G|XN--CCK2B3B|XN--CG4BKI|XN--CLCHC0EA0B2G2A9GCD|XN--CZR694B|XN--CZRS0T|XN--CZRU2D|XN--D1ACJ3B|XN--D1ALF|XN--E1A4C|XN--ECKVDTC9D|XN--EFVY88H|XN--FCT429K|XN--FHBEI|XN--FIQ228C5HS|XN--FIQ64B|XN--FIQS8S|XN--FIQZ9S|XN--FJQ720A|XN--FLW351E|XN--FPCRJ9C3D|XN--FZC2C9E2C|XN--FZYS8D69UVGM|XN--G2XX48C|XN--GCKR3F0F|XN--GECRJ9C|XN--GK3AT1E|XN--H2BREG3EVE|XN--H2BRJ9C|XN--H2BRJ9C8C|XN--HXT814E|XN--I1B6B1A6A2E|XN--IMR513N|XN--IO0A7I|XN--J1AEF|XN--J1AMH|XN--J6W193G|XN--JLQ61U9W7B|XN--JVR189M|XN--KCRX77D1X4A|XN--KPRW13D|XN--KPRY57D|XN--KPU716F|XN--KPUT3I|XN--L1ACC|XN--LGBBAT1AD8J|XN--MGB9AWBF|XN--MGBA3A3EJT|XN--MGBA3A4F16A|XN--MGBA7C0BBN0A|XN--MGBAAKC7DVF|XN--MGBAAM7A8H|XN--MGBAB2BD|XN--MGBAH1A3HJKRD|XN--MGBAI9AZGQP6J|XN--MGBAYH7GPA|XN--MGBBH1A|XN--MGBBH1A71E|XN--MGBC0A9AZCG|XN--MGBCA7DZDO|XN--MGBCPQ6GPA1A|XN--MGBERP4A5D4AR|XN--MGBGU82A|XN--MGBI4ECEXP|XN--MGBPL2FH|XN--MGBT3DHD|XN--MGBTX2B|XN--MGBX4CD0AB|XN--MIX891F|XN--MK1BU44C|XN--MXTQ1M|XN--NGBC5AZD|XN--NGBE9E0A|XN--NGBRX|XN--NODE|XN--NQV7F|XN--NQV7FS00EMA|XN--NYQY26A|XN--O3CW4H|XN--OGBPF8FL|XN--OTU796D|XN--P1ACF|XN--P1AI|XN--PBT977C|XN--PGBS0DH|XN--PSSY2U|XN--Q7CE6A|XN--Q9JYB4C|XN--QCKA1PMC|XN--QXA6A|XN--QXAM|XN--RHQV96G|XN--ROVU88B|XN--RVC1E0AM3E|XN--S9BRJ9C|XN--SES554G|XN--T60B56A|XN--TCKWE|XN--TIQ49XQYJ|XN--UNUP4Y|XN--VERMGENSBERATER-CTB|XN--VERMGENSBERATUNG-PWB|XN--VHQUV|XN--VUQ861B|XN--W4R85EL8FHU5DNRA|XN--W4RS40L|XN--WGBH1C|XN--WGBL6A|XN--XHQ521B|XN--XKC2AL3HYE2A|XN--XKC2DL3A5EE0H|XN--Y9A3AQ|XN--YFRO4I67O|XN--YGBI2AMMX|XN--ZFR164B|XXX|XYZ|YACHTS|YAHOO|YAMAXUN|YANDEX|YE|YODOBASHI|YOGA|YOKOHAMA|YOU|YOUTUBE|YT|YUN|ZA|ZAPPOS|ZARA|ZERO|ZIP|ZM|ZONE|ZUERICH|ZW|TEST)"},7182:(e,t)=>{"use strict";function n(e,t,n){return"function"==typeof n?n(e,t):n}Object.defineProperty(t,"__esModule",{value:!0}),t.transform=function(e,t){var r="",i=1/0,s={},o=!1;if(t&&t.specialTransform)for(var a=0;a<t.specialTransform.length;a++){var c=t.specialTransform[a];if(c.test.test(e.string))return c.transform(e.string,e)}return t&&t.exclude&&n(e.string,e,t.exclude)?e.string:(t&&t.protocol&&(r=n(e.string,e,t.protocol)),e.protocol?r="":r||(r=e.isEmail?"mailto:":e.isFile?"file:///":"http://"),t&&t.truncate&&(i=n(e.string,e,t.truncate)),t&&t.middleTruncation&&(o=n(e.string,e,t.middleTruncation)),t&&t.attributes&&(s=n(e.string,e,t.attributes)),"<a "+Object.keys(s).map((function(e){return!0===s[e]?e:e+'="'+s[e]+'" '})).join(" ")+'href="'+r+e.string+'">'+(e.string.length>i?o?e.string.substring(0,Math.floor(i/2))+"…"+e.string.substring(e.string.length-Math.ceil(i/2),e.string.length):e.string.substring(0,i)+"…":e.string)+"</a>")}},6371:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4048);t.checkParenthesis=function(e,t,n,r){return r===t&&(n.split(e).length-n.split(t).length==1||e===t&&n.split(e).length%2==0||void 0)},t.maximumAttrLength=r.htmlAttributes.sort((function(e,t){return t.length-e.length}))[0].length,t.isInsideAttribute=function(e){return/\s[a-z0-9-]+=('|")$/i.test(e)||/: ?url\(('|")?$/i.test(e)},t.isInsideAnchorTag=function(e,t,n){for(var r=e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),i=new RegExp("(?=(<a))(?!([\\s\\S]*)(<\\/a>)("+r+"))[\\s\\S]*?("+r+")(?!\"|')","gi"),s=null;null!==(s=i.exec(t));){if(s.index+s[0].length===n)return!0}return!1}},1206:function(e){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.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 i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));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=90)}({17:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(18),i=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":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";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,r){void 0===r&&(r=!1);var i=e.getVersionPrecision(t),s=e.getVersionPrecision(n),o=Math.max(i,s),a=0,c=e.map([t,n],(function(t){var n=o-e.getVersionPrecision(t),r=t+new Array(n+1).join(".0");return e.map(r.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(r&&(a=o-Math.min(i,s)),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,r=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(n=0;n<e.length;n+=1)r.push(t(e[n]));return r},e.find=function(e,t){var n,r;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(n=0,r=e.length;n<r;n+=1){var i=e[n];if(t(i,n))return i}},e.assign=function(e){for(var t,n,r=e,i=arguments.length,s=new Array(i>1?i-1:0),o=1;o<i;o++)s[o-1]=arguments[o];if(Object.assign)return Object.assign.apply(Object,[e].concat(s));var a=function(){var e=s[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach((function(t){r[t]=e[t]}))};for(t=0,n=s.length;t<n;t+=1)a();return e},e.getBrowserAlias=function(e){return r.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return r.BROWSER_MAP[e]||""},e}();t.default=i,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",Electron:"electron",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",electron:"Electron",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 r,i=(r=n(91))&&r.__esModule?r:{default:r},s=n(18);function o(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)}}var a=function(){function e(){}var t,n,r;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 i.default(e,t)},e.parse=function(e){return new i.default(e).getResult()},t=e,r=[{key:"BROWSER_MAP",get:function(){return s.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return s.ENGINE_MAP}},{key:"OS_MAP",get:function(){return s.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return s.PLATFORMS_MAP}}],(n=null)&&o(t.prototype,n),r&&o(t,r),e}();t.default=a,e.exports=t.default},91:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=c(n(92)),i=c(n(93)),s=c(n(94)),o=c(n(95)),a=c(n(17));function c(e){return e&&e.__esModule?e:{default:e}}var l=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=a.default.find(r.default,(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=a.default.find(i.default,(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=a.default.find(s.default,(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=a.default.find(o.default,(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 a.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,n={},r=0,i={},s=0;if(Object.keys(e).forEach((function(t){var o=e[t];"string"==typeof o?(i[t]=o,s+=1):"object"==typeof o&&(n[t]=o,r+=1)})),r>0){var o=Object.keys(n),c=a.default.find(o,(function(e){return t.isOS(e)}));if(c){var l=this.satisfies(n[c]);if(void 0!==l)return l}var f=a.default.find(o,(function(e){return t.isPlatform(e)}));if(f){var u=this.satisfies(n[f]);if(void 0!==u)return u}}if(s>0){var d=Object.keys(i),h=a.default.find(d,(function(e){return t.isBrowser(e,!0)}));if(void 0!==h)return this.compareVersion(i[h])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),i=a.default.getBrowserTypeByAlias(r);return t&&i&&(r=i.toLowerCase()),r===n},t.compareVersion=function(e){var t=[0],n=e,r=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(n=e.substr(1),"="===e[1]?(r=!0,n=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?n=e.substr(1):"~"===e[0]&&(r=!0,n=e.substr(1)),t.indexOf(a.default.compareVersions(i,n,r))>-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,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||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=l,e.exports=t.default},92:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},s=/version\/(\d+(\.?_?\d+)+)/i,o=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},n=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},n=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},n=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},n=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},n=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},n=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},n=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},n=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},n=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},n=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},n=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},n=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},n=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},n=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},n=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},n=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},n=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},n=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},n=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},n=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},n=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},n=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},n=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},n=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},n=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},n=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},n=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},n=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},n=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},n=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},n=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},n=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},n=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},n=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},n=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},n=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t={name:"Android Browser"},n=i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},n=i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},n=i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.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 r,i=(r=n(17))&&r.__esModule?r:{default:r},s=n(18),o=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:s.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:s.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=i.default.getWindowsVersionName(t);return{name:s.OS_MAP.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:s.OS_MAP.iOS},n=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=i.default.getMacOSVersionName(t),r={name:s.OS_MAP.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:s.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=i.default.getAndroidVersionName(t),r={name:s.OS_MAP.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:s.OS_MAP.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:s.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:s.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:s.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:s.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:s.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:s.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 r,i=(r=n(17))&&r.__esModule?r:{default:r},s=n(18),o=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:s.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:s.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:s.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 r,i=(r=n(17))&&r.__esModule?r:{default:r},s=n(18),o=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:s.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:s.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:s.ENGINE_MAP.Trident},n=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:s.ENGINE_MAP.Presto},n=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe:function(e){var t={name:s.ENGINE_MAP.Gecko},n=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:s.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:s.ENGINE_MAP.WebKit},n=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];t.default=o,e.exports=t.default}})},2721:(e,t)=>{"use strict";function n(){return"undefined"==typeof window?null:window.navigator.languages&&window.navigator.languages[0]||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage||window.navigator.systemLanguage||null}function r(e){return e.toLowerCase().replace(/-/,"_")}t.Z=void 0;var i=function(e){if(!e)return n();var t=e.languages,i=e.fallback;if(!e.languages)return i;var s=r(n());if(!s)return i;var o=t.filter((function(e){return r(e)===s}));return o.length>0?o[0]||i:t.filter((function(e){return n=e,i=(t=s).length,(r=null==r?0:r)<0?r=0:r>i&&(r=i),n="".concat(n),t.slice(r,r+n.length)==n;var t,n,r,i}))[0]||i};t.Z=i},9830:e=>{"use strict";
|
2 |
/*!
|
3 |
* bytes
|
4 |
* Copyright(c) 2012-2014 TJ Holowaychuk
|
5 |
* Copyright(c) 2015 Jed Watson
|
6 |
* MIT Licensed
|
7 |
-
*/e.exports=function(e,t){if("string"==typeof e)return o(e);if("number"==typeof e)return s(e,t);return null},e.exports.format=s,e.exports.parse=o;var t=/\B(?=(\d{3})+(?!\d))/g,n=/(?:\.0*|(\.[^0]+)0+)$/,r={b:1,kb:1024,mb:1<<20,gb:1<<30,tb:Math.pow(1024,4),pb:Math.pow(1024,5)},i=/^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i;function s(e,i){if(!Number.isFinite(e))return null;var s=Math.abs(e),o=i&&i.thousandsSeparator||"",a=i&&i.unitSeparator||"",c=i&&void 0!==i.decimalPlaces?i.decimalPlaces:2,l=Boolean(i&&i.fixedDecimals),f=i&&i.unit||"";f&&r[f.toLowerCase()]||(f=s>=r.pb?"PB":s>=r.tb?"TB":s>=r.gb?"GB":s>=r.mb?"MB":s>=r.kb?"KB":"B");var u=(e/r[f.toLowerCase()]).toFixed(c);return l||(u=u.replace(n,"$1")),o&&(u=u.replace(t,o)),u+a+f}function o(e){if("number"==typeof e&&!isNaN(e))return e;if("string"!=typeof e)return null;var t,n=i.exec(e),s="b";return n?(t=parseFloat(n[1]),s=n[4].toLowerCase()):(t=parseInt(e,10),s="b"),Math.floor(r[s]*t)}},5848:e=>{"use strict";e.exports=JSON.parse('{"nbsp":" ","iexcl":"¡","cent":"¢","pound":"£","curren":"¤","yen":"¥","brvbar":"¦","sect":"§","uml":"¨","copy":"©","ordf":"ª","laquo":"«","not":"¬","shy":"","reg":"®","macr":"¯","deg":"°","plusmn":"±","sup2":"²","sup3":"³","acute":"´","micro":"µ","para":"¶","middot":"·","cedil":"¸","sup1":"¹","ordm":"º","raquo":"»","frac14":"¼","frac12":"½","frac34":"¾","iquest":"¿","Agrave":"À","Aacute":"Á","Acirc":"Â","Atilde":"Ã","Auml":"Ä","Aring":"Å","AElig":"Æ","Ccedil":"Ç","Egrave":"È","Eacute":"É","Ecirc":"Ê","Euml":"Ë","Igrave":"Ì","Iacute":"Í","Icirc":"Î","Iuml":"Ï","ETH":"Ð","Ntilde":"Ñ","Ograve":"Ò","Oacute":"Ó","Ocirc":"Ô","Otilde":"Õ","Ouml":"Ö","times":"×","Oslash":"Ø","Ugrave":"Ù","Uacute":"Ú","Ucirc":"Û","Uuml":"Ü","Yacute":"Ý","THORN":"Þ","szlig":"ß","agrave":"à","aacute":"á","acirc":"â","atilde":"ã","auml":"ä","aring":"å","aelig":"æ","ccedil":"ç","egrave":"è","eacute":"é","ecirc":"ê","euml":"ë","igrave":"ì","iacute":"í","icirc":"î","iuml":"ï","eth":"ð","ntilde":"ñ","ograve":"ò","oacute":"ó","ocirc":"ô","otilde":"õ","ouml":"ö","divide":"÷","oslash":"ø","ugrave":"ù","uacute":"ú","ucirc":"û","uuml":"ü","yacute":"ý","thorn":"þ","yuml":"ÿ","fnof":"ƒ","Alpha":"Α","Beta":"Β","Gamma":"Γ","Delta":"Δ","Epsilon":"Ε","Zeta":"Ζ","Eta":"Η","Theta":"Θ","Iota":"Ι","Kappa":"Κ","Lambda":"Λ","Mu":"Μ","Nu":"Ν","Xi":"Ξ","Omicron":"Ο","Pi":"Π","Rho":"Ρ","Sigma":"Σ","Tau":"Τ","Upsilon":"Υ","Phi":"Φ","Chi":"Χ","Psi":"Ψ","Omega":"Ω","alpha":"α","beta":"β","gamma":"γ","delta":"δ","epsilon":"ε","zeta":"ζ","eta":"η","theta":"θ","iota":"ι","kappa":"κ","lambda":"λ","mu":"μ","nu":"ν","xi":"ξ","omicron":"ο","pi":"π","rho":"ρ","sigmaf":"ς","sigma":"σ","tau":"τ","upsilon":"υ","phi":"φ","chi":"χ","psi":"ψ","omega":"ω","thetasym":"ϑ","upsih":"ϒ","piv":"ϖ","bull":"•","hellip":"…","prime":"′","Prime":"″","oline":"‾","frasl":"⁄","weierp":"℘","image":"ℑ","real":"ℜ","trade":"™","alefsym":"ℵ","larr":"←","uarr":"↑","rarr":"→","darr":"↓","harr":"↔","crarr":"↵","lArr":"⇐","uArr":"⇑","rArr":"⇒","dArr":"⇓","hArr":"⇔","forall":"∀","part":"∂","exist":"∃","empty":"∅","nabla":"∇","isin":"∈","notin":"∉","ni":"∋","prod":"∏","sum":"∑","minus":"−","lowast":"∗","radic":"√","prop":"∝","infin":"∞","ang":"∠","and":"∧","or":"∨","cap":"∩","cup":"∪","int":"∫","there4":"∴","sim":"∼","cong":"≅","asymp":"≈","ne":"≠","equiv":"≡","le":"≤","ge":"≥","sub":"⊂","sup":"⊃","nsub":"⊄","sube":"⊆","supe":"⊇","oplus":"⊕","otimes":"⊗","perp":"⊥","sdot":"⋅","lceil":"⌈","rceil":"⌉","lfloor":"⌊","rfloor":"⌋","lang":"〈","rang":"〉","loz":"◊","spades":"♠","clubs":"♣","hearts":"♥","diams":"♦","quot":"\\"","amp":"&","lt":"<","gt":">","OElig":"Œ","oelig":"œ","Scaron":"Š","scaron":"š","Yuml":"Ÿ","circ":"ˆ","tilde":"˜","ensp":" ","emsp":" ","thinsp":" ","zwnj":"","zwj":"","lrm":"","rlm":"","ndash":"–","mdash":"—","lsquo":"‘","rsquo":"’","sbquo":"‚","ldquo":"“","rdquo":"”","bdquo":"„","dagger":"†","Dagger":"‡","permil":"‰","lsaquo":"‹","rsaquo":"›","euro":"€"}')},6588:e=>{"use strict";e.exports=JSON.parse('{"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":"ÿ"}')},487:e=>{var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}};e.exports=t},1012:e=>{var t,n;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var n=[],r=0;r<e.length;r+=3)for(var i=e[r]<<16|e[r+1]<<8|e[r+2],s=0;s<4;s++)8*r+6*s<=8*e.length?n.push(t.charAt(i>>>6*(3-s)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,i=0;r<e.length;i=++r%4)0!=i&&n.push((t.indexOf(e.charAt(r-1))&Math.pow(2,-2*i+8)-1)<<2*i|t.indexOf(e.charAt(r))>>>6-2*i);return n}},e.exports=n},512:(e,t,n)=>{var r=n(3645)((function(e){return e[1]}));r.push([e.id,"@keyframes fadeIn_-55RX{from{opacity:0}to{opacity:1}}@-webkit-keyframes fadeIn_-55RX{from{transform:translate3d(0, 40px, 0)}to{transform:translate3d(0, 0, 0);opacity:1}}.fadeIn_-55RX{animation-duration:1s;animation-fill-mode:both;-webkit-animation-duration:1s;-webkit-animation-fill-mode:both;animation-name:fadeIn_-55RX;-webkit-animation-delay:0.5s;animation-delay:0.5s;-webkit-animation-name:fadeIn_-55RX}.slideLeft_KoeUm{-webkit-animation:slideLeft_KoeUm 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;animation:slideLeft_KoeUm 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both}@-webkit-keyframes slideLeft_KoeUm{0%{transform:translateX(130%)}100%{transform:translateX(0px)}}@keyframes slideLeft_KoeUm{0%{transform:translateX(130%)}100%{transform:translateX(0px)}}.slideRight_3pLpg{-webkit-animation:slideRight_3pLpg 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;animation:slideRight_3pLpg 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both}@-webkit-keyframes slideRight_3pLpg{0%{transform:translateX(-130%)}100%{transform:translateX(0px)}}@keyframes slideRight_3pLpg{0%{transform:translateX(-130%)}100%{transform:translateX(0px)}}.slideUp_B_pTF{-webkit-animation:slideUp_B_pTF 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;animation:slideUp_B_pTF 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both}@-webkit-keyframes slideUp_B_pTF{0%{transform:translateY(130%)}100%{transform:translateY(0px)}}@keyframes slideUp_B_pTF{0%{transform:translateY(130%)}100%{transform:translateY(0px)}}.nudge_Wc3EQ,form .error_UuoQi{-webkit-animation:nudge_Wc3EQ 1s ease-in;animation:nudge_Wc3EQ 1s ease-in}@-webkit-keyframes nudge_Wc3EQ{0%{opacity:0}100%{opacity:1}}@keyframes nudge_Wc3EQ{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes fly-in_yrNvF{0%{transform:scale(0.85) translateY(10%);opacity:0}100%{transform:scale(1) translateY(0);opacity:1}}@keyframes fly-in_yrNvF{0%{transform:scale(0.85) translateY(10%);opacity:0}100%{transform:scale(1) translateY(0);opacity:1}}.fly-in_yrNvF{transition:all 0.5s;-webkit-animation-duration:0.3s;animation-duration:0.3s;-webkit-animation-name:fly-in_yrNvF;animation-name:fly-in_yrNvF}@-webkit-keyframes show-with-delay_2tWsA{0%{opacity:0}100%{opacity:1}}@keyframes show-with-delay_2tWsA{0%{opacity:0}100%{opacity:1}}.show-with-delay_2tWsA{-webkit-animation-name:show-with-delay_2tWsA;animation-name:show-with-delay_2tWsA;-webkit-animation-duration:0s;animation-duration:0s;-webkit-animation-delay:3s;animation-delay:3s;-webkit-animation-fill-mode:both;animation-fill-mode:both}form{position:relative}form .error_UuoQi{color:red;font-size:calc(14px - 3px);font-size:calc(var(--call-us-font-size, 14px) - 3px);margin:5px 0}form ::-moz-placeholder{color:#777;opacity:1}form :-ms-input-placeholder{color:#777;opacity:1}form ::placeholder{color:#777;opacity:1}.google-button_2DGgc button,.root_1TTPz button{width:100%;color:#444444;background:#0596d4;background:var(--call-us-main-button-background, #0596d4);border:1px #0596d4 solid;border:1px var(--call-us-main-button-background, #0596d4) solid;padding:5px 10px;font-size:14px;font-size:var(--call-us-font-size, 14px);outline:none;cursor:pointer}.google-button_2DGgc button.submit_3-k9E,.root_1TTPz button.submit_3-k9E{align-self:flex-end;background:#0596d4;background:var(--call-us-main-button-background, #0596d4);width:100%;height:35px;color:white;font-size:14px;font-size:var(--call-us-font-size, 14px)}.custom-scrollbar_1Ju2z::-webkit-scrollbar,.root_1TTPz form .form_body_wBhOL::-webkit-scrollbar{width:4px}.custom-scrollbar_1Ju2z::-webkit-scrollbar-track,.root_1TTPz form .form_body_wBhOL::-webkit-scrollbar-track{background:#f1f1f1}.custom-scrollbar_1Ju2z::-webkit-scrollbar-thumb,.root_1TTPz form .form_body_wBhOL::-webkit-scrollbar-thumb{background:#888}.custom-scrollbar_1Ju2z::-webkit-scrollbar-thumb:hover,.root_1TTPz form .form_body_wBhOL::-webkit-scrollbar-thumb:hover{background:#555}.root_1TTPz{display:flex;align-items:center;justify-content:center;height:100%;flex-flow:column;margin-bottom:0;flex-grow:1}.root_1TTPz form{width:100%;flex-grow:1;display:flex;flex-direction:column;overflow-y:auto;margin-bottom:0}.root_1TTPz form .form_body_wBhOL{padding:10px;flex-grow:1;display:flex;flex-direction:column;justify-content:center;overflow-y:auto}.root_1TTPz form .form_body_wBhOL .chatIntroText_C3oZl,.root_1TTPz form .form_body_wBhOL .replaceFieldsText_3ch5v{margin:5px 0;font-size:14px;font-size:var(--call-us-font-size, 14px);color:#646464;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.root_1TTPz form .form_body_wBhOL .replaceFieldsText_3ch5v{font-weight:bold;text-align:center}.root_1TTPz .chat-disabled-container_3yHCI{color:#646464;display:flex;flex:1 1 auto;flex-direction:row;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:1em}.root_1TTPz :focus{outline:none}\n",""]),r.locals={fadeIn:"fadeIn_-55RX",slideLeft:"slideLeft_KoeUm",slideRight:"slideRight_3pLpg",slideUp:"slideUp_B_pTF",nudge:"nudge_Wc3EQ",error:"error_UuoQi","fly-in":"fly-in_yrNvF","show-with-delay":"show-with-delay_2tWsA","google-button":"google-button_2DGgc",root:"root_1TTPz",submit:"submit_3-k9E","custom-scrollbar":"custom-scrollbar_1Ju2z",form_body:"form_body_wBhOL",chatIntroText:"chatIntroText_C3oZl",replaceFieldsText:"replaceFieldsText_3ch5v","chat-disabled-container":"chat-disabled-container_3yHCI"},e.exports=r},8336:(e,t,n)=>{var r=n(3645)((function(e){return e[1]}));r.push([e.id,"@keyframes fadeIn_2c0mp{from{opacity:0}to{opacity:1}}@-webkit-keyframes fadeIn_2c0mp{from{transform:translate3d(0, 40px, 0)}to{transform:translate3d(0, 0, 0);opacity:1}}.fadeIn_2c0mp{animation-duration:1s;animation-fill-mode:both;-webkit-animation-duration:1s;-webkit-animation-fill-mode:both;animation-name:fadeIn_2c0mp;-webkit-animation-delay:0.5s;animation-delay:0.5s;-webkit-animation-name:fadeIn_2c0mp}.slideLeft_3J8Ps{-webkit-animation:slideLeft_3J8Ps 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;animation:slideLeft_3J8Ps 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both}@-webkit-keyframes slideLeft_3J8Ps{0%{transform:translateX(130%)}100%{transform:translateX(0px)}}@keyframes slideLeft_3J8Ps{0%{transform:translateX(130%)}100%{transform:translateX(0px)}}.slideRight_1fPzF{-webkit-animation:slideRight_1fPzF 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;animation:slideRight_1fPzF 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both}@-webkit-keyframes slideRight_1fPzF{0%{transform:translateX(-130%)}100%{transform:translateX(0px)}}@keyframes slideRight_1fPzF{0%{transform:translateX(-130%)}100%{transform:translateX(0px)}}.slideUp_3BNk_{-webkit-animation:slideUp_3BNk_ 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;animation:slideUp_3BNk_ 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both}@-webkit-keyframes slideUp_3BNk_{0%{transform:translateY(130%)}100%{transform:translateY(0px)}}@keyframes slideUp_3BNk_{0%{transform:translateY(130%)}100%{transform:translateY(0px)}}.nudge_1Say6{-webkit-animation:nudge_1Say6 1s ease-in;animation:nudge_1Say6 1s ease-in}@-webkit-keyframes nudge_1Say6{0%{opacity:0}100%{opacity:1}}@keyframes nudge_1Say6{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes fly-in_3B_lw{0%{transform:scale(0.85) translateY(10%);opacity:0}100%{transform:scale(1) translateY(0);opacity:1}}@keyframes fly-in_3B_lw{0%{transform:scale(0.85) translateY(10%);opacity:0}100%{transform:scale(1) translateY(0);opacity:1}}.fly-in_3B_lw{transition:all 0.5s;-webkit-animation-duration:0.3s;animation-duration:0.3s;-webkit-animation-name:fly-in_3B_lw;animation-name:fly-in_3B_lw}@-webkit-keyframes show-with-delay_1xqMD{0%{opacity:0}100%{opacity:1}}@keyframes show-with-delay_1xqMD{0%{opacity:0}100%{opacity:1}}.show-with-delay_1xqMD{-webkit-animation-name:show-with-delay_1xqMD;animation-name:show-with-delay_1xqMD;-webkit-animation-duration:0s;animation-duration:0s;-webkit-animation-delay:3s;animation-delay:3s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.root_3iK1E{display:inline-block}.root_3iK1E .call-us-toolbar{display:flex;flex-direction:row;justify-content:center}.root_3iK1E .call-us-toolbar button{width:60px;width:var(--call-us-main-button-width, 60px);height:60px;height:var(--call-us-main-button-width, 60px);background-color:#373737;background-color:var(--call-us-form-header-background, #373737);border-radius:50%}.root_3iK1E button{box-shadow:0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);fill:white;fill:var(--call-us-header-text-color, white)}\n",""]),r.locals={fadeIn:"fadeIn_2c0mp",slideLeft:"slideLeft_3J8Ps",slideRight:"slideRight_1fPzF",slideUp:"slideUp_3BNk_",nudge:"nudge_1Say6","fly-in":"fly-in_3B_lw","show-with-delay":"show-with-delay_1xqMD",root:"root_3iK1E"},e.exports=r},342:(e,t,n)=>{var r=n(3645)((function(e){return e[1]}));r.push([e.id,".file-download-link_3P1fM{text-decoration:none;color:black}.show-file_3HMv7{display:grid;grid-template-columns:20px auto;grid-column-gap:3px;align-items:center;margin:0px 3px}.show-file_3HMv7 .transform-svg_gRa4y{transform:rotate(136deg);font-weight:lighter;width:20px;margin-top:5px}.show-file_3HMv7 .file-info_219P7 .file-name_TDWnC{align-self:end;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100px;display:block;text-align:left;margin-top:6px}.show-file_3HMv7 .file-info_219P7 .file-size_1VBbN{float:left;color:#cccccc;font-size:calc(14px - 2px);font-size:calc(var(--call-us-font-size, 14px) - 2px);align-self:end;justify-self:end}\n",""]),r.locals={"file-download-link":"file-download-link_3P1fM","show-file":"show-file_3HMv7","transform-svg":"transform-svg_gRa4y","file-info":"file-info_219P7","file-name":"file-name_TDWnC","file-size":"file-size_1VBbN"},e.exports=r},1112:(e,t,n)=>{var r=n(3645)((function(e){return e[1]}));r.push([e.id,"@keyframes fadeIn_2vkOd{from{opacity:0}to{opacity:1}}@-webkit-keyframes fadeIn_2vkOd{from{transform:translate3d(0, 40px, 0)}to{transform:translate3d(0, 0, 0);opacity:1}}.fadeIn_2vkOd{animation-duration:1s;animation-fill-mode:both;-webkit-animation-duration:1s;-webkit-animation-fill-mode:both;animation-name:fadeIn_2vkOd;-webkit-animation-delay:0.5s;animation-delay:0.5s;-webkit-animation-name:fadeIn_2vkOd}.slideLeft_2Udiv{-webkit-animation:slideLeft_2Udiv 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;animation:slideLeft_2Udiv 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both}@-webkit-keyframes slideLeft_2Udiv{0%{transform:translateX(130%)}100%{transform:translateX(0px)}}@keyframes slideLeft_2Udiv{0%{transform:translateX(130%)}100%{transform:translateX(0px)}}.slideRight_DJz1G{-webkit-animation:slideRight_DJz1G 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;animation:slideRight_DJz1G 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both}@-webkit-keyframes slideRight_DJz1G{0%{transform:translateX(-130%)}100%{transform:translateX(0px)}}@keyframes slideRight_DJz1G{0%{transform:translateX(-130%)}100%{transform:translateX(0px)}}.slideUp_gWFz3{-webkit-animation:slideUp_gWFz3 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;animation:slideUp_gWFz3 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both}@-webkit-keyframes slideUp_gWFz3{0%{transform:translateY(130%)}100%{transform:translateY(0px)}}@keyframes slideUp_gWFz3{0%{transform:translateY(130%)}100%{transform:translateY(0px)}}.nudge_1nCOl{-webkit-animation:nudge_1nCOl 1s ease-in;animation:nudge_1nCOl 1s ease-in}@-webkit-keyframes nudge_1nCOl{0%{opacity:0}100%{opacity:1}}@keyframes nudge_1nCOl{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes fly-in_390SE{0%{transform:scale(0.85) translateY(10%);opacity:0}100%{transform:scale(1) translateY(0);opacity:1}}@keyframes fly-in_390SE{0%{transform:scale(0.85) translateY(10%);opacity:0}100%{transform:scale(1) translateY(0);opacity:1}}.fly-in_390SE,.root_2RJyu .msg_bubble_3H8Qg{transition:all 0.5s;-webkit-animation-duration:0.3s;animation-duration:0.3s;-webkit-animation-name:fly-in_390SE;animation-name:fly-in_390SE}@-webkit-keyframes show-with-delay_2QO2C{0%{opacity:0}100%{opacity:1}}@keyframes show-with-delay_2QO2C{0%{opacity:0}100%{opacity:1}}.show-with-delay_2QO2C{-webkit-animation-name:show-with-delay_2QO2C;animation-name:show-with-delay_2QO2C;-webkit-animation-duration:0s;animation-duration:0s;-webkit-animation-delay:3s;animation-delay:3s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.root_2RJyu{display:flex;flex-direction:column}.root_2RJyu .msg_bubble_client_2E_BW{justify-content:flex-start}.root_2RJyu .msg_bubble_agent_6a5Gs{justify-content:flex-end}.root_2RJyu .msg_bubble_3H8Qg{display:flex;flex-direction:row;margin-bottom:6px !important}.root_2RJyu .msg_bubble_3H8Qg .avatar_container_2eN-E{height:27px;min-width:27px;max-width:27px}.root_2RJyu .msg_bubble_3H8Qg .avatar_container_2eN-E svg path:first-of-type{fill:#0596d4;fill:var(--call-us-main-button-background, #0596d4)}.root_2RJyu .msg_bubble_3H8Qg .avatar_container_2eN-E .avatar_img_3_STP{border-radius:50%;height:27px;min-width:27px;max-width:27px}.root_2RJyu .msg_bubble_3H8Qg .msg_container_2iwpY{width:0;line-height:1.4;margin-top:auto;margin-bottom:auto;border-radius:5px;padding:10px;position:relative;flex-grow:1;display:flex;flex-direction:column;font-size:14px;font-size:var(--call-us-font-size, 14px);word-wrap:break-word;word-break:break-word}.root_2RJyu .msg_bubble_3H8Qg .msg_container_2iwpY .msg_sub_area_zz0o2{display:flex;flex-direction:row;justify-content:space-between;margin-top:5px;font-size:calc(14px - 3px);font-size:calc(var(--call-us-font-size, 14px) - 3px)}.root_2RJyu .msg_bubble_3H8Qg .msg_container_2iwpY .msg_sub_area_zz0o2 .msg_sender_name_i34Tn{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:60%;float:left;margin-right:5px}.root_2RJyu .msg_bubble_3H8Qg .msg_container_2iwpY .msg_sub_area_zz0o2 span{white-space:nowrap}.root_2RJyu .msg_bubble_3H8Qg .msg_container_2iwpY .sending_indication_wf0It{display:flex;flex-direction:row;justify-content:flex-end;position:absolute;bottom:0;right:2px}.root_2RJyu .msg_bubble_3H8Qg .msg_container_2iwpY .sending_indication_wf0It .sending_icon_2GAbW{width:1em;height:1em;display:inline-block;fill:#373737;fill:var(--call-us-form-header-background, #373737);margin:0 0 0 5px}.root_2RJyu .msg_bubble_3H8Qg .msg_client_pZ7MA{margin-left:10px;background-color:#d4d4d4;background-color:var(--call-us-client-text-color, #d4d4d4)}.root_2RJyu .msg_bubble_3H8Qg .msg_client_pZ7MA.new_msg_1sNss::before{content:'';position:absolute;width:0;height:0;left:-7px;top:8px;border-top:8px solid transparent;border-right:8px solid #d4d4d4;border-right:8px solid var(--call-us-client-text-color, #d4d4d4);border-bottom:8px solid transparent}.root_2RJyu .msg_bubble_3H8Qg .msg_agent_3l4AH{margin-right:10px;background-color:#eee;background-color:var(--call-us-agent-text-color, #eee)}.root_2RJyu .msg_bubble_3H8Qg .msg_agent_3l4AH.new_msg_1sNss::after{content:'';position:absolute;width:0;height:0;right:-8px;top:8px;border-top:8px solid transparent;border-left:8px solid #eee;border-left:8px solid var(--call-us-agent-text-color, #eee);border-bottom:8px solid transparent}.root_2RJyu .error-message_1UQGl{color:red;font-size:calc(14px - 3px);font-size:calc(var(--call-us-font-size, 14px) - 3px);margin-bottom:10px}.root_2RJyu .error-message_1UQGl .error-message-retry_3NaXv{cursor:pointer}\n",""]),r.locals={fadeIn:"fadeIn_2vkOd",slideLeft:"slideLeft_2Udiv",slideRight:"slideRight_DJz1G",slideUp:"slideUp_gWFz3",nudge:"nudge_1nCOl","fly-in":"fly-in_390SE",root:"root_2RJyu",msg_bubble:"msg_bubble_3H8Qg","show-with-delay":"show-with-delay_2QO2C",msg_bubble_client:"msg_bubble_client_2E_BW",msg_bubble_agent:"msg_bubble_agent_6a5Gs",avatar_container:"avatar_container_2eN-E",avatar_img:"avatar_img_3_STP",msg_container:"msg_container_2iwpY",msg_sub_area:"msg_sub_area_zz0o2",msg_sender_name:"msg_sender_name_i34Tn",sending_indication:"sending_indication_wf0It",sending_icon:"sending_icon_2GAbW",msg_client:"msg_client_pZ7MA",new_msg:"new_msg_1sNss",msg_agent:"msg_agent_3l4AH","error-message":"error-message_1UQGl","error-message-retry":"error-message-retry_3NaXv"},e.exports=r},9592:(e,t,n)=>{var r=n(3645)((function(e){return e[1]}));r.push([e.id,"@keyframes fadeIn_2aWdx{from{opacity:0}to{opacity:1}}@-webkit-keyframes fadeIn_2aWdx{from{transform:translate3d(0, 40px, 0)}to{transform:translate3d(0, 0, 0);opacity:1}}.fadeIn_2aWdx{animation-duration:1s;animation-fill-mode:both;-webkit-animation-duration:1s;-webkit-animation-fill-mode:both;animation-name:fadeIn_2aWdx;-webkit-animation-delay:0.5s;animation-delay:0.5s;-webkit-animation-name:fadeIn_2aWdx}.slideLeft_1gAAZ{-webkit-animation:slideLeft_1gAAZ 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;animation:slideLeft_1gAAZ 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both}@-webkit-keyframes slideLeft_1gAAZ{0%{transform:translateX(130%)}100%{transform:translateX(0px)}}@keyframes slideLeft_1gAAZ{0%{transform:translateX(130%)}100%{transform:translateX(0px)}}.slideRight_xN84L{-webkit-animation:slideRight_xN84L 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;animation:slideRight_xN84L 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both}@-webkit-keyframes slideRight_xN84L{0%{transform:translateX(-130%)}100%{transform:translateX(0px)}}@keyframes slideRight_xN84L{0%{transform:translateX(-130%)}100%{transform:translateX(0px)}}.slideUp_CGuBy{-webkit-animation:slideUp_CGuBy 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;animation:slideUp_CGuBy 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both}@-webkit-keyframes slideUp_CGuBy{0%{transform:translateY(130%)}100%{transform:translateY(0px)}}@keyframes slideUp_CGuBy{0%{transform:translateY(130%)}100%{transform:translateY(0px)}}.nudge_2IT3U,form .error_2YeRz{-webkit-animation:nudge_2IT3U 1s ease-in;animation:nudge_2IT3U 1s ease-in}@-webkit-keyframes nudge_2IT3U{0%{opacity:0}100%{opacity:1}}@keyframes nudge_2IT3U{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes fly-in_3Dexy{0%{transform:scale(0.85) translateY(10%);opacity:0}100%{transform:scale(1) translateY(0);opacity:1}}@keyframes fly-in_3Dexy{0%{transform:scale(0.85) translateY(10%);opacity:0}100%{transform:scale(1) translateY(0);opacity:1}}.fly-in_3Dexy{transition:all 0.5s;-webkit-animation-duration:0.3s;animation-duration:0.3s;-webkit-animation-name:fly-in_3Dexy;animation-name:fly-in_3Dexy}@-webkit-keyframes show-with-delay_1k5AM{0%{opacity:0}100%{opacity:1}}@keyframes show-with-delay_1k5AM{0%{opacity:0}100%{opacity:1}}.show-with-delay_1k5AM{-webkit-animation-name:show-with-delay_1k5AM;animation-name:show-with-delay_1k5AM;-webkit-animation-duration:0s;animation-duration:0s;-webkit-animation-delay:3s;animation-delay:3s;-webkit-animation-fill-mode:both;animation-fill-mode:both}form{position:relative}form .error_2YeRz{color:red;font-size:calc(14px - 3px);font-size:calc(var(--call-us-font-size, 14px) - 3px);margin:5px 0}form ::-moz-placeholder{color:#777;opacity:1}form :-ms-input-placeholder{color:#777;opacity:1}form ::placeholder{color:#777;opacity:1}.google-button_305ZN button,.root_FnIYL button{width:100%;color:#444444;background:#0596d4;background:var(--call-us-main-button-background, #0596d4);border:1px #0596d4 solid;border:1px var(--call-us-main-button-background, #0596d4) solid;padding:5px 10px;font-size:14px;font-size:var(--call-us-font-size, 14px);outline:none;cursor:pointer}.google-button_305ZN button.submit_QA7Yh,.root_FnIYL button.submit_QA7Yh{align-self:flex-end;background:#0596d4;background:var(--call-us-main-button-background, #0596d4);width:100%;height:35px;color:white;font-size:14px;font-size:var(--call-us-font-size, 14px)}.root_FnIYL{display:flex;align-items:center;justify-content:space-between;flex-grow:1;flex-direction:column;box-sizing:border-box}.root_FnIYL .success_body_LTWG8{padding:10px;flex-grow:1;display:flex;flex-direction:column;justify-content:center;width:100%}.root_FnIYL .success_body_LTWG8 .awayText_3JnRn{font-size:14px;font-size:var(--call-us-font-size, 14px);color:#646464;text-align:center;padding:5px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-weight:bold}.root_FnIYL .success_body_LTWG8 .rateThumbs_1K_u8{height:25px;cursor:pointer;fill:#373737;fill:var(--call-us-form-header-background, #373737)}.root_FnIYL :focus{outline:none}\n",""]),r.locals={fadeIn:"fadeIn_2aWdx",slideLeft:"slideLeft_1gAAZ",slideRight:"slideRight_xN84L",slideUp:"slideUp_CGuBy",nudge:"nudge_2IT3U",error:"error_2YeRz","fly-in":"fly-in_3Dexy","show-with-delay":"show-with-delay_1k5AM","google-button":"google-button_305ZN",root:"root_FnIYL",submit:"submit_QA7Yh",success_body:"success_body_LTWG8",awayText:"awayText_3JnRn",rateThumbs:"rateThumbs_1K_u8"},e.exports=r},3839:(e,t,n)=>{var r=n(3645)((function(e){return e[1]}));r.push([e.id,".bar_1d-Mw{border:0;padding:0;position:relative;display:block;width:100%}.bar_1d-Mw:before{content:'';height:2px;width:0;bottom:0;position:absolute;background:#373737;background:var(--call-us-form-header-background, #373737);transition:300ms ease all;left:0}.materialInput_fKTHD,.materialPhone_3-YId,.materialTextarea_3yJnC{position:relative;flex-grow:1;margin-bottom:5px}.materialInput_fKTHD label,.materialPhone_3-YId label,.materialTextarea_3yJnC label{color:#373737;color:var(--call-us-form-header-background, #373737);font-size:calc(14px - 3px);font-size:calc(var(--call-us-font-size, 14px) - 3px);font-palette:dark;font-weight:normal;position:absolute;pointer-events:none;left:5px;top:10px;transition:300ms ease all}.materialInput_fKTHD textarea,.materialPhone_3-YId textarea,.materialTextarea_3yJnC textarea{overflow-x:hidden;resize:none}.materialInput_fKTHD textarea:focus ~ label,.materialInput_fKTHD textarea:valid ~ label,.materialPhone_3-YId textarea:focus ~ label,.materialPhone_3-YId textarea:valid ~ label,.materialTextarea_3yJnC textarea:focus ~ label,.materialTextarea_3yJnC textarea:valid ~ label{top:-30px;font-size:calc(14px - 1px);font-size:calc(var(--call-us-font-size, 14px) - 1px);color:#373737;color:var(--call-us-form-header-background, #373737)}.materialInput_fKTHD input:focus ~ label,.materialInput_fKTHD input:valid ~ label,.materialInput_fKTHD input:disabled ~ label,.materialPhone_3-YId input:focus ~ label,.materialPhone_3-YId input:valid ~ label,.materialPhone_3-YId input:disabled ~ label,.materialTextarea_3yJnC input:focus ~ label,.materialTextarea_3yJnC input:valid ~ label,.materialTextarea_3yJnC input:disabled ~ label{top:-4px;font-size:calc(14px - 1px);font-size:calc(var(--call-us-font-size, 14px) - 1px);color:#373737;color:var(--call-us-form-header-background, #373737)}.materialInput_fKTHD input,.materialInput_fKTHD textarea,.materialPhone_3-YId input,.materialPhone_3-YId textarea,.materialTextarea_3yJnC input,.materialTextarea_3yJnC textarea{background:none;color:black;font-size:calc(14px - 1px);font-size:calc(var(--call-us-font-size, 14px) - 1px);font-family:inherit;padding:10px 0 4px 0;display:block;width:100%;border:none;border-radius:0;border-bottom:1px solid #373737;border-bottom:1px solid var(--call-us-form-header-background, #373737)}.materialInput_fKTHD input:focus,.materialInput_fKTHD textarea:focus,.materialPhone_3-YId input:focus,.materialPhone_3-YId textarea:focus,.materialTextarea_3yJnC input:focus,.materialTextarea_3yJnC textarea:focus{outline:none}.materialInput_fKTHD input:focus ~ .bar_1d-Mw:before,.materialInput_fKTHD textarea:focus ~ .bar_1d-Mw:before,.materialPhone_3-YId input:focus ~ .bar_1d-Mw:before,.materialPhone_3-YId textarea:focus ~ .bar_1d-Mw:before,.materialTextarea_3yJnC input:focus ~ .bar_1d-Mw:before,.materialTextarea_3yJnC textarea:focus ~ .bar_1d-Mw:before{width:100%}.custom-scrollbar_2h8Ar::-webkit-scrollbar,.root_25A4M .chat-container_1uPxK::-webkit-scrollbar{width:4px}.custom-scrollbar_2h8Ar::-webkit-scrollbar-track,.root_25A4M .chat-container_1uPxK::-webkit-scrollbar-track{background:#f1f1f1}.custom-scrollbar_2h8Ar::-webkit-scrollbar-thumb,.root_25A4M .chat-container_1uPxK::-webkit-scrollbar-thumb{background:#888}.custom-scrollbar_2h8Ar::-webkit-scrollbar-thumb:hover,.root_25A4M .chat-container_1uPxK::-webkit-scrollbar-thumb:hover{background:#555}.root_25A4M{position:relative;height:100%;display:flex;flex-direction:column;flex-grow:1}.root_25A4M .video-container_2aZGG{display:flex;align-items:center;position:relative;z-index:1000;height:187px}.root_25A4M .video-container_2aZGG .awayVideo_15FVO{width:100%;height:187px}.root_25A4M .video-container_2aZGG .homeVideo_2xijr{width:15vw;width:15vh;position:absolute;bottom:0px;right:0px;border:2px solid #fff}.root_25A4M .video-container_2aZGG .awayFullVideo_2PGhF{width:100%;height:100%}.root_25A4M .video-container_2aZGG .homeFullVideo_12ZC9{width:15vw;height:15vh;max-width:25%;max-height:25%;position:absolute;bottom:0px;right:0px;border:2px solid #fff}@media screen{.root_25A4M .video-container_2aZGG .awayVideo_15FVO{max-width:50vw;max-height:50vh;margin:0 auto}.root_25A4M .video-container_2aZGG .homeVideo_2xijr{max-width:15vw;max-height:15vh;position:absolute;bottom:0px;right:5%}}.root_25A4M .video-container_2aZGG .mirrorVideo_2404u{transform:rotateY(180deg)}.root_25A4M .chat-container_1uPxK{flex:1 1 auto;padding:10px 10px 0 !important;min-height:180px !important;overflow-y:auto}.root_25A4M .chat-container_1uPxK .typing_indicator_1yCCV{display:flex;flex-direction:row;width:80%;justify-content:flex-end;text-align:right;position:absolute;bottom:57px;right:17px;font-size:calc(14px - 3px);font-size:calc(var(--call-us-font-size, 14px) - 3px);white-space:nowrap;max-width:80%}.root_25A4M .chat-container_1uPxK .typing_indicator_1yCCV .typing_indicator_name_3ayxJ{flex-grow:1;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.root_25A4M .chat-container_1uPxK .typing_indicator_1yCCV .typing_indicator_name_3ayxJ span{margin-right:3px}.root_25A4M .chat-disabled-container_16pGg{color:#646464;display:flex;flex:1 1 auto;flex-direction:row;align-items:center;padding:10px 10px 0 !important;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:1em}.root_25A4M .chat-footer_1I699{padding:0 10px !important;border-radius:0 0 15px 15px !important;border-top:0 !important;display:flex;flex-direction:column;min-height:65px;background:#ffffff}.root_25A4M .chat-footer_1I699.chat-disabled_yw9UQ{min-height:26px}.root_25A4M .chat-footer_1I699 .chat-message-input-form_13tKS{margin:0;display:flex;flex-direction:row}.root_25A4M .chat-footer_1I699 .chat-message-input-form_13tKS .chat-message-input_1q4F4{height:32px;outline:none;box-sizing:border-box}.root_25A4M .chat-footer_1I699 .chat-message-input-form_13tKS .chat-message-input_1q4F4:disabled{cursor:not-allowed}.root_25A4M .chat-footer_1I699 .chat-message-input-form_13tKS .send-trigger_3fwIt{cursor:pointer;height:100%;width:20px;height:20px;margin-top:10px;margin-left:10px}.root_25A4M .chat-footer_1I699 .chat-message-input-form_13tKS .send-trigger_3fwIt.send_enable_3I-1D{fill:#0596d4;fill:var(--call-us-main-button-background, #0596d4)}.root_25A4M .chat-footer_1I699 .chat-message-input-form_13tKS .send-trigger_3fwIt.send_disable_3IjRT{cursor:not-allowed;fill:#eeeeee}.root_25A4M .chat-footer_1I699 .banner_dEOj2{position:relative;height:25px;display:flex;flex-direction:row;align-items:center;margin-top:-2px}.root_25A4M .chat-footer_1I699 .banner_dEOj2 .chat-action-buttons_3JDQW{color:#0596d4;color:var(--call-us-main-button-background, #0596d4);display:flex;flex-direction:row}.root_25A4M .chat-footer_1I699 .banner_dEOj2 .chat-action-buttons_3JDQW .action-button_11z6a{margin-right:6px;cursor:pointer;width:16px;height:16px}.root_25A4M .chat-footer_1I699 .banner_dEOj2 .chat-action-buttons_3JDQW .action-button_11z6a svg{fill:#0596d4;fill:var(--call-us-main-button-background, #0596d4);vertical-align:top}.root_25A4M .chat-footer_1I699 .banner_dEOj2 .powered-by_5TP-I{float:right;text-decoration:none;font-family:sans-serif;font-size:calc(14px - 3px);font-size:calc(var(--call-us-font-size, 14px) - 3px);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;flex-grow:1;text-align:right}.root_25A4M .chat-footer_1I699 .banner_dEOj2 .powered-by_5TP-I a{color:#0596d4;color:var(--call-us-main-button-background, #0596d4)}\n",""]),r.locals={bar:"bar_1d-Mw",materialInput:"materialInput_fKTHD",materialPhone:"materialPhone_3-YId",materialTextarea:"materialTextarea_3yJnC","custom-scrollbar":"custom-scrollbar_2h8Ar",root:"root_25A4M","chat-container":"chat-container_1uPxK","video-container":"video-container_2aZGG",awayVideo:"awayVideo_15FVO",homeVideo:"homeVideo_2xijr",awayFullVideo:"awayFullVideo_2PGhF",homeFullVideo:"homeFullVideo_12ZC9",mirrorVideo:"mirrorVideo_2404u",typing_indicator:"typing_indicator_1yCCV",typing_indicator_name:"typing_indicator_name_3ayxJ","chat-disabled-container":"chat-disabled-container_16pGg","chat-footer":"chat-footer_1I699","chat-disabled":"chat-disabled_yw9UQ","chat-message-input-form":"chat-message-input-form_13tKS","chat-message-input":"chat-message-input_1q4F4","send-trigger":"send-trigger_3fwIt",send_enable:"send_enable_3I-1D",send_disable:"send_disable_3IjRT",banner:"banner_dEOj2","chat-action-buttons":"chat-action-buttons_3JDQW","action-button":"action-button_11z6a","powered-by":"powered-by_5TP-I"},e.exports=r},9924:(e,t,n)=>{var r=n(3645)((function(e){return e[1]}));r.push([e.id,'label.wplc_checkbox_1rKr_{display:inline-block;cursor:pointer;position:relative;padding-left:25px;margin:0px;color:#646464;font-size:calc(14px - 3px);font-size:calc(var(--call-us-font-size, 14px) - 3px)}label.wplc_checkbox_1rKr_:before{content:"";display:inline-block;width:14px;height:14px;margin-right:10px;position:absolute;left:0;top:0px;background-color:#ffffff;border:1px solid #373737;border:1px solid var(--call-us-form-header-background, #373737);border-radius:0px;margin-top:2px}input[type=checkbox].wplc_checkbox_1rKr_{position:absolute;width:5px;height:5px;margin:0;border:1px solid transparent;display:none}input[type=checkbox].wplc_checkbox_1rKr_:checked+label.wplc_checkbox_1rKr_:before{content:"\\25A0";font-size:13px;font-weight:bold;color:#000000;text-align:center;line-height:13px}\n',""]),r.locals={wplc_checkbox:"wplc_checkbox_1rKr_"},e.exports=r},9292:(e,t,n)=>{var r=n(3645)((function(e){return e[1]}));r.push([e.id,".materialSelectDiv_3FQZu{position:relative;margin-bottom:5px;margin-top:5px}.materialSelectDiv_3FQZu .materialSelect_WFhdw{-moz-appearance:none;appearance:none;-webkit-appearance:none}.materialSelectDiv_3FQZu:after{position:absolute;top:18px;right:0px;width:0;height:0;padding:0;content:'';border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #373737;border-top:6px solid var(--call-us-form-header-background, #373737);pointer-events:none}.materialSelectDiv_3FQZu .materialSelectLabel_1hwlr{position:absolute;pointer-events:none;color:#777;font-size:calc(14px - 1px);font-size:calc(var(--call-us-font-size, 14px) - 1px);font-palette:dark;font-weight:normal;top:10px;left:0px;transition:300ms ease all}.materialSelectDiv_3FQZu .materialSelect_WFhdw{position:relative;font-family:inherit;background-color:transparent;width:100%;padding:12px 0px 3px 0;font-size:calc(14px - 1px);font-size:calc(var(--call-us-font-size, 14px) - 1px);border-left:0;border-right:0;border-top:0;border-bottom:1px solid #373737;border-bottom:1px solid var(--call-us-form-header-background, #373737)}.materialSelectDiv_3FQZu .materialSelect_WFhdw:focus,.materialSelectDiv_3FQZu .materialSelect_WFhdw.valueSelected_2jA6_{outline:none}.materialSelectDiv_3FQZu .materialSelect_WFhdw:focus ~ .materialSelectLabel_1hwlr,.materialSelectDiv_3FQZu .materialSelect_WFhdw.valueSelected_2jA6_ ~ .materialSelectLabel_1hwlr{top:-7px;color:#373737;color:var(--call-us-form-header-background, #373737)}\n",""]),r.locals={materialSelectDiv:"materialSelectDiv_3FQZu",materialSelect:"materialSelect_WFhdw",materialSelectLabel:"materialSelectLabel_1hwlr",valueSelected:"valueSelected_2jA6_"},e.exports=r},5113:(e,t,n)=>{var r=n(3645)((function(e){return e[1]}));r.push([e.id,".bar_l6bc4{border:0;padding:0;position:relative;display:block;width:100%}.bar_l6bc4:before{content:'';height:2px;width:0;bottom:0;position:absolute;background:#373737;background:var(--call-us-form-header-background, #373737);transition:300ms ease all;left:0}.materialInput_1w7X5,.materialPhone_3jQkC,.materialTextarea_2r2vL{position:relative;flex-grow:1;margin-bottom:5px}.materialInput_1w7X5 label,.materialPhone_3jQkC label,.materialTextarea_2r2vL label{color:#373737;color:var(--call-us-form-header-background, #373737);font-size:calc(14px - 3px);font-size:calc(var(--call-us-font-size, 14px) - 3px);font-palette:dark;font-weight:normal;position:absolute;pointer-events:none;left:5px;top:10px;transition:300ms ease all}.materialInput_1w7X5 textarea,.materialPhone_3jQkC textarea,.materialTextarea_2r2vL textarea{overflow-x:hidden;resize:none}.materialInput_1w7X5 textarea:focus ~ label,.materialInput_1w7X5 textarea:valid ~ label,.materialPhone_3jQkC textarea:focus ~ label,.materialPhone_3jQkC textarea:valid ~ label,.materialTextarea_2r2vL textarea:focus ~ label,.materialTextarea_2r2vL textarea:valid ~ label{top:-30px;font-size:calc(14px - 1px);font-size:calc(var(--call-us-font-size, 14px) - 1px);color:#373737;color:var(--call-us-form-header-background, #373737)}.materialInput_1w7X5 input:focus ~ label,.materialInput_1w7X5 input:valid ~ label,.materialInput_1w7X5 input:disabled ~ label,.materialPhone_3jQkC input:focus ~ label,.materialPhone_3jQkC input:valid ~ label,.materialPhone_3jQkC input:disabled ~ label,.materialTextarea_2r2vL input:focus ~ label,.materialTextarea_2r2vL input:valid ~ label,.materialTextarea_2r2vL input:disabled ~ label{top:-4px;font-size:calc(14px - 1px);font-size:calc(var(--call-us-font-size, 14px) - 1px);color:#373737;color:var(--call-us-form-header-background, #373737)}.materialInput_1w7X5 input,.materialInput_1w7X5 textarea,.materialPhone_3jQkC input,.materialPhone_3jQkC textarea,.materialTextarea_2r2vL input,.materialTextarea_2r2vL textarea{background:none;color:black;font-size:calc(14px - 1px);font-size:calc(var(--call-us-font-size, 14px) - 1px);font-family:inherit;padding:10px 0 4px 0;display:block;width:100%;border:none;border-radius:0;border-bottom:1px solid #373737;border-bottom:1px solid var(--call-us-form-header-background, #373737)}.materialInput_1w7X5 input:focus,.materialInput_1w7X5 textarea:focus,.materialPhone_3jQkC input:focus,.materialPhone_3jQkC textarea:focus,.materialTextarea_2r2vL input:focus,.materialTextarea_2r2vL textarea:focus{outline:none}.materialInput_1w7X5 input:focus ~ .bar_l6bc4:before,.materialInput_1w7X5 textarea:focus ~ .bar_l6bc4:before,.materialPhone_3jQkC input:focus ~ .bar_l6bc4:before,.materialPhone_3jQkC textarea:focus ~ .bar_l6bc4:before,.materialTextarea_2r2vL input:focus ~ .bar_l6bc4:before,.materialTextarea_2r2vL textarea:focus ~ .bar_l6bc4:before{width:100%}\n",""]),r.locals={bar:"bar_l6bc4",materialInput:"materialInput_1w7X5",materialPhone:"materialPhone_3jQkC",materialTextarea:"materialTextarea_2r2vL"},e.exports=r},5056:(e,t,n)=>{var r=n(3645)((function(e){return e[1]}));r.push([e.id,"@keyframes fadeIn_1tEi9{from{opacity:0}to{opacity:1}}@-webkit-keyframes fadeIn_1tEi9{from{transform:translate3d(0, 40px, 0)}to{transform:translate3d(0, 0, 0);opacity:1}}.fadeIn_1tEi9{animation-duration:1s;animation-fill-mode:both;-webkit-animation-duration:1s;-webkit-animation-fill-mode:both;animation-name:fadeIn_1tEi9;-webkit-animation-delay:0.5s;animation-delay:0.5s;-webkit-animation-name:fadeIn_1tEi9}.slideLeft_VfP_D{-webkit-animation:slideLeft_VfP_D 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;animation:slideLeft_VfP_D 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both}@-webkit-keyframes slideLeft_VfP_D{0%{transform:translateX(130%)}100%{transform:translateX(0px)}}@keyframes slideLeft_VfP_D{0%{transform:translateX(130%)}100%{transform:translateX(0px)}}.slideRight_2KZYF{-webkit-animation:slideRight_2KZYF 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;animation:slideRight_2KZYF 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both}@-webkit-keyframes slideRight_2KZYF{0%{transform:translateX(-130%)}100%{transform:translateX(0px)}}@keyframes slideRight_2KZYF{0%{transform:translateX(-130%)}100%{transform:translateX(0px)}}.slideUp_1cFOK{-webkit-animation:slideUp_1cFOK 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;animation:slideUp_1cFOK 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both}@-webkit-keyframes slideUp_1cFOK{0%{transform:translateY(130%)}100%{transform:translateY(0px)}}@keyframes slideUp_1cFOK{0%{transform:translateY(130%)}100%{transform:translateY(0px)}}.nudge_4ZHi0{-webkit-animation:nudge_4ZHi0 1s ease-in;animation:nudge_4ZHi0 1s ease-in}@-webkit-keyframes nudge_4ZHi0{0%{opacity:0}100%{opacity:1}}@keyframes nudge_4ZHi0{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes fly-in_26Kd1{0%{transform:scale(0.85) translateY(10%);opacity:0}100%{transform:scale(1) translateY(0);opacity:1}}@keyframes fly-in_26Kd1{0%{transform:scale(0.85) translateY(10%);opacity:0}100%{transform:scale(1) translateY(0);opacity:1}}.fly-in_26Kd1{transition:all 0.5s;-webkit-animation-duration:0.3s;animation-duration:0.3s;-webkit-animation-name:fly-in_26Kd1;animation-name:fly-in_26Kd1}@-webkit-keyframes show-with-delay_2QUxq{0%{opacity:0}100%{opacity:1}}@keyframes show-with-delay_2QUxq{0%{opacity:0}100%{opacity:1}}.show-with-delay_2QUxq{-webkit-animation-name:show-with-delay_2QUxq;animation-name:show-with-delay_2QUxq;-webkit-animation-duration:0s;animation-duration:0s;-webkit-animation-delay:3s;animation-delay:3s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.root_oBaEp{background:#ffffff;width:250px;width:var(--call-us-form-width, 250px);font-size:14px;font-size:var(--call-us-font-size, 14px);padding:10px;border-radius:6px;cursor:pointer;min-height:60px;margin-bottom:15px;box-shadow:0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);display:flex;flex-direction:row}.root_oBaEp .operator-img-container_2wsLP{display:flex;flex-direction:column;justify-content:center;width:30px;margin-right:10px}.root_oBaEp .operator-img-container_2wsLP .operator-img_QjIbG{height:30px;width:30px}.root_oBaEp .operator-img-container_2wsLP .operator-img_QjIbG.rounded-circle_1AVjU{border-radius:50%}.root_oBaEp .operator-img-container_2wsLP svg path:first-of-type{fill:#0596d4;fill:var(--call-us-main-button-background, #0596d4)}.root_oBaEp .greeting-content_3O1uh{display:flex;flex-direction:column;justify-content:center;flex-grow:1;white-space:pre-wrap}.root_oBaEp .greeting-content_3O1uh .greeting-message_LgRF_{color:#646464}.root_oBaEp .greeting-action-container_1q2FE{display:flex;flex-direction:column;justify-content:flex-start;margin-left:5px}.root_oBaEp .greeting-action-container_1q2FE .action-btn_3rCCF.close-btn_2gkoA{width:20px;height:20px;line-height:20px;text-align:right}.root_oBaEp .greeting-action-container_1q2FE .action-btn_3rCCF:hover:active svg{transition:.2s;transform:scale(0.9)}.root_oBaEp .greeting-action-container_1q2FE .action-btn_3rCCF:hover svg{transition:.2s;transform:scale(1.1)}.root_oBaEp .greeting-action-container_1q2FE .action-btn_3rCCF svg{fill:#373737;fill:var(--call-us-form-header-background, #373737);width:10px;height:18px}\n",""]),r.locals={fadeIn:"fadeIn_1tEi9",slideLeft:"slideLeft_VfP_D",slideRight:"slideRight_2KZYF",slideUp:"slideUp_1cFOK",nudge:"nudge_4ZHi0","fly-in":"fly-in_26Kd1","show-with-delay":"show-with-delay_2QUxq",root:"root_oBaEp","operator-img-container":"operator-img-container_2wsLP","operator-img":"operator-img_QjIbG","rounded-circle":"rounded-circle_1AVjU","greeting-content":"greeting-content_3O1uh","greeting-message":"greeting-message_LgRF_","greeting-action-container":"greeting-action-container_1q2FE","action-btn":"action-btn_3rCCF","close-btn":"close-btn_2gkoA"},e.exports=r},2493:(e,t,n)=>{var r=n(3645)((function(e){return e[1]}));r.push([e.id,".loading_tpBA7{position:absolute;left:0;right:0;top:0;bottom:0;background:rgba(255,255,255,0.7);display:flex;justify-content:center;align-items:center;z-index:99999}.loading_tpBA7 .loader_12kaN,.loading_tpBA7 .loader_12kaN:before,.loading_tpBA7 .loader_12kaN:after{border-radius:50%;width:2.5em;height:2.5em;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation:loading_tpBA7 1.8s infinite ease-in-out;animation:loading_tpBA7 1.8s infinite ease-in-out}.loading_tpBA7 .loader_12kaN{color:#373737;color:var(--call-us-form-header-background, #373737);font-size:6px;position:relative;text-indent:-9999em;transform:translateZ(0);-webkit-animation-delay:-0.16s;animation-delay:-0.16s}.loading_tpBA7 .loader_12kaN:before,.loading_tpBA7 .loader_12kaN:after{content:'';position:absolute;top:0}.loading_tpBA7 .loader_12kaN:before{left:-3.5em;-webkit-animation-delay:-0.32s;animation-delay:-0.32s}.loading_tpBA7 .loader_12kaN:after{left:3.5em}@-webkit-keyframes loading_tpBA7{0%,80%,100%{box-shadow:0 2.5em 0 -1.3em}40%{box-shadow:0 2.5em 0 0}}@keyframes loading_tpBA7{0%,80%,100%{box-shadow:0 2.5em 0 -1.3em}40%{box-shadow:0 2.5em 0 0}}\n",""]),r.locals={loading:"loading_tpBA7",loader:"loader_12kaN"},e.exports=r},857:(e,t,n)=>{var r=n(3645)((function(e){return e[1]}));r.push([e.id,".phone-toolbar_2WXUs{padding-left:10px;padding-right:10px;background:white;background:var(--call-us-dialer-background, white);border-bottom:thin solid darkgray;border-bottom:thin solid var(--call-us-border-color, darkgray);box-shadow:0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);flex-grow:1}.phone-toolbar_2WXUs .call-us-toolbar{display:flex;flex-direction:row;justify-content:center}.phone-toolbar_2WXUs .call-us-toolbar button{width:31px;height:31px;background-color:rgba(0,0,0,0);border-radius:50%}.root_3RA8K{font-size:14px;font-size:var(--call-us-font-size, 14px)}.chat_OZEZc{overflow-y:hidden;transition:height 0.2s ease-in-out}\n",""]),r.locals={"phone-toolbar":"phone-toolbar_2WXUs",root:"root_3RA8K",chat:"chat_OZEZc"},e.exports=r},7249:(e,t,n)=>{var r=n(3645)((function(e){return e[1]}));r.push([e.id,"@keyframes fadeIn_2EpdH{from{opacity:0}to{opacity:1}}@-webkit-keyframes fadeIn_2EpdH{from{transform:translate3d(0, 40px, 0)}to{transform:translate3d(0, 0, 0);opacity:1}}.fadeIn_2EpdH{animation-duration:1s;animation-fill-mode:both;-webkit-animation-duration:1s;-webkit-animation-fill-mode:both;animation-name:fadeIn_2EpdH;-webkit-animation-delay:0.5s;animation-delay:0.5s;-webkit-animation-name:fadeIn_2EpdH}.slideLeft_1pLdk{-webkit-animation:slideLeft_1pLdk 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;animation:slideLeft_1pLdk 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both}@-webkit-keyframes slideLeft_1pLdk{0%{transform:translateX(130%)}100%{transform:translateX(0px)}}@keyframes slideLeft_1pLdk{0%{transform:translateX(130%)}100%{transform:translateX(0px)}}.slideRight_1qQdw{-webkit-animation:slideRight_1qQdw 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;animation:slideRight_1qQdw 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both}@-webkit-keyframes slideRight_1qQdw{0%{transform:translateX(-130%)}100%{transform:translateX(0px)}}@keyframes slideRight_1qQdw{0%{transform:translateX(-130%)}100%{transform:translateX(0px)}}.slideUp_3909F{-webkit-animation:slideUp_3909F 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;animation:slideUp_3909F 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both}@-webkit-keyframes slideUp_3909F{0%{transform:translateY(130%)}100%{transform:translateY(0px)}}@keyframes slideUp_3909F{0%{transform:translateY(130%)}100%{transform:translateY(0px)}}.nudge_1Idi4{-webkit-animation:nudge_1Idi4 1s ease-in;animation:nudge_1Idi4 1s ease-in}@-webkit-keyframes nudge_1Idi4{0%{opacity:0}100%{opacity:1}}@keyframes nudge_1Idi4{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes fly-in_2qv31{0%{transform:scale(0.85) translateY(10%);opacity:0}100%{transform:scale(1) translateY(0);opacity:1}}@keyframes fly-in_2qv31{0%{transform:scale(0.85) translateY(10%);opacity:0}100%{transform:scale(1) translateY(0);opacity:1}}.fly-in_2qv31{transition:all 0.5s;-webkit-animation-duration:0.3s;animation-duration:0.3s;-webkit-animation-name:fly-in_2qv31;animation-name:fly-in_2qv31}@-webkit-keyframes show-with-delay_1nR9_{0%{opacity:0}100%{opacity:1}}@keyframes show-with-delay_1nR9_{0%{opacity:0}100%{opacity:1}}.show-with-delay_1nR9_{-webkit-animation-name:show-with-delay_1nR9_;animation-name:show-with-delay_1nR9_;-webkit-animation-duration:0s;animation-duration:0s;-webkit-animation-delay:3s;animation-delay:3s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.bubble_Shtpk{border-radius:50%;width:60px;width:var(--call-us-main-button-width, 60px);height:60px;height:var(--call-us-main-button-width, 60px)}.bubble_Shtpk svg{padding:10px}.bubble_Shtpk .chevron_down_icon_ov-eP{width:60%}.minimized-button_3cubb{box-shadow:0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);margin:0;background-color:#373737;background-color:var(--call-us-form-header-background, #373737)}.minimized-button_3cubb .minimize-image_1xUer{transition:transform 0.2s ease-in-out}.minimized-button_3cubb img.minimize-image_1xUer{width:30px;height:30px}.minimized-button_3cubb .notification-indicator_2M7Z6{position:absolute;height:13px;width:13px;background-color:#e44f4b;border-radius:50%;top:2px;right:2px;border:1px solid white}.minimized-button_3cubb svg{fill:white;fill:var(--call-us-header-text-color, white)}.minimized-button_3cubb svg rect{fill:#373737;fill:var(--call-us-form-header-background, #373737)}\n",""]),r.locals={fadeIn:"fadeIn_2EpdH",slideLeft:"slideLeft_1pLdk",slideRight:"slideRight_1qQdw",slideUp:"slideUp_3909F",nudge:"nudge_1Idi4","fly-in":"fly-in_2qv31","show-with-delay":"show-with-delay_1nR9_",bubble:"bubble_Shtpk",chevron_down_icon:"chevron_down_icon_ov-eP","minimized-button":"minimized-button_3cubb","minimize-image":"minimize-image_1xUer","notification-indicator":"notification-indicator_2M7Z6"},e.exports=r},8830:(e,t,n)=>{var r=n(3645)((function(e){return e[1]}));r.push([e.id,".google-button_tWROS button,.root_1o5pl button{width:100%;color:#444444;background:#0596d4;background:var(--call-us-main-button-background, #0596d4);border:1px #0596d4 solid;border:1px var(--call-us-main-button-background, #0596d4) solid;padding:5px 10px;font-size:14px;font-size:var(--call-us-font-size, 14px);outline:none;cursor:pointer}.google-button_tWROS button.submit_6fz9T,.root_1o5pl button.submit_6fz9T{align-self:flex-end;background:#0596d4;background:var(--call-us-main-button-background, #0596d4);width:100%;height:35px;color:white;font-size:14px;font-size:var(--call-us-font-size, 14px)}.root_1o5pl{border-radius:6px;bottom:0;left:0;position:absolute;right:0;top:0;align-items:center;justify-content:center;overflow:hidden;z-index:1;display:flex}.root_1o5pl .content_3By8g{color:black;font-size:14px;font-size:var(--call-us-font-size, 14px);border-radius:6px;display:flex;flex-direction:column;align-items:center;position:relative;background:white;width:80%}.root_1o5pl .content_3By8g .content-message_18k35{display:flex;flex-direction:column;width:100%;flex-grow:1;padding:10px}.root_1o5pl .content_3By8g button{font-size:14px;font-size:var(--call-us-font-size, 14px);border-bottom-left-radius:6px;border-bottom-right-radius:6px}.root_1o5pl .background_31-cR{z-index:-1;bottom:0;left:0;position:absolute;right:0;top:0;background:black;opacity:0.5}\n",""]),r.locals={"google-button":"google-button_tWROS",root:"root_1o5pl",submit:"submit_6fz9T",content:"content_3By8g","content-message":"content-message_18k35",background:"background_31-cR"},e.exports=r},7629:(e,t,n)=>{var r=n(3645)((function(e){return e[1]}));r.push([e.id,".custom-scrollbar_2jBqw::-webkit-scrollbar,.panel_58Arh .panel_content_3rRWM .panel_body_1ntU1::-webkit-scrollbar{width:4px}.custom-scrollbar_2jBqw::-webkit-scrollbar-track,.panel_58Arh .panel_content_3rRWM .panel_body_1ntU1::-webkit-scrollbar-track{background:#f1f1f1}.custom-scrollbar_2jBqw::-webkit-scrollbar-thumb,.panel_58Arh .panel_content_3rRWM .panel_body_1ntU1::-webkit-scrollbar-thumb{background:#888}.custom-scrollbar_2jBqw::-webkit-scrollbar-thumb:hover,.panel_58Arh .panel_content_3rRWM .panel_body_1ntU1::-webkit-scrollbar-thumb:hover{background:#555}@keyframes fadeIn_zDB1o{from{opacity:0}to{opacity:1}}@-webkit-keyframes fadeIn_zDB1o{from{transform:translate3d(0, 40px, 0)}to{transform:translate3d(0, 0, 0);opacity:1}}.fadeIn_zDB1o{animation-duration:1s;animation-fill-mode:both;-webkit-animation-duration:1s;-webkit-animation-fill-mode:both;animation-name:fadeIn_zDB1o;-webkit-animation-delay:0.5s;animation-delay:0.5s;-webkit-animation-name:fadeIn_zDB1o}.slideLeft_3ONI0{-webkit-animation:slideLeft_3ONI0 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;animation:slideLeft_3ONI0 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both}@-webkit-keyframes slideLeft_3ONI0{0%{transform:translateX(130%)}100%{transform:translateX(0px)}}@keyframes slideLeft_3ONI0{0%{transform:translateX(130%)}100%{transform:translateX(0px)}}.slideRight_1OA2g{-webkit-animation:slideRight_1OA2g 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;animation:slideRight_1OA2g 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both}@-webkit-keyframes slideRight_1OA2g{0%{transform:translateX(-130%)}100%{transform:translateX(0px)}}@keyframes slideRight_1OA2g{0%{transform:translateX(-130%)}100%{transform:translateX(0px)}}.slideUp_3jmBz{-webkit-animation:slideUp_3jmBz 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;animation:slideUp_3jmBz 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both}@-webkit-keyframes slideUp_3jmBz{0%{transform:translateY(130%)}100%{transform:translateY(0px)}}@keyframes slideUp_3jmBz{0%{transform:translateY(130%)}100%{transform:translateY(0px)}}.nudge_3kKjY{-webkit-animation:nudge_3kKjY 1s ease-in;animation:nudge_3kKjY 1s ease-in}@-webkit-keyframes nudge_3kKjY{0%{opacity:0}100%{opacity:1}}@keyframes nudge_3kKjY{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes fly-in_1O-w7{0%{transform:scale(0.85) translateY(10%);opacity:0}100%{transform:scale(1) translateY(0);opacity:1}}@keyframes fly-in_1O-w7{0%{transform:scale(0.85) translateY(10%);opacity:0}100%{transform:scale(1) translateY(0);opacity:1}}.fly-in_1O-w7{transition:all 0.5s;-webkit-animation-duration:0.3s;animation-duration:0.3s;-webkit-animation-name:fly-in_1O-w7;animation-name:fly-in_1O-w7}@-webkit-keyframes show-with-delay_XExWz{0%{opacity:0}100%{opacity:1}}@keyframes show-with-delay_XExWz{0%{opacity:0}100%{opacity:1}}.show-with-delay_XExWz{-webkit-animation-name:show-with-delay_XExWz;animation-name:show-with-delay_XExWz;-webkit-animation-duration:0s;animation-duration:0s;-webkit-animation-delay:3s;animation-delay:3s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.panel_58Arh{display:flex;flex-direction:column;position:relative;flex-grow:1;max-height:100vh}.panel_58Arh.full-screen_2uxB5{height:calc(1vh * 100) !important;height:calc(var(--vh, 1vh) * 100) !important;width:calc(1vw * 100) !important;width:calc(var(--vw, 1vw) * 100) !important;border-radius:0}.panel_58Arh.popout-small_25FNm{width:calc(var(--call-us-form-width) / 2);margin-left:calc(var(--call-us-form-width) / 4)}.panel_58Arh .minimized__zvY6{display:none}.panel_58Arh .panel_content_3rRWM{height:100%;display:flex;flex-direction:column;width:250px;width:var(--call-us-form-width, 250px);box-shadow:0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);border-radius:6px}.panel_58Arh .panel_content_3rRWM.video_extend_3pwOM{max-height:100vh !important;height:calc(585px + 180px) !important;height:calc(var(--call-us-form-height, 585px) + 180px) !important}.panel_58Arh .panel_content_3rRWM .panel_head_13BIJ{background:#373737;background:var(--call-us-form-header-background, #373737);color:#FFF;height:40px;display:flex;flex-direction:row;align-items:center;border-top-right-radius:inherit;border-top-left-radius:inherit;padding:0 10px}.panel_58Arh .panel_content_3rRWM .panel_head_13BIJ .panel_head_title_2cRNM{flex-grow:1;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:14px;font-size:var(--call-us-font-size, 14px);line-height:1.5em;margin:0}.panel_58Arh .panel_content_3rRWM .panel_head_13BIJ .logo-icon_O3xoq{height:17px;padding-right:5px;fill:white}.panel_58Arh .panel_content_3rRWM .panel_head_13BIJ .action_menu_1eTa6{display:flex;flex-direction:row;height:100%;align-items:center;margin-left:5px}.panel_58Arh .panel_content_3rRWM .panel_head_13BIJ .action_menu_1eTa6.full-screen-menu_30ILF{margin-left:15px}.panel_58Arh .panel_content_3rRWM .panel_head_13BIJ .action_menu_1eTa6.full-screen-menu_30ILF .action_menu_btn_3vHql{margin-left:20px}.panel_58Arh .panel_content_3rRWM .panel_head_13BIJ .action_menu_1eTa6 .action_menu_btn_3vHql{cursor:pointer;margin-left:5px}.panel_58Arh .panel_content_3rRWM .panel_head_13BIJ .action_menu_1eTa6 .action_menu_btn_3vHql.close_btn_2j2Zx{width:10px;height:14px;line-height:14px}.panel_58Arh .panel_content_3rRWM .panel_head_13BIJ .action_menu_1eTa6 .action_menu_btn_3vHql.minimize_btn_24spZ{width:13px;line-height:13px;height:13px}.panel_58Arh .panel_content_3rRWM .panel_head_13BIJ .action_menu_1eTa6 .action_menu_btn_3vHql svg{fill:white;fill:var(--call-us-header-text-color, white)}.panel_58Arh .panel_content_3rRWM .panel_body_1ntU1{position:relative;font-size:14px;font-size:var(--call-us-font-size, 14px);flex:1;overflow-y:auto;color:black;background:#FFFFFF;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit;display:flex;flex-direction:column}.panel_58Arh .panel_content_3rRWM.full-screen_2uxB5{height:calc(1vh * 100) !important;height:calc(var(--vh, 1vh) * 100) !important;width:calc(1vw * 100) !important;width:calc(var(--vw, 1vw) * 100) !important}.panel_58Arh .panel_content_3rRWM.chat-form-height_1XaYN{min-height:300px;max-height:330px;max-height:var(--call-us-form-height, 330px);height:330px;height:var(--call-us-form-height, 330px)}.panel_58Arh .panel_content_3rRWM.small-form-height_3rsdO{min-height:187px;min-height:var(--call-us-small-form-height, 187px)}.panel_58Arh .bubble_button_3T7di{display:flex;flex-direction:column}.panel_58Arh .bubble_button_3T7di.chat_expanded_1icG_{margin-top:15px}.panel_58Arh .bubble_button_3T7di.bubble_left_2_5xu{align-items:flex-start}.panel_58Arh .bubble_button_3T7di.bubble_right_2aOox{align-items:flex-end}.panel_58Arh svg rect{fill:#373737;fill:var(--call-us-form-header-background, #373737)}\n",""]),r.locals={"custom-scrollbar":"custom-scrollbar_2jBqw",panel:"panel_58Arh",panel_content:"panel_content_3rRWM",panel_body:"panel_body_1ntU1",fadeIn:"fadeIn_zDB1o",slideLeft:"slideLeft_3ONI0",slideRight:"slideRight_1OA2g",slideUp:"slideUp_3jmBz",nudge:"nudge_3kKjY","fly-in":"fly-in_1O-w7","show-with-delay":"show-with-delay_XExWz","full-screen":"full-screen_2uxB5","popout-small":"popout-small_25FNm",minimized:"minimized__zvY6",video_extend:"video_extend_3pwOM",panel_head:"panel_head_13BIJ",panel_head_title:"panel_head_title_2cRNM","logo-icon":"logo-icon_O3xoq",action_menu:"action_menu_1eTa6","full-screen-menu":"full-screen-menu_30ILF",action_menu_btn:"action_menu_btn_3vHql",close_btn:"close_btn_2j2Zx",minimize_btn:"minimize_btn_24spZ","chat-form-height":"chat-form-height_1XaYN","small-form-height":"small-form-height_3rsdO",bubble_button:"bubble_button_3T7di",chat_expanded:"chat_expanded_1icG_",bubble_left:"bubble_left_2_5xu",bubble_right:"bubble_right_2aOox"},e.exports=r},7438:(e,t,n)=>{var r=n(3645)((function(e){return e[1]}));r.push([e.id,".root_2MzH8{height:100%;flex-grow:1;min-width:0}.root_2MzH8 .phone-controls-mode_2DKe2{display:flex;flex-direction:row;align-items:center;height:100%;flex-grow:1;min-width:0}.root_2MzH8 .phone-controls-mode_2DKe2 .operator-info_2M-tD{display:flex;flex-direction:row;height:100%;align-items:center;min-width:0}.root_2MzH8 .phone-controls-mode_2DKe2 .operator-info_2M-tD .operator-img-container_1GaFK{position:relative;height:30px;width:30px}.root_2MzH8 .phone-controls-mode_2DKe2 .operator-info_2M-tD .operator-img-container_1GaFK .operator-img_38nJK{height:30px;width:30px}.root_2MzH8 .phone-controls-mode_2DKe2 .operator-info_2M-tD .operator-img-container_1GaFK .operator-img_38nJK.rounded-circle_4GBI_{border-radius:50%}.root_2MzH8 .phone-controls-mode_2DKe2 .operator-info_2M-tD .operator-img-container_1GaFK .online-icon_1WxH6{position:absolute;height:7px;width:7px;background-color:#4cd137;border-radius:50%;bottom:0em;right:0em;border:1px solid white}.root_2MzH8 .phone-controls-mode_2DKe2 .operator-info_2M-tD .operator-img-container_1GaFK .offline-icon_2Be2J{background-color:#c23616 !important}.root_2MzH8 .phone-controls-mode_2DKe2 .operator-info_2M-tD .operator-img-container_1GaFK svg path:first-of-type{fill:#0596d4;fill:var(--call-us-main-button-background, #0596d4)}.root_2MzH8 .phone-controls-mode_2DKe2 .operator-info_2M-tD .operator_name_3WLr-{margin-left:5px;font-size:14px;font-size:var(--call-us-font-size, 14px);color:white;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.root_2MzH8 .phone-controls-mode_2DKe2 .operator-info_2M-tD .operator_name_3WLr-.popout_3aaSn{max-width:400px}.root_2MzH8 .phone-controls-mode_2DKe2 .call-controls_2x7VS{display:flex;flex-direction:row;align-items:center;height:100%;margin-left:5px;min-width:80px}.root_2MzH8 .phone-controls-mode_2DKe2 .call-controls_2x7VS.full-screen-controls_1GJOF{margin-left:15px;min-width:105px}.root_2MzH8 .phone-controls-mode_2DKe2 .call-controls_2x7VS.full-screen-controls_1GJOF .toolbar-button_1u4U1{margin-right:15px}.root_2MzH8 .phone-controls-mode_2DKe2 .call-controls_2x7VS .toolbar-button_1u4U1{fill:#ffffff;background:transparent;width:20px;height:20px;margin-right:5px}.root_2MzH8 .phone-controls-mode_2DKe2 .call-controls_2x7VS .toolbar-button_1u4U1.button-end-call_2I0Xw{border-radius:50%;background:red}.root_2MzH8 .phone-controls-mode_2DKe2 .call-controls_2x7VS .toolbar-button_1u4U1.button-end-call_2I0Xw svg{transform:rotate(135deg)}.root_2MzH8 .phone-controls-mode_2DKe2 .space-expander_3utoz{flex-grow:1}.root_2MzH8 .single-button-mode_1UQHX .single-button_1G21L{box-shadow:0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);margin:0;background-color:#373737;background-color:var(--call-us-form-header-background, #373737)}.root_2MzH8 .single-button-mode_1UQHX .single-button_1G21L svg{fill:white;fill:var(--call-us-header-text-color, white)}.root_2MzH8 .single-button-mode_1UQHX .single-button_1G21L svg rect{fill:#373737;fill:var(--call-us-form-header-background, #373737)}.root_2MzH8 .single-button-mode_1UQHX .bubble_2HXOR{border-radius:50%;width:60px;width:var(--call-us-main-button-width, 60px);height:60px;height:var(--call-us-main-button-width, 60px)}.root_2MzH8 .single-button-mode_1UQHX .bubble_2HXOR svg{padding:10px}.root_2MzH8 .single-button-mode_1UQHX .button-end-call_2I0Xw svg{transform:rotate(135deg)}\n",""]),r.locals={root:"root_2MzH8","phone-controls-mode":"phone-controls-mode_2DKe2","operator-info":"operator-info_2M-tD","operator-img-container":"operator-img-container_1GaFK","operator-img":"operator-img_38nJK","rounded-circle":"rounded-circle_4GBI_","online-icon":"online-icon_1WxH6","offline-icon":"offline-icon_2Be2J",operator_name:"operator_name_3WLr-",popout:"popout_3aaSn","call-controls":"call-controls_2x7VS","full-screen-controls":"full-screen-controls_1GJOF","toolbar-button":"toolbar-button_1u4U1","button-end-call":"button-end-call_2I0Xw","space-expander":"space-expander_3utoz","single-button-mode":"single-button-mode_1UQHX","single-button":"single-button_1G21L",bubble:"bubble_2HXOR"},e.exports=r},8690:(e,t,n)=>{var r=n(3645)((function(e){return e[1]}));r.push([e.id,".button_3Kb46{position:relative;cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center;border:0}.button_3Kb46 svg{width:80%}.button_3Kb46:focus{outline:none}.button_3Kb46:active:enabled{transform:scale(0.95);transition:none}.button_3Kb46 .bubble_2EBFx{border-radius:50%}.button_3Kb46:disabled{transition:opacity 0.1s ease-in-out;opacity:0.3;cursor:not-allowed}\n",""]),r.locals={button:"button_3Kb46",bubble:"bubble_2EBFx"},e.exports=r},9926:(e,t,n)=>{var r=n(3645)((function(e){return e[1]}));r.push([e.id,"\n.msg_content_37X1-{\n white-space: pre-wrap;\n}\n.msg_content_37X1- a{\n color: inherit;\n}\n",""]),r.locals={msg_content:"msg_content_37X1-"},e.exports=r},7027:(e,t,n)=>{var r=n(3645)((function(e){return e[1]}));r.push([e.id,"*{box-sizing:border-box}\n",""]),e.exports=r},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var s=0;s<this.length;s++){var o=this[s][0];null!=o&&(i[o]=!0)}for(var a=0;a<e.length;a++){var c=[].concat(e[a]);r&&i[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},7484:function(e){e.exports=function(){"use strict";var e="millisecond",t="second",n="minute",r="hour",i="day",s="week",o="month",a="quarter",c="year",l="date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d+)?$/,u=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},h=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},p={s:h,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+h(r,2,"0")+":"+h(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,o),s=n-i<0,a=t.clone().add(r+(s?-1:1),o);return+(-(r+(n-i)/(s?i-a:a-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(f){return{M:o,y:c,w:s,d:i,D:l,h:r,m:n,s:t,ms:e,Q:a}[f]||String(f||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},m="en",g={};g[m]=d;var v=function(e){return e instanceof A},b=function(e,t,n){var r;if(!e)return m;if("string"==typeof e)g[e]&&(r=e),t&&(g[e]=t,r=e);else{var i=e.name;g[i]=e,r=i}return!n&&r&&(m=r),r||!n&&m},y=function(e,t){if(v(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new A(n)},_=p;_.l=b,_.i=v,_.w=function(e,t){return y(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var A=function(){function d(e){this.$L=b(e.locale,null,!0),this.parse(e)}var h=d.prototype;return h.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(_.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(f);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},h.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},h.$utils=function(){return _},h.isValid=function(){return!("Invalid Date"===this.$d.toString())},h.isSame=function(e,t){var n=y(e);return this.startOf(t)<=n&&n<=this.endOf(t)},h.isAfter=function(e,t){return y(e)<this.startOf(t)},h.isBefore=function(e,t){return this.endOf(t)<y(e)},h.$g=function(e,t,n){return _.u(e)?this[t]:this.set(n,e)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(e,a){var f=this,u=!!_.u(a)||a,d=_.p(e),h=function(e,t){var n=_.w(f.$u?Date.UTC(f.$y,t,e):new Date(f.$y,t,e),f);return u?n:n.endOf(i)},p=function(e,t){return _.w(f.toDate()[e].apply(f.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),f)},m=this.$W,g=this.$M,v=this.$D,b="set"+(this.$u?"UTC":"");switch(d){case c:return u?h(1,0):h(31,11);case o:return u?h(1,g):h(0,g+1);case s:var y=this.$locale().weekStart||0,A=(m<y?m+7:m)-y;return h(u?v-A:v+(6-A),g);case i:case l:return p(b+"Hours",0);case r:return p(b+"Minutes",1);case n:return p(b+"Seconds",2);case t:return p(b+"Milliseconds",3);default:return this.clone()}},h.endOf=function(e){return this.startOf(e,!1)},h.$set=function(s,a){var f,u=_.p(s),d="set"+(this.$u?"UTC":""),h=(f={},f[i]=d+"Date",f[l]=d+"Date",f[o]=d+"Month",f[c]=d+"FullYear",f[r]=d+"Hours",f[n]=d+"Minutes",f[t]=d+"Seconds",f[e]=d+"Milliseconds",f)[u],p=u===i?this.$D+(a-this.$W):a;if(u===o||u===c){var m=this.clone().set(l,1);m.$d[h](p),m.init(),this.$d=m.set(l,Math.min(this.$D,m.daysInMonth())).$d}else h&&this.$d[h](p);return this.init(),this},h.set=function(e,t){return this.clone().$set(e,t)},h.get=function(e){return this[_.p(e)]()},h.add=function(e,a){var l,f=this;e=Number(e);var u=_.p(a),d=function(t){var n=y(f);return _.w(n.date(n.date()+Math.round(t*e)),f)};if(u===o)return this.set(o,this.$M+e);if(u===c)return this.set(c,this.$y+e);if(u===i)return d(1);if(u===s)return d(7);var h=(l={},l[n]=6e4,l[r]=36e5,l[t]=1e3,l)[u]||1,p=this.$d.getTime()+e*h;return _.w(p,this)},h.subtract=function(e,t){return this.add(-1*e,t)},h.format=function(e){var t=this;if(!this.isValid())return"Invalid Date";var n=e||"YYYY-MM-DDTHH:mm:ssZ",r=_.z(this),i=this.$locale(),s=this.$H,o=this.$m,a=this.$M,c=i.weekdays,l=i.months,f=function(e,r,i,s){return e&&(e[r]||e(t,n))||i[r].substr(0,s)},d=function(e){return _.s(s%12||12,e,"0")},h=i.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:_.s(a+1,2,"0"),MMM:f(i.monthsShort,a,l,3),MMMM:f(l,a),D:this.$D,DD:_.s(this.$D,2,"0"),d:String(this.$W),dd:f(i.weekdaysMin,this.$W,c,2),ddd:f(i.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(s),HH:_.s(s,2,"0"),h:d(1),hh:d(2),a:h(s,o,!0),A:h(s,o,!1),m:String(o),mm:_.s(o,2,"0"),s:String(this.$s),ss:_.s(this.$s,2,"0"),SSS:_.s(this.$ms,3,"0"),Z:r};return n.replace(u,(function(e,t){return t||p[e]||r.replace(":","")}))},h.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},h.diff=function(e,l,f){var u,d=_.p(l),h=y(e),p=6e4*(h.utcOffset()-this.utcOffset()),m=this-h,g=_.m(this,h);return g=(u={},u[c]=g/12,u[o]=g,u[a]=g/3,u[s]=(m-p)/6048e5,u[i]=(m-p)/864e5,u[r]=m/36e5,u[n]=m/6e4,u[t]=m/1e3,u)[d]||m,f?g:_.a(g)},h.daysInMonth=function(){return this.endOf(o).$D},h.$locale=function(){return g[this.$L]},h.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=b(e,t,!0);return r&&(n.$L=r),n},h.clone=function(){return _.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},d}(),w=A.prototype;return y.prototype=w,[["$ms",e],["$s",t],["$m",n],["$H",r],["$W",i],["$M",o],["$y",c],["$D",l]].forEach((function(e){w[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),y.extend=function(e,t){return e(t,A,y),y},y.locale=b,y.isDayjs=v,y.unix=function(e){return y(1e3*e)},y.en=g[m],y.Ls=g,y.p={},y}()},8738:e=>{function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}
|
8 |
/*!
|
9 |
* Determine if an object is a Buffer
|
10 |
*
|
11 |
* @author Feross Aboukhadijeh <https://feross.org>
|
12 |
* @license MIT
|
13 |
*/
|
14 |
-
e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},2568:(e,t,n)=>{var r,i,s,o,a;r=n(1012),i=n(487).utf8,s=n(8738),o=n(487).bin,(a=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?o.stringToBytes(e):i.stringToBytes(e):s(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var n=r.bytesToWords(e),c=8*e.length,l=1732584193,f=-271733879,u=-1732584194,d=271733878,h=0;h<n.length;h++)n[h]=16711935&(n[h]<<8|n[h]>>>24)|4278255360&(n[h]<<24|n[h]>>>8);n[c>>>5]|=128<<c%32,n[14+(c+64>>>9<<4)]=c;var p=a._ff,m=a._gg,g=a._hh,v=a._ii;for(h=0;h<n.length;h+=16){var b=l,y=f,_=u,A=d;l=p(l,f,u,d,n[h+0],7,-680876936),d=p(d,l,f,u,n[h+1],12,-389564586),u=p(u,d,l,f,n[h+2],17,606105819),f=p(f,u,d,l,n[h+3],22,-1044525330),l=p(l,f,u,d,n[h+4],7,-176418897),d=p(d,l,f,u,n[h+5],12,1200080426),u=p(u,d,l,f,n[h+6],17,-1473231341),f=p(f,u,d,l,n[h+7],22,-45705983),l=p(l,f,u,d,n[h+8],7,1770035416),d=p(d,l,f,u,n[h+9],12,-1958414417),u=p(u,d,l,f,n[h+10],17,-42063),f=p(f,u,d,l,n[h+11],22,-1990404162),l=p(l,f,u,d,n[h+12],7,1804603682),d=p(d,l,f,u,n[h+13],12,-40341101),u=p(u,d,l,f,n[h+14],17,-1502002290),l=m(l,f=p(f,u,d,l,n[h+15],22,1236535329),u,d,n[h+1],5,-165796510),d=m(d,l,f,u,n[h+6],9,-1069501632),u=m(u,d,l,f,n[h+11],14,643717713),f=m(f,u,d,l,n[h+0],20,-373897302),l=m(l,f,u,d,n[h+5],5,-701558691),d=m(d,l,f,u,n[h+10],9,38016083),u=m(u,d,l,f,n[h+15],14,-660478335),f=m(f,u,d,l,n[h+4],20,-405537848),l=m(l,f,u,d,n[h+9],5,568446438),d=m(d,l,f,u,n[h+14],9,-1019803690),u=m(u,d,l,f,n[h+3],14,-187363961),f=m(f,u,d,l,n[h+8],20,1163531501),l=m(l,f,u,d,n[h+13],5,-1444681467),d=m(d,l,f,u,n[h+2],9,-51403784),u=m(u,d,l,f,n[h+7],14,1735328473),l=g(l,f=m(f,u,d,l,n[h+12],20,-1926607734),u,d,n[h+5],4,-378558),d=g(d,l,f,u,n[h+8],11,-2022574463),u=g(u,d,l,f,n[h+11],16,1839030562),f=g(f,u,d,l,n[h+14],23,-35309556),l=g(l,f,u,d,n[h+1],4,-1530992060),d=g(d,l,f,u,n[h+4],11,1272893353),u=g(u,d,l,f,n[h+7],16,-155497632),f=g(f,u,d,l,n[h+10],23,-1094730640),l=g(l,f,u,d,n[h+13],4,681279174),d=g(d,l,f,u,n[h+0],11,-358537222),u=g(u,d,l,f,n[h+3],16,-722521979),f=g(f,u,d,l,n[h+6],23,76029189),l=g(l,f,u,d,n[h+9],4,-640364487),d=g(d,l,f,u,n[h+12],11,-421815835),u=g(u,d,l,f,n[h+15],16,530742520),l=v(l,f=g(f,u,d,l,n[h+2],23,-995338651),u,d,n[h+0],6,-198630844),d=v(d,l,f,u,n[h+7],10,1126891415),u=v(u,d,l,f,n[h+14],15,-1416354905),f=v(f,u,d,l,n[h+5],21,-57434055),l=v(l,f,u,d,n[h+12],6,1700485571),d=v(d,l,f,u,n[h+3],10,-1894986606),u=v(u,d,l,f,n[h+10],15,-1051523),f=v(f,u,d,l,n[h+1],21,-2054922799),l=v(l,f,u,d,n[h+8],6,1873313359),d=v(d,l,f,u,n[h+15],10,-30611744),u=v(u,d,l,f,n[h+6],15,-1560198380),f=v(f,u,d,l,n[h+13],21,1309151649),l=v(l,f,u,d,n[h+4],6,-145523070),d=v(d,l,f,u,n[h+11],10,-1120210379),u=v(u,d,l,f,n[h+2],15,718787259),f=v(f,u,d,l,n[h+9],21,-343485551),l=l+b>>>0,f=f+y>>>0,u=u+_>>>0,d=d+A>>>0}return r.endian([l,f,u,d])})._ff=function(e,t,n,r,i,s,o){var a=e+(t&n|~t&r)+(i>>>0)+o;return(a<<s|a>>>32-s)+t},a._gg=function(e,t,n,r,i,s,o){var a=e+(t&r|n&~r)+(i>>>0)+o;return(a<<s|a>>>32-s)+t},a._hh=function(e,t,n,r,i,s,o){var a=e+(t^n^r)+(i>>>0)+o;return(a<<s|a>>>32-s)+t},a._ii=function(e,t,n,r,i,s,o){var a=e+(n^(t|~r))+(i>>>0)+o;return(a<<s|a>>>32-s)+t},a._blocksize=16,a._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var n=r.wordsToBytes(a(e,t));return t&&t.asBytes?n:t&&t.asString?o.bytesToString(n):r.bytesToHex(n)}},2100:(e,t,n)=>{"use strict";e.exports=n(9482)},9482:(e,t,n)=>{"use strict";var r=t;function i(){r.util._configure(),r.Writer._configure(r.BufferWriter),r.Reader._configure(r.BufferReader)}r.build="minimal",r.Writer=n(1173),r.BufferWriter=n(3155),r.Reader=n(1408),r.BufferReader=n(593),r.util=n(9693),r.rpc=n(5994),r.roots=n(5054),r.configure=i,i()},1408:(e,t,n)=>{"use strict";e.exports=c;var r,i=n(9693),s=i.LongBits,o=i.utf8;function a(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function c(e){this.buf=e,this.pos=0,this.len=e.length}var l,f="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new c(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new c(e);throw Error("illegal buffer")},u=function(){return i.Buffer?function(e){return(c.create=function(e){return i.Buffer.isBuffer(e)?new r(e):f(e)})(e)}:f};function d(){var e=new s(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw a(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw a(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function h(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function p(){if(this.pos+8>this.len)throw a(this,8);return new s(h(this.buf,this.pos+=4),h(this.buf,this.pos+=4))}c.create=u(),c.prototype._slice=i.Array.prototype.subarray||i.Array.prototype.slice,c.prototype.uint32=(l=4294967295,function(){if(l=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return l;if(l=(l|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return l;if(l=(l|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return l;if(l=(l|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return l;if(l=(l|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return l;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return l}),c.prototype.int32=function(){return 0|this.uint32()},c.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},c.prototype.bool=function(){return 0!==this.uint32()},c.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return h(this.buf,this.pos+=4)},c.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|h(this.buf,this.pos+=4)},c.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var e=i.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},c.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var e=i.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},c.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw a(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,n):t===n?new this.buf.constructor(0):this._slice.call(this.buf,t,n)},c.prototype.string=function(){var e=this.bytes();return o.read(e,0,e.length)},c.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw a(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw a(this)}while(128&this.buf[this.pos++]);return this},c.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},c._configure=function(e){r=e,c.create=u(),r._configure();var t=i.Long?"toLong":"toNumber";i.merge(c.prototype,{int64:function(){return d.call(this)[t](!1)},uint64:function(){return d.call(this)[t](!0)},sint64:function(){return d.call(this).zzDecode()[t](!1)},fixed64:function(){return p.call(this)[t](!0)},sfixed64:function(){return p.call(this)[t](!1)}})}},593:(e,t,n)=>{"use strict";e.exports=s;var r=n(1408);(s.prototype=Object.create(r.prototype)).constructor=s;var i=n(9693);function s(e){r.call(this,e)}s._configure=function(){i.Buffer&&(s.prototype._slice=i.Buffer.prototype.slice)},s.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},s._configure()},5054:e=>{"use strict";e.exports={}},5994:(e,t,n)=>{"use strict";t.Service=n(7948)},7948:(e,t,n)=>{"use strict";e.exports=i;var r=n(9693);function i(e,t,n){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");r.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(n)}(i.prototype=Object.create(r.EventEmitter.prototype)).constructor=i,i.prototype.rpcCall=function e(t,n,i,s,o){if(!s)throw TypeError("request must be specified");var a=this;if(!o)return r.asPromise(e,a,t,n,i,s);if(a.rpcImpl)try{return a.rpcImpl(t,n[a.requestDelimited?"encodeDelimited":"encode"](s).finish(),(function(e,n){if(e)return a.emit("error",e,t),o(e);if(null!==n){if(!(n instanceof i))try{n=i[a.responseDelimited?"decodeDelimited":"decode"](n)}catch(e){return a.emit("error",e,t),o(e)}return a.emit("data",n,t),o(null,n)}a.end(!0)}))}catch(e){return a.emit("error",e,t),void setTimeout((function(){o(e)}),0)}else setTimeout((function(){o(Error("already ended"))}),0)},i.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},1945:(e,t,n)=>{"use strict";e.exports=i;var r=n(9693);function i(e,t){this.lo=e>>>0,this.hi=t>>>0}var s=i.zero=new i(0,0);s.toNumber=function(){return 0},s.zzEncode=s.zzDecode=function(){return this},s.length=function(){return 1};var o=i.zeroHash="\0\0\0\0\0\0\0\0";i.fromNumber=function(e){if(0===e)return s;var t=e<0;t&&(e=-e);var n=e>>>0,r=(e-n)/4294967296>>>0;return t&&(r=~r>>>0,n=~n>>>0,++n>4294967295&&(n=0,++r>4294967295&&(r=0))),new i(n,r)},i.from=function(e){if("number"==typeof e)return i.fromNumber(e);if(r.isString(e)){if(!r.Long)return i.fromNumber(parseInt(e,10));e=r.Long.fromString(e)}return e.low||e.high?new i(e.low>>>0,e.high>>>0):s},i.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,n=~this.hi>>>0;return t||(n=n+1>>>0),-(t+4294967296*n)}return this.lo+4294967296*this.hi},i.prototype.toLong=function(e){return r.Long?new r.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var a=String.prototype.charCodeAt;i.fromHash=function(e){return e===o?s:new i((a.call(e,0)|a.call(e,1)<<8|a.call(e,2)<<16|a.call(e,3)<<24)>>>0,(a.call(e,4)|a.call(e,5)<<8|a.call(e,6)<<16|a.call(e,7)<<24)>>>0)},i.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},i.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},i.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},i.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:n<128?9:10}},9693:function(e,t,n){"use strict";var r=t;function i(e,t,n){for(var r=Object.keys(t),i=0;i<r.length;++i)void 0!==e[r[i]]&&n||(e[r[i]]=t[r[i]]);return e}function s(e){function t(e,n){if(!(this instanceof t))return new t(e,n);Object.defineProperty(this,"message",{get:function(){return e}}),Error.captureStackTrace?Error.captureStackTrace(this,t):Object.defineProperty(this,"stack",{value:(new Error).stack||""}),n&&i(this,n)}return(t.prototype=Object.create(Error.prototype)).constructor=t,Object.defineProperty(t.prototype,"name",{get:function(){return e}}),t.prototype.toString=function(){return this.name+": "+this.message},t}r.asPromise=n(4537),r.base64=n(7419),r.EventEmitter=n(9211),r.float=n(945),r.inquire=n(7199),r.utf8=n(4997),r.pool=n(6662),r.LongBits=n(1945),r.isNode=Boolean(void 0!==n.g&&n.g&&n.g.process&&n.g.process.versions&&n.g.process.versions.node),r.global=r.isNode&&n.g||"undefined"!=typeof window&&window||"undefined"!=typeof self&&self||this,r.emptyArray=Object.freeze?Object.freeze([]):[],r.emptyObject=Object.freeze?Object.freeze({}):{},r.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},r.isString=function(e){return"string"==typeof e||e instanceof String},r.isObject=function(e){return e&&"object"==typeof e},r.isset=r.isSet=function(e,t){var n=e[t];return!(null==n||!e.hasOwnProperty(t))&&("object"!=typeof n||(Array.isArray(n)?n.length:Object.keys(n).length)>0)},r.Buffer=function(){try{var e=r.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),r._Buffer_from=null,r._Buffer_allocUnsafe=null,r.newBuffer=function(e){return"number"==typeof e?r.Buffer?r._Buffer_allocUnsafe(e):new r.Array(e):r.Buffer?r._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},r.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,r.Long=r.global.dcodeIO&&r.global.dcodeIO.Long||r.global.Long||r.inquire("long"),r.key2Re=/^true|false|0|1$/,r.key32Re=/^-?(?:0|[1-9][0-9]*)$/,r.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,r.longToHash=function(e){return e?r.LongBits.from(e).toHash():r.LongBits.zeroHash},r.longFromHash=function(e,t){var n=r.LongBits.fromHash(e);return r.Long?r.Long.fromBits(n.lo,n.hi,t):n.toNumber(Boolean(t))},r.merge=i,r.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},r.newError=s,r.ProtocolError=s("ProtocolError"),r.oneOfGetter=function(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=1;return function(){for(var e=Object.keys(this),n=e.length-1;n>-1;--n)if(1===t[e[n]]&&void 0!==this[e[n]]&&null!==this[e[n]])return e[n]}},r.oneOfSetter=function(e){return function(t){for(var n=0;n<e.length;++n)e[n]!==t&&delete this[e[n]]}},r.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},r._configure=function(){var e=r.Buffer;e?(r._Buffer_from=e.from!==Uint8Array.from&&e.from||function(t,n){return new e(t,n)},r._Buffer_allocUnsafe=e.allocUnsafe||function(t){return new e(t)}):r._Buffer_from=r._Buffer_allocUnsafe=null}},1173:(e,t,n)=>{"use strict";e.exports=u;var r,i=n(9693),s=i.LongBits,o=i.base64,a=i.utf8;function c(e,t,n){this.fn=e,this.len=t,this.next=void 0,this.val=n}function l(){}function f(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function u(){this.len=0,this.head=new c(l,0,0),this.tail=this.head,this.states=null}var d=function(){return i.Buffer?function(){return(u.create=function(){return new r})()}:function(){return new u}};function h(e,t,n){t[n]=255&e}function p(e,t){this.len=e,this.next=void 0,this.val=t}function m(e,t,n){for(;e.hi;)t[n++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[n++]=127&e.lo|128,e.lo=e.lo>>>7;t[n++]=e.lo}function g(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}u.create=d(),u.alloc=function(e){return new i.Array(e)},i.Array!==Array&&(u.alloc=i.pool(u.alloc,i.Array.prototype.subarray)),u.prototype._push=function(e,t,n){return this.tail=this.tail.next=new c(e,t,n),this.len+=t,this},p.prototype=Object.create(c.prototype),p.prototype.fn=function(e,t,n){for(;e>127;)t[n++]=127&e|128,e>>>=7;t[n]=e},u.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new p((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},u.prototype.int32=function(e){return e<0?this._push(m,10,s.fromNumber(e)):this.uint32(e)},u.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},u.prototype.uint64=function(e){var t=s.from(e);return this._push(m,t.length(),t)},u.prototype.int64=u.prototype.uint64,u.prototype.sint64=function(e){var t=s.from(e).zzEncode();return this._push(m,t.length(),t)},u.prototype.bool=function(e){return this._push(h,1,e?1:0)},u.prototype.fixed32=function(e){return this._push(g,4,e>>>0)},u.prototype.sfixed32=u.prototype.fixed32,u.prototype.fixed64=function(e){var t=s.from(e);return this._push(g,4,t.lo)._push(g,4,t.hi)},u.prototype.sfixed64=u.prototype.fixed64,u.prototype.float=function(e){return this._push(i.float.writeFloatLE,4,e)},u.prototype.double=function(e){return this._push(i.float.writeDoubleLE,8,e)};var v=i.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var r=0;r<e.length;++r)t[n+r]=e[r]};u.prototype.bytes=function(e){var t=e.length>>>0;if(!t)return this._push(h,1,0);if(i.isString(e)){var n=u.alloc(t=o.length(e));o.decode(e,n,0),e=n}return this.uint32(t)._push(v,t,e)},u.prototype.string=function(e){var t=a.length(e);return t?this.uint32(t)._push(a.write,t,e):this._push(h,1,0)},u.prototype.fork=function(){return this.states=new f(this),this.head=this.tail=new c(l,0,0),this.len=0,this},u.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new c(l,0,0),this.len=0),this},u.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this},u.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t},u._configure=function(e){r=e,u.create=d(),r._configure()}},3155:(e,t,n)=>{"use strict";e.exports=s;var r=n(1173);(s.prototype=Object.create(r.prototype)).constructor=s;var i=n(9693);function s(){r.call(this)}function o(e,t,n){e.length<40?i.utf8.write(e,t,n):t.utf8Write?t.utf8Write(e,n):t.write(e,n)}s._configure=function(){s.alloc=i._Buffer_allocUnsafe,s.writeBytesBuffer=i.Buffer&&i.Buffer.prototype instanceof Uint8Array&&"set"===i.Buffer.prototype.set.name?function(e,t,n){t.set(e,n)}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var r=0;r<e.length;)t[n++]=e[r++]}},s.prototype.bytes=function(e){i.isString(e)&&(e=i._Buffer_from(e,"base64"));var t=e.length>>>0;return this.uint32(t),t&&this._push(s.writeBytesBuffer,t,e),this},s.prototype.string=function(e){var t=i.Buffer.byteLength(e);return this.uint32(t),t&&this._push(o,t,e),this},s._configure()},2539:(e,t,n)=>{"use strict";var r=n(7539);function i(e,t,n,i,s){var o=r.writeRtpDescription(e.kind,t);if(o+=r.writeIceParameters(e.iceGatherer.getLocalParameters()),o+=r.writeDtlsParameters(e.dtlsTransport.getLocalParameters(),"offer"===n?"actpass":s||"active"),o+="a=mid:"+e.mid+"\r\n",e.rtpSender&&e.rtpReceiver?o+="a=sendrecv\r\n":e.rtpSender?o+="a=sendonly\r\n":e.rtpReceiver?o+="a=recvonly\r\n":o+="a=inactive\r\n",e.rtpSender){var a=e.rtpSender._initialTrackId||e.rtpSender.track.id;e.rtpSender._initialTrackId=a;var c="msid:"+(i?i.id:"-")+" "+a+"\r\n";o+="a="+c,o+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" "+c,e.sendEncodingParameters[0].rtx&&(o+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" "+c,o+="a=ssrc-group:FID "+e.sendEncodingParameters[0].ssrc+" "+e.sendEncodingParameters[0].rtx.ssrc+"\r\n")}return o+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" cname:"+r.localCName+"\r\n",e.rtpSender&&e.sendEncodingParameters[0].rtx&&(o+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" cname:"+r.localCName+"\r\n"),o}function s(e,t){var n={codecs:[],headerExtensions:[],fecMechanisms:[]},r=function(e,t){e=parseInt(e,10);for(var n=0;n<t.length;n++)if(t[n].payloadType===e||t[n].preferredPayloadType===e)return t[n]},i=function(e,t,n,i){var s=r(e.parameters.apt,n),o=r(t.parameters.apt,i);return s&&o&&s.name.toLowerCase()===o.name.toLowerCase()};return e.codecs.forEach((function(r){for(var s=0;s<t.codecs.length;s++){var o=t.codecs[s];if(r.name.toLowerCase()===o.name.toLowerCase()&&r.clockRate===o.clockRate){if("rtx"===r.name.toLowerCase()&&r.parameters&&o.parameters.apt&&!i(r,o,e.codecs,t.codecs))continue;(o=JSON.parse(JSON.stringify(o))).numChannels=Math.min(r.numChannels,o.numChannels),n.codecs.push(o),o.rtcpFeedback=o.rtcpFeedback.filter((function(e){for(var t=0;t<r.rtcpFeedback.length;t++)if(r.rtcpFeedback[t].type===e.type&&r.rtcpFeedback[t].parameter===e.parameter)return!0;return!1}));break}}})),e.headerExtensions.forEach((function(e){for(var r=0;r<t.headerExtensions.length;r++){var i=t.headerExtensions[r];if(e.uri===i.uri){n.headerExtensions.push(i);break}}})),n}function o(e,t,n){return-1!=={offer:{setLocalDescription:["stable","have-local-offer"],setRemoteDescription:["stable","have-remote-offer"]},answer:{setLocalDescription:["have-remote-offer","have-local-pranswer"],setRemoteDescription:["have-local-offer","have-remote-pranswer"]}}[t][e].indexOf(n)}function a(e,t){var n=e.getRemoteCandidates().find((function(e){return t.foundation===e.foundation&&t.ip===e.ip&&t.port===e.port&&t.priority===e.priority&&t.protocol===e.protocol&&t.type===e.type}));return n||e.addRemoteCandidate(t),!n}function c(e,t){var n=new Error(t);return n.name=e,n.code={NotSupportedError:9,InvalidStateError:11,InvalidAccessError:15,TypeError:void 0,OperationError:void 0}[e],n}e.exports=function(e,t){function n(t,n){n.addTrack(t),n.dispatchEvent(new e.MediaStreamTrackEvent("addtrack",{track:t}))}function l(t,n,r,i){var s=new Event("track");s.track=n,s.receiver=r,s.transceiver={receiver:r},s.streams=i,e.setTimeout((function(){t._dispatchEvent("track",s)}))}var f=function(n){var i=this,s=document.createDocumentFragment();if(["addEventListener","removeEventListener","dispatchEvent"].forEach((function(e){i[e]=s[e].bind(s)})),this.canTrickleIceCandidates=null,this.needNegotiation=!1,this.localStreams=[],this.remoteStreams=[],this._localDescription=null,this._remoteDescription=null,this.signalingState="stable",this.iceConnectionState="new",this.connectionState="new",this.iceGatheringState="new",n=JSON.parse(JSON.stringify(n||{})),this.usingBundle="max-bundle"===n.bundlePolicy,"negotiate"===n.rtcpMuxPolicy)throw c("NotSupportedError","rtcpMuxPolicy 'negotiate' is not supported");switch(n.rtcpMuxPolicy||(n.rtcpMuxPolicy="require"),n.iceTransportPolicy){case"all":case"relay":break;default:n.iceTransportPolicy="all"}switch(n.bundlePolicy){case"balanced":case"max-compat":case"max-bundle":break;default:n.bundlePolicy="balanced"}if(n.iceServers=function(e,t){var n=!1;return(e=JSON.parse(JSON.stringify(e))).filter((function(e){if(e&&(e.urls||e.url)){var r=e.urls||e.url;e.url&&!e.urls&&console.warn("RTCIceServer.url is deprecated! Use urls instead.");var i="string"==typeof r;return i&&(r=[r]),r=r.filter((function(e){return 0!==e.indexOf("turn:")||-1===e.indexOf("transport=udp")||-1!==e.indexOf("turn:[")||n?0===e.indexOf("stun:")&&t>=14393&&-1===e.indexOf("?transport=udp"):(n=!0,!0)})),delete e.url,e.urls=i?r[0]:r,!!r.length}}))}(n.iceServers||[],t),this._iceGatherers=[],n.iceCandidatePoolSize)for(var o=n.iceCandidatePoolSize;o>0;o--)this._iceGatherers.push(new e.RTCIceGatherer({iceServers:n.iceServers,gatherPolicy:n.iceTransportPolicy}));else n.iceCandidatePoolSize=0;this._config=n,this.transceivers=[],this._sdpSessionId=r.generateSessionId(),this._sdpSessionVersion=0,this._dtlsRole=void 0,this._isClosed=!1};Object.defineProperty(f.prototype,"localDescription",{configurable:!0,get:function(){return this._localDescription}}),Object.defineProperty(f.prototype,"remoteDescription",{configurable:!0,get:function(){return this._remoteDescription}}),f.prototype.onicecandidate=null,f.prototype.onaddstream=null,f.prototype.ontrack=null,f.prototype.onremovestream=null,f.prototype.onsignalingstatechange=null,f.prototype.oniceconnectionstatechange=null,f.prototype.onconnectionstatechange=null,f.prototype.onicegatheringstatechange=null,f.prototype.onnegotiationneeded=null,f.prototype.ondatachannel=null,f.prototype._dispatchEvent=function(e,t){this._isClosed||(this.dispatchEvent(t),"function"==typeof this["on"+e]&&this["on"+e](t))},f.prototype._emitGatheringStateChange=function(){var e=new Event("icegatheringstatechange");this._dispatchEvent("icegatheringstatechange",e)},f.prototype.getConfiguration=function(){return this._config},f.prototype.getLocalStreams=function(){return this.localStreams},f.prototype.getRemoteStreams=function(){return this.remoteStreams},f.prototype._createTransceiver=function(e,t){var n=this.transceivers.length>0,r={track:null,iceGatherer:null,iceTransport:null,dtlsTransport:null,localCapabilities:null,remoteCapabilities:null,rtpSender:null,rtpReceiver:null,kind:e,mid:null,sendEncodingParameters:null,recvEncodingParameters:null,stream:null,associatedRemoteMediaStreams:[],wantReceive:!0};if(this.usingBundle&&n)r.iceTransport=this.transceivers[0].iceTransport,r.dtlsTransport=this.transceivers[0].dtlsTransport;else{var i=this._createIceAndDtlsTransports();r.iceTransport=i.iceTransport,r.dtlsTransport=i.dtlsTransport}return t||this.transceivers.push(r),r},f.prototype.addTrack=function(t,n){if(this._isClosed)throw c("InvalidStateError","Attempted to call addTrack on a closed peerconnection.");var r;if(this.transceivers.find((function(e){return e.track===t})))throw c("InvalidAccessError","Track already exists.");for(var i=0;i<this.transceivers.length;i++)this.transceivers[i].track||this.transceivers[i].kind!==t.kind||(r=this.transceivers[i]);return r||(r=this._createTransceiver(t.kind)),this._maybeFireNegotiationNeeded(),-1===this.localStreams.indexOf(n)&&this.localStreams.push(n),r.track=t,r.stream=n,r.rtpSender=new e.RTCRtpSender(t,r.dtlsTransport),r.rtpSender},f.prototype.addStream=function(e){var n=this;if(t>=15025)e.getTracks().forEach((function(t){n.addTrack(t,e)}));else{var r=e.clone();e.getTracks().forEach((function(e,t){var n=r.getTracks()[t];e.addEventListener("enabled",(function(e){n.enabled=e.enabled}))})),r.getTracks().forEach((function(e){n.addTrack(e,r)}))}},f.prototype.removeTrack=function(t){if(this._isClosed)throw c("InvalidStateError","Attempted to call removeTrack on a closed peerconnection.");if(!(t instanceof e.RTCRtpSender))throw new TypeError("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.");var n=this.transceivers.find((function(e){return e.rtpSender===t}));if(!n)throw c("InvalidAccessError","Sender was not created by this connection.");var r=n.stream;n.rtpSender.stop(),n.rtpSender=null,n.track=null,n.stream=null,-1===this.transceivers.map((function(e){return e.stream})).indexOf(r)&&this.localStreams.indexOf(r)>-1&&this.localStreams.splice(this.localStreams.indexOf(r),1),this._maybeFireNegotiationNeeded()},f.prototype.removeStream=function(e){var t=this;e.getTracks().forEach((function(e){var n=t.getSenders().find((function(t){return t.track===e}));n&&t.removeTrack(n)}))},f.prototype.getSenders=function(){return this.transceivers.filter((function(e){return!!e.rtpSender})).map((function(e){return e.rtpSender}))},f.prototype.getReceivers=function(){return this.transceivers.filter((function(e){return!!e.rtpReceiver})).map((function(e){return e.rtpReceiver}))},f.prototype._createIceGatherer=function(t,n){var r=this;if(n&&t>0)return this.transceivers[0].iceGatherer;if(this._iceGatherers.length)return this._iceGatherers.shift();var i=new e.RTCIceGatherer({iceServers:this._config.iceServers,gatherPolicy:this._config.iceTransportPolicy});return Object.defineProperty(i,"state",{value:"new",writable:!0}),this.transceivers[t].bufferedCandidateEvents=[],this.transceivers[t].bufferCandidates=function(e){var n=!e.candidate||0===Object.keys(e.candidate).length;i.state=n?"completed":"gathering",null!==r.transceivers[t].bufferedCandidateEvents&&r.transceivers[t].bufferedCandidateEvents.push(e)},i.addEventListener("localcandidate",this.transceivers[t].bufferCandidates),i},f.prototype._gather=function(t,n){var i=this,s=this.transceivers[n].iceGatherer;if(!s.onlocalcandidate){var o=this.transceivers[n].bufferedCandidateEvents;this.transceivers[n].bufferedCandidateEvents=null,s.removeEventListener("localcandidate",this.transceivers[n].bufferCandidates),s.onlocalcandidate=function(e){if(!(i.usingBundle&&n>0)){var o=new Event("icecandidate");o.candidate={sdpMid:t,sdpMLineIndex:n};var a=e.candidate,c=!a||0===Object.keys(a).length;if(c)"new"!==s.state&&"gathering"!==s.state||(s.state="completed");else{"new"===s.state&&(s.state="gathering"),a.component=1,a.ufrag=s.getLocalParameters().usernameFragment;var l=r.writeCandidate(a);o.candidate=Object.assign(o.candidate,r.parseCandidate(l)),o.candidate.candidate=l,o.candidate.toJSON=function(){return{candidate:o.candidate.candidate,sdpMid:o.candidate.sdpMid,sdpMLineIndex:o.candidate.sdpMLineIndex,usernameFragment:o.candidate.usernameFragment}}}var f=r.getMediaSections(i._localDescription.sdp);f[o.candidate.sdpMLineIndex]+=c?"a=end-of-candidates\r\n":"a="+o.candidate.candidate+"\r\n",i._localDescription.sdp=r.getDescription(i._localDescription.sdp)+f.join("");var u=i.transceivers.every((function(e){return e.iceGatherer&&"completed"===e.iceGatherer.state}));"gathering"!==i.iceGatheringState&&(i.iceGatheringState="gathering",i._emitGatheringStateChange()),c||i._dispatchEvent("icecandidate",o),u&&(i._dispatchEvent("icecandidate",new Event("icecandidate")),i.iceGatheringState="complete",i._emitGatheringStateChange())}},e.setTimeout((function(){o.forEach((function(e){s.onlocalcandidate(e)}))}),0)}},f.prototype._createIceAndDtlsTransports=function(){var t=this,n=new e.RTCIceTransport(null);n.onicestatechange=function(){t._updateIceConnectionState(),t._updateConnectionState()};var r=new e.RTCDtlsTransport(n);return r.ondtlsstatechange=function(){t._updateConnectionState()},r.onerror=function(){Object.defineProperty(r,"state",{value:"failed",writable:!0}),t._updateConnectionState()},{iceTransport:n,dtlsTransport:r}},f.prototype._disposeIceAndDtlsTransports=function(e){var t=this.transceivers[e].iceGatherer;t&&(delete t.onlocalcandidate,delete this.transceivers[e].iceGatherer);var n=this.transceivers[e].iceTransport;n&&(delete n.onicestatechange,delete this.transceivers[e].iceTransport);var r=this.transceivers[e].dtlsTransport;r&&(delete r.ondtlsstatechange,delete r.onerror,delete this.transceivers[e].dtlsTransport)},f.prototype._transceive=function(e,n,i){var o=s(e.localCapabilities,e.remoteCapabilities);n&&e.rtpSender&&(o.encodings=e.sendEncodingParameters,o.rtcp={cname:r.localCName,compound:e.rtcpParameters.compound},e.recvEncodingParameters.length&&(o.rtcp.ssrc=e.recvEncodingParameters[0].ssrc),e.rtpSender.send(o)),i&&e.rtpReceiver&&o.codecs.length>0&&("video"===e.kind&&e.recvEncodingParameters&&t<15019&&e.recvEncodingParameters.forEach((function(e){delete e.rtx})),e.recvEncodingParameters.length?o.encodings=e.recvEncodingParameters:o.encodings=[{}],o.rtcp={compound:e.rtcpParameters.compound},e.rtcpParameters.cname&&(o.rtcp.cname=e.rtcpParameters.cname),e.sendEncodingParameters.length&&(o.rtcp.ssrc=e.sendEncodingParameters[0].ssrc),e.rtpReceiver.receive(o))},f.prototype.setLocalDescription=function(e){var t,n,i=this;if(-1===["offer","answer"].indexOf(e.type))return Promise.reject(c("TypeError",'Unsupported type "'+e.type+'"'));if(!o("setLocalDescription",e.type,i.signalingState)||i._isClosed)return Promise.reject(c("InvalidStateError","Can not set local "+e.type+" in state "+i.signalingState));if("offer"===e.type)t=r.splitSections(e.sdp),n=t.shift(),t.forEach((function(e,t){var n=r.parseRtpParameters(e);i.transceivers[t].localCapabilities=n})),i.transceivers.forEach((function(e,t){i._gather(e.mid,t)}));else if("answer"===e.type){t=r.splitSections(i._remoteDescription.sdp),n=t.shift();var a=r.matchPrefix(n,"a=ice-lite").length>0;t.forEach((function(e,t){var o=i.transceivers[t],c=o.iceGatherer,l=o.iceTransport,f=o.dtlsTransport,u=o.localCapabilities,d=o.remoteCapabilities;if(!(r.isRejected(e)&&0===r.matchPrefix(e,"a=bundle-only").length)&&!o.rejected){var h=r.getIceParameters(e,n),p=r.getDtlsParameters(e,n);a&&(p.role="server"),i.usingBundle&&0!==t||(i._gather(o.mid,t),"new"===l.state&&l.start(c,h,a?"controlling":"controlled"),"new"===f.state&&f.start(p));var m=s(u,d);i._transceive(o,m.codecs.length>0,!1)}}))}return i._localDescription={type:e.type,sdp:e.sdp},"offer"===e.type?i._updateSignalingState("have-local-offer"):i._updateSignalingState("stable"),Promise.resolve()},f.prototype.setRemoteDescription=function(i){var f=this;if(-1===["offer","answer"].indexOf(i.type))return Promise.reject(c("TypeError",'Unsupported type "'+i.type+'"'));if(!o("setRemoteDescription",i.type,f.signalingState)||f._isClosed)return Promise.reject(c("InvalidStateError","Can not set remote "+i.type+" in state "+f.signalingState));var u={};f.remoteStreams.forEach((function(e){u[e.id]=e}));var d=[],h=r.splitSections(i.sdp),p=h.shift(),m=r.matchPrefix(p,"a=ice-lite").length>0,g=r.matchPrefix(p,"a=group:BUNDLE ").length>0;f.usingBundle=g;var v=r.matchPrefix(p,"a=ice-options:")[0];return f.canTrickleIceCandidates=!!v&&v.substr(14).split(" ").indexOf("trickle")>=0,h.forEach((function(o,c){var l=r.splitLines(o),h=r.getKind(o),v=r.isRejected(o)&&0===r.matchPrefix(o,"a=bundle-only").length,b=l[0].substr(2).split(" ")[2],y=r.getDirection(o,p),_=r.parseMsid(o),A=r.getMid(o)||r.generateIdentifier();if(v||"application"===h&&("DTLS/SCTP"===b||"UDP/DTLS/SCTP"===b))f.transceivers[c]={mid:A,kind:h,protocol:b,rejected:!0};else{var w,C,E,S,T,O,x,M,N;!v&&f.transceivers[c]&&f.transceivers[c].rejected&&(f.transceivers[c]=f._createTransceiver(h,!0));var I,R,k=r.parseRtpParameters(o);v||(I=r.getIceParameters(o,p),(R=r.getDtlsParameters(o,p)).role="client"),x=r.parseRtpEncodingParameters(o);var P=r.parseRtcpParameters(o),D=r.matchPrefix(o,"a=end-of-candidates",p).length>0,F=r.matchPrefix(o,"a=candidate:").map((function(e){return r.parseCandidate(e)})).filter((function(e){return 1===e.component}));if(("offer"===i.type||"answer"===i.type)&&!v&&g&&c>0&&f.transceivers[c]&&(f._disposeIceAndDtlsTransports(c),f.transceivers[c].iceGatherer=f.transceivers[0].iceGatherer,f.transceivers[c].iceTransport=f.transceivers[0].iceTransport,f.transceivers[c].dtlsTransport=f.transceivers[0].dtlsTransport,f.transceivers[c].rtpSender&&f.transceivers[c].rtpSender.setTransport(f.transceivers[0].dtlsTransport),f.transceivers[c].rtpReceiver&&f.transceivers[c].rtpReceiver.setTransport(f.transceivers[0].dtlsTransport)),"offer"!==i.type||v){if("answer"===i.type&&!v){C=(w=f.transceivers[c]).iceGatherer,E=w.iceTransport,S=w.dtlsTransport,T=w.rtpReceiver,O=w.sendEncodingParameters,M=w.localCapabilities,f.transceivers[c].recvEncodingParameters=x,f.transceivers[c].remoteCapabilities=k,f.transceivers[c].rtcpParameters=P,F.length&&"new"===E.state&&(!m&&!D||g&&0!==c?F.forEach((function(e){a(w.iceTransport,e)})):E.setRemoteCandidates(F)),g&&0!==c||("new"===E.state&&E.start(C,I,"controlling"),"new"===S.state&&S.start(R)),!s(w.localCapabilities,w.remoteCapabilities).codecs.filter((function(e){return"rtx"===e.name.toLowerCase()})).length&&w.sendEncodingParameters[0].rtx&&delete w.sendEncodingParameters[0].rtx,f._transceive(w,"sendrecv"===y||"recvonly"===y,"sendrecv"===y||"sendonly"===y),!T||"sendrecv"!==y&&"sendonly"!==y?delete w.rtpReceiver:(N=T.track,_?(u[_.stream]||(u[_.stream]=new e.MediaStream),n(N,u[_.stream]),d.push([N,T,u[_.stream]])):(u.default||(u.default=new e.MediaStream),n(N,u.default),d.push([N,T,u.default])))}}else{(w=f.transceivers[c]||f._createTransceiver(h)).mid=A,w.iceGatherer||(w.iceGatherer=f._createIceGatherer(c,g)),F.length&&"new"===w.iceTransport.state&&(!D||g&&0!==c?F.forEach((function(e){a(w.iceTransport,e)})):w.iceTransport.setRemoteCandidates(F)),M=e.RTCRtpReceiver.getCapabilities(h),t<15019&&(M.codecs=M.codecs.filter((function(e){return"rtx"!==e.name}))),O=w.sendEncodingParameters||[{ssrc:1001*(2*c+2)}];var B,L=!1;if("sendrecv"===y||"sendonly"===y){if(L=!w.rtpReceiver,T=w.rtpReceiver||new e.RTCRtpReceiver(w.dtlsTransport,h),L)N=T.track,_&&"-"===_.stream||(_?(u[_.stream]||(u[_.stream]=new e.MediaStream,Object.defineProperty(u[_.stream],"id",{get:function(){return _.stream}})),Object.defineProperty(N,"id",{get:function(){return _.track}}),B=u[_.stream]):(u.default||(u.default=new e.MediaStream),B=u.default)),B&&(n(N,B),w.associatedRemoteMediaStreams.push(B)),d.push([N,T,B])}else w.rtpReceiver&&w.rtpReceiver.track&&(w.associatedRemoteMediaStreams.forEach((function(t){var n=t.getTracks().find((function(e){return e.id===w.rtpReceiver.track.id}));n&&function(t,n){n.removeTrack(t),n.dispatchEvent(new e.MediaStreamTrackEvent("removetrack",{track:t}))}(n,t)})),w.associatedRemoteMediaStreams=[]);w.localCapabilities=M,w.remoteCapabilities=k,w.rtpReceiver=T,w.rtcpParameters=P,w.sendEncodingParameters=O,w.recvEncodingParameters=x,f._transceive(f.transceivers[c],!1,L)}}})),void 0===f._dtlsRole&&(f._dtlsRole="offer"===i.type?"active":"passive"),f._remoteDescription={type:i.type,sdp:i.sdp},"offer"===i.type?f._updateSignalingState("have-remote-offer"):f._updateSignalingState("stable"),Object.keys(u).forEach((function(t){var n=u[t];if(n.getTracks().length){if(-1===f.remoteStreams.indexOf(n)){f.remoteStreams.push(n);var r=new Event("addstream");r.stream=n,e.setTimeout((function(){f._dispatchEvent("addstream",r)}))}d.forEach((function(e){var t=e[0],r=e[1];n.id===e[2].id&&l(f,t,r,[n])}))}})),d.forEach((function(e){e[2]||l(f,e[0],e[1],[])})),e.setTimeout((function(){f&&f.transceivers&&f.transceivers.forEach((function(e){e.iceTransport&&"new"===e.iceTransport.state&&e.iceTransport.getRemoteCandidates().length>0&&(console.warn("Timeout for addRemoteCandidate. Consider sending an end-of-candidates notification"),e.iceTransport.addRemoteCandidate({}))}))}),4e3),Promise.resolve()},f.prototype.close=function(){this.transceivers.forEach((function(e){e.iceTransport&&e.iceTransport.stop(),e.dtlsTransport&&e.dtlsTransport.stop(),e.rtpSender&&e.rtpSender.stop(),e.rtpReceiver&&e.rtpReceiver.stop()})),this._isClosed=!0,this._updateSignalingState("closed")},f.prototype._updateSignalingState=function(e){this.signalingState=e;var t=new Event("signalingstatechange");this._dispatchEvent("signalingstatechange",t)},f.prototype._maybeFireNegotiationNeeded=function(){var t=this;"stable"===this.signalingState&&!0!==this.needNegotiation&&(this.needNegotiation=!0,e.setTimeout((function(){if(t.needNegotiation){t.needNegotiation=!1;var e=new Event("negotiationneeded");t._dispatchEvent("negotiationneeded",e)}}),0))},f.prototype._updateIceConnectionState=function(){var e,t={new:0,closed:0,checking:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach((function(e){e.iceTransport&&!e.rejected&&t[e.iceTransport.state]++})),e="new",t.failed>0?e="failed":t.checking>0?e="checking":t.disconnected>0?e="disconnected":t.new>0?e="new":t.connected>0?e="connected":t.completed>0&&(e="completed"),e!==this.iceConnectionState){this.iceConnectionState=e;var n=new Event("iceconnectionstatechange");this._dispatchEvent("iceconnectionstatechange",n)}},f.prototype._updateConnectionState=function(){var e,t={new:0,closed:0,connecting:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach((function(e){e.iceTransport&&e.dtlsTransport&&!e.rejected&&(t[e.iceTransport.state]++,t[e.dtlsTransport.state]++)})),t.connected+=t.completed,e="new",t.failed>0?e="failed":t.connecting>0?e="connecting":t.disconnected>0?e="disconnected":t.new>0?e="new":t.connected>0&&(e="connected"),e!==this.connectionState){this.connectionState=e;var n=new Event("connectionstatechange");this._dispatchEvent("connectionstatechange",n)}},f.prototype.createOffer=function(){var n=this;if(n._isClosed)return Promise.reject(c("InvalidStateError","Can not call createOffer after close"));var s=n.transceivers.filter((function(e){return"audio"===e.kind})).length,o=n.transceivers.filter((function(e){return"video"===e.kind})).length,a=arguments[0];if(a){if(a.mandatory||a.optional)throw new TypeError("Legacy mandatory/optional constraints not supported.");void 0!==a.offerToReceiveAudio&&(s=!0===a.offerToReceiveAudio?1:!1===a.offerToReceiveAudio?0:a.offerToReceiveAudio),void 0!==a.offerToReceiveVideo&&(o=!0===a.offerToReceiveVideo?1:!1===a.offerToReceiveVideo?0:a.offerToReceiveVideo)}for(n.transceivers.forEach((function(e){"audio"===e.kind?--s<0&&(e.wantReceive=!1):"video"===e.kind&&--o<0&&(e.wantReceive=!1)}));s>0||o>0;)s>0&&(n._createTransceiver("audio"),s--),o>0&&(n._createTransceiver("video"),o--);var l=r.writeSessionBoilerplate(n._sdpSessionId,n._sdpSessionVersion++);n.transceivers.forEach((function(i,s){var o=i.track,a=i.kind,c=i.mid||r.generateIdentifier();i.mid=c,i.iceGatherer||(i.iceGatherer=n._createIceGatherer(s,n.usingBundle));var l=e.RTCRtpSender.getCapabilities(a);t<15019&&(l.codecs=l.codecs.filter((function(e){return"rtx"!==e.name}))),l.codecs.forEach((function(e){"H264"===e.name&&void 0===e.parameters["level-asymmetry-allowed"]&&(e.parameters["level-asymmetry-allowed"]="1"),i.remoteCapabilities&&i.remoteCapabilities.codecs&&i.remoteCapabilities.codecs.forEach((function(t){e.name.toLowerCase()===t.name.toLowerCase()&&e.clockRate===t.clockRate&&(e.preferredPayloadType=t.payloadType)}))})),l.headerExtensions.forEach((function(e){(i.remoteCapabilities&&i.remoteCapabilities.headerExtensions||[]).forEach((function(t){e.uri===t.uri&&(e.id=t.id)}))}));var f=i.sendEncodingParameters||[{ssrc:1001*(2*s+1)}];o&&t>=15019&&"video"===a&&!f[0].rtx&&(f[0].rtx={ssrc:f[0].ssrc+1}),i.wantReceive&&(i.rtpReceiver=new e.RTCRtpReceiver(i.dtlsTransport,a)),i.localCapabilities=l,i.sendEncodingParameters=f})),"max-compat"!==n._config.bundlePolicy&&(l+="a=group:BUNDLE "+n.transceivers.map((function(e){return e.mid})).join(" ")+"\r\n"),l+="a=ice-options:trickle\r\n",n.transceivers.forEach((function(e,t){l+=i(e,e.localCapabilities,"offer",e.stream,n._dtlsRole),l+="a=rtcp-rsize\r\n",!e.iceGatherer||"new"===n.iceGatheringState||0!==t&&n.usingBundle||(e.iceGatherer.getLocalCandidates().forEach((function(e){e.component=1,l+="a="+r.writeCandidate(e)+"\r\n"})),"completed"===e.iceGatherer.state&&(l+="a=end-of-candidates\r\n"))}));var f=new e.RTCSessionDescription({type:"offer",sdp:l});return Promise.resolve(f)},f.prototype.createAnswer=function(){var n=this;if(n._isClosed)return Promise.reject(c("InvalidStateError","Can not call createAnswer after close"));if("have-remote-offer"!==n.signalingState&&"have-local-pranswer"!==n.signalingState)return Promise.reject(c("InvalidStateError","Can not call createAnswer in signalingState "+n.signalingState));var o=r.writeSessionBoilerplate(n._sdpSessionId,n._sdpSessionVersion++);n.usingBundle&&(o+="a=group:BUNDLE "+n.transceivers.map((function(e){return e.mid})).join(" ")+"\r\n"),o+="a=ice-options:trickle\r\n";var a=r.getMediaSections(n._remoteDescription.sdp).length;n.transceivers.forEach((function(e,r){if(!(r+1>a)){if(e.rejected)return"application"===e.kind?"DTLS/SCTP"===e.protocol?o+="m=application 0 DTLS/SCTP 5000\r\n":o+="m=application 0 "+e.protocol+" webrtc-datachannel\r\n":"audio"===e.kind?o+="m=audio 0 UDP/TLS/RTP/SAVPF 0\r\na=rtpmap:0 PCMU/8000\r\n":"video"===e.kind&&(o+="m=video 0 UDP/TLS/RTP/SAVPF 120\r\na=rtpmap:120 VP8/90000\r\n"),void(o+="c=IN IP4 0.0.0.0\r\na=inactive\r\na=mid:"+e.mid+"\r\n");var c;if(e.stream)"audio"===e.kind?c=e.stream.getAudioTracks()[0]:"video"===e.kind&&(c=e.stream.getVideoTracks()[0]),c&&t>=15019&&"video"===e.kind&&!e.sendEncodingParameters[0].rtx&&(e.sendEncodingParameters[0].rtx={ssrc:e.sendEncodingParameters[0].ssrc+1});var l=s(e.localCapabilities,e.remoteCapabilities);!l.codecs.filter((function(e){return"rtx"===e.name.toLowerCase()})).length&&e.sendEncodingParameters[0].rtx&&delete e.sendEncodingParameters[0].rtx,o+=i(e,l,"answer",e.stream,n._dtlsRole),e.rtcpParameters&&e.rtcpParameters.reducedSize&&(o+="a=rtcp-rsize\r\n")}}));var l=new e.RTCSessionDescription({type:"answer",sdp:o});return Promise.resolve(l)},f.prototype.addIceCandidate=function(e){var t,n=this;return e&&void 0===e.sdpMLineIndex&&!e.sdpMid?Promise.reject(new TypeError("sdpMLineIndex or sdpMid required")):new Promise((function(i,s){if(!n._remoteDescription)return s(c("InvalidStateError","Can not add ICE candidate without a remote description"));if(e&&""!==e.candidate){var o=e.sdpMLineIndex;if(e.sdpMid)for(var l=0;l<n.transceivers.length;l++)if(n.transceivers[l].mid===e.sdpMid){o=l;break}var f=n.transceivers[o];if(!f)return s(c("OperationError","Can not add ICE candidate"));if(f.rejected)return i();var u=Object.keys(e.candidate).length>0?r.parseCandidate(e.candidate):{};if("tcp"===u.protocol&&(0===u.port||9===u.port))return i();if(u.component&&1!==u.component)return i();if((0===o||o>0&&f.iceTransport!==n.transceivers[0].iceTransport)&&!a(f.iceTransport,u))return s(c("OperationError","Can not add ICE candidate"));var d=e.candidate.trim();0===d.indexOf("a=")&&(d=d.substr(2)),(t=r.getMediaSections(n._remoteDescription.sdp))[o]+="a="+(u.type?d:"end-of-candidates")+"\r\n",n._remoteDescription.sdp=r.getDescription(n._remoteDescription.sdp)+t.join("")}else for(var h=0;h<n.transceivers.length&&(n.transceivers[h].rejected||(n.transceivers[h].iceTransport.addRemoteCandidate({}),(t=r.getMediaSections(n._remoteDescription.sdp))[h]+="a=end-of-candidates\r\n",n._remoteDescription.sdp=r.getDescription(n._remoteDescription.sdp)+t.join(""),!n.usingBundle));h++);i()}))},f.prototype.getStats=function(t){if(t&&t instanceof e.MediaStreamTrack){var n=null;if(this.transceivers.forEach((function(e){e.rtpSender&&e.rtpSender.track===t?n=e.rtpSender:e.rtpReceiver&&e.rtpReceiver.track===t&&(n=e.rtpReceiver)})),!n)throw c("InvalidAccessError","Invalid selector.");return n.getStats()}var r=[];return this.transceivers.forEach((function(e){["rtpSender","rtpReceiver","iceGatherer","iceTransport","dtlsTransport"].forEach((function(t){e[t]&&r.push(e[t].getStats())}))})),Promise.all(r).then((function(e){var t=new Map;return e.forEach((function(e){e.forEach((function(e){t.set(e.id,e)}))})),t}))};["RTCRtpSender","RTCRtpReceiver","RTCIceGatherer","RTCIceTransport","RTCDtlsTransport"].forEach((function(t){var n=e[t];if(n&&n.prototype&&n.prototype.getStats){var r=n.prototype.getStats;n.prototype.getStats=function(){return r.apply(this).then((function(e){var t=new Map;return Object.keys(e).forEach((function(n){var r;e[n].type={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[(r=e[n]).type]||r.type,t.set(n,e[n])})),t}))}}}));var u=["createOffer","createAnswer"];return u.forEach((function(e){var t=f.prototype[e];f.prototype[e]=function(){var e=arguments;return"function"==typeof e[0]||"function"==typeof e[1]?t.apply(this,[arguments[2]]).then((function(t){"function"==typeof e[0]&&e[0].apply(null,[t])}),(function(t){"function"==typeof e[1]&&e[1].apply(null,[t])})):t.apply(this,arguments)}})),(u=["setLocalDescription","setRemoteDescription","addIceCandidate"]).forEach((function(e){var t=f.prototype[e];f.prototype[e]=function(){var e=arguments;return"function"==typeof e[1]||"function"==typeof e[2]?t.apply(this,arguments).then((function(){"function"==typeof e[1]&&e[1].apply(null)}),(function(t){"function"==typeof e[2]&&e[2].apply(null,[t])})):t.apply(this,arguments)}})),["getStats"].forEach((function(e){var t=f.prototype[e];f.prototype[e]=function(){var e=arguments;return"function"==typeof e[1]?t.apply(this,arguments).then((function(){"function"==typeof e[1]&&e[1].apply(null)})):t.apply(this,arguments)}})),f}},7539:e=>{"use strict";var t={generateIdentifier:function(){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){for(var t,n={foundation:(t=0===e.indexOf("a=candidate:")?e.substring(12).split(" "):e.substring(10).split(" "))[0],component:parseInt(t[1],10),protocol:t[2].toLowerCase(),priority:parseInt(t[3],10),ip:t[4],address:t[4],port:parseInt(t[5],10),type:t[7]},r=8;r<t.length;r+=2)switch(t[r]){case"raddr":n.relatedAddress=t[r+1];break;case"rport":n.relatedPort=parseInt(t[r+1],10);break;case"tcptype":n.tcpType=t[r+1];break;case"ufrag":n.ufrag=t[r+1],n.usernameFragment=t[r+1];break;default:n[t[r]]=t[r+1]}return n},t.writeCandidate=function(e){var t=[];t.push(e.foundation),t.push(e.component),t.push(e.protocol.toUpperCase()),t.push(e.priority),t.push(e.address||e.ip),t.push(e.port);var n=e.type;return t.push("typ"),t.push(n),"host"!==n&&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(" "),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){for(var t,n={},r=e.substr(e.indexOf(" ")+1).split(";"),i=0;i<r.length;i++)n[(t=r[i].trim().split("="))[0].trim()]=t[1];return n},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 r=[];Object.keys(e.parameters).forEach((function(t){e.parameters[t]?r.push(t+"="+e.parameters[t]):r.push(t)})),t+="a=fmtp:"+n+" "+r.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)},r=e.indexOf(":",t);return r>-1?(n.attribute=e.substr(t+1,r-t-1),n.value=e.substr(r+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 r=t.matchPrefix(e+n,"a=ice-ufrag:")[0],i=t.matchPrefix(e+n,"a=ice-pwd:")[0];return r&&i?{usernameFragment:r.substr(12),password:i.substr(10)}:null},t.writeIceParameters=function(e){return"a=ice-ufrag:"+e.usernameFragment+"\r\na=ice-pwd:"+e.password+"\r\n"},t.parseRtpParameters=function(e){for(var n={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},r=t.splitLines(e)[0].split(" "),i=3;i<r.length;i++){var s=r[i],o=t.matchPrefix(e,"a=rtpmap:"+s+" ")[0];if(o){var a=t.parseRtpMap(o),c=t.matchPrefix(e,"a=fmtp:"+s+" ");switch(a.parameters=c.length?t.parseFmtp(c[0]):{},a.rtcpFeedback=t.matchPrefix(e,"a=rtcp-fb:"+s+" ").map(t.parseRtcpFb),n.codecs.push(a),a.name.toUpperCase()){case"RED":case"ULPFEC":n.fecMechanisms.push(a.name.toUpperCase())}}}return t.matchPrefix(e,"a=extmap:").forEach((function(e){n.headerExtensions.push(t.parseExtmap(e))})),n},t.writeRtpDescription=function(e,n){var r="";r+="m="+e+" ",r+=n.codecs.length>0?"9":"0",r+=" UDP/TLS/RTP/SAVPF ",r+=n.codecs.map((function(e){return void 0!==e.preferredPayloadType?e.preferredPayloadType:e.payloadType})).join(" ")+"\r\n",r+="c=IN IP4 0.0.0.0\r\n",r+="a=rtcp:9 IN IP4 0.0.0.0\r\n",n.codecs.forEach((function(e){r+=t.writeRtpMap(e),r+=t.writeFmtp(e),r+=t.writeRtcpFb(e)}));var i=0;return n.codecs.forEach((function(e){e.maxptime>i&&(i=e.maxptime)})),i>0&&(r+="a=maxptime:"+i+"\r\n"),r+="a=rtcp-mux\r\n",n.headerExtensions&&n.headerExtensions.forEach((function(e){r+=t.writeExtmap(e)})),r},t.parseRtpEncodingParameters=function(e){var n,r=[],i=t.parseRtpParameters(e),s=-1!==i.fecMechanisms.indexOf("RED"),o=-1!==i.fecMechanisms.indexOf("ULPFEC"),a=t.matchPrefix(e,"a=ssrc:").map((function(e){return t.parseSsrcMedia(e)})).filter((function(e){return"cname"===e.attribute})),c=a.length>0&&a[0].ssrc,l=t.matchPrefix(e,"a=ssrc-group:FID").map((function(e){return e.substr(17).split(" ").map((function(e){return parseInt(e,10)}))}));l.length>0&&l[0].length>1&&l[0][0]===c&&(n=l[0][1]),i.codecs.forEach((function(e){if("RTX"===e.name.toUpperCase()&&e.parameters.apt){var t={ssrc:c,codecPayloadType:parseInt(e.parameters.apt,10)};c&&n&&(t.rtx={ssrc:n}),r.push(t),s&&((t=JSON.parse(JSON.stringify(t))).fec={ssrc:c,mechanism:o?"red+ulpfec":"red"},r.push(t))}})),0===r.length&&c&&r.push({ssrc:c});var f=t.matchPrefix(e,"b=");return f.length&&(f=0===f[0].indexOf("b=TIAS:")?parseInt(f[0].substr(7),10):0===f[0].indexOf("b=AS:")?1e3*parseInt(f[0].substr(5),10)*.95-16e3:void 0,r.forEach((function(e){e.maxBitrate=f}))),r},t.parseRtcpParameters=function(e){var n={},r=t.matchPrefix(e,"a=ssrc:").map((function(e){return t.parseSsrcMedia(e)})).filter((function(e){return"cname"===e.attribute}))[0];r&&(n.cname=r.value,n.ssrc=r.ssrc);var i=t.matchPrefix(e,"a=rtcp-rsize");n.reducedSize=i.length>0,n.compound=0===i.length;var s=t.matchPrefix(e,"a=rtcp-mux");return n.mux=s.length>0,n},t.parseMsid=function(e){var n,r=t.matchPrefix(e,"a=msid:");if(1===r.length)return{stream:(n=r[0].substr(7).split(" "))[0],track:n[1]};var i=t.matchPrefix(e,"a=ssrc:").map((function(e){return t.parseSsrcMedia(e)})).filter((function(e){return"msid"===e.attribute}));return i.length>0?{stream:(n=i[0].value.split(" "))[0],track:n[1]}:void 0},t.parseSctpDescription=function(e){var n,r=t.parseMLine(e),i=t.matchPrefix(e,"a=max-message-size:");i.length>0&&(n=parseInt(i[0].substr(19),10)),isNaN(n)&&(n=65536);var s=t.matchPrefix(e,"a=sctp-port:");if(s.length>0)return{port:parseInt(s[0].substr(12),10),protocol:r.fmt,maxMessageSize:n};if(t.matchPrefix(e,"a=sctpmap:").length>0){var o=t.matchPrefix(e,"a=sctpmap:")[0].substr(10).split(" ");return{port:parseInt(o[0],10),protocol:o[1],maxMessageSize:n}}},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,r){var i=void 0!==n?n:2;return"v=0\r\no="+(r||"thisisadapterortc")+" "+(e||t.generateSessionId())+" "+i+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},t.writeMediaSection=function(e,n,r,i){var s=t.writeRtpDescription(e.kind,n);if(s+=t.writeIceParameters(e.iceGatherer.getLocalParameters()),s+=t.writeDtlsParameters(e.dtlsTransport.getLocalParameters(),"offer"===r?"actpass":"active"),s+="a=mid:"+e.mid+"\r\n",e.direction?s+="a="+e.direction+"\r\n":e.rtpSender&&e.rtpReceiver?s+="a=sendrecv\r\n":e.rtpSender?s+="a=sendonly\r\n":e.rtpReceiver?s+="a=recvonly\r\n":s+="a=inactive\r\n",e.rtpSender){var o="msid:"+i.id+" "+e.rtpSender.track.id+"\r\n";s+="a="+o,s+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" "+o,e.sendEncodingParameters[0].rtx&&(s+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" "+o,s+="a=ssrc-group:FID "+e.sendEncodingParameters[0].ssrc+" "+e.sendEncodingParameters[0].rtx.ssrc+"\r\n")}return s+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" cname:"+t.localCName+"\r\n",e.rtpSender&&e.sendEncodingParameters[0].rtx&&(s+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" cname:"+t.localCName+"\r\n"),s},t.getDirection=function(e,n){for(var r=t.splitLines(e),i=0;i<r.length;i++)switch(r[i]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return r[i].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;for(var n=t.splitLines(e),r=0;r<n.length;r++)if(n[r].length<2||"="!==n[r].charAt(1))return!1;return!0},e.exports=t},4860:(e,t,n)=>{"use strict";e.exports=n(9676)},4983:(e,t,n)=>{var r,i=n(5848),s={};for(r in e.exports=s,i)s[i[r]]=r},5620:e=>{"use strict";e.exports=JSON.parse('["cent","copy","divide","gt","lt","not","para","times"]')},7472:e=>{e.exports=String.fromCharCode},8003:e=>{e.exports={}.hasOwnProperty},4988:e=>{"use strict";e.exports=function(e,t){if(e=e.replace(t.subset?function(e){var t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}(t.subset):/["&'<>`]/g,n),t.subset||t.escapeOnly)return e;return e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,(function(e,n,r){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)})).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,n);function n(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}},4930:(e,t,n)=>{"use strict";var r=n(7529),i=n(4988),s=n(1586);e.exports=function(e,t){return i(e,r(t,{format:s}))}},5664:(e,t,n)=>{"use strict";var r=n(4988),i=n(1586);e.exports=function(e){return r(e,{escapeOnly:!0,useNamedReferences:!0,format:i})}},9676:(e,t,n)=>{"use strict";var r=n(4930),i=n(5664);e.exports=r,r.escape=i},1586:(e,t,n)=>{e.exports=function(e,t,n){var o,a,c;(n.useNamedReferences||n.useShortestReferences)&&(o=s(e,t,n.omitOptionalSemicolons,n.attribute));!n.useShortestReferences&&o||(a=r(e,t,n.omitOptionalSemicolons),n.useShortestReferences&&(c=i(e,t,n.omitOptionalSemicolons)).length<a.length&&(a=c));return o&&(!n.useShortestReferences||o.length<a.length)?o:a};var r=n(9206),i=n(9327),s=n(5906)},9327:(e,t,n)=>{e.exports=function(e,t,n){var i="&#"+String(e);return n&&t&&!/\d/.test(r(t))?i:i+";"};var r=n(7472)},9206:(e,t,n)=>{e.exports=function(e,t,n){var i="&#x"+e.toString(16).toUpperCase();return n&&t&&!/[\dA-Fa-f]/.test(r(t))?i:i+";"};var r=n(7472)},5906:(e,t,n)=>{e.exports=function(e,t,n,c){var l,f,u=s(e);if(o.call(i,u))return l=i[u],f="&"+l,n&&o.call(r,l)&&-1===a.indexOf(l)&&(!c||t&&61!==t&&/[^\da-z]/i.test(s(t)))?f:f+";";return""};var r=n(6588),i=n(4983),s=n(7472),o=n(8003),a=n(5620)},6181:(e,t,n)=>{"use strict";n.r(t);var r={};n.r(r),n.d(r,{fixNegotiationNeeded:()=>Ko,shimAddTrackRemoveTrack:()=>Yo,shimAddTrackRemoveTrackWithNative:()=>Qo,shimGetDisplayMedia:()=>zo,shimGetSendersWithDtmf:()=>Vo,shimGetStats:()=>Wo,shimGetUserMedia:()=>qo,shimMediaStream:()=>Go,shimOnTrack:()=>Ho,shimPeerConnection:()=>Xo,shimSenderReceiverGetStats:()=>$o});var i={};n.r(i),n.d(i,{shimGetDisplayMedia:()=>ta,shimGetUserMedia:()=>ea,shimPeerConnection:()=>na,shimReplaceTrack:()=>ra});var s={};n.r(s),n.d(s,{shimAddTransceiver:()=>da,shimCreateAnswer:()=>ma,shimCreateOffer:()=>pa,shimGetDisplayMedia:()=>sa,shimGetParameters:()=>ha,shimGetUserMedia:()=>ia,shimOnTrack:()=>oa,shimPeerConnection:()=>aa,shimRTCDataChannel:()=>ua,shimReceiverGetStats:()=>la,shimRemoveStream:()=>fa,shimSenderGetStats:()=>ca});var o={};n.r(o),n.d(o,{shimAudioContext:()=>Ea,shimCallbacksAPI:()=>ba,shimConstraints:()=>_a,shimCreateOfferLegacy:()=>Ca,shimGetUserMedia:()=>ya,shimLocalStreamsAPI:()=>ga,shimRTCIceServerUrls:()=>Aa,shimRemoteStreamsAPI:()=>va,shimTrackEventTransceiver:()=>wa});var a={};n.r(a),n.d(a,{removeAllowExtmapMixed:()=>Ia,shimConnectionState:()=>Na,shimMaxMessageSize:()=>xa,shimRTCIceCandidate:()=>Oa,shimSendThrowTypeError:()=>Ma});const c=/-(\w)/g,l=e=>e.replace(c,((e,t)=>t?t.toUpperCase():"")),f=/\B([A-Z])/g,u=e=>e.replace(f,"-$1").toLowerCase();function d(e,t,n){e[t]=[].concat(e[t]||[]),e[t].unshift(n)}function h(e,t){if(e){(e.$options[t]||[]).forEach((t=>{t.call(e)}))}}function p(e,t,{type:n}={}){if(/function Boolean/.test(String(n)))return"true"===e||"false"===e?"true"===e:""===e||e===t||null!=e;if((e=>/function Number/.test(String(e)))(n)){const t=parseFloat(e,10);return isNaN(t)?e:t}return e}function m(e,t){const n=[];for(let r=0,i=t.length;r<i;r++)n.push(g(e,t[r]));return n}function g(e,t){if(3===t.nodeType)return t.data.trim()?t.data:null;if(1===t.nodeType){const n={attrs:v(t),domProps:{innerHTML:t.innerHTML}};return n.attrs.slot&&(n.slot=n.attrs.slot,delete n.attrs.slot),e(t.tagName,n)}return null}function v(e){const t={};for(let n=0,r=e.attributes.length;n<r;n++){const r=e.attributes[n];t[r.nodeName]=r.nodeValue}return t}const b=function(e,t){const n="function"==typeof t&&!t.cid;let r,i,s,o=!1;function a(e){if(o)return;const t="function"==typeof e?e.options:e,n=Array.isArray(t.props)?t.props:Object.keys(t.props||{});r=n.map(u),i=n.map(l);const a=Array.isArray(t.props)?{}:t.props||{};s=i.reduce(((e,t,r)=>(e[t]=a[n[r]],e)),{}),d(t,"beforeCreate",(function(){const e=this.$emit;this.$emit=(t,...n)=>(this.$root.$options.customElement.dispatchEvent(function(e,t){return new CustomEvent(e,{bubbles:!1,cancelable:!1,detail:t})}(t,n)),e.call(this,t,...n))})),d(t,"created",(function(){i.forEach((e=>{this.$root.props[e]=this[e]}))})),i.forEach((e=>{Object.defineProperty(f.prototype,e,{get(){return this._wrapper.props[e]},set(t){this._wrapper.props[e]=t},enumerable:!1,configurable:!0})})),o=!0}function c(e,t){const n=l(t),r=e.hasAttribute(t)?e.getAttribute(t):void 0;e._wrapper.props[n]=p(r,t,s[n])}class f extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const n=this._wrapper=new e({name:"shadow-root",customElement:this,shadowRoot:this.shadowRoot,data:()=>({props:{},slotChildren:[]}),render(e){return e(t,{ref:"inner",props:this.props},this.slotChildren)}});new MutationObserver((e=>{let t=!1;for(let n=0;n<e.length;n++){const r=e[n];o&&"attributes"===r.type&&r.target===this?c(this,r.attributeName):t=!0}t&&(n.slotChildren=Object.freeze(m(n.$createElement,this.childNodes)))})).observe(this,{childList:!0,subtree:!0,characterData:!0,attributes:!0})}get vueComponent(){return this._wrapper.$refs.inner}connectedCallback(){const e=this._wrapper;if(e._isMounted)h(this.vueComponent,"activated");else{const n=()=>{e.props=function(e){const t={};return e.forEach((e=>{t[e]=void 0})),t}(i),r.forEach((e=>{c(this,e)}))};o?n():t().then((e=>{(e.__esModule||"Module"===e[Symbol.toStringTag])&&(e=e.default),a(e),n()})),e.slotChildren=Object.freeze(m(e.$createElement,this.childNodes)),e.$mount(),this.shadowRoot.appendChild(e.$el)}}disconnectedCallback(){h(this.vueComponent,"deactivated")}}return n||a(t),f};n(7363),n(6919);var y=Object.freeze({});function _(e){return null==e}function A(e){return null!=e}function w(e){return!0===e}function C(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function E(e){return null!==e&&"object"==typeof e}var S=Object.prototype.toString;function T(e){return"[object Object]"===S.call(e)}function O(e){return"[object RegExp]"===S.call(e)}function x(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function M(e){return A(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function N(e){return null==e?"":Array.isArray(e)||T(e)&&e.toString===S?JSON.stringify(e,null,2):String(e)}function I(e){var t=parseFloat(e);return isNaN(t)?e:t}function R(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}R("slot,component",!0);var k=R("key,ref,slot,slot-scope,is");function P(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var D=Object.prototype.hasOwnProperty;function F(e,t){return D.call(e,t)}function B(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var L=/-(\w)/g,j=B((function(e){return e.replace(L,(function(e,t){return t?t.toUpperCase():""}))})),U=B((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),q=/\B([A-Z])/g,z=B((function(e){return e.replace(q,"-$1").toLowerCase()}));var G=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function H(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function V(e,t){for(var n in t)e[n]=t[n];return e}function W(e){for(var t={},n=0;n<e.length;n++)e[n]&&V(t,e[n]);return t}function $(e,t,n){}var Q=function(e,t,n){return!1},Y=function(e){return e};function X(e,t){if(e===t)return!0;var n=E(e),r=E(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=Array.isArray(e),s=Array.isArray(t);if(i&&s)return e.length===t.length&&e.every((function(e,n){return X(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||s)return!1;var o=Object.keys(e),a=Object.keys(t);return o.length===a.length&&o.every((function(n){return X(e[n],t[n])}))}catch(e){return!1}}function K(e,t){for(var n=0;n<e.length;n++)if(X(e[n],t))return n;return-1}function Z(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var J="data-server-rendered",ee=["component","directive","filter"],te=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],ne={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:Q,isReservedAttr:Q,isUnknownElement:Q,getTagNamespace:$,parsePlatformTagName:Y,mustUseProp:Q,async:!0,_lifecycleHooks:te},re=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function ie(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function se(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var oe=new RegExp("[^"+re.source+".$_\\d]");var ae,ce="__proto__"in{},le="undefined"!=typeof window,fe="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,ue=fe&&WXEnvironment.platform.toLowerCase(),de=le&&window.navigator.userAgent.toLowerCase(),he=de&&/msie|trident/.test(de),pe=de&&de.indexOf("msie 9.0")>0,me=de&&de.indexOf("edge/")>0,ge=(de&&de.indexOf("android"),de&&/iphone|ipad|ipod|ios/.test(de)||"ios"===ue),ve=(de&&/chrome\/\d+/.test(de),de&&/phantomjs/.test(de),de&&de.match(/firefox\/(\d+)/)),be={}.watch,ye=!1;if(le)try{var _e={};Object.defineProperty(_e,"passive",{get:function(){ye=!0}}),window.addEventListener("test-passive",null,_e)}catch(e){}var Ae=function(){return void 0===ae&&(ae=!le&&!fe&&void 0!==n.g&&(n.g.process&&"server"===n.g.process.env.VUE_ENV)),ae},we=le&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function Ce(e){return"function"==typeof e&&/native code/.test(e.toString())}var Ee,Se="undefined"!=typeof Symbol&&Ce(Symbol)&&"undefined"!=typeof Reflect&&Ce(Reflect.ownKeys);Ee="undefined"!=typeof Set&&Ce(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var Te=$,Oe=0,xe=function(){this.id=Oe++,this.subs=[]};xe.prototype.addSub=function(e){this.subs.push(e)},xe.prototype.removeSub=function(e){P(this.subs,e)},xe.prototype.depend=function(){xe.target&&xe.target.addDep(this)},xe.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t<n;t++)e[t].update()},xe.target=null;var Me=[];function Ne(e){Me.push(e),xe.target=e}function Ie(){Me.pop(),xe.target=Me[Me.length-1]}var Re=function(e,t,n,r,i,s,o,a){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=s,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=o,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=a,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},ke={child:{configurable:!0}};ke.child.get=function(){return this.componentInstance},Object.defineProperties(Re.prototype,ke);var Pe=function(e){void 0===e&&(e="");var t=new Re;return t.text=e,t.isComment=!0,t};function De(e){return new Re(void 0,void 0,void 0,String(e))}function Fe(e){var t=new Re(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var Be=Array.prototype,Le=Object.create(Be);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){var t=Be[e];se(Le,e,(function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];var i,s=t.apply(this,n),o=this.__ob__;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&o.observeArray(i),o.dep.notify(),s}))}));var je=Object.getOwnPropertyNames(Le),Ue=!0;function qe(e){Ue=e}var ze=function(e){this.value=e,this.dep=new xe,this.vmCount=0,se(e,"__ob__",this),Array.isArray(e)?(ce?function(e,t){e.__proto__=t}(e,Le):function(e,t,n){for(var r=0,i=n.length;r<i;r++){var s=n[r];se(e,s,t[s])}}(e,Le,je),this.observeArray(e)):this.walk(e)};function Ge(e,t){var n;if(E(e)&&!(e instanceof Re))return F(e,"__ob__")&&e.__ob__ instanceof ze?n=e.__ob__:Ue&&!Ae()&&(Array.isArray(e)||T(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new ze(e)),t&&n&&n.vmCount++,n}function He(e,t,n,r,i){var s=new xe,o=Object.getOwnPropertyDescriptor(e,t);if(!o||!1!==o.configurable){var a=o&&o.get,c=o&&o.set;a&&!c||2!==arguments.length||(n=e[t]);var l=!i&&Ge(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=a?a.call(e):n;return xe.target&&(s.depend(),l&&(l.dep.depend(),Array.isArray(t)&&$e(t))),t},set:function(t){var r=a?a.call(e):n;t===r||t!=t&&r!=r||a&&!c||(c?c.call(e,t):n=t,l=!i&&Ge(t),s.notify())}})}}function Ve(e,t,n){if(Array.isArray(e)&&x(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(He(r.value,t,n),r.dep.notify(),n):(e[t]=n,n)}function We(e,t){if(Array.isArray(e)&&x(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||F(e,t)&&(delete e[t],n&&n.dep.notify())}}function $e(e){for(var t=void 0,n=0,r=e.length;n<r;n++)(t=e[n])&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&$e(t)}ze.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)He(e,t[n])},ze.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Ge(e[t])};var Qe=ne.optionMergeStrategies;function Ye(e,t){if(!t)return e;for(var n,r,i,s=Se?Reflect.ownKeys(t):Object.keys(t),o=0;o<s.length;o++)"__ob__"!==(n=s[o])&&(r=e[n],i=t[n],F(e,n)?r!==i&&T(r)&&T(i)&&Ye(r,i):Ve(e,n,i));return e}function Xe(e,t,n){return n?function(){var r="function"==typeof t?t.call(n,n):t,i="function"==typeof e?e.call(n,n):e;return r?Ye(r,i):i}:t?e?function(){return Ye("function"==typeof t?t.call(this,this):t,"function"==typeof e?e.call(this,this):e)}:t:e}function Ke(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}function Ze(e,t,n,r){var i=Object.create(e||null);return t?V(i,t):i}Qe.data=function(e,t,n){return n?Xe(e,t,n):t&&"function"!=typeof t?e:Xe(e,t)},te.forEach((function(e){Qe[e]=Ke})),ee.forEach((function(e){Qe[e+"s"]=Ze})),Qe.watch=function(e,t,n,r){if(e===be&&(e=void 0),t===be&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var i={};for(var s in V(i,e),t){var o=i[s],a=t[s];o&&!Array.isArray(o)&&(o=[o]),i[s]=o?o.concat(a):Array.isArray(a)?a:[a]}return i},Qe.props=Qe.methods=Qe.inject=Qe.computed=function(e,t,n,r){if(!e)return t;var i=Object.create(null);return V(i,e),t&&V(i,t),i},Qe.provide=Xe;var Je=function(e,t){return void 0===t?e:t};function et(e,t,n){if("function"==typeof t&&(t=t.options),function(e,t){var n=e.props;if(n){var r,i,s={};if(Array.isArray(n))for(r=n.length;r--;)"string"==typeof(i=n[r])&&(s[j(i)]={type:null});else if(T(n))for(var o in n)i=n[o],s[j(o)]=T(i)?i:{type:i};e.props=s}}(t),function(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(T(n))for(var s in n){var o=n[s];r[s]=T(o)?V({from:s},o):{from:o}}}}(t),function(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"==typeof r&&(t[n]={bind:r,update:r})}}(t),!t._base&&(t.extends&&(e=et(e,t.extends,n)),t.mixins))for(var r=0,i=t.mixins.length;r<i;r++)e=et(e,t.mixins[r],n);var s,o={};for(s in e)a(s);for(s in t)F(e,s)||a(s);function a(r){var i=Qe[r]||Je;o[r]=i(e[r],t[r],n,r)}return o}function tt(e,t,n,r){if("string"==typeof n){var i=e[t];if(F(i,n))return i[n];var s=j(n);if(F(i,s))return i[s];var o=U(s);return F(i,o)?i[o]:i[n]||i[s]||i[o]}}function nt(e,t,n,r){var i=t[e],s=!F(n,e),o=n[e],a=st(Boolean,i.type);if(a>-1)if(s&&!F(i,"default"))o=!1;else if(""===o||o===z(e)){var c=st(String,i.type);(c<0||a<c)&&(o=!0)}if(void 0===o){o=function(e,t,n){if(!F(t,"default"))return;var r=t.default;0;if(e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n])return e._props[n];return"function"==typeof r&&"Function"!==rt(t.type)?r.call(e):r}(r,i,e);var l=Ue;qe(!0),Ge(o),qe(l)}return o}function rt(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function it(e,t){return rt(e)===rt(t)}function st(e,t){if(!Array.isArray(t))return it(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(it(t[n],e))return n;return-1}function ot(e,t,n){Ne();try{if(t)for(var r=t;r=r.$parent;){var i=r.$options.errorCaptured;if(i)for(var s=0;s<i.length;s++)try{if(!1===i[s].call(r,e,t,n))return}catch(e){ct(e,r,"errorCaptured hook")}}ct(e,t,n)}finally{Ie()}}function at(e,t,n,r,i){var s;try{(s=n?e.apply(t,n):e.call(t))&&!s._isVue&&M(s)&&!s._handled&&(s.catch((function(e){return ot(e,r,i+" (Promise/async)")})),s._handled=!0)}catch(e){ot(e,r,i)}return s}function ct(e,t,n){if(ne.errorHandler)try{return ne.errorHandler.call(null,e,t,n)}catch(t){t!==e&<(t,null,"config.errorHandler")}lt(e,t,n)}function lt(e,t,n){if(!le&&!fe||"undefined"==typeof console)throw e;console.error(e)}var ft,ut=!1,dt=[],ht=!1;function pt(){ht=!1;var e=dt.slice(0);dt.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!=typeof Promise&&Ce(Promise)){var mt=Promise.resolve();ft=function(){mt.then(pt),ge&&setTimeout($)},ut=!0}else if(he||"undefined"==typeof MutationObserver||!Ce(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())ft="undefined"!=typeof setImmediate&&Ce(setImmediate)?function(){setImmediate(pt)}:function(){setTimeout(pt,0)};else{var gt=1,vt=new MutationObserver(pt),bt=document.createTextNode(String(gt));vt.observe(bt,{characterData:!0}),ft=function(){gt=(gt+1)%2,bt.data=String(gt)},ut=!0}function yt(e,t){var n;if(dt.push((function(){if(e)try{e.call(t)}catch(e){ot(e,t,"nextTick")}else n&&n(t)})),ht||(ht=!0,ft()),!e&&"undefined"!=typeof Promise)return new Promise((function(e){n=e}))}var _t=new Ee;function At(e){wt(e,_t),_t.clear()}function wt(e,t){var n,r,i=Array.isArray(e);if(!(!i&&!E(e)||Object.isFrozen(e)||e instanceof Re)){if(e.__ob__){var s=e.__ob__.dep.id;if(t.has(s))return;t.add(s)}if(i)for(n=e.length;n--;)wt(e[n],t);else for(n=(r=Object.keys(e)).length;n--;)wt(e[r[n]],t)}}var Ct=B((function(e){var t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),r="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=r?e.slice(1):e,once:n,capture:r,passive:t}}));function Et(e,t){function n(){var e=arguments,r=n.fns;if(!Array.isArray(r))return at(r,null,arguments,t,"v-on handler");for(var i=r.slice(),s=0;s<i.length;s++)at(i[s],null,e,t,"v-on handler")}return n.fns=e,n}function St(e,t,n,r,i,s){var o,a,c,l;for(o in e)a=e[o],c=t[o],l=Ct(o),_(a)||(_(c)?(_(a.fns)&&(a=e[o]=Et(a,s)),w(l.once)&&(a=e[o]=i(l.name,a,l.capture)),n(l.name,a,l.capture,l.passive,l.params)):a!==c&&(c.fns=a,e[o]=c));for(o in t)_(e[o])&&r((l=Ct(o)).name,t[o],l.capture)}function Tt(e,t,n){var r;e instanceof Re&&(e=e.data.hook||(e.data.hook={}));var i=e[t];function s(){n.apply(this,arguments),P(r.fns,s)}_(i)?r=Et([s]):A(i.fns)&&w(i.merged)?(r=i).fns.push(s):r=Et([i,s]),r.merged=!0,e[t]=r}function Ot(e,t,n,r,i){if(A(t)){if(F(t,n))return e[n]=t[n],i||delete t[n],!0;if(F(t,r))return e[n]=t[r],i||delete t[r],!0}return!1}function xt(e){return C(e)?[De(e)]:Array.isArray(e)?Nt(e):void 0}function Mt(e){return A(e)&&A(e.text)&&!1===e.isComment}function Nt(e,t){var n,r,i,s,o=[];for(n=0;n<e.length;n++)_(r=e[n])||"boolean"==typeof r||(s=o[i=o.length-1],Array.isArray(r)?r.length>0&&(Mt((r=Nt(r,(t||"")+"_"+n))[0])&&Mt(s)&&(o[i]=De(s.text+r[0].text),r.shift()),o.push.apply(o,r)):C(r)?Mt(s)?o[i]=De(s.text+r):""!==r&&o.push(De(r)):Mt(r)&&Mt(s)?o[i]=De(s.text+r.text):(w(e._isVList)&&A(r.tag)&&_(r.key)&&A(t)&&(r.key="__vlist"+t+"_"+n+"__"),o.push(r)));return o}function It(e,t){if(e){for(var n=Object.create(null),r=Se?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var s=r[i];if("__ob__"!==s){for(var o=e[s].from,a=t;a;){if(a._provided&&F(a._provided,o)){n[s]=a._provided[o];break}a=a.$parent}if(!a)if("default"in e[s]){var c=e[s].default;n[s]="function"==typeof c?c.call(t):c}else 0}}return n}}function Rt(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var s=e[r],o=s.data;if(o&&o.attrs&&o.attrs.slot&&delete o.attrs.slot,s.context!==t&&s.fnContext!==t||!o||null==o.slot)(n.default||(n.default=[])).push(s);else{var a=o.slot,c=n[a]||(n[a]=[]);"template"===s.tag?c.push.apply(c,s.children||[]):c.push(s)}}for(var l in n)n[l].every(kt)&&delete n[l];return n}function kt(e){return e.isComment&&!e.asyncFactory||" "===e.text}function Pt(e,t,n){var r,i=Object.keys(t).length>0,s=e?!!e.$stable:!i,o=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(s&&n&&n!==y&&o===n.$key&&!i&&!n.$hasNormal)return n;for(var a in r={},e)e[a]&&"$"!==a[0]&&(r[a]=Dt(t,a,e[a]))}else r={};for(var c in t)c in r||(r[c]=Ft(t,c));return e&&Object.isExtensible(e)&&(e._normalized=r),se(r,"$stable",s),se(r,"$key",o),se(r,"$hasNormal",i),r}function Dt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:xt(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function Ft(e,t){return function(){return e[t]}}function Bt(e,t){var n,r,i,s,o;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),r=0,i=e.length;r<i;r++)n[r]=t(e[r],r);else if("number"==typeof e)for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r);else if(E(e))if(Se&&e[Symbol.iterator]){n=[];for(var a=e[Symbol.iterator](),c=a.next();!c.done;)n.push(t(c.value,n.length)),c=a.next()}else for(s=Object.keys(e),n=new Array(s.length),r=0,i=s.length;r<i;r++)o=s[r],n[r]=t(e[o],o,r);return A(n)||(n=[]),n._isVList=!0,n}function Lt(e,t,n,r){var i,s=this.$scopedSlots[e];s?(n=n||{},r&&(n=V(V({},r),n)),i=s(n)||t):i=this.$slots[e]||t;var o=n&&n.slot;return o?this.$createElement("template",{slot:o},i):i}function jt(e){return tt(this.$options,"filters",e)||Y}function Ut(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function qt(e,t,n,r,i){var s=ne.keyCodes[t]||n;return i&&r&&!ne.keyCodes[t]?Ut(i,r):s?Ut(s,e):r?z(r)!==t:void 0}function zt(e,t,n,r,i){if(n)if(E(n)){var s;Array.isArray(n)&&(n=W(n));var o=function(o){if("class"===o||"style"===o||k(o))s=e;else{var a=e.attrs&&e.attrs.type;s=r||ne.mustUseProp(t,a,o)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var c=j(o),l=z(o);c in s||l in s||(s[o]=n[o],i&&((e.on||(e.on={}))["update:"+o]=function(e){n[o]=e}))};for(var a in n)o(a)}else;return e}function Gt(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t||Vt(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),"__static__"+e,!1),r}function Ht(e,t,n){return Vt(e,"__once__"+t+(n?"_"+n:""),!0),e}function Vt(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&Wt(e[r],t+"_"+r,n);else Wt(e,t,n)}function Wt(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function $t(e,t){if(t)if(T(t)){var n=e.on=e.on?V({},e.on):{};for(var r in t){var i=n[r],s=t[r];n[r]=i?[].concat(i,s):s}}else;return e}function Qt(e,t,n,r){t=t||{$stable:!n};for(var i=0;i<e.length;i++){var s=e[i];Array.isArray(s)?Qt(s,t,n):s&&(s.proxy&&(s.fn.proxy=!0),t[s.key]=s.fn)}return r&&(t.$key=r),t}function Yt(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"==typeof r&&r&&(e[t[n]]=t[n+1])}return e}function Xt(e,t){return"string"==typeof e?t+e:e}function Kt(e){e._o=Ht,e._n=I,e._s=N,e._l=Bt,e._t=Lt,e._q=X,e._i=K,e._m=Gt,e._f=jt,e._k=qt,e._b=zt,e._v=De,e._e=Pe,e._u=Qt,e._g=$t,e._d=Yt,e._p=Xt}function Zt(e,t,n,r,i){var s,o=this,a=i.options;F(r,"_uid")?(s=Object.create(r))._original=r:(s=r,r=r._original);var c=w(a._compiled),l=!c;this.data=e,this.props=t,this.children=n,this.parent=r,this.listeners=e.on||y,this.injections=It(a.inject,r),this.slots=function(){return o.$slots||Pt(e.scopedSlots,o.$slots=Rt(n,r)),o.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Pt(e.scopedSlots,this.slots())}}),c&&(this.$options=a,this.$slots=this.slots(),this.$scopedSlots=Pt(e.scopedSlots,this.$slots)),a._scopeId?this._c=function(e,t,n,i){var o=on(s,e,t,n,i,l);return o&&!Array.isArray(o)&&(o.fnScopeId=a._scopeId,o.fnContext=r),o}:this._c=function(e,t,n,r){return on(s,e,t,n,r,l)}}function Jt(e,t,n,r,i){var s=Fe(e);return s.fnContext=n,s.fnOptions=r,t.slot&&((s.data||(s.data={})).slot=t.slot),s}function en(e,t){for(var n in t)e[j(n)]=t[n]}Kt(Zt.prototype);var tn={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;tn.prepatch(n,n)}else{(e.componentInstance=function(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;A(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns);return new e.componentOptions.Ctor(n)}(e,vn)).$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions;!function(e,t,n,r,i){0;var s=r.data.scopedSlots,o=e.$scopedSlots,a=!!(s&&!s.$stable||o!==y&&!o.$stable||s&&e.$scopedSlots.$key!==s.$key),c=!!(i||e.$options._renderChildren||a);e.$options._parentVnode=r,e.$vnode=r,e._vnode&&(e._vnode.parent=r);if(e.$options._renderChildren=i,e.$attrs=r.data.attrs||y,e.$listeners=n||y,t&&e.$options.props){qe(!1);for(var l=e._props,f=e.$options._propKeys||[],u=0;u<f.length;u++){var d=f[u],h=e.$options.props;l[d]=nt(d,h,t,e)}qe(!0),e.$options.propsData=t}n=n||y;var p=e.$options._parentListeners;e.$options._parentListeners=n,gn(e,n,p),c&&(e.$slots=Rt(i,r.context),e.$forceUpdate());0}(t.componentInstance=e.componentInstance,n.propsData,n.listeners,t,n.children)},insert:function(e){var t,n=e.context,r=e.componentInstance;r._isMounted||(r._isMounted=!0,wn(r,"mounted")),e.data.keepAlive&&(n._isMounted?((t=r)._inactive=!1,En.push(t)):_n(r,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?An(t,!0):t.$destroy())}},nn=Object.keys(tn);function rn(e,t,n,r,i){if(!_(e)){var s=n.$options._base;if(E(e)&&(e=s.extend(e)),"function"==typeof e){var o;if(_(e.cid)&&void 0===(e=function(e,t){if(w(e.error)&&A(e.errorComp))return e.errorComp;if(A(e.resolved))return e.resolved;var n=ln;n&&A(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n);if(w(e.loading)&&A(e.loadingComp))return e.loadingComp;if(n&&!A(e.owners)){var r=e.owners=[n],i=!0,s=null,o=null;n.$on("hook:destroyed",(function(){return P(r,n)}));var a=function(e){for(var t=0,n=r.length;t<n;t++)r[t].$forceUpdate();e&&(r.length=0,null!==s&&(clearTimeout(s),s=null),null!==o&&(clearTimeout(o),o=null))},c=Z((function(n){e.resolved=fn(n,t),i?r.length=0:a(!0)})),l=Z((function(t){A(e.errorComp)&&(e.error=!0,a(!0))})),f=e(c,l);return E(f)&&(M(f)?_(e.resolved)&&f.then(c,l):M(f.component)&&(f.component.then(c,l),A(f.error)&&(e.errorComp=fn(f.error,t)),A(f.loading)&&(e.loadingComp=fn(f.loading,t),0===f.delay?e.loading=!0:s=setTimeout((function(){s=null,_(e.resolved)&&_(e.error)&&(e.loading=!0,a(!1))}),f.delay||200)),A(f.timeout)&&(o=setTimeout((function(){o=null,_(e.resolved)&&l(null)}),f.timeout)))),i=!1,e.loading?e.loadingComp:e.resolved}}(o=e,s)))return function(e,t,n,r,i){var s=Pe();return s.asyncFactory=e,s.asyncMeta={data:t,context:n,children:r,tag:i},s}(o,t,n,r,i);t=t||{},Hn(e),A(t.model)&&function(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var i=t.on||(t.on={}),s=i[r],o=t.model.callback;A(s)?(Array.isArray(s)?-1===s.indexOf(o):s!==o)&&(i[r]=[o].concat(s)):i[r]=o}(e.options,t);var a=function(e,t,n){var r=t.options.props;if(!_(r)){var i={},s=e.attrs,o=e.props;if(A(s)||A(o))for(var a in r){var c=z(a);Ot(i,o,a,c,!0)||Ot(i,s,a,c,!1)}return i}}(t,e);if(w(e.options.functional))return function(e,t,n,r,i){var s=e.options,o={},a=s.props;if(A(a))for(var c in a)o[c]=nt(c,a,t||y);else A(n.attrs)&&en(o,n.attrs),A(n.props)&&en(o,n.props);var l=new Zt(n,o,i,r,e),f=s.render.call(null,l._c,l);if(f instanceof Re)return Jt(f,n,l.parent,s);if(Array.isArray(f)){for(var u=xt(f)||[],d=new Array(u.length),h=0;h<u.length;h++)d[h]=Jt(u[h],n,l.parent,s);return d}}(e,a,t,n,r);var c=t.on;if(t.on=t.nativeOn,w(e.options.abstract)){var l=t.slot;t={},l&&(t.slot=l)}!function(e){for(var t=e.hook||(e.hook={}),n=0;n<nn.length;n++){var r=nn[n],i=t[r],s=tn[r];i===s||i&&i._merged||(t[r]=i?sn(s,i):s)}}(t);var f=e.options.name||i;return new Re("vue-component-"+e.cid+(f?"-"+f:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:a,listeners:c,tag:i,children:r},o)}}}function sn(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}function on(e,t,n,r,i,s){return(Array.isArray(n)||C(n))&&(i=r,r=n,n=void 0),w(s)&&(i=2),function(e,t,n,r,i){if(A(n)&&A(n.__ob__))return Pe();A(n)&&A(n.is)&&(t=n.is);if(!t)return Pe();0;Array.isArray(r)&&"function"==typeof r[0]&&((n=n||{}).scopedSlots={default:r[0]},r.length=0);2===i?r=xt(r):1===i&&(r=function(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}(r));var s,o;if("string"==typeof t){var a;o=e.$vnode&&e.$vnode.ns||ne.getTagNamespace(t),s=ne.isReservedTag(t)?new Re(ne.parsePlatformTagName(t),n,r,void 0,void 0,e):n&&n.pre||!A(a=tt(e.$options,"components",t))?new Re(t,n,r,void 0,void 0,e):rn(a,n,e,r,t)}else s=rn(t,n,e,r);return Array.isArray(s)?s:A(s)?(A(o)&&an(s,o),A(n)&&function(e){E(e.style)&&At(e.style);E(e.class)&&At(e.class)}(n),s):Pe()}(e,t,n,r,i)}function an(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),A(e.children))for(var r=0,i=e.children.length;r<i;r++){var s=e.children[r];A(s.tag)&&(_(s.ns)||w(n)&&"svg"!==s.tag)&&an(s,t,n)}}var cn,ln=null;function fn(e,t){return(e.__esModule||Se&&"Module"===e[Symbol.toStringTag])&&(e=e.default),E(e)?t.extend(e):e}function un(e){return e.isComment&&e.asyncFactory}function dn(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(A(n)&&(A(n.componentOptions)||un(n)))return n}}function hn(e,t){cn.$on(e,t)}function pn(e,t){cn.$off(e,t)}function mn(e,t){var n=cn;return function r(){var i=t.apply(null,arguments);null!==i&&n.$off(e,r)}}function gn(e,t,n){cn=e,St(t,n||{},hn,pn,mn,e),cn=void 0}var vn=null;function bn(e){var t=vn;return vn=e,function(){vn=t}}function yn(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function _n(e,t){if(t){if(e._directInactive=!1,yn(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)_n(e.$children[n]);wn(e,"activated")}}function An(e,t){if(!(t&&(e._directInactive=!0,yn(e))||e._inactive)){e._inactive=!0;for(var n=0;n<e.$children.length;n++)An(e.$children[n]);wn(e,"deactivated")}}function wn(e,t){Ne();var n=e.$options[t],r=t+" hook";if(n)for(var i=0,s=n.length;i<s;i++)at(n[i],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),Ie()}var Cn=[],En=[],Sn={},Tn=!1,On=!1,xn=0;var Mn=0,Nn=Date.now;if(le&&!he){var In=window.performance;In&&"function"==typeof In.now&&Nn()>document.createEvent("Event").timeStamp&&(Nn=function(){return In.now()})}function Rn(){var e,t;for(Mn=Nn(),On=!0,Cn.sort((function(e,t){return e.id-t.id})),xn=0;xn<Cn.length;xn++)(e=Cn[xn]).before&&e.before(),t=e.id,Sn[t]=null,e.run();var n=En.slice(),r=Cn.slice();xn=Cn.length=En.length=0,Sn={},Tn=On=!1,function(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,_n(e[t],!0)}(n),function(e){var t=e.length;for(;t--;){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&wn(r,"updated")}}(r),we&&ne.devtools&&we.emit("flush")}var kn=0,Pn=function(e,t,n,r,i){this.vm=e,i&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++kn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new Ee,this.newDepIds=new Ee,this.expression="","function"==typeof t?this.getter=t:(this.getter=function(e){if(!oe.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}(t),this.getter||(this.getter=$)),this.value=this.lazy?void 0:this.get()};Pn.prototype.get=function(){var e;Ne(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(e){if(!this.user)throw e;ot(e,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&At(e),Ie(),this.cleanupDeps()}return e},Pn.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},Pn.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},Pn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(e){var t=e.id;if(null==Sn[t]){if(Sn[t]=!0,On){for(var n=Cn.length-1;n>xn&&Cn[n].id>e.id;)n--;Cn.splice(n+1,0,e)}else Cn.push(e);Tn||(Tn=!0,yt(Rn))}}(this)},Pn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||E(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){ot(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},Pn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Pn.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},Pn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||P(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var Dn={enumerable:!0,configurable:!0,get:$,set:$};function Fn(e,t,n){Dn.get=function(){return this[t][n]},Dn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Dn)}function Bn(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[];e.$parent&&qe(!1);var s=function(s){i.push(s);var o=nt(s,t,n,e);He(r,s,o),s in e||Fn(e,"_props",s)};for(var o in t)s(o);qe(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?$:G(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;T(t=e._data="function"==typeof t?function(e,t){Ne();try{return e.call(t,t)}catch(e){return ot(e,t,"data()"),{}}finally{Ie()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);for(;i--;){var s=n[i];0,r&&F(r,s)||ie(s)||Fn(e,"_data",s)}Ge(t,!0)}(e):Ge(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=Ae();for(var i in t){var s=t[i],o="function"==typeof s?s:s.get;0,r||(n[i]=new Pn(e,o||$,$,Ln)),i in e||jn(e,i,s)}}(e,t.computed),t.watch&&t.watch!==be&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)zn(e,n,r[i]);else zn(e,n,r)}}(e,t.watch)}var Ln={lazy:!0};function jn(e,t,n){var r=!Ae();"function"==typeof n?(Dn.get=r?Un(t):qn(n),Dn.set=$):(Dn.get=n.get?r&&!1!==n.cache?Un(t):qn(n.get):$,Dn.set=n.set||$),Object.defineProperty(e,t,Dn)}function Un(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),xe.target&&t.depend(),t.value}}function qn(e){return function(){return e.call(this,this)}}function zn(e,t,n,r){return T(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}var Gn=0;function Hn(e){var t=e.options;if(e.super){var n=Hn(e.super);if(n!==e.superOptions){e.superOptions=n;var r=function(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}(e);r&&V(e.extendOptions,r),(t=e.options=et(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function Vn(e){this._init(e)}function Wn(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var s=e.name||n.options.name;var o=function(e){this._init(e)};return(o.prototype=Object.create(n.prototype)).constructor=o,o.cid=t++,o.options=et(n.options,e),o.super=n,o.options.props&&function(e){var t=e.options.props;for(var n in t)Fn(e.prototype,"_props",n)}(o),o.options.computed&&function(e){var t=e.options.computed;for(var n in t)jn(e.prototype,n,t[n])}(o),o.extend=n.extend,o.mixin=n.mixin,o.use=n.use,ee.forEach((function(e){o[e]=n[e]})),s&&(o.options.components[s]=o),o.superOptions=n.options,o.extendOptions=e,o.sealedOptions=V({},o.options),i[r]=o,o}}function $n(e){return e&&(e.Ctor.options.name||e.tag)}function Qn(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!O(e)&&e.test(t)}function Yn(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var s in n){var o=n[s];if(o){var a=$n(o.componentOptions);a&&!t(a)&&Xn(n,s,r,i)}}}function Xn(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,P(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=Gn++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=et(Hn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&gn(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,r=n&&n.context;e.$slots=Rt(t._renderChildren,r),e.$scopedSlots=y,e._c=function(t,n,r,i){return on(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return on(e,t,n,r,i,!0)};var i=n&&n.data;He(e,"$attrs",i&&i.attrs||y,null,!0),He(e,"$listeners",t._parentListeners||y,null,!0)}(t),wn(t,"beforeCreate"),function(e){var t=It(e.$options.inject,e);t&&(qe(!1),Object.keys(t).forEach((function(n){He(e,n,t[n])})),qe(!0))}(t),Bn(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),wn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(Vn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Ve,e.prototype.$delete=We,e.prototype.$watch=function(e,t,n){var r=this;if(T(t))return zn(r,e,t,n);(n=n||{}).user=!0;var i=new Pn(r,e,t,n);if(n.immediate)try{t.call(r,i.value)}catch(e){ot(e,r,'callback for immediate watcher "'+i.expression+'"')}return function(){i.teardown()}}}(Vn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,s=e.length;i<s;i++)r.$on(e[i],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var r=0,i=e.length;r<i;r++)n.$off(e[r],t);return n}var s,o=n._events[e];if(!o)return n;if(!t)return n._events[e]=null,n;for(var a=o.length;a--;)if((s=o[a])===t||s.fn===t){o.splice(a,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?H(n):n;for(var r=H(arguments,1),i='event handler for "'+e+'"',s=0,o=n.length;s<o;s++)at(n[s],t,r,t,i)}return t}}(Vn),function(e){e.prototype._update=function(e,t){var n=this,r=n.$el,i=n._vnode,s=bn(n);n._vnode=e,n.$el=i?n.__patch__(i,e):n.__patch__(n.$el,e,t,!1),s(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){wn(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||P(t.$children,e),e._watcher&&e._watcher.teardown();for(var n=e._watchers.length;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),wn(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}(Vn),function(e){Kt(e.prototype),e.prototype.$nextTick=function(e){return yt(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,i=n._parentVnode;i&&(t.$scopedSlots=Pt(i.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=i;try{ln=t,e=r.call(t._renderProxy,t.$createElement)}catch(n){ot(n,t,"render"),e=t._vnode}finally{ln=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof Re||(e=Pe()),e.parent=i,e}}(Vn);var Kn=[String,RegExp,Array],Zn={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:Kn,exclude:Kn,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Xn(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){Yn(e,(function(e){return Qn(t,e)}))})),this.$watch("exclude",(function(t){Yn(e,(function(e){return!Qn(t,e)}))}))},render:function(){var e=this.$slots.default,t=dn(e),n=t&&t.componentOptions;if(n){var r=$n(n),i=this.include,s=this.exclude;if(i&&(!r||!Qn(i,r))||s&&r&&Qn(s,r))return t;var o=this.cache,a=this.keys,c=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;o[c]?(t.componentInstance=o[c].componentInstance,P(a,c),a.push(c)):(o[c]=t,a.push(c),this.max&&a.length>parseInt(this.max)&&Xn(o,a[0],a,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return ne}};Object.defineProperty(e,"config",t),e.util={warn:Te,extend:V,mergeOptions:et,defineReactive:He},e.set=Ve,e.delete=We,e.nextTick=yt,e.observable=function(e){return Ge(e),e},e.options=Object.create(null),ee.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,V(e.options.components,Zn),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=H(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=et(this.options,e),this}}(e),Wn(e),function(e){ee.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&T(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)}(Vn),Object.defineProperty(Vn.prototype,"$isServer",{get:Ae}),Object.defineProperty(Vn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Vn,"FunctionalRenderContext",{value:Zt}),Vn.version="2.6.12";var Jn=R("style,class"),er=R("input,textarea,option,select,progress"),tr=R("contenteditable,draggable,spellcheck"),nr=R("events,caret,typing,plaintext-only"),rr=R("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),ir="http://www.w3.org/1999/xlink",sr=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},or=function(e){return sr(e)?e.slice(6,e.length):""},ar=function(e){return null==e||!1===e};function cr(e){for(var t=e.data,n=e,r=e;A(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=lr(r.data,t));for(;A(n=n.parent);)n&&n.data&&(t=lr(t,n.data));return function(e,t){if(A(e)||A(t))return fr(e,ur(t));return""}(t.staticClass,t.class)}function lr(e,t){return{staticClass:fr(e.staticClass,t.staticClass),class:A(e.class)?[e.class,t.class]:t.class}}function fr(e,t){return e?t?e+" "+t:e:t||""}function ur(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,i=e.length;r<i;r++)A(t=ur(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}(e):E(e)?function(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}(e):"string"==typeof e?e:""}var dr={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},hr=R("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),pr=R("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),mr=function(e){return hr(e)||pr(e)};var gr=Object.create(null);var vr=R("text,number,password,search,email,tel,url");var br=Object.freeze({createElement:function(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n},createElementNS:function(e,t){return document.createElementNS(dr[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setStyleScope:function(e,t){e.setAttribute(t,"")}}),yr={create:function(e,t){_r(t)},update:function(e,t){e.data.ref!==t.data.ref&&(_r(e,!0),_r(t))},destroy:function(e){_r(e,!0)}};function _r(e,t){var n=e.data.ref;if(A(n)){var r=e.context,i=e.componentInstance||e.elm,s=r.$refs;t?Array.isArray(s[n])?P(s[n],i):s[n]===i&&(s[n]=void 0):e.data.refInFor?Array.isArray(s[n])?s[n].indexOf(i)<0&&s[n].push(i):s[n]=[i]:s[n]=i}}var Ar=new Re("",{},[]),wr=["create","activate","update","remove","destroy"];function Cr(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&A(e.data)===A(t.data)&&function(e,t){if("input"!==e.tag)return!0;var n,r=A(n=e.data)&&A(n=n.attrs)&&n.type,i=A(n=t.data)&&A(n=n.attrs)&&n.type;return r===i||vr(r)&&vr(i)}(e,t)||w(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&_(t.asyncFactory.error))}function Er(e,t,n){var r,i,s={};for(r=t;r<=n;++r)A(i=e[r].key)&&(s[i]=r);return s}var Sr={create:Tr,update:Tr,destroy:function(e){Tr(e,Ar)}};function Tr(e,t){(e.data.directives||t.data.directives)&&function(e,t){var n,r,i,s=e===Ar,o=t===Ar,a=xr(e.data.directives,e.context),c=xr(t.data.directives,t.context),l=[],f=[];for(n in c)r=a[n],i=c[n],r?(i.oldValue=r.value,i.oldArg=r.arg,Nr(i,"update",t,e),i.def&&i.def.componentUpdated&&f.push(i)):(Nr(i,"bind",t,e),i.def&&i.def.inserted&&l.push(i));if(l.length){var u=function(){for(var n=0;n<l.length;n++)Nr(l[n],"inserted",t,e)};s?Tt(t,"insert",u):u()}f.length&&Tt(t,"postpatch",(function(){for(var n=0;n<f.length;n++)Nr(f[n],"componentUpdated",t,e)}));if(!s)for(n in a)c[n]||Nr(a[n],"unbind",e,e,o)}(e,t)}var Or=Object.create(null);function xr(e,t){var n,r,i=Object.create(null);if(!e)return i;for(n=0;n<e.length;n++)(r=e[n]).modifiers||(r.modifiers=Or),i[Mr(r)]=r,r.def=tt(t.$options,"directives",r.name);return i}function Mr(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function Nr(e,t,n,r,i){var s=e.def&&e.def[t];if(s)try{s(n.elm,e,n,r,i)}catch(r){ot(r,n.context,"directive "+e.name+" "+t+" hook")}}var Ir=[yr,Sr];function Rr(e,t){var n=t.componentOptions;if(!(A(n)&&!1===n.Ctor.options.inheritAttrs||_(e.data.attrs)&&_(t.data.attrs))){var r,i,s=t.elm,o=e.data.attrs||{},a=t.data.attrs||{};for(r in A(a.__ob__)&&(a=t.data.attrs=V({},a)),a)i=a[r],o[r]!==i&&kr(s,r,i);for(r in(he||me)&&a.value!==o.value&&kr(s,"value",a.value),o)_(a[r])&&(sr(r)?s.removeAttributeNS(ir,or(r)):tr(r)||s.removeAttribute(r))}}function kr(e,t,n){e.tagName.indexOf("-")>-1?Pr(e,t,n):rr(t)?ar(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):tr(t)?e.setAttribute(t,function(e,t){return ar(t)||"false"===t?"false":"contenteditable"===e&&nr(t)?t:"true"}(t,n)):sr(t)?ar(n)?e.removeAttributeNS(ir,or(t)):e.setAttributeNS(ir,t,n):Pr(e,t,n)}function Pr(e,t,n){if(ar(n))e.removeAttribute(t);else{if(he&&!pe&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var Dr={create:Rr,update:Rr};function Fr(e,t){var n=t.elm,r=t.data,i=e.data;if(!(_(r.staticClass)&&_(r.class)&&(_(i)||_(i.staticClass)&&_(i.class)))){var s=cr(t),o=n._transitionClasses;A(o)&&(s=fr(s,ur(o))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var Br,Lr={create:Fr,update:Fr};function jr(e,t,n){var r=Br;return function i(){var s=t.apply(null,arguments);null!==s&&zr(e,i,n,r)}}var Ur=ut&&!(ve&&Number(ve[1])<=53);function qr(e,t,n,r){if(Ur){var i=Mn,s=t;t=s._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return s.apply(this,arguments)}}Br.addEventListener(e,t,ye?{capture:n,passive:r}:n)}function zr(e,t,n,r){(r||Br).removeEventListener(e,t._wrapper||t,n)}function Gr(e,t){if(!_(e.data.on)||!_(t.data.on)){var n=t.data.on||{},r=e.data.on||{};Br=t.elm,function(e){if(A(e.__r)){var t=he?"change":"input";e[t]=[].concat(e.__r,e[t]||[]),delete e.__r}A(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}(n),St(n,r,qr,zr,jr,t.context),Br=void 0}}var Hr,Vr={create:Gr,update:Gr};function Wr(e,t){if(!_(e.data.domProps)||!_(t.data.domProps)){var n,r,i=t.elm,s=e.data.domProps||{},o=t.data.domProps||{};for(n in A(o.__ob__)&&(o=t.data.domProps=V({},o)),s)n in o||(i[n]="");for(n in o){if(r=o[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===s[n])continue;1===i.childNodes.length&&i.removeChild(i.childNodes[0])}if("value"===n&&"PROGRESS"!==i.tagName){i._value=r;var a=_(r)?"":String(r);$r(i,a)&&(i.value=a)}else if("innerHTML"===n&&pr(i.tagName)&&_(i.innerHTML)){(Hr=Hr||document.createElement("div")).innerHTML="<svg>"+r+"</svg>";for(var c=Hr.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;c.firstChild;)i.appendChild(c.firstChild)}else if(r!==s[n])try{i[n]=r}catch(e){}}}}function $r(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,r=e._vModifiers;if(A(r)){if(r.number)return I(n)!==I(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var Qr={create:Wr,update:Wr},Yr=B((function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}));function Xr(e){var t=Kr(e.style);return e.staticStyle?V(e.staticStyle,t):t}function Kr(e){return Array.isArray(e)?W(e):"string"==typeof e?Yr(e):e}var Zr,Jr=/^--/,ei=/\s*!important$/,ti=function(e,t,n){if(Jr.test(t))e.style.setProperty(t,n);else if(ei.test(n))e.style.setProperty(z(t),n.replace(ei,""),"important");else{var r=ri(t);if(Array.isArray(n))for(var i=0,s=n.length;i<s;i++)e.style[r]=n[i];else e.style[r]=n}},ni=["Webkit","Moz","ms"],ri=B((function(e){if(Zr=Zr||document.createElement("div").style,"filter"!==(e=j(e))&&e in Zr)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<ni.length;n++){var r=ni[n]+t;if(r in Zr)return r}}));function ii(e,t){var n=t.data,r=e.data;if(!(_(n.staticStyle)&&_(n.style)&&_(r.staticStyle)&&_(r.style))){var i,s,o=t.elm,a=r.staticStyle,c=r.normalizedStyle||r.style||{},l=a||c,f=Kr(t.data.style)||{};t.data.normalizedStyle=A(f.__ob__)?V({},f):f;var u=function(e,t){var n,r={};if(t)for(var i=e;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=Xr(i.data))&&V(r,n);(n=Xr(e.data))&&V(r,n);for(var s=e;s=s.parent;)s.data&&(n=Xr(s.data))&&V(r,n);return r}(t,!0);for(s in l)_(u[s])&&ti(o,s,"");for(s in u)(i=u[s])!==l[s]&&ti(o,s,null==i?"":i)}}var si={create:ii,update:ii},oi=/\s+/;function ai(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(oi).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function ci(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(oi).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function li(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&V(t,fi(e.name||"v")),V(t,e),t}return"string"==typeof e?fi(e):void 0}}var fi=B((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),ui=le&&!pe,di="transition",hi="animation",pi="transition",mi="transitionend",gi="animation",vi="animationend";ui&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(pi="WebkitTransition",mi="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(gi="WebkitAnimation",vi="webkitAnimationEnd"));var bi=le?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function yi(e){bi((function(){bi(e)}))}function _i(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),ai(e,t))}function Ai(e,t){e._transitionClasses&&P(e._transitionClasses,t),ci(e,t)}function wi(e,t,n){var r=Ei(e,t),i=r.type,s=r.timeout,o=r.propCount;if(!i)return n();var a=i===di?mi:vi,c=0,l=function(){e.removeEventListener(a,f),n()},f=function(t){t.target===e&&++c>=o&&l()};setTimeout((function(){c<o&&l()}),s+1),e.addEventListener(a,f)}var Ci=/\b(transform|all)(,|$)/;function Ei(e,t){var n,r=window.getComputedStyle(e),i=(r[pi+"Delay"]||"").split(", "),s=(r[pi+"Duration"]||"").split(", "),o=Si(i,s),a=(r[gi+"Delay"]||"").split(", "),c=(r[gi+"Duration"]||"").split(", "),l=Si(a,c),f=0,u=0;return t===di?o>0&&(n=di,f=o,u=s.length):t===hi?l>0&&(n=hi,f=l,u=c.length):u=(n=(f=Math.max(o,l))>0?o>l?di:hi:null)?n===di?s.length:c.length:0,{type:n,timeout:f,propCount:u,hasTransform:n===di&&Ci.test(r[pi+"Property"])}}function Si(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max.apply(null,t.map((function(t,n){return Ti(t)+Ti(e[n])})))}function Ti(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function Oi(e,t){var n=e.elm;A(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=li(e.data.transition);if(!_(r)&&!A(n._enterCb)&&1===n.nodeType){for(var i=r.css,s=r.type,o=r.enterClass,a=r.enterToClass,c=r.enterActiveClass,l=r.appearClass,f=r.appearToClass,u=r.appearActiveClass,d=r.beforeEnter,h=r.enter,p=r.afterEnter,m=r.enterCancelled,g=r.beforeAppear,v=r.appear,b=r.afterAppear,y=r.appearCancelled,w=r.duration,C=vn,S=vn.$vnode;S&&S.parent;)C=S.context,S=S.parent;var T=!C._isMounted||!e.isRootInsert;if(!T||v||""===v){var O=T&&l?l:o,x=T&&u?u:c,M=T&&f?f:a,N=T&&g||d,R=T&&"function"==typeof v?v:h,k=T&&b||p,P=T&&y||m,D=I(E(w)?w.enter:w);0;var F=!1!==i&&!pe,B=Ni(R),L=n._enterCb=Z((function(){F&&(Ai(n,M),Ai(n,x)),L.cancelled?(F&&Ai(n,O),P&&P(n)):k&&k(n),n._enterCb=null}));e.data.show||Tt(e,"insert",(function(){var t=n.parentNode,r=t&&t._pending&&t._pending[e.key];r&&r.tag===e.tag&&r.elm._leaveCb&&r.elm._leaveCb(),R&&R(n,L)})),N&&N(n),F&&(_i(n,O),_i(n,x),yi((function(){Ai(n,O),L.cancelled||(_i(n,M),B||(Mi(D)?setTimeout(L,D):wi(n,s,L)))}))),e.data.show&&(t&&t(),R&&R(n,L)),F||B||L()}}}function xi(e,t){var n=e.elm;A(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var r=li(e.data.transition);if(_(r)||1!==n.nodeType)return t();if(!A(n._leaveCb)){var i=r.css,s=r.type,o=r.leaveClass,a=r.leaveToClass,c=r.leaveActiveClass,l=r.beforeLeave,f=r.leave,u=r.afterLeave,d=r.leaveCancelled,h=r.delayLeave,p=r.duration,m=!1!==i&&!pe,g=Ni(f),v=I(E(p)?p.leave:p);0;var b=n._leaveCb=Z((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),m&&(Ai(n,a),Ai(n,c)),b.cancelled?(m&&Ai(n,o),d&&d(n)):(t(),u&&u(n)),n._leaveCb=null}));h?h(y):y()}function y(){b.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),l&&l(n),m&&(_i(n,o),_i(n,c),yi((function(){Ai(n,o),b.cancelled||(_i(n,a),g||(Mi(v)?setTimeout(b,v):wi(n,s,b)))}))),f&&f(n,b),m||g||b())}}function Mi(e){return"number"==typeof e&&!isNaN(e)}function Ni(e){if(_(e))return!1;var t=e.fns;return A(t)?Ni(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function Ii(e,t){!0!==t.data.show&&Oi(t)}var Ri=function(e){var t,n,r={},i=e.modules,s=e.nodeOps;for(t=0;t<wr.length;++t)for(r[wr[t]]=[],n=0;n<i.length;++n)A(i[n][wr[t]])&&r[wr[t]].push(i[n][wr[t]]);function o(e){var t=s.parentNode(e);A(t)&&s.removeChild(t,e)}function a(e,t,n,i,o,a,u){if(A(e.elm)&&A(a)&&(e=a[u]=Fe(e)),e.isRootInsert=!o,!function(e,t,n,i){var s=e.data;if(A(s)){var o=A(e.componentInstance)&&s.keepAlive;if(A(s=s.hook)&&A(s=s.init)&&s(e,!1),A(e.componentInstance))return c(e,t),l(n,e.elm,i),w(o)&&function(e,t,n,i){var s,o=e;for(;o.componentInstance;)if(A(s=(o=o.componentInstance._vnode).data)&&A(s=s.transition)){for(s=0;s<r.activate.length;++s)r.activate[s](Ar,o);t.push(o);break}l(n,e.elm,i)}(e,t,n,i),!0}}(e,t,n,i)){var p=e.data,m=e.children,g=e.tag;A(g)?(e.elm=e.ns?s.createElementNS(e.ns,g):s.createElement(g,e),h(e),f(e,m,t),A(p)&&d(e,t),l(n,e.elm,i)):w(e.isComment)?(e.elm=s.createComment(e.text),l(n,e.elm,i)):(e.elm=s.createTextNode(e.text),l(n,e.elm,i))}}function c(e,t){A(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,u(e)?(d(e,t),h(e)):(_r(e),t.push(e))}function l(e,t,n){A(e)&&(A(n)?s.parentNode(n)===e&&s.insertBefore(e,t,n):s.appendChild(e,t))}function f(e,t,n){if(Array.isArray(t)){0;for(var r=0;r<t.length;++r)a(t[r],n,e.elm,null,!0,t,r)}else C(e.text)&&s.appendChild(e.elm,s.createTextNode(String(e.text)))}function u(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return A(e.tag)}function d(e,n){for(var i=0;i<r.create.length;++i)r.create[i](Ar,e);A(t=e.data.hook)&&(A(t.create)&&t.create(Ar,e),A(t.insert)&&n.push(e))}function h(e){var t;if(A(t=e.fnScopeId))s.setStyleScope(e.elm,t);else for(var n=e;n;)A(t=n.context)&&A(t=t.$options._scopeId)&&s.setStyleScope(e.elm,t),n=n.parent;A(t=vn)&&t!==e.context&&t!==e.fnContext&&A(t=t.$options._scopeId)&&s.setStyleScope(e.elm,t)}function p(e,t,n,r,i,s){for(;r<=i;++r)a(n[r],s,e,t,!1,n,r)}function m(e){var t,n,i=e.data;if(A(i))for(A(t=i.hook)&&A(t=t.destroy)&&t(e),t=0;t<r.destroy.length;++t)r.destroy[t](e);if(A(t=e.children))for(n=0;n<e.children.length;++n)m(e.children[n])}function g(e,t,n){for(;t<=n;++t){var r=e[t];A(r)&&(A(r.tag)?(v(r),m(r)):o(r.elm))}}function v(e,t){if(A(t)||A(e.data)){var n,i=r.remove.length+1;for(A(t)?t.listeners+=i:t=function(e,t){function n(){0==--n.listeners&&o(e)}return n.listeners=t,n}(e.elm,i),A(n=e.componentInstance)&&A(n=n._vnode)&&A(n.data)&&v(n,t),n=0;n<r.remove.length;++n)r.remove[n](e,t);A(n=e.data.hook)&&A(n=n.remove)?n(e,t):t()}else o(e.elm)}function b(e,t,n,r){for(var i=n;i<r;i++){var s=t[i];if(A(s)&&Cr(e,s))return i}}function y(e,t,n,i,o,c){if(e!==t){A(t.elm)&&A(i)&&(t=i[o]=Fe(t));var l=t.elm=e.elm;if(w(e.isAsyncPlaceholder))A(t.asyncFactory.resolved)?T(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(w(t.isStatic)&&w(e.isStatic)&&t.key===e.key&&(w(t.isCloned)||w(t.isOnce)))t.componentInstance=e.componentInstance;else{var f,d=t.data;A(d)&&A(f=d.hook)&&A(f=f.prepatch)&&f(e,t);var h=e.children,m=t.children;if(A(d)&&u(t)){for(f=0;f<r.update.length;++f)r.update[f](e,t);A(f=d.hook)&&A(f=f.update)&&f(e,t)}_(t.text)?A(h)&&A(m)?h!==m&&function(e,t,n,r,i){var o,c,l,f=0,u=0,d=t.length-1,h=t[0],m=t[d],v=n.length-1,w=n[0],C=n[v],E=!i;for(;f<=d&&u<=v;)_(h)?h=t[++f]:_(m)?m=t[--d]:Cr(h,w)?(y(h,w,r,n,u),h=t[++f],w=n[++u]):Cr(m,C)?(y(m,C,r,n,v),m=t[--d],C=n[--v]):Cr(h,C)?(y(h,C,r,n,v),E&&s.insertBefore(e,h.elm,s.nextSibling(m.elm)),h=t[++f],C=n[--v]):Cr(m,w)?(y(m,w,r,n,u),E&&s.insertBefore(e,m.elm,h.elm),m=t[--d],w=n[++u]):(_(o)&&(o=Er(t,f,d)),_(c=A(w.key)?o[w.key]:b(w,t,f,d))?a(w,r,e,h.elm,!1,n,u):Cr(l=t[c],w)?(y(l,w,r,n,u),t[c]=void 0,E&&s.insertBefore(e,l.elm,h.elm)):a(w,r,e,h.elm,!1,n,u),w=n[++u]);f>d?p(e,_(n[v+1])?null:n[v+1].elm,n,u,v,r):u>v&&g(t,f,d)}(l,h,m,n,c):A(m)?(A(e.text)&&s.setTextContent(l,""),p(l,null,m,0,m.length-1,n)):A(h)?g(h,0,h.length-1):A(e.text)&&s.setTextContent(l,""):e.text!==t.text&&s.setTextContent(l,t.text),A(d)&&A(f=d.hook)&&A(f=f.postpatch)&&f(e,t)}}}function E(e,t,n){if(w(n)&&A(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}var S=R("attrs,class,staticClass,staticStyle,key");function T(e,t,n,r){var i,s=t.tag,o=t.data,a=t.children;if(r=r||o&&o.pre,t.elm=e,w(t.isComment)&&A(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(A(o)&&(A(i=o.hook)&&A(i=i.init)&&i(t,!0),A(i=t.componentInstance)))return c(t,n),!0;if(A(s)){if(A(a))if(e.hasChildNodes())if(A(i=o)&&A(i=i.domProps)&&A(i=i.innerHTML)){if(i!==e.innerHTML)return!1}else{for(var l=!0,u=e.firstChild,h=0;h<a.length;h++){if(!u||!T(u,a[h],n,r)){l=!1;break}u=u.nextSibling}if(!l||u)return!1}else f(t,a,n);if(A(o)){var p=!1;for(var m in o)if(!S(m)){p=!0,d(t,n);break}!p&&o.class&&At(o.class)}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,i){if(!_(t)){var o,c=!1,l=[];if(_(e))c=!0,a(t,l);else{var f=A(e.nodeType);if(!f&&Cr(e,t))y(e,t,l,null,null,i);else{if(f){if(1===e.nodeType&&e.hasAttribute(J)&&(e.removeAttribute(J),n=!0),w(n)&&T(e,t,l))return E(t,l,!0),e;o=e,e=new Re(s.tagName(o).toLowerCase(),{},[],void 0,o)}var d=e.elm,h=s.parentNode(d);if(a(t,l,d._leaveCb?null:h,s.nextSibling(d)),A(t.parent))for(var p=t.parent,v=u(t);p;){for(var b=0;b<r.destroy.length;++b)r.destroy[b](p);if(p.elm=t.elm,v){for(var C=0;C<r.create.length;++C)r.create[C](Ar,p);var S=p.data.hook.insert;if(S.merged)for(var O=1;O<S.fns.length;O++)S.fns[O]()}else _r(p);p=p.parent}A(h)?g([e],0,0):A(e.tag)&&m(e)}}return E(t,l,c),t.elm}A(e)&&m(e)}}({nodeOps:br,modules:[Dr,Lr,Vr,Qr,si,le?{create:Ii,activate:Ii,remove:function(e,t){!0!==e.data.show?xi(e,t):t()}}:{}].concat(Ir)});pe&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&Ui(e,"input")}));var ki={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?Tt(n,"postpatch",(function(){ki.componentUpdated(e,t,n)})):Pi(e,t,n.context),e._vOptions=[].map.call(e.options,Bi)):("textarea"===n.tag||vr(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",Li),e.addEventListener("compositionend",ji),e.addEventListener("change",ji),pe&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Pi(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,Bi);if(i.some((function(e,t){return!X(e,r[t])})))(e.multiple?t.value.some((function(e){return Fi(e,i)})):t.value!==t.oldValue&&Fi(t.value,i))&&Ui(e,"change")}}};function Pi(e,t,n){Di(e,t,n),(he||me)&&setTimeout((function(){Di(e,t,n)}),0)}function Di(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var s,o,a=0,c=e.options.length;a<c;a++)if(o=e.options[a],i)s=K(r,Bi(o))>-1,o.selected!==s&&(o.selected=s);else if(X(Bi(o),r))return void(e.selectedIndex!==a&&(e.selectedIndex=a));i||(e.selectedIndex=-1)}}function Fi(e,t){return t.every((function(t){return!X(t,e)}))}function Bi(e){return"_value"in e?e._value:e.value}function Li(e){e.target.composing=!0}function ji(e){e.target.composing&&(e.target.composing=!1,Ui(e.target,"input"))}function Ui(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function qi(e){return!e.componentInstance||e.data&&e.data.transition?e:qi(e.componentInstance._vnode)}var zi={model:ki,show:{bind:function(e,t,n){var r=t.value,i=(n=qi(n)).data&&n.data.transition,s=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,Oi(n,(function(){e.style.display=s}))):e.style.display=r?s:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=qi(n)).data&&n.data.transition?(n.data.show=!0,r?Oi(n,(function(){e.style.display=e.__vOriginalDisplay})):xi(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}}},Gi={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Hi(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Hi(dn(t.children)):e}function Vi(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var s in i)t[j(s)]=i[s];return t}function Wi(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var $i=function(e){return e.tag||un(e)},Qi=function(e){return"show"===e.name},Yi={name:"transition",props:Gi,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter($i)).length){0;var r=this.mode;0;var i=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var s=Hi(i);if(!s)return i;if(this._leaving)return Wi(e,i);var o="__transition-"+this._uid+"-";s.key=null==s.key?s.isComment?o+"comment":o+s.tag:C(s.key)?0===String(s.key).indexOf(o)?s.key:o+s.key:s.key;var a=(s.data||(s.data={})).transition=Vi(this),c=this._vnode,l=Hi(c);if(s.data.directives&&s.data.directives.some(Qi)&&(s.data.show=!0),l&&l.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(s,l)&&!un(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=V({},a);if("out-in"===r)return this._leaving=!0,Tt(f,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),Wi(e,i);if("in-out"===r){if(un(s))return c;var u,d=function(){u()};Tt(a,"afterEnter",d),Tt(a,"enterCancelled",d),Tt(f,"delayLeave",(function(e){u=e}))}}return i}}},Xi=V({tag:String,moveClass:String},Gi);function Ki(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Zi(e){e.data.newPos=e.elm.getBoundingClientRect()}function Ji(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var s=e.elm.style;s.transform=s.WebkitTransform="translate("+r+"px,"+i+"px)",s.transitionDuration="0s"}}delete Xi.mode;var es={Transition:Yi,TransitionGroup:{props:Xi,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=bn(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],s=this.children=[],o=Vi(this),a=0;a<i.length;a++){var c=i[a];if(c.tag)if(null!=c.key&&0!==String(c.key).indexOf("__vlist"))s.push(c),n[c.key]=c,(c.data||(c.data={})).transition=o;else;}if(r){for(var l=[],f=[],u=0;u<r.length;u++){var d=r[u];d.data.transition=o,d.data.pos=d.elm.getBoundingClientRect(),n[d.key]?l.push(d):f.push(d)}this.kept=e(t,null,l),this.removed=f}return e(t,null,s)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(Ki),e.forEach(Zi),e.forEach(Ji),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var n=e.elm,r=n.style;_i(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(mi,n._moveCb=function e(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(mi,e),n._moveCb=null,Ai(n,t))})}})))},methods:{hasMove:function(e,t){if(!ui)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){ci(n,e)})),ai(n,t),n.style.display="none",this.$el.appendChild(n);var r=Ei(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}}};Vn.config.mustUseProp=function(e,t,n){return"value"===n&&er(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Vn.config.isReservedTag=mr,Vn.config.isReservedAttr=Jn,Vn.config.getTagNamespace=function(e){return pr(e)?"svg":"math"===e?"math":void 0},Vn.config.isUnknownElement=function(e){if(!le)return!0;if(mr(e))return!1;if(e=e.toLowerCase(),null!=gr[e])return gr[e];var t=document.createElement(e);return e.indexOf("-")>-1?gr[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:gr[e]=/HTMLUnknownElement/.test(t.toString())},V(Vn.options.directives,zi),V(Vn.options.components,es),Vn.prototype.__patch__=le?Ri:$,Vn.prototype.$mount=function(e,t){return function(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=Pe),wn(e,"beforeMount"),r=function(){e._update(e._render(),n)},new Pn(e,r,$,{before:function(){e._isMounted&&!e._isDestroyed&&wn(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,wn(e,"mounted")),e}(this,e=e&&le?function(e){if("string"==typeof e){return document.querySelector(e)||document.createElement("div")}return e}(e):void 0,t)},le&&setTimeout((function(){ne.devtools&&we&&we.emit("init",Vn)}),0);const ts=Vn;
|
15 |
/**
|
16 |
* vue-class-component v7.2.6
|
17 |
* (c) 2015-present Evan You
|
18 |
* @license MIT
|
19 |
-
*/function ns(e){return(ns="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 rs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function is(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 ss(){return"undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function os(e,t){as(e,t),Object.getOwnPropertyNames(t.prototype).forEach((function(n){as(e.prototype,t.prototype,n)})),Object.getOwnPropertyNames(t).forEach((function(n){as(e,t,n)}))}function as(e,t,n){(n?Reflect.getOwnMetadataKeys(t,n):Reflect.getOwnMetadataKeys(t)).forEach((function(r){var i=n?Reflect.getOwnMetadata(r,t,n):Reflect.getOwnMetadata(r,t);n?Reflect.defineMetadata(r,i,e,n):Reflect.defineMetadata(r,i,e)}))}var cs={__proto__:[]}instanceof Array;function ls(e){return function(t,n,r){var i="function"==typeof t?t:t.constructor;i.__decorators__||(i.__decorators__=[]),"number"!=typeof r&&(r=void 0),i.__decorators__.push((function(t){return e(t,n,r)}))}}function fs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ts.extend({mixins:t})}function us(e,t){var n=t.prototype._init;t.prototype._init=function(){var t=this,n=Object.getOwnPropertyNames(e);if(e.$options.props)for(var r in e.$options.props)e.hasOwnProperty(r)||n.push(r);n.forEach((function(n){Object.defineProperty(t,n,{get:function(){return e[n]},set:function(t){e[n]=t},configurable:!0})}))};var r=new t;t.prototype._init=n;var i={};return Object.keys(r).forEach((function(e){void 0!==r[e]&&(i[e]=r[e])})),i}var ds=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function hs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.name=t.name||e._componentTag||e.name;var n=e.prototype;Object.getOwnPropertyNames(n).forEach((function(e){if("constructor"!==e)if(ds.indexOf(e)>-1)t[e]=n[e];else{var r=Object.getOwnPropertyDescriptor(n,e);void 0!==r.value?"function"==typeof r.value?(t.methods||(t.methods={}))[e]=r.value:(t.mixins||(t.mixins=[])).push({data:function(){return rs({},e,r.value)}}):(r.get||r.set)&&((t.computed||(t.computed={}))[e]={get:r.get,set:r.set})}})),(t.mixins||(t.mixins=[])).push({data:function(){return us(this,e)}});var r=e.__decorators__;r&&(r.forEach((function(e){return e(t)})),delete e.__decorators__);var i=Object.getPrototypeOf(e.prototype),s=i instanceof ts?i.constructor:ts,o=s.extend(t);return ms(o,e,s),ss()&&os(o,e),o}var ps={prototype:!0,arguments:!0,callee:!0,caller:!0};function ms(e,t,n){Object.getOwnPropertyNames(t).forEach((function(r){if(!ps[r]){var i=Object.getOwnPropertyDescriptor(e,r);if(!i||i.configurable){var s,o,a=Object.getOwnPropertyDescriptor(t,r);if(!cs){if("cid"===r)return;var c=Object.getOwnPropertyDescriptor(n,r);if(s=a.value,o=ns(s),null!=s&&("object"===o||"function"===o)&&c&&c.value===a.value)return}0,Object.defineProperty(e,r,a)}}}))}function gs(e){return"function"==typeof e?hs(e):function(t){return hs(t,e)}}gs.registerHooks=function(e){ds.push.apply(ds,is(e))};const vs=gs;var bs="__reactiveInject__";function ys(e){return ls((function(t,n){void 0===t.inject&&(t.inject={}),Array.isArray(t.inject)||(t.inject[n]=e||n)}))}function _s(e){var t=function(){var n=this,r="function"==typeof e?e.call(this):e;for(var i in(r=Object.create(r||null)).__reactiveInject__=Object.create(this.__reactiveInject__||{}),t.managed)r[t.managed[i]]=this[i];var s=function(e){r[t.managedReactive[e]]=o[e],Object.defineProperty(r.__reactiveInject__,t.managedReactive[e],{enumerable:!0,get:function(){return n[e]}})},o=this;for(var i in t.managedReactive)s(i);return r};return t.managed={},t.managedReactive={},t}function As(e){return"function"!=typeof e||!e.managed&&!e.managedReactive}function ws(e){Array.isArray(e.inject)||(e.inject=e.inject||{},e.inject.__reactiveInject__={from:bs,default:{}})}function Cs(e){return ls((function(t,n){var r=t.provide;ws(t),As(r)&&(r=t.provide=_s(r)),r.managed[n]=e||n}))}var Es="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function Ss(e,t,n){if(Es&&!Array.isArray(e)&&"function"!=typeof e&&void 0===e.type){var r=Reflect.getMetadata("design:type",t,n);r!==Object&&(e.type=r)}}function Ts(e){return void 0===e&&(e={}),function(t,n){Ss(e,t,n),ls((function(t,n){(t.props||(t.props={}))[n]=e}))(t,n)}}function Os(e){return"function"==typeof e}let xs=!1;const Ms={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else xs&&console.log("RxJS: Back to a better error behavior. Thank you. <3");xs=e},get useDeprecatedSynchronousErrorHandling(){return xs}};function Ns(e){setTimeout((()=>{throw e}),0)}const Is={closed:!0,next(e){},error(e){if(Ms.useDeprecatedSynchronousErrorHandling)throw e;Ns(e)},complete(){}},Rs=Array.isArray||(e=>e&&"number"==typeof e.length);function ks(e){return null!==e&&"object"==typeof e}const Ps=(()=>{function e(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map(((e,t)=>`${t+1}) ${e.toString()}`)).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e})();class Ds{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:t,_ctorUnsubscribe:n,_unsubscribe:r,_subscriptions:i}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof Ds)t.remove(this);else if(null!==t)for(let e=0;e<t.length;++e){t[e].remove(this)}if(Os(r)){n&&(this._unsubscribe=void 0);try{r.call(this)}catch(t){e=t instanceof Ps?Fs(t.errors):[t]}}if(Rs(i)){let t=-1,n=i.length;for(;++t<n;){const n=i[t];if(ks(n))try{n.unsubscribe()}catch(t){e=e||[],t instanceof Ps?e=e.concat(Fs(t.errors)):e.push(t)}}}if(e)throw new Ps(e)}add(e){let t=e;if(!e)return Ds.EMPTY;switch(typeof e){case"function":t=new Ds(e);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof Ds)){const e=t;t=new Ds,t._subscriptions=[e]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:n}=t;if(null===n)t._parentOrParents=this;else if(n instanceof Ds){if(n===this)return t;t._parentOrParents=[n,this]}else{if(-1!==n.indexOf(this))return t;n.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[t]:r.push(t),t}remove(e){const t=this._subscriptions;if(t){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}function Fs(e){return e.reduce(((e,t)=>e.concat(t instanceof Ps?t.errors:t)),[])}Ds.EMPTY=function(e){return e.closed=!0,e}(new Ds);const Bs="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class Ls extends Ds{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Is;break;case 1:if(!e){this.destination=Is;break}if("object"==typeof e){e instanceof Ls?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new js(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new js(this,e,t,n)}}[Bs](){return this}static create(e,t,n){const r=new Ls(e,t,n);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class js extends Ls{constructor(e,t,n,r){let i;super(),this._parentSubscriber=e;let s=this;Os(t)?i=t:t&&(i=t.next,n=t.error,r=t.complete,t!==Is&&(s=Object.create(t),Os(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=i,this._error=n,this._complete=r}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;Ms.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=Ms;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):Ns(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;Ns(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);Ms.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),Ms.useDeprecatedSynchronousErrorHandling)throw e;Ns(e)}}__tryOrSetError(e,t,n){if(!Ms.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(t){return Ms.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0,!0):(Ns(t),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const Us="function"==typeof Symbol&&Symbol.observable||"@@observable";function qs(e){return e}function zs(e){return 0===e.length?qs:1===e.length?e[0]:function(t){return e.reduce(((e,t)=>t(e)),t)}}class Gs{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const t=new Gs;return t.source=this,t.operator=e,t}subscribe(e,t,n){const{operator:r}=this,i=function(e,t,n){if(e){if(e instanceof Ls)return e;if(e[Bs])return e[Bs]()}return e||t||n?new Ls(e,t,n):new Ls(Is)}(e,t,n);if(r?i.add(r.call(i,this.source)):i.add(this.source||Ms.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),Ms.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i}_trySubscribe(e){try{return this._subscribe(e)}catch(t){Ms.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),!function(e){for(;e;){const{closed:t,destination:n,isStopped:r}=e;if(t||r)return!1;e=n&&n instanceof Ls?n:null}return!0}(e)?console.warn(t):e.error(t)}}forEach(e,t){return new(t=Hs(t))(((t,n)=>{let r;r=this.subscribe((t=>{try{e(t)}catch(e){n(e),r&&r.unsubscribe()}}),n,t)}))}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[Us](){return this}pipe(...e){return 0===e.length?this:zs(e)(this)}toPromise(e){return new(e=Hs(e))(((e,t)=>{let n;this.subscribe((e=>n=e),(e=>t(e)),(()=>e(n)))}))}}function Hs(e){if(e||(e=Ms.Promise||Promise),!e)throw new Error("no Promise impl found");return e}Gs.create=e=>new Gs(e);const Vs=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})();class Ws extends Ds{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}class $s extends Ls{constructor(e){super(e),this.destination=e}}class Qs extends Gs{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Bs](){return new $s(this)}lift(e){const t=new Ys(this,this);return t.operator=e,t}next(e){if(this.closed)throw new Vs;if(!this.isStopped){const{observers:t}=this,n=t.length,r=t.slice();for(let t=0;t<n;t++)r[t].next(e)}}error(e){if(this.closed)throw new Vs;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:t}=this,n=t.length,r=t.slice();for(let t=0;t<n;t++)r[t].error(e);this.observers.length=0}complete(){if(this.closed)throw new Vs;this.isStopped=!0;const{observers:e}=this,t=e.length,n=e.slice();for(let e=0;e<t;e++)n[e].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new Vs;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new Vs;return this.hasError?(e.error(this.thrownError),Ds.EMPTY):this.isStopped?(e.complete(),Ds.EMPTY):(this.observers.push(e),new Ws(this,e))}asObservable(){const e=new Gs;return e.source=this,e}}Qs.create=(e,t)=>new Ys(e,t);class Ys extends Qs{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):Ds.EMPTY}}function Xs(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new Ks(e,t))}}class Ks{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new Zs(e,this.project,this.thisArg))}}class Zs extends Ls{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)}}Object.prototype.toString;function Js(e,t,n,r){return Os(n)&&(r=n,n=void 0),r?Js(e,t,n).pipe(Xs((e=>Rs(e)?r(...e):r(e)))):new Gs((r=>{eo(e,t,(function(e){arguments.length>1?r.next(Array.prototype.slice.call(arguments)):r.next(e)}),r,n)}))}function eo(e,t,n,r,i){let s;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){const r=e;e.addEventListener(t,n,i),s=()=>r.removeEventListener(t,n,i)}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){const r=e;e.on(t,n),s=()=>r.off(t,n)}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){const r=e;e.addListener(t,n),s=()=>r.removeListener(t,n)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let s=0,o=e.length;s<o;s++)eo(e[s],t,n,r,i)}r.add(s)}function to(){}const no=new Gs(to);function ro(){return function(e){return e.lift(new io(e))}}class io{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const r=new so(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}class so extends Ls{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}class oo extends Gs{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new Ds,e.add(this.source.subscribe(new co(this.getSubject(),this))),e.closed&&(this._connection=null,e=Ds.EMPTY)),e}refCount(){return ro()(this)}}const ao=(()=>{const e=oo.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}})();class co extends $s{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function lo(e,t){return function(n){let r;if(r="function"==typeof e?e:function(){return e},"function"==typeof t)return n.lift(new fo(r,t));const i=Object.create(n,ao);return i.source=n,i.subjectFactory=r,i}}class fo{constructor(e,t){this.subjectFactory=e,this.selector=t}call(e,t){const{selector:n}=this,r=this.subjectFactory(),i=n(r).subscribe(e);return i.add(t.subscribe(r)),i}}function uo(){return new Qs}function ho(){return e=>ro()(lo(uo)(e))}var po,mo=function(){};function go(e){return e&&"function"==typeof e.next}function vo(e){return[e.arg].concat(Object.keys(e.modifiers)).join(":")}var bo={created:function(){var e=this,t=e.$options.domStreams;t&&t.forEach((function(t){e[t]=new Qs}));var n=e.$options.observableMethods;n&&(Array.isArray(n)?n.forEach((function(t){e[t+"$"]=e.$createObservableMethod(t)})):Object.keys(n).forEach((function(t){e[n[t]]=e.$createObservableMethod(t)})));var r=e.$options.subscriptions;"function"==typeof r&&(r=r.call(e)),r&&(e.$observables={},e._subscription=new Ds,Object.keys(r).forEach((function(t){!function(e,t,n){t in e?e[t]=n:po.util.defineReactive(e,t,n)}(e,t,void 0),function(e){return e&&"function"==typeof e.subscribe}(e.$observables[t]=r[t])?e._subscription.add(r[t].subscribe((function(n){e[t]=n}),(function(e){throw e}))):mo('Invalid Observable found in subscriptions option with key "'+t+'".',e)})))},beforeDestroy:function(){this._subscription&&this._subscription.unsubscribe()}},yo={bind:function(e,t,n){var r=t.value,i=t.arg,s=t.expression,o=t.modifiers;if(go(r))r={subject:r};else if(!r||!go(r.subject))return void mo('Invalid Subject found in directive with key "'+s+'".'+s+" should be an instance of Subject or have the type { subject: Subject, data: any }.",n.context);var a={stop:function(e){return e.stopPropagation()},prevent:function(e){return e.preventDefault()}},c=Object.keys(a).filter((function(e){return o[e]})),l=r.subject,f=(l.next||l.onNext).bind(l);if(!o.native&&n.componentInstance)r.subscription=n.componentInstance.$eventToObservable(i).subscribe((function(e){c.forEach((function(t){return a[t](e)})),f({event:e,data:r.data})}));else{var u=r.options?[e,i,r.options]:[e,i];r.subscription=Js.apply(void 0,u).subscribe((function(e){c.forEach((function(t){return a[t](e)})),f({event:e,data:r.data})}))}(e._rxHandles||(e._rxHandles={}))[vo(t)]=r},update:function(e,t){var n=t.value,r=e._rxHandles&&e._rxHandles[vo(t)];r&&n&&go(n.subject)&&(r.data=n.data)},unbind:function(e,t){var n=vo(t),r=e._rxHandles&&e._rxHandles[n];r&&(r.subscription&&r.subscription.unsubscribe(),e._rxHandles[n]=null)}};function _o(e,t){var n=this;return new Gs((function(r){var i,s=function(){i=n.$watch(e,(function(e,t){r.next({oldValue:t,newValue:e})}),t)};return n._data?s():n.$once("hook:created",s),new Ds((function(){i&&i()}))}))}function Ao(e,t){if("undefined"==typeof window)return no;var n=this,r=document.documentElement;return new Gs((function(i){function s(t){if(n.$el){if(null===e&&n.$el===t.target)return i.next(t);for(var r=n.$el.querySelectorAll(e),s=t.target,o=0,a=r.length;o<a;o++)if(r[o]===s)return i.next(t)}}return r.addEventListener(t,s),new Ds((function(){r.removeEventListener(t,s)}))}))}function wo(e,t,n,r){var i=e.subscribe(t,n,r);return(this._subscription||(this._subscription=new Ds)).add(i),i}function Co(e){var t=this,n=Array.isArray(e)?e:[e];return new Gs((function(e){var r=n.map((function(n){var r=function(t){return e.next({name:n,msg:t})};return t.$on(n,r),{name:n,callback:r}}));return function(){r.forEach((function(e){return t.$off(e.name,e.callback)}))}}))}function Eo(e,t){var n=this;void 0!==n[e]&&mo("Potential bug: Method "+e+" already defined on vm and has been overwritten by $createObservableMethod."+String(n[e]),n);return new Gs((function(r){return n[e]=function(){var e=Array.from(arguments);t?(e.push(this),r.next(e)):e.length<=1?r.next(e[0]):r.next(e)},function(){delete n[e]}})).pipe(ho())}function So(e){mo=(po=e).util.warn||mo,e.mixin(bo),e.directive("stream",yo),e.prototype.$watchAsObservable=_o,e.prototype.$fromDOMEvent=Ao,e.prototype.$subscribeTo=wo,e.prototype.$eventToObservable=Co,e.prototype.$createObservableMethod=Eo,e.config.optionMergeStrategies.subscriptions=e.config.optionMergeStrategies.data}"undefined"!=typeof Vue&&Vue.use(So);const To=So;let Oo=!0,xo=!0;function Mo(e,t,n){const r=e.match(t);return r&&r.length>=n&&parseInt(r[n],10)}function No(e,t,n){if(!e.RTCPeerConnection)return;const r=e.RTCPeerConnection.prototype,i=r.addEventListener;r.addEventListener=function(e,r){if(e!==t)return i.apply(this,arguments);const s=e=>{const t=n(e);t&&(r.handleEvent?r.handleEvent(t):r(t))};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(r,s),i.apply(this,[e,s])};const s=r.removeEventListener;r.removeEventListener=function(e,n){if(e!==t||!this._eventMap||!this._eventMap[t])return s.apply(this,arguments);if(!this._eventMap[t].has(n))return s.apply(this,arguments);const r=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,s.apply(this,[e,r])},Object.defineProperty(r,"on"+t,{get(){return this["_on"+t]},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 Io(e){return"boolean"!=typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(Oo=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function Ro(e){return"boolean"!=typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(xo=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function ko(){if("object"==typeof window){if(Oo)return;"undefined"!=typeof console&&"function"==typeof console.log&&console.log.apply(console,arguments)}}function Po(e,t){xo&&console.warn(e+" is deprecated, please use "+t+" instead.")}function Do(e){const t={browser:null,version:null};if(void 0===e||!e.navigator)return t.browser="Not a browser.",t;const{navigator:n}=e;if(n.mozGetUserMedia)t.browser="firefox",t.version=Mo(n.userAgent,/Firefox\/(\d+)\./,1);else if(n.webkitGetUserMedia||!1===e.isSecureContext&&e.webkitRTCPeerConnection&&!e.RTCIceGatherer)t.browser="chrome",t.version=Mo(n.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(n.mediaDevices&&n.userAgent.match(/Edge\/(\d+).(\d+)$/))t.browser="edge",t.version=Mo(n.userAgent,/Edge\/(\d+).(\d+)$/,2);else{if(!e.RTCPeerConnection||!n.userAgent.match(/AppleWebKit\/(\d+)\./))return t.browser="Not a supported browser.",t;t.browser="safari",t.version=Mo(n.userAgent,/AppleWebKit\/(\d+)\./,1),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype}return t}function Fo(e){return"[object Object]"===Object.prototype.toString.call(e)}function Bo(e){return Fo(e)?Object.keys(e).reduce((function(t,n){const r=Fo(e[n]),i=r?Bo(e[n]):e[n],s=r&&!Object.keys(i).length;return void 0===i||s?t:Object.assign(t,{[n]:i})}),{}):e}function Lo(e,t,n){t&&!n.has(t.id)&&(n.set(t.id,t),Object.keys(t).forEach((r=>{r.endsWith("Id")?Lo(e,e.get(t[r]),n):r.endsWith("Ids")&&t[r].forEach((t=>{Lo(e,e.get(t),n)}))})))}function jo(e,t,n){const r=n?"outbound-rtp":"inbound-rtp",i=new Map;if(null===t)return i;const s=[];return e.forEach((e=>{"track"===e.type&&e.trackIdentifier===t.id&&s.push(e)})),s.forEach((t=>{e.forEach((n=>{n.type===r&&n.trackId===t.id&&Lo(e,n,i)}))})),i}const Uo=ko;function qo(e){const t=e&&e.navigator;if(!t.mediaDevices)return;const n=Do(e),r=function(e){if("object"!=typeof e||e.mandatory||e.optional)return e;const t={};return Object.keys(e).forEach((n=>{if("require"===n||"advanced"===n||"mediaSource"===n)return;const r="object"==typeof e[n]?e[n]:{ideal:e[n]};void 0!==r.exact&&"number"==typeof r.exact&&(r.min=r.max=r.exact);const i=function(e,t){return e?e+t.charAt(0).toUpperCase()+t.slice(1):"deviceId"===t?"sourceId":t};if(void 0!==r.ideal){t.optional=t.optional||[];let e={};"number"==typeof r.ideal?(e[i("min",n)]=r.ideal,t.optional.push(e),e={},e[i("max",n)]=r.ideal,t.optional.push(e)):(e[i("",n)]=r.ideal,t.optional.push(e))}void 0!==r.exact&&"number"!=typeof r.exact?(t.mandatory=t.mandatory||{},t.mandatory[i("",n)]=r.exact):["min","max"].forEach((e=>{void 0!==r[e]&&(t.mandatory=t.mandatory||{},t.mandatory[i(e,n)]=r[e])}))})),e.advanced&&(t.optional=(t.optional||[]).concat(e.advanced)),t},i=function(e,i){if(n.version>=61)return i(e);if((e=JSON.parse(JSON.stringify(e)))&&"object"==typeof e.audio){const t=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])};t((e=JSON.parse(JSON.stringify(e))).audio,"autoGainControl","googAutoGainControl"),t(e.audio,"noiseSuppression","googNoiseSuppression"),e.audio=r(e.audio)}if(e&&"object"==typeof e.video){let s=e.video.facingMode;s=s&&("object"==typeof s?s:{ideal:s});const o=n.version<66;if(s&&("user"===s.exact||"environment"===s.exact||"user"===s.ideal||"environment"===s.ideal)&&(!t.mediaDevices.getSupportedConstraints||!t.mediaDevices.getSupportedConstraints().facingMode||o)){let n;if(delete e.video.facingMode,"environment"===s.exact||"environment"===s.ideal?n=["back","rear"]:"user"!==s.exact&&"user"!==s.ideal||(n=["front"]),n)return t.mediaDevices.enumerateDevices().then((t=>{let o=(t=t.filter((e=>"videoinput"===e.kind))).find((e=>n.some((t=>e.label.toLowerCase().includes(t)))));return!o&&t.length&&n.includes("back")&&(o=t[t.length-1]),o&&(e.video.deviceId=s.exact?{exact:o.deviceId}:{ideal:o.deviceId}),e.video=r(e.video),Uo("chrome: "+JSON.stringify(e)),i(e)}))}e.video=r(e.video)}return Uo("chrome: "+JSON.stringify(e)),i(e)},s=function(e){return n.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(){return this.name+(this.message&&": ")+this.message}}};if(t.getUserMedia=function(e,n,r){i(e,(e=>{t.webkitGetUserMedia(e,n,(e=>{r&&r(s(e))}))}))}.bind(t),t.mediaDevices.getUserMedia){const e=t.mediaDevices.getUserMedia.bind(t.mediaDevices);t.mediaDevices.getUserMedia=function(t){return i(t,(t=>e(t).then((e=>{if(t.audio&&!e.getAudioTracks().length||t.video&&!e.getVideoTracks().length)throw e.getTracks().forEach((e=>{e.stop()})),new DOMException("","NotFoundError");return e}),(e=>Promise.reject(s(e))))))}}}function zo(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((t=>{const r=n.video&&n.video.width,i=n.video&&n.video.height,s=n.video&&n.video.frameRate;return n.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:t,maxFrameRate:s||3}},r&&(n.video.mandatory.maxWidth=r),i&&(n.video.mandatory.maxHeight=i),e.navigator.mediaDevices.getUserMedia(n)}))}:console.error("shimGetDisplayMedia: getSourceId argument is not a function"))}function Go(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function Ho(e){if("object"==typeof e&&e.RTCPeerConnection&&!("ontrack"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(e){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=e)},enumerable:!0,configurable:!0});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=t=>{t.stream.addEventListener("addtrack",(n=>{let r;r=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find((e=>e.track&&e.track.id===n.track.id)):{track:n.track};const i=new Event("track");i.track=n.track,i.receiver=r,i.transceiver={receiver:r},i.streams=[t.stream],this.dispatchEvent(i)})),t.stream.getTracks().forEach((n=>{let r;r=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find((e=>e.track&&e.track.id===n.id)):{track:n};const i=new Event("track");i.track=n,i.receiver=r,i.transceiver={receiver:r},i.streams=[t.stream],this.dispatchEvent(i)}))},this.addEventListener("addstream",this._ontrackpoly)),t.apply(this,arguments)}}else No(e,"track",(e=>(e.transceiver||Object.defineProperty(e,"transceiver",{value:{receiver:e.receiver}}),e)))}function Vo(e){if("object"==typeof e&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){const t=function(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()};const n=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,r){let i=n.apply(this,arguments);return i||(i=t(this,e),this._senders.push(i)),i};const r=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){r.apply(this,arguments);const t=this._senders.indexOf(e);-1!==t&&this._senders.splice(t,1)}}const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){this._senders=this._senders||[],n.apply(this,[e]),e.getTracks().forEach((e=>{this._senders.push(t(this,e))}))};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){this._senders=this._senders||[],r.apply(this,[e]),e.getTracks().forEach((e=>{const t=this._senders.find((t=>t.track===e));t&&this._senders.splice(this._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)){const t=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function Wo(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[e,n,r]=arguments;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,[]);const i=function(e){const t={};return e.result().forEach((e=>{const n={id:e.id,timestamp:e.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[e.type]||e.type};e.names().forEach((t=>{n[t]=e.stat(t)})),t[n.id]=n})),t},s=function(e){return new Map(Object.keys(e).map((t=>[t,e[t]])))};if(arguments.length>=2){const r=function(e){n(s(i(e)))};return t.apply(this,[r,e])}return new Promise(((e,n)=>{t.apply(this,[function(t){e(s(i(t)))},n])})).then(n,r)}}function $o(e){if(!("object"==typeof e&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver))return;if(!("getStats"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e});const n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){const e=n.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){const e=this;return this._pc.getStats().then((t=>jo(t,e.track,!0)))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e}),No(e,"track",(e=>(e.receiver._pc=e.srcElement,e))),e.RTCRtpReceiver.prototype.getStats=function(){const e=this;return this._pc.getStats().then((t=>jo(t,e.track,!1)))}}if(!("getStats"in e.RTCRtpSender.prototype)||!("getStats"in e.RTCRtpReceiver.prototype))return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){const e=arguments[0];let t,n,r;return this.getSenders().forEach((n=>{n.track===e&&(t?r=!0:t=n)})),this.getReceivers().forEach((t=>(t.track===e&&(n?r=!0:n=t),t.track===e))),r||t&&n?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):t?t.getStats():n?n.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return t.apply(this,arguments)}}function Qo(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map((e=>this._shimmedLocalStreams[e][0]))};const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,n){if(!n)return t.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};const r=t.apply(this,arguments);return this._shimmedLocalStreams[n.id]?-1===this._shimmedLocalStreams[n.id].indexOf(r)&&this._shimmedLocalStreams[n.id].push(r):this._shimmedLocalStreams[n.id]=[n,r],r};const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){this._shimmedLocalStreams=this._shimmedLocalStreams||{},e.getTracks().forEach((e=>{if(this.getSenders().find((t=>t.track===e)))throw new DOMException("Track already exists.","InvalidAccessError")}));const t=this.getSenders();n.apply(this,arguments);const r=this.getSenders().filter((e=>-1===t.indexOf(e)));this._shimmedLocalStreams[e.id]=[e].concat(r)};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[e.id],r.apply(this,arguments)};const i=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},e&&Object.keys(this._shimmedLocalStreams).forEach((t=>{const n=this._shimmedLocalStreams[t].indexOf(e);-1!==n&&this._shimmedLocalStreams[t].splice(n,1),1===this._shimmedLocalStreams[t].length&&delete this._shimmedLocalStreams[t]})),i.apply(this,arguments)}}function Yo(e){if(!e.RTCPeerConnection)return;const t=Do(e);if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return Qo(e);const n=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){const e=n.apply(this);return this._reverseStreams=this._reverseStreams||{},e.map((e=>this._reverseStreams[e.id]))};const r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(t){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},t.getTracks().forEach((e=>{if(this.getSenders().find((t=>t.track===e)))throw new DOMException("Track already exists.","InvalidAccessError")})),!this._reverseStreams[t.id]){const n=new e.MediaStream(t.getTracks());this._streams[t.id]=n,this._reverseStreams[n.id]=t,t=n}r.apply(this,[t])};const i=e.RTCPeerConnection.prototype.removeStream;function s(e,t){let n=t.sdp;return Object.keys(e._reverseStreams||[]).forEach((t=>{const r=e._reverseStreams[t],i=e._streams[r.id];n=n.replace(new RegExp(i.id,"g"),r.id)})),new RTCSessionDescription({type:t.type,sdp:n})}function o(e,t){let n=t.sdp;return Object.keys(e._reverseStreams||[]).forEach((t=>{const r=e._reverseStreams[t],i=e._streams[r.id];n=n.replace(new RegExp(r.id,"g"),i.id)})),new RTCSessionDescription({type:t.type,sdp:n})}e.RTCPeerConnection.prototype.removeStream=function(e){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},i.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){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");const r=[].slice.call(arguments,1);if(1!==r.length||!r[0].getTracks().find((e=>e===t)))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");const i=this.getSenders().find((e=>e.track===t));if(i)throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const s=this._streams[n.id];if(s)s.addTrack(t),Promise.resolve().then((()=>{this.dispatchEvent(new Event("negotiationneeded"))}));else{const r=new e.MediaStream([t]);this._streams[n.id]=r,this._reverseStreams[r.id]=n,this.addStream(r)}return this.getSenders().find((e=>e.track===t))},["createOffer","createAnswer"].forEach((function(t){const n=e.RTCPeerConnection.prototype[t],r={[t](){const e=arguments;return arguments.length&&"function"==typeof arguments[0]?n.apply(this,[t=>{const n=s(this,t);e[0].apply(null,[n])},t=>{e[1]&&e[1].apply(null,t)},arguments[2]]):n.apply(this,arguments).then((e=>s(this,e)))}};e.RTCPeerConnection.prototype[t]=r[t]}));const 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)};const c=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get(){const e=c.get.apply(this);return""===e.type?e:s(this,e)}}),e.RTCPeerConnection.prototype.removeTrack=function(e){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");let t;this._streams=this._streams||{},Object.keys(this._streams).forEach((n=>{this._streams[n].getTracks().find((t=>e.track===t))&&(t=this._streams[n])})),t&&(1===t.getTracks().length?this.removeStream(this._reverseStreams[t.id]):t.removeTrack(e.track),this.dispatchEvent(new Event("negotiationneeded")))}}function Xo(e){const t=Do(e);if(!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),!e.RTCPeerConnection)return;const n=0===e.RTCPeerConnection.prototype.addIceCandidate.length;t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){const n=e.RTCPeerConnection.prototype[t],r={[t](){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments)}};e.RTCPeerConnection.prototype[t]=r[t]}));const r=e.RTCPeerConnection.prototype.addIceCandidate;e.RTCPeerConnection.prototype.addIceCandidate=function(){return n||arguments[0]?t.version<78&&arguments[0]&&""===arguments[0].candidate?Promise.resolve():r.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())}}function Ko(e){const t=Do(e);No(e,"negotiationneeded",(e=>{const n=e.target;if(!(t.version<72||n.getConfiguration&&"plan-b"===n.getConfiguration().sdpSemantics)||"stable"===n.signalingState)return e}))}var Zo=n(2539),Jo=n.n(Zo);function ea(e){const t=e&&e.navigator,n=t.mediaDevices.getUserMedia.bind(t.mediaDevices);t.mediaDevices.getUserMedia=function(e){return n(e).catch((e=>Promise.reject(function(e){return{name:{PermissionDeniedError:"NotAllowedError"}[e.name]||e.name,message:e.message,constraint:e.constraint,toString(){return this.name}}}(e))))}}function ta(e){"getDisplayMedia"in e.navigator&&e.navigator.mediaDevices&&(e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||(e.navigator.mediaDevices.getDisplayMedia=e.navigator.getDisplayMedia.bind(e.navigator)))}function na(e){const t=Do(e);if(e.RTCIceGatherer&&(e.RTCIceCandidate||(e.RTCIceCandidate=function(e){return e}),e.RTCSessionDescription||(e.RTCSessionDescription=function(e){return e}),t.version<15025)){const t=Object.getOwnPropertyDescriptor(e.MediaStreamTrack.prototype,"enabled");Object.defineProperty(e.MediaStreamTrack.prototype,"enabled",{set(e){t.set.call(this,e);const n=new Event("enabled");n.enabled=e,this.dispatchEvent(n)}})}e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)&&Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=new e.RTCDtmfSender(this):"video"===this.track.kind&&(this._dtmf=null)),this._dtmf}}),e.RTCDtmfSender&&!e.RTCDTMFSender&&(e.RTCDTMFSender=e.RTCDtmfSender);const n=Jo()(e,t.version);e.RTCPeerConnection=function(e){return e&&e.iceServers&&(e.iceServers=function(e,t){let n=!1;return(e=JSON.parse(JSON.stringify(e))).filter((e=>{if(e&&(e.urls||e.url)){let t=e.urls||e.url;e.url&&!e.urls&&Po("RTCIceServer.url","RTCIceServer.urls");const r="string"==typeof t;return r&&(t=[t]),t=t.filter((e=>{if(0===e.indexOf("stun:"))return!1;const t=e.startsWith("turn")&&!e.startsWith("turn:[")&&e.includes("transport=udp");return t&&!n?(n=!0,!0):t&&!n})),delete e.url,e.urls=r?t[0]:t,!!t.length}}))}(e.iceServers,t.version),ko("ICE servers after filtering:",e.iceServers)),new n(e)},e.RTCPeerConnection.prototype=n.prototype}function ra(e){e.RTCRtpSender&&!("replaceTrack"in e.RTCRtpSender.prototype)&&(e.RTCRtpSender.prototype.replaceTrack=e.RTCRtpSender.prototype.setTrack)}function ia(e){const t=Do(e),n=e&&e.navigator,r=e&&e.MediaStreamTrack;if(n.getUserMedia=function(e,t,r){Po("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),n.mediaDevices.getUserMedia(e).then(t,r)},!(t.version>55&&"autoGainControl"in n.mediaDevices.getSupportedConstraints())){const e=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])},t=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)),e(n.audio,"autoGainControl","mozAutoGainControl"),e(n.audio,"noiseSuppression","mozNoiseSuppression")),t(n)},r&&r.prototype.getSettings){const t=r.prototype.getSettings;r.prototype.getSettings=function(){const n=t.apply(this,arguments);return e(n,"mozAutoGainControl","autoGainControl"),e(n,"mozNoiseSuppression","noiseSuppression"),n}}if(r&&r.prototype.applyConstraints){const t=r.prototype.applyConstraints;r.prototype.applyConstraints=function(n){return"audio"===this.kind&&"object"==typeof n&&(n=JSON.parse(JSON.stringify(n)),e(n,"autoGainControl","mozAutoGainControl"),e(n,"noiseSuppression","mozNoiseSuppression")),t.apply(this,[n])}}}}function sa(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&(e.navigator.mediaDevices.getDisplayMedia=function(n){if(!n||!n.video){const e=new DOMException("getDisplayMedia without video constraints is undefined");return e.name="NotFoundError",e.code=8,Promise.reject(e)}return!0===n.video?n.video={mediaSource:t}:n.video.mediaSource=t,e.navigator.mediaDevices.getUserMedia(n)})}function oa(e){"object"==typeof e&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function aa(e){const t=Do(e);if("object"!=typeof e||!e.RTCPeerConnection&&!e.mozRTCPeerConnection)return;if(!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){const n=e.RTCPeerConnection.prototype[t],r={[t](){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments)}};e.RTCPeerConnection.prototype[t]=r[t]})),t.version<68){const t=e.RTCPeerConnection.prototype.addIceCandidate;e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?arguments[0]&&""===arguments[0].candidate?Promise.resolve():t.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())}}const n={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},r=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[e,i,s]=arguments;return r.apply(this,[e||null]).then((e=>{if(t.version<53&&!i)try{e.forEach((e=>{e.type=n[e.type]||e.type}))}catch(t){if("TypeError"!==t.name)throw t;e.forEach(((t,r)=>{e.set(r,Object.assign({},t,{type:n[t.type]||t.type}))}))}return e})).then(i,s)}}function ca(e){if("object"!=typeof e||!e.RTCPeerConnection||!e.RTCRtpSender)return;if(e.RTCRtpSender&&"getStats"in e.RTCRtpSender.prototype)return;const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e});const n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){const 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 la(e){if("object"!=typeof e||!e.RTCPeerConnection||!e.RTCRtpSender)return;if(e.RTCRtpSender&&"getStats"in e.RTCRtpReceiver.prototype)return;const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e}),No(e,"track",(e=>(e.receiver._pc=e.srcElement,e))),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function fa(e){e.RTCPeerConnection&&!("removeStream"in e.RTCPeerConnection.prototype)&&(e.RTCPeerConnection.prototype.removeStream=function(e){Po("removeStream","removeTrack"),this.getSenders().forEach((t=>{t.track&&e.getTracks().includes(t.track)&&this.removeTrack(t)}))})}function ua(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function da(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.addTransceiver;t&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];const e=arguments[1],n=e&&"sendEncodings"in e;n&&e.sendEncodings.forEach((e=>{if("rid"in e){if(!/^[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")}));const r=t.apply(this,arguments);if(n){const{sender:t}=r,n=t.getParameters();(!("encodings"in n)||1===n.encodings.length&&0===Object.keys(n.encodings[0]).length)&&(n.encodings=e.sendEncodings,t.sendEncodings=e.sendEncodings,this.setParametersPromises.push(t.setParameters(n).then((()=>{delete t.sendEncodings})).catch((()=>{delete t.sendEncodings}))))}return r})}function ha(e){if("object"!=typeof e||!e.RTCRtpSender)return;const t=e.RTCRtpSender.prototype.getParameters;t&&(e.RTCRtpSender.prototype.getParameters=function(){const e=t.apply(this,arguments);return"encodings"in e||(e.encodings=[].concat(this.sendEncodings||[{}])),e})}function pa(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then((()=>t.apply(this,arguments))).finally((()=>{this.setParametersPromises=[]})):t.apply(this,arguments)}}function ma(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then((()=>t.apply(this,arguments))).finally((()=>{this.setParametersPromises=[]})):t.apply(this,arguments)}}function ga(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)){const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(e){this._localStreams||(this._localStreams=[]),this._localStreams.includes(e)||this._localStreams.push(e),e.getAudioTracks().forEach((n=>t.call(this,n,e))),e.getVideoTracks().forEach((n=>t.call(this,n,e)))},e.RTCPeerConnection.prototype.addTrack=function(e,...n){return n&&n.forEach((e=>{this._localStreams?this._localStreams.includes(e)||this._localStreams.push(e):this._localStreams=[e]})),t.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(e){this._localStreams||(this._localStreams=[]);const t=this._localStreams.indexOf(e);if(-1===t)return;this._localStreams.splice(t,1);const n=e.getTracks();this.getSenders().forEach((e=>{n.includes(e.track)&&this.removeTrack(e)}))})}}function va(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(){return this._onaddstream},set(e){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=e),this.addEventListener("track",this._onaddstreampoly=e=>{e.streams.forEach((e=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(e))return;this._remoteStreams.push(e);const t=new Event("addstream");t.stream=e,this.dispatchEvent(t)}))})}});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){const e=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(t){t.streams.forEach((t=>{if(e._remoteStreams||(e._remoteStreams=[]),e._remoteStreams.indexOf(t)>=0)return;e._remoteStreams.push(t);const n=new Event("addstream");n.stream=t,e.dispatchEvent(n)}))}),t.apply(e,arguments)}}}function ba(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype,n=t.createOffer,r=t.createAnswer,i=t.setLocalDescription,s=t.setRemoteDescription,o=t.addIceCandidate;t.createOffer=function(e,t){const r=arguments.length>=2?arguments[2]:arguments[0],i=n.apply(this,[r]);return t?(i.then(e,t),Promise.resolve()):i},t.createAnswer=function(e,t){const n=arguments.length>=2?arguments[2]:arguments[0],i=r.apply(this,[n]);return t?(i.then(e,t),Promise.resolve()):i};let a=function(e,t,n){const r=i.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r};t.setLocalDescription=a,a=function(e,t,n){const r=s.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r},t.setRemoteDescription=a,a=function(e,t,n){const r=o.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r},t.addIceCandidate=a}function ya(e){const t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){const e=t.mediaDevices,n=e.getUserMedia.bind(e);t.mediaDevices.getUserMedia=e=>n(_a(e))}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=function(e,n,r){t.mediaDevices.getUserMedia(e).then(n,r)}.bind(t))}function _a(e){return e&&void 0!==e.video?Object.assign({},e,{video:Bo(e.video)}):e}function Aa(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection;e.RTCPeerConnection=function(e,n){if(e&&e.iceServers){const t=[];for(let n=0;n<e.iceServers.length;n++){let r=e.iceServers[n];!r.hasOwnProperty("urls")&&r.hasOwnProperty("url")?(Po("RTCIceServer.url","RTCIceServer.urls"),r=JSON.parse(JSON.stringify(r)),r.urls=r.url,delete r.url,t.push(r)):t.push(e.iceServers[n])}e.iceServers=t}return new t(e,n)},e.RTCPeerConnection.prototype=t.prototype,"generateCertificate"in t&&Object.defineProperty(e.RTCPeerConnection,"generateCertificate",{get:()=>t.generateCertificate})}function wa(e){"object"==typeof e&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function Ca(e){const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(e){if(e){void 0!==e.offerToReceiveAudio&&(e.offerToReceiveAudio=!!e.offerToReceiveAudio);const t=this.getTransceivers().find((e=>"audio"===e.receiver.track.kind));!1===e.offerToReceiveAudio&&t?"sendrecv"===t.direction?t.setDirection?t.setDirection("sendonly"):t.direction="sendonly":"recvonly"===t.direction&&(t.setDirection?t.setDirection("inactive"):t.direction="inactive"):!0!==e.offerToReceiveAudio||t||this.addTransceiver("audio"),void 0!==e.offerToReceiveVideo&&(e.offerToReceiveVideo=!!e.offerToReceiveVideo);const n=this.getTransceivers().find((e=>"video"===e.receiver.track.kind));!1===e.offerToReceiveVideo&&n?"sendrecv"===n.direction?n.setDirection?n.setDirection("sendonly"):n.direction="sendonly":"recvonly"===n.direction&&(n.setDirection?n.setDirection("inactive"):n.direction="inactive"):!0!==e.offerToReceiveVideo||n||this.addTransceiver("video")}return t.apply(this,arguments)}}function Ea(e){"object"!=typeof e||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}var Sa=n(2699),Ta=n.n(Sa);function Oa(e){if(!e.RTCIceCandidate||e.RTCIceCandidate&&"foundation"in e.RTCIceCandidate.prototype)return;const 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){const n=new t(e),r=Ta().parseCandidate(e.candidate),i=Object.assign(n,r);return i.toJSON=function(){return{candidate:i.candidate,sdpMid:i.sdpMid,sdpMLineIndex:i.sdpMLineIndex,usernameFragment:i.usernameFragment}},i}return new t(e)},e.RTCIceCandidate.prototype=t.prototype,No(e,"icecandidate",(t=>(t.candidate&&Object.defineProperty(t,"candidate",{value:new e.RTCIceCandidate(t.candidate),writable:"false"}),t)))}function xa(e){if(!e.RTCPeerConnection)return;const t=Do(e);"sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get(){return void 0===this._sctp?null:this._sctp}});const n=function(e){if(!e||!e.sdp)return!1;const t=Ta().splitSections(e.sdp);return t.shift(),t.some((e=>{const t=Ta().parseMLine(e);return t&&"application"===t.kind&&-1!==t.protocol.indexOf("SCTP")}))},r=function(e){const t=e.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(null===t||t.length<2)return-1;const n=parseInt(t[1],10);return n!=n?-1:n},i=function(e){let n=65536;return"firefox"===t.browser&&(n=t.version<57?-1===e?16384:2147483637:t.version<60?57===t.version?65535:65536:2147483637),n},s=function(e,n){let r=65536;"firefox"===t.browser&&57===t.version&&(r=65535);const i=Ta().matchPrefix(e.sdp,"a=max-message-size:");return i.length>0?r=parseInt(i[0].substr(19),10):"firefox"===t.browser&&-1!==n&&(r=2147483637),r},o=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,"chrome"===t.browser&&t.version>=76){const{sdpSemantics:e}=this.getConfiguration();"plan-b"===e&&Object.defineProperty(this,"sctp",{get(){return void 0===this._sctp?null:this._sctp},enumerable:!0,configurable:!0})}if(n(arguments[0])){const e=r(arguments[0]),t=i(e),n=s(arguments[0],e);let o;o=0===t&&0===n?Number.POSITIVE_INFINITY:0===t||0===n?Math.max(t,n):Math.min(t,n);const a={};Object.defineProperty(a,"maxMessageSize",{get:()=>o}),this._sctp=a}return o.apply(this,arguments)}}function Ma(e){if(!e.RTCPeerConnection||!("createDataChannel"in e.RTCPeerConnection.prototype))return;function t(e,t){const n=e.send;e.send=function(){const r=arguments[0],i=r.length||r.size||r.byteLength;if("open"===e.readyState&&t.sctp&&i>t.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+t.sctp.maxMessageSize+" bytes)");return n.apply(e,arguments)}}const n=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){const e=n.apply(this,arguments);return t(e,this),e},No(e,"datachannel",(e=>(t(e.channel,e.target),e)))}function Na(e){if(!e.RTCPeerConnection||"connectionState"in e.RTCPeerConnection.prototype)return;const t=e.RTCPeerConnection.prototype;Object.defineProperty(t,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(t,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},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((e=>{const n=t[e];t[e]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=e=>{const t=e.target;if(t._lastConnectionState!==t.connectionState){t._lastConnectionState=t.connectionState;const n=new Event("connectionstatechange",e);t.dispatchEvent(n)}return e},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),n.apply(this,arguments)}}))}function Ia(e){if(!e.RTCPeerConnection)return;const t=Do(e);if("chrome"===t.browser&&t.version>=71)return;if("safari"===t.browser&&t.version>=605)return;const n=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(e){return e&&e.sdp&&-1!==e.sdp.indexOf("\na=extmap-allow-mixed")&&(e.sdp=e.sdp.split("\n").filter((e=>"a=extmap-allow-mixed"!==e.trim())).join("\n")),n.apply(this,arguments)}}!function({window:e}={},t={shimChrome:!0,shimFirefox:!0,shimEdge:!0,shimSafari:!0}){const n=ko,c=Do(e),l={browserDetails:c,commonShim:a,extractVersion:Mo,disableLog:Io,disableWarnings:Ro};switch(c.browser){case"chrome":if(!r||!Xo||!t.shimChrome)return n("Chrome shim is not included in this adapter release."),l;if(null===c.version)return n("Chrome shim can not determine version, not shimming."),l;n("adapter.js shimming chrome."),l.browserShim=r,qo(e),Go(e),Xo(e),Ho(e),Yo(e),Vo(e),Wo(e),$o(e),Ko(e),Oa(e),Na(e),xa(e),Ma(e),Ia(e);break;case"firefox":if(!s||!aa||!t.shimFirefox)return n("Firefox shim is not included in this adapter release."),l;n("adapter.js shimming firefox."),l.browserShim=s,ia(e),aa(e),oa(e),fa(e),ca(e),la(e),ua(e),da(e),ha(e),pa(e),ma(e),Oa(e),Na(e),xa(e),Ma(e);break;case"edge":if(!i||!na||!t.shimEdge)return n("MS edge shim is not included in this adapter release."),l;n("adapter.js shimming edge."),l.browserShim=i,ea(e),ta(e),na(e),ra(e),xa(e),Ma(e);break;case"safari":if(!o||!t.shimSafari)return n("Safari shim is not included in this adapter release."),l;n("adapter.js shimming safari."),l.browserShim=o,Aa(e),Ca(e),ba(e),ga(e),va(e),wa(e),ya(e),Ea(e),Oa(e),xa(e),Ma(e),Ia(e);break;default:n("Unsupported browser!")}}({window:"undefined"==typeof window?void 0:window});var Ra,ka,Pa,Da,Fa,Ba;function La(e,t){return new Gs(t?n=>t.schedule(ja,0,{error:e,subscriber:n}):t=>t.error(e))}function ja({error:e,subscriber:t}){t.error(e)}!function(e){e[e.Idle=0]="Idle",e[e.Error=1]="Error",e[e.Connected=2]="Connected"}(Ra||(Ra={})),function(e){e[e.None=0]="None",e[e.Chat=1]="Chat",e[e.Authenticate=2]="Authenticate",e[e.Offline=3]="Offline",e[e.PopoutButton=4]="PopoutButton",e[e.Disabled=5]="Disabled",e[e.ChatCompleted=6]="ChatCompleted"}(ka||(ka={})),function(e){e[e.None=-1]="None",e[e.Negative=0]="Negative",e[e.Positive=1]="Positive"}(Pa||(Pa={})),function(e){e[e.Uploading=0]="Uploading",e[e.Available=1]="Available",e[e.Deleted=2]="Deleted"}(Da||(Da={})),function(e){e[e.NoError=0]="NoError",e[e.CanRetry=1]="CanRetry",e[e.NoRetry=2]="NoRetry"}(Fa||(Fa={})),function(e){e[e.MISSED=0]="MISSED",e[e.OLD_ENDED=1]="OLD_ENDED",e[e.PENDING_AGENT=2]="PENDING_AGENT",e[e.ACTIVE=3]="ACTIVE",e[e.BROWSE=5]="BROWSE",e[e.NOT_STARTED=17]="NOT_STARTED",e[e.ENDED_BY_AGENT=16]="ENDED_BY_AGENT",e[e.ENDED_BY_CLIENT=15]="ENDED_BY_CLIENT",e[e.ENDED_DUE_AGENT_INACTIVITY=14]="ENDED_DUE_AGENT_INACTIVITY",e[e.ENDED_DUE_CLIENT_INACTIVITY=13]="ENDED_DUE_CLIENT_INACTIVITY"}(Ba||(Ba={}));class Ua{constructor(e,t){this.sessionState=e,this.error=t,this.messages$=new Qs,this.supportsWebRTC=!1,this.serverProvideSystemMessages=!1,this.sessionId=""}get(e){return La(this.error)}getSessionUniqueCode(){return-1}fileEndPoint(e){return""}emojiEndpoint(){return""}}const qa=()=>new Ua(Ra.Idle,"Can' send request to idle session"),za=e=>new Ua(Ra.Error,e);function Ga(e,t){return function(n){return n.lift(new Ha(e,t))}}class Ha{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new Va(e,this.predicate,this.thisArg))}}class Va extends Ls{constructor(e,t,n){super(e),this.predicate=t,this.thisArg=n,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}t&&this.destination.next(e)}}var Wa=n(2100);const $a=Wa.Reader,Qa=Wa.Writer,Ya=Wa.util,Xa=Wa.roots.default||(Wa.roots.default={}),Ka=(Xa.ErrorCodes=(()=>{const e={},t=Object.create(e);return t[e[-1]="ConferenceWithPinDoesNotExist"]=-1,t[e[-2]="ConferenceWithPinAlreadyExists"]=-2,t[e[-3]="ConferencePinAndIdDoesNotMatch"]=-3,t[e[-4]="ConferenceAccessDenied"]=-4,t[e[-5]="ConferenceIsCancelled"]=-5,t[e[-6]="ConferencePinIsReadOnly"]=-6,t[e[-7]="ConferenceInvalidPin"]=-7,t[e[-8]="CannotGeneratePin"]=-8,t[e[-9]="FwdProfileDoesNotExist"]=-9,t[e[-10]="FwdProfileOverrideExpirationRequired"]=-10,t[e[0]="Success"]=0,t[e[1]="NoSuchRequest"]=1,t[e[2]="ExceptionOccured"]=2,t[e[3]="RequestIsNotSupported"]=3,t[e[4]="ServerIsBusy"]=4,t[e[5]="BridgeNotFound"]=5,t[e[6]="CannotCleanOwnExtension"]=6,t[e[7]="SetWakeupCallResult"]=7,t[e[8]="ExtensionNotFound"]=8,t[e[9]="NoPermission"]=9,t[e[12]="WebMeetingNoEmail"]=12,t[e[13]="WebMeetingNoAccess"]=13,t[e[16]="WebMeetingInvalidOrganizer"]=16,t[e[17]="WebMeetingInvalidParameters"]=17,t[e[18]="WebMeetingInvalidParticipant"]=18,t[e[19]="WebMeetingInvalidPin"]=19,t[e[20]="WebMeetingAccessDenied"]=20,t[e[21]="WebMeetingNotFound"]=21,t[e[22]="WebMeetingCannotDeleteQM"]=22,t[e[23]="WebMeetingPinIsReadonly"]=23,t[e[24]="WebMeetingNumberToCallIsReadonly"]=24,t[e[25]="WebMeetingInvalidWmUser"]=25,t[e[30]="ExtensionEmailRequired"]=30,t[e[31]="QueueNumberRequired"]=31,t[e[32]="ChatIsDisabled"]=32,t[e[33]="PersonalContactRequired"]=33,t[e[34]="RequiredFieldIsEmpty"]=34,t[e[35]="ContactNotFound"]=35,t[e[36]="ContactIsReadonly"]=36,t[e[37]="ActionIsNotAllowed"]=37,t[e[38]="FileNotFound"]=38,t[e[39]="OwnRecordingsDenied"]=39,t[e[40]="InvalidValue"]=40,t[e[41]="InvalidMedia"]=41,t[e[42]="InvalidOperation"]=42,t[e[43]="OperationFailed"]=43,t})(),Xa.ActionType=(()=>{const e={},t=Object.create(e);return t[e[0]="NoUpdates"]=0,t[e[1]="FullUpdate"]=1,t[e[2]="Inserted"]=2,t[e[3]="Updated"]=3,t[e[4]="Deleted"]=4,t})()),Za=(Xa.ContactType=(()=>{const e={},t=Object.create(e);return t[e[0]="LocalUser"]=0,t[e[1]="CompanyPhonebook"]=1,t[e[2]="PersonalPhonebook"]=2,t[e[3]="BridgeExtension"]=3,t})(),Xa.ChatFileState=(()=>{const e={},t=Object.create(e);return t[e[0]="CF_Uploading"]=0,t[e[1]="CF_Available"]=1,t[e[2]="CF_Deleted"]=2,t})()),Ja=(Xa.ContactAddedByEnum=(()=>{const e={},t=Object.create(e);return t[e[0]="AB_Tcx"]=0,t[e[1]="AB_Crm"]=1,t[e[2]="AB_Office365"]=2,t})(),Xa.ChatMessageType=(()=>{const e={},t=Object.create(e);return t[e[0]="CMT_Normal"]=0,t[e[1]="CMT_Closed"]=1,t[e[2]="CMT_Dealt"]=2,t[e[3]="CMT_File"]=3,t[e[4]="CMT_Taken"]=4,t[e[5]="CMT_Transferred"]=5,t[e[6]="CMT_Whisper"]=6,t[e[7]="CMT_Emergency"]=7,t[e[8]="CMT_License"]=8,t[e[9]="CMT_WebMeeting"]=9,t})(),Xa.ChatRecipientType=(()=>{const e={},t=Object.create(e);return t[e[0]="CRT_Local"]=0,t[e[1]="CRT_3cxBridge"]=1,t[e[2]="CRT_Anonymous"]=2,t[e[3]="CRT_External"]=3,t[e[5]="CRT_System"]=5,t})(),Xa.ChatDeliveryStatus=(()=>{const e={},t=Object.create(e);return t[e[0]="CDS_NotDelivered"]=0,t[e[1]="CDS_Delivered"]=1,t[e[2]="CDS_Failed"]=2,t})(),Xa.Login=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Qa.create()),t.uint32(10).string(e.User),null!=e.Password&&Object.hasOwnProperty.call(e,"Password")&&t.uint32(18).string(e.Password),null!=e.ClientVersion&&Object.hasOwnProperty.call(e,"ClientVersion")&&t.uint32(26).string(e.ClientVersion),null!=e.ClientInfo&&Object.hasOwnProperty.call(e,"ClientInfo")&&t.uint32(34).string(e.ClientInfo),null!=e.ProtocolVersion&&Object.hasOwnProperty.call(e,"ProtocolVersion")&&t.uint32(42).string(e.ProtocolVersion),t},e.decode=function(e,t){e instanceof $a||(e=$a.create(e));let n=void 0===t?e.len:e.pos+t,r=new Xa.Login;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.User=e.string();break;case 2:r.Password=e.string();break;case 3:r.ClientVersion=e.string();break;case 4:r.ClientInfo=e.string();break;case 5:r.ProtocolVersion=e.string();break;default:e.skipType(7&t)}}return r},e.prototype.toGenericMessage=function(){return new Xa.GenericMessage({MessageId:100,LoginRequest:this})},e})()),ec=(Xa.LoginInfo=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Qa.create()),null!=e.ExtensionId&&Object.hasOwnProperty.call(e,"ExtensionId")&&t.uint32(8).int32(e.ExtensionId),null!=e.IsAuthenticated&&Object.hasOwnProperty.call(e,"IsAuthenticated")&&t.uint32(16).bool(e.IsAuthenticated),null!=e.ValidationMessage&&Object.hasOwnProperty.call(e,"ValidationMessage")&&t.uint32(26).string(e.ValidationMessage),null!=e.Nonce&&Object.hasOwnProperty.call(e,"Nonce")&&t.uint32(34).string(e.Nonce),null!=e.SessionId&&Object.hasOwnProperty.call(e,"SessionId")&&t.uint32(42).string(e.SessionId),null!=e.AddpTimeout&&Object.hasOwnProperty.call(e,"AddpTimeout")&&t.uint32(48).int32(e.AddpTimeout),null!=e.ServerVersion&&Object.hasOwnProperty.call(e,"ServerVersion")&&t.uint32(58).string(e.ServerVersion),null!=e.UpdateAvailable&&Object.hasOwnProperty.call(e,"UpdateAvailable")&&t.uint32(64).bool(e.UpdateAvailable),null!=e.LicenseType&&Object.hasOwnProperty.call(e,"LicenseType")&&t.uint32(72).int32(e.LicenseType),null!=e.LicenseProduct&&Object.hasOwnProperty.call(e,"LicenseProduct")&&t.uint32(82).string(e.LicenseProduct),null!=e.PbxVersion&&Object.hasOwnProperty.call(e,"PbxVersion")&&t.uint32(90).string(e.PbxVersion),t},e.decode=function(e,t){e instanceof $a||(e=$a.create(e));let n=void 0===t?e.len:e.pos+t,r=new Xa.LoginInfo;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.ExtensionId=e.int32();break;case 2:r.IsAuthenticated=e.bool();break;case 3:r.ValidationMessage=e.string();break;case 4:r.Nonce=e.string();break;case 5:r.SessionId=e.string();break;case 6:r.AddpTimeout=e.int32();break;case 7:r.ServerVersion=e.string();break;case 8:r.UpdateAvailable=e.bool();break;case 9:r.LicenseType=e.int32();break;case 10:r.LicenseProduct=e.string();break;case 11:r.PbxVersion=e.string();break;default:e.skipType(7&t)}}return r},e.prototype.toGenericMessage=function(){return new Xa.GenericMessage({MessageId:200,LoginResponse:this})},e})(),Xa.Logout=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Qa.create()),t},e.decode=function(e,t){e instanceof $a||(e=$a.create(e));let n=void 0===t?e.len:e.pos+t,r=new Xa.Logout;for(;e.pos<n;){let t=e.uint32();e.skipType(7&t)}return r},e.prototype.toGenericMessage=function(){return new Xa.GenericMessage({MessageId:101,LogoutRequest:this})},e})()),tc=Xa.DateTime=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Qa.create()),null!=e.Year&&Object.hasOwnProperty.call(e,"Year")&&t.uint32(8).int32(e.Year),null!=e.Month&&Object.hasOwnProperty.call(e,"Month")&&t.uint32(16).int32(e.Month),null!=e.Day&&Object.hasOwnProperty.call(e,"Day")&&t.uint32(24).int32(e.Day),null!=e.Hour&&Object.hasOwnProperty.call(e,"Hour")&&t.uint32(32).int32(e.Hour),null!=e.Minute&&Object.hasOwnProperty.call(e,"Minute")&&t.uint32(40).int32(e.Minute),null!=e.Second&&Object.hasOwnProperty.call(e,"Second")&&t.uint32(48).int32(e.Second),t},e.decode=function(e,t){e instanceof $a||(e=$a.create(e));let n=void 0===t?e.len:e.pos+t,r=new Xa.DateTime;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.Year=e.int32();break;case 2:r.Month=e.int32();break;case 3:r.Day=e.int32();break;case 4:r.Hour=e.int32();break;case 5:r.Minute=e.int32();break;case 6:r.Second=e.int32();break;default:e.skipType(7&t)}}return r},e})(),nc=(Xa.Registration=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Qa.create()),t.uint32(8).int32(e.Action),t.uint32(16).int32(e.Id),null!=e.Contact&&Object.hasOwnProperty.call(e,"Contact")&&t.uint32(26).string(e.Contact),null!=e.SourceAddress&&Object.hasOwnProperty.call(e,"SourceAddress")&&t.uint32(34).string(e.SourceAddress),null!=e.UserAgent&&Object.hasOwnProperty.call(e,"UserAgent")&&t.uint32(42).string(e.UserAgent),null!=e.ExpiresAt&&Object.hasOwnProperty.call(e,"ExpiresAt")&&Xa.DateTime.encode(e.ExpiresAt,t.uint32(50).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $a||(e=$a.create(e));let n=void 0===t?e.len:e.pos+t,r=new Xa.Registration;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.Action=e.int32();break;case 2:r.Id=e.int32();break;case 3:r.Contact=e.string();break;case 4:r.SourceAddress=e.string();break;case 5:r.UserAgent=e.string();break;case 6:r.ExpiresAt=Xa.DateTime.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e})(),Xa.Registrations=(()=>{function e(e){if(this.Items=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.Items=Ya.emptyArray,e.encode=function(e,t){if(t||(t=Qa.create()),t.uint32(8).int32(e.Action),null!=e.Items&&e.Items.length)for(let n=0;n<e.Items.length;++n)Xa.Registration.encode(e.Items[n],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $a||(e=$a.create(e));let n=void 0===t?e.len:e.pos+t,r=new Xa.Registrations;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.Action=e.int32();break;case 2:r.Items&&r.Items.length||(r.Items=[]),r.Items.push(Xa.Registration.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return r},e})(),Xa.MyExtensionInfo=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Qa.create()),t.uint32(8).int32(e.Action),t.uint32(16).int32(e.Id),null!=e.Number&&Object.hasOwnProperty.call(e,"Number")&&t.uint32(26).string(e.Number),null!=e.QueueStatus&&Object.hasOwnProperty.call(e,"QueueStatus")&&t.uint32(48).bool(e.QueueStatus),null!=e.ActiveDevices&&Object.hasOwnProperty.call(e,"ActiveDevices")&&Xa.Registrations.encode(e.ActiveDevices,t.uint32(74).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $a||(e=$a.create(e));let n=void 0===t?e.len:e.pos+t,r=new Xa.MyExtensionInfo;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.Action=e.int32();break;case 2:r.Id=e.int32();break;case 3:r.Number=e.string();break;case 6:r.QueueStatus=e.bool();break;case 9:r.ActiveDevices=Xa.Registrations.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.prototype.toGenericMessage=function(){return new Xa.GenericMessage({MessageId:201,MyInfo:this})},e})(),Xa.RequestMyInfo=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Qa.create()),t},e.decode=function(e,t){e instanceof $a||(e=$a.create(e));let n=void 0===t?e.len:e.pos+t,r=new Xa.RequestMyInfo;for(;e.pos<n;){let t=e.uint32();e.skipType(7&t)}return r},e.prototype.toGenericMessage=function(){return new Xa.GenericMessage({MessageId:102,GetMyInfo:this})},e})()),rc=(Xa.Contact=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Qa.create()),t.uint32(8).int32(e.Id),null!=e.FirstName&&Object.hasOwnProperty.call(e,"FirstName")&&t.uint32(18).string(e.FirstName),null!=e.LastName&&Object.hasOwnProperty.call(e,"LastName")&&t.uint32(26).string(e.LastName),null!=e.Number&&Object.hasOwnProperty.call(e,"Number")&&t.uint32(34).string(e.Number),null!=e.ExtensionNumber&&Object.hasOwnProperty.call(e,"ExtensionNumber")&&t.uint32(42).string(e.ExtensionNumber),null!=e.ContactType&&Object.hasOwnProperty.call(e,"ContactType")&&t.uint32(48).int32(e.ContactType),null!=e.Company&&Object.hasOwnProperty.call(e,"Company")&&t.uint32(58).string(e.Company),null!=e.AddressNumberOrData0&&Object.hasOwnProperty.call(e,"AddressNumberOrData0")&&t.uint32(66).string(e.AddressNumberOrData0),null!=e.AddressNumberOrData1&&Object.hasOwnProperty.call(e,"AddressNumberOrData1")&&t.uint32(74).string(e.AddressNumberOrData1),null!=e.AddressNumberOrData2&&Object.hasOwnProperty.call(e,"AddressNumberOrData2")&&t.uint32(82).string(e.AddressNumberOrData2),null!=e.AddressNumberOrData3&&Object.hasOwnProperty.call(e,"AddressNumberOrData3")&&t.uint32(90).string(e.AddressNumberOrData3),null!=e.AddressNumberOrData4&&Object.hasOwnProperty.call(e,"AddressNumberOrData4")&&t.uint32(98).string(e.AddressNumberOrData4),null!=e.AddressNumberOrData5&&Object.hasOwnProperty.call(e,"AddressNumberOrData5")&&t.uint32(106).string(e.AddressNumberOrData5),null!=e.AddressNumberOrData6&&Object.hasOwnProperty.call(e,"AddressNumberOrData6")&&t.uint32(114).string(e.AddressNumberOrData6),null!=e.AddressNumberOrData7&&Object.hasOwnProperty.call(e,"AddressNumberOrData7")&&t.uint32(122).string(e.AddressNumberOrData7),null!=e.AddressNumberOrData8&&Object.hasOwnProperty.call(e,"AddressNumberOrData8")&&t.uint32(130).string(e.AddressNumberOrData8),null!=e.AddressNumberOrData9&&Object.hasOwnProperty.call(e,"AddressNumberOrData9")&&t.uint32(138).string(e.AddressNumberOrData9),t.uint32(144).int32(e.Action),null!=e.ContactImage&&Object.hasOwnProperty.call(e,"ContactImage")&&t.uint32(154).string(e.ContactImage),null!=e.IsEditable&&Object.hasOwnProperty.call(e,"IsEditable")&&t.uint32(160).bool(e.IsEditable),null!=e.CrmContactData&&Object.hasOwnProperty.call(e,"CrmContactData")&&t.uint32(178).string(e.CrmContactData),null!=e.AddedBy&&Object.hasOwnProperty.call(e,"AddedBy")&&t.uint32(184).int32(e.AddedBy),t},e.decode=function(e,t){e instanceof $a||(e=$a.create(e));let n=void 0===t?e.len:e.pos+t,r=new Xa.Contact;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.Id=e.int32();break;case 2:r.FirstName=e.string();break;case 3:r.LastName=e.string();break;case 4:r.Number=e.string();break;case 5:r.ExtensionNumber=e.string();break;case 6:r.ContactType=e.int32();break;case 7:r.Company=e.string();break;case 8:r.AddressNumberOrData0=e.string();break;case 9:r.AddressNumberOrData1=e.string();break;case 10:r.AddressNumberOrData2=e.string();break;case 11:r.AddressNumberOrData3=e.string();break;case 12:r.AddressNumberOrData4=e.string();break;case 13:r.AddressNumberOrData5=e.string();break;case 14:r.AddressNumberOrData6=e.string();break;case 15:r.AddressNumberOrData7=e.string();break;case 16:r.AddressNumberOrData8=e.string();break;case 17:r.AddressNumberOrData9=e.string();break;case 18:r.Action=e.int32();break;case 19:r.ContactImage=e.string();break;case 20:r.IsEditable=e.bool();break;case 22:r.CrmContactData=e.string();break;case 23:r.AddedBy=e.int32();break;default:e.skipType(7&t)}}return r},e})(),Xa.ResponseAcknowledge=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Qa.create()),t.uint32(8).bool(e.Success),null!=e.ErrorCode&&Object.hasOwnProperty.call(e,"ErrorCode")&&t.uint32(16).int32(e.ErrorCode),null!=e.Message&&Object.hasOwnProperty.call(e,"Message")&&t.uint32(26).string(e.Message),null!=e.ExceptionType&&Object.hasOwnProperty.call(e,"ExceptionType")&&t.uint32(34).string(e.ExceptionType),null!=e.ExceptionMessage&&Object.hasOwnProperty.call(e,"ExceptionMessage")&&t.uint32(42).string(e.ExceptionMessage),null!=e.ErrorType&&Object.hasOwnProperty.call(e,"ErrorType")&&t.uint32(48).int32(e.ErrorType),null!=e.Parameter&&Object.hasOwnProperty.call(e,"Parameter")&&t.uint32(58).string(e.Parameter),t},e.decode=function(e,t){e instanceof $a||(e=$a.create(e));let n=void 0===t?e.len:e.pos+t,r=new Xa.ResponseAcknowledge;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.Success=e.bool();break;case 2:r.ErrorCode=e.int32();break;case 3:r.Message=e.string();break;case 4:r.ExceptionType=e.string();break;case 5:r.ExceptionMessage=e.string();break;case 6:r.ErrorType=e.int32();break;case 7:r.Parameter=e.string();break;default:e.skipType(7&t)}}return r},e.prototype.toGenericMessage=function(){return new Xa.GenericMessage({MessageId:207,Acknowledge:this})},e})()),ic=Xa.ChatRecipient=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Qa.create()),null!=e.ExtNumber&&Object.hasOwnProperty.call(e,"ExtNumber")&&t.uint32(10).string(e.ExtNumber),null!=e.Name&&Object.hasOwnProperty.call(e,"Name")&&t.uint32(18).string(e.Name),null!=e.BridgeNumber&&Object.hasOwnProperty.call(e,"BridgeNumber")&&t.uint32(26).string(e.BridgeNumber),null!=e.Email&&Object.hasOwnProperty.call(e,"Email")&&t.uint32(34).string(e.Email),null!=e.Contact&&Object.hasOwnProperty.call(e,"Contact")&&Xa.Contact.encode(e.Contact,t.uint32(42).fork()).ldelim(),t.uint32(48).int32(e.IdRecipient),null!=e.RecipientType&&Object.hasOwnProperty.call(e,"RecipientType")&&t.uint32(56).int32(e.RecipientType),t},e.decode=function(e,t){e instanceof $a||(e=$a.create(e));let n=void 0===t?e.len:e.pos+t,r=new Xa.ChatRecipient;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.ExtNumber=e.string();break;case 2:r.Name=e.string();break;case 3:r.BridgeNumber=e.string();break;case 4:r.Email=e.string();break;case 5:r.Contact=Xa.Contact.decode(e,e.uint32());break;case 6:r.IdRecipient=e.int32();break;case 7:r.RecipientType=e.int32();break;default:e.skipType(7&t)}}return r},e})(),sc=(Xa.ChatRecipientEx=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Qa.create()),null!=e.Recipient&&Object.hasOwnProperty.call(e,"Recipient")&&Xa.ChatRecipient.encode(e.Recipient,t.uint32(10).fork()).ldelim(),null!=e.IsAnonymousActive&&Object.hasOwnProperty.call(e,"IsAnonymousActive")&&t.uint32(16).bool(e.IsAnonymousActive),null!=e.IsRemoved&&Object.hasOwnProperty.call(e,"IsRemoved")&&t.uint32(24).bool(e.IsRemoved),null!=e.IsWhisperer&&Object.hasOwnProperty.call(e,"IsWhisperer")&&t.uint32(32).bool(e.IsWhisperer),t},e.decode=function(e,t){e instanceof $a||(e=$a.create(e));let n=void 0===t?e.len:e.pos+t,r=new Xa.ChatRecipientEx;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.Recipient=Xa.ChatRecipient.decode(e,e.uint32());break;case 2:r.IsAnonymousActive=e.bool();break;case 3:r.IsRemoved=e.bool();break;case 4:r.IsWhisperer=e.bool();break;default:e.skipType(7&t)}}return r},e})(),Xa.ChatRecipientRef=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Qa.create()),t.uint32(8).int32(e.IdRecipient),null!=e.Delivery&&Object.hasOwnProperty.call(e,"Delivery")&&t.uint32(16).int32(e.Delivery),null!=e.IsRead&&Object.hasOwnProperty.call(e,"IsRead")&&t.uint32(24).bool(e.IsRead),null!=e.IsSender&&Object.hasOwnProperty.call(e,"IsSender")&&t.uint32(32).bool(e.IsSender),t},e.decode=function(e,t){e instanceof $a||(e=$a.create(e));let n=void 0===t?e.len:e.pos+t,r=new Xa.ChatRecipientRef;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.IdRecipient=e.int32();break;case 2:r.Delivery=e.int32();break;case 3:r.IsRead=e.bool();break;case 4:r.IsSender=e.bool();break;default:e.skipType(7&t)}}return r},e})(),Xa.ChatMessage=(()=>{function e(e){if(this.Recipients=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.Recipients=Ya.emptyArray,e.encode=function(e,t){if(t||(t=Qa.create()),t.uint32(8).int32(e.Id),null!=e.SenderNumber&&Object.hasOwnProperty.call(e,"SenderNumber")&&t.uint32(18).string(e.SenderNumber),null!=e.SenderName&&Object.hasOwnProperty.call(e,"SenderName")&&t.uint32(26).string(e.SenderName),null!=e.SenderBridgeNumber&&Object.hasOwnProperty.call(e,"SenderBridgeNumber")&&t.uint32(34).string(e.SenderBridgeNumber),null!=e.Recipient&&Object.hasOwnProperty.call(e,"Recipient")&&Xa.ChatRecipient.encode(e.Recipient,t.uint32(42).fork()).ldelim(),null!=e.Message&&Object.hasOwnProperty.call(e,"Message")&&t.uint32(50).string(e.Message),null!=e.Time&&Object.hasOwnProperty.call(e,"Time")&&Xa.DateTime.encode(e.Time,t.uint32(58).fork()).ldelim(),null!=e.IsNew&&Object.hasOwnProperty.call(e,"IsNew")&&t.uint32(64).bool(e.IsNew),null!=e.Party&&Object.hasOwnProperty.call(e,"Party")&&t.uint32(74).string(e.Party),null!=e.PartyNew&&Object.hasOwnProperty.call(e,"PartyNew")&&t.uint32(82).string(e.PartyNew),null!=e.File&&Object.hasOwnProperty.call(e,"File")&&Xa.ChatFile.encode(e.File,t.uint32(90).fork()).ldelim(),null!=e.IsAnonymousActive&&Object.hasOwnProperty.call(e,"IsAnonymousActive")&&t.uint32(96).bool(e.IsAnonymousActive),null!=e.IdConversation&&Object.hasOwnProperty.call(e,"IdConversation")&&t.uint32(104).int32(e.IdConversation),null!=e.Recipients&&e.Recipients.length)for(let n=0;n<e.Recipients.length;++n)Xa.ChatRecipientRef.encode(e.Recipients[n],t.uint32(114).fork()).ldelim();return null!=e.MessageType&&Object.hasOwnProperty.call(e,"MessageType")&&t.uint32(120).int32(e.MessageType),t},e.decode=function(e,t){e instanceof $a||(e=$a.create(e));let n=void 0===t?e.len:e.pos+t,r=new Xa.ChatMessage;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.Id=e.int32();break;case 2:r.SenderNumber=e.string();break;case 3:r.SenderName=e.string();break;case 4:r.SenderBridgeNumber=e.string();break;case 5:r.Recipient=Xa.ChatRecipient.decode(e,e.uint32());break;case 6:r.Message=e.string();break;case 7:r.Time=Xa.DateTime.decode(e,e.uint32());break;case 8:r.IsNew=e.bool();break;case 9:r.Party=e.string();break;case 10:r.PartyNew=e.string();break;case 11:r.File=Xa.ChatFile.decode(e,e.uint32());break;case 12:r.IsAnonymousActive=e.bool();break;case 13:r.IdConversation=e.int32();break;case 14:r.Recipients&&r.Recipients.length||(r.Recipients=[]),r.Recipients.push(Xa.ChatRecipientRef.decode(e,e.uint32()));break;case 15:r.MessageType=e.int32();break;default:e.skipType(7&t)}}return r},e})()),oc=Xa.ChatFile=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Qa.create()),null!=e.FileName&&Object.hasOwnProperty.call(e,"FileName")&&t.uint32(10).string(e.FileName),null!=e.FileLink&&Object.hasOwnProperty.call(e,"FileLink")&&t.uint32(18).string(e.FileLink),null!=e.FileState&&Object.hasOwnProperty.call(e,"FileState")&&t.uint32(24).int32(e.FileState),null!=e.Progress&&Object.hasOwnProperty.call(e,"Progress")&&t.uint32(37).float(e.Progress),null!=e.HasPreview&&Object.hasOwnProperty.call(e,"HasPreview")&&t.uint32(40).bool(e.HasPreview),null!=e.FileSize&&Object.hasOwnProperty.call(e,"FileSize")&&t.uint32(48).uint64(e.FileSize),t},e.decode=function(e,t){e instanceof $a||(e=$a.create(e));let n=void 0===t?e.len:e.pos+t,r=new Xa.ChatFile;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.FileName=e.string();break;case 2:r.FileLink=e.string();break;case 3:r.FileState=e.int32();break;case 4:r.Progress=e.float();break;case 5:r.HasPreview=e.bool();break;case 6:r.FileSize=e.uint64();break;default:e.skipType(7&t)}}return r},e})(),ac=Xa.NotificationChatFileProgress=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Qa.create()),t.uint32(8).int32(e.Id),null!=e.Party&&Object.hasOwnProperty.call(e,"Party")&&t.uint32(18).string(e.Party),null!=e.File&&Object.hasOwnProperty.call(e,"File")&&Xa.ChatFile.encode(e.File,t.uint32(26).fork()).ldelim(),null!=e.IdConversation&&Object.hasOwnProperty.call(e,"IdConversation")&&t.uint32(32).int32(e.IdConversation),t},e.decode=function(e,t){e instanceof $a||(e=$a.create(e));let n=void 0===t?e.len:e.pos+t,r=new Xa.NotificationChatFileProgress;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.Id=e.int32();break;case 2:r.Party=e.string();break;case 3:r.File=Xa.ChatFile.decode(e,e.uint32());break;case 4:r.IdConversation=e.int32();break;default:e.skipType(7&t)}}return r},e.prototype.toGenericMessage=function(){return new Xa.GenericMessage({MessageId:232,ChatFileProgress:this})},e})(),cc=Xa.RequestSendChatMessage=(()=>{function e(e){if(this.Recipients=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.Recipients=Ya.emptyArray,e.encode=function(e,t){if(t||(t=Qa.create()),null!=e.Message&&Object.hasOwnProperty.call(e,"Message")&&t.uint32(10).string(e.Message),null!=e.Recipients&&e.Recipients.length)for(let n=0;n<e.Recipients.length;++n)Xa.ChatRecipient.encode(e.Recipients[n],t.uint32(18).fork()).ldelim();return null!=e.SipFrom&&Object.hasOwnProperty.call(e,"SipFrom")&&t.uint32(26).string(e.SipFrom),t},e.decode=function(e,t){e instanceof $a||(e=$a.create(e));let n=void 0===t?e.len:e.pos+t,r=new Xa.RequestSendChatMessage;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.Message=e.string();break;case 2:r.Recipients&&r.Recipients.length||(r.Recipients=[]),r.Recipients.push(Xa.ChatRecipient.decode(e,e.uint32()));break;case 3:r.SipFrom=e.string();break;default:e.skipType(7&t)}}return r},e.prototype.toGenericMessage=function(){return new Xa.GenericMessage({MessageId:110,SendChatMessage:this})},e})(),lc=(Xa.RequestSendChatFile=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Qa.create()),t.uint32(10).string(e.Name),null!=e.Party&&Object.hasOwnProperty.call(e,"Party")&&t.uint32(18).string(e.Party),null!=e.IdConversation&&Object.hasOwnProperty.call(e,"IdConversation")&&t.uint32(24).int32(e.IdConversation),t},e.decode=function(e,t){e instanceof $a||(e=$a.create(e));let n=void 0===t?e.len:e.pos+t,r=new Xa.RequestSendChatFile;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.Name=e.string();break;case 2:r.Party=e.string();break;case 3:r.IdConversation=e.int32();break;default:e.skipType(7&t)}}return r},e.prototype.toGenericMessage=function(){return new Xa.GenericMessage({MessageId:179,SendChatFile:this})},e})(),Xa.RequestGetMyMessages=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Qa.create()),t.uint32(8).bool(e.OnlyNew),null!=e.FromNumber&&Object.hasOwnProperty.call(e,"FromNumber")&&t.uint32(18).string(e.FromNumber),null!=e.FromBridgeNumber&&Object.hasOwnProperty.call(e,"FromBridgeNumber")&&t.uint32(26).string(e.FromBridgeNumber),null!=e.StartingFrom&&Object.hasOwnProperty.call(e,"StartingFrom")&&Xa.DateTime.encode(e.StartingFrom,t.uint32(34).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $a||(e=$a.create(e));let n=void 0===t?e.len:e.pos+t,r=new Xa.RequestGetMyMessages;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.OnlyNew=e.bool();break;case 2:r.FromNumber=e.string();break;case 3:r.FromBridgeNumber=e.string();break;case 4:r.StartingFrom=Xa.DateTime.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.prototype.toGenericMessage=function(){return new Xa.GenericMessage({MessageId:111,GetMyMessages:this})},e})(),Xa.ResponseMyMessages=(()=>{function e(e){if(this.Messages=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.Messages=Ya.emptyArray,e.encode=function(e,t){if(t||(t=Qa.create()),null!=e.Messages&&e.Messages.length)for(let n=0;n<e.Messages.length;++n)Xa.ChatMessage.encode(e.Messages[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof $a||(e=$a.create(e));let n=void 0===t?e.len:e.pos+t,r=new Xa.ResponseMyMessages;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.Messages&&r.Messages.length||(r.Messages=[]),r.Messages.push(Xa.ChatMessage.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return r},e.prototype.toGenericMessage=function(){return new Xa.GenericMessage({MessageId:209,MyChatMessages:this})},e})()),fc=Xa.RequestSetChatReceived=(()=>{function e(e){if(this.Items=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.Items=Ya.emptyArray,e.encode=function(e,t){if(t||(t=Qa.create()),null!=e.Items&&e.Items.length)for(let n=0;n<e.Items.length;++n)t.uint32(8).int32(e.Items[n]);return t},e.decode=function(e,t){e instanceof $a||(e=$a.create(e));let n=void 0===t?e.len:e.pos+t,r=new Xa.RequestSetChatReceived;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:if(r.Items&&r.Items.length||(r.Items=[]),2==(7&t)){let t=e.uint32()+e.pos;for(;e.pos<t;)r.Items.push(e.int32())}else r.Items.push(e.int32());break;default:e.skipType(7&t)}}return r},e.prototype.toGenericMessage=function(){return new Xa.GenericMessage({MessageId:112,MessagesReceived:this})},e})(),uc=(Xa.ChatPartyInfo=(()=>{function e(e){if(this.Recipients=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.Recipients=Ya.emptyArray,e.encode=function(e,t){if(t||(t=Qa.create()),null!=e.Party&&Object.hasOwnProperty.call(e,"Party")&&t.uint32(10).string(e.Party),null!=e.Recipients&&e.Recipients.length)for(let n=0;n<e.Recipients.length;++n)Xa.ChatRecipientEx.encode(e.Recipients[n],t.uint32(18).fork()).ldelim();return null!=e.IsExternal&&Object.hasOwnProperty.call(e,"IsExternal")&&t.uint32(24).bool(e.IsExternal),null!=e.IdConversation&&Object.hasOwnProperty.call(e,"IdConversation")&&t.uint32(32).int32(e.IdConversation),null!=e.IsArchived&&Object.hasOwnProperty.call(e,"IsArchived")&&t.uint32(40).bool(e.IsArchived),null!=e.PrivateName&&Object.hasOwnProperty.call(e,"PrivateName")&&t.uint32(50).string(e.PrivateName),null!=e.QueueNo&&Object.hasOwnProperty.call(e,"QueueNo")&&t.uint32(58).string(e.QueueNo),null!=e.QueueName&&Object.hasOwnProperty.call(e,"QueueName")&&t.uint32(66).string(e.QueueName),null!=e.PublicName&&Object.hasOwnProperty.call(e,"PublicName")&&t.uint32(74).string(e.PublicName),null!=e.TakenBy&&Object.hasOwnProperty.call(e,"TakenBy")&&Xa.ChatRecipient.encode(e.TakenBy,t.uint32(82).fork()).ldelim(),null!=e.NumberOfMessages&&Object.hasOwnProperty.call(e,"NumberOfMessages")&&t.uint32(88).int32(e.NumberOfMessages),t},e.decode=function(e,t){e instanceof $a||(e=$a.create(e));let n=void 0===t?e.len:e.pos+t,r=new Xa.ChatPartyInfo;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.Party=e.string();break;case 2:r.Recipients&&r.Recipients.length||(r.Recipients=[]),r.Recipients.push(Xa.ChatRecipientEx.decode(e,e.uint32()));break;case 3:r.IsExternal=e.bool();break;case 4:r.IdConversation=e.int32();break;case 5:r.IsArchived=e.bool();break;case 6:r.PrivateName=e.string();break;case 7:r.QueueNo=e.string();break;case 8:r.QueueName=e.string();break;case 9:r.PublicName=e.string();break;case 10:r.TakenBy=Xa.ChatRecipient.decode(e,e.uint32());break;case 11:r.NumberOfMessages=e.int32();break;default:e.skipType(7&t)}}return r},e})(),Xa.NotificationChatTransferred=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Qa.create()),Xa.ChatPartyInfo.encode(e.PartyInfo,t.uint32(10).fork()).ldelim(),null!=e.TransferredBy&&Object.hasOwnProperty.call(e,"TransferredBy")&&Xa.ChatRecipient.encode(e.TransferredBy,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $a||(e=$a.create(e));let n=void 0===t?e.len:e.pos+t,r=new Xa.NotificationChatTransferred;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.PartyInfo=Xa.ChatPartyInfo.decode(e,e.uint32());break;case 2:r.TransferredBy=Xa.ChatRecipient.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.prototype.toGenericMessage=function(){return new Xa.GenericMessage({MessageId:237,ChatTransferred:this})},e})()),dc=Xa.NotificationConversationRemoved=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Qa.create()),t.uint32(8).int32(e.IdConversation),null!=e.TakenBy&&Object.hasOwnProperty.call(e,"TakenBy")&&Xa.ChatRecipient.encode(e.TakenBy,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $a||(e=$a.create(e));let n=void 0===t?e.len:e.pos+t,r=new Xa.NotificationConversationRemoved;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.IdConversation=e.int32();break;case 2:r.TakenBy=Xa.ChatRecipient.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.prototype.toGenericMessage=function(){return new Xa.GenericMessage({MessageId:235,ConversationRemoved:this})},e})(),hc=Xa.MyWebRTCEndpoint=(()=>{function e(e){if(this.Items=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.Items=Ya.emptyArray,e.encode=function(e,t){if(t||(t=Qa.create()),t.uint32(8).int32(e.Action),null!=e.Items&&e.Items.length)for(let n=0;n<e.Items.length;++n)Xa.WebRTCCall.encode(e.Items[n],t.uint32(18).fork()).ldelim();return null!=e.isWebRTCEnpointRegistered&&Object.hasOwnProperty.call(e,"isWebRTCEnpointRegistered")&&t.uint32(24).bool(e.isWebRTCEnpointRegistered),null!=e.DeviceContact&&Object.hasOwnProperty.call(e,"DeviceContact")&&t.uint32(34).string(e.DeviceContact),t},e.decode=function(e,t){e instanceof $a||(e=$a.create(e));let n=void 0===t?e.len:e.pos+t,r=new Xa.MyWebRTCEndpoint;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.Action=e.int32();break;case 2:r.Items&&r.Items.length||(r.Items=[]),r.Items.push(Xa.WebRTCCall.decode(e,e.uint32()));break;case 3:r.isWebRTCEnpointRegistered=e.bool();break;case 4:r.DeviceContact=e.string();break;default:e.skipType(7&t)}}return r},e.prototype.toGenericMessage=function(){return new Xa.GenericMessage({MessageId:227,webRTCEndpoint:this})},e})(),pc=Xa.WebRTCEndpointSDPState=(()=>{const e={},t=Object.create(e);return t[e[0]="WRTCTerminate"]=0,t[e[1]="WRTCOffer"]=1,t[e[2]="WRTCAnswer"]=2,t[e[3]="WRTCConfirm"]=3,t[e[4]="WRTCRequestForOffer"]=4,t[e[5]="WRTCReject"]=5,t[e[6]="WRTCProcessingOffer"]=6,t[e[7]="WRTCPreparingOffer"]=7,t[e[8]="WRTCAnswerProvided"]=8,t[e[9]="WRTCConfirmed"]=9,t[e[10]="WRTCInitial"]=10,t})(),mc=Xa.WebRTCHoldState=(()=>{const e={},t=Object.create(e);return t[e[0]="WebRTCHoldState_NOHOLD"]=0,t[e[1]="WebRTCHoldState_HELD"]=1,t[e[2]="WebRTCHoldState_HOLD"]=2,t[e[3]="WebRTCHoldState_BOTH"]=3,t})(),gc=Xa.WebRTCCall=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Qa.create()),t.uint32(8).int32(e.Action),t.uint32(16).int32(e.Id),t.uint32(24).int32(e.sdpType),null!=e.otherPartyDisplayname&&Object.hasOwnProperty.call(e,"otherPartyDisplayname")&&t.uint32(34).string(e.otherPartyDisplayname),null!=e.otherPartyNumber&&Object.hasOwnProperty.call(e,"otherPartyNumber")&&t.uint32(42).string(e.otherPartyNumber),null!=e.transactionId&&Object.hasOwnProperty.call(e,"transactionId")&&t.uint32(48).int32(e.transactionId),null!=e.sdp&&Object.hasOwnProperty.call(e,"sdp")&&t.uint32(58).string(e.sdp),null!=e.SIPDialogID&&Object.hasOwnProperty.call(e,"SIPDialogID")&&t.uint32(66).string(e.SIPDialogID),null!=e.holdState&&Object.hasOwnProperty.call(e,"holdState")&&t.uint32(72).int32(e.holdState),t},e.decode=function(e,t){e instanceof $a||(e=$a.create(e));let n=void 0===t?e.len:e.pos+t,r=new Xa.WebRTCCall;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.Action=e.int32();break;case 2:r.Id=e.int32();break;case 3:r.sdpType=e.int32();break;case 4:r.otherPartyDisplayname=e.string();break;case 5:r.otherPartyNumber=e.string();break;case 6:r.transactionId=e.int32();break;case 7:r.sdp=e.string();break;case 8:r.SIPDialogID=e.string();break;case 9:r.holdState=e.int32();break;default:e.skipType(7&t)}}return r},e})(),vc=Xa.RequestWebRTCChangeSDPState=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Qa.create()),t.uint32(8).int32(e.Id),t.uint32(16).int32(e.sdpType),null!=e.transactionId&&Object.hasOwnProperty.call(e,"transactionId")&&t.uint32(24).int32(e.transactionId),null!=e.sdp&&Object.hasOwnProperty.call(e,"sdp")&&t.uint32(34).string(e.sdp),null!=e.destinationNumber&&Object.hasOwnProperty.call(e,"destinationNumber")&&t.uint32(42).string(e.destinationNumber),null!=e.CallerDisplayName&&Object.hasOwnProperty.call(e,"CallerDisplayName")&&t.uint32(50).string(e.CallerDisplayName),null!=e.CallerID&&Object.hasOwnProperty.call(e,"CallerID")&&t.uint32(58).string(e.CallerID),t},e.decode=function(e,t){e instanceof $a||(e=$a.create(e));let n=void 0===t?e.len:e.pos+t,r=new Xa.RequestWebRTCChangeSDPState;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.Id=e.int32();break;case 2:r.sdpType=e.int32();break;case 3:r.transactionId=e.int32();break;case 4:r.sdp=e.string();break;case 5:r.destinationNumber=e.string();break;case 6:r.CallerDisplayName=e.string();break;case 7:r.CallerID=e.string();break;default:e.skipType(7&t)}}return r},e.prototype.toGenericMessage=function(){return new Xa.GenericMessage({MessageId:164,ChangeSDPState:this})},e})(),bc=(Xa.ResponseWebRTCChangeSDPState=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Qa.create()),t.uint32(8).bool(e.Success),null!=e.Message&&Object.hasOwnProperty.call(e,"Message")&&t.uint32(18).string(e.Message),null!=e.CallId&&Object.hasOwnProperty.call(e,"CallId")&&t.uint32(24).int32(e.CallId),t},e.decode=function(e,t){e instanceof $a||(e=$a.create(e));let n=void 0===t?e.len:e.pos+t,r=new Xa.ResponseWebRTCChangeSDPState;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.Success=e.bool();break;case 2:r.Message=e.string();break;case 3:r.CallId=e.int32();break;default:e.skipType(7&t)}}return r},e.prototype.toGenericMessage=function(){return new Xa.GenericMessage({MessageId:228,ChangeSDPStateResponse:this})},e})(),Xa.WebRTCTransferCall=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Qa.create()),t.uint32(8).int32(e.Id),null!=e.destination&&Object.hasOwnProperty.call(e,"destination")&&t.uint32(18).string(e.destination),null!=e.ToCallId&&Object.hasOwnProperty.call(e,"ToCallId")&&t.uint32(24).int32(e.ToCallId),t},e.decode=function(e,t){e instanceof $a||(e=$a.create(e));let n=void 0===t?e.len:e.pos+t,r=new Xa.WebRTCTransferCall;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.Id=e.int32();break;case 2:r.destination=e.string();break;case 3:r.ToCallId=e.int32();break;default:e.skipType(7&t)}}return r},e})(),Xa.RequestRegisterWebRTCEndpoint=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Qa.create()),t.uint32(8).bool(e.register),t},e.decode=function(e,t){e instanceof $a||(e=$a.create(e));let n=void 0===t?e.len:e.pos+t,r=new Xa.RequestRegisterWebRTCEndpoint;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.register=e.bool();break;default:e.skipType(7&t)}}return r},e.prototype.toGenericMessage=function(){return new Xa.GenericMessage({MessageId:163,registerWebRTC:this})},e})()),yc=Xa.ChatTyping=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Qa.create()),null!=e.Party&&Object.hasOwnProperty.call(e,"Party")&&t.uint32(10).string(e.Party),null!=e.User&&Object.hasOwnProperty.call(e,"User")&&t.uint32(18).string(e.User),null!=e.IdConversation&&Object.hasOwnProperty.call(e,"IdConversation")&&t.uint32(24).int32(e.IdConversation),t},e.decode=function(e,t){e instanceof $a||(e=$a.create(e));let n=void 0===t?e.len:e.pos+t,r=new Xa.ChatTyping;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.Party=e.string();break;case 2:r.User=e.string();break;case 3:r.IdConversation=e.int32();break;default:e.skipType(7&t)}}return r},e.prototype.toGenericMessage=function(){return new Xa.GenericMessage({MessageId:180,UserTypingChat:this})},e})(),_c=Xa.GenericMessage=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Qa.create()),t.uint32(8).int32(e.MessageId),null!=e.LoginRequest&&Object.hasOwnProperty.call(e,"LoginRequest")&&Xa.Login.encode(e.LoginRequest,t.uint32(802).fork()).ldelim(),null!=e.LogoutRequest&&Object.hasOwnProperty.call(e,"LogoutRequest")&&Xa.Logout.encode(e.LogoutRequest,t.uint32(810).fork()).ldelim(),null!=e.GetMyInfo&&Object.hasOwnProperty.call(e,"GetMyInfo")&&Xa.RequestMyInfo.encode(e.GetMyInfo,t.uint32(818).fork()).ldelim(),null!=e.SendChatMessage&&Object.hasOwnProperty.call(e,"SendChatMessage")&&Xa.RequestSendChatMessage.encode(e.SendChatMessage,t.uint32(882).fork()).ldelim(),null!=e.GetMyMessages&&Object.hasOwnProperty.call(e,"GetMyMessages")&&Xa.RequestGetMyMessages.encode(e.GetMyMessages,t.uint32(890).fork()).ldelim(),null!=e.MessagesReceived&&Object.hasOwnProperty.call(e,"MessagesReceived")&&Xa.RequestSetChatReceived.encode(e.MessagesReceived,t.uint32(898).fork()).ldelim(),null!=e.registerWebRTC&&Object.hasOwnProperty.call(e,"registerWebRTC")&&Xa.RequestRegisterWebRTCEndpoint.encode(e.registerWebRTC,t.uint32(1306).fork()).ldelim(),null!=e.ChangeSDPState&&Object.hasOwnProperty.call(e,"ChangeSDPState")&&Xa.RequestWebRTCChangeSDPState.encode(e.ChangeSDPState,t.uint32(1314).fork()).ldelim(),null!=e.SendChatFile&&Object.hasOwnProperty.call(e,"SendChatFile")&&Xa.RequestSendChatFile.encode(e.SendChatFile,t.uint32(1434).fork()).ldelim(),null!=e.UserTypingChat&&Object.hasOwnProperty.call(e,"UserTypingChat")&&Xa.ChatTyping.encode(e.UserTypingChat,t.uint32(1442).fork()).ldelim(),null!=e.LoginResponse&&Object.hasOwnProperty.call(e,"LoginResponse")&&Xa.LoginInfo.encode(e.LoginResponse,t.uint32(1602).fork()).ldelim(),null!=e.MyInfo&&Object.hasOwnProperty.call(e,"MyInfo")&&Xa.MyExtensionInfo.encode(e.MyInfo,t.uint32(1610).fork()).ldelim(),null!=e.Acknowledge&&Object.hasOwnProperty.call(e,"Acknowledge")&&Xa.ResponseAcknowledge.encode(e.Acknowledge,t.uint32(1658).fork()).ldelim(),null!=e.MyChatMessages&&Object.hasOwnProperty.call(e,"MyChatMessages")&&Xa.ResponseMyMessages.encode(e.MyChatMessages,t.uint32(1674).fork()).ldelim(),null!=e.webRTCEndpoint&&Object.hasOwnProperty.call(e,"webRTCEndpoint")&&Xa.MyWebRTCEndpoint.encode(e.webRTCEndpoint,t.uint32(1818).fork()).ldelim(),null!=e.ChangeSDPStateResponse&&Object.hasOwnProperty.call(e,"ChangeSDPStateResponse")&&Xa.ResponseWebRTCChangeSDPState.encode(e.ChangeSDPStateResponse,t.uint32(1826).fork()).ldelim(),null!=e.ChatFileProgress&&Object.hasOwnProperty.call(e,"ChatFileProgress")&&Xa.NotificationChatFileProgress.encode(e.ChatFileProgress,t.uint32(1858).fork()).ldelim(),null!=e.ConversationRemoved&&Object.hasOwnProperty.call(e,"ConversationRemoved")&&Xa.NotificationConversationRemoved.encode(e.ConversationRemoved,t.uint32(1882).fork()).ldelim(),null!=e.ChatTransferred&&Object.hasOwnProperty.call(e,"ChatTransferred")&&Xa.NotificationChatTransferred.encode(e.ChatTransferred,t.uint32(1898).fork()).ldelim(),t},e.decode=function(e,t){e instanceof $a||(e=$a.create(e));let n=void 0===t?e.len:e.pos+t,r=new Xa.GenericMessage;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.MessageId=e.int32();break;case 100:r.LoginRequest=Xa.Login.decode(e,e.uint32());break;case 101:r.LogoutRequest=Xa.Logout.decode(e,e.uint32());break;case 102:r.GetMyInfo=Xa.RequestMyInfo.decode(e,e.uint32());break;case 110:r.SendChatMessage=Xa.RequestSendChatMessage.decode(e,e.uint32());break;case 111:r.GetMyMessages=Xa.RequestGetMyMessages.decode(e,e.uint32());break;case 112:r.MessagesReceived=Xa.RequestSetChatReceived.decode(e,e.uint32());break;case 163:r.registerWebRTC=Xa.RequestRegisterWebRTCEndpoint.decode(e,e.uint32());break;case 164:r.ChangeSDPState=Xa.RequestWebRTCChangeSDPState.decode(e,e.uint32());break;case 179:r.SendChatFile=Xa.RequestSendChatFile.decode(e,e.uint32());break;case 180:r.UserTypingChat=Xa.ChatTyping.decode(e,e.uint32());break;case 200:r.LoginResponse=Xa.LoginInfo.decode(e,e.uint32());break;case 201:r.MyInfo=Xa.MyExtensionInfo.decode(e,e.uint32());break;case 207:r.Acknowledge=Xa.ResponseAcknowledge.decode(e,e.uint32());break;case 209:r.MyChatMessages=Xa.ResponseMyMessages.decode(e,e.uint32());break;case 227:r.webRTCEndpoint=Xa.MyWebRTCEndpoint.decode(e,e.uint32());break;case 228:r.ChangeSDPStateResponse=Xa.ResponseWebRTCChangeSDPState.decode(e,e.uint32());break;case 232:r.ChatFileProgress=Xa.NotificationChatFileProgress.decode(e,e.uint32());break;case 235:r.ConversationRemoved=Xa.NotificationConversationRemoved.decode(e,e.uint32());break;case 237:r.ChatTransferred=Xa.NotificationChatTransferred.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e})();var Ac=n(2721),wc=["style","currency","currencyDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","localeMatcher","formatMatcher","unit"];
|
20 |
/*!
|
21 |
* vue-i18n v8.22.1
|
22 |
* (c) 2020 kazuya kawaguchi
|
23 |
* Released under the MIT License.
|
24 |
-
*/function Cc(e,t){"undefined"!=typeof console&&(console.warn("[vue-i18n] "+e),t&&console.warn(t.stack))}var Ec=Array.isArray;function Sc(e){return null!==e&&"object"==typeof e}function Tc(e){return"string"==typeof e}var Oc=Object.prototype.toString;function xc(e){return"[object Object]"===Oc.call(e)}function Mc(e){return null==e}function Nc(e){return"function"==typeof e}function Ic(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=null,r=null;return 1===e.length?Sc(e[0])||Ec(e[0])?r=e[0]:"string"==typeof e[0]&&(n=e[0]):2===e.length&&("string"==typeof e[0]&&(n=e[0]),(Sc(e[1])||Ec(e[1]))&&(r=e[1])),{locale:n,params:r}}function Rc(e){return JSON.parse(JSON.stringify(e))}function kc(e,t){return!!~e.indexOf(t)}var Pc=Object.prototype.hasOwnProperty;function Dc(e,t){return Pc.call(e,t)}function Fc(e){for(var t=arguments,n=Object(e),r=1;r<arguments.length;r++){var i=t[r];if(null!=i){var s=void 0;for(s in i)Dc(i,s)&&(Sc(i[s])?n[s]=Fc(n[s],i[s]):n[s]=i[s])}}return n}function Bc(e,t){if(e===t)return!0;var n=Sc(e),r=Sc(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=Ec(e),s=Ec(t);if(i&&s)return e.length===t.length&&e.every((function(e,n){return Bc(e,t[n])}));if(i||s)return!1;var o=Object.keys(e),a=Object.keys(t);return o.length===a.length&&o.every((function(n){return Bc(e[n],t[n])}))}catch(e){return!1}}function Lc(e){return null!=e&&Object.keys(e).forEach((function(t){"string"==typeof e[t]&&(e[t]=e[t].replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"))})),e}var jc={beforeCreate:function(){var e=this.$options;if(e.i18n=e.i18n||(e.__i18n?{}:null),e.i18n)if(e.i18n instanceof pl){if(e.__i18n)try{var t=e.i18n&&e.i18n.messages?e.i18n.messages:{};e.__i18n.forEach((function(e){t=Fc(t,JSON.parse(e))})),Object.keys(t).forEach((function(n){e.i18n.mergeLocaleMessage(n,t[n])}))}catch(e){0}this._i18n=e.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(xc(e.i18n)){var n=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof pl?this.$root.$i18n:null;if(n&&(e.i18n.root=this.$root,e.i18n.formatter=n.formatter,e.i18n.fallbackLocale=n.fallbackLocale,e.i18n.formatFallbackMessages=n.formatFallbackMessages,e.i18n.silentTranslationWarn=n.silentTranslationWarn,e.i18n.silentFallbackWarn=n.silentFallbackWarn,e.i18n.pluralizationRules=n.pluralizationRules,e.i18n.preserveDirectiveContent=n.preserveDirectiveContent),e.__i18n)try{var r=e.i18n&&e.i18n.messages?e.i18n.messages:{};e.__i18n.forEach((function(e){r=Fc(r,JSON.parse(e))})),e.i18n.messages=r}catch(e){0}var i=e.i18n.sharedMessages;i&&xc(i)&&(e.i18n.messages=Fc(e.i18n.messages,i)),this._i18n=new pl(e.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===e.i18n.sync||e.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),n&&n.onComponentInstanceCreated(this._i18n)}else 0;else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof pl?this._i18n=this.$root.$i18n:e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof pl&&(this._i18n=e.parent.$i18n)},beforeMount:function(){var e=this.$options;e.i18n=e.i18n||(e.__i18n?{}:null),e.i18n?(e.i18n instanceof pl||xc(e.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof pl||e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof pl)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},beforeDestroy:function(){if(this._i18n){var e=this;this.$nextTick((function(){e._subscribing&&(e._i18n.unsubscribeDataChanging(e),delete e._subscribing),e._i18nWatcher&&(e._i18nWatcher(),e._i18n.destroyVM(),delete e._i18nWatcher),e._localeWatcher&&(e._localeWatcher(),delete e._localeWatcher)}))}}},Uc={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(e,t){var n=t.data,r=t.parent,i=t.props,s=t.slots,o=r.$i18n;if(o){var a=i.path,c=i.locale,l=i.places,f=s(),u=o.i(a,c,function(e){var t;for(t in e)if("default"!==t)return!1;return Boolean(t)}(f)||l?function(e,t){var n=t?function(e){0;return Array.isArray(e)?e.reduce(zc,{}):Object.assign({},e)}(t):{};if(!e)return n;var r=(e=e.filter((function(e){return e.tag||""!==e.text.trim()}))).every(Gc);0;return e.reduce(r?qc:zc,n)}(f.default,l):f),d=i.tag&&!0!==i.tag||!1===i.tag?i.tag:"span";return d?e(d,n,u):u}}};function qc(e,t){return t.data&&t.data.attrs&&t.data.attrs.place&&(e[t.data.attrs.place]=t),e}function zc(e,t,n){return e[n]=t,e}function Gc(e){return Boolean(e.data&&e.data.attrs&&e.data.attrs.place)}var Hc,Vc={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(e,t){var n=t.props,r=t.parent,i=t.data,s=r.$i18n;if(!s)return null;var o=null,a=null;Tc(n.format)?o=n.format:Sc(n.format)&&(n.format.key&&(o=n.format.key),a=Object.keys(n.format).reduce((function(e,t){var r;return kc(wc,t)?Object.assign({},e,((r={})[t]=n.format[t],r)):e}),null));var c=n.locale||s.locale,l=s._ntp(n.value,c,o,a),f=l.map((function(e,t){var n,r=i.scopedSlots&&i.scopedSlots[e.type];return r?r(((n={})[e.type]=e.value,n.index=t,n.parts=l,n)):e.value})),u=n.tag&&!0!==n.tag||!1===n.tag?n.tag:"span";return u?e(u,{attrs:i.attrs,class:i.class,staticClass:i.staticClass},f):f}};function Wc(e,t,n){Yc(e,n)&&Xc(e,t,n)}function $c(e,t,n,r){if(Yc(e,n)){var i=n.context.$i18n;(function(e,t){var n=t.context;return e._locale===n.$i18n.locale})(e,n)&&Bc(t.value,t.oldValue)&&Bc(e._localeMessage,i.getLocaleMessage(i.locale))||Xc(e,t,n)}}function Qc(e,t,n,r){if(n.context){var i=n.context.$i18n||{};t.modifiers.preserve||i.preserveDirectiveContent||(e.textContent=""),e._vt=void 0,delete e._vt,e._locale=void 0,delete e._locale,e._localeMessage=void 0,delete e._localeMessage}else Cc("Vue instance does not exists in VNode context")}function Yc(e,t){var n=t.context;return n?!!n.$i18n||(Cc("VueI18n instance does not exists in Vue instance"),!1):(Cc("Vue instance does not exists in VNode context"),!1)}function Xc(e,t,n){var r,i,s=function(e){var t,n,r,i;Tc(e)?t=e:xc(e)&&(t=e.path,n=e.locale,r=e.args,i=e.choice);return{path:t,locale:n,args:r,choice:i}}(t.value),o=s.path,a=s.locale,c=s.args,l=s.choice;if(o||a||c)if(o){var f=n.context;e._vt=e.textContent=null!=l?(r=f.$i18n).tc.apply(r,[o,l].concat(Kc(a,c))):(i=f.$i18n).t.apply(i,[o].concat(Kc(a,c))),e._locale=f.$i18n.locale,e._localeMessage=f.$i18n.getLocaleMessage(f.$i18n.locale)}else Cc("`path` is required in v-t directive");else Cc("value type not supported")}function Kc(e,t){var n=[];return e&&n.push(e),t&&(Array.isArray(t)||xc(t))&&n.push(t),n}function Zc(e){Zc.installed=!0;(Hc=e).version&&Number(Hc.version.split(".")[0]);(function(e){e.prototype.hasOwnProperty("$i18n")||Object.defineProperty(e.prototype,"$i18n",{get:function(){return this._i18n}}),e.prototype.$t=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var r=this.$i18n;return r._t.apply(r,[e,r.locale,r._getMessages(),this].concat(t))},e.prototype.$tc=function(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];var i=this.$i18n;return i._tc.apply(i,[e,i.locale,i._getMessages(),this,t].concat(n))},e.prototype.$te=function(e,t){var n=this.$i18n;return n._te(e,n.locale,n._getMessages(),t)},e.prototype.$d=function(e){for(var t,n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return(t=this.$i18n).d.apply(t,[e].concat(n))},e.prototype.$n=function(e){for(var t,n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return(t=this.$i18n).n.apply(t,[e].concat(n))}})(Hc),Hc.mixin(jc),Hc.directive("t",{bind:Wc,update:$c,unbind:Qc}),Hc.component(Uc.name,Uc),Hc.component(Vc.name,Vc),Hc.config.optionMergeStrategies.i18n=function(e,t){return void 0===t?e:t}}var Jc=function(){this._caches=Object.create(null)};Jc.prototype.interpolate=function(e,t){if(!t)return[e];var n=this._caches[e];return n||(n=function(e){var t=[],n=0,r="";for(;n<e.length;){var i=e[n++];if("{"===i){r&&t.push({type:"text",value:r}),r="";var s="";for(i=e[n++];void 0!==i&&"}"!==i;)s+=i,i=e[n++];var o="}"===i,a=el.test(s)?"list":o&&tl.test(s)?"named":"unknown";t.push({value:s,type:a})}else"%"===i?"{"!==e[n]&&(r+=i):r+=i}return r&&t.push({type:"text",value:r}),t}(e),this._caches[e]=n),function(e,t){var n=[],r=0,i=Array.isArray(t)?"list":Sc(t)?"named":"unknown";if("unknown"===i)return n;for(;r<e.length;){var s=e[r];switch(s.type){case"text":n.push(s.value);break;case"list":n.push(t[parseInt(s.value,10)]);break;case"named":"named"===i&&n.push(t[s.value]);break;case"unknown":0}r++}return n}(n,t)};var el=/^(?:\d)+/,tl=/^(?:\w)+/;var nl=[];nl[0]={ws:[0],ident:[3,0],"[":[4],eof:[7]},nl[1]={ws:[1],".":[2],"[":[4],eof:[7]},nl[2]={ws:[2],ident:[3,0],0:[3,0],number:[3,0]},nl[3]={ident:[3,0],0:[3,0],number:[3,0],ws:[1,1],".":[2,1],"[":[4,1],eof:[7,1]},nl[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],eof:8,else:[4,0]},nl[5]={"'":[4,0],eof:8,else:[5,0]},nl[6]={'"':[4,0],eof:8,else:[6,0]};var rl=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function il(e){if(null==e)return"eof";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"ident";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return"ident"}function sl(e){var t,n,r,i=e.trim();return("0"!==e.charAt(0)||!isNaN(e))&&(r=i,rl.test(r)?(n=(t=i).charCodeAt(0))!==t.charCodeAt(t.length-1)||34!==n&&39!==n?t:t.slice(1,-1):"*"+i)}var ol=function(){this._cache=Object.create(null)};ol.prototype.parsePath=function(e){var t=this._cache[e];return t||(t=function(e){var t,n,r,i,s,o,a,c=[],l=-1,f=0,u=0,d=[];function h(){var t=e[l+1];if(5===f&&"'"===t||6===f&&'"'===t)return l++,r="\\"+t,d[0](),!0}for(d[1]=function(){void 0!==n&&(c.push(n),n=void 0)},d[0]=function(){void 0===n?n=r:n+=r},d[2]=function(){d[0](),u++},d[3]=function(){if(u>0)u--,f=4,d[0]();else{if(u=0,void 0===n)return!1;if(!1===(n=sl(n)))return!1;d[1]()}};null!==f;)if(l++,"\\"!==(t=e[l])||!h()){if(i=il(t),8===(s=(a=nl[f])[i]||a.else||8))return;if(f=s[0],(o=d[s[1]])&&(r=void 0===(r=s[2])?t:r,!1===o()))return;if(7===f)return c}}(e))&&(this._cache[e]=t),t||[]},ol.prototype.getPathValue=function(e,t){if(!Sc(e))return null;var n=this.parsePath(t);if(0===n.length)return null;for(var r=n.length,i=e,s=0;s<r;){var o=i[n[s]];if(void 0===o)return null;i=o,s++}return i};var al,cl=/<\/?[\w\s="/.':;#-\/]+>/,ll=/(?:@(?:\.[a-z]+)?:(?:[\w\-_|.]+|\([\w\-_|.]+\)))/g,fl=/^@(?:\.([a-z]+))?:/,ul=/[()]/g,dl={upper:function(e){return e.toLocaleUpperCase()},lower:function(e){return e.toLocaleLowerCase()},capitalize:function(e){return""+e.charAt(0).toLocaleUpperCase()+e.substr(1)}},hl=new Jc,pl=function(e){var t=this;void 0===e&&(e={}),!Hc&&"undefined"!=typeof window&&window.Vue&&Zc(window.Vue);var n=e.locale||"en-US",r=!1!==e.fallbackLocale&&(e.fallbackLocale||"en-US"),i=e.messages||{},s=e.dateTimeFormats||{},o=e.numberFormats||{};this._vm=null,this._formatter=e.formatter||hl,this._modifiers=e.modifiers||{},this._missing=e.missing||null,this._root=e.root||null,this._sync=void 0===e.sync||!!e.sync,this._fallbackRoot=void 0===e.fallbackRoot||!!e.fallbackRoot,this._formatFallbackMessages=void 0!==e.formatFallbackMessages&&!!e.formatFallbackMessages,this._silentTranslationWarn=void 0!==e.silentTranslationWarn&&e.silentTranslationWarn,this._silentFallbackWarn=void 0!==e.silentFallbackWarn&&!!e.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new ol,this._dataListeners=[],this._componentInstanceCreatedListener=e.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==e.preserveDirectiveContent&&!!e.preserveDirectiveContent,this.pluralizationRules=e.pluralizationRules||{},this._warnHtmlInMessage=e.warnHtmlInMessage||"off",this._postTranslation=e.postTranslation||null,this._escapeParameterHtml=e.escapeParameterHtml||!1,this.getChoiceIndex=function(e,n){var r=Object.getPrototypeOf(t);if(r&&r.getChoiceIndex)return r.getChoiceIndex.call(t,e,n);var i,s;return t.locale in t.pluralizationRules?t.pluralizationRules[t.locale].apply(t,[e,n]):(i=e,s=n,i=Math.abs(i),2===s?i?i>1?1:0:1:i?Math.min(i,2):0)},this._exist=function(e,n){return!(!e||!n)&&(!Mc(t._path.getPathValue(e,n))||!!e[n])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(i).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,i[e])})),this._initVM({locale:n,fallbackLocale:r,messages:i,dateTimeFormats:s,numberFormats:o})},ml={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0}};pl.prototype._checkLocaleMessage=function(e,t,n){var r=function(e,t,n,i){if(xc(n))Object.keys(n).forEach((function(s){var o=n[s];xc(o)?(i.push(s),i.push("."),r(e,t,o,i),i.pop(),i.pop()):(i.push(s),r(e,t,o,i),i.pop())}));else if(Ec(n))n.forEach((function(n,s){xc(n)?(i.push("["+s+"]"),i.push("."),r(e,t,n,i),i.pop(),i.pop()):(i.push("["+s+"]"),r(e,t,n,i),i.pop())}));else if(Tc(n)){if(cl.test(n)){var s="Detected HTML in message '"+n+"' of keypath '"+i.join("")+"' at '"+t+"'. Consider component interpolation with '<i18n>' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===e?Cc(s):"error"===e&&function(e,t){"undefined"!=typeof console&&(console.error("[vue-i18n] "+e),t&&console.error(t.stack))}(s)}}};r(t,e,n,[])},pl.prototype._initVM=function(e){var t=Hc.config.silent;Hc.config.silent=!0,this._vm=new Hc({data:e}),Hc.config.silent=t},pl.prototype.destroyVM=function(){this._vm.$destroy()},pl.prototype.subscribeDataChanging=function(e){this._dataListeners.push(e)},pl.prototype.unsubscribeDataChanging=function(e){!function(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)e.splice(n,1)}}(this._dataListeners,e)},pl.prototype.watchI18nData=function(){var e=this;return this._vm.$watch("$data",(function(){for(var t=e._dataListeners.length;t--;)Hc.nextTick((function(){e._dataListeners[t]&&e._dataListeners[t].$forceUpdate()}))}),{deep:!0})},pl.prototype.watchLocale=function(){if(!this._sync||!this._root)return null;var e=this._vm;return this._root.$i18n.vm.$watch("locale",(function(t){e.$set(e,"locale",t),e.$forceUpdate()}),{immediate:!0})},pl.prototype.onComponentInstanceCreated=function(e){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(e,this)},ml.vm.get=function(){return this._vm},ml.messages.get=function(){return Rc(this._getMessages())},ml.dateTimeFormats.get=function(){return Rc(this._getDateTimeFormats())},ml.numberFormats.get=function(){return Rc(this._getNumberFormats())},ml.availableLocales.get=function(){return Object.keys(this.messages).sort()},ml.locale.get=function(){return this._vm.locale},ml.locale.set=function(e){this._vm.$set(this._vm,"locale",e)},ml.fallbackLocale.get=function(){return this._vm.fallbackLocale},ml.fallbackLocale.set=function(e){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",e)},ml.formatFallbackMessages.get=function(){return this._formatFallbackMessages},ml.formatFallbackMessages.set=function(e){this._formatFallbackMessages=e},ml.missing.get=function(){return this._missing},ml.missing.set=function(e){this._missing=e},ml.formatter.get=function(){return this._formatter},ml.formatter.set=function(e){this._formatter=e},ml.silentTranslationWarn.get=function(){return this._silentTranslationWarn},ml.silentTranslationWarn.set=function(e){this._silentTranslationWarn=e},ml.silentFallbackWarn.get=function(){return this._silentFallbackWarn},ml.silentFallbackWarn.set=function(e){this._silentFallbackWarn=e},ml.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},ml.preserveDirectiveContent.set=function(e){this._preserveDirectiveContent=e},ml.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},ml.warnHtmlInMessage.set=function(e){var t=this,n=this._warnHtmlInMessage;if(this._warnHtmlInMessage=e,n!==e&&("warn"===e||"error"===e)){var r=this._getMessages();Object.keys(r).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,r[e])}))}},ml.postTranslation.get=function(){return this._postTranslation},ml.postTranslation.set=function(e){this._postTranslation=e},pl.prototype._getMessages=function(){return this._vm.messages},pl.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},pl.prototype._getNumberFormats=function(){return this._vm.numberFormats},pl.prototype._warnDefault=function(e,t,n,r,i,s){if(!Mc(n))return n;if(this._missing){var o=this._missing.apply(null,[e,t,r,i]);if(Tc(o))return o}else 0;if(this._formatFallbackMessages){var a=Ic.apply(void 0,i);return this._render(t,s,a.params,t)}return t},pl.prototype._isFallbackRoot=function(e){return!e&&!Mc(this._root)&&this._fallbackRoot},pl.prototype._isSilentFallbackWarn=function(e){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(e):this._silentFallbackWarn},pl.prototype._isSilentFallback=function(e,t){return this._isSilentFallbackWarn(t)&&(this._isFallbackRoot()||e!==this.fallbackLocale)},pl.prototype._isSilentTranslationWarn=function(e){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(e):this._silentTranslationWarn},pl.prototype._interpolate=function(e,t,n,r,i,s,o){if(!t)return null;var a,c=this._path.getPathValue(t,n);if(Ec(c)||xc(c))return c;if(Mc(c)){if(!xc(t))return null;if(!Tc(a=t[n])&&!Nc(a))return null}else{if(!Tc(c)&&!Nc(c))return null;a=c}return Tc(a)&&(a.indexOf("@:")>=0||a.indexOf("@.")>=0)&&(a=this._link(e,t,a,r,"raw",s,o)),this._render(a,i,s,n)},pl.prototype._link=function(e,t,n,r,i,s,o){var a=n,c=a.match(ll);for(var l in c)if(c.hasOwnProperty(l)){var f=c[l],u=f.match(fl),d=u[0],h=u[1],p=f.replace(d,"").replace(ul,"");if(kc(o,p))return a;o.push(p);var m=this._interpolate(e,t,p,r,"raw"===i?"string":i,"raw"===i?void 0:s,o);if(this._isFallbackRoot(m)){if(!this._root)throw Error("unexpected error");var g=this._root.$i18n;m=g._translate(g._getMessages(),g.locale,g.fallbackLocale,p,r,i,s)}m=this._warnDefault(e,p,m,r,Ec(s)?s:[s],i),this._modifiers.hasOwnProperty(h)?m=this._modifiers[h](m):dl.hasOwnProperty(h)&&(m=dl[h](m)),o.pop(),a=m?a.replace(f,m):a}return a},pl.prototype._createMessageContext=function(e){var t=Ec(e)?e:[],n=Sc(e)?e:{};return{list:function(e){return t[e]},named:function(e){return n[e]}}},pl.prototype._render=function(e,t,n,r){if(Nc(e))return e(this._createMessageContext(n));var i=this._formatter.interpolate(e,n,r);return i||(i=hl.interpolate(e,n,r)),"string"!==t||Tc(i)?i:i.join("")},pl.prototype._appendItemToChain=function(e,t,n){var r=!1;return kc(e,t)||(r=!0,t&&(r="!"!==t[t.length-1],t=t.replace(/!/g,""),e.push(t),n&&n[t]&&(r=n[t]))),r},pl.prototype._appendLocaleToChain=function(e,t,n){var r,i=t.split("-");do{var s=i.join("-");r=this._appendItemToChain(e,s,n),i.splice(-1,1)}while(i.length&&!0===r);return r},pl.prototype._appendBlockToChain=function(e,t,n){for(var r=!0,i=0;i<t.length&&"boolean"==typeof r;i++){var s=t[i];Tc(s)&&(r=this._appendLocaleToChain(e,s,n))}return r},pl.prototype._getLocaleChain=function(e,t){if(""===e)return[];this._localeChainCache||(this._localeChainCache={});var n=this._localeChainCache[e];if(!n){t||(t=this.fallbackLocale),n=[];for(var r,i=[e];Ec(i);)i=this._appendBlockToChain(n,i,t);(i=Tc(r=Ec(t)?t:Sc(t)?t.default?t.default:null:t)?[r]:r)&&this._appendBlockToChain(n,i,null),this._localeChainCache[e]=n}return n},pl.prototype._translate=function(e,t,n,r,i,s,o){for(var a,c=this._getLocaleChain(t,n),l=0;l<c.length;l++){var f=c[l];if(!Mc(a=this._interpolate(f,e[f],r,i,s,o,[r])))return a}return null},pl.prototype._t=function(e,t,n,r){for(var i,s=[],o=arguments.length-4;o-- >0;)s[o]=arguments[o+4];if(!e)return"";var a=Ic.apply(void 0,s);this._escapeParameterHtml&&(a.params=Lc(a.params));var c=a.locale||t,l=this._translate(n,c,this.fallbackLocale,e,r,"string",a.params);if(this._isFallbackRoot(l)){if(!this._root)throw Error("unexpected error");return(i=this._root).$t.apply(i,[e].concat(s))}return l=this._warnDefault(c,e,l,r,s,"string"),this._postTranslation&&null!=l&&(l=this._postTranslation(l,e)),l},pl.prototype.t=function(e){for(var t,n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return(t=this)._t.apply(t,[e,this.locale,this._getMessages(),null].concat(n))},pl.prototype._i=function(e,t,n,r,i){var s=this._translate(n,t,this.fallbackLocale,e,r,"raw",i);if(this._isFallbackRoot(s)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(e,t,i)}return this._warnDefault(t,e,s,r,[i],"raw")},pl.prototype.i=function(e,t,n){return e?(Tc(t)||(t=this.locale),this._i(e,t,this._getMessages(),null,n)):""},pl.prototype._tc=function(e,t,n,r,i){for(var s,o=[],a=arguments.length-5;a-- >0;)o[a]=arguments[a+5];if(!e)return"";void 0===i&&(i=1);var c={count:i,n:i},l=Ic.apply(void 0,o);return l.params=Object.assign(c,l.params),o=null===l.locale?[l.params]:[l.locale,l.params],this.fetchChoice((s=this)._t.apply(s,[e,t,n,r].concat(o)),i)},pl.prototype.fetchChoice=function(e,t){if(!e||!Tc(e))return null;var n=e.split("|");return n[t=this.getChoiceIndex(t,n.length)]?n[t].trim():e},pl.prototype.tc=function(e,t){for(var n,r=[],i=arguments.length-2;i-- >0;)r[i]=arguments[i+2];return(n=this)._tc.apply(n,[e,this.locale,this._getMessages(),null,t].concat(r))},pl.prototype._te=function(e,t,n){for(var r=[],i=arguments.length-3;i-- >0;)r[i]=arguments[i+3];var s=Ic.apply(void 0,r).locale||t;return this._exist(n[s],e)},pl.prototype.te=function(e,t){return this._te(e,this.locale,this._getMessages(),t)},pl.prototype.getLocaleMessage=function(e){return Rc(this._vm.messages[e]||{})},pl.prototype.setLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,t)},pl.prototype.mergeLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,Fc({},this._vm.messages[e]||{},t))},pl.prototype.getDateTimeFormat=function(e){return Rc(this._vm.dateTimeFormats[e]||{})},pl.prototype.setDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,t),this._clearDateTimeFormat(e,t)},pl.prototype.mergeDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,Fc(this._vm.dateTimeFormats[e]||{},t)),this._clearDateTimeFormat(e,t)},pl.prototype._clearDateTimeFormat=function(e,t){for(var n in t){var r=e+"__"+n;this._dateTimeFormatters.hasOwnProperty(r)&&delete this._dateTimeFormatters[r]}},pl.prototype._localizeDateTime=function(e,t,n,r,i){for(var s=t,o=r[s],a=this._getLocaleChain(t,n),c=0;c<a.length;c++){var l=a[c];if(s=l,!Mc(o=r[l])&&!Mc(o[i]))break}if(Mc(o)||Mc(o[i]))return null;var f=o[i],u=s+"__"+i,d=this._dateTimeFormatters[u];return d||(d=this._dateTimeFormatters[u]=new Intl.DateTimeFormat(s,f)),d.format(e)},pl.prototype._d=function(e,t,n){if(!n)return new Intl.DateTimeFormat(t).format(e);var r=this._localizeDateTime(e,t,this.fallbackLocale,this._getDateTimeFormats(),n);if(this._isFallbackRoot(r)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(e,n,t)}return r||""},pl.prototype.d=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var r=this.locale,i=null;return 1===t.length?Tc(t[0])?i=t[0]:Sc(t[0])&&(t[0].locale&&(r=t[0].locale),t[0].key&&(i=t[0].key)):2===t.length&&(Tc(t[0])&&(i=t[0]),Tc(t[1])&&(r=t[1])),this._d(e,r,i)},pl.prototype.getNumberFormat=function(e){return Rc(this._vm.numberFormats[e]||{})},pl.prototype.setNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,t),this._clearNumberFormat(e,t)},pl.prototype.mergeNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,Fc(this._vm.numberFormats[e]||{},t)),this._clearNumberFormat(e,t)},pl.prototype._clearNumberFormat=function(e,t){for(var n in t){var r=e+"__"+n;this._numberFormatters.hasOwnProperty(r)&&delete this._numberFormatters[r]}},pl.prototype._getNumberFormatter=function(e,t,n,r,i,s){for(var o=t,a=r[o],c=this._getLocaleChain(t,n),l=0;l<c.length;l++){var f=c[l];if(o=f,!Mc(a=r[f])&&!Mc(a[i]))break}if(Mc(a)||Mc(a[i]))return null;var u,d=a[i];if(s)u=new Intl.NumberFormat(o,Object.assign({},d,s));else{var h=o+"__"+i;(u=this._numberFormatters[h])||(u=this._numberFormatters[h]=new Intl.NumberFormat(o,d))}return u},pl.prototype._n=function(e,t,n,r){if(!pl.availabilities.numberFormat)return"";if(!n)return(r?new Intl.NumberFormat(t,r):new Intl.NumberFormat(t)).format(e);var i=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,r),s=i&&i.format(e);if(this._isFallbackRoot(s)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(e,Object.assign({},{key:n,locale:t},r))}return s||""},pl.prototype.n=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var r=this.locale,i=null,s=null;return 1===t.length?Tc(t[0])?i=t[0]:Sc(t[0])&&(t[0].locale&&(r=t[0].locale),t[0].key&&(i=t[0].key),s=Object.keys(t[0]).reduce((function(e,n){var r;return kc(wc,n)?Object.assign({},e,((r={})[n]=t[0][n],r)):e}),null)):2===t.length&&(Tc(t[0])&&(i=t[0]),Tc(t[1])&&(r=t[1])),this._n(e,r,i,s)},pl.prototype._ntp=function(e,t,n,r){if(!pl.availabilities.numberFormat)return[];if(!n)return(r?new Intl.NumberFormat(t,r):new Intl.NumberFormat(t)).formatToParts(e);var i=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,r),s=i&&i.formatToParts(e);if(this._isFallbackRoot(s)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(e,t,n,r)}return s||[]},Object.defineProperties(pl.prototype,ml),Object.defineProperty(pl,"availabilities",{get:function(){if(!al){var e="undefined"!=typeof Intl;al={dateTimeFormat:e&&void 0!==Intl.DateTimeFormat,numberFormat:e&&void 0!==Intl.NumberFormat}}return al}}),pl.install=Zc,pl.version="8.22.1";const gl=pl,vl=JSON.parse('{"Auth":{"Submit":"Chat","Name":"Name","Email":"Email","NameRequired":"Name is required","EmailRequired":"Email is required","EnterValidEmail":"Invalid Email","OfflineEnterValidEmail":"I\'m sorry, that doesn\'t look like an email address. Can you try again?","FieldValidation":"Required Field","OfflineSubmit":"Send","FieldsReplacement":"Please click \'Chat\' to initiate a chat with an agent","ChatIntro":"Could we have your contact info?","CloseButton":"Close","PhoneText":"Phone","EnterValidPhone":"Invalid phone number","EnterValidName":"I\'m sorry, the provided name is not valid.","MaxCharactersReached":"Maximum characters reached"},"Offline":{"CharactersLimit":"Length cannot exceed 50 characters"},"Chat":{"TypeYourMessage":"Type your message...","MessageNotDeliveredError":"A network related error occurred. Message not delivered.","TryAgain":" Click here to try again. ","OfflineNameRequest":"Could we have your name?","OfflineEmailRequest":"Could we have your email?"},"MessageBox":{"Ok":"OK","TryAgain":"Try again"},"Inputs":{"InviteMessage":"Hello! How can we help you today?","EndingMessage":"Your session is over. Please feel free to contact us again!","NotAllowedError":"Allow microphone access from your browser","NotFoundError":"Microphone not found","ServiceUnavailable":"Service unavailable","UnavailableMessage":"We are away, leave us a message!","OperatorName":"Support","WindowTitle":"Live Chat & Talk","CallTitle":"Call Us","PoweredBy":"Powered By 3CX","OfflineMessagePlaceholder":"Message","OfflineMessageSent":"We\'ll contact you soon.","InvalidIdErrorMessage":"Invalid ID. Contact the Website Admin. ID must match the Click2Talk Friendly Name","IsTyping":"is typing...","NewMessageTitleNotification":"New Message","ChatIsDisabled":"Chat is not available at the moment.","GreetingMessage":"Hey, we\'re here to help!"},"ChatCompleted":{"StartNew":"Start New"}}');var bl=n.t(vl,2);const yl=JSON.parse('{"Auth":{"Submit":"Chat","Name":"Nombre","Email":"Correo Electrónico","NameRequired":"El Nombre es requerido","EmailRequired":"El Correo Electrónico es requerido","EnterValidEmail":"Correo Electrónico inválido","FieldValidation":"Campo requerido","OfflineSubmit":"Enviar","FieldsReplacement":"Por favor, haga clic en \'chat\' para inciciar un chat con un agente","ChatIntro":"¿Podríamos tener su información de contacto?","CloseButton":"Cerrar","PhoneText":"Teléfono","EnterValidPhone":"Número de teléfono inválido","EnterValidName":"Caracteres permitidos: A-Z a-z 0-9 esspacio _ -","MaxCharactersReached":"Número máximo de caracteres alcanzado"},"Chat":{"TypeYourMessage":"Escriba su mensaje...","MessageNotDeliveredError":"Se detectó un error relacionado con la red. Mensaje no entregado.","TryAgain":"Haga clic aquí para intentarlo de nuevo."},"MessageBox":{"Ok":"Aceptar","TryAgain":"Intente de nuevo"},"Inputs":{"InviteMessage":"¡Hola! ¿Cómo puedo ayudarle el día de hoy?","EndingMessage":"Su sesión ha terminado. ¡Por favor, no dude en contactarnos de nuevo!","NotAllowedError":"Permitir el acceso a su micrófono por parte del navegador","NotFoundError":"No se encontró un micrófono","ServiceUnavailable":"Servicio no disponible","UnavailableMessage":"Ahora estamos ausentes, ¡Dejenos un mensaje!","OperatorName":"Soporte","WindowTitle":"Live Chat & Talk","CallTitle":"Llámenos","PoweredBy":"Alimentado por 3cx","OfflineMessagePlaceholder":"Mensaje","OfflineMessageSent":"Su mensaje ha sido entregado. Le contactaremos en breve a través de la dirección de correo electrónico que proporcionó. ¡Gracias y hasta luego!","InvalidIdErrorMessage":"ID Inválido. Contacte al administrador del Sitio Web. El ID debe ser igual al nombre amistoso de Click2Talk.","IsTyping":"está escribiendo...","NewMessageTitleNotification":"¡Nuevo Mensaje Recibido!","ChatIsDisabled":"El Chat no está disponible en este momento."},"ChatCompleted":{"StartNew":"Empezar un nuevo Chat"}}');var _l=n.t(yl,2);const Al=JSON.parse('{"Auth":{"Submit":"Chat","Name":"Name","Email":"E-Mail-Adresse","NameRequired":"Name erforderlich.","EmailRequired":"E-Mail-Adresse erforderlich.","EnterValidEmail":"E-Mail-Adresse ungültig","FieldValidation":"Pflichtangabe","OfflineSubmit":"Senden","FieldsReplacement":"Bitte klicken Sie auf \\"Chat\\", um mit einem Agenten zu chatten.","ChatIntro":"Bitte teilen Sie uns Ihre Kontaktdaten mit. Danke!","CloseButton":"Schließen","PhoneText":"Telefonnummer","EnterValidPhone":"Telefonnummer ungültig.","EnterValidName":"Zulässige Zeichen: A-Z a-z 0-9 Leerzeichen _ -","MaxCharactersReached":"Max. Zeichenanzahl erreicht."},"Chat":{"TypeYourMessage":"Nachricht eingeben ...","MessageNotDeliveredError":"Die Nachricht konnte aufgrund eines Netzwerkfehlers nicht zugestellt werden.","TryAgain":"Klicken Sie hier, um es erneut zu versuchen."},"MessageBox":{"Ok":"OK","TryAgain":"Erneut versuchen"},"Inputs":{"InviteMessage":"Hallo! Wie können wir Ihnen weiterhelfen?","EndingMessage":"Ihre Sitzung ist beendet. Bei weiteren Fragen stehen wir Ihnen gerne zur Verfügung.","NotAllowedError":"Bitte den Mikrofonzugriff durch Browser gestatten.","NotFoundError":"Mikrofon nicht gefunden.","ServiceUnavailable":"Service nicht verfügbar.","UnavailableMessage":"Aktuell ist leider kein Agent verfügbar. Bitte hinterlassen Sie uns eine Nachricht.","OperatorName":"Support","WindowTitle":"3CX Live Chat & Talk","CallTitle":"Anrufen","PoweredBy":"Powered by 3CX","OfflineMessagePlaceholder":"Nachricht","OfflineMessageSent":"Ihre Nachricht wurde übermittelt. Wir werden uns in Kürze mit Ihnen in Verbindung setzen.","InvalidIdErrorMessage":"ID ungültig. Die ID muss mit dem Click2Talk-Anzeigenamen übereinstimmen. Bitte setzen Sie sich mit dem Website-Administrator in Verbindung.","IsTyping":"tippt ...","NewMessageTitleNotification":"Neue Nachricht erhalten!","ChatIsDisabled":"Der Chat ist zurzeit nicht verfügbar."},"ChatCompleted":{"StartNew":"Neu starten"}}');var wl=n.t(Al,2);const Cl=JSON.parse('{"Auth":{"Submit":"Chat","Name":"Nom","Email":"Email","NameRequired":"Le nom est obligatoire","EmailRequired":"L\'email est obligatoire","EnterValidEmail":"Email invalide","FieldValidation":"Champ obligatoire","OfflineSubmit":"Envoyer","FieldsReplacement":"Cliquez sur \'Chat\' pour commencer une discussion avec un agent","ChatIntro":"Pouvons-nous avoir vos coordonnées?","CloseButton":"Fermer","PhoneText":"Téléphone","EnterValidPhone":"Numéro de téléphone invalide","EnterValidName":"Caractères permis : A-Z a-z 0-9 espace _ -","MaxCharactersReached":"Nombre maximum de caractères atteint"},"Chat":{"TypeYourMessage":"Ecrivez votre message...","MessageNotDeliveredError":"Une erreur liée au réseau est survenue. Le message n\'a pas pu être délivré.","TryAgain":"Cliquez ici pour réessayer."},"MessageBox":{"Ok":"OK","TryAgain":"Merci de réessayer"},"Inputs":{"InviteMessage":"Bonjour, comment pouvons-nous vous aider?","EndingMessage":"Votre session est terminée. N\'hésitez pas à nous recontacter.","NotAllowedError":"Permettre l\'accès au microphone depuis votre navigateur","NotFoundError":"Microphone introuvable","ServiceUnavailable":"Service indisponible","UnavailableMessage":"Nous sommes absents, laissez-nous un message!","OperatorName":"Support","WindowTitle":"Live Chat & Talk","CallTitle":"Appelez-nous","PoweredBy":"Propulsé par 3CX","OfflineMessagePlaceholder":"Message","OfflineMessageSent":"Nous avons reçu votre message et nous vous contacterons bientôt.","InvalidIdErrorMessage":"ID invalide. Contactez l\'administrateur de votre site web. L\'ID doit correspondre au pseudonyme Click2Talk","IsTyping":"Est en train d\'écrire... ","NewMessageTitleNotification":"Nouveau message reçu !","ChatIsDisabled":"Le chat n\'est pas disponible pour le moment."},"ChatCompleted":{"StartNew":"Commencer un nouveau chat."}}');var El=n.t(Cl,2);const Sl=JSON.parse('{"Auth":{"Submit":"Chat","Name":"Nome","Email":"Email\\t","NameRequired":"Il nome è necessario","EmailRequired":"L\'email è necessario","EnterValidEmail":"Email non valida","FieldValidation":"Campo obbligatorio","OfflineSubmit":"Invia","FieldsReplacement":"Clicca su \'Chat\' per avviare una chat con un agente","ChatIntro":"Possiamo avere i tuoi dati di contatto?","CloseButton":"Chiuso","PhoneText":"Telefono","EnterValidPhone":"Numero di telefono non valido","EnterValidName":"Caratteri ammessi: A-Z a-z 0-9 spazio _ -","MaxCharactersReached":"Numero massimo di caratteri raggiunto"},"Chat":{"TypeYourMessage":"Scrivi il tuo messaggio ...","MessageNotDeliveredError":"Si è verificato un errore di rete. Messaggio non consegnato.","TryAgain":"Clicca qui per riprovare."},"MessageBox":{"Ok":"OK","TryAgain":"Riprova"},"Inputs":{"InviteMessage":"Ciao! Come possiamo aiutarti oggi?","EndingMessage":"La sessione è terminata. Non esitare a contattarci di nuovo!","NotAllowedError":"Consenti l\'accesso al microfono dal tuo browser","NotFoundError":"Microfono non trovato","ServiceUnavailable":"Servizio non disponibile","UnavailableMessage":"Siamo assenti, lasciaci un messaggio!","OperatorName":"Supporto","WindowTitle":"Live Chat & Talk","CallTitle":"Chiamaci","PoweredBy":"Powered By 3CX","OfflineMessagePlaceholder":"Messaggio","OfflineMessageSent":"Il tuo messaggio è stato recapitato Ti contatteremo a breve tramite l\'indirizzo email che hai fornito. Grazie e arrivederci!","InvalidIdErrorMessage":"ID non valido. Contatta l\'amministratore del sito web. L\'ID deve corrispondere al nome Click2Talk","IsTyping":"Sta scrivendo...","NewMessageTitleNotification":"Nuovo messaggio ricevuto!","ChatIsDisabled":"La Chat non è al momento disponibile."},"ChatCompleted":{"StartNew":"Inizia un nuova chat."}}');var Tl=n.t(Sl,2);const Ol=JSON.parse('{"Auth":{"Submit":"Czat","Name":"Nazwisko","Email":"Email","NameRequired":"Nazwisko jest wymagane","EmailRequired":"Email jest wymagany","EnterValidEmail":"Nieprawidłowy email","FieldValidation":"Pole wymagane","OfflineSubmit":"Wyślij","FieldsReplacement":"Kliknij \\"Czat\\", aby rozpocząć rozmowę z agentem","ChatIntro":"Czy możemy prosić o Twoje imię i adres e-mail?","CloseButton":"Zamknij","PhoneText":"Telefon","EnterValidPhone":"Nieprawidłowy numer telefonu","EnterValidName":"Dopuszczalne znaki: A-Z a-z 0-9 spacja _ -","MaxCharactersReached":"Osiągnięto maksimum znaków"},"Chat":{"TypeYourMessage":"Wpisz swoją wiadomość….","MessageNotDeliveredError":"Błąd sieci. Wiadomość nie dostarczona.","TryAgain":"Kliknij tutaj, aby spróbować ponownie."},"MessageBox":{"Ok":"OK","TryAgain":"Spróbuj ponownie"},"Inputs":{"InviteMessage":"Witaj! Jak możemy Ci dziś pomóc?","EndingMessage":"Twoja sesja się zakończyła. Zapraszamy do ponownego kontaktu!","NotAllowedError":"Zezwól na dostęp do mikrofonu swojej przeglądarce","NotFoundError":"Nie znaleziono mikrofonu","ServiceUnavailable":"Usługa niedostępna","UnavailableMessage":"Nie ma nas, zmostaw wiadomość!","OperatorName":"Wsparcie","WindowTitle":"Live Chat & Talk","CallTitle":"Zadzwoń do nas","PoweredBy":"Wspierane przez 3CX","OfflineMessagePlaceholder":"Message","OfflineMessageSent":"Twoja wiadomość została dostarczona. Wkrótce się skontaktujemy na podany adres email. Dziękuję i do zobaczenia!","InvalidIdErrorMessage":"Nieprawidłowe ID. Skontaktuj się z administratorem strony. ID musi odpowiadać Przyjaznej nazwie Click2Talk","IsTyping":"Pisze…","NewMessageTitleNotification":"Otrzymano nową wiadomość!","ChatIsDisabled":"Czat jest w tym momencie niedostępny."},"ChatCompleted":{"StartNew":"Zacznij nowy"}}');var xl=n.t(Ol,2);const Ml=JSON.parse('{"Auth":{"Submit":"Начать чат","Name":"Имя","Email":"E-mail","NameRequired":"Укажите имя","EmailRequired":"Укажите e-mail","EnterValidEmail":"Неверный e-mail","FieldValidation":"Необходимое поле","OfflineSubmit":"Отправить","FieldsReplacement":"Нажмите \'Начать чат\', чтобы связаться с оператором","ChatIntro":"Можно узнать ваши контакты?","CloseButton":"Закрыть","PhoneText":"Телефон","EnterValidPhone":"Неверный номер","EnterValidName":"Допустимые символы: A-Z a-z 0-9 пробел _ -","MaxCharactersReached":"Достигнуто предельное количество символов"},"Chat":{"TypeYourMessage":"Введите сообщение...","MessageNotDeliveredError":"Ошибка сети. Сообщение не доставлено.","TryAgain":"Нажмите, чтобы попробовать снова."},"MessageBox":{"Ok":"OK","TryAgain":"Попробуйте снова"},"Inputs":{"InviteMessage":"Здравствуйте! Мы можем вам помочь?","EndingMessage":"Сессия завершена. Свяжитесь с нами, когда будет удобно!","NotAllowedError":"Разрешите доступ браузера к микрофону","NotFoundError":"Микрофон не найден","ServiceUnavailable":"Сервис недоступен","UnavailableMessage":"Сейчас мы не на связи. Пожалуйста, оставьте сообщение!","OperatorName":"Поддержка","WindowTitle":"Live Chat & Talk","CallTitle":"Свяжитесь с нами","PoweredBy":"Заряжено 3CX","OfflineMessagePlaceholder":"Сообщение","OfflineMessageSent":"Мы получили ваше сообщение и вскоре свяжемся с вами.","InvalidIdErrorMessage":"Неверный ID. Свяжитесь с администратором сайта. ID должен соответствовать короткому имени в параметрах Click2Talk","IsTyping":"набирает...","NewMessageTitleNotification":"Новое сообщение!","ChatIsDisabled":"Чат сейчас недоступен."},"ChatCompleted":{"StartNew":"Начать новый чат"}}');var Nl=n.t(Ml,2);const Il=JSON.parse('{"Auth":{"Submit":"Chat","Name":"Nome","Email":"E-mail","NameRequired":"Nome é obrigatório","EmailRequired":"E-mail é obrigatório","EnterValidEmail":"E-mail inválido","FieldValidation":"Campo obrigatório","OfflineSubmit":"Enviar","FieldsReplacement":"Clique em \'Chat\' para iniciar um chat com um agente","ChatIntro":"Você poderia informar suas inforamções para contato?","CloseButton":"Fechar","PhoneText":"Telefone","EnterValidPhone":"Número de telefone inválido","EnterValidName":"Caracteres permitidos: A-Z a-z 0-9 espaço _ -","MaxCharactersReached":"Número máximo de caracteres atingido"},"Chat":{"TypeYourMessage":"Escreva sua mensagem...","MessageNotDeliveredError":"Ocorreu um erro relacionado à rede. Mensagem não enviada.","TryAgain":"Clique aqui para tentar novamente."},"MessageBox":{"Ok":"Ok","TryAgain":"Tente novamente"},"Inputs":{"InviteMessage":"Olá! Como podemos te ajudar hoje?","EndingMessage":"Sua sessão terminou. Por favor, sinta-se à vontade para nos contatar novamente!","NotAllowedError":"Permitir acesso ao microfone pelo seu navegador","NotFoundError":"Microfone não encontrado","ServiceUnavailable":"Serviço indisponível","UnavailableMessage":"Estamos fora, deixe-nos uma mensagem!","OperatorName":"Suporte","WindowTitle":"Live Chat & Talk","CallTitle":"Entre em contato","PoweredBy":"Fornecidos por 3CX","OfflineMessagePlaceholder":"Mensagem","OfflineMessageSent":"Sua mensagem foi enviada. Entraremos em contato em breve.","InvalidIdErrorMessage":"ID inválido. Entre em contato com o administrador do site. O ID deve corresponder ao apelido usado no Click2Talk","IsTyping":"Digitando...","NewMessageTitleNotification":"Nova mensagem recebida!","ChatIsDisabled":"O chat não está disponível no momento."},"ChatCompleted":{"StartNew":"Commencer un nouveau chat."}}');var Rl=n.t(Il,2);const kl=JSON.parse('{"Auth":{"Submit":"聊天","Name":"姓名","Email":"邮箱","NameRequired":"姓名为必填项","EmailRequired":"邮箱为必填项","EnterValidEmail":"无效的邮箱","FieldValidation":"必填字段","OfflineSubmit":"发送","FieldsReplacement":"请点击 \\"聊天\\",开始与坐席交谈。","ChatIntro":"能不能告诉我们您的姓名和邮箱?","CloseButton":"关闭","PhoneText":"电话","EnterValidPhone":"无效的电话号码","EnterValidName":"允许的字符:A-Z a-z 0-9空格 _ -","MaxCharactersReached":"已达到最大字符限制"},"Chat":{"TypeYourMessage":"输入您的消息...","MessageNotDeliveredError":"发生网络相关错误。信息未送达。","TryAgain":" 点击此处再试一次。 "},"MessageBox":{"Ok":"OK","TryAgain":"再次尝试"},"Inputs":{"InviteMessage":"您好!请问有什么可以帮到您的?","EndingMessage":"您的会话结束了。请随时与我们联系!","NotAllowedError":"允许通过浏览器访问麦克风","NotFoundError":"未发现麦克风","ServiceUnavailable":"我们不在线,给我们留言吧!","UnavailableMessage":"目前没有可用的座席。请填写下面的表格,我们会尽快与您联系","OperatorName":"支持","WindowTitle":"在线聊天和通话","CallTitle":"致电我们","PoweredBy":"由3CX提供支持","OfflineMessagePlaceholder":"留言信息","OfflineMessageSent":"您的消息已送达。我们将尽快通过您提供的电子邮件地址与您联系。谢谢,再见!","InvalidIdErrorMessage":"无效的ID。联系网站管理员。ID必须与Click2Talk友好名称匹配","IsTyping":"正在输入...","NewMessageTitleNotification":"收到新消息!","ChatIsDisabled":"在线聊天暂不可用。"},"ChatCompleted":{"StartNew":"开始新的聊天"}}');var Pl=n.t(kl,2);ts.use(gl);const Dl={en:bl,es:_l,de:wl,fr:El,it:Tl,pl:xl,ru:Nl,pt_BR:Rl,pt_PT:Rl,pt:Rl,zh:Pl,zh_CN:Pl},Fl=new gl({locale:(0,Ac.Z)({languages:Object.keys(Dl),fallback:"en"}),messages:Dl}),Bl=e=>t=>t.pipe(Ga((t=>t instanceof e)),Xs((e=>e))),Ll=(e,t)=>new Gs((n=>{t||(t={}),t.headers||(t.headers={}),Object.assign(t.headers,{pragma:"no-cache","cache-control":"no-store"}),fetch(e,t).then((e=>{e.ok?(n.next(e),n.complete()):n.error(e)})).catch((e=>{e instanceof TypeError?n.error("Failed to contact chat service URL. Please check chat URL parameter and ensure CORS requests are allowed from current domain."):n.error(e)}))})),jl=e=>{const t=new Uint8Array(e),n=_c.decode(t,t.length);return delete n.MessageId,Object.values(n)[0]},Ul=e=>{const t=new URL(window.location.href),n=e.startsWith("http")?e:t.protocol+(e.startsWith("//")?e:"//"+e);return new URL(n)};function ql(e,t){return e?t?`${e.replace(/\/+$/,"")}/${t.replace(/^\/+/,"")}`:e:t}const zl=e=>"string"==typeof e?e:e instanceof Error?"NotAllowedError"===e.name?Fl.t("Inputs.NotAllowedError").toString():"NotFoundError"===e.name?Fl.t("Inputs.NotFoundError").toString():e.message:Fl.t("Inputs.ServiceUnavailable").toString(),Gl=(()=>{const e=window.document.title,t=Fl.t("Inputs.NewMessageTitleNotification").toString();let n;const r=()=>{window.document.title=window.document.title===t?e:t},i=()=>{clearInterval(n),window.document.title=e,window.document.onmousemove=null,n=null};return{startBlinkWithStopOnMouseMove(){n||(n=setInterval(r,1e3),window.document.onmousemove=i)},startBlink(){n||(n=setInterval(r,1e3))},stopBlink(){n&&i()}}})(),Hl=(e,t=!0)=>{let n="0123456789";n+=t?"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ":"";let r="";for(let t=0;t<e;t+=1)r+=n.charAt(Math.floor(Math.random()*n.length));return r},Vl="https:"===window.location.protocol||window.location.host.startsWith("localhost");function Wl(e){return e&&"function"==typeof e.schedule}const $l=e=>t=>{for(let n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.complete()};function Ql(e,t){return new Gs((n=>{const r=new Ds;let i=0;return r.add(t.schedule((function(){i!==e.length?(n.next(e[i++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}function Yl(e,t){return t?Ql(e,t):new Gs($l(e))}function Xl(...e){let t=e[e.length-1];return Wl(t)?(e.pop(),Ql(e,t)):Yl(e)}const Kl="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",Zl=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Jl(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const ef=e=>{if(e&&"function"==typeof e[Us])return r=e,e=>{const t=r[Us]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(Zl(e))return $l(e);if(Jl(e))return n=e,e=>(n.then((t=>{e.closed||(e.next(t),e.complete())}),(t=>e.error(t))).then(null,Ns),e);if(e&&"function"==typeof e[Kl])return t=e,e=>{const n=t[Kl]();for(;;){let t;try{t=n.next()}catch(t){return e.error(t),e}if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add((()=>{n.return&&n.return()})),e};{const t=ks(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var t,n,r};function tf(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[Us]}(e))return function(e,t){return new Gs((n=>{const r=new Ds;return r.add(t.schedule((()=>{const i=e[Us]();r.add(i.subscribe({next(e){r.add(t.schedule((()=>n.next(e))))},error(e){r.add(t.schedule((()=>n.error(e))))},complete(){r.add(t.schedule((()=>n.complete())))}}))}))),r}))}(e,t);if(Jl(e))return function(e,t){return new Gs((n=>{const r=new Ds;return r.add(t.schedule((()=>e.then((e=>{r.add(t.schedule((()=>{n.next(e),r.add(t.schedule((()=>n.complete())))})))}),(e=>{r.add(t.schedule((()=>n.error(e))))}))))),r}))}(e,t);if(Zl(e))return Ql(e,t);if(function(e){return e&&"function"==typeof e[Kl]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new Gs((n=>{const r=new Ds;let i;return r.add((()=>{i&&"function"==typeof i.return&&i.return()})),r.add(t.schedule((()=>{i=e[Kl](),r.add(t.schedule((function(){if(n.closed)return;let e,t;try{const n=i.next();e=n.value,t=n.done}catch(e){return void n.error(e)}t?n.complete():(n.next(e),this.schedule())})))}))),r}))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}function nf(e,t){return t?tf(e,t):e instanceof Gs?e:new Gs(ef(e))}class rf extends Ls{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class sf extends Ls{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function of(e,t){if(!t.closed)return e instanceof Gs?e.subscribe(t):ef(e)(t)}function af(e,t){return"function"==typeof t?n=>n.pipe(af(((n,r)=>nf(e(n,r)).pipe(Xs(((e,i)=>t(n,e,r,i))))))):t=>t.lift(new cf(e))}class cf{constructor(e){this.project=e}call(e,t){return t.subscribe(new lf(e,this.project))}}class lf extends sf{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const n=new rf(this),r=this.destination;r.add(n),this.innerSubscription=of(e,n),this.innerSubscription!==n&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}function ff(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?r=>r.pipe(ff(((n,r)=>nf(e(n,r)).pipe(Xs(((e,i)=>t(n,e,r,i))))),n)):("number"==typeof t&&(n=t),t=>t.lift(new uf(e,n)))}class uf{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new df(e,this.project,this.concurrent))}}class df extends sf{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this.active++,this._innerSub(t)}_innerSub(e){const t=new rf(this),n=this.destination;n.add(t);const r=of(e,t);r!==t&&n.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function hf(e=Number.POSITIVE_INFINITY){return ff(qs,e)}function pf(...e){return hf(1)(Xl(...e))}function mf(...e){const t=e[e.length-1];return Wl(t)?(e.pop(),n=>pf(e,n,t)):t=>pf(e,t)}class gf extends Ds{constructor(e,t){super()}schedule(e,t=0){return this}}class vf extends gf{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(e,t,n=0){return setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n=!1,r=void 0;try{this.work(e)}catch(e){n=!0,r=!!e&&e||new Error(e)}if(n)return this.unsubscribe(),r}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}class bf{constructor(e,t=bf.now){this.SchedulerAction=e,this.now=t}schedule(e,t=0,n){return new this.SchedulerAction(this,e).schedule(n,t)}}bf.now=()=>Date.now();class yf extends bf{constructor(e,t=bf.now){super(e,(()=>yf.delegate&&yf.delegate!==this?yf.delegate.now():t())),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return yf.delegate&&yf.delegate!==this?yf.delegate.schedule(e,t,n):super.schedule(e,t,n)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let 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}}}const _f=new class extends yf{}(class extends vf{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(e,t,n):e.flush(this)}}),Af=new Gs((e=>e.complete()));function wf(e){return e?function(e){return new Gs((t=>e.schedule((()=>t.complete()))))}(e):Af}var Cf;!function(e){e.NEXT="N",e.ERROR="E",e.COMPLETE="C"}(Cf||(Cf={}));class Ef{constructor(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}accept(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}toObservable(){switch(this.kind){case"N":return Xl(this.value);case"E":return La(this.error);case"C":return wf()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new Ef("N",e):Ef.undefinedValueNotification}static createError(e){return new Ef("E",void 0,e)}static createComplete(){return Ef.completeNotification}}Ef.completeNotification=new Ef("C"),Ef.undefinedValueNotification=new Ef("N",void 0);class Sf extends Ls{constructor(e,t,n=0){super(e),this.scheduler=t,this.delay=n}static dispatch(e){const{notification:t,destination:n}=e;t.observe(n),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(Sf.dispatch,this.delay,new Tf(e,this.destination)))}_next(e){this.scheduleMessage(Ef.createNext(e))}_error(e){this.scheduleMessage(Ef.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(Ef.createComplete()),this.unsubscribe()}}class Tf{constructor(e,t){this.notification=e,this.destination=t}}class Of extends Qs{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){if(!this.isStopped){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}super.next(e)}nextTimeWindow(e){this.isStopped||(this._events.push(new xf(this._getNow(),e)),this._trimBufferThenGetEvents()),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,n=t?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,i=n.length;let s;if(this.closed)throw new Vs;if(this.isStopped||this.hasError?s=Ds.EMPTY:(this.observers.push(e),s=new Ws(this,e)),r&&e.add(e=new Sf(e,r)),t)for(let t=0;t<i&&!e.closed;t++)e.next(n[t]);else for(let t=0;t<i&&!e.closed;t++)e.next(n[t].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),s}_getNow(){return(this.scheduler||_f).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,n=this._windowTime,r=this._events,i=r.length;let s=0;for(;s<i&&!(e-r[s].time<n);)s++;return i>t&&(s=Math.max(s,i-t)),s>0&&r.splice(0,s),r}}class xf{constructor(e,t){this.time=e,this.value=t}}function Mf(e,t,n,r){n&&"function"!=typeof n&&(r=n);const i="function"==typeof n?n:void 0,s=new Of(e,t,r);return e=>lo((()=>s),i)(e)}const Nf=(()=>{function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e})();function If(e){return t=>0===e?wf():t.lift(new Rf(e))}class Rf{constructor(e){if(this.total=e,this.total<0)throw new Nf}call(e,t){return t.subscribe(new kf(e,this.total))}}class kf extends Ls{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}function Pf(e){return function(t){const n=new Df(e),r=t.lift(n);return n.caught=r}}class Df{constructor(e){this.selector=e}call(e,t){return t.subscribe(new Ff(e,this.selector,this.caught))}}class Ff extends sf{constructor(e,t,n){super(e),this.selector=t,this.caught=n}error(e){if(!this.isStopped){let t;try{t=this.selector(e,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const n=new rf(this);this.add(n);const r=of(t,n);r!==n&&this.add(r)}}}class Bf{constructor(e){this.name="",this.emailTag="",this.image="",Object.assign(this,e)}}const Lf=new Bf;class jf{constructor(e,t,n,r,i,s){this.connect$=new Qs,this.changeOperator$=new Qs,this.mySession$=this.connect$.pipe(af((o=>o?s.createMySession(e,n,t,r,i):Xl(qa()))),mf(qa()),Mf(1),ro()),this.onOperatorChange$=this.changeOperator$.pipe(Mf(1),ro()),this.notificationsOfType$(Bf).subscribe((e=>{e.image=""!==e.image?t+e.image:"",this.changeOperator$.next(e)})),this.notificationsOfType$(dc).subscribe((e=>{e&&e.TakenBy&&e.TakenBy.Name&&this.changeOperator$.next({name:e.TakenBy.Name,emailTag:"default",image:void 0!==e.TakenBy.Contact&&""!==e.TakenBy.Contact.ContactImage?t+e.TakenBy.Contact.ContactImage:""})}))}closeSession(){this.connect$.next(!1)}reconnect(){this.connect$.next(!0)}notificationsOfType$(e){return this.mySession$.pipe(af((e=>e.messages$)),Bl(e))}notificationsFilter$(e){return this.mySession$.pipe(af((e=>e.messages$)),Ga((t=>t===e)))}get(e,t=!0){return this.mySession$.pipe(If(1),af((e=>e.sessionState!==Ra.Connected?(this.reconnect(),this.mySession$.pipe(Ga((t=>t!==e)))):Xl(e))),af((n=>n.get(e,t))),Pf((e=>e instanceof Error&&"NotImplemented"===e.name?Xl(null):La(e))),If(1))}}const Uf=e=>!!e&&!/\.\./i.test(e.toLowerCase().trim())&&/^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)])$/.test(e.toLowerCase().trim()),qf=e=>!e||!!e&&e.length<=200,zf=(e,t=50)=>!e||!!e&&e.length<=t,Gf=(e,t)=>{return(n=e)&&/^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/|\/\/)?[a-z0-9.-]+([-.]{1})[a-z0-9]{1,5}(:[0-9]{1,5})?(\/[a-zA-Z0-9-._~:/?#@!$&*=;+%()']*)?$/i.test(n)&&qf(e)?e:t;var n},Hf=(e,t)=>e?t?zf(e,t)?e:e.substring(0,t):zf(e,50)?e:e.substring(0,50):"",Vf=(e,t)=>Uf(e)&&qf(e)?e:t,Wf=(e,t)=>{return(n=e)&&/^(https?:\/\/)?((w{3}\.)?)facebook.com\/.*/i.test(n)&&qf(e)?e:t;var n},$f=(e,t)=>{return(n=e)&&/^(https?:\/\/)?((w{3}\.)?)twitter.com\/.*/i.test(n)&&qf(e)?e:t;var n};var Qf=n(1206);class Yf{static convertDateToTicks(e){return(e.getTime()-60*e.getTimezoneOffset()*1e3)*this.ticksPerMillisecondInCSharp+this.epochTicks}static convertTicksToDate(e){const t=(e-this.epochTicks)/this.ticksPerMillisecondInCSharp,n=new Date(t);return new Date(n.getTime()+60*n.getTimezoneOffset()*1e3)}static isDoubleByte(e){if(void 0!==e&&null!=e)for(let t=0,n=e.length;t<n;t+=1)if(e.charCodeAt(t)>255)return!0;return!1}static isDesktop(){const e=Qf.getParser(window.navigator.userAgent);return""!==e.getPlatformType()?"desktop"===e.getPlatformType(!0):window.innerWidth>600}static decodeHtml(e){const t=document.createElement("textarea");return t.innerHTML=e,t.value}static focusElement(e){setTimeout((()=>{e&&e.focus()}),200)}static popupCenter(e,t,n){const r=void 0!==window.screenLeft?window.screenLeft:window.screenX,i=void 0!==window.screenTop?window.screenTop:window.screenY,s=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:window.screen.width,o=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:window.screen.height,a=s/window.screen.availWidth,c=(s-t)/2/a+r,l=(o-n)/2/a+i;return window.open(e,"popUpChat",`directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes, width=${t}, height=${n}, top=${l}, left=${c}`)}static retrieveHexFromCssColorProperty(e,t,n){let r="";if(e.$root&&e.$root.$el&&e.$root.$el.getRootNode()instanceof ShadowRoot){const n=e.$root.$el.getRootNode();n&&(r=getComputedStyle(n.host).getPropertyValue(t)),r=Yf.colorNameToHex(r)}return""!==r?r.replace("#",""):n}static colorNameToHex(e){const t={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};return void 0!==t[e.toLowerCase()]?t[e.toLowerCase()]:e}}Yf.epochTicks=621355968e9,Yf.ticksPerMillisecondInCSharp=1e4,Yf.IdGenerator=(()=>{let e=-1;return{getNext:()=>(e<0&&(e=1e5),e+=1,e)}})();var Xf=function(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o};let Kf=class extends ts{constructor(){super(...arguments),this.ViewState=ka}getPropertyValue(e,t,n){let r=n.find((e=>""!==e&&void 0!==e));return void 0!==e&&Object.prototype.hasOwnProperty.call(e,t)&&(r=e[t]),void 0!==r?r:""}};Kf=Xf([vs],Kf);const Zf=Kf,Jf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAANlBMVEXz9Pa5vsq2u8jN0dnV2N/o6u7FydPi5Onw8fS+ws3f4ee6v8v29/jY2+Hu7/Ly9PbJztbQ1dxJagBAAAAC60lEQVR4nO3b2ZaCMBREUQbDJOP//2wbEGVIFCHKTa+zH7uVRVmBBJQgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMCpdOzvQQqaq2KmuSrOzQ02lSeRem8rpsQq/ozg72Kj4UkAxEev8awnzs7P1yiIadsfpQXjfZCHhUCzbfmeurdNz6bDRsBWRsB+k0cXxdHjpa0wkTBn3hKnjzRZyEgYk3IeEv2RKWCt1cN9EJ0zjfm7Mq/rAVgUnbLpwnK/zA2tnuQmzJHquuqJq91blJuwmAW8rHbV3q2ITFrOAt7Xz3l2UmrBMlpcHe9fOUhOqRYVhFO/cqtSEy0H6bh/tJ1uhCctqlTB/NSnG9pOt1ISXjxLq825laVFowo9GaRPrF9talJqw3n6macaZ09yi1ISG2cLyriwePwxzi1ITru4s2naxma59TC2KTRjE83FqmQ6yeDaUDS3KTRhMV96h5TTSLD4HQ4uCE9bxePUU5pYL/3mD5o9CcMKgTONc39NNLrV5iK4aNLUoOWHQ38RQtW3nsm6db92i8ISvGBtct+hvwqyzBFxE9DehrcHlQPU1YWNvcNGirwlfNThv0ZOE9eJG1OsGZy36kVBdczU9e7RvAz5b9CFhqfIwSp4XwG+OwUWLPiRUV/33Z4tbGtTvGK635CfUDfb/SO5rt20N9t8m65fLT9g3GD5abDY2qC+lvEg4NjhEvLW4tUFvEj4a7OXq3TzoW8Jpg0PEzfk8SThv8EMeJFw1+O8SHmrQg4QHG/Qg4cEGxSc83KD4hIcblJ6w3L508TXh+vtDEpLw3GwDEpKQhOdznVD2fRr9tdpRw/1HqQndIeEvkXCXUlDC+1NBndsnge/fwyVnp9PGH3p95dm1WMKza4/fI37j+UPXR/c+2X9/hjQI0uO3LsyuMioM9A8Sjy/W1iIhY7Sn2tzpUahdWyXiNDNSxcWtSlCBAAAAAAAAAAAAAAAAAAAAAAAAAAAAwCn+AEXGNosxDBhFAAAAAElFTkSuQmCC";var eu=n(1466),tu=n.n(eu),nu=n(3787),ru=n.n(nu),iu=n(7123),su=n.n(iu),ou=n(3852),au=n.n(ou),cu=n(2566),lu=n.n(cu),fu=(n(3147),n(4556)),uu=n.n(fu),du=n(8642),hu=n.n(du),pu=n(6561),mu=n.n(pu),gu=n(5852),vu=n.n(gu),bu=n(6304),yu=n.n(bu),_u=n(8060),Au=n.n(_u),wu=n(1660),Cu=n.n(wu),Eu=n(2078),Su=n.n(Eu),Tu=n(5702),Ou=n.n(Tu),xu=n(2154),Mu=n.n(xu),Nu=n(6011),Iu=n.n(Nu),Ru=n(2371),ku=n.n(Ru),Pu=n(3582),Du=n.n(Pu),Fu=n(2106),Bu=n.n(Fu),Lu=n(9028),ju=n.n(Lu),Uu=n(1724),qu=n.n(Uu),zu=n(8818),Gu=n.n(zu),Hu=n(898),Vu=n.n(Hu),Wu=n(7439),$u=n.n(Wu),Qu=n(7736),Yu=n.n(Qu),Xu=n(4684),Ku=n.n(Xu),Zu=n(5227),Ju=n.n(Zu),ed=(n(513),n(7474)),td=n.n(ed),nd=n(6375),rd=n.n(nd),id=n(6842),sd=n.n(id),od=n(7308),ad=n.n(od);function cd(e,t,n,r,i,s,o,a){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),s&&(l._scopeId="data-v-"+s),o?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},l._ssrRegister=c):i&&(c=a?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(l.functional){l._injectStyles=c;var f=l.render;l.render=function(e,t){return c.call(t),f(e,t)}}else{var u=l.beforeCreate;l.beforeCreate=u?[].concat(u,c):[c]}return{exports:e,options:l}}const ld=cd({name:"ToolbarButton",props:{title:{type:String,default:""},disabled:Boolean}},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("button",{class:[e.$style.button],attrs:{id:"wplc-chat-button",title:e.title,disabled:e.disabled},on:{mousedown:function(e){e.preventDefault()},click:function(t){return t.preventDefault(),t.stopPropagation(),e.$emit("click")}}},[e._t("default")],2)}),[],!1,(function(e){var t=n(1368);t.__inject__&&t.__inject__(e),this.$style=t.locals||t}),null,null,!0).exports;const fd=cd(ts.directive("srcObject",{bind:(e,t,n)=>{e.srcObject=t.value},update:(e,t,n)=>{const r=e;r.srcObject!==t.value&&(r.srcObject=t.value)}}),undefined,undefined,!1,null,null,null,!0).exports;var ud=function(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o};let dd=class extends(fs(Zf)){constructor(){super(),this.isWebRtcAllowed=Vl,this.operatorIconImageExists=!1,this.imageNotFound="",this.hasSession=!1,this.callChannelInitiated=!1,this.currentOperator=new Bf({image:void 0!==this.operator.image&&""!==this.operator.image?this.operator.image:this.config.operatorIcon,name:this.operator.name,emailTag:this.operator.emailTag})}beforeMount(){this.singleButtonPhone||(this.$subscribeTo(this.myChatService.mySession$,(e=>{this.hasSession=e.sessionState===Ra.Connected})),this.$subscribeTo(this.eventBus.onCallChannelEnable,(e=>{this.callChannelInitiated||this.myWebRTCService.initCallChannel(e.allowCall,e.allowVideo)})),this.config.showOperatorActualName&&this.$subscribeTo(this.myChatService.onOperatorChange$,(e=>{void 0!==e.image&&""!==e.image||(e.image=this.config.operatorIcon),this.currentOperator=e}))),this.myWebRTCService.initCallChannel(this.allowCall,this.allowVideo),this.imageNotFound=Jf,document.addEventListener("fullscreenchange",(()=>{this.toggleFullScreen()})),document.addEventListener("webkitfullscreenchange",(()=>{this.toggleFullScreen()})),document.addEventListener("mozfullscreenchange",(()=>{this.toggleFullScreen()})),document.addEventListener("MSFullscreenChange",(()=>{this.toggleFullScreen()}))}get showCallControls(){return(this.allowCall||this.allowVideo)&&this.hasSession}get isVideoActive(){return this.myWebRTCService&&this.myWebRTCService.isVideoActive}videoOutputClick(){this.myWebRTCService.goFullScreen()}toggleFullScreen(){this.myWebRTCService.isFullscreen=!this.myWebRTCService.isFullscreen}toggleMute(){this.myWebRTCService.mute()}onMakeVideoCall(){this.makeCall(!0)}onMakeCall(){this.makeCall(!1)}makeCall(e){this.myWebRTCService.call(e||!1).pipe(If(1)).subscribe((()=>{}),(e=>this.eventBus.onError.next(e)))}dropCall(){this.myWebRTCService.dropCall().pipe(If(1)).subscribe((()=>{}),(e=>this.eventBus.onError.next(e)))}updateNotFoundImage(e){null!==e&&null!==e.target&&(e.target.src=this.imageNotFound)}};ud([Ts()],dd.prototype,"singleButtonPhone",void 0),ud([Ts()],dd.prototype,"allowVideo",void 0),ud([Ts()],dd.prototype,"allowCall",void 0),ud([Ts()],dd.prototype,"callTitle",void 0),ud([Ts({default:()=>Lf})],dd.prototype,"operator",void 0),ud([ys()],dd.prototype,"myChatService",void 0),ud([ys()],dd.prototype,"myWebRTCService",void 0),ud([Ts({default:!1})],dd.prototype,"isFullScreen",void 0),ud([Ts({default:!1})],dd.prototype,"disabled",void 0),ud([ys()],dd.prototype,"eventBus",void 0),ud([Ts({default:()=>({})})],dd.prototype,"config",void 0),dd=ud([vs({directives:{SrcObject:fd},components:{GlyphiconCall:ru(),GlyphiconVideo:su(),GlyphiconHourglass:lu(),GlyphiconMic:mu(),GlyphiconMicoff:vu(),GlyphiconThumbnails:uu(),GlyphiconFullscreen:hu(),ToolbarButton:ld,OperatorIcon:ad()}})],dd);const hd=cd(dd,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.$style.root},[e.myWebRTCService.audioNotificationUrl?n("audio",{attrs:{src:e.myWebRTCService.audioNotificationUrl,autoplay:"",loop:""}}):e._e(),e._v(" "),e.myWebRTCService.remoteStream?n("audio",{directives:[{name:"srcObject",rawName:"v-srcObject",value:e.myWebRTCService.remoteStream,expression:"myWebRTCService.remoteStream"}],attrs:{autoplay:""}}):e._e(),e._v(" "),e.singleButtonPhone?n("div",{class:[e.$style["single-button-mode"]]},[e.myWebRTCService.hasCall?e._e():n("toolbar-button",{class:[e.$style["single-button"],e.$style.bubble],attrs:{disabled:!e.isWebRtcAllowed||e.disabled,title:e.callTitle},on:{click:e.onMakeCall}},[n("glyphicon-call")],1),e._v(" "),e.myWebRTCService.hasCall?n("toolbar-button",{class:[e.$style["single-button"],e.$style.bubble,e.$style["button-end-call"]],on:{click:e.dropCall}},[n("glyphicon-call")],1):e._e()],1):n("div",{class:[e.$style["phone-controls-mode"]]},[e.config?n("div",{class:e.$style["operator-info"]},[n("div",{class:e.$style["operator-img-container"]},[""!=e.currentOperator.image?n("img",{ref:"operatorIcon",class:[e.$style["rounded-circle"],e.$style["operator-img"]],attrs:{src:e.currentOperator.image,alt:"avatar"},on:{error:function(t){return e.updateNotFoundImage(t)}}}):n("operatorIcon",{class:e.$style["operator-img"]}),e._v(" "),n("span",{class:e.$style["online-icon"]})],1),e._v(" "),n("div",{class:[e.$style.operator_name,e.config.isPopout?e.$style.popout:""],attrs:{title:e.currentOperator.name}},[n("span",[e._v(e._s(e.currentOperator.name)),n("span")])])]):e._e(),e._v(" "),e.showCallControls?n("div",{class:[e.$style["call-controls"],e.isFullScreen?e.$style["full-screen-controls"]:""]},[e.myWebRTCService.hasCall?[n("toolbar-button",{class:[e.$style["toolbar-button"],e.$style["button-end-call"]],attrs:{id:"callUsDropCallBtn",disabled:e.myWebRTCService.hasTryingCall},on:{click:e.dropCall}},[n("glyphicon-call")],1),e._v(" "),e.myWebRTCService.media.isMuted?n("toolbar-button",{class:e.$style["toolbar-button"],attrs:{id:"callUsUnmuteBtn",disabled:e.myWebRTCService.hasTryingCall},on:{click:e.toggleMute}},[n("glyphicon-micoff")],1):n("toolbar-button",{class:e.$style["toolbar-button"],attrs:{id:"callUsMuteBtn",disabled:e.myWebRTCService.hasTryingCall},on:{click:e.toggleMute}},[n("glyphicon-mic")],1),e._v(" "),e.isVideoActive?n("toolbar-button",{class:e.$style["toolbar-button"],attrs:{id:"callUsFullscreenBtn"},on:{click:function(t){return e.videoOutputClick()}}},[n("glyphicon-fullscreen")],1):e._e()]:[e.allowCall?n("toolbar-button",{class:e.$style["toolbar-button"],attrs:{id:"callUsCallBtn",disabled:!e.isWebRtcAllowed},on:{click:e.onMakeCall}},[n("glyphicon-call")],1):e._e(),e._v(" "),e.allowVideo?n("toolbar-button",{class:e.$style["toolbar-button"],attrs:{id:"callUsVideoBtn",disabled:!e.isWebRtcAllowed},on:{click:e.onMakeVideoCall}},[n("glyphicon-video")],1):e._e()]],2):e._e(),e._v(" "),n("div",{class:e.$style["space-expander"]})])])}),[],!1,(function(e){var t=n(1726);t.__inject__&&t.__inject__(e),this.$style=t.locals||t}),null,null,!0).exports;class pd ext
|
1 |
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.callus=t():e.callus=t()}(self,(function(){return(()=>{var __webpack_modules__={4537:e=>{"use strict";e.exports=function(e,t){var n=new Array(arguments.length-1),r=0,i=2,s=!0;for(;i<arguments.length;)n[r++]=arguments[i++];return new Promise((function(i,o){n[r]=function(e){if(s)if(s=!1,e)o(e);else{for(var t=new Array(arguments.length-1),n=0;n<t.length;)t[n++]=arguments[n];i.apply(null,t)}};try{e.apply(t||null,n)}catch(e){s&&(s=!1,o(e))}}))}},7419:(e,t)=>{"use strict";var n=t;n.length=function(e){var t=e.length;if(!t)return 0;for(var n=0;--t%4>1&&"="===e.charAt(t);)++n;return Math.ceil(3*e.length)/4-n};for(var r=new Array(64),i=new Array(123),s=0;s<64;)i[r[s]=s<26?s+65:s<52?s+71:s<62?s-4:s-59|43]=s++;n.encode=function(e,t,n){for(var i,s=null,o=[],a=0,c=0;t<n;){var l=e[t++];switch(c){case 0:o[a++]=r[l>>2],i=(3&l)<<4,c=1;break;case 1:o[a++]=r[i|l>>4],i=(15&l)<<2,c=2;break;case 2:o[a++]=r[i|l>>6],o[a++]=r[63&l],c=0}a>8191&&((s||(s=[])).push(String.fromCharCode.apply(String,o)),a=0)}return c&&(o[a++]=r[i],o[a++]=61,1===c&&(o[a++]=61)),s?(a&&s.push(String.fromCharCode.apply(String,o.slice(0,a))),s.join("")):String.fromCharCode.apply(String,o.slice(0,a))};var o="invalid encoding";n.decode=function(e,t,n){for(var r,s=n,a=0,c=0;c<e.length;){var l=e.charCodeAt(c++);if(61===l&&a>1)break;if(void 0===(l=i[l]))throw Error(o);switch(a){case 0:r=l,a=1;break;case 1:t[n++]=r<<2|(48&l)>>4,r=l,a=2;break;case 2:t[n++]=(15&r)<<4|(60&l)>>2,r=l,a=3;break;case 3:t[n++]=(3&r)<<6|l,a=0}}if(1===a)throw Error(o);return n-s},n.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},9211:e=>{"use strict";function t(){this._listeners={}}e.exports=t,t.prototype.on=function(e,t,n){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:n||this}),this},t.prototype.off=function(e,t){if(void 0===e)this._listeners={};else if(void 0===t)this._listeners[e]=[];else for(var n=this._listeners[e],r=0;r<n.length;)n[r].fn===t?n.splice(r,1):++r;return this},t.prototype.emit=function(e){var t=this._listeners[e];if(t){for(var n=[],r=1;r<arguments.length;)n.push(arguments[r++]);for(r=0;r<t.length;)t[r].fn.apply(t[r++].ctx,n)}return this}},945:e=>{"use strict";function t(e){return"undefined"!=typeof Float32Array?function(){var t=new Float32Array([-0]),n=new Uint8Array(t.buffer),r=128===n[3];function i(e,r,i){t[0]=e,r[i]=n[0],r[i+1]=n[1],r[i+2]=n[2],r[i+3]=n[3]}function s(e,r,i){t[0]=e,r[i]=n[3],r[i+1]=n[2],r[i+2]=n[1],r[i+3]=n[0]}function o(e,r){return n[0]=e[r],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],t[0]}function a(e,r){return n[3]=e[r],n[2]=e[r+1],n[1]=e[r+2],n[0]=e[r+3],t[0]}e.writeFloatLE=r?i:s,e.writeFloatBE=r?s:i,e.readFloatLE=r?o:a,e.readFloatBE=r?a:o}():function(){function t(e,t,n,r){var i=t<0?1:0;if(i&&(t=-t),0===t)e(1/t>0?0:2147483648,n,r);else if(isNaN(t))e(2143289344,n,r);else if(t>34028234663852886e22)e((i<<31|2139095040)>>>0,n,r);else if(t<11754943508222875e-54)e((i<<31|Math.round(t/1401298464324817e-60))>>>0,n,r);else{var s=Math.floor(Math.log(t)/Math.LN2);e((i<<31|s+127<<23|8388607&Math.round(t*Math.pow(2,-s)*8388608))>>>0,n,r)}}function o(e,t,n){var r=e(t,n),i=2*(r>>31)+1,s=r>>>23&255,o=8388607&r;return 255===s?o?NaN:i*(1/0):0===s?1401298464324817e-60*i*o:i*Math.pow(2,s-150)*(o+8388608)}e.writeFloatLE=t.bind(null,n),e.writeFloatBE=t.bind(null,r),e.readFloatLE=o.bind(null,i),e.readFloatBE=o.bind(null,s)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),n=new Uint8Array(t.buffer),r=128===n[7];function i(e,r,i){t[0]=e,r[i]=n[0],r[i+1]=n[1],r[i+2]=n[2],r[i+3]=n[3],r[i+4]=n[4],r[i+5]=n[5],r[i+6]=n[6],r[i+7]=n[7]}function s(e,r,i){t[0]=e,r[i]=n[7],r[i+1]=n[6],r[i+2]=n[5],r[i+3]=n[4],r[i+4]=n[3],r[i+5]=n[2],r[i+6]=n[1],r[i+7]=n[0]}function o(e,r){return n[0]=e[r],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],n[4]=e[r+4],n[5]=e[r+5],n[6]=e[r+6],n[7]=e[r+7],t[0]}function a(e,r){return n[7]=e[r],n[6]=e[r+1],n[5]=e[r+2],n[4]=e[r+3],n[3]=e[r+4],n[2]=e[r+5],n[1]=e[r+6],n[0]=e[r+7],t[0]}e.writeDoubleLE=r?i:s,e.writeDoubleBE=r?s:i,e.readDoubleLE=r?o:a,e.readDoubleBE=r?a:o}():function(){function t(e,t,n,r,i,s){var o=r<0?1:0;if(o&&(r=-r),0===r)e(0,i,s+t),e(1/r>0?0:2147483648,i,s+n);else if(isNaN(r))e(0,i,s+t),e(2146959360,i,s+n);else if(r>17976931348623157e292)e(0,i,s+t),e((o<<31|2146435072)>>>0,i,s+n);else{var a;if(r<22250738585072014e-324)e((a=r/5e-324)>>>0,i,s+t),e((o<<31|a/4294967296)>>>0,i,s+n);else{var c=Math.floor(Math.log(r)/Math.LN2);1024===c&&(c=1023),e(4503599627370496*(a=r*Math.pow(2,-c))>>>0,i,s+t),e((o<<31|c+1023<<20|1048576*a&1048575)>>>0,i,s+n)}}}function o(e,t,n,r,i){var s=e(r,i+t),o=e(r,i+n),a=2*(o>>31)+1,c=o>>>20&2047,l=4294967296*(1048575&o)+s;return 2047===c?l?NaN:a*(1/0):0===c?5e-324*a*l:a*Math.pow(2,c-1075)*(l+4503599627370496)}e.writeDoubleLE=t.bind(null,n,0,4),e.writeDoubleBE=t.bind(null,r,4,0),e.readDoubleLE=o.bind(null,i,0,4),e.readDoubleBE=o.bind(null,s,4,0)}(),e}function n(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}function r(e,t,n){t[n]=e>>>24,t[n+1]=e>>>16&255,t[n+2]=e>>>8&255,t[n+3]=255&e}function i(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function s(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},7199:module=>{"use strict";function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}module.exports=inquire},6662:e=>{"use strict";e.exports=function(e,t,n){var r=n||8192,i=r>>>1,s=null,o=r;return function(n){if(n<1||n>i)return e(n);o+n>r&&(s=e(r),o=0);var a=t.call(s,o,o+=n);return 7&o&&(o=1+(7|o)),a}}},4997:(e,t)=>{"use strict";var n=t;n.length=function(e){for(var t=0,n=0,r=0;r<e.length;++r)(n=e.charCodeAt(r))<128?t+=1:n<2048?t+=2:55296==(64512&n)&&56320==(64512&e.charCodeAt(r+1))?(++r,t+=4):t+=3;return t},n.read=function(e,t,n){if(n-t<1)return"";for(var r,i=null,s=[],o=0;t<n;)(r=e[t++])<128?s[o++]=r:r>191&&r<224?s[o++]=(31&r)<<6|63&e[t++]:r>239&&r<365?(r=((7&r)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,s[o++]=55296+(r>>10),s[o++]=56320+(1023&r)):s[o++]=(15&r)<<12|(63&e[t++])<<6|63&e[t++],o>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,s)),o=0);return i?(o&&i.push(String.fromCharCode.apply(String,s.slice(0,o))),i.join("")):String.fromCharCode.apply(String,s.slice(0,o))},n.write=function(e,t,n){for(var r,i,s=n,o=0;o<e.length;++o)(r=e.charCodeAt(o))<128?t[n++]=r:r<2048?(t[n++]=r>>6|192,t[n++]=63&r|128):55296==(64512&r)&&56320==(64512&(i=e.charCodeAt(o+1)))?(r=65536+((1023&r)<<10)+(1023&i),++o,t[n++]=r>>18|240,t[n++]=r>>12&63|128,t[n++]=r>>6&63|128,t[n++]=63&r|128):(t[n++]=r>>12|224,t[n++]=r>>6&63|128,t[n++]=63&r|128);return n-s}},7363:()=>{(function(){"use strict";var e=window.Document.prototype.createElement,t=window.Document.prototype.createElementNS,n=window.Document.prototype.importNode,r=window.Document.prototype.prepend,i=window.Document.prototype.append,s=window.DocumentFragment.prototype.prepend,o=window.DocumentFragment.prototype.append,a=window.Node.prototype.cloneNode,c=window.Node.prototype.appendChild,l=window.Node.prototype.insertBefore,f=window.Node.prototype.removeChild,u=window.Node.prototype.replaceChild,d=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),h=window.Element.prototype.attachShadow,p=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),m=window.Element.prototype.getAttribute,g=window.Element.prototype.setAttribute,v=window.Element.prototype.removeAttribute,b=window.Element.prototype.getAttributeNS,y=window.Element.prototype.setAttributeNS,_=window.Element.prototype.removeAttributeNS,A=window.Element.prototype.insertAdjacentElement,w=window.Element.prototype.insertAdjacentHTML,C=window.Element.prototype.prepend,E=window.Element.prototype.append,S=window.Element.prototype.before,T=window.Element.prototype.after,O=window.Element.prototype.replaceWith,x=window.Element.prototype.remove,M=window.HTMLElement,N=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),I=window.HTMLElement.prototype.insertAdjacentElement,R=window.HTMLElement.prototype.insertAdjacentHTML,k=new Set;function P(e){var t=k.has(e);return e=/^[a-z][.0-9_a-z]*-[-.0-9_a-z]*$/.test(e),!t&&e}"annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ").forEach((function(e){return k.add(e)}));var D=document.contains?document.contains.bind(document):document.documentElement.contains.bind(document.documentElement);function F(e){var t=e.isConnected;if(void 0!==t)return t;if(D(e))return!0;for(;e&&!(e.__CE_isImportDocument||e instanceof Document);)e=e.parentNode||(window.ShadowRoot&&e instanceof ShadowRoot?e.host:void 0);return!(!e||!(e.__CE_isImportDocument||e instanceof Document))}function B(e){var t=e.children;if(t)return Array.prototype.slice.call(t);for(t=[],e=e.firstChild;e;e=e.nextSibling)e.nodeType===Node.ELEMENT_NODE&&t.push(e);return t}function L(e,t){for(;t&&t!==e&&!t.nextSibling;)t=t.parentNode;return t&&t!==e?t.nextSibling:null}function j(e,t,n){for(var r=e;r;){if(r.nodeType===Node.ELEMENT_NODE){var i=r;t(i);var s=i.localName;if("link"===s&&"import"===i.getAttribute("rel")){if(r=i.import,void 0===n&&(n=new Set),r instanceof Node&&!n.has(r))for(n.add(r),r=r.firstChild;r;r=r.nextSibling)j(r,t,n);r=L(e,i);continue}if("template"===s){r=L(e,i);continue}if(i=i.__CE_shadowRoot)for(i=i.firstChild;i;i=i.nextSibling)j(i,t,n)}r=r.firstChild?r.firstChild:L(e,r)}}function U(){var e=!(null==ae||!ae.noDocumentConstructionObserver),t=!(null==ae||!ae.shadyDomFastWalk);this.h=[],this.a=[],this.f=!1,this.shadyDomFastWalk=t,this.C=!e}function q(e,t,n,r){var i=window.ShadyDom;if(e.shadyDomFastWalk&&i&&i.inUse){if(t.nodeType===Node.ELEMENT_NODE&&n(t),t.querySelectorAll)for(e=i.nativeMethods.querySelectorAll.call(t,"*"),t=0;t<e.length;t++)n(e[t])}else j(t,n,r)}function z(e,t){e.f&&q(e,t,(function(t){return G(e,t)}))}function G(e,t){if(e.f&&!t.__CE_patched){t.__CE_patched=!0;for(var n=0;n<e.h.length;n++)e.h[n](t);for(n=0;n<e.a.length;n++)e.a[n](t)}}function H(e,t){var n=[];for(q(e,t,(function(e){return n.push(e)})),t=0;t<n.length;t++){var r=n[t];1===r.__CE_state?e.connectedCallback(r):W(e,r)}}function V(e,t){var n=[];for(q(e,t,(function(e){return n.push(e)})),t=0;t<n.length;t++){var r=n[t];1===r.__CE_state&&e.disconnectedCallback(r)}}function $(e,t,n){var r=(n=void 0===n?{}:n).D,i=n.upgrade||function(t){return W(e,t)},s=[];for(q(e,t,(function(t){if(e.f&&G(e,t),"link"===t.localName&&"import"===t.getAttribute("rel")){var n=t.import;n instanceof Node&&(n.__CE_isImportDocument=!0,n.__CE_registry=document.__CE_registry),n&&"complete"===n.readyState?n.__CE_documentLoadHandled=!0:t.addEventListener("load",(function(){var n=t.import;if(!n.__CE_documentLoadHandled){n.__CE_documentLoadHandled=!0;var s=new Set;r&&(r.forEach((function(e){return s.add(e)})),s.delete(n)),$(e,n,{D:s,upgrade:i})}}))}else s.push(t)}),r),t=0;t<s.length;t++)i(s[t])}function W(e,t){try{var n=t.ownerDocument,r=n.__CE_registry,i=r&&(n.defaultView||n.__CE_isImportDocument)?re(r,t.localName):void 0;if(i&&void 0===t.__CE_state){i.constructionStack.push(t);try{try{if(new i.constructorFunction!==t)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{i.constructionStack.pop()}}catch(e){throw t.__CE_state=2,e}if(t.__CE_state=1,t.__CE_definition=i,i.attributeChangedCallback&&t.hasAttributes()){var s=i.observedAttributes;for(i=0;i<s.length;i++){var o=s[i],a=t.getAttribute(o);null!==a&&e.attributeChangedCallback(t,o,null,a,null)}}F(t)&&e.connectedCallback(t)}}catch(e){Y(e)}}function Q(n,r,i,s){var o=r.__CE_registry;if(o&&(null===s||"http://www.w3.org/1999/xhtml"===s)&&(o=re(o,i)))try{var a=new o.constructorFunction;if(void 0===a.__CE_state||void 0===a.__CE_definition)throw Error("Failed to construct '"+i+"': The returned value was not constructed with the HTMLElement constructor.");if("http://www.w3.org/1999/xhtml"!==a.namespaceURI)throw Error("Failed to construct '"+i+"': The constructed element's namespace must be the HTML namespace.");if(a.hasAttributes())throw Error("Failed to construct '"+i+"': The constructed element must not have any attributes.");if(null!==a.firstChild)throw Error("Failed to construct '"+i+"': The constructed element must not have any children.");if(null!==a.parentNode)throw Error("Failed to construct '"+i+"': The constructed element must not have a parent node.");if(a.ownerDocument!==r)throw Error("Failed to construct '"+i+"': The constructed element's owner document is incorrect.");if(a.localName!==i)throw Error("Failed to construct '"+i+"': The constructed element's local name is incorrect.");return a}catch(o){return Y(o),r=null===s?e.call(r,i):t.call(r,s,i),Object.setPrototypeOf(r,HTMLUnknownElement.prototype),r.__CE_state=2,r.__CE_definition=void 0,G(n,r),r}return G(n,r=null===s?e.call(r,i):t.call(r,s,i)),r}function Y(e){var t=e.message,n=e.sourceURL||e.fileName||"",r=e.line||e.lineNumber||0,i=e.column||e.columnNumber||0,s=void 0;void 0===ErrorEvent.prototype.initErrorEvent?s=new ErrorEvent("error",{cancelable:!0,message:t,filename:n,lineno:r,colno:i,error:e}):((s=document.createEvent("ErrorEvent")).initErrorEvent("error",!1,!0,t,n,r),s.preventDefault=function(){Object.defineProperty(this,"defaultPrevented",{configurable:!0,get:function(){return!0}})}),void 0===s.error&&Object.defineProperty(s,"error",{configurable:!0,enumerable:!0,get:function(){return e}}),window.dispatchEvent(s),s.defaultPrevented||console.error(e)}function X(){var e=this;this.a=void 0,this.w=new Promise((function(t){e.g=t}))}function K(e){var t=document;this.g=void 0,this.b=e,this.a=t,$(this.b,this.a),"loading"===this.a.readyState&&(this.g=new MutationObserver(this.A.bind(this)),this.g.observe(this.a,{childList:!0,subtree:!0}))}function Z(e){e.g&&e.g.disconnect()}function J(e){this.j=new Map,this.l=new Map,this.u=new Map,this.o=!1,this.s=new Map,this.i=function(e){return e()},this.c=!1,this.m=[],this.b=e,this.v=e.C?new K(e):void 0}function ee(e,t){if(!P(t))throw new SyntaxError("The element name '"+t+"' is not valid.");if(re(e,t))throw Error("A custom element with name '"+t+"' has already been defined.");if(e.o)throw Error("A custom element is already being defined.")}function te(e,t,n){var r;e.o=!0;try{var i=n.prototype;if(!(i instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var s=function(e){var t=i[e];if(void 0!==t&&!(t instanceof Function))throw Error("The '"+e+"' callback must be a function.");return t},o=s("connectedCallback"),a=s("disconnectedCallback"),c=s("adoptedCallback"),l=(r=s("attributeChangedCallback"))&&n.observedAttributes||[]}catch(e){throw e}finally{e.o=!1}return n={localName:t,constructorFunction:n,connectedCallback:o,disconnectedCallback:a,adoptedCallback:c,attributeChangedCallback:r,observedAttributes:l,constructionStack:[]},e.l.set(t,n),e.u.set(n.constructorFunction,n),n}function ne(e){if(!1!==e.c){e.c=!1;for(var t=[],n=e.m,r=new Map,i=0;i<n.length;i++)r.set(n[i],[]);for($(e.b,document,{upgrade:function(n){if(void 0===n.__CE_state){var i=n.localName,s=r.get(i);s?s.push(n):e.l.has(i)&&t.push(n)}}}),i=0;i<t.length;i++)W(e.b,t[i]);for(i=0;i<n.length;i++){for(var s=n[i],o=r.get(s),a=0;a<o.length;a++)W(e.b,o[a]);(s=e.s.get(s))&&s.resolve(void 0)}n.length=0}}function re(e,t){var n=e.l.get(t);if(n)return n;if(n=e.j.get(t)){e.j.delete(t);try{return te(e,t,n())}catch(e){Y(e)}}}function ie(e,t,n){function r(t){return function(n){for(var r=[],i=0;i<arguments.length;++i)r[i]=arguments[i];i=[];for(var s=[],o=0;o<r.length;o++){var a=r[o];if(a instanceof Element&&F(a)&&s.push(a),a instanceof DocumentFragment)for(a=a.firstChild;a;a=a.nextSibling)i.push(a);else i.push(a)}for(t.apply(this,r),r=0;r<s.length;r++)V(e,s[r]);if(F(this))for(r=0;r<i.length;r++)(s=i[r])instanceof Element&&H(e,s)}}void 0!==n.prepend&&(t.prepend=r(n.prepend)),void 0!==n.append&&(t.append=r(n.append))}function se(e){function n(t,n){Object.defineProperty(t,"innerHTML",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(t){var r=this,i=void 0;if(F(this)&&(i=[],q(e,this,(function(e){e!==r&&i.push(e)}))),n.set.call(this,t),i)for(var s=0;s<i.length;s++){var o=i[s];1===o.__CE_state&&e.disconnectedCallback(o)}return this.ownerDocument.__CE_registry?$(e,this):z(e,this),t}})}function r(t,n){t.insertAdjacentElement=function(t,r){var i=F(r);return t=n.call(this,t,r),i&&V(e,r),F(t)&&H(e,r),t}}function i(t,n){function r(t,n){for(var r=[];t!==n;t=t.nextSibling)r.push(t);for(n=0;n<r.length;n++)$(e,r[n])}t.insertAdjacentHTML=function(e,t){if("beforebegin"===(e=e.toLowerCase())){var i=this.previousSibling;n.call(this,e,t),r(i||this.parentNode.firstChild,this)}else if("afterbegin"===e)i=this.firstChild,n.call(this,e,t),r(this.firstChild,i);else if("beforeend"===e)i=this.lastChild,n.call(this,e,t),r(i||this.firstChild,null);else{if("afterend"!==e)throw new SyntaxError("The value provided ("+String(e)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");i=this.nextSibling,n.call(this,e,t),r(this.nextSibling,i)}}}h&&(Element.prototype.attachShadow=function(t){if(t=h.call(this,t),e.f&&!t.__CE_patched){t.__CE_patched=!0;for(var n=0;n<e.h.length;n++)e.h[n](t)}return this.__CE_shadowRoot=t}),p&&p.get?n(Element.prototype,p):N&&N.get?n(HTMLElement.prototype,N):function(e,t){e.f=!0,e.a.push(t)}(e,(function(e){n(e,{enumerable:!0,configurable:!0,get:function(){return a.call(this,!0).innerHTML},set:function(e){var n="template"===this.localName,r=n?this.content:this,i=t.call(document,this.namespaceURI,this.localName);for(i.innerHTML=e;0<r.childNodes.length;)f.call(r,r.childNodes[0]);for(e=n?i.content:i;0<e.childNodes.length;)c.call(r,e.childNodes[0])}})})),Element.prototype.setAttribute=function(t,n){if(1!==this.__CE_state)return g.call(this,t,n);var r=m.call(this,t);g.call(this,t,n),n=m.call(this,t),e.attributeChangedCallback(this,t,r,n,null)},Element.prototype.setAttributeNS=function(t,n,r){if(1!==this.__CE_state)return y.call(this,t,n,r);var i=b.call(this,t,n);y.call(this,t,n,r),r=b.call(this,t,n),e.attributeChangedCallback(this,n,i,r,t)},Element.prototype.removeAttribute=function(t){if(1!==this.__CE_state)return v.call(this,t);var n=m.call(this,t);v.call(this,t),null!==n&&e.attributeChangedCallback(this,t,n,null,null)},Element.prototype.removeAttributeNS=function(t,n){if(1!==this.__CE_state)return _.call(this,t,n);var r=b.call(this,t,n);_.call(this,t,n);var i=b.call(this,t,n);r!==i&&e.attributeChangedCallback(this,n,r,i,t)},I?r(HTMLElement.prototype,I):A&&r(Element.prototype,A),R?i(HTMLElement.prototype,R):w&&i(Element.prototype,w),ie(e,Element.prototype,{prepend:C,append:E}),function(e){function t(t){return function(n){for(var r=[],i=0;i<arguments.length;++i)r[i]=arguments[i];i=[];for(var s=[],o=0;o<r.length;o++){var a=r[o];if(a instanceof Element&&F(a)&&s.push(a),a instanceof DocumentFragment)for(a=a.firstChild;a;a=a.nextSibling)i.push(a);else i.push(a)}for(t.apply(this,r),r=0;r<s.length;r++)V(e,s[r]);if(F(this))for(r=0;r<i.length;r++)(s=i[r])instanceof Element&&H(e,s)}}var n=Element.prototype;void 0!==S&&(n.before=t(S)),void 0!==T&&(n.after=t(T)),void 0!==O&&(n.replaceWith=function(t){for(var n=[],r=0;r<arguments.length;++r)n[r]=arguments[r];r=[];for(var i=[],s=0;s<n.length;s++){var o=n[s];if(o instanceof Element&&F(o)&&i.push(o),o instanceof DocumentFragment)for(o=o.firstChild;o;o=o.nextSibling)r.push(o);else r.push(o)}for(s=F(this),O.apply(this,n),n=0;n<i.length;n++)V(e,i[n]);if(s)for(V(e,this),n=0;n<r.length;n++)(i=r[n])instanceof Element&&H(e,i)}),void 0!==x&&(n.remove=function(){var t=F(this);x.call(this),t&&V(e,this)})}(e)}U.prototype.connectedCallback=function(e){var t=e.__CE_definition;if(t.connectedCallback)try{t.connectedCallback.call(e)}catch(e){Y(e)}},U.prototype.disconnectedCallback=function(e){var t=e.__CE_definition;if(t.disconnectedCallback)try{t.disconnectedCallback.call(e)}catch(e){Y(e)}},U.prototype.attributeChangedCallback=function(e,t,n,r,i){var s=e.__CE_definition;if(s.attributeChangedCallback&&-1<s.observedAttributes.indexOf(t))try{s.attributeChangedCallback.call(e,t,n,r,i)}catch(e){Y(e)}},X.prototype.resolve=function(e){if(this.a)throw Error("Already resolved.");this.a=e,this.g(e)},K.prototype.A=function(e){var t=this.a.readyState;for("interactive"!==t&&"complete"!==t||Z(this),t=0;t<e.length;t++)for(var n=e[t].addedNodes,r=0;r<n.length;r++)$(this.b,n[r])},J.prototype.B=function(e,t){var n=this;if(!(t instanceof Function))throw new TypeError("Custom element constructor getters must be functions.");ee(this,e),this.j.set(e,t),this.m.push(e),this.c||(this.c=!0,this.i((function(){return ne(n)})))},J.prototype.define=function(e,t){var n=this;if(!(t instanceof Function))throw new TypeError("Custom element constructors must be functions.");ee(this,e),te(this,e,t),this.m.push(e),this.c||(this.c=!0,this.i((function(){return ne(n)})))},J.prototype.upgrade=function(e){$(this.b,e)},J.prototype.get=function(e){if(e=re(this,e))return e.constructorFunction},J.prototype.whenDefined=function(e){if(!P(e))return Promise.reject(new SyntaxError("'"+e+"' is not a valid custom element name."));var t=this.s.get(e);if(t)return t.w;t=new X,this.s.set(e,t);var n=this.l.has(e)||this.j.has(e);return e=-1===this.m.indexOf(e),n&&e&&t.resolve(void 0),t.w},J.prototype.polyfillWrapFlushCallback=function(e){this.v&&Z(this.v);var t=this.i;this.i=function(n){return e((function(){return t(n)}))}},window.CustomElementRegistry=J,J.prototype.define=J.prototype.define,J.prototype.upgrade=J.prototype.upgrade,J.prototype.get=J.prototype.get,J.prototype.whenDefined=J.prototype.whenDefined,J.prototype.polyfillDefineLazy=J.prototype.B,J.prototype.polyfillWrapFlushCallback=J.prototype.polyfillWrapFlushCallback;var oe={};var ae=window.customElements;function ce(){var t=new U;!function(t){function n(){var n=this.constructor,r=document.__CE_registry.u.get(n);if(!r)throw Error("Failed to construct a custom element: The constructor was not registered with `customElements`.");var i=r.constructionStack;if(0===i.length)return i=e.call(document,r.localName),Object.setPrototypeOf(i,n.prototype),i.__CE_state=1,i.__CE_definition=r,G(t,i),i;var s=i.length-1,o=i[s];if(o===oe)throw Error("Failed to construct '"+r.localName+"': This element was already constructed.");return i[s]=oe,Object.setPrototypeOf(o,n.prototype),G(t,o),o}n.prototype=M.prototype,Object.defineProperty(HTMLElement.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:n}),window.HTMLElement=n}(t),function(e){Document.prototype.createElement=function(t){return Q(e,this,t,null)},Document.prototype.importNode=function(t,r){return t=n.call(this,t,!!r),this.__CE_registry?$(e,t):z(e,t),t},Document.prototype.createElementNS=function(t,n){return Q(e,this,n,t)},ie(e,Document.prototype,{prepend:r,append:i})}(t),ie(t,DocumentFragment.prototype,{prepend:s,append:o}),function(e){function t(t,n){Object.defineProperty(t,"textContent",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(t){if(this.nodeType===Node.TEXT_NODE)n.set.call(this,t);else{var r=void 0;if(this.firstChild){var i=this.childNodes,s=i.length;if(0<s&&F(this)){r=Array(s);for(var o=0;o<s;o++)r[o]=i[o]}}if(n.set.call(this,t),r)for(t=0;t<r.length;t++)V(e,r[t])}}})}Node.prototype.insertBefore=function(t,n){if(t instanceof DocumentFragment){var r=B(t);if(t=l.call(this,t,n),F(this))for(n=0;n<r.length;n++)H(e,r[n]);return t}return r=t instanceof Element&&F(t),n=l.call(this,t,n),r&&V(e,t),F(this)&&H(e,t),n},Node.prototype.appendChild=function(t){if(t instanceof DocumentFragment){var n=B(t);if(t=c.call(this,t),F(this))for(var r=0;r<n.length;r++)H(e,n[r]);return t}return n=t instanceof Element&&F(t),r=c.call(this,t),n&&V(e,t),F(this)&&H(e,t),r},Node.prototype.cloneNode=function(t){return t=a.call(this,!!t),this.ownerDocument.__CE_registry?$(e,t):z(e,t),t},Node.prototype.removeChild=function(t){var n=t instanceof Element&&F(t),r=f.call(this,t);return n&&V(e,t),r},Node.prototype.replaceChild=function(t,n){if(t instanceof DocumentFragment){var r=B(t);if(t=u.call(this,t,n),F(this))for(V(e,n),n=0;n<r.length;n++)H(e,r[n]);return t}r=t instanceof Element&&F(t);var i=u.call(this,t,n),s=F(this);return s&&V(e,n),r&&V(e,t),s&&H(e,t),i},d&&d.get?t(Node.prototype,d):function(e,t){e.f=!0,e.h.push(t)}(e,(function(e){t(e,{enumerable:!0,configurable:!0,get:function(){for(var e=[],t=this.firstChild;t;t=t.nextSibling)t.nodeType!==Node.COMMENT_NODE&&e.push(t.textContent);return e.join("")},set:function(e){for(;this.firstChild;)f.call(this,this.firstChild);null!=e&&""!==e&&c.call(this,document.createTextNode(e))}})}))}(t),se(t),t=new J(t),document.__CE_registry=t,Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:t})}ae&&!ae.forcePolyfill&&"function"==typeof ae.define&&"function"==typeof ae.get||ce(),window.__CE_installPolyfill=ce}).call(self)},6919:function(e,t,n){(function(){"use strict";var e;function t(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}function r(e){var n="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return n?n.call(e):{next:t(e)}}function i(e){if(!(e instanceof Array)){e=r(e);for(var t,n=[];!(t=e.next()).done;)n.push(t.value);e=n}return e}var s="undefined"!=typeof window&&window===this?this:void 0!==n.g&&null!=n.g?n.g:this;function o(e,t){return{index:e,s:[],v:t}}function a(e,t,n,r){var i=0,s=0,a=0,l=0,f=Math.min(t-i,r-s);if(0==i&&0==s)e:{for(a=0;a<f;a++)if(e[a]!==n[a])break e;a=f}if(t==e.length&&r==n.length){l=e.length;for(var u=n.length,d=0;d<f-a&&c(e[--l],n[--u]);)d++;l=d}if(s+=a,r-=l,0==(t-=l)-(i+=a)&&0==r-s)return[];if(i==t){for(t=o(i,0);s<r;)t.s.push(n[s++]);return[t]}if(s==r)return[o(i,t-i)];for(r=r-(a=s)+1,l=t-(f=i)+1,t=Array(r),u=0;u<r;u++)t[u]=Array(l),t[u][0]=u;for(u=0;u<l;u++)t[0][u]=u;for(u=1;u<r;u++)for(d=1;d<l;d++)if(e[f+d-1]===n[a+u-1])t[u][d]=t[u-1][d-1];else{var h=t[u-1][d]+1,p=t[u][d-1]+1;t[u][d]=h<p?h:p}for(f=t.length-1,a=t[0].length-1,r=t[f][a],e=[];0<f||0<a;)0==f?(e.push(2),a--):0==a?(e.push(3),f--):(l=t[f-1][a-1],(h=(u=t[f-1][a])<(d=t[f][a-1])?u<l?u:l:d<l?d:l)==l?(l==r?e.push(0):(e.push(1),r=l),f--,a--):h==u?(e.push(3),f--,r=u):(e.push(2),a--,r=d));for(e.reverse(),t=void 0,f=[],a=0;a<e.length;a++)switch(e[a]){case 0:t&&(f.push(t),t=void 0),i++,s++;break;case 1:t||(t=o(i,0)),t.v++,i++,t.s.push(n[s]),s++;break;case 2:t||(t=o(i,0)),t.v++,i++;break;case 3:t||(t=o(i,0)),t.s.push(n[s]),s++}return t&&f.push(t),f}function c(e,t){return e===t}function l(){}function f(e){return e.__shady||(e.__shady=new l),e.__shady}function u(e){return e&&e.__shady}l.prototype.toJSON=function(){return{}};var d=window.ShadyDOM||{};d.T=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var h=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");function p(e){return(e=u(e))&&void 0!==e.firstChild}function m(e){return e instanceof ShadowRoot}function g(e){return(e=(e=u(e))&&e.root)&&Lt(e)}d.c=!!(h&&h.configurable&&h.get),d.F=d.force||!d.T,d.g=d.noPatch||!1,d.o=d.preferPerformance,d.G="on-demand"===d.g,d.L=navigator.userAgent.match("Trident");var v=Element.prototype,b=v.matches||v.matchesSelector||v.mozMatchesSelector||v.msMatchesSelector||v.oMatchesSelector||v.webkitMatchesSelector,y=document.createTextNode(""),_=0,A=[];function w(e){A.push(e),y.textContent=_++}new MutationObserver((function(){for(;A.length;)try{A.shift()()}catch(e){throw y.textContent=_++,e}})).observe(y,{characterData:!0});var C=document.contains?function(e,t){return e.__shady_native_contains(t)}:function(e,t){return e===t||e.documentElement&&e.documentElement.__shady_native_contains(t)};function E(e,t){for(;t;){if(t==e)return!0;t=t.__shady_parentNode}return!1}function S(e){for(var t=e.length-1;0<=t;t--){var n=e[t],i=n.getAttribute("id")||n.getAttribute("name");i&&"length"!==i&&isNaN(i)&&(e[i]=n)}return e.item=function(t){return e[t]},e.namedItem=function(t){if("length"!==t&&isNaN(t)&&e[t])return e[t];for(var n=r(e),i=n.next();!i.done;i=n.next())if(((i=i.value).getAttribute("id")||i.getAttribute("name"))==t)return i;return null},e}function T(e){var t=[];for(e=e.__shady_native_firstChild;e;e=e.__shady_native_nextSibling)t.push(e);return t}function O(e){var t=[];for(e=e.__shady_firstChild;e;e=e.__shady_nextSibling)t.push(e);return t}function x(e,t,n){if(n.configurable=!0,n.value)e[t]=n.value;else try{Object.defineProperty(e,t,n)}catch(e){}}function M(e,t,n,r){for(var i in n=void 0===n?"":n,t)r&&0<=r.indexOf(i)||x(e,n+i,t[i])}function N(e,t){for(var n in t)n in e&&x(e,n,t[n])}function I(e){var t={};return Object.getOwnPropertyNames(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t}function R(e,t){for(var n,r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++)e[n=r[i]]=t[n]}function k(e){return e instanceof Node?e:document.createTextNode(""+e)}function P(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];if(1===t.length)return k(t[0]);n=document.createDocumentFragment();for(var i=(t=r(t)).next();!i.done;i=t.next())n.appendChild(k(i.value));return n}var D,F=[];function B(e){D||(D=!0,w(L)),F.push(e)}function L(){D=!1;for(var e=!!F.length;F.length;)F.shift()();return e}L.list=F;var j=I({get childNodes(){return this.__shady_childNodes},get firstChild(){return this.__shady_firstChild},get lastChild(){return this.__shady_lastChild},get childElementCount(){return this.__shady_childElementCount},get children(){return this.__shady_children},get firstElementChild(){return this.__shady_firstElementChild},get lastElementChild(){return this.__shady_lastElementChild},get shadowRoot(){return this.__shady_shadowRoot}}),U=I({get textContent(){return this.__shady_textContent},set textContent(e){this.__shady_textContent=e},get innerHTML(){return this.__shady_innerHTML},set innerHTML(e){return this.__shady_innerHTML=e}}),q=I({get parentElement(){return this.__shady_parentElement},get parentNode(){return this.__shady_parentNode},get nextSibling(){return this.__shady_nextSibling},get previousSibling(){return this.__shady_previousSibling},get nextElementSibling(){return this.__shady_nextElementSibling},get previousElementSibling(){return this.__shady_previousElementSibling},get className(){return this.__shady_className},set className(e){return this.__shady_className=e}});function z(e){for(var t in e){var n=e[t];n&&(n.enumerable=!1)}}z(j),z(U),z(q);var G,H=d.c||!0===d.g,V=H?function(){}:function(e){var t=f(e);t.N||(t.N=!0,N(e,q))},$=H?function(){}:function(e){var t=f(e);t.M||(t.M=!0,N(e,j),window.customElements&&window.customElements.polyfillWrapFlushCallback&&!d.g||N(e,U))},W="__eventWrappers"+Date.now(),Q=(G=Object.getOwnPropertyDescriptor(Event.prototype,"composed"))?function(e){return G.get.call(e)}:null,Y=function(){function e(){}var t=!1,n={get capture(){return t=!0,!1}};return window.addEventListener("test",e,n),window.removeEventListener("test",e,n),t}();function X(e){if(e&&"object"==typeof e)var t=!!e.capture,n=!!e.once,r=!!e.passive,i=e.i;else t=!!e,r=n=!1;return{K:i,capture:t,once:n,passive:r,J:Y?e:t}}var K={blur:!0,focus:!0,focusin:!0,focusout:!0,click:!0,dblclick:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,wheel:!0,beforeinput:!0,input:!0,keydown:!0,keyup:!0,compositionstart:!0,compositionupdate:!0,compositionend:!0,touchstart:!0,touchend:!0,touchmove:!0,touchcancel:!0,pointerover:!0,pointerenter:!0,pointerdown:!0,pointermove:!0,pointerup:!0,pointercancel:!0,pointerout:!0,pointerleave:!0,gotpointercapture:!0,lostpointercapture:!0,dragstart:!0,drag:!0,dragenter:!0,dragleave:!0,dragover:!0,drop:!0,dragend:!0,DOMActivate:!0,DOMFocusIn:!0,DOMFocusOut:!0,keypress:!0},Z={DOMAttrModified:!0,DOMAttributeNameChanged:!0,DOMCharacterDataModified:!0,DOMElementNameChanged:!0,DOMNodeInserted:!0,DOMNodeInsertedIntoDocument:!0,DOMNodeRemoved:!0,DOMNodeRemovedFromDocument:!0,DOMSubtreeModified:!0};function J(e){return e instanceof Node?e.__shady_getRootNode():e}function ee(e,t){var n=[],r=e;for(e=J(e);r;)n.push(r),r=r.__shady_assignedSlot?r.__shady_assignedSlot:r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host&&(t||r!==e)?r.host:r.__shady_parentNode;return n[n.length-1]===document&&n.push(window),n}function te(e,t){if(!m)return e;e=ee(e,!0);for(var n,r,i=0,s=void 0,o=void 0;i<t.length;i++)if((r=J(n=t[i]))!==s&&(o=e.indexOf(r),s=r),!m(r)||-1<o)return n}function ne(e){function t(t,n){return(t=new e(t,n)).__composed=n&&!!n.composed,t}return t.__proto__=e,t.prototype=e.prototype,t}var re={focus:!0,blur:!0};function ie(e){return e.__target!==e.target||e.__relatedTarget!==e.relatedTarget}function se(e,t,n){if(n=t.__handlers&&t.__handlers[e.type]&&t.__handlers[e.type][n])for(var r,i=0;(r=n[i])&&(!ie(e)||e.target!==e.relatedTarget)&&(r.call(t,e),!e.__immediatePropagationStopped);i++);}function oe(e){var t=e.composedPath(),n=t.map((function(e){return te(e,t)})),r=e.bubbles;Object.defineProperty(e,"currentTarget",{configurable:!0,enumerable:!0,get:function(){return o}});var i=Event.CAPTURING_PHASE;Object.defineProperty(e,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return i}});for(var s=t.length-1;0<=s;s--){var o=t[s];if(i=o===n[s]?Event.AT_TARGET:Event.CAPTURING_PHASE,se(e,o,"capture"),e.B)return}for(s=0;s<t.length;s++){var a=(o=t[s])===n[s];if((a||r)&&(i=a?Event.AT_TARGET:Event.BUBBLING_PHASE,se(e,o,"bubble"),e.B))return}i=0,o=null}function ae(e,t,n,r,i,s){for(var o=0;o<e.length;o++){var a=e[o],c=a.type,l=a.capture,f=a.once,u=a.passive;if(t===a.node&&n===c&&r===l&&i===f&&s===u)return o}return-1}function ce(e){return L(),!d.o&&this instanceof Node&&!C(document,this)?(e.__target||de(e,this),oe(e)):this.__shady_native_dispatchEvent(e)}function le(e,t,n){var r=X(n),i=r.capture,s=r.once,o=r.passive,a=r.K;if(r=r.J,t){var c=typeof t;if(("function"===c||"object"===c)&&("object"!==c||t.handleEvent&&"function"==typeof t.handleEvent)){if(Z[e])return this.__shady_native_addEventListener(e,t,r);var l=a||this;if(a=t[W]){if(-1<ae(a,l,e,i,s,o))return}else t[W]=[];a=function(r){if(s&&this.__shady_removeEventListener(e,t,n),r.__target||de(r),l!==this){var o=Object.getOwnPropertyDescriptor(r,"currentTarget");Object.defineProperty(r,"currentTarget",{get:function(){return l},configurable:!0});var a=Object.getOwnPropertyDescriptor(r,"eventPhase");Object.defineProperty(r,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return i?Event.CAPTURING_PHASE:Event.BUBBLING_PHASE}})}if(r.__previousCurrentTarget=r.currentTarget,(!m(l)&&"slot"!==l.localName||-1!=r.composedPath().indexOf(l))&&(r.composed||-1<r.composedPath().indexOf(l)))if(ie(r)&&r.target===r.relatedTarget)r.eventPhase===Event.BUBBLING_PHASE&&r.stopImmediatePropagation();else if(r.eventPhase===Event.CAPTURING_PHASE||r.bubbles||r.target===l||l instanceof Window){var f="function"===c?t.call(l,r):t.handleEvent&&t.handleEvent(r);return l!==this&&(o?(Object.defineProperty(r,"currentTarget",o),o=null):delete r.currentTarget,a?(Object.defineProperty(r,"eventPhase",a),a=null):delete r.eventPhase),f}},t[W].push({node:l,type:e,capture:i,once:s,passive:o,V:a}),this.__handlers=this.__handlers||{},this.__handlers[e]=this.__handlers[e]||{capture:[],bubble:[]},this.__handlers[e][i?"capture":"bubble"].push(a),re[e]||this.__shady_native_addEventListener(e,a,r)}}}function fe(e,t,n){if(t){var r=X(n);n=r.capture;var i=r.once,s=r.passive,o=r.K;if(r=r.J,Z[e])return this.__shady_native_removeEventListener(e,t,r);var a=o||this;o=void 0;var c=null;try{c=t[W]}catch(e){}c&&(-1<(i=ae(c,a,e,n,i,s))&&(o=c.splice(i,1)[0].V,c.length||(t[W]=void 0))),this.__shady_native_removeEventListener(e,o||t,r),o&&this.__handlers&&this.__handlers[e]&&(-1<(t=(e=this.__handlers[e][n?"capture":"bubble"]).indexOf(o))&&e.splice(t,1))}}var ue=I({get composed(){return void 0===this.__composed&&(Q?this.__composed="focusin"===this.type||"focusout"===this.type||Q(this):!1!==this.isTrusted&&(this.__composed=K[this.type])),this.__composed||!1},composedPath:function(){return this.__composedPath||(this.__composedPath=ee(this.__target,this.composed)),this.__composedPath},get target(){return te(this.currentTarget||this.__previousCurrentTarget,this.composedPath())},get relatedTarget(){return this.__relatedTarget?(this.__relatedTargetComposedPath||(this.__relatedTargetComposedPath=ee(this.__relatedTarget,!0)),te(this.currentTarget||this.__previousCurrentTarget,this.__relatedTargetComposedPath)):null},stopPropagation:function(){Event.prototype.stopPropagation.call(this),this.B=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this),this.B=this.__immediatePropagationStopped=!0}});function de(e,t){if(t=void 0===t?e.target:t,e.__target=t,e.__relatedTarget=e.relatedTarget,d.c){if(!(t=Object.getPrototypeOf(e)).hasOwnProperty("__shady_patchedProto")){var n=Object.create(t);n.__shady_sourceProto=t,M(n,ue),t.__shady_patchedProto=n}e.__proto__=t.__shady_patchedProto}else M(e,ue)}var he=ne(Event),pe=ne(CustomEvent),me=ne(MouseEvent);var ge=Object.getOwnPropertyNames(Element.prototype).filter((function(e){return"on"===e.substring(0,2)})),ve=Object.getOwnPropertyNames(HTMLElement.prototype).filter((function(e){return"on"===e.substring(0,2)}));function be(e){return{set:function(t){var n=f(this),r=e.substring(2);n.h||(n.h={}),n.h[e]&&this.removeEventListener(r,n.h[e]),this.__shady_addEventListener(r,t),n.h[e]=t},get:function(){var t=u(this);return t&&t.h&&t.h[e]},configurable:!0}}var ye=I({dispatchEvent:ce,addEventListener:le,removeEventListener:fe}),_e=window.document,Ae=d.o,we=Object.getOwnPropertyDescriptor(Node.prototype,"isConnected"),Ce=we&&we.get;function Ee(e){for(var t;t=e.__shady_firstChild;)e.__shady_removeChild(t)}function Se(e){var t=u(e);if(t&&void 0!==t.A)for(t=e.__shady_firstChild;t;t=t.__shady_nextSibling)Se(t);(e=u(e))&&(e.A=void 0)}function Te(e){var t=e;if(e&&"slot"===e.localName){var n=u(e);(n=n&&n.l)&&(t=n.length?n[0]:Te(e.__shady_nextSibling))}return t}function Oe(e,t,n){if(e=(e=u(e))&&e.m){if(t)if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(var r=0,i=t.childNodes.length;r<i;r++)e.addedNodes.push(t.childNodes[r]);else e.addedNodes.push(t);n&&e.removedNodes.push(n),function(e){e.a||(e.a=!0,w((function(){e.flush()})))}(e)}}var xe=I({get parentNode(){var e=u(this);return void 0!==(e=e&&e.parentNode)?e:this.__shady_native_parentNode},get firstChild(){var e=u(this);return void 0!==(e=e&&e.firstChild)?e:this.__shady_native_firstChild},get lastChild(){var e=u(this);return void 0!==(e=e&&e.lastChild)?e:this.__shady_native_lastChild},get nextSibling(){var e=u(this);return void 0!==(e=e&&e.nextSibling)?e:this.__shady_native_nextSibling},get previousSibling(){var e=u(this);return void 0!==(e=e&&e.previousSibling)?e:this.__shady_native_previousSibling},get childNodes(){if(p(this)){var e=u(this);if(!e.childNodes){e.childNodes=[];for(var t=this.__shady_firstChild;t;t=t.__shady_nextSibling)e.childNodes.push(t)}var n=e.childNodes}else n=this.__shady_native_childNodes;return n.item=function(e){return n[e]},n},get parentElement(){var e=u(this);return(e=e&&e.parentNode)&&e.nodeType!==Node.ELEMENT_NODE&&(e=null),void 0!==e?e:this.__shady_native_parentElement},get isConnected(){if(Ce&&Ce.call(this))return!0;if(this.nodeType==Node.DOCUMENT_FRAGMENT_NODE)return!1;var e=this.ownerDocument;if(null===e||C(e,this))return!0;for(e=this;e&&!(e instanceof Document);)e=e.__shady_parentNode||(m(e)?e.host:void 0);return!!(e&&e instanceof Document)},get textContent(){if(p(this)){for(var e=[],t=this.__shady_firstChild;t;t=t.__shady_nextSibling)t.nodeType!==Node.COMMENT_NODE&&e.push(t.__shady_textContent);return e.join("")}return this.__shady_native_textContent},set textContent(e){switch(null==e&&(e=""),this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:if(!p(this)&&d.c){var t=this.__shady_firstChild;(t!=this.__shady_lastChild||t&&t.nodeType!=Node.TEXT_NODE)&&Ee(this),this.__shady_native_textContent=e}else Ee(this),(0<e.length||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_insertBefore(document.createTextNode(e));break;default:this.nodeValue=e}},insertBefore:function(e,t){if(this.ownerDocument!==_e&&e.ownerDocument!==_e)return this.__shady_native_insertBefore(e,t),e;if(e===this)throw Error("Failed to execute 'appendChild' on 'Node': The new child element contains the parent.");if(t){var n=u(t);if(void 0!==(n=n&&n.parentNode)&&n!==this||void 0===n&&t.__shady_native_parentNode!==this)throw Error("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.")}if(t===e)return e;Oe(this,e);var r=[],s=(n=zt(this))?n.host.localName:ze(this),o=e.__shady_parentNode;if(o){var a=ze(e),c=!!n||!zt(e)||Ae&&void 0!==this.__noInsertionPoint;o.__shady_removeChild(e,c)}o=!0;var l=(!Ae||void 0===e.__noInsertionPoint&&void 0===this.__noInsertionPoint)&&!qe(e,s),d=n&&!e.__noInsertionPoint&&(!Ae||e.nodeType===Node.DOCUMENT_FRAGMENT_NODE);return(d||l)&&(l&&(a=a||ze(e)),Ge(e,(function(e){if(d&&"slot"===e.localName&&r.push(e),l){var t=a;Le()&&(t&&Ue(e,t),(t=Le())&&t.scopeNode(e,s))}}))),r.length&&(Pt(n),n.f.push.apply(n.f,i(r)),Mt(n)),p(this)&&(function(e,t,n){bt(t,2);var r=f(t);if(void 0!==r.firstChild&&(r.childNodes=null),e.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(e=e.__shady_native_firstChild;e;e=e.__shady_native_nextSibling)yt(e,t,r,n);else yt(e,t,r,n)}(e,this,t),(c=u(this)).root?(o=!1,g(this)&&Mt(c.root)):n&&"slot"===this.localName&&(o=!1,Mt(n))),o?(n=m(this)?this.host:this,t?(t=Te(t),n.__shady_native_insertBefore(e,t)):n.__shady_native_appendChild(e)):e.ownerDocument!==this.ownerDocument&&this.ownerDocument.adoptNode(e),e},appendChild:function(e){if(this!=e||!m(e))return this.__shady_insertBefore(e)},removeChild:function(e,t){if(t=void 0!==t&&t,this.ownerDocument!==_e)return this.__shady_native_removeChild(e);if(e.__shady_parentNode!==this)throw Error("The node to be removed is not a child of this node: "+e);Oe(this,null,e);var n=zt(e),r=n&&function(e,t){if(e.a){Dt(e);var n,r=e.b;for(n in r)for(var i=r[n],s=0;s<i.length;s++){var o=i[s];if(E(t,o)){i.splice(s,1);var a=e.a.indexOf(o);if(0<=a&&(e.a.splice(a,1),(a=u(o.__shady_parentNode))&&a.u&&a.u--),s--,a=(o=u(o)).l)for(var c=0;c<a.length;c++){var l=a[c],f=l.__shady_native_parentNode;f&&f.__shady_native_removeChild(l)}o.l=[],o.assignedNodes=[],a=!0}}return a}}(n,e),i=u(this);if(p(this)&&(function(e,t){var n=f(e);t=f(t),e===t.firstChild&&(t.firstChild=n.nextSibling),e===t.lastChild&&(t.lastChild=n.previousSibling),e=n.previousSibling;var r=n.nextSibling;e&&(f(e).nextSibling=r),r&&(f(r).previousSibling=e),n.parentNode=n.previousSibling=n.nextSibling=void 0,void 0!==t.childNodes&&(t.childNodes=null)}(e,this),g(this))){Mt(i.root);var s=!0}if(Le()&&!t&&n&&e.nodeType!==Node.TEXT_NODE){var o=ze(e);Ge(e,(function(e){Ue(e,o)}))}return Se(e),n&&((t="slot"===this.localName)&&(s=!0),(r||t)&&Mt(n)),s||(s=m(this)?this.host:this,(!i.root&&"slot"!==e.localName||s===e.__shady_native_parentNode)&&s.__shady_native_removeChild(e)),e},replaceChild:function(e,t){return this.__shady_insertBefore(e,t),this.__shady_removeChild(t),e},cloneNode:function(e){if("template"==this.localName)return this.__shady_native_cloneNode(e);var t=this.__shady_native_cloneNode(!1);if(e&&t.nodeType!==Node.ATTRIBUTE_NODE){e=this.__shady_firstChild;for(var n;e;e=e.__shady_nextSibling)n=e.__shady_cloneNode(!0),t.__shady_appendChild(n)}return t},getRootNode:function(e){if(this&&this.nodeType){var t=f(this),n=t.A;return void 0===n&&(m(this)?(n=this,t.A=n):(n=(n=this.__shady_parentNode)?n.__shady_getRootNode(e):this,document.documentElement.__shady_native_contains(this)&&(t.A=n))),n}},contains:function(e){return E(this,e)}}),Me=I({get assignedSlot(){var e=this.__shady_parentNode;return(e=e&&e.__shady_shadowRoot)&&Nt(e),(e=u(this))&&e.assignedSlot||null}});function Ne(e,t,n){var r=[];return Ie(e,t,n,r),r}function Ie(e,t,n,r){for(e=e.__shady_firstChild;e;e=e.__shady_nextSibling){var i;if(i=e.nodeType===Node.ELEMENT_NODE){var s=t,o=n,a=r,c=s(i=e);c&&a.push(i),o&&o(c)?i=c:(Ie(i,s,o,a),i=void 0)}if(i)break}}var Re={get firstElementChild(){var e=u(this);if(e&&void 0!==e.firstChild){for(e=this.__shady_firstChild;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.__shady_nextSibling;return e}return this.__shady_native_firstElementChild},get lastElementChild(){var e=u(this);if(e&&void 0!==e.lastChild){for(e=this.__shady_lastChild;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.__shady_previousSibling;return e}return this.__shady_native_lastElementChild},get children(){return p(this)?S(Array.prototype.filter.call(O(this),(function(e){return e.nodeType===Node.ELEMENT_NODE}))):this.__shady_native_children},get childElementCount(){var e=this.__shady_children;return e?e.length:0}},ke=I((Re.append=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];this.__shady_insertBefore(P.apply(null,i(t)),null)},Re.prepend=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];this.__shady_insertBefore(P.apply(null,i(t)),this.__shady_firstChild)},Re.replaceChildren=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];for(;null!==(n=this.__shady_firstChild);)this.__shady_removeChild(n);this.__shady_insertBefore(P.apply(null,i(t)),null)},Re)),Pe=I({querySelector:function(e){return Ne(this,(function(t){return b.call(t,e)}),(function(e){return!!e}))[0]||null},querySelectorAll:function(e,t){if(t){t=Array.prototype.slice.call(this.__shady_native_querySelectorAll(e));var n=this.__shady_getRootNode();return S(t.filter((function(e){return e.__shady_getRootNode()==n})))}return S(Ne(this,(function(t){return b.call(t,e)})))}}),De=d.o&&!d.g?R({},ke):ke;R(ke,Pe);var Fe=I({after:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];if(null!==(n=this.__shady_parentNode)){var r=this.__shady_nextSibling;n.__shady_insertBefore(P.apply(null,i(t)),r)}},before:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];null!==(n=this.__shady_parentNode)&&n.__shady_insertBefore(P.apply(null,i(t)),this)},remove:function(){var e=this.__shady_parentNode;null!==e&&e.__shady_removeChild(this)},replaceWith:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];if(null!==(n=this.__shady_parentNode)){var r=this.__shady_nextSibling;n.__shady_removeChild(this),n.__shady_insertBefore(P.apply(null,i(t)),r)}}}),Be=null;function Le(){return Be||(Be=window.ShadyCSS&&window.ShadyCSS.ScopingShim),Be||null}function je(e,t,n){var r=Le();return!(!r||"class"!==t)&&(r.setElementClass(e,n),!0)}function Ue(e,t){var n=Le();n&&n.unscopeNode(e,t)}function qe(e,t){var n=Le();if(!n)return!0;if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(n=!0,e=e.__shady_firstChild;e;e=e.__shady_nextSibling)n=n&&qe(e,t);return n}return e.nodeType!==Node.ELEMENT_NODE||n.currentScopeForNode(e)===t}function ze(e){if(e.nodeType!==Node.ELEMENT_NODE)return"";var t=Le();return t?t.currentScopeForNode(e):""}function Ge(e,t){if(e)for(e.nodeType===Node.ELEMENT_NODE&&t(e),e=e.__shady_firstChild;e;e=e.__shady_nextSibling)e.nodeType===Node.ELEMENT_NODE&&Ge(e,t)}var He=window.document;function Ve(e,t){if("slot"===t)g(e=e.__shady_parentNode)&&Mt(u(e).root);else if("slot"===e.localName&&"name"===t&&(t=zt(e))){if(t.a){Dt(t);var n=e.O,r=Ft(e);if(r!==n){var i=(n=t.b[n]).indexOf(e);0<=i&&n.splice(i,1),(n=t.b[r]||(t.b[r]=[])).push(e),1<n.length&&(t.b[r]=Bt(n))}}Mt(t)}}var $e=I({get previousElementSibling(){var e=u(this);if(e&&void 0!==e.previousSibling){for(e=this.__shady_previousSibling;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.__shady_previousSibling;return e}return this.__shady_native_previousElementSibling},get nextElementSibling(){var e=u(this);if(e&&void 0!==e.nextSibling){for(e=this.__shady_nextSibling;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.__shady_nextSibling;return e}return this.__shady_native_nextElementSibling},get slot(){return this.getAttribute("slot")},set slot(e){this.__shady_setAttribute("slot",e)},get className(){return this.getAttribute("class")||""},set className(e){this.__shady_setAttribute("class",e)},setAttribute:function(e,t){this.ownerDocument!==He?this.__shady_native_setAttribute(e,t):je(this,e,t)||(this.__shady_native_setAttribute(e,t),Ve(this,e))},removeAttribute:function(e){this.ownerDocument!==He?this.__shady_native_removeAttribute(e):je(this,e,"")?""===this.getAttribute(e)&&this.__shady_native_removeAttribute(e):(this.__shady_native_removeAttribute(e),Ve(this,e))}});d.o||ge.forEach((function(e){$e[e]=be(e)}));var We=I({attachShadow:function(e){if(!this)throw Error("Must provide a host.");if(!e)throw Error("Not enough arguments.");if(e.shadyUpgradeFragment&&!d.L){var t=e.shadyUpgradeFragment;if(t.__proto__=ShadowRoot.prototype,xt(t,this,e),_t(t,t),e=t.__noInsertionPoint?null:t.querySelectorAll("slot"),t.__noInsertionPoint=void 0,e&&e.length){var n=t;Pt(n),n.f.push.apply(n.f,i(e)),Mt(t)}t.host.__shady_native_appendChild(t)}else t=new Ot(Et,this,e);return this.__CE_shadowRoot=t},get shadowRoot(){var e=u(this);return e&&e.U||null}});R($e,We);var Qe=/[&\u00A0"]/g,Ye=/[&\u00A0<>]/g;function Xe(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case" ":return" "}}function Ke(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;return t}var Ze=Ke("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),Je=Ke("style script xmp iframe noembed noframes plaintext noscript".split(" "));function et(e,t){"template"===e.localName&&(e=e.content);for(var n="",r=t?t(e):e.childNodes,i=0,s=r.length,o=void 0;i<s&&(o=r[i]);i++){e:{var a=o,c=e,l=t;switch(a.nodeType){case Node.ELEMENT_NODE:for(var f,u="<"+(c=a.localName),d=a.attributes,h=0;f=d[h];h++)u+=" "+f.name+'="'+f.value.replace(Qe,Xe)+'"';u+=">",a=Ze[c]?u:u+et(a,l)+"</"+c+">";break e;case Node.TEXT_NODE:a=a.data,a=c&&Je[c.localName]?a:a.replace(Ye,Xe);break e;case Node.COMMENT_NODE:a="\x3c!--"+a.data+"--\x3e";break e;default:throw window.console.error(a),Error("not implemented")}}n+=a}return n}var tt=document.implementation.createHTMLDocument("inert"),nt=I({get innerHTML(){return p(this)?et("template"===this.localName?this.content:this,O):this.__shady_native_innerHTML},set innerHTML(e){if("template"===this.localName)this.__shady_native_innerHTML=e;else{Ee(this);var t=this.localName||"div";for(t=this.namespaceURI&&this.namespaceURI!==tt.namespaceURI?tt.createElementNS(this.namespaceURI,t):tt.createElement(t),d.c?t.__shady_native_innerHTML=e:t.innerHTML=e;e=t.__shady_firstChild;)this.__shady_insertBefore(e)}}}),rt=I({blur:function(){var e=u(this);(e=(e=e&&e.root)&&e.activeElement)?e.__shady_blur():this.__shady_native_blur()}});d.o||ve.forEach((function(e){rt[e]=be(e)}));var it=I({assignedNodes:function(e){if("slot"===this.localName){var t=this.__shady_getRootNode();return t&&m(t)&&Nt(t),(t=u(this))&&(e&&e.flatten?t.l:t.assignedNodes)||[]}},addEventListener:function(e,t,n){if("slot"!==this.localName||"slotchange"===e)le.call(this,e,t,n);else{"object"!=typeof n&&(n={capture:!!n});var r=this.__shady_parentNode;if(!r)throw Error("ShadyDOM cannot attach event to slot unless it has a `parentNode`");n.i=this,r.__shady_addEventListener(e,t,n)}},removeEventListener:function(e,t,n){if("slot"!==this.localName||"slotchange"===e)fe.call(this,e,t,n);else{"object"!=typeof n&&(n={capture:!!n});var r=this.__shady_parentNode;if(!r)throw Error("ShadyDOM cannot attach event to slot unless it has a `parentNode`");n.i=this,r.__shady_removeEventListener(e,t,n)}}}),st=I({getElementById:function(e){return""===e?null:Ne(this,(function(t){return t.id==e}),(function(e){return!!e}))[0]||null}}),ot=I({get activeElement(){var e=d.c?document.__shady_native_activeElement:document.activeElement;if(!e||!e.nodeType)return null;var t=!!m(this);if(!(this===document||t&&this.host!==e&&this.host.__shady_native_contains(e)))return null;for(t=zt(e);t&&t!==this;)t=zt(e=t.host);return this===document?t?null:e:t===this?e:null}}),at=window.document,ct=I({importNode:function(e,t){if(e.ownerDocument!==at||"template"===e.localName)return this.__shady_native_importNode(e,t);var n=this.__shady_native_importNode(e,!1);if(t)for(e=e.__shady_firstChild;e;e=e.__shady_nextSibling)t=this.__shady_importNode(e,!0),n.__shady_appendChild(t);return n}}),lt=I({dispatchEvent:ce,addEventListener:le.bind(window),removeEventListener:fe.bind(window)}),ft={};Object.getOwnPropertyDescriptor(HTMLElement.prototype,"parentElement")&&(ft.parentElement=xe.parentElement),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"contains")&&(ft.contains=xe.contains),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"children")&&(ft.children=ke.children),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML")&&(ft.innerHTML=nt.innerHTML),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"className")&&(ft.className=$e.className);var ut={EventTarget:[ye],Node:[xe,window.EventTarget?null:ye],Text:[Me],Comment:[Me],CDATASection:[Me],ProcessingInstruction:[Me],Element:[$e,ke,Fe,Me,!d.c||"innerHTML"in Element.prototype?nt:null,window.HTMLSlotElement?null:it],HTMLElement:[rt,ft],HTMLSlotElement:[it],DocumentFragment:[De,st],Document:[ct,De,st,ot],Window:[lt],CharacterData:[Fe]},dt=d.c?null:["innerHTML","textContent"];function ht(e,t,n,r){t.forEach((function(t){return e&&t&&M(e,t,n,r)}))}function pt(e){var t,n=e?null:dt;for(t in ut)ht(window[t]&&window[t].prototype,ut[t],e,n)}function mt(e){return e.__shady_protoIsPatched=!0,ht(e,ut.EventTarget),ht(e,ut.Node),ht(e,ut.Element),ht(e,ut.HTMLElement),ht(e,ut.HTMLSlotElement),e}["Text","Comment","CDATASection","ProcessingInstruction"].forEach((function(e){var t=window[e],n=Object.create(t.prototype);n.__shady_protoIsPatched=!0,ht(n,ut.EventTarget),ht(n,ut.Node),ut[e]&&ht(n,ut[e]),t.prototype.__shady_patchedProto=n}));var gt=d.G,vt=d.c;function bt(e,t){if(gt&&!e.__shady_protoIsPatched&&!m(e)){var n=Object.getPrototypeOf(e),r=n.hasOwnProperty("__shady_patchedProto")&&n.__shady_patchedProto;r||(mt(r=Object.create(n)),n.__shady_patchedProto=r),Object.setPrototypeOf(e,r)}vt||(1===t?V(e):2===t&&$(e))}function yt(e,t,n,r){bt(e,1),r=r||null;var i=f(e),s=r?f(r):null;i.previousSibling=r?s.previousSibling:t.__shady_lastChild,(s=u(i.previousSibling))&&(s.nextSibling=e),(s=u(i.nextSibling=r))&&(s.previousSibling=e),i.parentNode=t,r?r===n.firstChild&&(n.firstChild=e):(n.lastChild=e,n.firstChild||(n.firstChild=e)),n.childNodes=null}function _t(e,t){var n=f(e);if(t||void 0===n.firstChild){n.childNodes=null;var r=n.firstChild=e.__shady_native_firstChild;for(n.lastChild=e.__shady_native_lastChild,bt(e,2),n=r,r=void 0;n;n=n.__shady_native_nextSibling){var i=f(n);i.parentNode=t||e,i.nextSibling=n.__shady_native_nextSibling,i.previousSibling=r||null,r=n,bt(n,1)}}}var At=I({addEventListener:function(e,t,n){"object"!=typeof n&&(n={capture:!!n}),n.i=n.i||this,this.host.__shady_addEventListener(e,t,n)},removeEventListener:function(e,t,n){"object"!=typeof n&&(n={capture:!!n}),n.i=n.i||this,this.host.__shady_removeEventListener(e,t,n)}});function wt(e,t){M(e,At,t),M(e,ot,t),M(e,nt,t),M(e,ke,t),d.g&&!t?(M(e,xe,t),M(e,st,t)):d.c||(M(e,q),M(e,j),M(e,U))}var Ct,Et={},St=d.deferConnectionCallbacks&&"loading"===document.readyState;function Tt(e){var t=[];do{t.unshift(e)}while(e=e.__shady_parentNode);return t}function Ot(e,t,n){if(e!==Et)throw new TypeError("Illegal constructor");this.a=null,xt(this,t,n)}function xt(e,t,n){if(e.host=t,e.mode=n&&n.mode,_t(e.host),(t=f(e.host)).root=e,t.U="closed"!==e.mode?e:null,(t=f(e)).firstChild=t.lastChild=t.parentNode=t.nextSibling=t.previousSibling=null,d.preferPerformance)for(;t=e.host.__shady_native_firstChild;)e.host.__shady_native_removeChild(t);else Mt(e)}function Mt(e){e.j||(e.j=!0,B((function(){return Nt(e)})))}function Nt(e){var t;if(t=e.j){for(var n;e;)e.j&&(n=e),m(e=(t=e).host.__shady_getRootNode())&&(t=u(t.host))&&0<t.u||(e=void 0);t=n}(n=t)&&n._renderSelf()}function It(e,t,n){var r=f(t),i=r.C;r.C=null,n||(n=(e=e.b[t.__shady_slot||"__catchall"])&&e[0]),n?(f(n).assignedNodes.push(t),r.assignedSlot=n):r.assignedSlot=void 0,i!==r.assignedSlot&&r.assignedSlot&&(f(r.assignedSlot).D=!0)}function Rt(e,t,n){for(var r=0,i=void 0;r<n.length&&(i=n[r]);r++)if("slot"==i.localName){var s=u(i).assignedNodes;s&&s.length&&Rt(e,t,s)}else t.push(n[r])}function kt(e,t){t.__shady_native_dispatchEvent(new Event("slotchange")),(t=u(t)).assignedSlot&&kt(e,t.assignedSlot)}function Pt(e){e.f=e.f||[],e.a=e.a||[],e.b=e.b||{}}function Dt(e){if(e.f&&e.f.length){for(var t,n=e.f,r=0;r<n.length;r++){var i=n[r];_t(i);var s=i.__shady_parentNode;_t(s),(s=u(s)).u=(s.u||0)+1,s=Ft(i),e.b[s]?((t=t||{})[s]=!0,e.b[s].push(i)):e.b[s]=[i],e.a.push(i)}if(t)for(var o in t)e.b[o]=Bt(e.b[o]);e.f=[]}}function Ft(e){var t=e.name||e.getAttribute("name")||"__catchall";return e.O=t}function Bt(e){return e.sort((function(e,t){e=Tt(e);for(var n=Tt(t),r=0;r<e.length;r++){t=e[r];var i=n[r];if(t!==i)return(e=O(t.__shady_parentNode)).indexOf(t)-e.indexOf(i)}}))}function Lt(e){return Dt(e),!(!e.a||!e.a.length)}if(Ot.prototype._renderSelf=function(){var e=St;if(St=!0,this.j=!1,this.a){Dt(this);for(var t,n=0;n<this.a.length;n++){var r=u(t=this.a[n]),i=r.assignedNodes;if(r.assignedNodes=[],r.l=[],r.I=i)for(r=0;r<i.length;r++){var s=u(i[r]);s.C=s.assignedSlot,s.assignedSlot===t&&(s.assignedSlot=null)}}for(n=this.host.__shady_firstChild;n;n=n.__shady_nextSibling)It(this,n);for(n=0;n<this.a.length;n++){if(!(i=u(t=this.a[n])).assignedNodes.length)for(r=t.__shady_firstChild;r;r=r.__shady_nextSibling)It(this,r,t);if((r=(r=u(t.__shady_parentNode))&&r.root)&&(Lt(r)||r.j)&&r._renderSelf(),Rt(this,i.l,i.assignedNodes),r=i.I){for(s=0;s<r.length;s++)u(r[s]).C=null;i.I=null,r.length>i.assignedNodes.length&&(i.D=!0)}i.D&&(i.D=!1,kt(this,t))}for(t=this.a,n=[],i=0;i<t.length;i++)(s=u(r=t[i].__shady_parentNode))&&s.root||!(0>n.indexOf(r))||n.push(r);for(t=0;t<n.length;t++){for(i=(s=n[t])===this?this.host:s,r=[],s=s.__shady_firstChild;s;s=s.__shady_nextSibling)if("slot"==s.localName)for(var o=u(s).l,c=0;c<o.length;c++)r.push(o[c]);else r.push(s);s=T(i),o=a(r,r.length,s,s.length);for(var l=c=0,f=void 0;c<o.length&&(f=o[c]);c++){for(var h=0,p=void 0;h<f.s.length&&(p=f.s[h]);h++)p.__shady_native_parentNode===i&&i.__shady_native_removeChild(p),s.splice(f.index+l,1);l-=f.v}for(l=0,f=void 0;l<o.length&&(f=o[l]);l++)for(c=s[f.index],h=f.index;h<f.index+f.v;h++)p=r[h],i.__shady_native_insertBefore(p,c),s.splice(h,0,p)}}if(!d.preferPerformance&&!this.H)for(n=this.host.__shady_firstChild;n;n=n.__shady_nextSibling)t=u(n),n.__shady_native_parentNode!==this.host||"slot"!==n.localName&&t.assignedSlot||this.host.__shady_native_removeChild(n);this.H=!0,St=e,Ct&&Ct()},function(e){e.__proto__=DocumentFragment.prototype,wt(e,"__shady_"),wt(e),Object.defineProperties(e,{nodeType:{value:Node.DOCUMENT_FRAGMENT_NODE,configurable:!0},nodeName:{value:"#document-fragment",configurable:!0},nodeValue:{value:null,configurable:!0}}),["localName","namespaceURI","prefix"].forEach((function(t){Object.defineProperty(e,t,{value:void 0,configurable:!0})})),["ownerDocument","baseURI","isConnected"].forEach((function(t){Object.defineProperty(e,t,{get:function(){return this.host[t]},configurable:!0})}))}(Ot.prototype),window.customElements&&window.customElements.define&&d.F&&!d.preferPerformance){var jt=new Map;Ct=function(){var e=[];jt.forEach((function(t,n){e.push([n,t])})),jt.clear();for(var t=0;t<e.length;t++){var n=e[t][0];e[t][1]?n.__shadydom_connectedCallback():n.__shadydom_disconnectedCallback()}},St&&document.addEventListener("readystatechange",(function(){St=!1,Ct()}),{once:!0});var Ut=window.customElements.define,qt=function(e,t){var n=t.prototype.connectedCallback,r=t.prototype.disconnectedCallback;Ut.call(window.customElements,e,function(e,t,n){var r=0,i="__isConnected"+r++;return(t||n)&&(e.prototype.connectedCallback=e.prototype.__shadydom_connectedCallback=function(){St?jt.set(this,!0):this[i]||(this[i]=!0,t&&t.call(this))},e.prototype.disconnectedCallback=e.prototype.__shadydom_disconnectedCallback=function(){St?this.isConnected||jt.set(this,!1):this[i]&&(this[i]=!1,n&&n.call(this))}),e}(t,n,r)),t.prototype.connectedCallback=n,t.prototype.disconnectedCallback=r};window.customElements.define=qt,Object.defineProperty(window.CustomElementRegistry.prototype,"define",{value:qt,configurable:!0})}function zt(e){if(m(e=e.__shady_getRootNode()))return e}function Gt(){this.a=!1,this.addedNodes=[],this.removedNodes=[],this.w=new Set}Gt.prototype.flush=function(){if(this.a){this.a=!1;var e=this.takeRecords();e.length&&this.w.forEach((function(t){t(e)}))}},Gt.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var e=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];return this.addedNodes=[],this.removedNodes=[],e}return[]};var Ht=d.c,Vt={querySelector:function(e){return this.__shady_native_querySelector(e)},querySelectorAll:function(e){return this.__shady_native_querySelectorAll(e)}},$t={};function Wt(e){$t[e]=function(t){return t["__shady_native_"+e]}}function Qt(e,t){for(var n in M(e,t,"__shady_native_"),t)Wt(n)}function Yt(e,t){t=void 0===t?[]:t;for(var n=0;n<t.length;n++){var r=t[n],i=Object.getOwnPropertyDescriptor(e,r);i&&(Object.defineProperty(e,"__shady_native_"+r,i),i.value?Vt[r]||(Vt[r]=i.value):Wt(r))}}var Xt=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),Kt=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),Zt=document.implementation.createHTMLDocument("inert");function Jt(e){for(var t;t=e.__shady_native_firstChild;)e.__shady_native_removeChild(t)}var en=["firstElementChild","lastElementChild","children","childElementCount"],tn=["querySelector","querySelectorAll","append","prepend","replaceChildren"];function nn(e){this.node=e}function rn(e){Object.defineProperty(nn.prototype,e,{get:function(){return this.node["__shady_"+e]},set:function(t){this.node["__shady_"+e]=t},configurable:!0})}(e=nn.prototype).addEventListener=function(e,t,n){return this.node.__shady_addEventListener(e,t,n)},e.removeEventListener=function(e,t,n){return this.node.__shady_removeEventListener(e,t,n)},e.appendChild=function(e){return this.node.__shady_appendChild(e)},e.insertBefore=function(e,t){return this.node.__shady_insertBefore(e,t)},e.removeChild=function(e){return this.node.__shady_removeChild(e)},e.replaceChild=function(e,t){return this.node.__shady_replaceChild(e,t)},e.cloneNode=function(e){return this.node.__shady_cloneNode(e)},e.getRootNode=function(e){return this.node.__shady_getRootNode(e)},e.contains=function(e){return this.node.__shady_contains(e)},e.dispatchEvent=function(e){return this.node.__shady_dispatchEvent(e)},e.setAttribute=function(e,t){this.node.__shady_setAttribute(e,t)},e.getAttribute=function(e){return this.node.__shady_native_getAttribute(e)},e.removeAttribute=function(e){this.node.__shady_removeAttribute(e)},e.attachShadow=function(e){return this.node.__shady_attachShadow(e)},e.focus=function(){this.node.__shady_native_focus()},e.blur=function(){this.node.__shady_blur()},e.importNode=function(e,t){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_importNode(e,t)},e.getElementById=function(e){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_getElementById(e)},e.querySelector=function(e){return this.node.__shady_querySelector(e)},e.querySelectorAll=function(e,t){return this.node.__shady_querySelectorAll(e,t)},e.assignedNodes=function(e){if("slot"===this.node.localName)return this.node.__shady_assignedNodes(e)},e.append=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.node.__shady_append.apply(this.node,i(t))},e.prepend=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.node.__shady_prepend.apply(this.node,i(t))},e.after=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.node.__shady_after.apply(this.node,i(t))},e.before=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.node.__shady_before.apply(this.node,i(t))},e.remove=function(){return this.node.__shady_remove()},e.replaceWith=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.node.__shady_replaceWith.apply(this.node,i(t))},s.Object.defineProperties(nn.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){if(m(this.node)||this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_activeElement}},_activeElement:{configurable:!0,enumerable:!0,get:function(){return this.activeElement}},host:{configurable:!0,enumerable:!0,get:function(){if(m(this.node))return this.node.host}},parentNode:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_parentNode}},firstChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_firstChild}},lastChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_lastChild}},nextSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_nextSibling}},previousSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_previousSibling}},childNodes:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_childNodes}},parentElement:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_parentElement}},firstElementChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_firstElementChild}},lastElementChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_lastElementChild}},nextElementSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_nextElementSibling}},previousElementSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_previousElementSibling}},children:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_children}},childElementCount:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_childElementCount}},shadowRoot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_shadowRoot}},assignedSlot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_assignedSlot}},isConnected:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_isConnected}},innerHTML:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_innerHTML},set:function(e){this.node.__shady_innerHTML=e}},textContent:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_textContent},set:function(e){this.node.__shady_textContent=e}},slot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_slot},set:function(e){this.node.__shady_slot=e}},className:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_className},set:function(e){return this.node.__shady_className=e}}}),ge.forEach((function(e){return rn(e)})),ve.forEach((function(e){return rn(e)}));var sn=new WeakMap;function on(e){if(m(e)||e instanceof nn)return e;var t=sn.get(e);return t||(t=new nn(e),sn.set(e,t)),t}if(d.F){var an=d.c?function(e){return e}:function(e){return $(e),V(e),e};window.ShadyDOM={inUse:d.F,patch:an,isShadyRoot:m,enqueue:B,flush:L,flushInitial:function(e){!e.H&&e.j&&Nt(e)},settings:d,filterMutations:function(e,t){var n=t.getRootNode();return e.map((function(e){var t=n===e.target.getRootNode();if(t&&e.addedNodes){if((t=[].slice.call(e.addedNodes).filter((function(e){return n===e.getRootNode()}))).length)return e=Object.create(e),Object.defineProperty(e,"addedNodes",{value:t,configurable:!0}),e}else if(t)return e})).filter((function(e){return e}))},observeChildren:function(e,t){var n=f(e);n.m||(n.m=new Gt),n.m.w.add(t);var r=n.m;return{P:t,S:r,R:e,takeRecords:function(){return r.takeRecords()}}},unobserveChildren:function(e){var t=e&&e.S;t&&(t.w.delete(e.P),t.w.size||(f(e.R).m=null))},deferConnectionCallbacks:d.deferConnectionCallbacks,preferPerformance:d.preferPerformance,handlesDynamicScoping:!0,wrap:d.g?on:an,wrapIfNeeded:!0===d.g?on:function(e){return e},Wrapper:nn,composedPath:function(e){return e.__composedPath||(e.__composedPath=ee(e.target,!0)),e.__composedPath},noPatch:d.g,patchOnDemand:d.G,nativeMethods:Vt,nativeTree:$t,patchElementProto:mt},function(){var e=["dispatchEvent","addEventListener","removeEventListener"];window.EventTarget?Yt(window.EventTarget.prototype,e):(Yt(Node.prototype,e),Yt(Window.prototype,e)),Ht?Yt(Node.prototype,"parentNode firstChild lastChild previousSibling nextSibling childNodes parentElement textContent".split(" ")):Qt(Node.prototype,{parentNode:{get:function(){return Xt.currentNode=this,Xt.parentNode()}},firstChild:{get:function(){return Xt.currentNode=this,Xt.firstChild()}},lastChild:{get:function(){return Xt.currentNode=this,Xt.lastChild()}},previousSibling:{get:function(){return Xt.currentNode=this,Xt.previousSibling()}},nextSibling:{get:function(){return Xt.currentNode=this,Xt.nextSibling()}},childNodes:{get:function(){var e=[];Xt.currentNode=this;for(var t=Xt.firstChild();t;)e.push(t),t=Xt.nextSibling();return e}},parentElement:{get:function(){return Kt.currentNode=this,Kt.parentNode()}},textContent:{get:function(){switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:for(var e,t=document.createTreeWalker(this,NodeFilter.SHOW_TEXT,null,!1),n="";e=t.nextNode();)n+=e.nodeValue;return n;default:return this.nodeValue}},set:function(e){switch(null==e&&(e=""),this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:Jt(this),(0<e.length||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_native_insertBefore(document.createTextNode(e),void 0);break;default:this.nodeValue=e}}}}),Yt(Node.prototype,"appendChild insertBefore removeChild replaceChild cloneNode contains".split(" ")),Yt(HTMLElement.prototype,["parentElement","contains"]),e={firstElementChild:{get:function(){return Kt.currentNode=this,Kt.firstChild()}},lastElementChild:{get:function(){return Kt.currentNode=this,Kt.lastChild()}},children:{get:function(){var e=[];Kt.currentNode=this;for(var t=Kt.firstChild();t;)e.push(t),t=Kt.nextSibling();return S(e)}},childElementCount:{get:function(){return this.children?this.children.length:0}}},Ht?(Yt(Element.prototype,en),Yt(Element.prototype,["previousElementSibling","nextElementSibling","innerHTML","className"]),Yt(HTMLElement.prototype,["children","innerHTML","className"])):(Qt(Element.prototype,e),Qt(Element.prototype,{previousElementSibling:{get:function(){return Kt.currentNode=this,Kt.previousSibling()}},nextElementSibling:{get:function(){return Kt.currentNode=this,Kt.nextSibling()}},innerHTML:{get:function(){return et(this,T)},set:function(e){var t="template"===this.localName?this.content:this;Jt(t);var n=this.localName||"div";for((n=this.namespaceURI&&this.namespaceURI!==Zt.namespaceURI?Zt.createElementNS(this.namespaceURI,n):Zt.createElement(n)).innerHTML=e,e="template"===this.localName?n.content:n;n=e.__shady_native_firstChild;)t.__shady_native_insertBefore(n,void 0)}},className:{get:function(){return this.getAttribute("class")||""},set:function(e){this.setAttribute("class",e)}}})),Yt(Element.prototype,"setAttribute getAttribute hasAttribute removeAttribute focus blur".split(" ")),Yt(Element.prototype,tn),Yt(HTMLElement.prototype,["focus","blur"]),window.HTMLTemplateElement&&Yt(window.HTMLTemplateElement.prototype,["innerHTML"]),Ht?Yt(DocumentFragment.prototype,en):Qt(DocumentFragment.prototype,e),Yt(DocumentFragment.prototype,tn),Ht?(Yt(Document.prototype,en),Yt(Document.prototype,["activeElement"])):Qt(Document.prototype,e),Yt(Document.prototype,["importNode","getElementById"]),Yt(Document.prototype,tn)}(),pt("__shady_"),Object.defineProperty(document,"_activeElement",ot.activeElement),M(Window.prototype,lt,"__shady_"),d.g?d.G&&M(Element.prototype,We):(pt(),function(){if(!Q&&Object.getOwnPropertyDescriptor(Event.prototype,"isTrusted")){var e=function(){var e=new MouseEvent("click",{bubbles:!0,cancelable:!0,composed:!0});this.__shady_dispatchEvent(e)};Element.prototype.click?Element.prototype.click=e:HTMLElement.prototype.click&&(HTMLElement.prototype.click=e)}}()),function(){for(var e in re)window.__shady_native_addEventListener(e,(function(e){e.__target||(de(e),oe(e))}),!0)}(),window.Event=he,window.CustomEvent=pe,window.MouseEvent=me,window.ShadowRoot=Ot}}).call(this)},522:(e,t,n)=>{"use strict";const r=n(3023);function i(e){if("group"===e.type)return new s(e.name,e.addresses.map(i));let t;e.parts.comments&&(t=e.parts.comments.map((function(e){return e.tokens.trim()})).join(" ").trim());let n=e.local;return!e.name&&/:/.test(n)&&(n=`"${n}"`),new o(e.name,`${n}@${e.domain}`,t)}t.parse=function(e,t){if(!e)throw new Error("Nothing to parse");e=e.trim();const n=r({input:e,rfc6532:!0,partial:!1,simple:!1,strict:!1,rejectTLD:!1,startAt:t||null,atInDisplayName:!0});if(!n)throw new Error("No results");return n.addresses.map(i)},t.parseFrom=function(e){return t.parse(e,"from")},t.parseSender=function(e){return t.parse(e,"sender")},t.parseReplyTo=function(e){return t.parse(e,"reply-to")};class s{constructor(e,t){this.phrase=e,this.addresses=t}format(){return`${this.phrase}:${this.addresses.map((function(e){return e.format()})).join(",")}`}name(){let e=this.phrase;e&&e.length||(e=this.comment);return a(e)}}class o{constructor(e,t,n){this.phrase=e||"",this.address=t||"",this.comment=n||""}host(){const e=/.*@(.*)$/.exec(this.address);return e?e[1]:null}user(){const e=/^(.*)@/.exec(this.address);return e?e[1]:null}format(){const e=this.phrase,t=this.address;let n=this.comment;const r=[],i=new RegExp("^[\\-\\w !#$%&'*+/=?^`{|}~]+$");return e&&e.length?(r.push(i.test(e.trim())||function(e){if(/^"/.test(e))return!0;let t;for(;t=/^[\s\S]*?([\s\S])"/.exec(e);){if("\\"!==t[1])return!0;e=e.substr(t[0].length)}return!1}(e)?e:`"${e}"`),t&&t.length&&r.push(`<${t}>`)):t&&t.length&&r.push(t),n&&/\S/.test(n)&&(n=n.replace(/^\s*\(?/,"(").replace(/\)?\s*$/,")")),n&&n.length&&r.push(n),r.join(" ")}name(){let e=this.phrase;const t=this.address;e&&e.length||(e=this.comment);let n=a(e);if(""===n){const e=/([^%.@_]+([._][^%.@_]+)+)[@%]/.exec(t);e&&(n=e[1].replace(/[._]+/g," "),n=a(n))}if(""===n&&/\/g=/i.test(t)){let e=/\/g=([^/]*)/i.exec(t);const r=e[1];e=/\/s=([^/]*)/i.exec(t);n=a(`${r} ${e[1]}`)}return n}}function a(e){return/=?.*?\?=/.test(e)?"":(e=(e=e.trim()).replace(/\s+/," "),/^[\d ]+$/.test(e)?"":(e=e.replace(/^\((.*)\)$/,"$1").replace(/^"(.*)"$/,"$1").replace(/\(.*?\)/g,"").replace(/\\/g,"").replace(/^"(.*)"$/,"$1").replace(/^([^\s]+) ?, ?(.*)$/,"$2 $1").replace(/,.*/,""),(t.isAllUpper(e)||t.isAllLower(e))&&(e=t.nameCase(e)),e=e.replace(/\[[^\]]*\]/g,"").replace(/(^[\s'"]+|[\s'"]+$)/g,"").replace(/\s{2,}/g," ")))}t.Address=o,t.isAllLower=function(e){return e===e.toLowerCase()},t.isAllUpper=function(e){return e===e.toUpperCase()},t.nameCase=function(e){return e.toLowerCase().replace(/\b(\w+)/g,(function(e,t){return t.charAt(0).toUpperCase()+t.slice(1)})).replace(/\bMc(\w)/gi,(function(e,t){return"Mc"+t.toUpperCase()})).replace(/\bo'(\w)/gi,(function(e,t){return"O'"+t.toUpperCase()})).replace(/\b(x*(ix)?v*(iv)?i*)\b/gi,(function(e,t){return t.toUpperCase()}))}},4048:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6660);t.openingParenthesis="([\"'{",t.closingParenthesis=")]\"'}",t.parenthesis=t.openingParenthesis.split("").map((function(e,n){return""+e+t.closingParenthesis.charAt(n)})),t.htmlAttributes=["src","data","href","cite","formaction","icon","manifest","poster","codebase","background","profile","usemap","itemtype","action","longdesc","classid","archive"],t.nonLatinAlphabetRanges="\\u0041-\\u005A\\u0061-\\u007A\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0\\u08A2-\\u08AC\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097F\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C33\\u0C35-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191C\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA697\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA793\\uA7A0-\\uA7AA\\uA7F8-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA80-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC",t.TLDs=r.TLDs},5176:(e,t,n)=>{"use strict";var r=n(4048),i=n(7182),s=n(8103),o=n(6371),a=function(e){for(var t=[],n=null,i=function(){var i=n.index,a=i+n[0].length,c=n[0];if("/"===e.charAt(a)&&(c+=e.charAt(a),a++),r.closingParenthesis.indexOf(e.charAt(a))>-1&&r.parenthesis.forEach((function(t){var n=t.charAt(0),r=t.charAt(1);o.checkParenthesis(n,r,c,e.charAt(a))&&(c+=e.charAt(a),a++)})),-1!==['""',"''","()"].indexOf(e.charAt(i-1)+e.charAt(a))&&o.isInsideAttribute(e.substring(i-o.maximumAttrLength-15,i)))return"continue";if(e.substring(a,e.length).indexOf("</a>")>-1&&e.substring(0,i).indexOf("<a")>-1&&o.isInsideAnchorTag(c,e,a))return"continue";if(n[s.iidxes.isURL]){var l=(n[s.iidxes.url.path]||"")+(n[s.iidxes.url.secondPartOfPath]||"")||void 0,f=n[s.iidxes.url.protocol1]||n[s.iidxes.url.protocol2]||n[s.iidxes.url.protocol3];t.push({start:i,end:a,string:c,isURL:!0,protocol:f,port:n[s.iidxes.url.port],ipv4:n[s.iidxes.url.ipv4Confirmation]?n[s.iidxes.url.ipv4]:void 0,ipv6:n[s.iidxes.url.ipv6],host:n[s.iidxes.url.byProtocol]?void 0:(n[s.iidxes.url.protocolWithDomain]||"").substr((f||"").length),confirmedByProtocol:!!n[s.iidxes.url.byProtocol],path:n[s.iidxes.url.byProtocol]?void 0:l,query:n[s.iidxes.url.query]||void 0,fragment:n[s.iidxes.url.fragment]||void 0})}else if(n[s.iidxes.isFile]){var u=c.substr(8);t.push({start:i,end:a,string:c,isFile:!0,protocol:n[s.iidxes.file.protocol],filename:n[s.iidxes.file.fileName],filePath:u,fileDirectory:u.substr(0,u.length-n[s.iidxes.file.fileName].length)})}else n[s.iidxes.isEmail]?t.push({start:i,end:a,string:c,isEmail:!0,local:n[s.iidxes.email.local],protocol:n[s.iidxes.email.protocol],host:n[s.iidxes.email.host]}):t.push({start:i,end:a,string:c})};null!==(n=s.finalRegex.exec(e));)i();return t},c=function(e){var t="string"==typeof e?{input:e,options:void 0,extensions:void 0}:e,n=t.input,r=t.options,s=t.extensions;if(s)for(var o=0;o<s.length;o++){var c=s[o];n=n.replace(c.test,c.transform)}var l=a(n),f="";for(o=0;o<l.length;o++)f=(f||(0===o?n.substring(0,l[o].start):""))+i.transform(l[o],r)+(l[o+1]?n.substring(l[o].end,l[o+1].start):n.substring(l[o].end));return f||n};c.list=function(e){return a(e)},c.validate={ip:function(e){return s.ipRegex.test(e)},email:function(e){return s.emailRegex.test(e)},file:function(e){return s.fileRegex.test(e)},url:function(e){return s.urlRegex.test(e)||s.ipRegex.test(e)}},t.Z=c},8103:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4048),i="([a-z0-9]+(-+[a-z0-9]+)*\\.)+("+r.TLDs+")",s="a-zA-Z\\d\\-._~\\!$&*+,;=:@%'\"\\[\\]()",o="((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",a="\\[(([a-f0-9:]+:+)+[a-f0-9]+)\\]",c="(https?:|ftps?:)\\/\\/",l="((("+c+")?("+i+"|"+o+"|("+c+")("+a+"|"+("([a-z0-9]+(-+[a-z0-9]+)*\\.)+([a-z0-9][a-z0-9-]{0,"+(Math.max.apply(this,r.TLDs.split("|").map((function(e){return e.length})))-2)+"}[a-z0-9])")+"))(?!@\\w)(:(\\d{1,5}))?)|(((https?:|ftps?:)\\/\\/)\\S+))",f=l+"((((\\/((["+s+"]+(\\/["+s+r.nonLatinAlphabetRanges+"]*)*))?)?)((\\?(["+s+"\\/?]*))?)((\\#(["+s+"\\/?]*))?))?\\b(((["+s+"\\/"+r.nonLatinAlphabetRanges+"][a-zA-Z\\d\\-_~+=\\/"+r.nonLatinAlphabetRanges+"]+)?))+)";t.email="\\b(mailto:)?([a-z0-9!#$%&'*+=?^_`{|}~-]+(\\.[a-z0-9!#$%&'*+=?^_`{|}~-]+)*)@("+i+"|"+o+")\\b",t.url="("+f+")|(\\b"+l+"(((\\/(([a-zA-Z\\d\\-._~\\!$&*+,;=:@%'\"\\[\\]()]+(\\/[a-zA-Z\\d\\-._~\\!$&*+,;=:@%'\"\\[\\]()]*)*))?)?)((\\?([a-zA-Z\\d\\-._~\\!$&*+,;=:@%'\"\\[\\]()\\/?]*))?)((\\#([a-zA-Z\\d\\-._~\\!$&*+,;=:@%'\"\\[\\]()\\/?]*))?))?\\b(([\\/]?))+)",t.file="(file:\\/\\/\\/)([a-z]+:(\\/|\\\\)+)?([\\w.]+([\\/\\\\]?)+)+",t.final="("+t.url+")|("+t.email+")|("+t.file+")",t.finalRegex=new RegExp(t.final,"gi"),t.ipRegex=new RegExp("^("+o+"|"+a+")$","i"),t.emailRegex=new RegExp("^("+t.email+")$","i"),t.fileRegex=new RegExp("^("+t.file+")$","i"),t.urlRegex=new RegExp("^("+t.url+")$","i");var u={isURL:0,isEmail:0,isFile:0,file:{fileName:0,protocol:0},email:{protocol:0,local:0,host:0},url:{ipv4:0,ipv6:0,ipv4Confirmation:0,byProtocol:0,port:0,protocol1:0,protocol2:0,protocol3:0,protocolWithDomain:0,path:0,secondPartOfPath:0,query:0,fragment:0}};t.iidxes=u;for(var d=["file:///some/file/path/filename.pdf","mailto:e+_mail.me@sub.domain.com","http://sub.domain.co.uk:3000/p/a/t/h_(asd)/h?q=abc123#dfdf","http://www.عربي.com","http://127.0.0.1:3000/p/a/t_(asd)/h?q=abc123#dfdf","http://[2a00:1450:4025:401::67]/k/something","a.org/abc/ი_გგ"].join(" "),h=null,p=0;null!==(h=t.finalRegex.exec(d));)0===p&&(u.isFile=h.lastIndexOf(h[0]),u.file.fileName=h.indexOf("filename.pdf"),u.file.protocol=h.indexOf("file:///")),1===p&&(u.isEmail=h.lastIndexOf(h[0]),u.email.protocol=h.indexOf("mailto:"),u.email.local=h.indexOf("e+_mail.me"),u.email.host=h.indexOf("sub.domain.com")),2===p&&(u.isURL=h.lastIndexOf(h[0]),u.url.protocol1=h.indexOf("http://"),u.url.protocolWithDomain=h.indexOf("http://sub.domain.co.uk:3000"),u.url.port=h.indexOf("3000"),u.url.path=h.indexOf("/p/a/t/h_(asd)/h"),u.url.query=h.indexOf("q=abc123"),u.url.fragment=h.indexOf("dfdf")),3===p&&(u.url.byProtocol=h.lastIndexOf("http://www.عربي.com"),u.url.protocol2=h.lastIndexOf("http://")),4===p&&(u.url.ipv4=h.indexOf("127.0.0.1"),u.url.ipv4Confirmation=h.indexOf("0.")),5===p&&(u.url.ipv6=h.indexOf("2a00:1450:4025:401::67"),u.url.protocol3=h.lastIndexOf("http://")),6===p&&(u.url.secondPartOfPath=h.indexOf("გგ")),p++},6660:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TLDs="(AAA|AARP|ABARTH|ABB|ABBOTT|ABBVIE|ABC|ABLE|ABOGADO|ABUDHABI|AC|ACADEMY|ACCENTURE|ACCOUNTANT|ACCOUNTANTS|ACO|ACTOR|AD|ADAC|ADS|ADULT|AE|AEG|AERO|AETNA|AF|AFAMILYCOMPANY|AFL|AFRICA|AG|AGAKHAN|AGENCY|AI|AIG|AIGO|AIRBUS|AIRFORCE|AIRTEL|AKDN|AL|ALFAROMEO|ALIBABA|ALIPAY|ALLFINANZ|ALLSTATE|ALLY|ALSACE|ALSTOM|AM|AMERICANEXPRESS|AMERICANFAMILY|AMEX|AMFAM|AMICA|AMSTERDAM|ANALYTICS|ANDROID|ANQUAN|ANZ|AO|AOL|APARTMENTS|APP|APPLE|AQ|AQUARELLE|AR|ARAB|ARAMCO|ARCHI|ARMY|ARPA|ART|ARTE|AS|ASDA|ASIA|ASSOCIATES|AT|ATHLETA|ATTORNEY|AU|AUCTION|AUDI|AUDIBLE|AUDIO|AUSPOST|AUTHOR|AUTO|AUTOS|AVIANCA|AW|AWS|AX|AXA|AZ|AZURE|BA|BABY|BAIDU|BANAMEX|BANANAREPUBLIC|BAND|BANK|BAR|BARCELONA|BARCLAYCARD|BARCLAYS|BAREFOOT|BARGAINS|BASEBALL|BASKETBALL|BAUHAUS|BAYERN|BB|BBC|BBT|BBVA|BCG|BCN|BD|BE|BEATS|BEAUTY|BEER|BENTLEY|BERLIN|BEST|BESTBUY|BET|BF|BG|BH|BHARTI|BI|BIBLE|BID|BIKE|BING|BINGO|BIO|BIZ|BJ|BLACK|BLACKFRIDAY|BLOCKBUSTER|BLOG|BLOOMBERG|BLUE|BM|BMS|BMW|BN|BNPPARIBAS|BO|BOATS|BOEHRINGER|BOFA|BOM|BOND|BOO|BOOK|BOOKING|BOSCH|BOSTIK|BOSTON|BOT|BOUTIQUE|BOX|BR|BRADESCO|BRIDGESTONE|BROADWAY|BROKER|BROTHER|BRUSSELS|BS|BT|BUDAPEST|BUGATTI|BUILD|BUILDERS|BUSINESS|BUY|BUZZ|BV|BW|BY|BZ|BZH|CA|CAB|CAFE|CAL|CALL|CALVINKLEIN|CAM|CAMERA|CAMP|CANCERRESEARCH|CANON|CAPETOWN|CAPITAL|CAPITALONE|CAR|CARAVAN|CARDS|CARE|CAREER|CAREERS|CARS|CASA|CASE|CASEIH|CASH|CASINO|CAT|CATERING|CATHOLIC|CBA|CBN|CBRE|CBS|CC|CD|CEB|CENTER|CEO|CERN|CF|CFA|CFD|CG|CH|CHANEL|CHANNEL|CHARITY|CHASE|CHAT|CHEAP|CHINTAI|CHRISTMAS|CHROME|CHURCH|CI|CIPRIANI|CIRCLE|CISCO|CITADEL|CITI|CITIC|CITY|CITYEATS|CK|CL|CLAIMS|CLEANING|CLICK|CLINIC|CLINIQUE|CLOTHING|CLOUD|CLUB|CLUBMED|CM|CN|CO|COACH|CODES|COFFEE|COLLEGE|COLOGNE|COM|COMCAST|COMMBANK|COMMUNITY|COMPANY|COMPARE|COMPUTER|COMSEC|CONDOS|CONSTRUCTION|CONSULTING|CONTACT|CONTRACTORS|COOKING|COOKINGCHANNEL|COOL|COOP|CORSICA|COUNTRY|COUPON|COUPONS|COURSES|CPA|CR|CREDIT|CREDITCARD|CREDITUNION|CRICKET|CROWN|CRS|CRUISE|CRUISES|CSC|CU|CUISINELLA|CV|CW|CX|CY|CYMRU|CYOU|CZ|DABUR|DAD|DANCE|DATA|DATE|DATING|DATSUN|DAY|DCLK|DDS|DE|DEAL|DEALER|DEALS|DEGREE|DELIVERY|DELL|DELOITTE|DELTA|DEMOCRAT|DENTAL|DENTIST|DESI|DESIGN|DEV|DHL|DIAMONDS|DIET|DIGITAL|DIRECT|DIRECTORY|DISCOUNT|DISCOVER|DISH|DIY|DJ|DK|DM|DNP|DO|DOCS|DOCTOR|DOG|DOMAINS|DOT|DOWNLOAD|DRIVE|DTV|DUBAI|DUCK|DUNLOP|DUPONT|DURBAN|DVAG|DVR|DZ|EARTH|EAT|EC|ECO|EDEKA|EDU|EDUCATION|EE|EG|EMAIL|EMERCK|ENERGY|ENGINEER|ENGINEERING|ENTERPRISES|EPSON|EQUIPMENT|ER|ERICSSON|ERNI|ES|ESQ|ESTATE|ESURANCE|ET|ETISALAT|EU|EUROVISION|EUS|EVENTS|EXCHANGE|EXPERT|EXPOSED|EXPRESS|EXTRASPACE|FAGE|FAIL|FAIRWINDS|FAITH|FAMILY|FAN|FANS|FARM|FARMERS|FASHION|FAST|FEDEX|FEEDBACK|FERRARI|FERRERO|FI|FIAT|FIDELITY|FIDO|FILM|FINAL|FINANCE|FINANCIAL|FIRE|FIRESTONE|FIRMDALE|FISH|FISHING|FIT|FITNESS|FJ|FK|FLICKR|FLIGHTS|FLIR|FLORIST|FLOWERS|FLY|FM|FO|FOO|FOOD|FOODNETWORK|FOOTBALL|FORD|FOREX|FORSALE|FORUM|FOUNDATION|FOX|FR|FREE|FRESENIUS|FRL|FROGANS|FRONTDOOR|FRONTIER|FTR|FUJITSU|FUJIXEROX|FUN|FUND|FURNITURE|FUTBOL|FYI|GA|GAL|GALLERY|GALLO|GALLUP|GAME|GAMES|GAP|GARDEN|GAY|GB|GBIZ|GD|GDN|GE|GEA|GENT|GENTING|GEORGE|GF|GG|GGEE|GH|GI|GIFT|GIFTS|GIVES|GIVING|GL|GLADE|GLASS|GLE|GLOBAL|GLOBO|GM|GMAIL|GMBH|GMO|GMX|GN|GODADDY|GOLD|GOLDPOINT|GOLF|GOO|GOODYEAR|GOOG|GOOGLE|GOP|GOT|GOV|GP|GQ|GR|GRAINGER|GRAPHICS|GRATIS|GREEN|GRIPE|GROCERY|GROUP|GS|GT|GU|GUARDIAN|GUCCI|GUGE|GUIDE|GUITARS|GURU|GW|GY|HAIR|HAMBURG|HANGOUT|HAUS|HBO|HDFC|HDFCBANK|HEALTH|HEALTHCARE|HELP|HELSINKI|HERE|HERMES|HGTV|HIPHOP|HISAMITSU|HITACHI|HIV|HK|HKT|HM|HN|HOCKEY|HOLDINGS|HOLIDAY|HOMEDEPOT|HOMEGOODS|HOMES|HOMESENSE|HONDA|HORSE|HOSPITAL|HOST|HOSTING|HOT|HOTELES|HOTELS|HOTMAIL|HOUSE|HOW|HR|HSBC|HT|HU|HUGHES|HYATT|HYUNDAI|IBM|ICBC|ICE|ICU|ID|IE|IEEE|IFM|IKANO|IL|IM|IMAMAT|IMDB|IMMO|IMMOBILIEN|IN|INC|INDUSTRIES|INFINITI|INFO|ING|INK|INSTITUTE|INSURANCE|INSURE|INT|INTEL|INTERNATIONAL|INTUIT|INVESTMENTS|IO|IPIRANGA|IQ|IR|IRISH|IS|ISMAILI|IST|ISTANBUL|IT|ITAU|ITV|IVECO|JAGUAR|JAVA|JCB|JCP|JE|JEEP|JETZT|JEWELRY|JIO|JLL|JM|JMP|JNJ|JO|JOBS|JOBURG|JOT|JOY|JP|JPMORGAN|JPRS|JUEGOS|JUNIPER|KAUFEN|KDDI|KE|KERRYHOTELS|KERRYLOGISTICS|KERRYPROPERTIES|KFH|KG|KH|KI|KIA|KIM|KINDER|KINDLE|KITCHEN|KIWI|KM|KN|KOELN|KOMATSU|KOSHER|KP|KPMG|KPN|KR|KRD|KRED|KUOKGROUP|KW|KY|KYOTO|KZ|LA|LACAIXA|LAMBORGHINI|LAMER|LANCASTER|LANCIA|LAND|LANDROVER|LANXESS|LASALLE|LAT|LATINO|LATROBE|LAW|LAWYER|LB|LC|LDS|LEASE|LECLERC|LEFRAK|LEGAL|LEGO|LEXUS|LGBT|LI|LIDL|LIFE|LIFEINSURANCE|LIFESTYLE|LIGHTING|LIKE|LILLY|LIMITED|LIMO|LINCOLN|LINDE|LINK|LIPSY|LIVE|LIVING|LIXIL|LK|LLC|LLP|LOAN|LOANS|LOCKER|LOCUS|LOFT|LOL|LONDON|LOTTE|LOTTO|LOVE|LPL|LPLFINANCIAL|LR|LS|LT|LTD|LTDA|LU|LUNDBECK|LUPIN|LUXE|LUXURY|LV|LY|MA|MACYS|MADRID|MAIF|MAISON|MAKEUP|MAN|MANAGEMENT|MANGO|MAP|MARKET|MARKETING|MARKETS|MARRIOTT|MARSHALLS|MASERATI|MATTEL|MBA|MC|MCKINSEY|MD|ME|MED|MEDIA|MEET|MELBOURNE|MEME|MEMORIAL|MEN|MENU|MERCKMSD|METLIFE|MG|MH|MIAMI|MICROSOFT|MIL|MINI|MINT|MIT|MITSUBISHI|MK|ML|MLB|MLS|MM|MMA|MN|MO|MOBI|MOBILE|MODA|MOE|MOI|MOM|MONASH|MONEY|MONSTER|MORMON|MORTGAGE|MOSCOW|MOTO|MOTORCYCLES|MOV|MOVIE|MP|MQ|MR|MS|MSD|MT|MTN|MTR|MU|MUSEUM|MUTUAL|MV|MW|MX|MY|MZ|NA|NAB|NAGOYA|NAME|NATIONWIDE|NATURA|NAVY|NBA|NC|NE|NEC|NET|NETBANK|NETFLIX|NETWORK|NEUSTAR|NEW|NEWHOLLAND|NEWS|NEXT|NEXTDIRECT|NEXUS|NF|NFL|NG|NGO|NHK|NI|NICO|NIKE|NIKON|NINJA|NISSAN|NISSAY|NL|NO|NOKIA|NORTHWESTERNMUTUAL|NORTON|NOW|NOWRUZ|NOWTV|NP|NR|NRA|NRW|NTT|NU|NYC|NZ|OBI|OBSERVER|OFF|OFFICE|OKINAWA|OLAYAN|OLAYANGROUP|OLDNAVY|OLLO|OM|OMEGA|ONE|ONG|ONL|ONLINE|ONYOURSIDE|OOO|OPEN|ORACLE|ORANGE|ORG|ORGANIC|ORIGINS|OSAKA|OTSUKA|OTT|OVH|PA|PAGE|PANASONIC|PARIS|PARS|PARTNERS|PARTS|PARTY|PASSAGENS|PAY|PCCW|PE|PET|PF|PFIZER|PG|PH|PHARMACY|PHD|PHILIPS|PHONE|PHOTO|PHOTOGRAPHY|PHOTOS|PHYSIO|PICS|PICTET|PICTURES|PID|PIN|PING|PINK|PIONEER|PIZZA|PK|PL|PLACE|PLAY|PLAYSTATION|PLUMBING|PLUS|PM|PN|PNC|POHL|POKER|POLITIE|PORN|POST|PR|PRAMERICA|PRAXI|PRESS|PRIME|PRO|PROD|PRODUCTIONS|PROF|PROGRESSIVE|PROMO|PROPERTIES|PROPERTY|PROTECTION|PRU|PRUDENTIAL|PS|PT|PUB|PW|PWC|PY|QA|QPON|QUEBEC|QUEST|QVC|RACING|RADIO|RAID|RE|READ|REALESTATE|REALTOR|REALTY|RECIPES|RED|REDSTONE|REDUMBRELLA|REHAB|REISE|REISEN|REIT|RELIANCE|REN|RENT|RENTALS|REPAIR|REPORT|REPUBLICAN|REST|RESTAURANT|REVIEW|REVIEWS|REXROTH|RICH|RICHARDLI|RICOH|RIGHTATHOME|RIL|RIO|RIP|RMIT|RO|ROCHER|ROCKS|RODEO|ROGERS|ROOM|RS|RSVP|RU|RUGBY|RUHR|RUN|RW|RWE|RYUKYU|SA|SAARLAND|SAFE|SAFETY|SAKURA|SALE|SALON|SAMSCLUB|SAMSUNG|SANDVIK|SANDVIKCOROMANT|SANOFI|SAP|SARL|SAS|SAVE|SAXO|SB|SBI|SBS|SC|SCA|SCB|SCHAEFFLER|SCHMIDT|SCHOLARSHIPS|SCHOOL|SCHULE|SCHWARZ|SCIENCE|SCJOHNSON|SCOR|SCOT|SD|SE|SEARCH|SEAT|SECURE|SECURITY|SEEK|SELECT|SENER|SERVICES|SES|SEVEN|SEW|SEX|SEXY|SFR|SG|SH|SHANGRILA|SHARP|SHAW|SHELL|SHIA|SHIKSHA|SHOES|SHOP|SHOPPING|SHOUJI|SHOW|SHOWTIME|SHRIRAM|SI|SILK|SINA|SINGLES|SITE|SJ|SK|SKI|SKIN|SKY|SKYPE|SL|SLING|SM|SMART|SMILE|SN|SNCF|SO|SOCCER|SOCIAL|SOFTBANK|SOFTWARE|SOHU|SOLAR|SOLUTIONS|SONG|SONY|SOY|SPACE|SPORT|SPOT|SPREADBETTING|SR|SRL|SS|ST|STADA|STAPLES|STAR|STATEBANK|STATEFARM|STC|STCGROUP|STOCKHOLM|STORAGE|STORE|STREAM|STUDIO|STUDY|STYLE|SU|SUCKS|SUPPLIES|SUPPLY|SUPPORT|SURF|SURGERY|SUZUKI|SV|SWATCH|SWIFTCOVER|SWISS|SX|SY|SYDNEY|SYMANTEC|SYSTEMS|SZ|TAB|TAIPEI|TALK|TAOBAO|TARGET|TATAMOTORS|TATAR|TATTOO|TAX|TAXI|TC|TCI|TD|TDK|TEAM|TECH|TECHNOLOGY|TEL|TEMASEK|TENNIS|TEVA|TF|TG|TH|THD|THEATER|THEATRE|TIAA|TICKETS|TIENDA|TIFFANY|TIPS|TIRES|TIROL|TJ|TJMAXX|TJX|TK|TKMAXX|TL|TM|TMALL|TN|TO|TODAY|TOKYO|TOOLS|TOP|TORAY|TOSHIBA|TOTAL|TOURS|TOWN|TOYOTA|TOYS|TR|TRADE|TRADING|TRAINING|TRAVEL|TRAVELCHANNEL|TRAVELERS|TRAVELERSINSURANCE|TRUST|TRV|TT|TUBE|TUI|TUNES|TUSHU|TV|TVS|TW|TZ|UA|UBANK|UBS|UG|UK|UNICOM|UNIVERSITY|UNO|UOL|UPS|US|UY|UZ|VA|VACATIONS|VANA|VANGUARD|VC|VE|VEGAS|VENTURES|VERISIGN|VERSICHERUNG|VET|VG|VI|VIAJES|VIDEO|VIG|VIKING|VILLAS|VIN|VIP|VIRGIN|VISA|VISION|VIVA|VIVO|VLAANDEREN|VN|VODKA|VOLKSWAGEN|VOLVO|VOTE|VOTING|VOTO|VOYAGE|VU|VUELOS|WALES|WALMART|WALTER|WANG|WANGGOU|WATCH|WATCHES|WEATHER|WEATHERCHANNEL|WEBCAM|WEBER|WEBSITE|WED|WEDDING|WEIBO|WEIR|WF|WHOSWHO|WIEN|WIKI|WILLIAMHILL|WIN|WINDOWS|WINE|WINNERS|WME|WOLTERSKLUWER|WOODSIDE|WORK|WORKS|WORLD|WOW|WS|WTC|WTF|XBOX|XEROX|XFINITY|XIHUAN|XIN|XN--11B4C3D|XN--1CK2E1B|XN--1QQW23A|XN--2SCRJ9C|XN--30RR7Y|XN--3BST00M|XN--3DS443G|XN--3E0B707E|XN--3HCRJ9C|XN--3OQ18VL8PN36A|XN--3PXU8K|XN--42C2D9A|XN--45BR5CYL|XN--45BRJ9C|XN--45Q11C|XN--4GBRIM|XN--54B7FTA0CC|XN--55QW42G|XN--55QX5D|XN--5SU34J936BGSG|XN--5TZM5G|XN--6FRZ82G|XN--6QQ986B3XL|XN--80ADXHKS|XN--80AO21A|XN--80AQECDR1A|XN--80ASEHDB|XN--80ASWG|XN--8Y0A063A|XN--90A3AC|XN--90AE|XN--90AIS|XN--9DBQ2A|XN--9ET52U|XN--9KRT00A|XN--B4W605FERD|XN--BCK1B9A5DRE4C|XN--C1AVG|XN--C2BR7G|XN--CCK2B3B|XN--CG4BKI|XN--CLCHC0EA0B2G2A9GCD|XN--CZR694B|XN--CZRS0T|XN--CZRU2D|XN--D1ACJ3B|XN--D1ALF|XN--E1A4C|XN--ECKVDTC9D|XN--EFVY88H|XN--FCT429K|XN--FHBEI|XN--FIQ228C5HS|XN--FIQ64B|XN--FIQS8S|XN--FIQZ9S|XN--FJQ720A|XN--FLW351E|XN--FPCRJ9C3D|XN--FZC2C9E2C|XN--FZYS8D69UVGM|XN--G2XX48C|XN--GCKR3F0F|XN--GECRJ9C|XN--GK3AT1E|XN--H2BREG3EVE|XN--H2BRJ9C|XN--H2BRJ9C8C|XN--HXT814E|XN--I1B6B1A6A2E|XN--IMR513N|XN--IO0A7I|XN--J1AEF|XN--J1AMH|XN--J6W193G|XN--JLQ61U9W7B|XN--JVR189M|XN--KCRX77D1X4A|XN--KPRW13D|XN--KPRY57D|XN--KPU716F|XN--KPUT3I|XN--L1ACC|XN--LGBBAT1AD8J|XN--MGB9AWBF|XN--MGBA3A3EJT|XN--MGBA3A4F16A|XN--MGBA7C0BBN0A|XN--MGBAAKC7DVF|XN--MGBAAM7A8H|XN--MGBAB2BD|XN--MGBAH1A3HJKRD|XN--MGBAI9AZGQP6J|XN--MGBAYH7GPA|XN--MGBBH1A|XN--MGBBH1A71E|XN--MGBC0A9AZCG|XN--MGBCA7DZDO|XN--MGBCPQ6GPA1A|XN--MGBERP4A5D4AR|XN--MGBGU82A|XN--MGBI4ECEXP|XN--MGBPL2FH|XN--MGBT3DHD|XN--MGBTX2B|XN--MGBX4CD0AB|XN--MIX891F|XN--MK1BU44C|XN--MXTQ1M|XN--NGBC5AZD|XN--NGBE9E0A|XN--NGBRX|XN--NODE|XN--NQV7F|XN--NQV7FS00EMA|XN--NYQY26A|XN--O3CW4H|XN--OGBPF8FL|XN--OTU796D|XN--P1ACF|XN--P1AI|XN--PBT977C|XN--PGBS0DH|XN--PSSY2U|XN--Q7CE6A|XN--Q9JYB4C|XN--QCKA1PMC|XN--QXA6A|XN--QXAM|XN--RHQV96G|XN--ROVU88B|XN--RVC1E0AM3E|XN--S9BRJ9C|XN--SES554G|XN--T60B56A|XN--TCKWE|XN--TIQ49XQYJ|XN--UNUP4Y|XN--VERMGENSBERATER-CTB|XN--VERMGENSBERATUNG-PWB|XN--VHQUV|XN--VUQ861B|XN--W4R85EL8FHU5DNRA|XN--W4RS40L|XN--WGBH1C|XN--WGBL6A|XN--XHQ521B|XN--XKC2AL3HYE2A|XN--XKC2DL3A5EE0H|XN--Y9A3AQ|XN--YFRO4I67O|XN--YGBI2AMMX|XN--ZFR164B|XXX|XYZ|YACHTS|YAHOO|YAMAXUN|YANDEX|YE|YODOBASHI|YOGA|YOKOHAMA|YOU|YOUTUBE|YT|YUN|ZA|ZAPPOS|ZARA|ZERO|ZIP|ZM|ZONE|ZUERICH|ZW|TEST)"},7182:(e,t)=>{"use strict";function n(e,t,n){return"function"==typeof n?n(e,t):n}Object.defineProperty(t,"__esModule",{value:!0}),t.transform=function(e,t){var r="",i=1/0,s={},o=!1;if(t&&t.specialTransform)for(var a=0;a<t.specialTransform.length;a++){var c=t.specialTransform[a];if(c.test.test(e.string))return c.transform(e.string,e)}return t&&t.exclude&&n(e.string,e,t.exclude)?e.string:(t&&t.protocol&&(r=n(e.string,e,t.protocol)),e.protocol?r="":r||(r=e.isEmail?"mailto:":e.isFile?"file:///":"http://"),t&&t.truncate&&(i=n(e.string,e,t.truncate)),t&&t.middleTruncation&&(o=n(e.string,e,t.middleTruncation)),t&&t.attributes&&(s=n(e.string,e,t.attributes)),"<a "+Object.keys(s).map((function(e){return!0===s[e]?e:e+'="'+s[e]+'" '})).join(" ")+'href="'+r+e.string+'">'+(e.string.length>i?o?e.string.substring(0,Math.floor(i/2))+"…"+e.string.substring(e.string.length-Math.ceil(i/2),e.string.length):e.string.substring(0,i)+"…":e.string)+"</a>")}},6371:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4048);t.checkParenthesis=function(e,t,n,r){return r===t&&(n.split(e).length-n.split(t).length==1||e===t&&n.split(e).length%2==0||void 0)},t.maximumAttrLength=r.htmlAttributes.sort((function(e,t){return t.length-e.length}))[0].length,t.isInsideAttribute=function(e){return/\s[a-z0-9-]+=('|")$/i.test(e)||/: ?url\(('|")?$/i.test(e)},t.isInsideAnchorTag=function(e,t,n){for(var r=e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),i=new RegExp("(?=(<a))(?!([\\s\\S]*)(<\\/a>)("+r+"))[\\s\\S]*?("+r+")(?!\"|')","gi"),s=null;null!==(s=i.exec(t));){if(s.index+s[0].length===n)return!0}return!1}},1206:function(e){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.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 i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));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=90)}({17:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(18),i=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":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";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,r){void 0===r&&(r=!1);var i=e.getVersionPrecision(t),s=e.getVersionPrecision(n),o=Math.max(i,s),a=0,c=e.map([t,n],(function(t){var n=o-e.getVersionPrecision(t),r=t+new Array(n+1).join(".0");return e.map(r.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(r&&(a=o-Math.min(i,s)),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,r=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(n=0;n<e.length;n+=1)r.push(t(e[n]));return r},e.find=function(e,t){var n,r;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(n=0,r=e.length;n<r;n+=1){var i=e[n];if(t(i,n))return i}},e.assign=function(e){for(var t,n,r=e,i=arguments.length,s=new Array(i>1?i-1:0),o=1;o<i;o++)s[o-1]=arguments[o];if(Object.assign)return Object.assign.apply(Object,[e].concat(s));var a=function(){var e=s[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach((function(t){r[t]=e[t]}))};for(t=0,n=s.length;t<n;t+=1)a();return e},e.getBrowserAlias=function(e){return r.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return r.BROWSER_MAP[e]||""},e}();t.default=i,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",Electron:"electron",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",electron:"Electron",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 r,i=(r=n(91))&&r.__esModule?r:{default:r},s=n(18);function o(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)}}var a=function(){function e(){}var t,n,r;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 i.default(e,t)},e.parse=function(e){return new i.default(e).getResult()},t=e,r=[{key:"BROWSER_MAP",get:function(){return s.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return s.ENGINE_MAP}},{key:"OS_MAP",get:function(){return s.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return s.PLATFORMS_MAP}}],(n=null)&&o(t.prototype,n),r&&o(t,r),e}();t.default=a,e.exports=t.default},91:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=c(n(92)),i=c(n(93)),s=c(n(94)),o=c(n(95)),a=c(n(17));function c(e){return e&&e.__esModule?e:{default:e}}var l=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=a.default.find(r.default,(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=a.default.find(i.default,(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=a.default.find(s.default,(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=a.default.find(o.default,(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 a.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,n={},r=0,i={},s=0;if(Object.keys(e).forEach((function(t){var o=e[t];"string"==typeof o?(i[t]=o,s+=1):"object"==typeof o&&(n[t]=o,r+=1)})),r>0){var o=Object.keys(n),c=a.default.find(o,(function(e){return t.isOS(e)}));if(c){var l=this.satisfies(n[c]);if(void 0!==l)return l}var f=a.default.find(o,(function(e){return t.isPlatform(e)}));if(f){var u=this.satisfies(n[f]);if(void 0!==u)return u}}if(s>0){var d=Object.keys(i),h=a.default.find(d,(function(e){return t.isBrowser(e,!0)}));if(void 0!==h)return this.compareVersion(i[h])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),i=a.default.getBrowserTypeByAlias(r);return t&&i&&(r=i.toLowerCase()),r===n},t.compareVersion=function(e){var t=[0],n=e,r=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(n=e.substr(1),"="===e[1]?(r=!0,n=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?n=e.substr(1):"~"===e[0]&&(r=!0,n=e.substr(1)),t.indexOf(a.default.compareVersions(i,n,r))>-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,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||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=l,e.exports=t.default},92:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},s=/version\/(\d+(\.?_?\d+)+)/i,o=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},n=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},n=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},n=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},n=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},n=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},n=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},n=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},n=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},n=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},n=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},n=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},n=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},n=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},n=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},n=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},n=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},n=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},n=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},n=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},n=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},n=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},n=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},n=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},n=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},n=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},n=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},n=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},n=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},n=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},n=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},n=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},n=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},n=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},n=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},n=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},n=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t={name:"Android Browser"},n=i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},n=i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},n=i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.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 r,i=(r=n(17))&&r.__esModule?r:{default:r},s=n(18),o=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:s.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:s.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=i.default.getWindowsVersionName(t);return{name:s.OS_MAP.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:s.OS_MAP.iOS},n=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=i.default.getMacOSVersionName(t),r={name:s.OS_MAP.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:s.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=i.default.getAndroidVersionName(t),r={name:s.OS_MAP.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:s.OS_MAP.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:s.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:s.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:s.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:s.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:s.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:s.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 r,i=(r=n(17))&&r.__esModule?r:{default:r},s=n(18),o=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:s.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:s.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:s.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 r,i=(r=n(17))&&r.__esModule?r:{default:r},s=n(18),o=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:s.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:s.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:s.ENGINE_MAP.Trident},n=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:s.ENGINE_MAP.Presto},n=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe:function(e){var t={name:s.ENGINE_MAP.Gecko},n=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:s.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:s.ENGINE_MAP.WebKit},n=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];t.default=o,e.exports=t.default}})},2721:(e,t)=>{"use strict";function n(){return"undefined"==typeof window?null:window.navigator.languages&&window.navigator.languages[0]||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage||window.navigator.systemLanguage||null}function r(e){return e.toLowerCase().replace(/-/,"_")}t.Z=void 0;var i=function(e){if(!e)return n();var t=e.languages,i=e.fallback;if(!e.languages)return i;var s=r(n());if(!s)return i;var o=t.filter((function(e){return r(e)===s}));return o.length>0?o[0]||i:t.filter((function(e){return n=e,i=(t=s).length,(r=null==r?0:r)<0?r=0:r>i&&(r=i),n="".concat(n),t.slice(r,r+n.length)==n;var t,n,r,i}))[0]||i};t.Z=i},9830:e=>{"use strict";
|
2 |
/*!
|
3 |
* bytes
|
4 |
* Copyright(c) 2012-2014 TJ Holowaychuk
|
5 |
* Copyright(c) 2015 Jed Watson
|
6 |
* MIT Licensed
|
7 |
+
*/e.exports=function(e,t){if("string"==typeof e)return o(e);if("number"==typeof e)return s(e,t);return null},e.exports.format=s,e.exports.parse=o;var t=/\B(?=(\d{3})+(?!\d))/g,n=/(?:\.0*|(\.[^0]+)0+)$/,r={b:1,kb:1024,mb:1<<20,gb:1<<30,tb:Math.pow(1024,4),pb:Math.pow(1024,5)},i=/^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i;function s(e,i){if(!Number.isFinite(e))return null;var s=Math.abs(e),o=i&&i.thousandsSeparator||"",a=i&&i.unitSeparator||"",c=i&&void 0!==i.decimalPlaces?i.decimalPlaces:2,l=Boolean(i&&i.fixedDecimals),f=i&&i.unit||"";f&&r[f.toLowerCase()]||(f=s>=r.pb?"PB":s>=r.tb?"TB":s>=r.gb?"GB":s>=r.mb?"MB":s>=r.kb?"KB":"B");var u=(e/r[f.toLowerCase()]).toFixed(c);return l||(u=u.replace(n,"$1")),o&&(u=u.replace(t,o)),u+a+f}function o(e){if("number"==typeof e&&!isNaN(e))return e;if("string"!=typeof e)return null;var t,n=i.exec(e),s="b";return n?(t=parseFloat(n[1]),s=n[4].toLowerCase()):(t=parseInt(e,10),s="b"),Math.floor(r[s]*t)}},5848:e=>{"use strict";e.exports=JSON.parse('{"nbsp":" ","iexcl":"¡","cent":"¢","pound":"£","curren":"¤","yen":"¥","brvbar":"¦","sect":"§","uml":"¨","copy":"©","ordf":"ª","laquo":"«","not":"¬","shy":"","reg":"®","macr":"¯","deg":"°","plusmn":"±","sup2":"²","sup3":"³","acute":"´","micro":"µ","para":"¶","middot":"·","cedil":"¸","sup1":"¹","ordm":"º","raquo":"»","frac14":"¼","frac12":"½","frac34":"¾","iquest":"¿","Agrave":"À","Aacute":"Á","Acirc":"Â","Atilde":"Ã","Auml":"Ä","Aring":"Å","AElig":"Æ","Ccedil":"Ç","Egrave":"È","Eacute":"É","Ecirc":"Ê","Euml":"Ë","Igrave":"Ì","Iacute":"Í","Icirc":"Î","Iuml":"Ï","ETH":"Ð","Ntilde":"Ñ","Ograve":"Ò","Oacute":"Ó","Ocirc":"Ô","Otilde":"Õ","Ouml":"Ö","times":"×","Oslash":"Ø","Ugrave":"Ù","Uacute":"Ú","Ucirc":"Û","Uuml":"Ü","Yacute":"Ý","THORN":"Þ","szlig":"ß","agrave":"à","aacute":"á","acirc":"â","atilde":"ã","auml":"ä","aring":"å","aelig":"æ","ccedil":"ç","egrave":"è","eacute":"é","ecirc":"ê","euml":"ë","igrave":"ì","iacute":"í","icirc":"î","iuml":"ï","eth":"ð","ntilde":"ñ","ograve":"ò","oacute":"ó","ocirc":"ô","otilde":"õ","ouml":"ö","divide":"÷","oslash":"ø","ugrave":"ù","uacute":"ú","ucirc":"û","uuml":"ü","yacute":"ý","thorn":"þ","yuml":"ÿ","fnof":"ƒ","Alpha":"Α","Beta":"Β","Gamma":"Γ","Delta":"Δ","Epsilon":"Ε","Zeta":"Ζ","Eta":"Η","Theta":"Θ","Iota":"Ι","Kappa":"Κ","Lambda":"Λ","Mu":"Μ","Nu":"Ν","Xi":"Ξ","Omicron":"Ο","Pi":"Π","Rho":"Ρ","Sigma":"Σ","Tau":"Τ","Upsilon":"Υ","Phi":"Φ","Chi":"Χ","Psi":"Ψ","Omega":"Ω","alpha":"α","beta":"β","gamma":"γ","delta":"δ","epsilon":"ε","zeta":"ζ","eta":"η","theta":"θ","iota":"ι","kappa":"κ","lambda":"λ","mu":"μ","nu":"ν","xi":"ξ","omicron":"ο","pi":"π","rho":"ρ","sigmaf":"ς","sigma":"σ","tau":"τ","upsilon":"υ","phi":"φ","chi":"χ","psi":"ψ","omega":"ω","thetasym":"ϑ","upsih":"ϒ","piv":"ϖ","bull":"•","hellip":"…","prime":"′","Prime":"″","oline":"‾","frasl":"⁄","weierp":"℘","image":"ℑ","real":"ℜ","trade":"™","alefsym":"ℵ","larr":"←","uarr":"↑","rarr":"→","darr":"↓","harr":"↔","crarr":"↵","lArr":"⇐","uArr":"⇑","rArr":"⇒","dArr":"⇓","hArr":"⇔","forall":"∀","part":"∂","exist":"∃","empty":"∅","nabla":"∇","isin":"∈","notin":"∉","ni":"∋","prod":"∏","sum":"∑","minus":"−","lowast":"∗","radic":"√","prop":"∝","infin":"∞","ang":"∠","and":"∧","or":"∨","cap":"∩","cup":"∪","int":"∫","there4":"∴","sim":"∼","cong":"≅","asymp":"≈","ne":"≠","equiv":"≡","le":"≤","ge":"≥","sub":"⊂","sup":"⊃","nsub":"⊄","sube":"⊆","supe":"⊇","oplus":"⊕","otimes":"⊗","perp":"⊥","sdot":"⋅","lceil":"⌈","rceil":"⌉","lfloor":"⌊","rfloor":"⌋","lang":"〈","rang":"〉","loz":"◊","spades":"♠","clubs":"♣","hearts":"♥","diams":"♦","quot":"\\"","amp":"&","lt":"<","gt":">","OElig":"Œ","oelig":"œ","Scaron":"Š","scaron":"š","Yuml":"Ÿ","circ":"ˆ","tilde":"˜","ensp":" ","emsp":" ","thinsp":" ","zwnj":"","zwj":"","lrm":"","rlm":"","ndash":"–","mdash":"—","lsquo":"‘","rsquo":"’","sbquo":"‚","ldquo":"“","rdquo":"”","bdquo":"„","dagger":"†","Dagger":"‡","permil":"‰","lsaquo":"‹","rsaquo":"›","euro":"€"}')},6588:e=>{"use strict";e.exports=JSON.parse('{"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":"ÿ"}')},487:e=>{var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}};e.exports=t},1012:e=>{var t,n;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var n=[],r=0;r<e.length;r+=3)for(var i=e[r]<<16|e[r+1]<<8|e[r+2],s=0;s<4;s++)8*r+6*s<=8*e.length?n.push(t.charAt(i>>>6*(3-s)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,i=0;r<e.length;i=++r%4)0!=i&&n.push((t.indexOf(e.charAt(r-1))&Math.pow(2,-2*i+8)-1)<<2*i|t.indexOf(e.charAt(r))>>>6-2*i);return n}},e.exports=n},512:(e,t,n)=>{var r=n(3645)((function(e){return e[1]}));r.push([e.id,"@keyframes fadeIn_-55RX{from{opacity:0}to{opacity:1}}@-webkit-keyframes fadeIn_-55RX{from{transform:translate3d(0, 40px, 0)}to{transform:translate3d(0, 0, 0);opacity:1}}.fadeIn_-55RX{animation-duration:1s;animation-fill-mode:both;-webkit-animation-duration:1s;-webkit-animation-fill-mode:both;animation-name:fadeIn_-55RX;-webkit-animation-delay:0.5s;animation-delay:0.5s;-webkit-animation-name:fadeIn_-55RX}.slideLeft_KoeUm{-webkit-animation:slideLeft_KoeUm 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;animation:slideLeft_KoeUm 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both}@-webkit-keyframes slideLeft_KoeUm{0%{transform:translateX(130%)}100%{transform:translateX(0px)}}@keyframes slideLeft_KoeUm{0%{transform:translateX(130%)}100%{transform:translateX(0px)}}.slideRight_3pLpg{-webkit-animation:slideRight_3pLpg 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;animation:slideRight_3pLpg 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both}@-webkit-keyframes slideRight_3pLpg{0%{transform:translateX(-130%)}100%{transform:translateX(0px)}}@keyframes slideRight_3pLpg{0%{transform:translateX(-130%)}100%{transform:translateX(0px)}}.slideUp_B_pTF{-webkit-animation:slideUp_B_pTF 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;animation:slideUp_B_pTF 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both}@-webkit-keyframes slideUp_B_pTF{0%{transform:translateY(130%)}100%{transform:translateY(0px)}}@keyframes slideUp_B_pTF{0%{transform:translateY(130%)}100%{transform:translateY(0px)}}.nudge_Wc3EQ,form .error_UuoQi{-webkit-animation:nudge_Wc3EQ 1s ease-in;animation:nudge_Wc3EQ 1s ease-in}@-webkit-keyframes nudge_Wc3EQ{0%{opacity:0}100%{opacity:1}}@keyframes nudge_Wc3EQ{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes fly-in_yrNvF{0%{transform:scale(0.85) translateY(10%);opacity:0}100%{transform:scale(1) translateY(0);opacity:1}}@keyframes fly-in_yrNvF{0%{transform:scale(0.85) translateY(10%);opacity:0}100%{transform:scale(1) translateY(0);opacity:1}}.fly-in_yrNvF{transition:all 0.5s;-webkit-animation-duration:0.3s;animation-duration:0.3s;-webkit-animation-name:fly-in_yrNvF;animation-name:fly-in_yrNvF}@-webkit-keyframes show-with-delay_2tWsA{0%{opacity:0}100%{opacity:1}}@keyframes show-with-delay_2tWsA{0%{opacity:0}100%{opacity:1}}.show-with-delay_2tWsA{-webkit-animation-name:show-with-delay_2tWsA;animation-name:show-with-delay_2tWsA;-webkit-animation-duration:0s;animation-duration:0s;-webkit-animation-delay:3s;animation-delay:3s;-webkit-animation-fill-mode:both;animation-fill-mode:both}form{position:relative}form .error_UuoQi{color:red;font-size:calc(14px - 3px);font-size:calc(var(--call-us-font-size, 14px) - 3px);margin:5px 0}form ::-moz-placeholder{color:#777;opacity:1}form :-ms-input-placeholder{color:#777;opacity:1}form ::placeholder{color:#777;opacity:1}.google-button_2DGgc button,.root_1TTPz button{width:100%;color:#444444;background:#0596d4;background:var(--call-us-main-button-background, #0596d4);border:1px #0596d4 solid;border:1px var(--call-us-main-button-background, #0596d4) solid;padding:5px 10px;font-size:14px;font-size:var(--call-us-font-size, 14px);outline:none;cursor:pointer}.google-button_2DGgc button.submit_3-k9E,.root_1TTPz button.submit_3-k9E{align-self:flex-end;background:#0596d4;background:var(--call-us-main-button-background, #0596d4);width:100%;height:35px;color:white;font-size:14px;font-size:var(--call-us-font-size, 14px)}.custom-scrollbar_1Ju2z::-webkit-scrollbar,.root_1TTPz form .form_body_wBhOL::-webkit-scrollbar{width:4px}.custom-scrollbar_1Ju2z::-webkit-scrollbar-track,.root_1TTPz form .form_body_wBhOL::-webkit-scrollbar-track{background:#f1f1f1}.custom-scrollbar_1Ju2z::-webkit-scrollbar-thumb,.root_1TTPz form .form_body_wBhOL::-webkit-scrollbar-thumb{background:#888}.custom-scrollbar_1Ju2z::-webkit-scrollbar-thumb:hover,.root_1TTPz form .form_body_wBhOL::-webkit-scrollbar-thumb:hover{background:#555}.root_1TTPz{display:flex;align-items:center;justify-content:center;height:100%;flex-flow:column;margin-bottom:0;flex-grow:1}.root_1TTPz form{width:100%;flex-grow:1;display:flex;flex-direction:column;overflow-y:auto;margin-bottom:0}.root_1TTPz form .form_body_wBhOL{padding:10px;flex-grow:1;display:flex;flex-direction:column;justify-content:center;overflow-y:auto}.root_1TTPz form .form_body_wBhOL .chatIntroText_C3oZl,.root_1TTPz form .form_body_wBhOL .replaceFieldsText_3ch5v{margin:5px 0;font-size:14px;font-size:var(--call-us-font-size, 14px);color:#646464;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.root_1TTPz form .form_body_wBhOL .replaceFieldsText_3ch5v{font-weight:bold;text-align:center}.root_1TTPz .chat-disabled-container_3yHCI{color:#646464;display:flex;flex:1 1 auto;flex-direction:row;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:1em}.root_1TTPz :focus{outline:none}\n",""]),r.locals={fadeIn:"fadeIn_-55RX",slideLeft:"slideLeft_KoeUm",slideRight:"slideRight_3pLpg",slideUp:"slideUp_B_pTF",nudge:"nudge_Wc3EQ",error:"error_UuoQi","fly-in":"fly-in_yrNvF","show-with-delay":"show-with-delay_2tWsA","google-button":"google-button_2DGgc",root:"root_1TTPz",submit:"submit_3-k9E","custom-scrollbar":"custom-scrollbar_1Ju2z",form_body:"form_body_wBhOL",chatIntroText:"chatIntroText_C3oZl",replaceFieldsText:"replaceFieldsText_3ch5v","chat-disabled-container":"chat-disabled-container_3yHCI"},e.exports=r},8336:(e,t,n)=>{var r=n(3645)((function(e){return e[1]}));r.push([e.id,"@keyframes fadeIn_2c0mp{from{opacity:0}to{opacity:1}}@-webkit-keyframes fadeIn_2c0mp{from{transform:translate3d(0, 40px, 0)}to{transform:translate3d(0, 0, 0);opacity:1}}.fadeIn_2c0mp{animation-duration:1s;animation-fill-mode:both;-webkit-animation-duration:1s;-webkit-animation-fill-mode:both;animation-name:fadeIn_2c0mp;-webkit-animation-delay:0.5s;animation-delay:0.5s;-webkit-animation-name:fadeIn_2c0mp}.slideLeft_3J8Ps{-webkit-animation:slideLeft_3J8Ps 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;animation:slideLeft_3J8Ps 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both}@-webkit-keyframes slideLeft_3J8Ps{0%{transform:translateX(130%)}100%{transform:translateX(0px)}}@keyframes slideLeft_3J8Ps{0%{transform:translateX(130%)}100%{transform:translateX(0px)}}.slideRight_1fPzF{-webkit-animation:slideRight_1fPzF 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;animation:slideRight_1fPzF 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both}@-webkit-keyframes slideRight_1fPzF{0%{transform:translateX(-130%)}100%{transform:translateX(0px)}}@keyframes slideRight_1fPzF{0%{transform:translateX(-130%)}100%{transform:translateX(0px)}}.slideUp_3BNk_{-webkit-animation:slideUp_3BNk_ 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;animation:slideUp_3BNk_ 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both}@-webkit-keyframes slideUp_3BNk_{0%{transform:translateY(130%)}100%{transform:translateY(0px)}}@keyframes slideUp_3BNk_{0%{transform:translateY(130%)}100%{transform:translateY(0px)}}.nudge_1Say6{-webkit-animation:nudge_1Say6 1s ease-in;animation:nudge_1Say6 1s ease-in}@-webkit-keyframes nudge_1Say6{0%{opacity:0}100%{opacity:1}}@keyframes nudge_1Say6{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes fly-in_3B_lw{0%{transform:scale(0.85) translateY(10%);opacity:0}100%{transform:scale(1) translateY(0);opacity:1}}@keyframes fly-in_3B_lw{0%{transform:scale(0.85) translateY(10%);opacity:0}100%{transform:scale(1) translateY(0);opacity:1}}.fly-in_3B_lw{transition:all 0.5s;-webkit-animation-duration:0.3s;animation-duration:0.3s;-webkit-animation-name:fly-in_3B_lw;animation-name:fly-in_3B_lw}@-webkit-keyframes show-with-delay_1xqMD{0%{opacity:0}100%{opacity:1}}@keyframes show-with-delay_1xqMD{0%{opacity:0}100%{opacity:1}}.show-with-delay_1xqMD{-webkit-animation-name:show-with-delay_1xqMD;animation-name:show-with-delay_1xqMD;-webkit-animation-duration:0s;animation-duration:0s;-webkit-animation-delay:3s;animation-delay:3s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.root_3iK1E{display:inline-block}.root_3iK1E .call-us-toolbar{display:flex;flex-direction:row;justify-content:center}.root_3iK1E .call-us-toolbar button{width:60px;width:var(--call-us-main-button-width, 60px);height:60px;height:var(--call-us-main-button-width, 60px);background-color:#373737;background-color:var(--call-us-form-header-background, #373737);border-radius:50%}.root_3iK1E button{box-shadow:0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19)}\n",""]),r.locals={fadeIn:"fadeIn_2c0mp",slideLeft:"slideLeft_3J8Ps",slideRight:"slideRight_1fPzF",slideUp:"slideUp_3BNk_",nudge:"nudge_1Say6","fly-in":"fly-in_3B_lw","show-with-delay":"show-with-delay_1xqMD",root:"root_3iK1E"},e.exports=r},342:(e,t,n)=>{var r=n(3645)((function(e){return e[1]}));r.push([e.id,".file-download-link_3P1fM{text-decoration:none;color:black}.show-file_3HMv7{display:grid;grid-template-columns:20px auto;grid-column-gap:3px;align-items:center;margin:0px 3px}.show-file_3HMv7 .transform-svg_gRa4y{transform:rotate(136deg);font-weight:lighter;width:20px;margin-top:5px}.show-file_3HMv7 .file-info_219P7 .file-name_TDWnC{align-self:end;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100px;display:block;text-align:left;margin-top:6px}.show-file_3HMv7 .file-info_219P7 .file-size_1VBbN{float:left;color:#cccccc;font-size:calc(14px - 2px);font-size:calc(var(--call-us-font-size, 14px) - 2px);align-self:end;justify-self:end}\n",""]),r.locals={"file-download-link":"file-download-link_3P1fM","show-file":"show-file_3HMv7","transform-svg":"transform-svg_gRa4y","file-info":"file-info_219P7","file-name":"file-name_TDWnC","file-size":"file-size_1VBbN"},e.exports=r},1112:(e,t,n)=>{var r=n(3645)((function(e){return e[1]}));r.push([e.id,"@keyframes fadeIn_2vkOd{from{opacity:0}to{opacity:1}}@-webkit-keyframes fadeIn_2vkOd{from{transform:translate3d(0, 40px, 0)}to{transform:translate3d(0, 0, 0);opacity:1}}.fadeIn_2vkOd{animation-duration:1s;animation-fill-mode:both;-webkit-animation-duration:1s;-webkit-animation-fill-mode:both;animation-name:fadeIn_2vkOd;-webkit-animation-delay:0.5s;animation-delay:0.5s;-webkit-animation-name:fadeIn_2vkOd}.slideLeft_2Udiv{-webkit-animation:slideLeft_2Udiv 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;animation:slideLeft_2Udiv 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both}@-webkit-keyframes slideLeft_2Udiv{0%{transform:translateX(130%)}100%{transform:translateX(0px)}}@keyframes slideLeft_2Udiv{0%{transform:translateX(130%)}100%{transform:translateX(0px)}}.slideRight_DJz1G{-webkit-animation:slideRight_DJz1G 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;animation:slideRight_DJz1G 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both}@-webkit-keyframes slideRight_DJz1G{0%{transform:translateX(-130%)}100%{transform:translateX(0px)}}@keyframes slideRight_DJz1G{0%{transform:translateX(-130%)}100%{transform:translateX(0px)}}.slideUp_gWFz3{-webkit-animation:slideUp_gWFz3 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;animation:slideUp_gWFz3 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both}@-webkit-keyframes slideUp_gWFz3{0%{transform:translateY(130%)}100%{transform:translateY(0px)}}@keyframes slideUp_gWFz3{0%{transform:translateY(130%)}100%{transform:translateY(0px)}}.nudge_1nCOl{-webkit-animation:nudge_1nCOl 1s ease-in;animation:nudge_1nCOl 1s ease-in}@-webkit-keyframes nudge_1nCOl{0%{opacity:0}100%{opacity:1}}@keyframes nudge_1nCOl{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes fly-in_390SE{0%{transform:scale(0.85) translateY(10%);opacity:0}100%{transform:scale(1) translateY(0);opacity:1}}@keyframes fly-in_390SE{0%{transform:scale(0.85) translateY(10%);opacity:0}100%{transform:scale(1) translateY(0);opacity:1}}.fly-in_390SE,.root_2RJyu .msg_bubble_3H8Qg{transition:all 0.5s;-webkit-animation-duration:0.3s;animation-duration:0.3s;-webkit-animation-name:fly-in_390SE;animation-name:fly-in_390SE}@-webkit-keyframes show-with-delay_2QO2C{0%{opacity:0}100%{opacity:1}}@keyframes show-with-delay_2QO2C{0%{opacity:0}100%{opacity:1}}.show-with-delay_2QO2C{-webkit-animation-name:show-with-delay_2QO2C;animation-name:show-with-delay_2QO2C;-webkit-animation-duration:0s;animation-duration:0s;-webkit-animation-delay:3s;animation-delay:3s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.root_2RJyu{display:flex;flex-direction:column}.root_2RJyu .msg_bubble_client_2E_BW{justify-content:flex-start}.root_2RJyu .msg_bubble_agent_6a5Gs{justify-content:flex-end}.root_2RJyu .msg_bubble_3H8Qg{display:flex;flex-direction:row;margin-bottom:6px !important}.root_2RJyu .msg_bubble_3H8Qg .avatar_container_2eN-E{height:27px;min-width:27px;max-width:27px}.root_2RJyu .msg_bubble_3H8Qg .avatar_container_2eN-E svg path:first-of-type{fill:#0596d4;fill:var(--call-us-main-button-background, #0596d4)}.root_2RJyu .msg_bubble_3H8Qg .avatar_container_2eN-E .avatar_img_3_STP{border-radius:50%;height:27px;min-width:27px;max-width:27px}.root_2RJyu .msg_bubble_3H8Qg .msg_container_2iwpY{width:0;line-height:1.4;margin-top:auto;margin-bottom:auto;border-radius:5px;padding:10px;position:relative;flex-grow:1;display:flex;flex-direction:column;font-size:14px;font-size:var(--call-us-font-size, 14px);word-wrap:break-word;word-break:break-word}.root_2RJyu .msg_bubble_3H8Qg .msg_container_2iwpY .msg_sub_area_zz0o2{display:flex;flex-direction:row;justify-content:space-between;margin-top:5px;font-size:calc(14px - 3px);font-size:calc(var(--call-us-font-size, 14px) - 3px)}.root_2RJyu .msg_bubble_3H8Qg .msg_container_2iwpY .msg_sub_area_zz0o2 .msg_sender_name_i34Tn{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:60%;float:left;margin-right:5px}.root_2RJyu .msg_bubble_3H8Qg .msg_container_2iwpY .msg_sub_area_zz0o2 .msg_timestamp_1TKs1{white-space:nowrap}.root_2RJyu .msg_bubble_3H8Qg .msg_container_2iwpY .sending_indication_wf0It{display:flex;flex-direction:row;justify-content:flex-end;position:absolute;bottom:0;right:2px}.root_2RJyu .msg_bubble_3H8Qg .msg_container_2iwpY .sending_indication_wf0It .sending_icon_2GAbW{width:1em;height:1em;display:inline-block;fill:#373737;fill:var(--call-us-form-header-background, #373737);margin:0 0 0 5px}.root_2RJyu .msg_bubble_3H8Qg .msg_client_pZ7MA{margin-left:10px;background-color:#d4d4d4;background-color:var(--call-us-client-text-color, #d4d4d4)}.root_2RJyu .msg_bubble_3H8Qg .msg_client_pZ7MA.new_msg_1sNss::before{content:'';position:absolute;width:0;height:0;left:-7px;top:8px;border-top:8px solid transparent;border-right:8px solid #d4d4d4;border-right:8px solid var(--call-us-client-text-color, #d4d4d4);border-bottom:8px solid transparent}.root_2RJyu .msg_bubble_3H8Qg .msg_agent_3l4AH{margin-right:10px;background-color:#eee;background-color:var(--call-us-agent-text-color, #eee)}.root_2RJyu .msg_bubble_3H8Qg .msg_agent_3l4AH.new_msg_1sNss::after{content:'';position:absolute;width:0;height:0;right:-8px;top:8px;border-top:8px solid transparent;border-left:8px solid #eee;border-left:8px solid var(--call-us-agent-text-color, #eee);border-bottom:8px solid transparent}.root_2RJyu .error-message_1UQGl{color:red;font-size:calc(14px - 3px);font-size:calc(var(--call-us-font-size, 14px) - 3px);margin-bottom:10px}.root_2RJyu .error-message_1UQGl .error-message-retry_3NaXv{cursor:pointer}\n",""]),r.locals={fadeIn:"fadeIn_2vkOd",slideLeft:"slideLeft_2Udiv",slideRight:"slideRight_DJz1G",slideUp:"slideUp_gWFz3",nudge:"nudge_1nCOl","fly-in":"fly-in_390SE",root:"root_2RJyu",msg_bubble:"msg_bubble_3H8Qg","show-with-delay":"show-with-delay_2QO2C",msg_bubble_client:"msg_bubble_client_2E_BW",msg_bubble_agent:"msg_bubble_agent_6a5Gs",avatar_container:"avatar_container_2eN-E",avatar_img:"avatar_img_3_STP",msg_container:"msg_container_2iwpY",msg_sub_area:"msg_sub_area_zz0o2",msg_sender_name:"msg_sender_name_i34Tn",msg_timestamp:"msg_timestamp_1TKs1",sending_indication:"sending_indication_wf0It",sending_icon:"sending_icon_2GAbW",msg_client:"msg_client_pZ7MA",new_msg:"new_msg_1sNss",msg_agent:"msg_agent_3l4AH","error-message":"error-message_1UQGl","error-message-retry":"error-message-retry_3NaXv"},e.exports=r},9561:(e,t,n)=>{var r=n(3645)((function(e){return e[1]}));r.push([e.id,".root_3uf3r{display:flex;flex-direction:row;flex-wrap:wrap;padding-bottom:15px;position:relative}.root_3uf3r .option_button_2nTxY{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:5px;margin:3px}.root_3uf3r .option_button_2nTxY.light-text_2C565{color:#FFFFFF}.root_3uf3r .option_button_2nTxY.bordered_1uwhX{border-style:solid;border-radius:10px;border-width:1px;border-color:#d4d4d4;border-color:var(--call-us-client-text-color, #d4d4d4);min-width:35px;text-align:center}.root_3uf3r .option_button_2nTxY.bordered_1uwhX:hover{background-color:#d4d4d4;background-color:var(--call-us-client-text-color, #d4d4d4)}.root_3uf3r .option_button_2nTxY:hover{cursor:pointer}.root_3uf3r .selected_description_2KukC{margin-left:10px;line-height:39px}.root_3uf3r .hovered_description_2H1G0{position:absolute;bottom:8px;width:88%;text-align:center}\n",""]),r.locals={root:"root_3uf3r",option_button:"option_button_2nTxY","light-text":"light-text_2C565",bordered:"bordered_1uwhX",selected_description:"selected_description_2KukC",hovered_description:"hovered_description_2H1G0"},e.exports=r},3839:(e,t,n)=>{var r=n(3645)((function(e){return e[1]}));r.push([e.id,".bar_1d-Mw{border:0;padding:0;position:relative;display:block;width:100%}.bar_1d-Mw:before{content:'';height:2px;width:0;bottom:0;position:absolute;background:#373737;background:var(--call-us-form-header-background, #373737);transition:300ms ease all;left:0}.materialInput_fKTHD,.materialPhone_3-YId,.materialTextarea_3yJnC{position:relative;flex-grow:1;margin-bottom:5px}.materialInput_fKTHD label,.materialPhone_3-YId label,.materialTextarea_3yJnC label{color:#373737;color:var(--call-us-form-header-background, #373737);font-size:calc(14px - 3px);font-size:calc(var(--call-us-font-size, 14px) - 3px);font-palette:dark;font-weight:normal;position:absolute;pointer-events:none;left:5px;top:10px;transition:300ms ease all}.materialInput_fKTHD textarea,.materialPhone_3-YId textarea,.materialTextarea_3yJnC textarea{overflow-x:hidden;resize:none}.materialInput_fKTHD textarea:focus ~ label,.materialInput_fKTHD textarea:valid ~ label,.materialPhone_3-YId textarea:focus ~ label,.materialPhone_3-YId textarea:valid ~ label,.materialTextarea_3yJnC textarea:focus ~ label,.materialTextarea_3yJnC textarea:valid ~ label{top:-30px;font-size:calc(14px - 1px);font-size:calc(var(--call-us-font-size, 14px) - 1px);color:#373737;color:var(--call-us-form-header-background, #373737)}.materialInput_fKTHD input:focus ~ label,.materialInput_fKTHD input:valid ~ label,.materialInput_fKTHD input:disabled ~ label,.materialPhone_3-YId input:focus ~ label,.materialPhone_3-YId input:valid ~ label,.materialPhone_3-YId input:disabled ~ label,.materialTextarea_3yJnC input:focus ~ label,.materialTextarea_3yJnC input:valid ~ label,.materialTextarea_3yJnC input:disabled ~ label{top:-4px;font-size:calc(14px - 1px);font-size:calc(var(--call-us-font-size, 14px) - 1px);color:#373737;color:var(--call-us-form-header-background, #373737)}.materialInput_fKTHD input,.materialInput_fKTHD textarea,.materialPhone_3-YId input,.materialPhone_3-YId textarea,.materialTextarea_3yJnC input,.materialTextarea_3yJnC textarea{background:none;color:black;font-size:calc(14px - 1px);font-size:calc(var(--call-us-font-size, 14px) - 1px);font-family:inherit;padding:10px 0 4px 0;display:block;width:100%;border:none;border-radius:0;border-bottom:1px solid #373737;border-bottom:1px solid var(--call-us-form-header-background, #373737)}.materialInput_fKTHD input:focus,.materialInput_fKTHD textarea:focus,.materialPhone_3-YId input:focus,.materialPhone_3-YId textarea:focus,.materialTextarea_3yJnC input:focus,.materialTextarea_3yJnC textarea:focus{outline:none}.materialInput_fKTHD input:focus ~ .bar_1d-Mw:before,.materialInput_fKTHD textarea:focus ~ .bar_1d-Mw:before,.materialPhone_3-YId input:focus ~ .bar_1d-Mw:before,.materialPhone_3-YId textarea:focus ~ .bar_1d-Mw:before,.materialTextarea_3yJnC input:focus ~ .bar_1d-Mw:before,.materialTextarea_3yJnC textarea:focus ~ .bar_1d-Mw:before{width:100%}.custom-scrollbar_2h8Ar::-webkit-scrollbar,.root_25A4M .chat-container_1uPxK::-webkit-scrollbar{width:4px}.custom-scrollbar_2h8Ar::-webkit-scrollbar-track,.root_25A4M .chat-container_1uPxK::-webkit-scrollbar-track{background:#f1f1f1}.custom-scrollbar_2h8Ar::-webkit-scrollbar-thumb,.root_25A4M .chat-container_1uPxK::-webkit-scrollbar-thumb{background:#888}.custom-scrollbar_2h8Ar::-webkit-scrollbar-thumb:hover,.root_25A4M .chat-container_1uPxK::-webkit-scrollbar-thumb:hover{background:#555}.google-button_3uUIi button,.root_25A4M .chat-footer_1I699 button{width:100%;color:#444444;background:#0596d4;background:var(--call-us-main-button-background, #0596d4);border:1px #0596d4 solid;border:1px var(--call-us-main-button-background, #0596d4) solid;padding:5px 10px;font-size:14px;font-size:var(--call-us-font-size, 14px);outline:none;cursor:pointer}.google-button_3uUIi button.submit_1hgCa,.root_25A4M .chat-footer_1I699 button.submit_1hgCa{align-self:flex-end;background:#0596d4;background:var(--call-us-main-button-background, #0596d4);width:100%;height:35px;color:white;font-size:14px;font-size:var(--call-us-font-size, 14px)}:-webkit-full-screen .awayVideo_15FVO{width:100vw !important;height:100vh !important;max-width:100vw !important;max-height:100vh !important}.root_25A4M{position:relative;height:100%;display:flex;flex-direction:column;flex-grow:1}.root_25A4M .video-container_2aZGG{display:flex;align-items:center;position:relative;z-index:1000;height:187px}.root_25A4M .video-container_2aZGG .awayVideo_15FVO{width:100%;height:187px}.root_25A4M .video-container_2aZGG .homeVideo_2xijr{width:15vw;height:15vh;position:absolute;bottom:0px;right:0px;border:2px solid #fff}.root_25A4M .video-container_2aZGG .awayFullVideo_2PGhF{width:100%;height:100%}.root_25A4M .video-container_2aZGG .homeFullVideo_12ZC9{width:15vw;height:15vh;max-width:25%;max-height:25%;position:absolute;bottom:0px;right:0px;border:2px solid #fff}@media screen{.root_25A4M .video-container_2aZGG .awayVideo_15FVO{max-width:50vw;max-height:50vh;margin:0 auto}.root_25A4M .video-container_2aZGG .homeVideo_2xijr{max-width:15vw;max-height:15vh;position:absolute;bottom:0px;right:5%}}.root_25A4M .video-container_2aZGG .mirrorVideo_2404u{transform:rotateY(180deg)}.root_25A4M .chat-container_1uPxK{flex:1 1 auto;padding:10px 10px 0 !important;min-height:180px !important;overflow-y:auto}.root_25A4M .chat-container_1uPxK .typing_indicator_1yCCV{display:flex;flex-direction:row;width:80%;justify-content:flex-end;text-align:right;position:absolute;bottom:54px;right:17px;font-size:calc(14px - 3px);font-size:calc(var(--call-us-font-size, 14px) - 3px);white-space:nowrap;max-width:80%}.root_25A4M .chat-container_1uPxK .typing_indicator_1yCCV .typing_indicator_name_3ayxJ{flex-grow:1;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.root_25A4M .chat-container_1uPxK .typing_indicator_1yCCV .typing_indicator_name_3ayxJ span{margin-right:3px}.root_25A4M .chat-disabled-container_16pGg{color:#646464;display:flex;flex:1 1 auto;flex-direction:row;align-items:center;padding:10px 10px 0 !important;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:1em}.root_25A4M .chat-footer_1I699{padding:0 10px !important;border-radius:0 0 15px 15px !important;border-top:0 !important;display:flex;flex-direction:column;min-height:64px;background:#ffffff}.root_25A4M .chat-footer_1I699.chat-disabled_yw9UQ{padding:0 !important;min-height:unset}.root_25A4M .chat-footer_1I699 .chat-message-input-form_13tKS{margin:0;display:flex;flex-direction:row}.root_25A4M .chat-footer_1I699 .chat-message-input-form_13tKS .chat-message-input_1q4F4{height:32px;outline:none;box-sizing:border-box}.root_25A4M .chat-footer_1I699 .chat-message-input-form_13tKS .chat-message-input_1q4F4:disabled{cursor:not-allowed}.root_25A4M .chat-footer_1I699 .chat-message-input-form_13tKS .send-trigger_3fwIt{cursor:pointer;height:100%;width:20px;height:20px;margin-top:10px;margin-left:10px}.root_25A4M .chat-footer_1I699 .chat-message-input-form_13tKS .send-trigger_3fwIt.send_enable_3I-1D{fill:#0596d4;fill:var(--call-us-main-button-background, #0596d4)}.root_25A4M .chat-footer_1I699 .chat-message-input-form_13tKS .send-trigger_3fwIt.send_disable_3IjRT{cursor:not-allowed;fill:#eeeeee}.root_25A4M .chat-footer_1I699 .banner_dEOj2{position:relative;height:25px;display:flex;flex-direction:row;align-items:center;margin-top:-2px}.root_25A4M .chat-footer_1I699 .banner_dEOj2 .chat-action-buttons_3JDQW{color:#0596d4;color:var(--call-us-main-button-background, #0596d4);display:flex;flex-direction:row}.root_25A4M .chat-footer_1I699 .banner_dEOj2 .chat-action-buttons_3JDQW .action-button_11z6a{margin-right:6px;cursor:pointer;width:16px;height:16px}.root_25A4M .chat-footer_1I699 .banner_dEOj2 .chat-action-buttons_3JDQW .action-button_11z6a svg{fill:#0596d4;fill:var(--call-us-main-button-background, #0596d4);vertical-align:top}.root_25A4M .chat-footer_1I699 .banner_dEOj2 .powered-by_5TP-I{float:right;text-decoration:none;font-family:sans-serif;font-size:calc(14px - 3px);font-size:calc(var(--call-us-font-size, 14px) - 3px);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;flex-grow:1;text-align:right}.root_25A4M .chat-footer_1I699 .banner_dEOj2 .powered-by_5TP-I a{color:#0596d4;color:var(--call-us-main-button-background, #0596d4)}\n",""]),r.locals={bar:"bar_1d-Mw",materialInput:"materialInput_fKTHD",materialPhone:"materialPhone_3-YId",materialTextarea:"materialTextarea_3yJnC","custom-scrollbar":"custom-scrollbar_2h8Ar",root:"root_25A4M","chat-container":"chat-container_1uPxK","google-button":"google-button_3uUIi","chat-footer":"chat-footer_1I699",submit:"submit_1hgCa",awayVideo:"awayVideo_15FVO","video-container":"video-container_2aZGG",homeVideo:"homeVideo_2xijr",awayFullVideo:"awayFullVideo_2PGhF",homeFullVideo:"homeFullVideo_12ZC9",mirrorVideo:"mirrorVideo_2404u",typing_indicator:"typing_indicator_1yCCV",typing_indicator_name:"typing_indicator_name_3ayxJ","chat-disabled-container":"chat-disabled-container_16pGg","chat-disabled":"chat-disabled_yw9UQ","chat-message-input-form":"chat-message-input-form_13tKS","chat-message-input":"chat-message-input_1q4F4","send-trigger":"send-trigger_3fwIt",send_enable:"send_enable_3I-1D",send_disable:"send_disable_3IjRT",banner:"banner_dEOj2","chat-action-buttons":"chat-action-buttons_3JDQW","action-button":"action-button_11z6a","powered-by":"powered-by_5TP-I"},e.exports=r},9924:(e,t,n)=>{var r=n(3645)((function(e){return e[1]}));r.push([e.id,'label.wplc_checkbox_1rKr_{display:inline-block;cursor:pointer;position:relative;padding-left:25px;margin:0px;color:#646464;font-size:calc(14px - 3px);font-size:calc(var(--call-us-font-size, 14px) - 3px)}label.wplc_checkbox_1rKr_:before{content:"";display:inline-block;width:14px;height:14px;margin-right:10px;position:absolute;left:0;top:0px;background-color:#ffffff;border:1px solid #373737;border:1px solid var(--call-us-form-header-background, #373737);border-radius:0px;margin-top:2px}input[type=checkbox].wplc_checkbox_1rKr_{position:absolute;width:5px;height:5px;margin:0;border:1px solid transparent;display:none}input[type=checkbox].wplc_checkbox_1rKr_:checked+label.wplc_checkbox_1rKr_:before{content:"\\25A0";font-size:13px;font-weight:bold;color:#000000;text-align:center;line-height:13px}\n',""]),r.locals={wplc_checkbox:"wplc_checkbox_1rKr_"},e.exports=r},9292:(e,t,n)=>{var r=n(3645)((function(e){return e[1]}));r.push([e.id,".materialSelectDiv_3FQZu{position:relative;margin-bottom:5px;margin-top:5px}.materialSelectDiv_3FQZu .materialSelect_WFhdw{-moz-appearance:none;appearance:none;-webkit-appearance:none}.materialSelectDiv_3FQZu:after{position:absolute;top:18px;right:0px;width:0;height:0;padding:0;content:'';border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #373737;border-top:6px solid var(--call-us-form-header-background, #373737);pointer-events:none}.materialSelectDiv_3FQZu .materialSelectLabel_1hwlr{position:absolute;pointer-events:none;color:#777;font-size:calc(14px - 1px);font-size:calc(var(--call-us-font-size, 14px) - 1px);font-palette:dark;font-weight:normal;top:10px;left:0px;transition:300ms ease all}.materialSelectDiv_3FQZu .materialSelect_WFhdw{position:relative;font-family:inherit;background-color:transparent;width:100%;padding:12px 0px 3px 0;font-size:calc(14px - 1px);font-size:calc(var(--call-us-font-size, 14px) - 1px);border-left:0;border-right:0;border-top:0;border-bottom:1px solid #373737;border-bottom:1px solid var(--call-us-form-header-background, #373737)}.materialSelectDiv_3FQZu .materialSelect_WFhdw:focus,.materialSelectDiv_3FQZu .materialSelect_WFhdw.valueSelected_2jA6_{outline:none}.materialSelectDiv_3FQZu .materialSelect_WFhdw:focus ~ .materialSelectLabel_1hwlr,.materialSelectDiv_3FQZu .materialSelect_WFhdw.valueSelected_2jA6_ ~ .materialSelectLabel_1hwlr{top:-7px;color:#373737;color:var(--call-us-form-header-background, #373737)}\n",""]),r.locals={materialSelectDiv:"materialSelectDiv_3FQZu",materialSelect:"materialSelect_WFhdw",materialSelectLabel:"materialSelectLabel_1hwlr",valueSelected:"valueSelected_2jA6_"},e.exports=r},5113:(e,t,n)=>{var r=n(3645)((function(e){return e[1]}));r.push([e.id,".bar_l6bc4{border:0;padding:0;position:relative;display:block;width:100%}.bar_l6bc4:before{content:'';height:2px;width:0;bottom:0;position:absolute;background:#373737;background:var(--call-us-form-header-background, #373737);transition:300ms ease all;left:0}.materialInput_1w7X5,.materialPhone_3jQkC,.materialTextarea_2r2vL{position:relative;flex-grow:1;margin-bottom:5px}.materialInput_1w7X5 label,.materialPhone_3jQkC label,.materialTextarea_2r2vL label{color:#373737;color:var(--call-us-form-header-background, #373737);font-size:calc(14px - 3px);font-size:calc(var(--call-us-font-size, 14px) - 3px);font-palette:dark;font-weight:normal;position:absolute;pointer-events:none;left:5px;top:10px;transition:300ms ease all}.materialInput_1w7X5 textarea,.materialPhone_3jQkC textarea,.materialTextarea_2r2vL textarea{overflow-x:hidden;resize:none}.materialInput_1w7X5 textarea:focus ~ label,.materialInput_1w7X5 textarea:valid ~ label,.materialPhone_3jQkC textarea:focus ~ label,.materialPhone_3jQkC textarea:valid ~ label,.materialTextarea_2r2vL textarea:focus ~ label,.materialTextarea_2r2vL textarea:valid ~ label{top:-30px;font-size:calc(14px - 1px);font-size:calc(var(--call-us-font-size, 14px) - 1px);color:#373737;color:var(--call-us-form-header-background, #373737)}.materialInput_1w7X5 input:focus ~ label,.materialInput_1w7X5 input:valid ~ label,.materialInput_1w7X5 input:disabled ~ label,.materialPhone_3jQkC input:focus ~ label,.materialPhone_3jQkC input:valid ~ label,.materialPhone_3jQkC input:disabled ~ label,.materialTextarea_2r2vL input:focus ~ label,.materialTextarea_2r2vL input:valid ~ label,.materialTextarea_2r2vL input:disabled ~ label{top:-4px;font-size:calc(14px - 1px);font-size:calc(var(--call-us-font-size, 14px) - 1px);color:#373737;color:var(--call-us-form-header-background, #373737)}.materialInput_1w7X5 input,.materialInput_1w7X5 textarea,.materialPhone_3jQkC input,.materialPhone_3jQkC textarea,.materialTextarea_2r2vL input,.materialTextarea_2r2vL textarea{background:none;color:black;font-size:calc(14px - 1px);font-size:calc(var(--call-us-font-size, 14px) - 1px);font-family:inherit;padding:10px 0 4px 0;display:block;width:100%;border:none;border-radius:0;border-bottom:1px solid #373737;border-bottom:1px solid var(--call-us-form-header-background, #373737)}.materialInput_1w7X5 input:focus,.materialInput_1w7X5 textarea:focus,.materialPhone_3jQkC input:focus,.materialPhone_3jQkC textarea:focus,.materialTextarea_2r2vL input:focus,.materialTextarea_2r2vL textarea:focus{outline:none}.materialInput_1w7X5 input:focus ~ .bar_l6bc4:before,.materialInput_1w7X5 textarea:focus ~ .bar_l6bc4:before,.materialPhone_3jQkC input:focus ~ .bar_l6bc4:before,.materialPhone_3jQkC textarea:focus ~ .bar_l6bc4:before,.materialTextarea_2r2vL input:focus ~ .bar_l6bc4:before,.materialTextarea_2r2vL textarea:focus ~ .bar_l6bc4:before{width:100%}\n",""]),r.locals={bar:"bar_l6bc4",materialInput:"materialInput_1w7X5",materialPhone:"materialPhone_3jQkC",materialTextarea:"materialTextarea_2r2vL"},e.exports=r},5056:(e,t,n)=>{var r=n(3645)((function(e){return e[1]}));r.push([e.id,"@keyframes fadeIn_1tEi9{from{opacity:0}to{opacity:1}}@-webkit-keyframes fadeIn_1tEi9{from{transform:translate3d(0, 40px, 0)}to{transform:translate3d(0, 0, 0);opacity:1}}.fadeIn_1tEi9{animation-duration:1s;animation-fill-mode:both;-webkit-animation-duration:1s;-webkit-animation-fill-mode:both;animation-name:fadeIn_1tEi9;-webkit-animation-delay:0.5s;animation-delay:0.5s;-webkit-animation-name:fadeIn_1tEi9}.slideLeft_VfP_D{-webkit-animation:slideLeft_VfP_D 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;animation:slideLeft_VfP_D 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both}@-webkit-keyframes slideLeft_VfP_D{0%{transform:translateX(130%)}100%{transform:translateX(0px)}}@keyframes slideLeft_VfP_D{0%{transform:translateX(130%)}100%{transform:translateX(0px)}}.slideRight_2KZYF{-webkit-animation:slideRight_2KZYF 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;animation:slideRight_2KZYF 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both}@-webkit-keyframes slideRight_2KZYF{0%{transform:translateX(-130%)}100%{transform:translateX(0px)}}@keyframes slideRight_2KZYF{0%{transform:translateX(-130%)}100%{transform:translateX(0px)}}.slideUp_1cFOK{-webkit-animation:slideUp_1cFOK 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;animation:slideUp_1cFOK 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both}@-webkit-keyframes slideUp_1cFOK{0%{transform:translateY(130%)}100%{transform:translateY(0px)}}@keyframes slideUp_1cFOK{0%{transform:translateY(130%)}100%{transform:translateY(0px)}}.nudge_4ZHi0{-webkit-animation:nudge_4ZHi0 1s ease-in;animation:nudge_4ZHi0 1s ease-in}@-webkit-keyframes nudge_4ZHi0{0%{opacity:0}100%{opacity:1}}@keyframes nudge_4ZHi0{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes fly-in_26Kd1{0%{transform:scale(0.85) translateY(10%);opacity:0}100%{transform:scale(1) translateY(0);opacity:1}}@keyframes fly-in_26Kd1{0%{transform:scale(0.85) translateY(10%);opacity:0}100%{transform:scale(1) translateY(0);opacity:1}}.fly-in_26Kd1{transition:all 0.5s;-webkit-animation-duration:0.3s;animation-duration:0.3s;-webkit-animation-name:fly-in_26Kd1;animation-name:fly-in_26Kd1}@-webkit-keyframes show-with-delay_2QUxq{0%{opacity:0}100%{opacity:1}}@keyframes show-with-delay_2QUxq{0%{opacity:0}100%{opacity:1}}.show-with-delay_2QUxq{-webkit-animation-name:show-with-delay_2QUxq;animation-name:show-with-delay_2QUxq;-webkit-animation-duration:0s;animation-duration:0s;-webkit-animation-delay:3s;animation-delay:3s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.root_oBaEp{background:#ffffff;width:250px;width:var(--call-us-form-width, 250px);font-size:14px;font-size:var(--call-us-font-size, 14px);padding:10px;border-radius:6px;cursor:pointer;min-height:60px;margin-bottom:15px;box-shadow:0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);display:flex;flex-direction:row}.root_oBaEp .operator-img-container_2wsLP{display:flex;flex-direction:column;justify-content:center;width:30px;margin-right:10px}.root_oBaEp .operator-img-container_2wsLP .operator-img_QjIbG{height:30px;width:30px}.root_oBaEp .operator-img-container_2wsLP .operator-img_QjIbG.rounded-circle_1AVjU{border-radius:50%}.root_oBaEp .operator-img-container_2wsLP svg path:first-of-type{fill:#0596d4;fill:var(--call-us-main-button-background, #0596d4)}.root_oBaEp .greeting-content_3O1uh{display:flex;flex-direction:column;justify-content:center;flex-grow:1;white-space:pre-wrap}.root_oBaEp .greeting-content_3O1uh .greeting-message_LgRF_{color:#646464}.root_oBaEp .greeting-action-container_1q2FE{display:flex;flex-direction:column;justify-content:flex-start;margin-left:5px}.root_oBaEp .greeting-action-container_1q2FE .action-btn_3rCCF.close-btn_2gkoA{width:20px;height:20px;line-height:20px;text-align:right}.root_oBaEp .greeting-action-container_1q2FE .action-btn_3rCCF:hover:active svg{transition:.2s;transform:scale(0.9)}.root_oBaEp .greeting-action-container_1q2FE .action-btn_3rCCF:hover svg{transition:.2s;transform:scale(1.1)}.root_oBaEp .greeting-action-container_1q2FE .action-btn_3rCCF svg{fill:#373737;fill:var(--call-us-form-header-background, #373737);width:10px;height:18px}\n",""]),r.locals={fadeIn:"fadeIn_1tEi9",slideLeft:"slideLeft_VfP_D",slideRight:"slideRight_2KZYF",slideUp:"slideUp_1cFOK",nudge:"nudge_4ZHi0","fly-in":"fly-in_26Kd1","show-with-delay":"show-with-delay_2QUxq",root:"root_oBaEp","operator-img-container":"operator-img-container_2wsLP","operator-img":"operator-img_QjIbG","rounded-circle":"rounded-circle_1AVjU","greeting-content":"greeting-content_3O1uh","greeting-message":"greeting-message_LgRF_","greeting-action-container":"greeting-action-container_1q2FE","action-btn":"action-btn_3rCCF","close-btn":"close-btn_2gkoA"},e.exports=r},2493:(e,t,n)=>{var r=n(3645)((function(e){return e[1]}));r.push([e.id,".loading_tpBA7{position:absolute;left:0;right:0;top:0;bottom:0;background:rgba(255,255,255,0.7);display:flex;justify-content:center;align-items:center;z-index:99999}.loading_tpBA7 .loader_12kaN,.loading_tpBA7 .loader_12kaN:before,.loading_tpBA7 .loader_12kaN:after{border-radius:50%;width:2.5em;height:2.5em;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation:loading_tpBA7 1.8s infinite ease-in-out;animation:loading_tpBA7 1.8s infinite ease-in-out}.loading_tpBA7 .loader_12kaN{color:#373737;color:var(--call-us-form-header-background, #373737);font-size:6px;position:relative;text-indent:-9999em;transform:translateZ(0);-webkit-animation-delay:-0.16s;animation-delay:-0.16s}.loading_tpBA7 .loader_12kaN:before,.loading_tpBA7 .loader_12kaN:after{content:'';position:absolute;top:0}.loading_tpBA7 .loader_12kaN:before{left:-3.5em;-webkit-animation-delay:-0.32s;animation-delay:-0.32s}.loading_tpBA7 .loader_12kaN:after{left:3.5em}@-webkit-keyframes loading_tpBA7{0%,80%,100%{box-shadow:0 2.5em 0 -1.3em}40%{box-shadow:0 2.5em 0 0}}@keyframes loading_tpBA7{0%,80%,100%{box-shadow:0 2.5em 0 -1.3em}40%{box-shadow:0 2.5em 0 0}}\n",""]),r.locals={loading:"loading_tpBA7",loader:"loader_12kaN"},e.exports=r},857:(e,t,n)=>{var r=n(3645)((function(e){return e[1]}));r.push([e.id,".phone-toolbar_2WXUs{padding-left:10px;padding-right:10px;background:white;background:var(--call-us-dialer-background, white);border-bottom:thin solid darkgray;border-bottom:thin solid var(--call-us-border-color, darkgray);box-shadow:0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);flex-grow:1}.phone-toolbar_2WXUs .call-us-toolbar{display:flex;flex-direction:row;justify-content:center}.phone-toolbar_2WXUs .call-us-toolbar button{width:31px;height:31px;background-color:rgba(0,0,0,0);border-radius:50%}.root_3RA8K{font-size:14px;font-size:var(--call-us-font-size, 14px)}.chat_OZEZc{overflow-y:hidden;transition:height 0.2s ease-in-out}\n",""]),r.locals={"phone-toolbar":"phone-toolbar_2WXUs",root:"root_3RA8K",chat:"chat_OZEZc"},e.exports=r},7249:(e,t,n)=>{var r=n(3645)((function(e){return e[1]}));r.push([e.id,"@keyframes fadeIn_2EpdH{from{opacity:0}to{opacity:1}}@-webkit-keyframes fadeIn_2EpdH{from{transform:translate3d(0, 40px, 0)}to{transform:translate3d(0, 0, 0);opacity:1}}.fadeIn_2EpdH{animation-duration:1s;animation-fill-mode:both;-webkit-animation-duration:1s;-webkit-animation-fill-mode:both;animation-name:fadeIn_2EpdH;-webkit-animation-delay:0.5s;animation-delay:0.5s;-webkit-animation-name:fadeIn_2EpdH}.slideLeft_1pLdk{-webkit-animation:slideLeft_1pLdk 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;animation:slideLeft_1pLdk 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both}@-webkit-keyframes slideLeft_1pLdk{0%{transform:translateX(130%)}100%{transform:translateX(0px)}}@keyframes slideLeft_1pLdk{0%{transform:translateX(130%)}100%{transform:translateX(0px)}}.slideRight_1qQdw{-webkit-animation:slideRight_1qQdw 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;animation:slideRight_1qQdw 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both}@-webkit-keyframes slideRight_1qQdw{0%{transform:translateX(-130%)}100%{transform:translateX(0px)}}@keyframes slideRight_1qQdw{0%{transform:translateX(-130%)}100%{transform:translateX(0px)}}.slideUp_3909F{-webkit-animation:slideUp_3909F 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;animation:slideUp_3909F 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both}@-webkit-keyframes slideUp_3909F{0%{transform:translateY(130%)}100%{transform:translateY(0px)}}@keyframes slideUp_3909F{0%{transform:translateY(130%)}100%{transform:translateY(0px)}}.nudge_1Idi4{-webkit-animation:nudge_1Idi4 1s ease-in;animation:nudge_1Idi4 1s ease-in}@-webkit-keyframes nudge_1Idi4{0%{opacity:0}100%{opacity:1}}@keyframes nudge_1Idi4{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes fly-in_2qv31{0%{transform:scale(0.85) translateY(10%);opacity:0}100%{transform:scale(1) translateY(0);opacity:1}}@keyframes fly-in_2qv31{0%{transform:scale(0.85) translateY(10%);opacity:0}100%{transform:scale(1) translateY(0);opacity:1}}.fly-in_2qv31{transition:all 0.5s;-webkit-animation-duration:0.3s;animation-duration:0.3s;-webkit-animation-name:fly-in_2qv31;animation-name:fly-in_2qv31}@-webkit-keyframes show-with-delay_1nR9_{0%{opacity:0}100%{opacity:1}}@keyframes show-with-delay_1nR9_{0%{opacity:0}100%{opacity:1}}.show-with-delay_1nR9_{-webkit-animation-name:show-with-delay_1nR9_;animation-name:show-with-delay_1nR9_;-webkit-animation-duration:0s;animation-duration:0s;-webkit-animation-delay:3s;animation-delay:3s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.bubble_Shtpk{border-radius:50%;width:60px;width:var(--call-us-main-button-width, 60px);height:60px;height:var(--call-us-main-button-width, 60px)}.bubble_Shtpk svg{padding:10px}.bubble_Shtpk .chevron_down_icon_ov-eP{width:60%}.minimized-button_3cubb{box-shadow:0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);margin:0;background-color:#373737;background-color:var(--call-us-form-header-background, #373737)}.minimized-button_3cubb .minimize-image_1xUer{transition:transform 0.2s ease-in-out}.minimized-button_3cubb img.minimize-image_1xUer{width:30px;height:30px}.minimized-button_3cubb .notification-indicator_2M7Z6{position:absolute;height:13px;width:13px;background-color:#e44f4b;border-radius:50%;top:2px;right:2px;border:1px solid white}.minimized-button_3cubb svg rect{fill:#373737;fill:var(--call-us-form-header-background, #373737)}\n",""]),r.locals={fadeIn:"fadeIn_2EpdH",slideLeft:"slideLeft_1pLdk",slideRight:"slideRight_1qQdw",slideUp:"slideUp_3909F",nudge:"nudge_1Idi4","fly-in":"fly-in_2qv31","show-with-delay":"show-with-delay_1nR9_",bubble:"bubble_Shtpk",chevron_down_icon:"chevron_down_icon_ov-eP","minimized-button":"minimized-button_3cubb","minimize-image":"minimize-image_1xUer","notification-indicator":"notification-indicator_2M7Z6"},e.exports=r},8830:(e,t,n)=>{var r=n(3645)((function(e){return e[1]}));r.push([e.id,".google-button_tWROS button,.root_1o5pl button{width:100%;color:#444444;background:#0596d4;background:var(--call-us-main-button-background, #0596d4);border:1px #0596d4 solid;border:1px var(--call-us-main-button-background, #0596d4) solid;padding:5px 10px;font-size:14px;font-size:var(--call-us-font-size, 14px);outline:none;cursor:pointer}.google-button_tWROS button.submit_6fz9T,.root_1o5pl button.submit_6fz9T{align-self:flex-end;background:#0596d4;background:var(--call-us-main-button-background, #0596d4);width:100%;height:35px;color:white;font-size:14px;font-size:var(--call-us-font-size, 14px)}.root_1o5pl{border-radius:6px;bottom:0;left:0;position:absolute;right:0;top:0;align-items:center;justify-content:center;overflow:hidden;z-index:1;display:flex}.root_1o5pl .content_3By8g{color:black;font-size:14px;font-size:var(--call-us-font-size, 14px);border-radius:6px;display:flex;flex-direction:column;align-items:center;position:relative;background:white;width:80%}.root_1o5pl .content_3By8g .content-message_18k35{display:flex;flex-direction:column;width:100%;flex-grow:1;padding:10px}.root_1o5pl .content_3By8g button{font-size:14px;font-size:var(--call-us-font-size, 14px);border-bottom-left-radius:6px;border-bottom-right-radius:6px}.root_1o5pl .background_31-cR{z-index:-1;bottom:0;left:0;position:absolute;right:0;top:0;background:black;opacity:0.5}\n",""]),r.locals={"google-button":"google-button_tWROS",root:"root_1o5pl",submit:"submit_6fz9T",content:"content_3By8g","content-message":"content-message_18k35",background:"background_31-cR"},e.exports=r},7629:(e,t,n)=>{var r=n(3645)((function(e){return e[1]}));r.push([e.id,".custom-scrollbar_2jBqw::-webkit-scrollbar,.panel_58Arh .panel_content_3rRWM .panel_body_1ntU1::-webkit-scrollbar{width:4px}.custom-scrollbar_2jBqw::-webkit-scrollbar-track,.panel_58Arh .panel_content_3rRWM .panel_body_1ntU1::-webkit-scrollbar-track{background:#f1f1f1}.custom-scrollbar_2jBqw::-webkit-scrollbar-thumb,.panel_58Arh .panel_content_3rRWM .panel_body_1ntU1::-webkit-scrollbar-thumb{background:#888}.custom-scrollbar_2jBqw::-webkit-scrollbar-thumb:hover,.panel_58Arh .panel_content_3rRWM .panel_body_1ntU1::-webkit-scrollbar-thumb:hover{background:#555}@keyframes fadeIn_zDB1o{from{opacity:0}to{opacity:1}}@-webkit-keyframes fadeIn_zDB1o{from{transform:translate3d(0, 40px, 0)}to{transform:translate3d(0, 0, 0);opacity:1}}.fadeIn_zDB1o{animation-duration:1s;animation-fill-mode:both;-webkit-animation-duration:1s;-webkit-animation-fill-mode:both;animation-name:fadeIn_zDB1o;-webkit-animation-delay:0.5s;animation-delay:0.5s;-webkit-animation-name:fadeIn_zDB1o}.slideLeft_3ONI0{-webkit-animation:slideLeft_3ONI0 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;animation:slideLeft_3ONI0 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both}@-webkit-keyframes slideLeft_3ONI0{0%{transform:translateX(130%)}100%{transform:translateX(0px)}}@keyframes slideLeft_3ONI0{0%{transform:translateX(130%)}100%{transform:translateX(0px)}}.slideRight_1OA2g{-webkit-animation:slideRight_1OA2g 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;animation:slideRight_1OA2g 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both}@-webkit-keyframes slideRight_1OA2g{0%{transform:translateX(-130%)}100%{transform:translateX(0px)}}@keyframes slideRight_1OA2g{0%{transform:translateX(-130%)}100%{transform:translateX(0px)}}.slideUp_3jmBz{-webkit-animation:slideUp_3jmBz 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;animation:slideUp_3jmBz 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both}@-webkit-keyframes slideUp_3jmBz{0%{transform:translateY(130%)}100%{transform:translateY(0px)}}@keyframes slideUp_3jmBz{0%{transform:translateY(130%)}100%{transform:translateY(0px)}}.nudge_3kKjY{-webkit-animation:nudge_3kKjY 1s ease-in;animation:nudge_3kKjY 1s ease-in}@-webkit-keyframes nudge_3kKjY{0%{opacity:0}100%{opacity:1}}@keyframes nudge_3kKjY{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes fly-in_1O-w7{0%{transform:scale(0.85) translateY(10%);opacity:0}100%{transform:scale(1) translateY(0);opacity:1}}@keyframes fly-in_1O-w7{0%{transform:scale(0.85) translateY(10%);opacity:0}100%{transform:scale(1) translateY(0);opacity:1}}.fly-in_1O-w7{transition:all 0.5s;-webkit-animation-duration:0.3s;animation-duration:0.3s;-webkit-animation-name:fly-in_1O-w7;animation-name:fly-in_1O-w7}@-webkit-keyframes show-with-delay_XExWz{0%{opacity:0}100%{opacity:1}}@keyframes show-with-delay_XExWz{0%{opacity:0}100%{opacity:1}}.show-with-delay_XExWz{-webkit-animation-name:show-with-delay_XExWz;animation-name:show-with-delay_XExWz;-webkit-animation-duration:0s;animation-duration:0s;-webkit-animation-delay:3s;animation-delay:3s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.panel_58Arh{display:flex;flex-direction:column;position:relative;flex-grow:1;max-height:100vh}.panel_58Arh.full-screen_2uxB5{height:calc(1vh * 100) !important;height:calc(var(--vh, 1vh) * 100) !important;width:calc(1vw * 100) !important;width:calc(var(--vw, 1vw) * 100) !important;border-radius:0}.panel_58Arh.popout-small_25FNm{width:calc(var(--call-us-form-width) / 2);margin-left:calc(var(--call-us-form-width) / 4)}.panel_58Arh .minimized__zvY6{display:none}.panel_58Arh .panel_content_3rRWM{height:100%;display:flex;flex-direction:column;width:250px;width:var(--call-us-form-width, 250px);box-shadow:0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);border-radius:6px}.panel_58Arh .panel_content_3rRWM.video_extend_3pwOM{max-height:100vh !important;height:calc(585px + 180px) !important;height:calc(var(--call-us-form-height, 585px) + 180px) !important}.panel_58Arh .panel_content_3rRWM .panel_head_13BIJ{background:#373737;background:var(--call-us-form-header-background, #373737);height:40px;display:flex;flex-direction:row;align-items:center;border-top-right-radius:inherit;border-top-left-radius:inherit;padding:0 10px}.panel_58Arh .panel_content_3rRWM .panel_head_13BIJ .panel_head_title_2cRNM{flex-grow:1;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:14px;font-size:var(--call-us-font-size, 14px);line-height:1.5em;margin:0}.panel_58Arh .panel_content_3rRWM .panel_head_13BIJ .logo-icon_O3xoq{height:17px;padding-right:5px}.panel_58Arh .panel_content_3rRWM .panel_head_13BIJ .action_menu_1eTa6{display:flex;flex-direction:row;height:100%;align-items:center;margin-left:5px}.panel_58Arh .panel_content_3rRWM .panel_head_13BIJ .action_menu_1eTa6.full-screen-menu_30ILF{margin-left:15px}.panel_58Arh .panel_content_3rRWM .panel_head_13BIJ .action_menu_1eTa6.full-screen-menu_30ILF .action_menu_btn_3vHql{margin-left:20px}.panel_58Arh .panel_content_3rRWM .panel_head_13BIJ .action_menu_1eTa6 .action_menu_btn_3vHql{cursor:pointer;margin-left:5px}.panel_58Arh .panel_content_3rRWM .panel_head_13BIJ .action_menu_1eTa6 .action_menu_btn_3vHql.close_btn_2j2Zx{width:10px;height:14px;line-height:14px}.panel_58Arh .panel_content_3rRWM .panel_head_13BIJ .action_menu_1eTa6 .action_menu_btn_3vHql.minimize_btn_24spZ{width:13px;line-height:13px;height:13px}.panel_58Arh .panel_content_3rRWM .panel_body_1ntU1{position:relative;font-size:14px;font-size:var(--call-us-font-size, 14px);flex:1;overflow-y:auto;color:black;background:#FFFFFF;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit;display:flex;flex-direction:column}.panel_58Arh .panel_content_3rRWM.full-screen_2uxB5{height:calc(1vh * 100) !important;height:calc(var(--vh, 1vh) * 100) !important;width:calc(1vw * 100) !important;width:calc(var(--vw, 1vw) * 100) !important}.panel_58Arh .panel_content_3rRWM.chat-form-height_1XaYN{min-height:300px;max-height:330px;max-height:var(--call-us-form-height, 330px);height:330px;height:var(--call-us-form-height, 330px)}.panel_58Arh .panel_content_3rRWM.small-form-height_3rsdO{min-height:187px;min-height:var(--call-us-small-form-height, 187px)}.panel_58Arh .bubble_button_3T7di{display:flex;flex-direction:column}.panel_58Arh .bubble_button_3T7di.chat_expanded_1icG_{margin-top:15px}.panel_58Arh .bubble_button_3T7di.bubble_left_2_5xu{align-items:flex-start}.panel_58Arh .bubble_button_3T7di.bubble_right_2aOox{align-items:flex-end}.panel_58Arh svg rect{fill:#373737;fill:var(--call-us-form-header-background, #373737)}\n",""]),r.locals={"custom-scrollbar":"custom-scrollbar_2jBqw",panel:"panel_58Arh",panel_content:"panel_content_3rRWM",panel_body:"panel_body_1ntU1",fadeIn:"fadeIn_zDB1o",slideLeft:"slideLeft_3ONI0",slideRight:"slideRight_1OA2g",slideUp:"slideUp_3jmBz",nudge:"nudge_3kKjY","fly-in":"fly-in_1O-w7","show-with-delay":"show-with-delay_XExWz","full-screen":"full-screen_2uxB5","popout-small":"popout-small_25FNm",minimized:"minimized__zvY6",video_extend:"video_extend_3pwOM",panel_head:"panel_head_13BIJ",panel_head_title:"panel_head_title_2cRNM","logo-icon":"logo-icon_O3xoq",action_menu:"action_menu_1eTa6","full-screen-menu":"full-screen-menu_30ILF",action_menu_btn:"action_menu_btn_3vHql",close_btn:"close_btn_2j2Zx",minimize_btn:"minimize_btn_24spZ","chat-form-height":"chat-form-height_1XaYN","small-form-height":"small-form-height_3rsdO",bubble_button:"bubble_button_3T7di",chat_expanded:"chat_expanded_1icG_",bubble_left:"bubble_left_2_5xu",bubble_right:"bubble_right_2aOox"},e.exports=r},7438:(e,t,n)=>{var r=n(3645)((function(e){return e[1]}));r.push([e.id,".root_2MzH8{height:100%;flex-grow:1;min-width:0}.root_2MzH8 .phone-controls-mode_2DKe2{background-color:#373737;background-color:var(--call-us-form-header-background, #373737);display:flex;flex-direction:row;align-items:center;height:100%;flex-grow:1;min-width:0}.root_2MzH8 .phone-controls-mode_2DKe2 .operator-info_2M-tD{display:flex;flex-direction:row;height:100%;align-items:center;min-width:0}.root_2MzH8 .phone-controls-mode_2DKe2 .operator-info_2M-tD .operator-img-container_1GaFK{position:relative;height:30px;width:30px}.root_2MzH8 .phone-controls-mode_2DKe2 .operator-info_2M-tD .operator-img-container_1GaFK .operator-img_38nJK{height:30px;width:30px}.root_2MzH8 .phone-controls-mode_2DKe2 .operator-info_2M-tD .operator-img-container_1GaFK .operator-img_38nJK.rounded-circle_4GBI_{border-radius:50%}.root_2MzH8 .phone-controls-mode_2DKe2 .operator-info_2M-tD .operator-img-container_1GaFK .online-icon_1WxH6{position:absolute;height:7px;width:7px;background-color:#4cd137;border-radius:50%;bottom:0em;right:0em;border:1px solid white}.root_2MzH8 .phone-controls-mode_2DKe2 .operator-info_2M-tD .operator-img-container_1GaFK .offline-icon_2Be2J{background-color:#c23616 !important}.root_2MzH8 .phone-controls-mode_2DKe2 .operator-info_2M-tD .operator-img-container_1GaFK svg path:first-of-type{fill:#0596d4;fill:var(--call-us-main-button-background, #0596d4)}.root_2MzH8 .phone-controls-mode_2DKe2 .operator-info_2M-tD .operator_name_3WLr-{margin-left:5px;font-size:14px;font-size:var(--call-us-font-size, 14px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.root_2MzH8 .phone-controls-mode_2DKe2 .operator-info_2M-tD .operator_name_3WLr-.popout_3aaSn{max-width:400px}.root_2MzH8 .phone-controls-mode_2DKe2 .call-controls_2x7VS{display:flex;flex-direction:row;align-items:center;height:100%;margin-left:5px;min-width:80px}.root_2MzH8 .phone-controls-mode_2DKe2 .call-controls_2x7VS.full-screen-controls_1GJOF{margin-left:15px;min-width:105px}.root_2MzH8 .phone-controls-mode_2DKe2 .call-controls_2x7VS.full-screen-controls_1GJOF .toolbar-button_1u4U1{margin-right:15px}.root_2MzH8 .phone-controls-mode_2DKe2 .call-controls_2x7VS .toolbar-button_1u4U1{background:transparent;width:20px;height:20px;margin-right:5px}.root_2MzH8 .phone-controls-mode_2DKe2 .call-controls_2x7VS .toolbar-button_1u4U1.button-end-call_2I0Xw{border-radius:50%;background:red}.root_2MzH8 .phone-controls-mode_2DKe2 .call-controls_2x7VS .toolbar-button_1u4U1.button-end-call_2I0Xw svg{transform:rotate(135deg)}.root_2MzH8 .phone-controls-mode_2DKe2 .space-expander_3utoz{flex-grow:1}.root_2MzH8 .single-button-mode_1UQHX .single-button_1G21L{box-shadow:0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);margin:0;background-color:#373737;background-color:var(--call-us-form-header-background, #373737)}.root_2MzH8 .single-button-mode_1UQHX .single-button_1G21L svg rect{fill:#373737;fill:var(--call-us-form-header-background, #373737)}.root_2MzH8 .single-button-mode_1UQHX .bubble_2HXOR{border-radius:50%;width:60px;width:var(--call-us-main-button-width, 60px);height:60px;height:var(--call-us-main-button-width, 60px)}.root_2MzH8 .single-button-mode_1UQHX .bubble_2HXOR svg{padding:10px}.root_2MzH8 .single-button-mode_1UQHX .button-end-call_2I0Xw svg{transform:rotate(135deg)}\n",""]),r.locals={root:"root_2MzH8","phone-controls-mode":"phone-controls-mode_2DKe2","operator-info":"operator-info_2M-tD","operator-img-container":"operator-img-container_1GaFK","operator-img":"operator-img_38nJK","rounded-circle":"rounded-circle_4GBI_","online-icon":"online-icon_1WxH6","offline-icon":"offline-icon_2Be2J",operator_name:"operator_name_3WLr-",popout:"popout_3aaSn","call-controls":"call-controls_2x7VS","full-screen-controls":"full-screen-controls_1GJOF","toolbar-button":"toolbar-button_1u4U1","button-end-call":"button-end-call_2I0Xw","space-expander":"space-expander_3utoz","single-button-mode":"single-button-mode_1UQHX","single-button":"single-button_1G21L",bubble:"bubble_2HXOR"},e.exports=r},8690:(e,t,n)=>{var r=n(3645)((function(e){return e[1]}));r.push([e.id,".button_3Kb46{position:relative;cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center;border:0}.button_3Kb46 svg{width:80%}.button_3Kb46:focus{outline:none}.button_3Kb46:active:enabled{transform:scale(0.95);transition:none}.button_3Kb46 .bubble_2EBFx{border-radius:50%}.button_3Kb46:disabled{transition:opacity 0.1s ease-in-out;opacity:0.3;cursor:not-allowed}\n",""]),r.locals={button:"button_3Kb46",bubble:"bubble_2EBFx"},e.exports=r},9926:(e,t,n)=>{var r=n(3645)((function(e){return e[1]}));r.push([e.id,"\n.msg_content_37X1-{\n white-space: pre-wrap;\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n}\n.msg_content_37X1- a{\n color: inherit;\n}\n",""]),r.locals={msg_content:"msg_content_37X1-"},e.exports=r},7027:(e,t,n)=>{var r=n(3645)((function(e){return e[1]}));r.push([e.id,"*{box-sizing:border-box}\n",""]),e.exports=r},2953:(e,t,n)=>{var r=n(3645)((function(e){return e[1]}));r.push([e.id,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/* this style must be not tagged as module because rating svgs html comes from dynamically rendered flow options, so it cannot use class with hash from scss */\n.rate_svg svg{\n height:20px;\n}\n.rate_text{\n margin-left:10px;\n}\n",""]),e.exports=r},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var s=0;s<this.length;s++){var o=this[s][0];null!=o&&(i[o]=!0)}for(var a=0;a<e.length;a++){var c=[].concat(e[a]);r&&i[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},7484:function(e){e.exports=function(){"use strict";var e="millisecond",t="second",n="minute",r="hour",i="day",s="week",o="month",a="quarter",c="year",l="date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d+)?$/,u=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},h=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},p={s:h,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+h(r,2,"0")+":"+h(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,o),s=n-i<0,a=t.clone().add(r+(s?-1:1),o);return+(-(r+(n-i)/(s?i-a:a-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(f){return{M:o,y:c,w:s,d:i,D:l,h:r,m:n,s:t,ms:e,Q:a}[f]||String(f||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},m="en",g={};g[m]=d;var v=function(e){return e instanceof A},b=function(e,t,n){var r;if(!e)return m;if("string"==typeof e)g[e]&&(r=e),t&&(g[e]=t,r=e);else{var i=e.name;g[i]=e,r=i}return!n&&r&&(m=r),r||!n&&m},y=function(e,t){if(v(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new A(n)},_=p;_.l=b,_.i=v,_.w=function(e,t){return y(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var A=function(){function d(e){this.$L=b(e.locale,null,!0),this.parse(e)}var h=d.prototype;return h.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(_.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(f);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},h.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},h.$utils=function(){return _},h.isValid=function(){return!("Invalid Date"===this.$d.toString())},h.isSame=function(e,t){var n=y(e);return this.startOf(t)<=n&&n<=this.endOf(t)},h.isAfter=function(e,t){return y(e)<this.startOf(t)},h.isBefore=function(e,t){return this.endOf(t)<y(e)},h.$g=function(e,t,n){return _.u(e)?this[t]:this.set(n,e)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(e,a){var f=this,u=!!_.u(a)||a,d=_.p(e),h=function(e,t){var n=_.w(f.$u?Date.UTC(f.$y,t,e):new Date(f.$y,t,e),f);return u?n:n.endOf(i)},p=function(e,t){return _.w(f.toDate()[e].apply(f.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),f)},m=this.$W,g=this.$M,v=this.$D,b="set"+(this.$u?"UTC":"");switch(d){case c:return u?h(1,0):h(31,11);case o:return u?h(1,g):h(0,g+1);case s:var y=this.$locale().weekStart||0,A=(m<y?m+7:m)-y;return h(u?v-A:v+(6-A),g);case i:case l:return p(b+"Hours",0);case r:return p(b+"Minutes",1);case n:return p(b+"Seconds",2);case t:return p(b+"Milliseconds",3);default:return this.clone()}},h.endOf=function(e){return this.startOf(e,!1)},h.$set=function(s,a){var f,u=_.p(s),d="set"+(this.$u?"UTC":""),h=(f={},f[i]=d+"Date",f[l]=d+"Date",f[o]=d+"Month",f[c]=d+"FullYear",f[r]=d+"Hours",f[n]=d+"Minutes",f[t]=d+"Seconds",f[e]=d+"Milliseconds",f)[u],p=u===i?this.$D+(a-this.$W):a;if(u===o||u===c){var m=this.clone().set(l,1);m.$d[h](p),m.init(),this.$d=m.set(l,Math.min(this.$D,m.daysInMonth())).$d}else h&&this.$d[h](p);return this.init(),this},h.set=function(e,t){return this.clone().$set(e,t)},h.get=function(e){return this[_.p(e)]()},h.add=function(e,a){var l,f=this;e=Number(e);var u=_.p(a),d=function(t){var n=y(f);return _.w(n.date(n.date()+Math.round(t*e)),f)};if(u===o)return this.set(o,this.$M+e);if(u===c)return this.set(c,this.$y+e);if(u===i)return d(1);if(u===s)return d(7);var h=(l={},l[n]=6e4,l[r]=36e5,l[t]=1e3,l)[u]||1,p=this.$d.getTime()+e*h;return _.w(p,this)},h.subtract=function(e,t){return this.add(-1*e,t)},h.format=function(e){var t=this;if(!this.isValid())return"Invalid Date";var n=e||"YYYY-MM-DDTHH:mm:ssZ",r=_.z(this),i=this.$locale(),s=this.$H,o=this.$m,a=this.$M,c=i.weekdays,l=i.months,f=function(e,r,i,s){return e&&(e[r]||e(t,n))||i[r].substr(0,s)},d=function(e){return _.s(s%12||12,e,"0")},h=i.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:_.s(a+1,2,"0"),MMM:f(i.monthsShort,a,l,3),MMMM:f(l,a),D:this.$D,DD:_.s(this.$D,2,"0"),d:String(this.$W),dd:f(i.weekdaysMin,this.$W,c,2),ddd:f(i.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(s),HH:_.s(s,2,"0"),h:d(1),hh:d(2),a:h(s,o,!0),A:h(s,o,!1),m:String(o),mm:_.s(o,2,"0"),s:String(this.$s),ss:_.s(this.$s,2,"0"),SSS:_.s(this.$ms,3,"0"),Z:r};return n.replace(u,(function(e,t){return t||p[e]||r.replace(":","")}))},h.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},h.diff=function(e,l,f){var u,d=_.p(l),h=y(e),p=6e4*(h.utcOffset()-this.utcOffset()),m=this-h,g=_.m(this,h);return g=(u={},u[c]=g/12,u[o]=g,u[a]=g/3,u[s]=(m-p)/6048e5,u[i]=(m-p)/864e5,u[r]=m/36e5,u[n]=m/6e4,u[t]=m/1e3,u)[d]||m,f?g:_.a(g)},h.daysInMonth=function(){return this.endOf(o).$D},h.$locale=function(){return g[this.$L]},h.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=b(e,t,!0);return r&&(n.$L=r),n},h.clone=function(){return _.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},d}(),w=A.prototype;return y.prototype=w,[["$ms",e],["$s",t],["$m",n],["$H",r],["$W",i],["$M",o],["$y",c],["$D",l]].forEach((function(e){w[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),y.extend=function(e,t){return e(t,A,y),y},y.locale=b,y.isDayjs=v,y.unix=function(e){return y(1e3*e)},y.en=g[m],y.Ls=g,y.p={},y}()},3023:function(e){!function(t){"use strict";function n(e){function t(){return Ce<Ee}function n(){return Ce}function i(e){Ce=e}function s(){Ce=0,Ee=we.length}function o(e,t){return{name:e,tokens:t||"",semantic:t||"",children:[]}}function a(e,t){var n;return null===t?null:((n=o(e)).tokens=t.tokens,n.semantic=t.semantic,n.children.push(t),n)}function c(e,t){return null!==t&&(e.tokens+=t.tokens,e.semantic+=t.semantic),e.children.push(t),e}function l(e){var n;return t()&&e(n=we[Ce])?(Ce+=1,o("token",n)):null}function f(e){return function(){return a("literal",l((function(t){return t===e})))}}function u(){var e=arguments;return function(){var t,r,s,a;for(a=n(),r=o("and"),t=0;t<e.length;t+=1){if(null===(s=e[t]()))return i(a),null;c(r,s)}return r}}function d(){var e=arguments;return function(){var t,r,s;for(s=n(),t=0;t<e.length;t+=1){if(null!==(r=e[t]()))return r;i(s)}return null}}function h(e){return function(){var t,r;return r=n(),null!==(t=e())?t:(i(r),o("opt"))}}function p(e){return function(){var t=e();return null!==t&&(t.semantic=""),t}}function m(e){return function(){var t=e();return null!==t&&t.semantic.length>0&&(t.semantic=" "),t}}function g(e,t){return function(){var r,s,a,l,f;for(l=n(),r=o("star"),a=0,f=void 0===t?0:t;null!==(s=e());)a+=1,c(r,s);return a>=f?r:(i(l),null)}}function v(e){return e.charCodeAt(0)>=128}function b(){return a("cr",f("\r")())}function y(){return a("crlf",u(b,w)())}function _(){return a("dquote",f('"')())}function A(){return a("htab",f("\t")())}function w(){return a("lf",f("\n")())}function C(){return a("sp",f(" ")())}function E(){return a("vchar",l((function(t){var n=t.charCodeAt(0),r=33<=n&&n<=126;return e.rfc6532&&(r=r||v(t)),r})))}function S(){return a("wsp",d(C,A)())}function T(){var e=a("quoted-pair",d(u(f("\\"),d(E,S)),re)());return null===e?null:(e.semantic=e.semantic[1],e)}function O(){return a("fws",d(se,u(h(u(g(S),p(y))),g(S,1)))())}function x(){return a("ctext",d((function(){return l((function(t){var n=t.charCodeAt(0),r=33<=n&&n<=39||42<=n&&n<=91||93<=n&&n<=126;return e.rfc6532&&(r=r||v(t)),r}))}),te)())}function M(){return a("ccontent",d(x,T,N)())}function N(){return a("comment",u(f("("),g(u(h(O),M)),h(O),f(")"))())}function I(){return a("cfws",d(u(g(u(h(O),N),1),h(O)),O)())}function R(){return a("atext",l((function(t){var n="a"<=t&&t<="z"||"A"<=t&&t<="Z"||"0"<=t&&t<="9"||["!","#","$","%","&","'","*","+","-","/","=","?","^","_","`","{","|","}","~"].indexOf(t)>=0;return e.rfc6532&&(n=n||v(t)),n})))}function k(){return a("atom",u(m(h(I)),g(R,1),m(h(I)))())}function P(){var e,t;return null===(e=a("dot-atom-text",g(R,1)()))||null!==(t=g(u(f("."),g(R,1)))())&&c(e,t),e}function D(){return a("dot-atom",u(p(h(I)),P,p(h(I)))())}function F(){return a("qtext",d((function(){return l((function(t){var n=t.charCodeAt(0),r=33===n||35<=n&&n<=91||93<=n&&n<=126;return e.rfc6532&&(r=r||v(t)),r}))}),ne)())}function B(){return a("qcontent",d(F,T)())}function L(){return a("quoted-string",u(p(h(I)),p(_),g(u(h(m(O)),B)),h(p(O)),p(_),p(h(I)))())}function j(){return a("word",d(k,L)())}function U(){return a("address",d(q,H)())}function q(){return a("mailbox",d(z,J)())}function z(){return a("name-addr",u(h(V),G)())}function G(){return a("angle-addr",d(u(p(h(I)),f("<"),J,f(">"),p(h(I))),oe)())}function H(){return a("group",u(V,f(":"),h(Q),f(";"),p(h(I)))())}function V(){return a("display-name",(null!==(e=a("phrase",d(ie,g(j,1))()))&&(e.semantic=e.semantic.replace(/([ \t]|\r\n)+/g," ").replace(/^\s*/,"").replace(/\s*$/,"")),e));var e}function $(){return a("mailbox-list",d(u(q,g(u(f(","),q))),le)())}function W(){return a("address-list",d(u(U,g(u(f(","),U))),fe)())}function Q(){return a("group-list",d($,p(I),ue)())}function Y(){return a("local-part",d(de,D,L)())}function X(){return a("dtext",d((function(){return l((function(t){var n=t.charCodeAt(0),r=33<=n&&n<=90||94<=n&&n<=126;return e.rfc6532&&(r=r||v(t)),r}))}),pe)())}function K(){return a("domain-literal",u(p(h(I)),f("["),g(u(h(O),X)),h(O),f("]"),p(h(I)))())}function Z(){return a("domain",(t=d(he,D,K)(),e.rejectTLD&&t&&t.semantic&&t.semantic.indexOf(".")<0?null:(t&&(t.semantic=t.semantic.replace(/\s+/g,"")),t)));var t}function J(){return a("addr-spec",u(Y,f("@"),Z)())}function ee(){return e.strict?null:a("obs-NO-WS-CTL",l((function(e){var t=e.charCodeAt(0);return 1<=t&&t<=8||11===t||12===t||14<=t&&t<=31||127===t})))}function te(){return e.strict?null:a("obs-ctext",ee())}function ne(){return e.strict?null:a("obs-qtext",ee())}function re(){return e.strict?null:a("obs-qp",u(f("\\"),d(f("\0"),ee,w,b))())}function ie(){return e.strict?null:e.atInDisplayName?a("obs-phrase",u(j,g(d(j,f("."),f("@"),m(I))))()):a("obs-phrase",u(j,g(d(j,f("."),m(I))))())}function se(){return e.strict?null:a("obs-FWS",g(u(p(h(y)),S),1)())}function oe(){return e.strict?null:a("obs-angle-addr",u(p(h(I)),f("<"),ae,J,f(">"),p(h(I)))())}function ae(){return e.strict?null:a("obs-route",u(ce,f(":"))())}function ce(){return e.strict?null:a("obs-domain-list",u(g(d(p(I),f(","))),f("@"),Z,g(u(f(","),p(h(I)),h(u(f("@"),Z)))))())}function le(){return e.strict?null:a("obs-mbox-list",u(g(u(p(h(I)),f(","))),q,g(u(f(","),h(u(q,p(I))))))())}function fe(){return e.strict?null:a("obs-addr-list",u(g(u(p(h(I)),f(","))),U,g(u(f(","),h(u(U,p(I))))))())}function ue(){return e.strict?null:a("obs-group-list",u(g(u(p(h(I)),f(",")),1),p(h(I)))())}function de(){return e.strict?null:a("obs-local-part",u(j,g(u(f("."),j)))())}function he(){return e.strict?null:a("obs-domain",u(k,g(u(f("."),k)))())}function pe(){return e.strict?null:a("obs-dtext",d(ee,T)())}function me(e,t){var n,r,i;if(null==t)return null;for(r=[t];r.length>0;){if((i=r.pop()).name===e)return i;for(n=i.children.length-1;n>=0;n-=1)r.push(i.children[n])}return null}function ge(e,t){var n,r,i,s,o;if(null==t)return null;for(r=[t],s=[],o={},n=0;n<e.length;n+=1)o[e[n]]=!0;for(;r.length>0;)if((i=r.pop()).name in o)s.push(i);else for(n=i.children.length-1;n>=0;n-=1)r.push(i.children[n]);return s}function ve(t){var n,r,i,s,o;if(null===t)return null;for(n=[],r=ge(["group","mailbox"],t),i=0;i<r.length;i+=1)"group"===(s=r[i]).name?n.push(be(s)):"mailbox"===s.name&&n.push(ye(s));return o={ast:t,addresses:n},e.simple&&(o=function(e){var t;if(e&&e.addresses)for(t=0;t<e.addresses.length;t+=1)delete e.addresses[t].node;return e}(o)),e.oneResult?function(t){if(!t)return null;if(!e.partial&&t.addresses.length>1)return null;return t.addresses&&t.addresses[0]}(o):e.simple?o&&o.addresses:o}function be(e){var t,n=me("display-name",e),r=[],i=ge(["mailbox"],e);for(t=0;t<i.length;t+=1)r.push(ye(i[t]));return{node:e,parts:{name:n},type:e.name,name:_e(n),addresses:r}}function ye(e){var t=me("display-name",e),n=me("addr-spec",e),r=function(e,t){var n,r,i,s;if(null==t)return null;for(r=[t],s=[];r.length>0;)for((i=r.pop()).name===e&&s.push(i),n=i.children.length-1;n>=0;n-=1)r.push(i.children[n]);return s}("cfws",e),i=ge(["comment"],e),s=me("local-part",n),o=me("domain",n);return{node:e,parts:{name:t,address:n,local:s,domain:o,comments:r},type:e.name,name:_e(t),address:_e(n),local:_e(s),domain:_e(o),comments:Ae(i),groupName:_e(e.groupName)}}function _e(e){return null!=e?e.semantic:null}function Ae(e){var t="";if(e)for(var n=0;n<e.length;n+=1)t+=_e(e[n]);return t}var we,Ce,Ee,Se,Te;if(null===(e=r(e,{})))return null;if(we=e.input,Te={address:U,"address-list":W,"angle-addr":G,from:function(){return a("from",d($,W)())},group:H,mailbox:q,"mailbox-list":$,"reply-to":function(){return a("reply-to",W())},sender:function(){return a("sender",d(q,U)())}}[e.startAt]||W,!e.strict){if(s(),e.strict=!0,Se=Te(we),e.partial||!t())return ve(Se);e.strict=!1}return s(),Se=Te(we),!e.partial&&t()?null:ve(Se)}function r(e,t){function n(e){return"[object String]"===Object.prototype.toString.call(e)}function r(e){return null==e}var i,s;if(n(e))e={input:e};else if(!function(e){return e===Object(e)}(e))return null;if(!n(e.input))return null;if(!t)return null;for(s in i={oneResult:!1,partial:!1,rejectTLD:!1,rfc6532:!1,simple:!1,startAt:"address-list",strict:!1,atInDisplayName:!1})r(e[s])&&(e[s]=r(t[s])?i[s]:t[s]);return e}n.parseOneAddress=function(e){return n(r(e,{oneResult:!0,rfc6532:!0,simple:!0,startAt:"address-list"}))},n.parseAddressList=function(e){return n(r(e,{rfc6532:!0,simple:!0,startAt:"address-list"}))},n.parseFrom=function(e){return n(r(e,{rfc6532:!0,simple:!0,startAt:"from"}))},n.parseSender=function(e){return n(r(e,{oneResult:!0,rfc6532:!0,simple:!0,startAt:"sender"}))},n.parseReplyTo=function(e){return n(r(e,{rfc6532:!0,simple:!0,startAt:"reply-to"}))},void 0!==e.exports?e.exports=n:t.emailAddresses=n}(this)},8738:e=>{function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}
|
8 |
/*!
|
9 |
* Determine if an object is a Buffer
|
10 |
*
|
11 |
* @author Feross Aboukhadijeh <https://feross.org>
|
12 |
* @license MIT
|
13 |
*/
|
14 |
+
e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},2568:(e,t,n)=>{var r,i,s,o,a;r=n(1012),i=n(487).utf8,s=n(8738),o=n(487).bin,(a=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?o.stringToBytes(e):i.stringToBytes(e):s(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var n=r.bytesToWords(e),c=8*e.length,l=1732584193,f=-271733879,u=-1732584194,d=271733878,h=0;h<n.length;h++)n[h]=16711935&(n[h]<<8|n[h]>>>24)|4278255360&(n[h]<<24|n[h]>>>8);n[c>>>5]|=128<<c%32,n[14+(c+64>>>9<<4)]=c;var p=a._ff,m=a._gg,g=a._hh,v=a._ii;for(h=0;h<n.length;h+=16){var b=l,y=f,_=u,A=d;l=p(l,f,u,d,n[h+0],7,-680876936),d=p(d,l,f,u,n[h+1],12,-389564586),u=p(u,d,l,f,n[h+2],17,606105819),f=p(f,u,d,l,n[h+3],22,-1044525330),l=p(l,f,u,d,n[h+4],7,-176418897),d=p(d,l,f,u,n[h+5],12,1200080426),u=p(u,d,l,f,n[h+6],17,-1473231341),f=p(f,u,d,l,n[h+7],22,-45705983),l=p(l,f,u,d,n[h+8],7,1770035416),d=p(d,l,f,u,n[h+9],12,-1958414417),u=p(u,d,l,f,n[h+10],17,-42063),f=p(f,u,d,l,n[h+11],22,-1990404162),l=p(l,f,u,d,n[h+12],7,1804603682),d=p(d,l,f,u,n[h+13],12,-40341101),u=p(u,d,l,f,n[h+14],17,-1502002290),l=m(l,f=p(f,u,d,l,n[h+15],22,1236535329),u,d,n[h+1],5,-165796510),d=m(d,l,f,u,n[h+6],9,-1069501632),u=m(u,d,l,f,n[h+11],14,643717713),f=m(f,u,d,l,n[h+0],20,-373897302),l=m(l,f,u,d,n[h+5],5,-701558691),d=m(d,l,f,u,n[h+10],9,38016083),u=m(u,d,l,f,n[h+15],14,-660478335),f=m(f,u,d,l,n[h+4],20,-405537848),l=m(l,f,u,d,n[h+9],5,568446438),d=m(d,l,f,u,n[h+14],9,-1019803690),u=m(u,d,l,f,n[h+3],14,-187363961),f=m(f,u,d,l,n[h+8],20,1163531501),l=m(l,f,u,d,n[h+13],5,-1444681467),d=m(d,l,f,u,n[h+2],9,-51403784),u=m(u,d,l,f,n[h+7],14,1735328473),l=g(l,f=m(f,u,d,l,n[h+12],20,-1926607734),u,d,n[h+5],4,-378558),d=g(d,l,f,u,n[h+8],11,-2022574463),u=g(u,d,l,f,n[h+11],16,1839030562),f=g(f,u,d,l,n[h+14],23,-35309556),l=g(l,f,u,d,n[h+1],4,-1530992060),d=g(d,l,f,u,n[h+4],11,1272893353),u=g(u,d,l,f,n[h+7],16,-155497632),f=g(f,u,d,l,n[h+10],23,-1094730640),l=g(l,f,u,d,n[h+13],4,681279174),d=g(d,l,f,u,n[h+0],11,-358537222),u=g(u,d,l,f,n[h+3],16,-722521979),f=g(f,u,d,l,n[h+6],23,76029189),l=g(l,f,u,d,n[h+9],4,-640364487),d=g(d,l,f,u,n[h+12],11,-421815835),u=g(u,d,l,f,n[h+15],16,530742520),l=v(l,f=g(f,u,d,l,n[h+2],23,-995338651),u,d,n[h+0],6,-198630844),d=v(d,l,f,u,n[h+7],10,1126891415),u=v(u,d,l,f,n[h+14],15,-1416354905),f=v(f,u,d,l,n[h+5],21,-57434055),l=v(l,f,u,d,n[h+12],6,1700485571),d=v(d,l,f,u,n[h+3],10,-1894986606),u=v(u,d,l,f,n[h+10],15,-1051523),f=v(f,u,d,l,n[h+1],21,-2054922799),l=v(l,f,u,d,n[h+8],6,1873313359),d=v(d,l,f,u,n[h+15],10,-30611744),u=v(u,d,l,f,n[h+6],15,-1560198380),f=v(f,u,d,l,n[h+13],21,1309151649),l=v(l,f,u,d,n[h+4],6,-145523070),d=v(d,l,f,u,n[h+11],10,-1120210379),u=v(u,d,l,f,n[h+2],15,718787259),f=v(f,u,d,l,n[h+9],21,-343485551),l=l+b>>>0,f=f+y>>>0,u=u+_>>>0,d=d+A>>>0}return r.endian([l,f,u,d])})._ff=function(e,t,n,r,i,s,o){var a=e+(t&n|~t&r)+(i>>>0)+o;return(a<<s|a>>>32-s)+t},a._gg=function(e,t,n,r,i,s,o){var a=e+(t&r|n&~r)+(i>>>0)+o;return(a<<s|a>>>32-s)+t},a._hh=function(e,t,n,r,i,s,o){var a=e+(t^n^r)+(i>>>0)+o;return(a<<s|a>>>32-s)+t},a._ii=function(e,t,n,r,i,s,o){var a=e+(n^(t|~r))+(i>>>0)+o;return(a<<s|a>>>32-s)+t},a._blocksize=16,a._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var n=r.wordsToBytes(a(e,t));return t&&t.asBytes?n:t&&t.asString?o.bytesToString(n):r.bytesToHex(n)}},2100:(e,t,n)=>{"use strict";e.exports=n(9482)},9482:(e,t,n)=>{"use strict";var r=t;function i(){r.util._configure(),r.Writer._configure(r.BufferWriter),r.Reader._configure(r.BufferReader)}r.build="minimal",r.Writer=n(1173),r.BufferWriter=n(3155),r.Reader=n(1408),r.BufferReader=n(593),r.util=n(9693),r.rpc=n(5994),r.roots=n(5054),r.configure=i,i()},1408:(e,t,n)=>{"use strict";e.exports=c;var r,i=n(9693),s=i.LongBits,o=i.utf8;function a(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function c(e){this.buf=e,this.pos=0,this.len=e.length}var l,f="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new c(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new c(e);throw Error("illegal buffer")},u=function(){return i.Buffer?function(e){return(c.create=function(e){return i.Buffer.isBuffer(e)?new r(e):f(e)})(e)}:f};function d(){var e=new s(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw a(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw a(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function h(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function p(){if(this.pos+8>this.len)throw a(this,8);return new s(h(this.buf,this.pos+=4),h(this.buf,this.pos+=4))}c.create=u(),c.prototype._slice=i.Array.prototype.subarray||i.Array.prototype.slice,c.prototype.uint32=(l=4294967295,function(){if(l=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return l;if(l=(l|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return l;if(l=(l|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return l;if(l=(l|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return l;if(l=(l|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return l;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return l}),c.prototype.int32=function(){return 0|this.uint32()},c.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},c.prototype.bool=function(){return 0!==this.uint32()},c.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return h(this.buf,this.pos+=4)},c.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|h(this.buf,this.pos+=4)},c.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var e=i.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},c.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var e=i.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},c.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw a(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,n):t===n?new this.buf.constructor(0):this._slice.call(this.buf,t,n)},c.prototype.string=function(){var e=this.bytes();return o.read(e,0,e.length)},c.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw a(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw a(this)}while(128&this.buf[this.pos++]);return this},c.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},c._configure=function(e){r=e,c.create=u(),r._configure();var t=i.Long?"toLong":"toNumber";i.merge(c.prototype,{int64:function(){return d.call(this)[t](!1)},uint64:function(){return d.call(this)[t](!0)},sint64:function(){return d.call(this).zzDecode()[t](!1)},fixed64:function(){return p.call(this)[t](!0)},sfixed64:function(){return p.call(this)[t](!1)}})}},593:(e,t,n)=>{"use strict";e.exports=s;var r=n(1408);(s.prototype=Object.create(r.prototype)).constructor=s;var i=n(9693);function s(e){r.call(this,e)}s._configure=function(){i.Buffer&&(s.prototype._slice=i.Buffer.prototype.slice)},s.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},s._configure()},5054:e=>{"use strict";e.exports={}},5994:(e,t,n)=>{"use strict";t.Service=n(7948)},7948:(e,t,n)=>{"use strict";e.exports=i;var r=n(9693);function i(e,t,n){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");r.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(n)}(i.prototype=Object.create(r.EventEmitter.prototype)).constructor=i,i.prototype.rpcCall=function e(t,n,i,s,o){if(!s)throw TypeError("request must be specified");var a=this;if(!o)return r.asPromise(e,a,t,n,i,s);if(a.rpcImpl)try{return a.rpcImpl(t,n[a.requestDelimited?"encodeDelimited":"encode"](s).finish(),(function(e,n){if(e)return a.emit("error",e,t),o(e);if(null!==n){if(!(n instanceof i))try{n=i[a.responseDelimited?"decodeDelimited":"decode"](n)}catch(e){return a.emit("error",e,t),o(e)}return a.emit("data",n,t),o(null,n)}a.end(!0)}))}catch(e){return a.emit("error",e,t),void setTimeout((function(){o(e)}),0)}else setTimeout((function(){o(Error("already ended"))}),0)},i.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},1945:(e,t,n)=>{"use strict";e.exports=i;var r=n(9693);function i(e,t){this.lo=e>>>0,this.hi=t>>>0}var s=i.zero=new i(0,0);s.toNumber=function(){return 0},s.zzEncode=s.zzDecode=function(){return this},s.length=function(){return 1};var o=i.zeroHash="\0\0\0\0\0\0\0\0";i.fromNumber=function(e){if(0===e)return s;var t=e<0;t&&(e=-e);var n=e>>>0,r=(e-n)/4294967296>>>0;return t&&(r=~r>>>0,n=~n>>>0,++n>4294967295&&(n=0,++r>4294967295&&(r=0))),new i(n,r)},i.from=function(e){if("number"==typeof e)return i.fromNumber(e);if(r.isString(e)){if(!r.Long)return i.fromNumber(parseInt(e,10));e=r.Long.fromString(e)}return e.low||e.high?new i(e.low>>>0,e.high>>>0):s},i.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,n=~this.hi>>>0;return t||(n=n+1>>>0),-(t+4294967296*n)}return this.lo+4294967296*this.hi},i.prototype.toLong=function(e){return r.Long?new r.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var a=String.prototype.charCodeAt;i.fromHash=function(e){return e===o?s:new i((a.call(e,0)|a.call(e,1)<<8|a.call(e,2)<<16|a.call(e,3)<<24)>>>0,(a.call(e,4)|a.call(e,5)<<8|a.call(e,6)<<16|a.call(e,7)<<24)>>>0)},i.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},i.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},i.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},i.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:n<128?9:10}},9693:function(e,t,n){"use strict";var r=t;function i(e,t,n){for(var r=Object.keys(t),i=0;i<r.length;++i)void 0!==e[r[i]]&&n||(e[r[i]]=t[r[i]]);return e}function s(e){function t(e,n){if(!(this instanceof t))return new t(e,n);Object.defineProperty(this,"message",{get:function(){return e}}),Error.captureStackTrace?Error.captureStackTrace(this,t):Object.defineProperty(this,"stack",{value:(new Error).stack||""}),n&&i(this,n)}return(t.prototype=Object.create(Error.prototype)).constructor=t,Object.defineProperty(t.prototype,"name",{get:function(){return e}}),t.prototype.toString=function(){return this.name+": "+this.message},t}r.asPromise=n(4537),r.base64=n(7419),r.EventEmitter=n(9211),r.float=n(945),r.inquire=n(7199),r.utf8=n(4997),r.pool=n(6662),r.LongBits=n(1945),r.isNode=Boolean(void 0!==n.g&&n.g&&n.g.process&&n.g.process.versions&&n.g.process.versions.node),r.global=r.isNode&&n.g||"undefined"!=typeof window&&window||"undefined"!=typeof self&&self||this,r.emptyArray=Object.freeze?Object.freeze([]):[],r.emptyObject=Object.freeze?Object.freeze({}):{},r.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},r.isString=function(e){return"string"==typeof e||e instanceof String},r.isObject=function(e){return e&&"object"==typeof e},r.isset=r.isSet=function(e,t){var n=e[t];return!(null==n||!e.hasOwnProperty(t))&&("object"!=typeof n||(Array.isArray(n)?n.length:Object.keys(n).length)>0)},r.Buffer=function(){try{var e=r.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),r._Buffer_from=null,r._Buffer_allocUnsafe=null,r.newBuffer=function(e){return"number"==typeof e?r.Buffer?r._Buffer_allocUnsafe(e):new r.Array(e):r.Buffer?r._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},r.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,r.Long=r.global.dcodeIO&&r.global.dcodeIO.Long||r.global.Long||r.inquire("long"),r.key2Re=/^true|false|0|1$/,r.key32Re=/^-?(?:0|[1-9][0-9]*)$/,r.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,r.longToHash=function(e){return e?r.LongBits.from(e).toHash():r.LongBits.zeroHash},r.longFromHash=function(e,t){var n=r.LongBits.fromHash(e);return r.Long?r.Long.fromBits(n.lo,n.hi,t):n.toNumber(Boolean(t))},r.merge=i,r.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},r.newError=s,r.ProtocolError=s("ProtocolError"),r.oneOfGetter=function(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=1;return function(){for(var e=Object.keys(this),n=e.length-1;n>-1;--n)if(1===t[e[n]]&&void 0!==this[e[n]]&&null!==this[e[n]])return e[n]}},r.oneOfSetter=function(e){return function(t){for(var n=0;n<e.length;++n)e[n]!==t&&delete this[e[n]]}},r.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},r._configure=function(){var e=r.Buffer;e?(r._Buffer_from=e.from!==Uint8Array.from&&e.from||function(t,n){return new e(t,n)},r._Buffer_allocUnsafe=e.allocUnsafe||function(t){return new e(t)}):r._Buffer_from=r._Buffer_allocUnsafe=null}},1173:(e,t,n)=>{"use strict";e.exports=u;var r,i=n(9693),s=i.LongBits,o=i.base64,a=i.utf8;function c(e,t,n){this.fn=e,this.len=t,this.next=void 0,this.val=n}function l(){}function f(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function u(){this.len=0,this.head=new c(l,0,0),this.tail=this.head,this.states=null}var d=function(){return i.Buffer?function(){return(u.create=function(){return new r})()}:function(){return new u}};function h(e,t,n){t[n]=255&e}function p(e,t){this.len=e,this.next=void 0,this.val=t}function m(e,t,n){for(;e.hi;)t[n++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[n++]=127&e.lo|128,e.lo=e.lo>>>7;t[n++]=e.lo}function g(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}u.create=d(),u.alloc=function(e){return new i.Array(e)},i.Array!==Array&&(u.alloc=i.pool(u.alloc,i.Array.prototype.subarray)),u.prototype._push=function(e,t,n){return this.tail=this.tail.next=new c(e,t,n),this.len+=t,this},p.prototype=Object.create(c.prototype),p.prototype.fn=function(e,t,n){for(;e>127;)t[n++]=127&e|128,e>>>=7;t[n]=e},u.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new p((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},u.prototype.int32=function(e){return e<0?this._push(m,10,s.fromNumber(e)):this.uint32(e)},u.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},u.prototype.uint64=function(e){var t=s.from(e);return this._push(m,t.length(),t)},u.prototype.int64=u.prototype.uint64,u.prototype.sint64=function(e){var t=s.from(e).zzEncode();return this._push(m,t.length(),t)},u.prototype.bool=function(e){return this._push(h,1,e?1:0)},u.prototype.fixed32=function(e){return this._push(g,4,e>>>0)},u.prototype.sfixed32=u.prototype.fixed32,u.prototype.fixed64=function(e){var t=s.from(e);return this._push(g,4,t.lo)._push(g,4,t.hi)},u.prototype.sfixed64=u.prototype.fixed64,u.prototype.float=function(e){return this._push(i.float.writeFloatLE,4,e)},u.prototype.double=function(e){return this._push(i.float.writeDoubleLE,8,e)};var v=i.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var r=0;r<e.length;++r)t[n+r]=e[r]};u.prototype.bytes=function(e){var t=e.length>>>0;if(!t)return this._push(h,1,0);if(i.isString(e)){var n=u.alloc(t=o.length(e));o.decode(e,n,0),e=n}return this.uint32(t)._push(v,t,e)},u.prototype.string=function(e){var t=a.length(e);return t?this.uint32(t)._push(a.write,t,e):this._push(h,1,0)},u.prototype.fork=function(){return this.states=new f(this),this.head=this.tail=new c(l,0,0),this.len=0,this},u.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new c(l,0,0),this.len=0),this},u.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this},u.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t},u._configure=function(e){r=e,u.create=d(),r._configure()}},3155:(e,t,n)=>{"use strict";e.exports=s;var r=n(1173);(s.prototype=Object.create(r.prototype)).constructor=s;var i=n(9693);function s(){r.call(this)}function o(e,t,n){e.length<40?i.utf8.write(e,t,n):t.utf8Write?t.utf8Write(e,n):t.write(e,n)}s._configure=function(){s.alloc=i._Buffer_allocUnsafe,s.writeBytesBuffer=i.Buffer&&i.Buffer.prototype instanceof Uint8Array&&"set"===i.Buffer.prototype.set.name?function(e,t,n){t.set(e,n)}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var r=0;r<e.length;)t[n++]=e[r++]}},s.prototype.bytes=function(e){i.isString(e)&&(e=i._Buffer_from(e,"base64"));var t=e.length>>>0;return this.uint32(t),t&&this._push(s.writeBytesBuffer,t,e),this},s.prototype.string=function(e){var t=i.Buffer.byteLength(e);return this.uint32(t),t&&this._push(o,t,e),this},s._configure()},2539:(e,t,n)=>{"use strict";var r=n(7539);function i(e,t,n,i,s){var o=r.writeRtpDescription(e.kind,t);if(o+=r.writeIceParameters(e.iceGatherer.getLocalParameters()),o+=r.writeDtlsParameters(e.dtlsTransport.getLocalParameters(),"offer"===n?"actpass":s||"active"),o+="a=mid:"+e.mid+"\r\n",e.rtpSender&&e.rtpReceiver?o+="a=sendrecv\r\n":e.rtpSender?o+="a=sendonly\r\n":e.rtpReceiver?o+="a=recvonly\r\n":o+="a=inactive\r\n",e.rtpSender){var a=e.rtpSender._initialTrackId||e.rtpSender.track.id;e.rtpSender._initialTrackId=a;var c="msid:"+(i?i.id:"-")+" "+a+"\r\n";o+="a="+c,o+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" "+c,e.sendEncodingParameters[0].rtx&&(o+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" "+c,o+="a=ssrc-group:FID "+e.sendEncodingParameters[0].ssrc+" "+e.sendEncodingParameters[0].rtx.ssrc+"\r\n")}return o+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" cname:"+r.localCName+"\r\n",e.rtpSender&&e.sendEncodingParameters[0].rtx&&(o+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" cname:"+r.localCName+"\r\n"),o}function s(e,t){var n={codecs:[],headerExtensions:[],fecMechanisms:[]},r=function(e,t){e=parseInt(e,10);for(var n=0;n<t.length;n++)if(t[n].payloadType===e||t[n].preferredPayloadType===e)return t[n]},i=function(e,t,n,i){var s=r(e.parameters.apt,n),o=r(t.parameters.apt,i);return s&&o&&s.name.toLowerCase()===o.name.toLowerCase()};return e.codecs.forEach((function(r){for(var s=0;s<t.codecs.length;s++){var o=t.codecs[s];if(r.name.toLowerCase()===o.name.toLowerCase()&&r.clockRate===o.clockRate){if("rtx"===r.name.toLowerCase()&&r.parameters&&o.parameters.apt&&!i(r,o,e.codecs,t.codecs))continue;(o=JSON.parse(JSON.stringify(o))).numChannels=Math.min(r.numChannels,o.numChannels),n.codecs.push(o),o.rtcpFeedback=o.rtcpFeedback.filter((function(e){for(var t=0;t<r.rtcpFeedback.length;t++)if(r.rtcpFeedback[t].type===e.type&&r.rtcpFeedback[t].parameter===e.parameter)return!0;return!1}));break}}})),e.headerExtensions.forEach((function(e){for(var r=0;r<t.headerExtensions.length;r++){var i=t.headerExtensions[r];if(e.uri===i.uri){n.headerExtensions.push(i);break}}})),n}function o(e,t,n){return-1!=={offer:{setLocalDescription:["stable","have-local-offer"],setRemoteDescription:["stable","have-remote-offer"]},answer:{setLocalDescription:["have-remote-offer","have-local-pranswer"],setRemoteDescription:["have-local-offer","have-remote-pranswer"]}}[t][e].indexOf(n)}function a(e,t){var n=e.getRemoteCandidates().find((function(e){return t.foundation===e.foundation&&t.ip===e.ip&&t.port===e.port&&t.priority===e.priority&&t.protocol===e.protocol&&t.type===e.type}));return n||e.addRemoteCandidate(t),!n}function c(e,t){var n=new Error(t);return n.name=e,n.code={NotSupportedError:9,InvalidStateError:11,InvalidAccessError:15,TypeError:void 0,OperationError:void 0}[e],n}e.exports=function(e,t){function n(t,n){n.addTrack(t),n.dispatchEvent(new e.MediaStreamTrackEvent("addtrack",{track:t}))}function l(t,n,r,i){var s=new Event("track");s.track=n,s.receiver=r,s.transceiver={receiver:r},s.streams=i,e.setTimeout((function(){t._dispatchEvent("track",s)}))}var f=function(n){var i=this,s=document.createDocumentFragment();if(["addEventListener","removeEventListener","dispatchEvent"].forEach((function(e){i[e]=s[e].bind(s)})),this.canTrickleIceCandidates=null,this.needNegotiation=!1,this.localStreams=[],this.remoteStreams=[],this._localDescription=null,this._remoteDescription=null,this.signalingState="stable",this.iceConnectionState="new",this.connectionState="new",this.iceGatheringState="new",n=JSON.parse(JSON.stringify(n||{})),this.usingBundle="max-bundle"===n.bundlePolicy,"negotiate"===n.rtcpMuxPolicy)throw c("NotSupportedError","rtcpMuxPolicy 'negotiate' is not supported");switch(n.rtcpMuxPolicy||(n.rtcpMuxPolicy="require"),n.iceTransportPolicy){case"all":case"relay":break;default:n.iceTransportPolicy="all"}switch(n.bundlePolicy){case"balanced":case"max-compat":case"max-bundle":break;default:n.bundlePolicy="balanced"}if(n.iceServers=function(e,t){var n=!1;return(e=JSON.parse(JSON.stringify(e))).filter((function(e){if(e&&(e.urls||e.url)){var r=e.urls||e.url;e.url&&!e.urls&&console.warn("RTCIceServer.url is deprecated! Use urls instead.");var i="string"==typeof r;return i&&(r=[r]),r=r.filter((function(e){return 0!==e.indexOf("turn:")||-1===e.indexOf("transport=udp")||-1!==e.indexOf("turn:[")||n?0===e.indexOf("stun:")&&t>=14393&&-1===e.indexOf("?transport=udp"):(n=!0,!0)})),delete e.url,e.urls=i?r[0]:r,!!r.length}}))}(n.iceServers||[],t),this._iceGatherers=[],n.iceCandidatePoolSize)for(var o=n.iceCandidatePoolSize;o>0;o--)this._iceGatherers.push(new e.RTCIceGatherer({iceServers:n.iceServers,gatherPolicy:n.iceTransportPolicy}));else n.iceCandidatePoolSize=0;this._config=n,this.transceivers=[],this._sdpSessionId=r.generateSessionId(),this._sdpSessionVersion=0,this._dtlsRole=void 0,this._isClosed=!1};Object.defineProperty(f.prototype,"localDescription",{configurable:!0,get:function(){return this._localDescription}}),Object.defineProperty(f.prototype,"remoteDescription",{configurable:!0,get:function(){return this._remoteDescription}}),f.prototype.onicecandidate=null,f.prototype.onaddstream=null,f.prototype.ontrack=null,f.prototype.onremovestream=null,f.prototype.onsignalingstatechange=null,f.prototype.oniceconnectionstatechange=null,f.prototype.onconnectionstatechange=null,f.prototype.onicegatheringstatechange=null,f.prototype.onnegotiationneeded=null,f.prototype.ondatachannel=null,f.prototype._dispatchEvent=function(e,t){this._isClosed||(this.dispatchEvent(t),"function"==typeof this["on"+e]&&this["on"+e](t))},f.prototype._emitGatheringStateChange=function(){var e=new Event("icegatheringstatechange");this._dispatchEvent("icegatheringstatechange",e)},f.prototype.getConfiguration=function(){return this._config},f.prototype.getLocalStreams=function(){return this.localStreams},f.prototype.getRemoteStreams=function(){return this.remoteStreams},f.prototype._createTransceiver=function(e,t){var n=this.transceivers.length>0,r={track:null,iceGatherer:null,iceTransport:null,dtlsTransport:null,localCapabilities:null,remoteCapabilities:null,rtpSender:null,rtpReceiver:null,kind:e,mid:null,sendEncodingParameters:null,recvEncodingParameters:null,stream:null,associatedRemoteMediaStreams:[],wantReceive:!0};if(this.usingBundle&&n)r.iceTransport=this.transceivers[0].iceTransport,r.dtlsTransport=this.transceivers[0].dtlsTransport;else{var i=this._createIceAndDtlsTransports();r.iceTransport=i.iceTransport,r.dtlsTransport=i.dtlsTransport}return t||this.transceivers.push(r),r},f.prototype.addTrack=function(t,n){if(this._isClosed)throw c("InvalidStateError","Attempted to call addTrack on a closed peerconnection.");var r;if(this.transceivers.find((function(e){return e.track===t})))throw c("InvalidAccessError","Track already exists.");for(var i=0;i<this.transceivers.length;i++)this.transceivers[i].track||this.transceivers[i].kind!==t.kind||(r=this.transceivers[i]);return r||(r=this._createTransceiver(t.kind)),this._maybeFireNegotiationNeeded(),-1===this.localStreams.indexOf(n)&&this.localStreams.push(n),r.track=t,r.stream=n,r.rtpSender=new e.RTCRtpSender(t,r.dtlsTransport),r.rtpSender},f.prototype.addStream=function(e){var n=this;if(t>=15025)e.getTracks().forEach((function(t){n.addTrack(t,e)}));else{var r=e.clone();e.getTracks().forEach((function(e,t){var n=r.getTracks()[t];e.addEventListener("enabled",(function(e){n.enabled=e.enabled}))})),r.getTracks().forEach((function(e){n.addTrack(e,r)}))}},f.prototype.removeTrack=function(t){if(this._isClosed)throw c("InvalidStateError","Attempted to call removeTrack on a closed peerconnection.");if(!(t instanceof e.RTCRtpSender))throw new TypeError("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.");var n=this.transceivers.find((function(e){return e.rtpSender===t}));if(!n)throw c("InvalidAccessError","Sender was not created by this connection.");var r=n.stream;n.rtpSender.stop(),n.rtpSender=null,n.track=null,n.stream=null,-1===this.transceivers.map((function(e){return e.stream})).indexOf(r)&&this.localStreams.indexOf(r)>-1&&this.localStreams.splice(this.localStreams.indexOf(r),1),this._maybeFireNegotiationNeeded()},f.prototype.removeStream=function(e){var t=this;e.getTracks().forEach((function(e){var n=t.getSenders().find((function(t){return t.track===e}));n&&t.removeTrack(n)}))},f.prototype.getSenders=function(){return this.transceivers.filter((function(e){return!!e.rtpSender})).map((function(e){return e.rtpSender}))},f.prototype.getReceivers=function(){return this.transceivers.filter((function(e){return!!e.rtpReceiver})).map((function(e){return e.rtpReceiver}))},f.prototype._createIceGatherer=function(t,n){var r=this;if(n&&t>0)return this.transceivers[0].iceGatherer;if(this._iceGatherers.length)return this._iceGatherers.shift();var i=new e.RTCIceGatherer({iceServers:this._config.iceServers,gatherPolicy:this._config.iceTransportPolicy});return Object.defineProperty(i,"state",{value:"new",writable:!0}),this.transceivers[t].bufferedCandidateEvents=[],this.transceivers[t].bufferCandidates=function(e){var n=!e.candidate||0===Object.keys(e.candidate).length;i.state=n?"completed":"gathering",null!==r.transceivers[t].bufferedCandidateEvents&&r.transceivers[t].bufferedCandidateEvents.push(e)},i.addEventListener("localcandidate",this.transceivers[t].bufferCandidates),i},f.prototype._gather=function(t,n){var i=this,s=this.transceivers[n].iceGatherer;if(!s.onlocalcandidate){var o=this.transceivers[n].bufferedCandidateEvents;this.transceivers[n].bufferedCandidateEvents=null,s.removeEventListener("localcandidate",this.transceivers[n].bufferCandidates),s.onlocalcandidate=function(e){if(!(i.usingBundle&&n>0)){var o=new Event("icecandidate");o.candidate={sdpMid:t,sdpMLineIndex:n};var a=e.candidate,c=!a||0===Object.keys(a).length;if(c)"new"!==s.state&&"gathering"!==s.state||(s.state="completed");else{"new"===s.state&&(s.state="gathering"),a.component=1,a.ufrag=s.getLocalParameters().usernameFragment;var l=r.writeCandidate(a);o.candidate=Object.assign(o.candidate,r.parseCandidate(l)),o.candidate.candidate=l,o.candidate.toJSON=function(){return{candidate:o.candidate.candidate,sdpMid:o.candidate.sdpMid,sdpMLineIndex:o.candidate.sdpMLineIndex,usernameFragment:o.candidate.usernameFragment}}}var f=r.getMediaSections(i._localDescription.sdp);f[o.candidate.sdpMLineIndex]+=c?"a=end-of-candidates\r\n":"a="+o.candidate.candidate+"\r\n",i._localDescription.sdp=r.getDescription(i._localDescription.sdp)+f.join("");var u=i.transceivers.every((function(e){return e.iceGatherer&&"completed"===e.iceGatherer.state}));"gathering"!==i.iceGatheringState&&(i.iceGatheringState="gathering",i._emitGatheringStateChange()),c||i._dispatchEvent("icecandidate",o),u&&(i._dispatchEvent("icecandidate",new Event("icecandidate")),i.iceGatheringState="complete",i._emitGatheringStateChange())}},e.setTimeout((function(){o.forEach((function(e){s.onlocalcandidate(e)}))}),0)}},f.prototype._createIceAndDtlsTransports=function(){var t=this,n=new e.RTCIceTransport(null);n.onicestatechange=function(){t._updateIceConnectionState(),t._updateConnectionState()};var r=new e.RTCDtlsTransport(n);return r.ondtlsstatechange=function(){t._updateConnectionState()},r.onerror=function(){Object.defineProperty(r,"state",{value:"failed",writable:!0}),t._updateConnectionState()},{iceTransport:n,dtlsTransport:r}},f.prototype._disposeIceAndDtlsTransports=function(e){var t=this.transceivers[e].iceGatherer;t&&(delete t.onlocalcandidate,delete this.transceivers[e].iceGatherer);var n=this.transceivers[e].iceTransport;n&&(delete n.onicestatechange,delete this.transceivers[e].iceTransport);var r=this.transceivers[e].dtlsTransport;r&&(delete r.ondtlsstatechange,delete r.onerror,delete this.transceivers[e].dtlsTransport)},f.prototype._transceive=function(e,n,i){var o=s(e.localCapabilities,e.remoteCapabilities);n&&e.rtpSender&&(o.encodings=e.sendEncodingParameters,o.rtcp={cname:r.localCName,compound:e.rtcpParameters.compound},e.recvEncodingParameters.length&&(o.rtcp.ssrc=e.recvEncodingParameters[0].ssrc),e.rtpSender.send(o)),i&&e.rtpReceiver&&o.codecs.length>0&&("video"===e.kind&&e.recvEncodingParameters&&t<15019&&e.recvEncodingParameters.forEach((function(e){delete e.rtx})),e.recvEncodingParameters.length?o.encodings=e.recvEncodingParameters:o.encodings=[{}],o.rtcp={compound:e.rtcpParameters.compound},e.rtcpParameters.cname&&(o.rtcp.cname=e.rtcpParameters.cname),e.sendEncodingParameters.length&&(o.rtcp.ssrc=e.sendEncodingParameters[0].ssrc),e.rtpReceiver.receive(o))},f.prototype.setLocalDescription=function(e){var t,n,i=this;if(-1===["offer","answer"].indexOf(e.type))return Promise.reject(c("TypeError",'Unsupported type "'+e.type+'"'));if(!o("setLocalDescription",e.type,i.signalingState)||i._isClosed)return Promise.reject(c("InvalidStateError","Can not set local "+e.type+" in state "+i.signalingState));if("offer"===e.type)t=r.splitSections(e.sdp),n=t.shift(),t.forEach((function(e,t){var n=r.parseRtpParameters(e);i.transceivers[t].localCapabilities=n})),i.transceivers.forEach((function(e,t){i._gather(e.mid,t)}));else if("answer"===e.type){t=r.splitSections(i._remoteDescription.sdp),n=t.shift();var a=r.matchPrefix(n,"a=ice-lite").length>0;t.forEach((function(e,t){var o=i.transceivers[t],c=o.iceGatherer,l=o.iceTransport,f=o.dtlsTransport,u=o.localCapabilities,d=o.remoteCapabilities;if(!(r.isRejected(e)&&0===r.matchPrefix(e,"a=bundle-only").length)&&!o.rejected){var h=r.getIceParameters(e,n),p=r.getDtlsParameters(e,n);a&&(p.role="server"),i.usingBundle&&0!==t||(i._gather(o.mid,t),"new"===l.state&&l.start(c,h,a?"controlling":"controlled"),"new"===f.state&&f.start(p));var m=s(u,d);i._transceive(o,m.codecs.length>0,!1)}}))}return i._localDescription={type:e.type,sdp:e.sdp},"offer"===e.type?i._updateSignalingState("have-local-offer"):i._updateSignalingState("stable"),Promise.resolve()},f.prototype.setRemoteDescription=function(i){var f=this;if(-1===["offer","answer"].indexOf(i.type))return Promise.reject(c("TypeError",'Unsupported type "'+i.type+'"'));if(!o("setRemoteDescription",i.type,f.signalingState)||f._isClosed)return Promise.reject(c("InvalidStateError","Can not set remote "+i.type+" in state "+f.signalingState));var u={};f.remoteStreams.forEach((function(e){u[e.id]=e}));var d=[],h=r.splitSections(i.sdp),p=h.shift(),m=r.matchPrefix(p,"a=ice-lite").length>0,g=r.matchPrefix(p,"a=group:BUNDLE ").length>0;f.usingBundle=g;var v=r.matchPrefix(p,"a=ice-options:")[0];return f.canTrickleIceCandidates=!!v&&v.substr(14).split(" ").indexOf("trickle")>=0,h.forEach((function(o,c){var l=r.splitLines(o),h=r.getKind(o),v=r.isRejected(o)&&0===r.matchPrefix(o,"a=bundle-only").length,b=l[0].substr(2).split(" ")[2],y=r.getDirection(o,p),_=r.parseMsid(o),A=r.getMid(o)||r.generateIdentifier();if(v||"application"===h&&("DTLS/SCTP"===b||"UDP/DTLS/SCTP"===b))f.transceivers[c]={mid:A,kind:h,protocol:b,rejected:!0};else{var w,C,E,S,T,O,x,M,N;!v&&f.transceivers[c]&&f.transceivers[c].rejected&&(f.transceivers[c]=f._createTransceiver(h,!0));var I,R,k=r.parseRtpParameters(o);v||(I=r.getIceParameters(o,p),(R=r.getDtlsParameters(o,p)).role="client"),x=r.parseRtpEncodingParameters(o);var P=r.parseRtcpParameters(o),D=r.matchPrefix(o,"a=end-of-candidates",p).length>0,F=r.matchPrefix(o,"a=candidate:").map((function(e){return r.parseCandidate(e)})).filter((function(e){return 1===e.component}));if(("offer"===i.type||"answer"===i.type)&&!v&&g&&c>0&&f.transceivers[c]&&(f._disposeIceAndDtlsTransports(c),f.transceivers[c].iceGatherer=f.transceivers[0].iceGatherer,f.transceivers[c].iceTransport=f.transceivers[0].iceTransport,f.transceivers[c].dtlsTransport=f.transceivers[0].dtlsTransport,f.transceivers[c].rtpSender&&f.transceivers[c].rtpSender.setTransport(f.transceivers[0].dtlsTransport),f.transceivers[c].rtpReceiver&&f.transceivers[c].rtpReceiver.setTransport(f.transceivers[0].dtlsTransport)),"offer"!==i.type||v){if("answer"===i.type&&!v){C=(w=f.transceivers[c]).iceGatherer,E=w.iceTransport,S=w.dtlsTransport,T=w.rtpReceiver,O=w.sendEncodingParameters,M=w.localCapabilities,f.transceivers[c].recvEncodingParameters=x,f.transceivers[c].remoteCapabilities=k,f.transceivers[c].rtcpParameters=P,F.length&&"new"===E.state&&(!m&&!D||g&&0!==c?F.forEach((function(e){a(w.iceTransport,e)})):E.setRemoteCandidates(F)),g&&0!==c||("new"===E.state&&E.start(C,I,"controlling"),"new"===S.state&&S.start(R)),!s(w.localCapabilities,w.remoteCapabilities).codecs.filter((function(e){return"rtx"===e.name.toLowerCase()})).length&&w.sendEncodingParameters[0].rtx&&delete w.sendEncodingParameters[0].rtx,f._transceive(w,"sendrecv"===y||"recvonly"===y,"sendrecv"===y||"sendonly"===y),!T||"sendrecv"!==y&&"sendonly"!==y?delete w.rtpReceiver:(N=T.track,_?(u[_.stream]||(u[_.stream]=new e.MediaStream),n(N,u[_.stream]),d.push([N,T,u[_.stream]])):(u.default||(u.default=new e.MediaStream),n(N,u.default),d.push([N,T,u.default])))}}else{(w=f.transceivers[c]||f._createTransceiver(h)).mid=A,w.iceGatherer||(w.iceGatherer=f._createIceGatherer(c,g)),F.length&&"new"===w.iceTransport.state&&(!D||g&&0!==c?F.forEach((function(e){a(w.iceTransport,e)})):w.iceTransport.setRemoteCandidates(F)),M=e.RTCRtpReceiver.getCapabilities(h),t<15019&&(M.codecs=M.codecs.filter((function(e){return"rtx"!==e.name}))),O=w.sendEncodingParameters||[{ssrc:1001*(2*c+2)}];var B,L=!1;if("sendrecv"===y||"sendonly"===y){if(L=!w.rtpReceiver,T=w.rtpReceiver||new e.RTCRtpReceiver(w.dtlsTransport,h),L)N=T.track,_&&"-"===_.stream||(_?(u[_.stream]||(u[_.stream]=new e.MediaStream,Object.defineProperty(u[_.stream],"id",{get:function(){return _.stream}})),Object.defineProperty(N,"id",{get:function(){return _.track}}),B=u[_.stream]):(u.default||(u.default=new e.MediaStream),B=u.default)),B&&(n(N,B),w.associatedRemoteMediaStreams.push(B)),d.push([N,T,B])}else w.rtpReceiver&&w.rtpReceiver.track&&(w.associatedRemoteMediaStreams.forEach((function(t){var n=t.getTracks().find((function(e){return e.id===w.rtpReceiver.track.id}));n&&function(t,n){n.removeTrack(t),n.dispatchEvent(new e.MediaStreamTrackEvent("removetrack",{track:t}))}(n,t)})),w.associatedRemoteMediaStreams=[]);w.localCapabilities=M,w.remoteCapabilities=k,w.rtpReceiver=T,w.rtcpParameters=P,w.sendEncodingParameters=O,w.recvEncodingParameters=x,f._transceive(f.transceivers[c],!1,L)}}})),void 0===f._dtlsRole&&(f._dtlsRole="offer"===i.type?"active":"passive"),f._remoteDescription={type:i.type,sdp:i.sdp},"offer"===i.type?f._updateSignalingState("have-remote-offer"):f._updateSignalingState("stable"),Object.keys(u).forEach((function(t){var n=u[t];if(n.getTracks().length){if(-1===f.remoteStreams.indexOf(n)){f.remoteStreams.push(n);var r=new Event("addstream");r.stream=n,e.setTimeout((function(){f._dispatchEvent("addstream",r)}))}d.forEach((function(e){var t=e[0],r=e[1];n.id===e[2].id&&l(f,t,r,[n])}))}})),d.forEach((function(e){e[2]||l(f,e[0],e[1],[])})),e.setTimeout((function(){f&&f.transceivers&&f.transceivers.forEach((function(e){e.iceTransport&&"new"===e.iceTransport.state&&e.iceTransport.getRemoteCandidates().length>0&&(console.warn("Timeout for addRemoteCandidate. Consider sending an end-of-candidates notification"),e.iceTransport.addRemoteCandidate({}))}))}),4e3),Promise.resolve()},f.prototype.close=function(){this.transceivers.forEach((function(e){e.iceTransport&&e.iceTransport.stop(),e.dtlsTransport&&e.dtlsTransport.stop(),e.rtpSender&&e.rtpSender.stop(),e.rtpReceiver&&e.rtpReceiver.stop()})),this._isClosed=!0,this._updateSignalingState("closed")},f.prototype._updateSignalingState=function(e){this.signalingState=e;var t=new Event("signalingstatechange");this._dispatchEvent("signalingstatechange",t)},f.prototype._maybeFireNegotiationNeeded=function(){var t=this;"stable"===this.signalingState&&!0!==this.needNegotiation&&(this.needNegotiation=!0,e.setTimeout((function(){if(t.needNegotiation){t.needNegotiation=!1;var e=new Event("negotiationneeded");t._dispatchEvent("negotiationneeded",e)}}),0))},f.prototype._updateIceConnectionState=function(){var e,t={new:0,closed:0,checking:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach((function(e){e.iceTransport&&!e.rejected&&t[e.iceTransport.state]++})),e="new",t.failed>0?e="failed":t.checking>0?e="checking":t.disconnected>0?e="disconnected":t.new>0?e="new":t.connected>0?e="connected":t.completed>0&&(e="completed"),e!==this.iceConnectionState){this.iceConnectionState=e;var n=new Event("iceconnectionstatechange");this._dispatchEvent("iceconnectionstatechange",n)}},f.prototype._updateConnectionState=function(){var e,t={new:0,closed:0,connecting:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach((function(e){e.iceTransport&&e.dtlsTransport&&!e.rejected&&(t[e.iceTransport.state]++,t[e.dtlsTransport.state]++)})),t.connected+=t.completed,e="new",t.failed>0?e="failed":t.connecting>0?e="connecting":t.disconnected>0?e="disconnected":t.new>0?e="new":t.connected>0&&(e="connected"),e!==this.connectionState){this.connectionState=e;var n=new Event("connectionstatechange");this._dispatchEvent("connectionstatechange",n)}},f.prototype.createOffer=function(){var n=this;if(n._isClosed)return Promise.reject(c("InvalidStateError","Can not call createOffer after close"));var s=n.transceivers.filter((function(e){return"audio"===e.kind})).length,o=n.transceivers.filter((function(e){return"video"===e.kind})).length,a=arguments[0];if(a){if(a.mandatory||a.optional)throw new TypeError("Legacy mandatory/optional constraints not supported.");void 0!==a.offerToReceiveAudio&&(s=!0===a.offerToReceiveAudio?1:!1===a.offerToReceiveAudio?0:a.offerToReceiveAudio),void 0!==a.offerToReceiveVideo&&(o=!0===a.offerToReceiveVideo?1:!1===a.offerToReceiveVideo?0:a.offerToReceiveVideo)}for(n.transceivers.forEach((function(e){"audio"===e.kind?--s<0&&(e.wantReceive=!1):"video"===e.kind&&--o<0&&(e.wantReceive=!1)}));s>0||o>0;)s>0&&(n._createTransceiver("audio"),s--),o>0&&(n._createTransceiver("video"),o--);var l=r.writeSessionBoilerplate(n._sdpSessionId,n._sdpSessionVersion++);n.transceivers.forEach((function(i,s){var o=i.track,a=i.kind,c=i.mid||r.generateIdentifier();i.mid=c,i.iceGatherer||(i.iceGatherer=n._createIceGatherer(s,n.usingBundle));var l=e.RTCRtpSender.getCapabilities(a);t<15019&&(l.codecs=l.codecs.filter((function(e){return"rtx"!==e.name}))),l.codecs.forEach((function(e){"H264"===e.name&&void 0===e.parameters["level-asymmetry-allowed"]&&(e.parameters["level-asymmetry-allowed"]="1"),i.remoteCapabilities&&i.remoteCapabilities.codecs&&i.remoteCapabilities.codecs.forEach((function(t){e.name.toLowerCase()===t.name.toLowerCase()&&e.clockRate===t.clockRate&&(e.preferredPayloadType=t.payloadType)}))})),l.headerExtensions.forEach((function(e){(i.remoteCapabilities&&i.remoteCapabilities.headerExtensions||[]).forEach((function(t){e.uri===t.uri&&(e.id=t.id)}))}));var f=i.sendEncodingParameters||[{ssrc:1001*(2*s+1)}];o&&t>=15019&&"video"===a&&!f[0].rtx&&(f[0].rtx={ssrc:f[0].ssrc+1}),i.wantReceive&&(i.rtpReceiver=new e.RTCRtpReceiver(i.dtlsTransport,a)),i.localCapabilities=l,i.sendEncodingParameters=f})),"max-compat"!==n._config.bundlePolicy&&(l+="a=group:BUNDLE "+n.transceivers.map((function(e){return e.mid})).join(" ")+"\r\n"),l+="a=ice-options:trickle\r\n",n.transceivers.forEach((function(e,t){l+=i(e,e.localCapabilities,"offer",e.stream,n._dtlsRole),l+="a=rtcp-rsize\r\n",!e.iceGatherer||"new"===n.iceGatheringState||0!==t&&n.usingBundle||(e.iceGatherer.getLocalCandidates().forEach((function(e){e.component=1,l+="a="+r.writeCandidate(e)+"\r\n"})),"completed"===e.iceGatherer.state&&(l+="a=end-of-candidates\r\n"))}));var f=new e.RTCSessionDescription({type:"offer",sdp:l});return Promise.resolve(f)},f.prototype.createAnswer=function(){var n=this;if(n._isClosed)return Promise.reject(c("InvalidStateError","Can not call createAnswer after close"));if("have-remote-offer"!==n.signalingState&&"have-local-pranswer"!==n.signalingState)return Promise.reject(c("InvalidStateError","Can not call createAnswer in signalingState "+n.signalingState));var o=r.writeSessionBoilerplate(n._sdpSessionId,n._sdpSessionVersion++);n.usingBundle&&(o+="a=group:BUNDLE "+n.transceivers.map((function(e){return e.mid})).join(" ")+"\r\n"),o+="a=ice-options:trickle\r\n";var a=r.getMediaSections(n._remoteDescription.sdp).length;n.transceivers.forEach((function(e,r){if(!(r+1>a)){if(e.rejected)return"application"===e.kind?"DTLS/SCTP"===e.protocol?o+="m=application 0 DTLS/SCTP 5000\r\n":o+="m=application 0 "+e.protocol+" webrtc-datachannel\r\n":"audio"===e.kind?o+="m=audio 0 UDP/TLS/RTP/SAVPF 0\r\na=rtpmap:0 PCMU/8000\r\n":"video"===e.kind&&(o+="m=video 0 UDP/TLS/RTP/SAVPF 120\r\na=rtpmap:120 VP8/90000\r\n"),void(o+="c=IN IP4 0.0.0.0\r\na=inactive\r\na=mid:"+e.mid+"\r\n");var c;if(e.stream)"audio"===e.kind?c=e.stream.getAudioTracks()[0]:"video"===e.kind&&(c=e.stream.getVideoTracks()[0]),c&&t>=15019&&"video"===e.kind&&!e.sendEncodingParameters[0].rtx&&(e.sendEncodingParameters[0].rtx={ssrc:e.sendEncodingParameters[0].ssrc+1});var l=s(e.localCapabilities,e.remoteCapabilities);!l.codecs.filter((function(e){return"rtx"===e.name.toLowerCase()})).length&&e.sendEncodingParameters[0].rtx&&delete e.sendEncodingParameters[0].rtx,o+=i(e,l,"answer",e.stream,n._dtlsRole),e.rtcpParameters&&e.rtcpParameters.reducedSize&&(o+="a=rtcp-rsize\r\n")}}));var l=new e.RTCSessionDescription({type:"answer",sdp:o});return Promise.resolve(l)},f.prototype.addIceCandidate=function(e){var t,n=this;return e&&void 0===e.sdpMLineIndex&&!e.sdpMid?Promise.reject(new TypeError("sdpMLineIndex or sdpMid required")):new Promise((function(i,s){if(!n._remoteDescription)return s(c("InvalidStateError","Can not add ICE candidate without a remote description"));if(e&&""!==e.candidate){var o=e.sdpMLineIndex;if(e.sdpMid)for(var l=0;l<n.transceivers.length;l++)if(n.transceivers[l].mid===e.sdpMid){o=l;break}var f=n.transceivers[o];if(!f)return s(c("OperationError","Can not add ICE candidate"));if(f.rejected)return i();var u=Object.keys(e.candidate).length>0?r.parseCandidate(e.candidate):{};if("tcp"===u.protocol&&(0===u.port||9===u.port))return i();if(u.component&&1!==u.component)return i();if((0===o||o>0&&f.iceTransport!==n.transceivers[0].iceTransport)&&!a(f.iceTransport,u))return s(c("OperationError","Can not add ICE candidate"));var d=e.candidate.trim();0===d.indexOf("a=")&&(d=d.substr(2)),(t=r.getMediaSections(n._remoteDescription.sdp))[o]+="a="+(u.type?d:"end-of-candidates")+"\r\n",n._remoteDescription.sdp=r.getDescription(n._remoteDescription.sdp)+t.join("")}else for(var h=0;h<n.transceivers.length&&(n.transceivers[h].rejected||(n.transceivers[h].iceTransport.addRemoteCandidate({}),(t=r.getMediaSections(n._remoteDescription.sdp))[h]+="a=end-of-candidates\r\n",n._remoteDescription.sdp=r.getDescription(n._remoteDescription.sdp)+t.join(""),!n.usingBundle));h++);i()}))},f.prototype.getStats=function(t){if(t&&t instanceof e.MediaStreamTrack){var n=null;if(this.transceivers.forEach((function(e){e.rtpSender&&e.rtpSender.track===t?n=e.rtpSender:e.rtpReceiver&&e.rtpReceiver.track===t&&(n=e.rtpReceiver)})),!n)throw c("InvalidAccessError","Invalid selector.");return n.getStats()}var r=[];return this.transceivers.forEach((function(e){["rtpSender","rtpReceiver","iceGatherer","iceTransport","dtlsTransport"].forEach((function(t){e[t]&&r.push(e[t].getStats())}))})),Promise.all(r).then((function(e){var t=new Map;return e.forEach((function(e){e.forEach((function(e){t.set(e.id,e)}))})),t}))};["RTCRtpSender","RTCRtpReceiver","RTCIceGatherer","RTCIceTransport","RTCDtlsTransport"].forEach((function(t){var n=e[t];if(n&&n.prototype&&n.prototype.getStats){var r=n.prototype.getStats;n.prototype.getStats=function(){return r.apply(this).then((function(e){var t=new Map;return Object.keys(e).forEach((function(n){var r;e[n].type={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[(r=e[n]).type]||r.type,t.set(n,e[n])})),t}))}}}));var u=["createOffer","createAnswer"];return u.forEach((function(e){var t=f.prototype[e];f.prototype[e]=function(){var e=arguments;return"function"==typeof e[0]||"function"==typeof e[1]?t.apply(this,[arguments[2]]).then((function(t){"function"==typeof e[0]&&e[0].apply(null,[t])}),(function(t){"function"==typeof e[1]&&e[1].apply(null,[t])})):t.apply(this,arguments)}})),(u=["setLocalDescription","setRemoteDescription","addIceCandidate"]).forEach((function(e){var t=f.prototype[e];f.prototype[e]=function(){var e=arguments;return"function"==typeof e[1]||"function"==typeof e[2]?t.apply(this,arguments).then((function(){"function"==typeof e[1]&&e[1].apply(null)}),(function(t){"function"==typeof e[2]&&e[2].apply(null,[t])})):t.apply(this,arguments)}})),["getStats"].forEach((function(e){var t=f.prototype[e];f.prototype[e]=function(){var e=arguments;return"function"==typeof e[1]?t.apply(this,arguments).then((function(){"function"==typeof e[1]&&e[1].apply(null)})):t.apply(this,arguments)}})),f}},7539:e=>{"use strict";var t={generateIdentifier:function(){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){for(var t,n={foundation:(t=0===e.indexOf("a=candidate:")?e.substring(12).split(" "):e.substring(10).split(" "))[0],component:parseInt(t[1],10),protocol:t[2].toLowerCase(),priority:parseInt(t[3],10),ip:t[4],address:t[4],port:parseInt(t[5],10),type:t[7]},r=8;r<t.length;r+=2)switch(t[r]){case"raddr":n.relatedAddress=t[r+1];break;case"rport":n.relatedPort=parseInt(t[r+1],10);break;case"tcptype":n.tcpType=t[r+1];break;case"ufrag":n.ufrag=t[r+1],n.usernameFragment=t[r+1];break;default:n[t[r]]=t[r+1]}return n},t.writeCandidate=function(e){var t=[];t.push(e.foundation),t.push(e.component),t.push(e.protocol.toUpperCase()),t.push(e.priority),t.push(e.address||e.ip),t.push(e.port);var n=e.type;return t.push("typ"),t.push(n),"host"!==n&&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(" "),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){for(var t,n={},r=e.substr(e.indexOf(" ")+1).split(";"),i=0;i<r.length;i++)n[(t=r[i].trim().split("="))[0].trim()]=t[1];return n},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 r=[];Object.keys(e.parameters).forEach((function(t){e.parameters[t]?r.push(t+"="+e.parameters[t]):r.push(t)})),t+="a=fmtp:"+n+" "+r.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)},r=e.indexOf(":",t);return r>-1?(n.attribute=e.substr(t+1,r-t-1),n.value=e.substr(r+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 r=t.matchPrefix(e+n,"a=ice-ufrag:")[0],i=t.matchPrefix(e+n,"a=ice-pwd:")[0];return r&&i?{usernameFragment:r.substr(12),password:i.substr(10)}:null},t.writeIceParameters=function(e){return"a=ice-ufrag:"+e.usernameFragment+"\r\na=ice-pwd:"+e.password+"\r\n"},t.parseRtpParameters=function(e){for(var n={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},r=t.splitLines(e)[0].split(" "),i=3;i<r.length;i++){var s=r[i],o=t.matchPrefix(e,"a=rtpmap:"+s+" ")[0];if(o){var a=t.parseRtpMap(o),c=t.matchPrefix(e,"a=fmtp:"+s+" ");switch(a.parameters=c.length?t.parseFmtp(c[0]):{},a.rtcpFeedback=t.matchPrefix(e,"a=rtcp-fb:"+s+" ").map(t.parseRtcpFb),n.codecs.push(a),a.name.toUpperCase()){case"RED":case"ULPFEC":n.fecMechanisms.push(a.name.toUpperCase())}}}return t.matchPrefix(e,"a=extmap:").forEach((function(e){n.headerExtensions.push(t.parseExtmap(e))})),n},t.writeRtpDescription=function(e,n){var r="";r+="m="+e+" ",r+=n.codecs.length>0?"9":"0",r+=" UDP/TLS/RTP/SAVPF ",r+=n.codecs.map((function(e){return void 0!==e.preferredPayloadType?e.preferredPayloadType:e.payloadType})).join(" ")+"\r\n",r+="c=IN IP4 0.0.0.0\r\n",r+="a=rtcp:9 IN IP4 0.0.0.0\r\n",n.codecs.forEach((function(e){r+=t.writeRtpMap(e),r+=t.writeFmtp(e),r+=t.writeRtcpFb(e)}));var i=0;return n.codecs.forEach((function(e){e.maxptime>i&&(i=e.maxptime)})),i>0&&(r+="a=maxptime:"+i+"\r\n"),r+="a=rtcp-mux\r\n",n.headerExtensions&&n.headerExtensions.forEach((function(e){r+=t.writeExtmap(e)})),r},t.parseRtpEncodingParameters=function(e){var n,r=[],i=t.parseRtpParameters(e),s=-1!==i.fecMechanisms.indexOf("RED"),o=-1!==i.fecMechanisms.indexOf("ULPFEC"),a=t.matchPrefix(e,"a=ssrc:").map((function(e){return t.parseSsrcMedia(e)})).filter((function(e){return"cname"===e.attribute})),c=a.length>0&&a[0].ssrc,l=t.matchPrefix(e,"a=ssrc-group:FID").map((function(e){return e.substr(17).split(" ").map((function(e){return parseInt(e,10)}))}));l.length>0&&l[0].length>1&&l[0][0]===c&&(n=l[0][1]),i.codecs.forEach((function(e){if("RTX"===e.name.toUpperCase()&&e.parameters.apt){var t={ssrc:c,codecPayloadType:parseInt(e.parameters.apt,10)};c&&n&&(t.rtx={ssrc:n}),r.push(t),s&&((t=JSON.parse(JSON.stringify(t))).fec={ssrc:c,mechanism:o?"red+ulpfec":"red"},r.push(t))}})),0===r.length&&c&&r.push({ssrc:c});var f=t.matchPrefix(e,"b=");return f.length&&(f=0===f[0].indexOf("b=TIAS:")?parseInt(f[0].substr(7),10):0===f[0].indexOf("b=AS:")?1e3*parseInt(f[0].substr(5),10)*.95-16e3:void 0,r.forEach((function(e){e.maxBitrate=f}))),r},t.parseRtcpParameters=function(e){var n={},r=t.matchPrefix(e,"a=ssrc:").map((function(e){return t.parseSsrcMedia(e)})).filter((function(e){return"cname"===e.attribute}))[0];r&&(n.cname=r.value,n.ssrc=r.ssrc);var i=t.matchPrefix(e,"a=rtcp-rsize");n.reducedSize=i.length>0,n.compound=0===i.length;var s=t.matchPrefix(e,"a=rtcp-mux");return n.mux=s.length>0,n},t.parseMsid=function(e){var n,r=t.matchPrefix(e,"a=msid:");if(1===r.length)return{stream:(n=r[0].substr(7).split(" "))[0],track:n[1]};var i=t.matchPrefix(e,"a=ssrc:").map((function(e){return t.parseSsrcMedia(e)})).filter((function(e){return"msid"===e.attribute}));return i.length>0?{stream:(n=i[0].value.split(" "))[0],track:n[1]}:void 0},t.parseSctpDescription=function(e){var n,r=t.parseMLine(e),i=t.matchPrefix(e,"a=max-message-size:");i.length>0&&(n=parseInt(i[0].substr(19),10)),isNaN(n)&&(n=65536);var s=t.matchPrefix(e,"a=sctp-port:");if(s.length>0)return{port:parseInt(s[0].substr(12),10),protocol:r.fmt,maxMessageSize:n};if(t.matchPrefix(e,"a=sctpmap:").length>0){var o=t.matchPrefix(e,"a=sctpmap:")[0].substr(10).split(" ");return{port:parseInt(o[0],10),protocol:o[1],maxMessageSize:n}}},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,r){var i=void 0!==n?n:2;return"v=0\r\no="+(r||"thisisadapterortc")+" "+(e||t.generateSessionId())+" "+i+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},t.writeMediaSection=function(e,n,r,i){var s=t.writeRtpDescription(e.kind,n);if(s+=t.writeIceParameters(e.iceGatherer.getLocalParameters()),s+=t.writeDtlsParameters(e.dtlsTransport.getLocalParameters(),"offer"===r?"actpass":"active"),s+="a=mid:"+e.mid+"\r\n",e.direction?s+="a="+e.direction+"\r\n":e.rtpSender&&e.rtpReceiver?s+="a=sendrecv\r\n":e.rtpSender?s+="a=sendonly\r\n":e.rtpReceiver?s+="a=recvonly\r\n":s+="a=inactive\r\n",e.rtpSender){var o="msid:"+i.id+" "+e.rtpSender.track.id+"\r\n";s+="a="+o,s+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" "+o,e.sendEncodingParameters[0].rtx&&(s+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" "+o,s+="a=ssrc-group:FID "+e.sendEncodingParameters[0].ssrc+" "+e.sendEncodingParameters[0].rtx.ssrc+"\r\n")}return s+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" cname:"+t.localCName+"\r\n",e.rtpSender&&e.sendEncodingParameters[0].rtx&&(s+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" cname:"+t.localCName+"\r\n"),s},t.getDirection=function(e,n){for(var r=t.splitLines(e),i=0;i<r.length;i++)switch(r[i]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return r[i].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;for(var n=t.splitLines(e),r=0;r<n.length;r++)if(n[r].length<2||"="!==n[r].charAt(1))return!1;return!0},e.exports=t},4860:(e,t,n)=>{"use strict";e.exports=n(9676)},4983:(e,t,n)=>{var r,i=n(5848),s={};for(r in e.exports=s,i)s[i[r]]=r},5620:e=>{"use strict";e.exports=JSON.parse('["cent","copy","divide","gt","lt","not","para","times"]')},7472:e=>{e.exports=String.fromCharCode},8003:e=>{e.exports={}.hasOwnProperty},4988:e=>{"use strict";e.exports=function(e,t){if(e=e.replace(t.subset?function(e){var t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}(t.subset):/["&'<>`]/g,n),t.subset||t.escapeOnly)return e;return e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,(function(e,n,r){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)})).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,n);function n(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}},4930:(e,t,n)=>{"use strict";var r=n(7529),i=n(4988),s=n(1586);e.exports=function(e,t){return i(e,r(t,{format:s}))}},5664:(e,t,n)=>{"use strict";var r=n(4988),i=n(1586);e.exports=function(e){return r(e,{escapeOnly:!0,useNamedReferences:!0,format:i})}},9676:(e,t,n)=>{"use strict";var r=n(4930),i=n(5664);e.exports=r,r.escape=i},1586:(e,t,n)=>{e.exports=function(e,t,n){var o,a,c;(n.useNamedReferences||n.useShortestReferences)&&(o=s(e,t,n.omitOptionalSemicolons,n.attribute));!n.useShortestReferences&&o||(a=r(e,t,n.omitOptionalSemicolons),n.useShortestReferences&&(c=i(e,t,n.omitOptionalSemicolons)).length<a.length&&(a=c));return o&&(!n.useShortestReferences||o.length<a.length)?o:a};var r=n(9206),i=n(9327),s=n(5906)},9327:(e,t,n)=>{e.exports=function(e,t,n){var i="&#"+String(e);return n&&t&&!/\d/.test(r(t))?i:i+";"};var r=n(7472)},9206:(e,t,n)=>{e.exports=function(e,t,n){var i="&#x"+e.toString(16).toUpperCase();return n&&t&&!/[\dA-Fa-f]/.test(r(t))?i:i+";"};var r=n(7472)},5906:(e,t,n)=>{e.exports=function(e,t,n,c){var l,f,u=s(e);if(o.call(i,u))return l=i[u],f="&"+l,n&&o.call(r,l)&&-1===a.indexOf(l)&&(!c||t&&61!==t&&/[^\da-z]/i.test(s(t)))?f:f+";";return""};var r=n(6588),i=n(4983),s=n(7472),o=n(8003),a=n(5620)},2417:(e,t,n)=>{"use strict";n.r(t);var r={};n.r(r),n.d(r,{fixNegotiationNeeded:()=>Ko,shimAddTrackRemoveTrack:()=>Yo,shimAddTrackRemoveTrackWithNative:()=>Qo,shimGetDisplayMedia:()=>zo,shimGetSendersWithDtmf:()=>Vo,shimGetStats:()=>$o,shimGetUserMedia:()=>qo,shimMediaStream:()=>Go,shimOnTrack:()=>Ho,shimPeerConnection:()=>Xo,shimSenderReceiverGetStats:()=>Wo});var i={};n.r(i),n.d(i,{shimGetDisplayMedia:()=>ta,shimGetUserMedia:()=>ea,shimPeerConnection:()=>na,shimReplaceTrack:()=>ra});var s={};n.r(s),n.d(s,{shimAddTransceiver:()=>da,shimCreateAnswer:()=>ma,shimCreateOffer:()=>pa,shimGetDisplayMedia:()=>sa,shimGetParameters:()=>ha,shimGetUserMedia:()=>ia,shimOnTrack:()=>oa,shimPeerConnection:()=>aa,shimRTCDataChannel:()=>ua,shimReceiverGetStats:()=>la,shimRemoveStream:()=>fa,shimSenderGetStats:()=>ca});var o={};n.r(o),n.d(o,{shimAudioContext:()=>Ea,shimCallbacksAPI:()=>ba,shimConstraints:()=>_a,shimCreateOfferLegacy:()=>Ca,shimGetUserMedia:()=>ya,shimLocalStreamsAPI:()=>ga,shimRTCIceServerUrls:()=>Aa,shimRemoteStreamsAPI:()=>va,shimTrackEventTransceiver:()=>wa});var a={};n.r(a),n.d(a,{removeAllowExtmapMixed:()=>Ia,shimConnectionState:()=>Na,shimMaxMessageSize:()=>xa,shimRTCIceCandidate:()=>Oa,shimSendThrowTypeError:()=>Ma});const c=/-(\w)/g,l=e=>e.replace(c,((e,t)=>t?t.toUpperCase():"")),f=/\B([A-Z])/g,u=e=>e.replace(f,"-$1").toLowerCase();function d(e,t,n){e[t]=[].concat(e[t]||[]),e[t].unshift(n)}function h(e,t){if(e){(e.$options[t]||[]).forEach((t=>{t.call(e)}))}}function p(e,t,{type:n}={}){if(/function Boolean/.test(String(n)))return"true"===e||"false"===e?"true"===e:""===e||e===t||null!=e;if((e=>/function Number/.test(String(e)))(n)){const t=parseFloat(e,10);return isNaN(t)?e:t}return e}function m(e,t){const n=[];for(let r=0,i=t.length;r<i;r++)n.push(g(e,t[r]));return n}function g(e,t){if(3===t.nodeType)return t.data.trim()?t.data:null;if(1===t.nodeType){const n={attrs:v(t),domProps:{innerHTML:t.innerHTML}};return n.attrs.slot&&(n.slot=n.attrs.slot,delete n.attrs.slot),e(t.tagName,n)}return null}function v(e){const t={};for(let n=0,r=e.attributes.length;n<r;n++){const r=e.attributes[n];t[r.nodeName]=r.nodeValue}return t}const b=function(e,t){const n="function"==typeof t&&!t.cid;let r,i,s,o=!1;function a(e){if(o)return;const t="function"==typeof e?e.options:e,n=Array.isArray(t.props)?t.props:Object.keys(t.props||{});r=n.map(u),i=n.map(l);const a=Array.isArray(t.props)?{}:t.props||{};s=i.reduce(((e,t,r)=>(e[t]=a[n[r]],e)),{}),d(t,"beforeCreate",(function(){const e=this.$emit;this.$emit=(t,...n)=>(this.$root.$options.customElement.dispatchEvent(function(e,t){return new CustomEvent(e,{bubbles:!1,cancelable:!1,detail:t})}(t,n)),e.call(this,t,...n))})),d(t,"created",(function(){i.forEach((e=>{this.$root.props[e]=this[e]}))})),i.forEach((e=>{Object.defineProperty(f.prototype,e,{get(){return this._wrapper.props[e]},set(t){this._wrapper.props[e]=t},enumerable:!1,configurable:!0})})),o=!0}function c(e,t){const n=l(t),r=e.hasAttribute(t)?e.getAttribute(t):void 0;e._wrapper.props[n]=p(r,t,s[n])}class f extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const n=this._wrapper=new e({name:"shadow-root",customElement:this,shadowRoot:this.shadowRoot,data:()=>({props:{},slotChildren:[]}),render(e){return e(t,{ref:"inner",props:this.props},this.slotChildren)}});new MutationObserver((e=>{let t=!1;for(let n=0;n<e.length;n++){const r=e[n];o&&"attributes"===r.type&&r.target===this?c(this,r.attributeName):t=!0}t&&(n.slotChildren=Object.freeze(m(n.$createElement,this.childNodes)))})).observe(this,{childList:!0,subtree:!0,characterData:!0,attributes:!0})}get vueComponent(){return this._wrapper.$refs.inner}connectedCallback(){const e=this._wrapper;if(e._isMounted)h(this.vueComponent,"activated");else{const n=()=>{e.props=function(e){const t={};return e.forEach((e=>{t[e]=void 0})),t}(i),r.forEach((e=>{c(this,e)}))};o?n():t().then((e=>{(e.__esModule||"Module"===e[Symbol.toStringTag])&&(e=e.default),a(e),n()})),e.slotChildren=Object.freeze(m(e.$createElement,this.childNodes)),e.$mount(),this.shadowRoot.appendChild(e.$el)}}disconnectedCallback(){h(this.vueComponent,"deactivated")}}return n||a(t),f};n(7363),n(6919);var y=Object.freeze({});function _(e){return null==e}function A(e){return null!=e}function w(e){return!0===e}function C(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function E(e){return null!==e&&"object"==typeof e}var S=Object.prototype.toString;function T(e){return"[object Object]"===S.call(e)}function O(e){return"[object RegExp]"===S.call(e)}function x(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function M(e){return A(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function N(e){return null==e?"":Array.isArray(e)||T(e)&&e.toString===S?JSON.stringify(e,null,2):String(e)}function I(e){var t=parseFloat(e);return isNaN(t)?e:t}function R(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}R("slot,component",!0);var k=R("key,ref,slot,slot-scope,is");function P(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var D=Object.prototype.hasOwnProperty;function F(e,t){return D.call(e,t)}function B(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var L=/-(\w)/g,j=B((function(e){return e.replace(L,(function(e,t){return t?t.toUpperCase():""}))})),U=B((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),q=/\B([A-Z])/g,z=B((function(e){return e.replace(q,"-$1").toLowerCase()}));var G=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function H(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function V(e,t){for(var n in t)e[n]=t[n];return e}function $(e){for(var t={},n=0;n<e.length;n++)e[n]&&V(t,e[n]);return t}function W(e,t,n){}var Q=function(e,t,n){return!1},Y=function(e){return e};function X(e,t){if(e===t)return!0;var n=E(e),r=E(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=Array.isArray(e),s=Array.isArray(t);if(i&&s)return e.length===t.length&&e.every((function(e,n){return X(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||s)return!1;var o=Object.keys(e),a=Object.keys(t);return o.length===a.length&&o.every((function(n){return X(e[n],t[n])}))}catch(e){return!1}}function K(e,t){for(var n=0;n<e.length;n++)if(X(e[n],t))return n;return-1}function Z(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var J="data-server-rendered",ee=["component","directive","filter"],te=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],ne={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:Q,isReservedAttr:Q,isUnknownElement:Q,getTagNamespace:W,parsePlatformTagName:Y,mustUseProp:Q,async:!0,_lifecycleHooks:te},re=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function ie(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function se(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var oe=new RegExp("[^"+re.source+".$_\\d]");var ae,ce="__proto__"in{},le="undefined"!=typeof window,fe="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,ue=fe&&WXEnvironment.platform.toLowerCase(),de=le&&window.navigator.userAgent.toLowerCase(),he=de&&/msie|trident/.test(de),pe=de&&de.indexOf("msie 9.0")>0,me=de&&de.indexOf("edge/")>0,ge=(de&&de.indexOf("android"),de&&/iphone|ipad|ipod|ios/.test(de)||"ios"===ue),ve=(de&&/chrome\/\d+/.test(de),de&&/phantomjs/.test(de),de&&de.match(/firefox\/(\d+)/)),be={}.watch,ye=!1;if(le)try{var _e={};Object.defineProperty(_e,"passive",{get:function(){ye=!0}}),window.addEventListener("test-passive",null,_e)}catch(e){}var Ae=function(){return void 0===ae&&(ae=!le&&!fe&&void 0!==n.g&&(n.g.process&&"server"===n.g.process.env.VUE_ENV)),ae},we=le&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function Ce(e){return"function"==typeof e&&/native code/.test(e.toString())}var Ee,Se="undefined"!=typeof Symbol&&Ce(Symbol)&&"undefined"!=typeof Reflect&&Ce(Reflect.ownKeys);Ee="undefined"!=typeof Set&&Ce(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var Te=W,Oe=0,xe=function(){this.id=Oe++,this.subs=[]};xe.prototype.addSub=function(e){this.subs.push(e)},xe.prototype.removeSub=function(e){P(this.subs,e)},xe.prototype.depend=function(){xe.target&&xe.target.addDep(this)},xe.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t<n;t++)e[t].update()},xe.target=null;var Me=[];function Ne(e){Me.push(e),xe.target=e}function Ie(){Me.pop(),xe.target=Me[Me.length-1]}var Re=function(e,t,n,r,i,s,o,a){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=s,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=o,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=a,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},ke={child:{configurable:!0}};ke.child.get=function(){return this.componentInstance},Object.defineProperties(Re.prototype,ke);var Pe=function(e){void 0===e&&(e="");var t=new Re;return t.text=e,t.isComment=!0,t};function De(e){return new Re(void 0,void 0,void 0,String(e))}function Fe(e){var t=new Re(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var Be=Array.prototype,Le=Object.create(Be);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){var t=Be[e];se(Le,e,(function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];var i,s=t.apply(this,n),o=this.__ob__;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&o.observeArray(i),o.dep.notify(),s}))}));var je=Object.getOwnPropertyNames(Le),Ue=!0;function qe(e){Ue=e}var ze=function(e){this.value=e,this.dep=new xe,this.vmCount=0,se(e,"__ob__",this),Array.isArray(e)?(ce?function(e,t){e.__proto__=t}(e,Le):function(e,t,n){for(var r=0,i=n.length;r<i;r++){var s=n[r];se(e,s,t[s])}}(e,Le,je),this.observeArray(e)):this.walk(e)};function Ge(e,t){var n;if(E(e)&&!(e instanceof Re))return F(e,"__ob__")&&e.__ob__ instanceof ze?n=e.__ob__:Ue&&!Ae()&&(Array.isArray(e)||T(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new ze(e)),t&&n&&n.vmCount++,n}function He(e,t,n,r,i){var s=new xe,o=Object.getOwnPropertyDescriptor(e,t);if(!o||!1!==o.configurable){var a=o&&o.get,c=o&&o.set;a&&!c||2!==arguments.length||(n=e[t]);var l=!i&&Ge(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=a?a.call(e):n;return xe.target&&(s.depend(),l&&(l.dep.depend(),Array.isArray(t)&&We(t))),t},set:function(t){var r=a?a.call(e):n;t===r||t!=t&&r!=r||a&&!c||(c?c.call(e,t):n=t,l=!i&&Ge(t),s.notify())}})}}function Ve(e,t,n){if(Array.isArray(e)&&x(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(He(r.value,t,n),r.dep.notify(),n):(e[t]=n,n)}function $e(e,t){if(Array.isArray(e)&&x(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||F(e,t)&&(delete e[t],n&&n.dep.notify())}}function We(e){for(var t=void 0,n=0,r=e.length;n<r;n++)(t=e[n])&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&We(t)}ze.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)He(e,t[n])},ze.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Ge(e[t])};var Qe=ne.optionMergeStrategies;function Ye(e,t){if(!t)return e;for(var n,r,i,s=Se?Reflect.ownKeys(t):Object.keys(t),o=0;o<s.length;o++)"__ob__"!==(n=s[o])&&(r=e[n],i=t[n],F(e,n)?r!==i&&T(r)&&T(i)&&Ye(r,i):Ve(e,n,i));return e}function Xe(e,t,n){return n?function(){var r="function"==typeof t?t.call(n,n):t,i="function"==typeof e?e.call(n,n):e;return r?Ye(r,i):i}:t?e?function(){return Ye("function"==typeof t?t.call(this,this):t,"function"==typeof e?e.call(this,this):e)}:t:e}function Ke(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}function Ze(e,t,n,r){var i=Object.create(e||null);return t?V(i,t):i}Qe.data=function(e,t,n){return n?Xe(e,t,n):t&&"function"!=typeof t?e:Xe(e,t)},te.forEach((function(e){Qe[e]=Ke})),ee.forEach((function(e){Qe[e+"s"]=Ze})),Qe.watch=function(e,t,n,r){if(e===be&&(e=void 0),t===be&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var i={};for(var s in V(i,e),t){var o=i[s],a=t[s];o&&!Array.isArray(o)&&(o=[o]),i[s]=o?o.concat(a):Array.isArray(a)?a:[a]}return i},Qe.props=Qe.methods=Qe.inject=Qe.computed=function(e,t,n,r){if(!e)return t;var i=Object.create(null);return V(i,e),t&&V(i,t),i},Qe.provide=Xe;var Je=function(e,t){return void 0===t?e:t};function et(e,t,n){if("function"==typeof t&&(t=t.options),function(e,t){var n=e.props;if(n){var r,i,s={};if(Array.isArray(n))for(r=n.length;r--;)"string"==typeof(i=n[r])&&(s[j(i)]={type:null});else if(T(n))for(var o in n)i=n[o],s[j(o)]=T(i)?i:{type:i};e.props=s}}(t),function(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(T(n))for(var s in n){var o=n[s];r[s]=T(o)?V({from:s},o):{from:o}}}}(t),function(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"==typeof r&&(t[n]={bind:r,update:r})}}(t),!t._base&&(t.extends&&(e=et(e,t.extends,n)),t.mixins))for(var r=0,i=t.mixins.length;r<i;r++)e=et(e,t.mixins[r],n);var s,o={};for(s in e)a(s);for(s in t)F(e,s)||a(s);function a(r){var i=Qe[r]||Je;o[r]=i(e[r],t[r],n,r)}return o}function tt(e,t,n,r){if("string"==typeof n){var i=e[t];if(F(i,n))return i[n];var s=j(n);if(F(i,s))return i[s];var o=U(s);return F(i,o)?i[o]:i[n]||i[s]||i[o]}}function nt(e,t,n,r){var i=t[e],s=!F(n,e),o=n[e],a=st(Boolean,i.type);if(a>-1)if(s&&!F(i,"default"))o=!1;else if(""===o||o===z(e)){var c=st(String,i.type);(c<0||a<c)&&(o=!0)}if(void 0===o){o=function(e,t,n){if(!F(t,"default"))return;var r=t.default;0;if(e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n])return e._props[n];return"function"==typeof r&&"Function"!==rt(t.type)?r.call(e):r}(r,i,e);var l=Ue;qe(!0),Ge(o),qe(l)}return o}function rt(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function it(e,t){return rt(e)===rt(t)}function st(e,t){if(!Array.isArray(t))return it(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(it(t[n],e))return n;return-1}function ot(e,t,n){Ne();try{if(t)for(var r=t;r=r.$parent;){var i=r.$options.errorCaptured;if(i)for(var s=0;s<i.length;s++)try{if(!1===i[s].call(r,e,t,n))return}catch(e){ct(e,r,"errorCaptured hook")}}ct(e,t,n)}finally{Ie()}}function at(e,t,n,r,i){var s;try{(s=n?e.apply(t,n):e.call(t))&&!s._isVue&&M(s)&&!s._handled&&(s.catch((function(e){return ot(e,r,i+" (Promise/async)")})),s._handled=!0)}catch(e){ot(e,r,i)}return s}function ct(e,t,n){if(ne.errorHandler)try{return ne.errorHandler.call(null,e,t,n)}catch(t){t!==e&<(t,null,"config.errorHandler")}lt(e,t,n)}function lt(e,t,n){if(!le&&!fe||"undefined"==typeof console)throw e;console.error(e)}var ft,ut=!1,dt=[],ht=!1;function pt(){ht=!1;var e=dt.slice(0);dt.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!=typeof Promise&&Ce(Promise)){var mt=Promise.resolve();ft=function(){mt.then(pt),ge&&setTimeout(W)},ut=!0}else if(he||"undefined"==typeof MutationObserver||!Ce(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())ft="undefined"!=typeof setImmediate&&Ce(setImmediate)?function(){setImmediate(pt)}:function(){setTimeout(pt,0)};else{var gt=1,vt=new MutationObserver(pt),bt=document.createTextNode(String(gt));vt.observe(bt,{characterData:!0}),ft=function(){gt=(gt+1)%2,bt.data=String(gt)},ut=!0}function yt(e,t){var n;if(dt.push((function(){if(e)try{e.call(t)}catch(e){ot(e,t,"nextTick")}else n&&n(t)})),ht||(ht=!0,ft()),!e&&"undefined"!=typeof Promise)return new Promise((function(e){n=e}))}var _t=new Ee;function At(e){wt(e,_t),_t.clear()}function wt(e,t){var n,r,i=Array.isArray(e);if(!(!i&&!E(e)||Object.isFrozen(e)||e instanceof Re)){if(e.__ob__){var s=e.__ob__.dep.id;if(t.has(s))return;t.add(s)}if(i)for(n=e.length;n--;)wt(e[n],t);else for(n=(r=Object.keys(e)).length;n--;)wt(e[r[n]],t)}}var Ct=B((function(e){var t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),r="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=r?e.slice(1):e,once:n,capture:r,passive:t}}));function Et(e,t){function n(){var e=arguments,r=n.fns;if(!Array.isArray(r))return at(r,null,arguments,t,"v-on handler");for(var i=r.slice(),s=0;s<i.length;s++)at(i[s],null,e,t,"v-on handler")}return n.fns=e,n}function St(e,t,n,r,i,s){var o,a,c,l;for(o in e)a=e[o],c=t[o],l=Ct(o),_(a)||(_(c)?(_(a.fns)&&(a=e[o]=Et(a,s)),w(l.once)&&(a=e[o]=i(l.name,a,l.capture)),n(l.name,a,l.capture,l.passive,l.params)):a!==c&&(c.fns=a,e[o]=c));for(o in t)_(e[o])&&r((l=Ct(o)).name,t[o],l.capture)}function Tt(e,t,n){var r;e instanceof Re&&(e=e.data.hook||(e.data.hook={}));var i=e[t];function s(){n.apply(this,arguments),P(r.fns,s)}_(i)?r=Et([s]):A(i.fns)&&w(i.merged)?(r=i).fns.push(s):r=Et([i,s]),r.merged=!0,e[t]=r}function Ot(e,t,n,r,i){if(A(t)){if(F(t,n))return e[n]=t[n],i||delete t[n],!0;if(F(t,r))return e[n]=t[r],i||delete t[r],!0}return!1}function xt(e){return C(e)?[De(e)]:Array.isArray(e)?Nt(e):void 0}function Mt(e){return A(e)&&A(e.text)&&!1===e.isComment}function Nt(e,t){var n,r,i,s,o=[];for(n=0;n<e.length;n++)_(r=e[n])||"boolean"==typeof r||(s=o[i=o.length-1],Array.isArray(r)?r.length>0&&(Mt((r=Nt(r,(t||"")+"_"+n))[0])&&Mt(s)&&(o[i]=De(s.text+r[0].text),r.shift()),o.push.apply(o,r)):C(r)?Mt(s)?o[i]=De(s.text+r):""!==r&&o.push(De(r)):Mt(r)&&Mt(s)?o[i]=De(s.text+r.text):(w(e._isVList)&&A(r.tag)&&_(r.key)&&A(t)&&(r.key="__vlist"+t+"_"+n+"__"),o.push(r)));return o}function It(e,t){if(e){for(var n=Object.create(null),r=Se?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var s=r[i];if("__ob__"!==s){for(var o=e[s].from,a=t;a;){if(a._provided&&F(a._provided,o)){n[s]=a._provided[o];break}a=a.$parent}if(!a)if("default"in e[s]){var c=e[s].default;n[s]="function"==typeof c?c.call(t):c}else 0}}return n}}function Rt(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var s=e[r],o=s.data;if(o&&o.attrs&&o.attrs.slot&&delete o.attrs.slot,s.context!==t&&s.fnContext!==t||!o||null==o.slot)(n.default||(n.default=[])).push(s);else{var a=o.slot,c=n[a]||(n[a]=[]);"template"===s.tag?c.push.apply(c,s.children||[]):c.push(s)}}for(var l in n)n[l].every(kt)&&delete n[l];return n}function kt(e){return e.isComment&&!e.asyncFactory||" "===e.text}function Pt(e,t,n){var r,i=Object.keys(t).length>0,s=e?!!e.$stable:!i,o=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(s&&n&&n!==y&&o===n.$key&&!i&&!n.$hasNormal)return n;for(var a in r={},e)e[a]&&"$"!==a[0]&&(r[a]=Dt(t,a,e[a]))}else r={};for(var c in t)c in r||(r[c]=Ft(t,c));return e&&Object.isExtensible(e)&&(e._normalized=r),se(r,"$stable",s),se(r,"$key",o),se(r,"$hasNormal",i),r}function Dt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:xt(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function Ft(e,t){return function(){return e[t]}}function Bt(e,t){var n,r,i,s,o;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),r=0,i=e.length;r<i;r++)n[r]=t(e[r],r);else if("number"==typeof e)for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r);else if(E(e))if(Se&&e[Symbol.iterator]){n=[];for(var a=e[Symbol.iterator](),c=a.next();!c.done;)n.push(t(c.value,n.length)),c=a.next()}else for(s=Object.keys(e),n=new Array(s.length),r=0,i=s.length;r<i;r++)o=s[r],n[r]=t(e[o],o,r);return A(n)||(n=[]),n._isVList=!0,n}function Lt(e,t,n,r){var i,s=this.$scopedSlots[e];s?(n=n||{},r&&(n=V(V({},r),n)),i=s(n)||t):i=this.$slots[e]||t;var o=n&&n.slot;return o?this.$createElement("template",{slot:o},i):i}function jt(e){return tt(this.$options,"filters",e)||Y}function Ut(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function qt(e,t,n,r,i){var s=ne.keyCodes[t]||n;return i&&r&&!ne.keyCodes[t]?Ut(i,r):s?Ut(s,e):r?z(r)!==t:void 0}function zt(e,t,n,r,i){if(n)if(E(n)){var s;Array.isArray(n)&&(n=$(n));var o=function(o){if("class"===o||"style"===o||k(o))s=e;else{var a=e.attrs&&e.attrs.type;s=r||ne.mustUseProp(t,a,o)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var c=j(o),l=z(o);c in s||l in s||(s[o]=n[o],i&&((e.on||(e.on={}))["update:"+o]=function(e){n[o]=e}))};for(var a in n)o(a)}else;return e}function Gt(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t||Vt(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),"__static__"+e,!1),r}function Ht(e,t,n){return Vt(e,"__once__"+t+(n?"_"+n:""),!0),e}function Vt(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&$t(e[r],t+"_"+r,n);else $t(e,t,n)}function $t(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function Wt(e,t){if(t)if(T(t)){var n=e.on=e.on?V({},e.on):{};for(var r in t){var i=n[r],s=t[r];n[r]=i?[].concat(i,s):s}}else;return e}function Qt(e,t,n,r){t=t||{$stable:!n};for(var i=0;i<e.length;i++){var s=e[i];Array.isArray(s)?Qt(s,t,n):s&&(s.proxy&&(s.fn.proxy=!0),t[s.key]=s.fn)}return r&&(t.$key=r),t}function Yt(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"==typeof r&&r&&(e[t[n]]=t[n+1])}return e}function Xt(e,t){return"string"==typeof e?t+e:e}function Kt(e){e._o=Ht,e._n=I,e._s=N,e._l=Bt,e._t=Lt,e._q=X,e._i=K,e._m=Gt,e._f=jt,e._k=qt,e._b=zt,e._v=De,e._e=Pe,e._u=Qt,e._g=Wt,e._d=Yt,e._p=Xt}function Zt(e,t,n,r,i){var s,o=this,a=i.options;F(r,"_uid")?(s=Object.create(r))._original=r:(s=r,r=r._original);var c=w(a._compiled),l=!c;this.data=e,this.props=t,this.children=n,this.parent=r,this.listeners=e.on||y,this.injections=It(a.inject,r),this.slots=function(){return o.$slots||Pt(e.scopedSlots,o.$slots=Rt(n,r)),o.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Pt(e.scopedSlots,this.slots())}}),c&&(this.$options=a,this.$slots=this.slots(),this.$scopedSlots=Pt(e.scopedSlots,this.$slots)),a._scopeId?this._c=function(e,t,n,i){var o=on(s,e,t,n,i,l);return o&&!Array.isArray(o)&&(o.fnScopeId=a._scopeId,o.fnContext=r),o}:this._c=function(e,t,n,r){return on(s,e,t,n,r,l)}}function Jt(e,t,n,r,i){var s=Fe(e);return s.fnContext=n,s.fnOptions=r,t.slot&&((s.data||(s.data={})).slot=t.slot),s}function en(e,t){for(var n in t)e[j(n)]=t[n]}Kt(Zt.prototype);var tn={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;tn.prepatch(n,n)}else{(e.componentInstance=function(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;A(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns);return new e.componentOptions.Ctor(n)}(e,vn)).$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions;!function(e,t,n,r,i){0;var s=r.data.scopedSlots,o=e.$scopedSlots,a=!!(s&&!s.$stable||o!==y&&!o.$stable||s&&e.$scopedSlots.$key!==s.$key),c=!!(i||e.$options._renderChildren||a);e.$options._parentVnode=r,e.$vnode=r,e._vnode&&(e._vnode.parent=r);if(e.$options._renderChildren=i,e.$attrs=r.data.attrs||y,e.$listeners=n||y,t&&e.$options.props){qe(!1);for(var l=e._props,f=e.$options._propKeys||[],u=0;u<f.length;u++){var d=f[u],h=e.$options.props;l[d]=nt(d,h,t,e)}qe(!0),e.$options.propsData=t}n=n||y;var p=e.$options._parentListeners;e.$options._parentListeners=n,gn(e,n,p),c&&(e.$slots=Rt(i,r.context),e.$forceUpdate());0}(t.componentInstance=e.componentInstance,n.propsData,n.listeners,t,n.children)},insert:function(e){var t,n=e.context,r=e.componentInstance;r._isMounted||(r._isMounted=!0,wn(r,"mounted")),e.data.keepAlive&&(n._isMounted?((t=r)._inactive=!1,En.push(t)):_n(r,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?An(t,!0):t.$destroy())}},nn=Object.keys(tn);function rn(e,t,n,r,i){if(!_(e)){var s=n.$options._base;if(E(e)&&(e=s.extend(e)),"function"==typeof e){var o;if(_(e.cid)&&void 0===(e=function(e,t){if(w(e.error)&&A(e.errorComp))return e.errorComp;if(A(e.resolved))return e.resolved;var n=ln;n&&A(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n);if(w(e.loading)&&A(e.loadingComp))return e.loadingComp;if(n&&!A(e.owners)){var r=e.owners=[n],i=!0,s=null,o=null;n.$on("hook:destroyed",(function(){return P(r,n)}));var a=function(e){for(var t=0,n=r.length;t<n;t++)r[t].$forceUpdate();e&&(r.length=0,null!==s&&(clearTimeout(s),s=null),null!==o&&(clearTimeout(o),o=null))},c=Z((function(n){e.resolved=fn(n,t),i?r.length=0:a(!0)})),l=Z((function(t){A(e.errorComp)&&(e.error=!0,a(!0))})),f=e(c,l);return E(f)&&(M(f)?_(e.resolved)&&f.then(c,l):M(f.component)&&(f.component.then(c,l),A(f.error)&&(e.errorComp=fn(f.error,t)),A(f.loading)&&(e.loadingComp=fn(f.loading,t),0===f.delay?e.loading=!0:s=setTimeout((function(){s=null,_(e.resolved)&&_(e.error)&&(e.loading=!0,a(!1))}),f.delay||200)),A(f.timeout)&&(o=setTimeout((function(){o=null,_(e.resolved)&&l(null)}),f.timeout)))),i=!1,e.loading?e.loadingComp:e.resolved}}(o=e,s)))return function(e,t,n,r,i){var s=Pe();return s.asyncFactory=e,s.asyncMeta={data:t,context:n,children:r,tag:i},s}(o,t,n,r,i);t=t||{},Hn(e),A(t.model)&&function(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var i=t.on||(t.on={}),s=i[r],o=t.model.callback;A(s)?(Array.isArray(s)?-1===s.indexOf(o):s!==o)&&(i[r]=[o].concat(s)):i[r]=o}(e.options,t);var a=function(e,t,n){var r=t.options.props;if(!_(r)){var i={},s=e.attrs,o=e.props;if(A(s)||A(o))for(var a in r){var c=z(a);Ot(i,o,a,c,!0)||Ot(i,s,a,c,!1)}return i}}(t,e);if(w(e.options.functional))return function(e,t,n,r,i){var s=e.options,o={},a=s.props;if(A(a))for(var c in a)o[c]=nt(c,a,t||y);else A(n.attrs)&&en(o,n.attrs),A(n.props)&&en(o,n.props);var l=new Zt(n,o,i,r,e),f=s.render.call(null,l._c,l);if(f instanceof Re)return Jt(f,n,l.parent,s);if(Array.isArray(f)){for(var u=xt(f)||[],d=new Array(u.length),h=0;h<u.length;h++)d[h]=Jt(u[h],n,l.parent,s);return d}}(e,a,t,n,r);var c=t.on;if(t.on=t.nativeOn,w(e.options.abstract)){var l=t.slot;t={},l&&(t.slot=l)}!function(e){for(var t=e.hook||(e.hook={}),n=0;n<nn.length;n++){var r=nn[n],i=t[r],s=tn[r];i===s||i&&i._merged||(t[r]=i?sn(s,i):s)}}(t);var f=e.options.name||i;return new Re("vue-component-"+e.cid+(f?"-"+f:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:a,listeners:c,tag:i,children:r},o)}}}function sn(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}function on(e,t,n,r,i,s){return(Array.isArray(n)||C(n))&&(i=r,r=n,n=void 0),w(s)&&(i=2),function(e,t,n,r,i){if(A(n)&&A(n.__ob__))return Pe();A(n)&&A(n.is)&&(t=n.is);if(!t)return Pe();0;Array.isArray(r)&&"function"==typeof r[0]&&((n=n||{}).scopedSlots={default:r[0]},r.length=0);2===i?r=xt(r):1===i&&(r=function(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}(r));var s,o;if("string"==typeof t){var a;o=e.$vnode&&e.$vnode.ns||ne.getTagNamespace(t),s=ne.isReservedTag(t)?new Re(ne.parsePlatformTagName(t),n,r,void 0,void 0,e):n&&n.pre||!A(a=tt(e.$options,"components",t))?new Re(t,n,r,void 0,void 0,e):rn(a,n,e,r,t)}else s=rn(t,n,e,r);return Array.isArray(s)?s:A(s)?(A(o)&&an(s,o),A(n)&&function(e){E(e.style)&&At(e.style);E(e.class)&&At(e.class)}(n),s):Pe()}(e,t,n,r,i)}function an(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),A(e.children))for(var r=0,i=e.children.length;r<i;r++){var s=e.children[r];A(s.tag)&&(_(s.ns)||w(n)&&"svg"!==s.tag)&&an(s,t,n)}}var cn,ln=null;function fn(e,t){return(e.__esModule||Se&&"Module"===e[Symbol.toStringTag])&&(e=e.default),E(e)?t.extend(e):e}function un(e){return e.isComment&&e.asyncFactory}function dn(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(A(n)&&(A(n.componentOptions)||un(n)))return n}}function hn(e,t){cn.$on(e,t)}function pn(e,t){cn.$off(e,t)}function mn(e,t){var n=cn;return function r(){var i=t.apply(null,arguments);null!==i&&n.$off(e,r)}}function gn(e,t,n){cn=e,St(t,n||{},hn,pn,mn,e),cn=void 0}var vn=null;function bn(e){var t=vn;return vn=e,function(){vn=t}}function yn(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function _n(e,t){if(t){if(e._directInactive=!1,yn(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)_n(e.$children[n]);wn(e,"activated")}}function An(e,t){if(!(t&&(e._directInactive=!0,yn(e))||e._inactive)){e._inactive=!0;for(var n=0;n<e.$children.length;n++)An(e.$children[n]);wn(e,"deactivated")}}function wn(e,t){Ne();var n=e.$options[t],r=t+" hook";if(n)for(var i=0,s=n.length;i<s;i++)at(n[i],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),Ie()}var Cn=[],En=[],Sn={},Tn=!1,On=!1,xn=0;var Mn=0,Nn=Date.now;if(le&&!he){var In=window.performance;In&&"function"==typeof In.now&&Nn()>document.createEvent("Event").timeStamp&&(Nn=function(){return In.now()})}function Rn(){var e,t;for(Mn=Nn(),On=!0,Cn.sort((function(e,t){return e.id-t.id})),xn=0;xn<Cn.length;xn++)(e=Cn[xn]).before&&e.before(),t=e.id,Sn[t]=null,e.run();var n=En.slice(),r=Cn.slice();xn=Cn.length=En.length=0,Sn={},Tn=On=!1,function(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,_n(e[t],!0)}(n),function(e){var t=e.length;for(;t--;){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&wn(r,"updated")}}(r),we&&ne.devtools&&we.emit("flush")}var kn=0,Pn=function(e,t,n,r,i){this.vm=e,i&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++kn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new Ee,this.newDepIds=new Ee,this.expression="","function"==typeof t?this.getter=t:(this.getter=function(e){if(!oe.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}(t),this.getter||(this.getter=W)),this.value=this.lazy?void 0:this.get()};Pn.prototype.get=function(){var e;Ne(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(e){if(!this.user)throw e;ot(e,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&At(e),Ie(),this.cleanupDeps()}return e},Pn.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},Pn.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},Pn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(e){var t=e.id;if(null==Sn[t]){if(Sn[t]=!0,On){for(var n=Cn.length-1;n>xn&&Cn[n].id>e.id;)n--;Cn.splice(n+1,0,e)}else Cn.push(e);Tn||(Tn=!0,yt(Rn))}}(this)},Pn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||E(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){ot(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},Pn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Pn.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},Pn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||P(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var Dn={enumerable:!0,configurable:!0,get:W,set:W};function Fn(e,t,n){Dn.get=function(){return this[t][n]},Dn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Dn)}function Bn(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[];e.$parent&&qe(!1);var s=function(s){i.push(s);var o=nt(s,t,n,e);He(r,s,o),s in e||Fn(e,"_props",s)};for(var o in t)s(o);qe(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?W:G(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;T(t=e._data="function"==typeof t?function(e,t){Ne();try{return e.call(t,t)}catch(e){return ot(e,t,"data()"),{}}finally{Ie()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);for(;i--;){var s=n[i];0,r&&F(r,s)||ie(s)||Fn(e,"_data",s)}Ge(t,!0)}(e):Ge(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=Ae();for(var i in t){var s=t[i],o="function"==typeof s?s:s.get;0,r||(n[i]=new Pn(e,o||W,W,Ln)),i in e||jn(e,i,s)}}(e,t.computed),t.watch&&t.watch!==be&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)zn(e,n,r[i]);else zn(e,n,r)}}(e,t.watch)}var Ln={lazy:!0};function jn(e,t,n){var r=!Ae();"function"==typeof n?(Dn.get=r?Un(t):qn(n),Dn.set=W):(Dn.get=n.get?r&&!1!==n.cache?Un(t):qn(n.get):W,Dn.set=n.set||W),Object.defineProperty(e,t,Dn)}function Un(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),xe.target&&t.depend(),t.value}}function qn(e){return function(){return e.call(this,this)}}function zn(e,t,n,r){return T(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}var Gn=0;function Hn(e){var t=e.options;if(e.super){var n=Hn(e.super);if(n!==e.superOptions){e.superOptions=n;var r=function(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}(e);r&&V(e.extendOptions,r),(t=e.options=et(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function Vn(e){this._init(e)}function $n(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var s=e.name||n.options.name;var o=function(e){this._init(e)};return(o.prototype=Object.create(n.prototype)).constructor=o,o.cid=t++,o.options=et(n.options,e),o.super=n,o.options.props&&function(e){var t=e.options.props;for(var n in t)Fn(e.prototype,"_props",n)}(o),o.options.computed&&function(e){var t=e.options.computed;for(var n in t)jn(e.prototype,n,t[n])}(o),o.extend=n.extend,o.mixin=n.mixin,o.use=n.use,ee.forEach((function(e){o[e]=n[e]})),s&&(o.options.components[s]=o),o.superOptions=n.options,o.extendOptions=e,o.sealedOptions=V({},o.options),i[r]=o,o}}function Wn(e){return e&&(e.Ctor.options.name||e.tag)}function Qn(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!O(e)&&e.test(t)}function Yn(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var s in n){var o=n[s];if(o){var a=Wn(o.componentOptions);a&&!t(a)&&Xn(n,s,r,i)}}}function Xn(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,P(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=Gn++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=et(Hn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&gn(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,r=n&&n.context;e.$slots=Rt(t._renderChildren,r),e.$scopedSlots=y,e._c=function(t,n,r,i){return on(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return on(e,t,n,r,i,!0)};var i=n&&n.data;He(e,"$attrs",i&&i.attrs||y,null,!0),He(e,"$listeners",t._parentListeners||y,null,!0)}(t),wn(t,"beforeCreate"),function(e){var t=It(e.$options.inject,e);t&&(qe(!1),Object.keys(t).forEach((function(n){He(e,n,t[n])})),qe(!0))}(t),Bn(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),wn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(Vn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Ve,e.prototype.$delete=$e,e.prototype.$watch=function(e,t,n){var r=this;if(T(t))return zn(r,e,t,n);(n=n||{}).user=!0;var i=new Pn(r,e,t,n);if(n.immediate)try{t.call(r,i.value)}catch(e){ot(e,r,'callback for immediate watcher "'+i.expression+'"')}return function(){i.teardown()}}}(Vn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,s=e.length;i<s;i++)r.$on(e[i],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var r=0,i=e.length;r<i;r++)n.$off(e[r],t);return n}var s,o=n._events[e];if(!o)return n;if(!t)return n._events[e]=null,n;for(var a=o.length;a--;)if((s=o[a])===t||s.fn===t){o.splice(a,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?H(n):n;for(var r=H(arguments,1),i='event handler for "'+e+'"',s=0,o=n.length;s<o;s++)at(n[s],t,r,t,i)}return t}}(Vn),function(e){e.prototype._update=function(e,t){var n=this,r=n.$el,i=n._vnode,s=bn(n);n._vnode=e,n.$el=i?n.__patch__(i,e):n.__patch__(n.$el,e,t,!1),s(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){wn(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||P(t.$children,e),e._watcher&&e._watcher.teardown();for(var n=e._watchers.length;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),wn(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}(Vn),function(e){Kt(e.prototype),e.prototype.$nextTick=function(e){return yt(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,i=n._parentVnode;i&&(t.$scopedSlots=Pt(i.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=i;try{ln=t,e=r.call(t._renderProxy,t.$createElement)}catch(n){ot(n,t,"render"),e=t._vnode}finally{ln=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof Re||(e=Pe()),e.parent=i,e}}(Vn);var Kn=[String,RegExp,Array],Zn={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:Kn,exclude:Kn,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Xn(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){Yn(e,(function(e){return Qn(t,e)}))})),this.$watch("exclude",(function(t){Yn(e,(function(e){return!Qn(t,e)}))}))},render:function(){var e=this.$slots.default,t=dn(e),n=t&&t.componentOptions;if(n){var r=Wn(n),i=this.include,s=this.exclude;if(i&&(!r||!Qn(i,r))||s&&r&&Qn(s,r))return t;var o=this.cache,a=this.keys,c=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;o[c]?(t.componentInstance=o[c].componentInstance,P(a,c),a.push(c)):(o[c]=t,a.push(c),this.max&&a.length>parseInt(this.max)&&Xn(o,a[0],a,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return ne}};Object.defineProperty(e,"config",t),e.util={warn:Te,extend:V,mergeOptions:et,defineReactive:He},e.set=Ve,e.delete=$e,e.nextTick=yt,e.observable=function(e){return Ge(e),e},e.options=Object.create(null),ee.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,V(e.options.components,Zn),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=H(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=et(this.options,e),this}}(e),$n(e),function(e){ee.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&T(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)}(Vn),Object.defineProperty(Vn.prototype,"$isServer",{get:Ae}),Object.defineProperty(Vn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Vn,"FunctionalRenderContext",{value:Zt}),Vn.version="2.6.12";var Jn=R("style,class"),er=R("input,textarea,option,select,progress"),tr=R("contenteditable,draggable,spellcheck"),nr=R("events,caret,typing,plaintext-only"),rr=R("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),ir="http://www.w3.org/1999/xlink",sr=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},or=function(e){return sr(e)?e.slice(6,e.length):""},ar=function(e){return null==e||!1===e};function cr(e){for(var t=e.data,n=e,r=e;A(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=lr(r.data,t));for(;A(n=n.parent);)n&&n.data&&(t=lr(t,n.data));return function(e,t){if(A(e)||A(t))return fr(e,ur(t));return""}(t.staticClass,t.class)}function lr(e,t){return{staticClass:fr(e.staticClass,t.staticClass),class:A(e.class)?[e.class,t.class]:t.class}}function fr(e,t){return e?t?e+" "+t:e:t||""}function ur(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,i=e.length;r<i;r++)A(t=ur(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}(e):E(e)?function(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}(e):"string"==typeof e?e:""}var dr={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},hr=R("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),pr=R("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),mr=function(e){return hr(e)||pr(e)};var gr=Object.create(null);var vr=R("text,number,password,search,email,tel,url");var br=Object.freeze({createElement:function(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n},createElementNS:function(e,t){return document.createElementNS(dr[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setStyleScope:function(e,t){e.setAttribute(t,"")}}),yr={create:function(e,t){_r(t)},update:function(e,t){e.data.ref!==t.data.ref&&(_r(e,!0),_r(t))},destroy:function(e){_r(e,!0)}};function _r(e,t){var n=e.data.ref;if(A(n)){var r=e.context,i=e.componentInstance||e.elm,s=r.$refs;t?Array.isArray(s[n])?P(s[n],i):s[n]===i&&(s[n]=void 0):e.data.refInFor?Array.isArray(s[n])?s[n].indexOf(i)<0&&s[n].push(i):s[n]=[i]:s[n]=i}}var Ar=new Re("",{},[]),wr=["create","activate","update","remove","destroy"];function Cr(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&A(e.data)===A(t.data)&&function(e,t){if("input"!==e.tag)return!0;var n,r=A(n=e.data)&&A(n=n.attrs)&&n.type,i=A(n=t.data)&&A(n=n.attrs)&&n.type;return r===i||vr(r)&&vr(i)}(e,t)||w(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&_(t.asyncFactory.error))}function Er(e,t,n){var r,i,s={};for(r=t;r<=n;++r)A(i=e[r].key)&&(s[i]=r);return s}var Sr={create:Tr,update:Tr,destroy:function(e){Tr(e,Ar)}};function Tr(e,t){(e.data.directives||t.data.directives)&&function(e,t){var n,r,i,s=e===Ar,o=t===Ar,a=xr(e.data.directives,e.context),c=xr(t.data.directives,t.context),l=[],f=[];for(n in c)r=a[n],i=c[n],r?(i.oldValue=r.value,i.oldArg=r.arg,Nr(i,"update",t,e),i.def&&i.def.componentUpdated&&f.push(i)):(Nr(i,"bind",t,e),i.def&&i.def.inserted&&l.push(i));if(l.length){var u=function(){for(var n=0;n<l.length;n++)Nr(l[n],"inserted",t,e)};s?Tt(t,"insert",u):u()}f.length&&Tt(t,"postpatch",(function(){for(var n=0;n<f.length;n++)Nr(f[n],"componentUpdated",t,e)}));if(!s)for(n in a)c[n]||Nr(a[n],"unbind",e,e,o)}(e,t)}var Or=Object.create(null);function xr(e,t){var n,r,i=Object.create(null);if(!e)return i;for(n=0;n<e.length;n++)(r=e[n]).modifiers||(r.modifiers=Or),i[Mr(r)]=r,r.def=tt(t.$options,"directives",r.name);return i}function Mr(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function Nr(e,t,n,r,i){var s=e.def&&e.def[t];if(s)try{s(n.elm,e,n,r,i)}catch(r){ot(r,n.context,"directive "+e.name+" "+t+" hook")}}var Ir=[yr,Sr];function Rr(e,t){var n=t.componentOptions;if(!(A(n)&&!1===n.Ctor.options.inheritAttrs||_(e.data.attrs)&&_(t.data.attrs))){var r,i,s=t.elm,o=e.data.attrs||{},a=t.data.attrs||{};for(r in A(a.__ob__)&&(a=t.data.attrs=V({},a)),a)i=a[r],o[r]!==i&&kr(s,r,i);for(r in(he||me)&&a.value!==o.value&&kr(s,"value",a.value),o)_(a[r])&&(sr(r)?s.removeAttributeNS(ir,or(r)):tr(r)||s.removeAttribute(r))}}function kr(e,t,n){e.tagName.indexOf("-")>-1?Pr(e,t,n):rr(t)?ar(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):tr(t)?e.setAttribute(t,function(e,t){return ar(t)||"false"===t?"false":"contenteditable"===e&&nr(t)?t:"true"}(t,n)):sr(t)?ar(n)?e.removeAttributeNS(ir,or(t)):e.setAttributeNS(ir,t,n):Pr(e,t,n)}function Pr(e,t,n){if(ar(n))e.removeAttribute(t);else{if(he&&!pe&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var Dr={create:Rr,update:Rr};function Fr(e,t){var n=t.elm,r=t.data,i=e.data;if(!(_(r.staticClass)&&_(r.class)&&(_(i)||_(i.staticClass)&&_(i.class)))){var s=cr(t),o=n._transitionClasses;A(o)&&(s=fr(s,ur(o))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var Br,Lr={create:Fr,update:Fr};function jr(e,t,n){var r=Br;return function i(){var s=t.apply(null,arguments);null!==s&&zr(e,i,n,r)}}var Ur=ut&&!(ve&&Number(ve[1])<=53);function qr(e,t,n,r){if(Ur){var i=Mn,s=t;t=s._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return s.apply(this,arguments)}}Br.addEventListener(e,t,ye?{capture:n,passive:r}:n)}function zr(e,t,n,r){(r||Br).removeEventListener(e,t._wrapper||t,n)}function Gr(e,t){if(!_(e.data.on)||!_(t.data.on)){var n=t.data.on||{},r=e.data.on||{};Br=t.elm,function(e){if(A(e.__r)){var t=he?"change":"input";e[t]=[].concat(e.__r,e[t]||[]),delete e.__r}A(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}(n),St(n,r,qr,zr,jr,t.context),Br=void 0}}var Hr,Vr={create:Gr,update:Gr};function $r(e,t){if(!_(e.data.domProps)||!_(t.data.domProps)){var n,r,i=t.elm,s=e.data.domProps||{},o=t.data.domProps||{};for(n in A(o.__ob__)&&(o=t.data.domProps=V({},o)),s)n in o||(i[n]="");for(n in o){if(r=o[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===s[n])continue;1===i.childNodes.length&&i.removeChild(i.childNodes[0])}if("value"===n&&"PROGRESS"!==i.tagName){i._value=r;var a=_(r)?"":String(r);Wr(i,a)&&(i.value=a)}else if("innerHTML"===n&&pr(i.tagName)&&_(i.innerHTML)){(Hr=Hr||document.createElement("div")).innerHTML="<svg>"+r+"</svg>";for(var c=Hr.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;c.firstChild;)i.appendChild(c.firstChild)}else if(r!==s[n])try{i[n]=r}catch(e){}}}}function Wr(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,r=e._vModifiers;if(A(r)){if(r.number)return I(n)!==I(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var Qr={create:$r,update:$r},Yr=B((function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}));function Xr(e){var t=Kr(e.style);return e.staticStyle?V(e.staticStyle,t):t}function Kr(e){return Array.isArray(e)?$(e):"string"==typeof e?Yr(e):e}var Zr,Jr=/^--/,ei=/\s*!important$/,ti=function(e,t,n){if(Jr.test(t))e.style.setProperty(t,n);else if(ei.test(n))e.style.setProperty(z(t),n.replace(ei,""),"important");else{var r=ri(t);if(Array.isArray(n))for(var i=0,s=n.length;i<s;i++)e.style[r]=n[i];else e.style[r]=n}},ni=["Webkit","Moz","ms"],ri=B((function(e){if(Zr=Zr||document.createElement("div").style,"filter"!==(e=j(e))&&e in Zr)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<ni.length;n++){var r=ni[n]+t;if(r in Zr)return r}}));function ii(e,t){var n=t.data,r=e.data;if(!(_(n.staticStyle)&&_(n.style)&&_(r.staticStyle)&&_(r.style))){var i,s,o=t.elm,a=r.staticStyle,c=r.normalizedStyle||r.style||{},l=a||c,f=Kr(t.data.style)||{};t.data.normalizedStyle=A(f.__ob__)?V({},f):f;var u=function(e,t){var n,r={};if(t)for(var i=e;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=Xr(i.data))&&V(r,n);(n=Xr(e.data))&&V(r,n);for(var s=e;s=s.parent;)s.data&&(n=Xr(s.data))&&V(r,n);return r}(t,!0);for(s in l)_(u[s])&&ti(o,s,"");for(s in u)(i=u[s])!==l[s]&&ti(o,s,null==i?"":i)}}var si={create:ii,update:ii},oi=/\s+/;function ai(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(oi).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function ci(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(oi).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function li(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&V(t,fi(e.name||"v")),V(t,e),t}return"string"==typeof e?fi(e):void 0}}var fi=B((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),ui=le&&!pe,di="transition",hi="animation",pi="transition",mi="transitionend",gi="animation",vi="animationend";ui&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(pi="WebkitTransition",mi="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(gi="WebkitAnimation",vi="webkitAnimationEnd"));var bi=le?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function yi(e){bi((function(){bi(e)}))}function _i(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),ai(e,t))}function Ai(e,t){e._transitionClasses&&P(e._transitionClasses,t),ci(e,t)}function wi(e,t,n){var r=Ei(e,t),i=r.type,s=r.timeout,o=r.propCount;if(!i)return n();var a=i===di?mi:vi,c=0,l=function(){e.removeEventListener(a,f),n()},f=function(t){t.target===e&&++c>=o&&l()};setTimeout((function(){c<o&&l()}),s+1),e.addEventListener(a,f)}var Ci=/\b(transform|all)(,|$)/;function Ei(e,t){var n,r=window.getComputedStyle(e),i=(r[pi+"Delay"]||"").split(", "),s=(r[pi+"Duration"]||"").split(", "),o=Si(i,s),a=(r[gi+"Delay"]||"").split(", "),c=(r[gi+"Duration"]||"").split(", "),l=Si(a,c),f=0,u=0;return t===di?o>0&&(n=di,f=o,u=s.length):t===hi?l>0&&(n=hi,f=l,u=c.length):u=(n=(f=Math.max(o,l))>0?o>l?di:hi:null)?n===di?s.length:c.length:0,{type:n,timeout:f,propCount:u,hasTransform:n===di&&Ci.test(r[pi+"Property"])}}function Si(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max.apply(null,t.map((function(t,n){return Ti(t)+Ti(e[n])})))}function Ti(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function Oi(e,t){var n=e.elm;A(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=li(e.data.transition);if(!_(r)&&!A(n._enterCb)&&1===n.nodeType){for(var i=r.css,s=r.type,o=r.enterClass,a=r.enterToClass,c=r.enterActiveClass,l=r.appearClass,f=r.appearToClass,u=r.appearActiveClass,d=r.beforeEnter,h=r.enter,p=r.afterEnter,m=r.enterCancelled,g=r.beforeAppear,v=r.appear,b=r.afterAppear,y=r.appearCancelled,w=r.duration,C=vn,S=vn.$vnode;S&&S.parent;)C=S.context,S=S.parent;var T=!C._isMounted||!e.isRootInsert;if(!T||v||""===v){var O=T&&l?l:o,x=T&&u?u:c,M=T&&f?f:a,N=T&&g||d,R=T&&"function"==typeof v?v:h,k=T&&b||p,P=T&&y||m,D=I(E(w)?w.enter:w);0;var F=!1!==i&&!pe,B=Ni(R),L=n._enterCb=Z((function(){F&&(Ai(n,M),Ai(n,x)),L.cancelled?(F&&Ai(n,O),P&&P(n)):k&&k(n),n._enterCb=null}));e.data.show||Tt(e,"insert",(function(){var t=n.parentNode,r=t&&t._pending&&t._pending[e.key];r&&r.tag===e.tag&&r.elm._leaveCb&&r.elm._leaveCb(),R&&R(n,L)})),N&&N(n),F&&(_i(n,O),_i(n,x),yi((function(){Ai(n,O),L.cancelled||(_i(n,M),B||(Mi(D)?setTimeout(L,D):wi(n,s,L)))}))),e.data.show&&(t&&t(),R&&R(n,L)),F||B||L()}}}function xi(e,t){var n=e.elm;A(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var r=li(e.data.transition);if(_(r)||1!==n.nodeType)return t();if(!A(n._leaveCb)){var i=r.css,s=r.type,o=r.leaveClass,a=r.leaveToClass,c=r.leaveActiveClass,l=r.beforeLeave,f=r.leave,u=r.afterLeave,d=r.leaveCancelled,h=r.delayLeave,p=r.duration,m=!1!==i&&!pe,g=Ni(f),v=I(E(p)?p.leave:p);0;var b=n._leaveCb=Z((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),m&&(Ai(n,a),Ai(n,c)),b.cancelled?(m&&Ai(n,o),d&&d(n)):(t(),u&&u(n)),n._leaveCb=null}));h?h(y):y()}function y(){b.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),l&&l(n),m&&(_i(n,o),_i(n,c),yi((function(){Ai(n,o),b.cancelled||(_i(n,a),g||(Mi(v)?setTimeout(b,v):wi(n,s,b)))}))),f&&f(n,b),m||g||b())}}function Mi(e){return"number"==typeof e&&!isNaN(e)}function Ni(e){if(_(e))return!1;var t=e.fns;return A(t)?Ni(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function Ii(e,t){!0!==t.data.show&&Oi(t)}var Ri=function(e){var t,n,r={},i=e.modules,s=e.nodeOps;for(t=0;t<wr.length;++t)for(r[wr[t]]=[],n=0;n<i.length;++n)A(i[n][wr[t]])&&r[wr[t]].push(i[n][wr[t]]);function o(e){var t=s.parentNode(e);A(t)&&s.removeChild(t,e)}function a(e,t,n,i,o,a,u){if(A(e.elm)&&A(a)&&(e=a[u]=Fe(e)),e.isRootInsert=!o,!function(e,t,n,i){var s=e.data;if(A(s)){var o=A(e.componentInstance)&&s.keepAlive;if(A(s=s.hook)&&A(s=s.init)&&s(e,!1),A(e.componentInstance))return c(e,t),l(n,e.elm,i),w(o)&&function(e,t,n,i){var s,o=e;for(;o.componentInstance;)if(A(s=(o=o.componentInstance._vnode).data)&&A(s=s.transition)){for(s=0;s<r.activate.length;++s)r.activate[s](Ar,o);t.push(o);break}l(n,e.elm,i)}(e,t,n,i),!0}}(e,t,n,i)){var p=e.data,m=e.children,g=e.tag;A(g)?(e.elm=e.ns?s.createElementNS(e.ns,g):s.createElement(g,e),h(e),f(e,m,t),A(p)&&d(e,t),l(n,e.elm,i)):w(e.isComment)?(e.elm=s.createComment(e.text),l(n,e.elm,i)):(e.elm=s.createTextNode(e.text),l(n,e.elm,i))}}function c(e,t){A(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,u(e)?(d(e,t),h(e)):(_r(e),t.push(e))}function l(e,t,n){A(e)&&(A(n)?s.parentNode(n)===e&&s.insertBefore(e,t,n):s.appendChild(e,t))}function f(e,t,n){if(Array.isArray(t)){0;for(var r=0;r<t.length;++r)a(t[r],n,e.elm,null,!0,t,r)}else C(e.text)&&s.appendChild(e.elm,s.createTextNode(String(e.text)))}function u(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return A(e.tag)}function d(e,n){for(var i=0;i<r.create.length;++i)r.create[i](Ar,e);A(t=e.data.hook)&&(A(t.create)&&t.create(Ar,e),A(t.insert)&&n.push(e))}function h(e){var t;if(A(t=e.fnScopeId))s.setStyleScope(e.elm,t);else for(var n=e;n;)A(t=n.context)&&A(t=t.$options._scopeId)&&s.setStyleScope(e.elm,t),n=n.parent;A(t=vn)&&t!==e.context&&t!==e.fnContext&&A(t=t.$options._scopeId)&&s.setStyleScope(e.elm,t)}function p(e,t,n,r,i,s){for(;r<=i;++r)a(n[r],s,e,t,!1,n,r)}function m(e){var t,n,i=e.data;if(A(i))for(A(t=i.hook)&&A(t=t.destroy)&&t(e),t=0;t<r.destroy.length;++t)r.destroy[t](e);if(A(t=e.children))for(n=0;n<e.children.length;++n)m(e.children[n])}function g(e,t,n){for(;t<=n;++t){var r=e[t];A(r)&&(A(r.tag)?(v(r),m(r)):o(r.elm))}}function v(e,t){if(A(t)||A(e.data)){var n,i=r.remove.length+1;for(A(t)?t.listeners+=i:t=function(e,t){function n(){0==--n.listeners&&o(e)}return n.listeners=t,n}(e.elm,i),A(n=e.componentInstance)&&A(n=n._vnode)&&A(n.data)&&v(n,t),n=0;n<r.remove.length;++n)r.remove[n](e,t);A(n=e.data.hook)&&A(n=n.remove)?n(e,t):t()}else o(e.elm)}function b(e,t,n,r){for(var i=n;i<r;i++){var s=t[i];if(A(s)&&Cr(e,s))return i}}function y(e,t,n,i,o,c){if(e!==t){A(t.elm)&&A(i)&&(t=i[o]=Fe(t));var l=t.elm=e.elm;if(w(e.isAsyncPlaceholder))A(t.asyncFactory.resolved)?T(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(w(t.isStatic)&&w(e.isStatic)&&t.key===e.key&&(w(t.isCloned)||w(t.isOnce)))t.componentInstance=e.componentInstance;else{var f,d=t.data;A(d)&&A(f=d.hook)&&A(f=f.prepatch)&&f(e,t);var h=e.children,m=t.children;if(A(d)&&u(t)){for(f=0;f<r.update.length;++f)r.update[f](e,t);A(f=d.hook)&&A(f=f.update)&&f(e,t)}_(t.text)?A(h)&&A(m)?h!==m&&function(e,t,n,r,i){var o,c,l,f=0,u=0,d=t.length-1,h=t[0],m=t[d],v=n.length-1,w=n[0],C=n[v],E=!i;for(;f<=d&&u<=v;)_(h)?h=t[++f]:_(m)?m=t[--d]:Cr(h,w)?(y(h,w,r,n,u),h=t[++f],w=n[++u]):Cr(m,C)?(y(m,C,r,n,v),m=t[--d],C=n[--v]):Cr(h,C)?(y(h,C,r,n,v),E&&s.insertBefore(e,h.elm,s.nextSibling(m.elm)),h=t[++f],C=n[--v]):Cr(m,w)?(y(m,w,r,n,u),E&&s.insertBefore(e,m.elm,h.elm),m=t[--d],w=n[++u]):(_(o)&&(o=Er(t,f,d)),_(c=A(w.key)?o[w.key]:b(w,t,f,d))?a(w,r,e,h.elm,!1,n,u):Cr(l=t[c],w)?(y(l,w,r,n,u),t[c]=void 0,E&&s.insertBefore(e,l.elm,h.elm)):a(w,r,e,h.elm,!1,n,u),w=n[++u]);f>d?p(e,_(n[v+1])?null:n[v+1].elm,n,u,v,r):u>v&&g(t,f,d)}(l,h,m,n,c):A(m)?(A(e.text)&&s.setTextContent(l,""),p(l,null,m,0,m.length-1,n)):A(h)?g(h,0,h.length-1):A(e.text)&&s.setTextContent(l,""):e.text!==t.text&&s.setTextContent(l,t.text),A(d)&&A(f=d.hook)&&A(f=f.postpatch)&&f(e,t)}}}function E(e,t,n){if(w(n)&&A(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}var S=R("attrs,class,staticClass,staticStyle,key");function T(e,t,n,r){var i,s=t.tag,o=t.data,a=t.children;if(r=r||o&&o.pre,t.elm=e,w(t.isComment)&&A(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(A(o)&&(A(i=o.hook)&&A(i=i.init)&&i(t,!0),A(i=t.componentInstance)))return c(t,n),!0;if(A(s)){if(A(a))if(e.hasChildNodes())if(A(i=o)&&A(i=i.domProps)&&A(i=i.innerHTML)){if(i!==e.innerHTML)return!1}else{for(var l=!0,u=e.firstChild,h=0;h<a.length;h++){if(!u||!T(u,a[h],n,r)){l=!1;break}u=u.nextSibling}if(!l||u)return!1}else f(t,a,n);if(A(o)){var p=!1;for(var m in o)if(!S(m)){p=!0,d(t,n);break}!p&&o.class&&At(o.class)}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,i){if(!_(t)){var o,c=!1,l=[];if(_(e))c=!0,a(t,l);else{var f=A(e.nodeType);if(!f&&Cr(e,t))y(e,t,l,null,null,i);else{if(f){if(1===e.nodeType&&e.hasAttribute(J)&&(e.removeAttribute(J),n=!0),w(n)&&T(e,t,l))return E(t,l,!0),e;o=e,e=new Re(s.tagName(o).toLowerCase(),{},[],void 0,o)}var d=e.elm,h=s.parentNode(d);if(a(t,l,d._leaveCb?null:h,s.nextSibling(d)),A(t.parent))for(var p=t.parent,v=u(t);p;){for(var b=0;b<r.destroy.length;++b)r.destroy[b](p);if(p.elm=t.elm,v){for(var C=0;C<r.create.length;++C)r.create[C](Ar,p);var S=p.data.hook.insert;if(S.merged)for(var O=1;O<S.fns.length;O++)S.fns[O]()}else _r(p);p=p.parent}A(h)?g([e],0,0):A(e.tag)&&m(e)}}return E(t,l,c),t.elm}A(e)&&m(e)}}({nodeOps:br,modules:[Dr,Lr,Vr,Qr,si,le?{create:Ii,activate:Ii,remove:function(e,t){!0!==e.data.show?xi(e,t):t()}}:{}].concat(Ir)});pe&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&Ui(e,"input")}));var ki={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?Tt(n,"postpatch",(function(){ki.componentUpdated(e,t,n)})):Pi(e,t,n.context),e._vOptions=[].map.call(e.options,Bi)):("textarea"===n.tag||vr(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",Li),e.addEventListener("compositionend",ji),e.addEventListener("change",ji),pe&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Pi(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,Bi);if(i.some((function(e,t){return!X(e,r[t])})))(e.multiple?t.value.some((function(e){return Fi(e,i)})):t.value!==t.oldValue&&Fi(t.value,i))&&Ui(e,"change")}}};function Pi(e,t,n){Di(e,t,n),(he||me)&&setTimeout((function(){Di(e,t,n)}),0)}function Di(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var s,o,a=0,c=e.options.length;a<c;a++)if(o=e.options[a],i)s=K(r,Bi(o))>-1,o.selected!==s&&(o.selected=s);else if(X(Bi(o),r))return void(e.selectedIndex!==a&&(e.selectedIndex=a));i||(e.selectedIndex=-1)}}function Fi(e,t){return t.every((function(t){return!X(t,e)}))}function Bi(e){return"_value"in e?e._value:e.value}function Li(e){e.target.composing=!0}function ji(e){e.target.composing&&(e.target.composing=!1,Ui(e.target,"input"))}function Ui(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function qi(e){return!e.componentInstance||e.data&&e.data.transition?e:qi(e.componentInstance._vnode)}var zi={model:ki,show:{bind:function(e,t,n){var r=t.value,i=(n=qi(n)).data&&n.data.transition,s=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,Oi(n,(function(){e.style.display=s}))):e.style.display=r?s:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=qi(n)).data&&n.data.transition?(n.data.show=!0,r?Oi(n,(function(){e.style.display=e.__vOriginalDisplay})):xi(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}}},Gi={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Hi(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Hi(dn(t.children)):e}function Vi(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var s in i)t[j(s)]=i[s];return t}function $i(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var Wi=function(e){return e.tag||un(e)},Qi=function(e){return"show"===e.name},Yi={name:"transition",props:Gi,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(Wi)).length){0;var r=this.mode;0;var i=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var s=Hi(i);if(!s)return i;if(this._leaving)return $i(e,i);var o="__transition-"+this._uid+"-";s.key=null==s.key?s.isComment?o+"comment":o+s.tag:C(s.key)?0===String(s.key).indexOf(o)?s.key:o+s.key:s.key;var a=(s.data||(s.data={})).transition=Vi(this),c=this._vnode,l=Hi(c);if(s.data.directives&&s.data.directives.some(Qi)&&(s.data.show=!0),l&&l.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(s,l)&&!un(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=V({},a);if("out-in"===r)return this._leaving=!0,Tt(f,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),$i(e,i);if("in-out"===r){if(un(s))return c;var u,d=function(){u()};Tt(a,"afterEnter",d),Tt(a,"enterCancelled",d),Tt(f,"delayLeave",(function(e){u=e}))}}return i}}},Xi=V({tag:String,moveClass:String},Gi);function Ki(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Zi(e){e.data.newPos=e.elm.getBoundingClientRect()}function Ji(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var s=e.elm.style;s.transform=s.WebkitTransform="translate("+r+"px,"+i+"px)",s.transitionDuration="0s"}}delete Xi.mode;var es={Transition:Yi,TransitionGroup:{props:Xi,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=bn(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],s=this.children=[],o=Vi(this),a=0;a<i.length;a++){var c=i[a];if(c.tag)if(null!=c.key&&0!==String(c.key).indexOf("__vlist"))s.push(c),n[c.key]=c,(c.data||(c.data={})).transition=o;else;}if(r){for(var l=[],f=[],u=0;u<r.length;u++){var d=r[u];d.data.transition=o,d.data.pos=d.elm.getBoundingClientRect(),n[d.key]?l.push(d):f.push(d)}this.kept=e(t,null,l),this.removed=f}return e(t,null,s)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(Ki),e.forEach(Zi),e.forEach(Ji),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var n=e.elm,r=n.style;_i(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(mi,n._moveCb=function e(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(mi,e),n._moveCb=null,Ai(n,t))})}})))},methods:{hasMove:function(e,t){if(!ui)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){ci(n,e)})),ai(n,t),n.style.display="none",this.$el.appendChild(n);var r=Ei(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}}};Vn.config.mustUseProp=function(e,t,n){return"value"===n&&er(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Vn.config.isReservedTag=mr,Vn.config.isReservedAttr=Jn,Vn.config.getTagNamespace=function(e){return pr(e)?"svg":"math"===e?"math":void 0},Vn.config.isUnknownElement=function(e){if(!le)return!0;if(mr(e))return!1;if(e=e.toLowerCase(),null!=gr[e])return gr[e];var t=document.createElement(e);return e.indexOf("-")>-1?gr[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:gr[e]=/HTMLUnknownElement/.test(t.toString())},V(Vn.options.directives,zi),V(Vn.options.components,es),Vn.prototype.__patch__=le?Ri:W,Vn.prototype.$mount=function(e,t){return function(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=Pe),wn(e,"beforeMount"),r=function(){e._update(e._render(),n)},new Pn(e,r,W,{before:function(){e._isMounted&&!e._isDestroyed&&wn(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,wn(e,"mounted")),e}(this,e=e&&le?function(e){if("string"==typeof e){return document.querySelector(e)||document.createElement("div")}return e}(e):void 0,t)},le&&setTimeout((function(){ne.devtools&&we&&we.emit("init",Vn)}),0);const ts=Vn;
|
15 |
/**
|
16 |
* vue-class-component v7.2.6
|
17 |
* (c) 2015-present Evan You
|
18 |
* @license MIT
|
19 |
+
*/function ns(e){return(ns="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 rs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function is(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 ss(){return"undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function os(e,t){as(e,t),Object.getOwnPropertyNames(t.prototype).forEach((function(n){as(e.prototype,t.prototype,n)})),Object.getOwnPropertyNames(t).forEach((function(n){as(e,t,n)}))}function as(e,t,n){(n?Reflect.getOwnMetadataKeys(t,n):Reflect.getOwnMetadataKeys(t)).forEach((function(r){var i=n?Reflect.getOwnMetadata(r,t,n):Reflect.getOwnMetadata(r,t);n?Reflect.defineMetadata(r,i,e,n):Reflect.defineMetadata(r,i,e)}))}var cs={__proto__:[]}instanceof Array;function ls(e){return function(t,n,r){var i="function"==typeof t?t:t.constructor;i.__decorators__||(i.__decorators__=[]),"number"!=typeof r&&(r=void 0),i.__decorators__.push((function(t){return e(t,n,r)}))}}function fs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ts.extend({mixins:t})}function us(e,t){var n=t.prototype._init;t.prototype._init=function(){var t=this,n=Object.getOwnPropertyNames(e);if(e.$options.props)for(var r in e.$options.props)e.hasOwnProperty(r)||n.push(r);n.forEach((function(n){Object.defineProperty(t,n,{get:function(){return e[n]},set:function(t){e[n]=t},configurable:!0})}))};var r=new t;t.prototype._init=n;var i={};return Object.keys(r).forEach((function(e){void 0!==r[e]&&(i[e]=r[e])})),i}var ds=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function hs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.name=t.name||e._componentTag||e.name;var n=e.prototype;Object.getOwnPropertyNames(n).forEach((function(e){if("constructor"!==e)if(ds.indexOf(e)>-1)t[e]=n[e];else{var r=Object.getOwnPropertyDescriptor(n,e);void 0!==r.value?"function"==typeof r.value?(t.methods||(t.methods={}))[e]=r.value:(t.mixins||(t.mixins=[])).push({data:function(){return rs({},e,r.value)}}):(r.get||r.set)&&((t.computed||(t.computed={}))[e]={get:r.get,set:r.set})}})),(t.mixins||(t.mixins=[])).push({data:function(){return us(this,e)}});var r=e.__decorators__;r&&(r.forEach((function(e){return e(t)})),delete e.__decorators__);var i=Object.getPrototypeOf(e.prototype),s=i instanceof ts?i.constructor:ts,o=s.extend(t);return ms(o,e,s),ss()&&os(o,e),o}var ps={prototype:!0,arguments:!0,callee:!0,caller:!0};function ms(e,t,n){Object.getOwnPropertyNames(t).forEach((function(r){if(!ps[r]){var i=Object.getOwnPropertyDescriptor(e,r);if(!i||i.configurable){var s,o,a=Object.getOwnPropertyDescriptor(t,r);if(!cs){if("cid"===r)return;var c=Object.getOwnPropertyDescriptor(n,r);if(s=a.value,o=ns(s),null!=s&&("object"===o||"function"===o)&&c&&c.value===a.value)return}0,Object.defineProperty(e,r,a)}}}))}function gs(e){return"function"==typeof e?hs(e):function(t){return hs(t,e)}}gs.registerHooks=function(e){ds.push.apply(ds,is(e))};const vs=gs;var bs="__reactiveInject__";function ys(e){return ls((function(t,n){void 0===t.inject&&(t.inject={}),Array.isArray(t.inject)||(t.inject[n]=e||n)}))}function _s(e){var t=function(){var n=this,r="function"==typeof e?e.call(this):e;for(var i in(r=Object.create(r||null)).__reactiveInject__=Object.create(this.__reactiveInject__||{}),t.managed)r[t.managed[i]]=this[i];var s=function(e){r[t.managedReactive[e]]=o[e],Object.defineProperty(r.__reactiveInject__,t.managedReactive[e],{enumerable:!0,get:function(){return n[e]}})},o=this;for(var i in t.managedReactive)s(i);return r};return t.managed={},t.managedReactive={},t}function As(e){return"function"!=typeof e||!e.managed&&!e.managedReactive}function ws(e){Array.isArray(e.inject)||(e.inject=e.inject||{},e.inject.__reactiveInject__={from:bs,default:{}})}function Cs(e){return ls((function(t,n){var r=t.provide;ws(t),As(r)&&(r=t.provide=_s(r)),r.managed[n]=e||n}))}var Es="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function Ss(e,t,n){if(Es&&!Array.isArray(e)&&"function"!=typeof e&&void 0===e.type){var r=Reflect.getMetadata("design:type",t,n);r!==Object&&(e.type=r)}}function Ts(e){return void 0===e&&(e={}),function(t,n){Ss(e,t,n),ls((function(t,n){(t.props||(t.props={}))[n]=e}))(t,n)}}function Os(e){return"function"==typeof e}let xs=!1;const Ms={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else xs&&console.log("RxJS: Back to a better error behavior. Thank you. <3");xs=e},get useDeprecatedSynchronousErrorHandling(){return xs}};function Ns(e){setTimeout((()=>{throw e}),0)}const Is={closed:!0,next(e){},error(e){if(Ms.useDeprecatedSynchronousErrorHandling)throw e;Ns(e)},complete(){}},Rs=Array.isArray||(e=>e&&"number"==typeof e.length);function ks(e){return null!==e&&"object"==typeof e}const Ps=(()=>{function e(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map(((e,t)=>`${t+1}) ${e.toString()}`)).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e})();class Ds{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:t,_ctorUnsubscribe:n,_unsubscribe:r,_subscriptions:i}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof Ds)t.remove(this);else if(null!==t)for(let e=0;e<t.length;++e){t[e].remove(this)}if(Os(r)){n&&(this._unsubscribe=void 0);try{r.call(this)}catch(t){e=t instanceof Ps?Fs(t.errors):[t]}}if(Rs(i)){let t=-1,n=i.length;for(;++t<n;){const n=i[t];if(ks(n))try{n.unsubscribe()}catch(t){e=e||[],t instanceof Ps?e=e.concat(Fs(t.errors)):e.push(t)}}}if(e)throw new Ps(e)}add(e){let t=e;if(!e)return Ds.EMPTY;switch(typeof e){case"function":t=new Ds(e);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof Ds)){const e=t;t=new Ds,t._subscriptions=[e]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:n}=t;if(null===n)t._parentOrParents=this;else if(n instanceof Ds){if(n===this)return t;t._parentOrParents=[n,this]}else{if(-1!==n.indexOf(this))return t;n.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[t]:r.push(t),t}remove(e){const t=this._subscriptions;if(t){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}function Fs(e){return e.reduce(((e,t)=>e.concat(t instanceof Ps?t.errors:t)),[])}Ds.EMPTY=function(e){return e.closed=!0,e}(new Ds);const Bs="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class Ls extends Ds{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Is;break;case 1:if(!e){this.destination=Is;break}if("object"==typeof e){e instanceof Ls?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new js(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new js(this,e,t,n)}}[Bs](){return this}static create(e,t,n){const r=new Ls(e,t,n);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class js extends Ls{constructor(e,t,n,r){let i;super(),this._parentSubscriber=e;let s=this;Os(t)?i=t:t&&(i=t.next,n=t.error,r=t.complete,t!==Is&&(s=Object.create(t),Os(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=i,this._error=n,this._complete=r}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;Ms.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=Ms;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):Ns(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;Ns(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);Ms.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),Ms.useDeprecatedSynchronousErrorHandling)throw e;Ns(e)}}__tryOrSetError(e,t,n){if(!Ms.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(t){return Ms.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0,!0):(Ns(t),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const Us="function"==typeof Symbol&&Symbol.observable||"@@observable";function qs(e){return e}function zs(e){return 0===e.length?qs:1===e.length?e[0]:function(t){return e.reduce(((e,t)=>t(e)),t)}}class Gs{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const t=new Gs;return t.source=this,t.operator=e,t}subscribe(e,t,n){const{operator:r}=this,i=function(e,t,n){if(e){if(e instanceof Ls)return e;if(e[Bs])return e[Bs]()}return e||t||n?new Ls(e,t,n):new Ls(Is)}(e,t,n);if(r?i.add(r.call(i,this.source)):i.add(this.source||Ms.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),Ms.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i}_trySubscribe(e){try{return this._subscribe(e)}catch(t){Ms.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),!function(e){for(;e;){const{closed:t,destination:n,isStopped:r}=e;if(t||r)return!1;e=n&&n instanceof Ls?n:null}return!0}(e)?console.warn(t):e.error(t)}}forEach(e,t){return new(t=Hs(t))(((t,n)=>{let r;r=this.subscribe((t=>{try{e(t)}catch(e){n(e),r&&r.unsubscribe()}}),n,t)}))}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[Us](){return this}pipe(...e){return 0===e.length?this:zs(e)(this)}toPromise(e){return new(e=Hs(e))(((e,t)=>{let n;this.subscribe((e=>n=e),(e=>t(e)),(()=>e(n)))}))}}function Hs(e){if(e||(e=Ms.Promise||Promise),!e)throw new Error("no Promise impl found");return e}Gs.create=e=>new Gs(e);const Vs=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})();class $s extends Ds{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}class Ws extends Ls{constructor(e){super(e),this.destination=e}}class Qs extends Gs{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Bs](){return new Ws(this)}lift(e){const t=new Ys(this,this);return t.operator=e,t}next(e){if(this.closed)throw new Vs;if(!this.isStopped){const{observers:t}=this,n=t.length,r=t.slice();for(let t=0;t<n;t++)r[t].next(e)}}error(e){if(this.closed)throw new Vs;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:t}=this,n=t.length,r=t.slice();for(let t=0;t<n;t++)r[t].error(e);this.observers.length=0}complete(){if(this.closed)throw new Vs;this.isStopped=!0;const{observers:e}=this,t=e.length,n=e.slice();for(let e=0;e<t;e++)n[e].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new Vs;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new Vs;return this.hasError?(e.error(this.thrownError),Ds.EMPTY):this.isStopped?(e.complete(),Ds.EMPTY):(this.observers.push(e),new $s(this,e))}asObservable(){const e=new Gs;return e.source=this,e}}Qs.create=(e,t)=>new Ys(e,t);class Ys extends Qs{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):Ds.EMPTY}}function Xs(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new Ks(e,t))}}class Ks{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new Zs(e,this.project,this.thisArg))}}class Zs extends Ls{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)}}Object.prototype.toString;function Js(e,t,n,r){return Os(n)&&(r=n,n=void 0),r?Js(e,t,n).pipe(Xs((e=>Rs(e)?r(...e):r(e)))):new Gs((r=>{eo(e,t,(function(e){arguments.length>1?r.next(Array.prototype.slice.call(arguments)):r.next(e)}),r,n)}))}function eo(e,t,n,r,i){let s;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){const r=e;e.addEventListener(t,n,i),s=()=>r.removeEventListener(t,n,i)}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){const r=e;e.on(t,n),s=()=>r.off(t,n)}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){const r=e;e.addListener(t,n),s=()=>r.removeListener(t,n)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let s=0,o=e.length;s<o;s++)eo(e[s],t,n,r,i)}r.add(s)}function to(){}const no=new Gs(to);function ro(){return function(e){return e.lift(new io(e))}}class io{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const r=new so(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}class so extends Ls{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}class oo extends Gs{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new Ds,e.add(this.source.subscribe(new co(this.getSubject(),this))),e.closed&&(this._connection=null,e=Ds.EMPTY)),e}refCount(){return ro()(this)}}const ao=(()=>{const e=oo.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}})();class co extends Ws{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function lo(e,t){return function(n){let r;if(r="function"==typeof e?e:function(){return e},"function"==typeof t)return n.lift(new fo(r,t));const i=Object.create(n,ao);return i.source=n,i.subjectFactory=r,i}}class fo{constructor(e,t){this.subjectFactory=e,this.selector=t}call(e,t){const{selector:n}=this,r=this.subjectFactory(),i=n(r).subscribe(e);return i.add(t.subscribe(r)),i}}function uo(){return new Qs}function ho(){return e=>ro()(lo(uo)(e))}var po,mo=function(){};function go(e){return e&&"function"==typeof e.next}function vo(e){return[e.arg].concat(Object.keys(e.modifiers)).join(":")}var bo={created:function(){var e=this,t=e.$options.domStreams;t&&t.forEach((function(t){e[t]=new Qs}));var n=e.$options.observableMethods;n&&(Array.isArray(n)?n.forEach((function(t){e[t+"$"]=e.$createObservableMethod(t)})):Object.keys(n).forEach((function(t){e[n[t]]=e.$createObservableMethod(t)})));var r=e.$options.subscriptions;"function"==typeof r&&(r=r.call(e)),r&&(e.$observables={},e._subscription=new Ds,Object.keys(r).forEach((function(t){!function(e,t,n){t in e?e[t]=n:po.util.defineReactive(e,t,n)}(e,t,void 0),function(e){return e&&"function"==typeof e.subscribe}(e.$observables[t]=r[t])?e._subscription.add(r[t].subscribe((function(n){e[t]=n}),(function(e){throw e}))):mo('Invalid Observable found in subscriptions option with key "'+t+'".',e)})))},beforeDestroy:function(){this._subscription&&this._subscription.unsubscribe()}},yo={bind:function(e,t,n){var r=t.value,i=t.arg,s=t.expression,o=t.modifiers;if(go(r))r={subject:r};else if(!r||!go(r.subject))return void mo('Invalid Subject found in directive with key "'+s+'".'+s+" should be an instance of Subject or have the type { subject: Subject, data: any }.",n.context);var a={stop:function(e){return e.stopPropagation()},prevent:function(e){return e.preventDefault()}},c=Object.keys(a).filter((function(e){return o[e]})),l=r.subject,f=(l.next||l.onNext).bind(l);if(!o.native&&n.componentInstance)r.subscription=n.componentInstance.$eventToObservable(i).subscribe((function(e){c.forEach((function(t){return a[t](e)})),f({event:e,data:r.data})}));else{var u=r.options?[e,i,r.options]:[e,i];r.subscription=Js.apply(void 0,u).subscribe((function(e){c.forEach((function(t){return a[t](e)})),f({event:e,data:r.data})}))}(e._rxHandles||(e._rxHandles={}))[vo(t)]=r},update:function(e,t){var n=t.value,r=e._rxHandles&&e._rxHandles[vo(t)];r&&n&&go(n.subject)&&(r.data=n.data)},unbind:function(e,t){var n=vo(t),r=e._rxHandles&&e._rxHandles[n];r&&(r.subscription&&r.subscription.unsubscribe(),e._rxHandles[n]=null)}};function _o(e,t){var n=this;return new Gs((function(r){var i,s=function(){i=n.$watch(e,(function(e,t){r.next({oldValue:t,newValue:e})}),t)};return n._data?s():n.$once("hook:created",s),new Ds((function(){i&&i()}))}))}function Ao(e,t){if("undefined"==typeof window)return no;var n=this,r=document.documentElement;return new Gs((function(i){function s(t){if(n.$el){if(null===e&&n.$el===t.target)return i.next(t);for(var r=n.$el.querySelectorAll(e),s=t.target,o=0,a=r.length;o<a;o++)if(r[o]===s)return i.next(t)}}return r.addEventListener(t,s),new Ds((function(){r.removeEventListener(t,s)}))}))}function wo(e,t,n,r){var i=e.subscribe(t,n,r);return(this._subscription||(this._subscription=new Ds)).add(i),i}function Co(e){var t=this,n=Array.isArray(e)?e:[e];return new Gs((function(e){var r=n.map((function(n){var r=function(t){return e.next({name:n,msg:t})};return t.$on(n,r),{name:n,callback:r}}));return function(){r.forEach((function(e){return t.$off(e.name,e.callback)}))}}))}function Eo(e,t){var n=this;void 0!==n[e]&&mo("Potential bug: Method "+e+" already defined on vm and has been overwritten by $createObservableMethod."+String(n[e]),n);return new Gs((function(r){return n[e]=function(){var e=Array.from(arguments);t?(e.push(this),r.next(e)):e.length<=1?r.next(e[0]):r.next(e)},function(){delete n[e]}})).pipe(ho())}function So(e){mo=(po=e).util.warn||mo,e.mixin(bo),e.directive("stream",yo),e.prototype.$watchAsObservable=_o,e.prototype.$fromDOMEvent=Ao,e.prototype.$subscribeTo=wo,e.prototype.$eventToObservable=Co,e.prototype.$createObservableMethod=Eo,e.config.optionMergeStrategies.subscriptions=e.config.optionMergeStrategies.data}"undefined"!=typeof Vue&&Vue.use(So);const To=So;let Oo=!0,xo=!0;function Mo(e,t,n){const r=e.match(t);return r&&r.length>=n&&parseInt(r[n],10)}function No(e,t,n){if(!e.RTCPeerConnection)return;const r=e.RTCPeerConnection.prototype,i=r.addEventListener;r.addEventListener=function(e,r){if(e!==t)return i.apply(this,arguments);const s=e=>{const t=n(e);t&&(r.handleEvent?r.handleEvent(t):r(t))};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(r,s),i.apply(this,[e,s])};const s=r.removeEventListener;r.removeEventListener=function(e,n){if(e!==t||!this._eventMap||!this._eventMap[t])return s.apply(this,arguments);if(!this._eventMap[t].has(n))return s.apply(this,arguments);const r=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,s.apply(this,[e,r])},Object.defineProperty(r,"on"+t,{get(){return this["_on"+t]},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 Io(e){return"boolean"!=typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(Oo=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function Ro(e){return"boolean"!=typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(xo=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function ko(){if("object"==typeof window){if(Oo)return;"undefined"!=typeof console&&"function"==typeof console.log&&console.log.apply(console,arguments)}}function Po(e,t){xo&&console.warn(e+" is deprecated, please use "+t+" instead.")}function Do(e){const t={browser:null,version:null};if(void 0===e||!e.navigator)return t.browser="Not a browser.",t;const{navigator:n}=e;if(n.mozGetUserMedia)t.browser="firefox",t.version=Mo(n.userAgent,/Firefox\/(\d+)\./,1);else if(n.webkitGetUserMedia||!1===e.isSecureContext&&e.webkitRTCPeerConnection&&!e.RTCIceGatherer)t.browser="chrome",t.version=Mo(n.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(n.mediaDevices&&n.userAgent.match(/Edge\/(\d+).(\d+)$/))t.browser="edge",t.version=Mo(n.userAgent,/Edge\/(\d+).(\d+)$/,2);else{if(!e.RTCPeerConnection||!n.userAgent.match(/AppleWebKit\/(\d+)\./))return t.browser="Not a supported browser.",t;t.browser="safari",t.version=Mo(n.userAgent,/AppleWebKit\/(\d+)\./,1),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype}return t}function Fo(e){return"[object Object]"===Object.prototype.toString.call(e)}function Bo(e){return Fo(e)?Object.keys(e).reduce((function(t,n){const r=Fo(e[n]),i=r?Bo(e[n]):e[n],s=r&&!Object.keys(i).length;return void 0===i||s?t:Object.assign(t,{[n]:i})}),{}):e}function Lo(e,t,n){t&&!n.has(t.id)&&(n.set(t.id,t),Object.keys(t).forEach((r=>{r.endsWith("Id")?Lo(e,e.get(t[r]),n):r.endsWith("Ids")&&t[r].forEach((t=>{Lo(e,e.get(t),n)}))})))}function jo(e,t,n){const r=n?"outbound-rtp":"inbound-rtp",i=new Map;if(null===t)return i;const s=[];return e.forEach((e=>{"track"===e.type&&e.trackIdentifier===t.id&&s.push(e)})),s.forEach((t=>{e.forEach((n=>{n.type===r&&n.trackId===t.id&&Lo(e,n,i)}))})),i}const Uo=ko;function qo(e){const t=e&&e.navigator;if(!t.mediaDevices)return;const n=Do(e),r=function(e){if("object"!=typeof e||e.mandatory||e.optional)return e;const t={};return Object.keys(e).forEach((n=>{if("require"===n||"advanced"===n||"mediaSource"===n)return;const r="object"==typeof e[n]?e[n]:{ideal:e[n]};void 0!==r.exact&&"number"==typeof r.exact&&(r.min=r.max=r.exact);const i=function(e,t){return e?e+t.charAt(0).toUpperCase()+t.slice(1):"deviceId"===t?"sourceId":t};if(void 0!==r.ideal){t.optional=t.optional||[];let e={};"number"==typeof r.ideal?(e[i("min",n)]=r.ideal,t.optional.push(e),e={},e[i("max",n)]=r.ideal,t.optional.push(e)):(e[i("",n)]=r.ideal,t.optional.push(e))}void 0!==r.exact&&"number"!=typeof r.exact?(t.mandatory=t.mandatory||{},t.mandatory[i("",n)]=r.exact):["min","max"].forEach((e=>{void 0!==r[e]&&(t.mandatory=t.mandatory||{},t.mandatory[i(e,n)]=r[e])}))})),e.advanced&&(t.optional=(t.optional||[]).concat(e.advanced)),t},i=function(e,i){if(n.version>=61)return i(e);if((e=JSON.parse(JSON.stringify(e)))&&"object"==typeof e.audio){const t=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])};t((e=JSON.parse(JSON.stringify(e))).audio,"autoGainControl","googAutoGainControl"),t(e.audio,"noiseSuppression","googNoiseSuppression"),e.audio=r(e.audio)}if(e&&"object"==typeof e.video){let s=e.video.facingMode;s=s&&("object"==typeof s?s:{ideal:s});const o=n.version<66;if(s&&("user"===s.exact||"environment"===s.exact||"user"===s.ideal||"environment"===s.ideal)&&(!t.mediaDevices.getSupportedConstraints||!t.mediaDevices.getSupportedConstraints().facingMode||o)){let n;if(delete e.video.facingMode,"environment"===s.exact||"environment"===s.ideal?n=["back","rear"]:"user"!==s.exact&&"user"!==s.ideal||(n=["front"]),n)return t.mediaDevices.enumerateDevices().then((t=>{let o=(t=t.filter((e=>"videoinput"===e.kind))).find((e=>n.some((t=>e.label.toLowerCase().includes(t)))));return!o&&t.length&&n.includes("back")&&(o=t[t.length-1]),o&&(e.video.deviceId=s.exact?{exact:o.deviceId}:{ideal:o.deviceId}),e.video=r(e.video),Uo("chrome: "+JSON.stringify(e)),i(e)}))}e.video=r(e.video)}return Uo("chrome: "+JSON.stringify(e)),i(e)},s=function(e){return n.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(){return this.name+(this.message&&": ")+this.message}}};if(t.getUserMedia=function(e,n,r){i(e,(e=>{t.webkitGetUserMedia(e,n,(e=>{r&&r(s(e))}))}))}.bind(t),t.mediaDevices.getUserMedia){const e=t.mediaDevices.getUserMedia.bind(t.mediaDevices);t.mediaDevices.getUserMedia=function(t){return i(t,(t=>e(t).then((e=>{if(t.audio&&!e.getAudioTracks().length||t.video&&!e.getVideoTracks().length)throw e.getTracks().forEach((e=>{e.stop()})),new DOMException("","NotFoundError");return e}),(e=>Promise.reject(s(e))))))}}}function zo(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((t=>{const r=n.video&&n.video.width,i=n.video&&n.video.height,s=n.video&&n.video.frameRate;return n.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:t,maxFrameRate:s||3}},r&&(n.video.mandatory.maxWidth=r),i&&(n.video.mandatory.maxHeight=i),e.navigator.mediaDevices.getUserMedia(n)}))}:console.error("shimGetDisplayMedia: getSourceId argument is not a function"))}function Go(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function Ho(e){if("object"==typeof e&&e.RTCPeerConnection&&!("ontrack"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(e){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=e)},enumerable:!0,configurable:!0});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=t=>{t.stream.addEventListener("addtrack",(n=>{let r;r=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find((e=>e.track&&e.track.id===n.track.id)):{track:n.track};const i=new Event("track");i.track=n.track,i.receiver=r,i.transceiver={receiver:r},i.streams=[t.stream],this.dispatchEvent(i)})),t.stream.getTracks().forEach((n=>{let r;r=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find((e=>e.track&&e.track.id===n.id)):{track:n};const i=new Event("track");i.track=n,i.receiver=r,i.transceiver={receiver:r},i.streams=[t.stream],this.dispatchEvent(i)}))},this.addEventListener("addstream",this._ontrackpoly)),t.apply(this,arguments)}}else No(e,"track",(e=>(e.transceiver||Object.defineProperty(e,"transceiver",{value:{receiver:e.receiver}}),e)))}function Vo(e){if("object"==typeof e&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){const t=function(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()};const n=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,r){let i=n.apply(this,arguments);return i||(i=t(this,e),this._senders.push(i)),i};const r=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){r.apply(this,arguments);const t=this._senders.indexOf(e);-1!==t&&this._senders.splice(t,1)}}const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){this._senders=this._senders||[],n.apply(this,[e]),e.getTracks().forEach((e=>{this._senders.push(t(this,e))}))};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){this._senders=this._senders||[],r.apply(this,[e]),e.getTracks().forEach((e=>{const t=this._senders.find((t=>t.track===e));t&&this._senders.splice(this._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)){const t=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function $o(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[e,n,r]=arguments;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,[]);const i=function(e){const t={};return e.result().forEach((e=>{const n={id:e.id,timestamp:e.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[e.type]||e.type};e.names().forEach((t=>{n[t]=e.stat(t)})),t[n.id]=n})),t},s=function(e){return new Map(Object.keys(e).map((t=>[t,e[t]])))};if(arguments.length>=2){const r=function(e){n(s(i(e)))};return t.apply(this,[r,e])}return new Promise(((e,n)=>{t.apply(this,[function(t){e(s(i(t)))},n])})).then(n,r)}}function Wo(e){if(!("object"==typeof e&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver))return;if(!("getStats"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e});const n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){const e=n.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){const e=this;return this._pc.getStats().then((t=>jo(t,e.track,!0)))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e}),No(e,"track",(e=>(e.receiver._pc=e.srcElement,e))),e.RTCRtpReceiver.prototype.getStats=function(){const e=this;return this._pc.getStats().then((t=>jo(t,e.track,!1)))}}if(!("getStats"in e.RTCRtpSender.prototype)||!("getStats"in e.RTCRtpReceiver.prototype))return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){const e=arguments[0];let t,n,r;return this.getSenders().forEach((n=>{n.track===e&&(t?r=!0:t=n)})),this.getReceivers().forEach((t=>(t.track===e&&(n?r=!0:n=t),t.track===e))),r||t&&n?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):t?t.getStats():n?n.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return t.apply(this,arguments)}}function Qo(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map((e=>this._shimmedLocalStreams[e][0]))};const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,n){if(!n)return t.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};const r=t.apply(this,arguments);return this._shimmedLocalStreams[n.id]?-1===this._shimmedLocalStreams[n.id].indexOf(r)&&this._shimmedLocalStreams[n.id].push(r):this._shimmedLocalStreams[n.id]=[n,r],r};const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){this._shimmedLocalStreams=this._shimmedLocalStreams||{},e.getTracks().forEach((e=>{if(this.getSenders().find((t=>t.track===e)))throw new DOMException("Track already exists.","InvalidAccessError")}));const t=this.getSenders();n.apply(this,arguments);const r=this.getSenders().filter((e=>-1===t.indexOf(e)));this._shimmedLocalStreams[e.id]=[e].concat(r)};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[e.id],r.apply(this,arguments)};const i=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},e&&Object.keys(this._shimmedLocalStreams).forEach((t=>{const n=this._shimmedLocalStreams[t].indexOf(e);-1!==n&&this._shimmedLocalStreams[t].splice(n,1),1===this._shimmedLocalStreams[t].length&&delete this._shimmedLocalStreams[t]})),i.apply(this,arguments)}}function Yo(e){if(!e.RTCPeerConnection)return;const t=Do(e);if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return Qo(e);const n=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){const e=n.apply(this);return this._reverseStreams=this._reverseStreams||{},e.map((e=>this._reverseStreams[e.id]))};const r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(t){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},t.getTracks().forEach((e=>{if(this.getSenders().find((t=>t.track===e)))throw new DOMException("Track already exists.","InvalidAccessError")})),!this._reverseStreams[t.id]){const n=new e.MediaStream(t.getTracks());this._streams[t.id]=n,this._reverseStreams[n.id]=t,t=n}r.apply(this,[t])};const i=e.RTCPeerConnection.prototype.removeStream;function s(e,t){let n=t.sdp;return Object.keys(e._reverseStreams||[]).forEach((t=>{const r=e._reverseStreams[t],i=e._streams[r.id];n=n.replace(new RegExp(i.id,"g"),r.id)})),new RTCSessionDescription({type:t.type,sdp:n})}function o(e,t){let n=t.sdp;return Object.keys(e._reverseStreams||[]).forEach((t=>{const r=e._reverseStreams[t],i=e._streams[r.id];n=n.replace(new RegExp(r.id,"g"),i.id)})),new RTCSessionDescription({type:t.type,sdp:n})}e.RTCPeerConnection.prototype.removeStream=function(e){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},i.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){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");const r=[].slice.call(arguments,1);if(1!==r.length||!r[0].getTracks().find((e=>e===t)))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");const i=this.getSenders().find((e=>e.track===t));if(i)throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const s=this._streams[n.id];if(s)s.addTrack(t),Promise.resolve().then((()=>{this.dispatchEvent(new Event("negotiationneeded"))}));else{const r=new e.MediaStream([t]);this._streams[n.id]=r,this._reverseStreams[r.id]=n,this.addStream(r)}return this.getSenders().find((e=>e.track===t))},["createOffer","createAnswer"].forEach((function(t){const n=e.RTCPeerConnection.prototype[t],r={[t](){const e=arguments;return arguments.length&&"function"==typeof arguments[0]?n.apply(this,[t=>{const n=s(this,t);e[0].apply(null,[n])},t=>{e[1]&&e[1].apply(null,t)},arguments[2]]):n.apply(this,arguments).then((e=>s(this,e)))}};e.RTCPeerConnection.prototype[t]=r[t]}));const 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)};const c=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get(){const e=c.get.apply(this);return""===e.type?e:s(this,e)}}),e.RTCPeerConnection.prototype.removeTrack=function(e){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");let t;this._streams=this._streams||{},Object.keys(this._streams).forEach((n=>{this._streams[n].getTracks().find((t=>e.track===t))&&(t=this._streams[n])})),t&&(1===t.getTracks().length?this.removeStream(this._reverseStreams[t.id]):t.removeTrack(e.track),this.dispatchEvent(new Event("negotiationneeded")))}}function Xo(e){const t=Do(e);if(!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),!e.RTCPeerConnection)return;const n=0===e.RTCPeerConnection.prototype.addIceCandidate.length;t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){const n=e.RTCPeerConnection.prototype[t],r={[t](){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments)}};e.RTCPeerConnection.prototype[t]=r[t]}));const r=e.RTCPeerConnection.prototype.addIceCandidate;e.RTCPeerConnection.prototype.addIceCandidate=function(){return n||arguments[0]?t.version<78&&arguments[0]&&""===arguments[0].candidate?Promise.resolve():r.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())}}function Ko(e){const t=Do(e);No(e,"negotiationneeded",(e=>{const n=e.target;if(!(t.version<72||n.getConfiguration&&"plan-b"===n.getConfiguration().sdpSemantics)||"stable"===n.signalingState)return e}))}var Zo=n(2539),Jo=n.n(Zo);function ea(e){const t=e&&e.navigator,n=t.mediaDevices.getUserMedia.bind(t.mediaDevices);t.mediaDevices.getUserMedia=function(e){return n(e).catch((e=>Promise.reject(function(e){return{name:{PermissionDeniedError:"NotAllowedError"}[e.name]||e.name,message:e.message,constraint:e.constraint,toString(){return this.name}}}(e))))}}function ta(e){"getDisplayMedia"in e.navigator&&e.navigator.mediaDevices&&(e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||(e.navigator.mediaDevices.getDisplayMedia=e.navigator.getDisplayMedia.bind(e.navigator)))}function na(e){const t=Do(e);if(e.RTCIceGatherer&&(e.RTCIceCandidate||(e.RTCIceCandidate=function(e){return e}),e.RTCSessionDescription||(e.RTCSessionDescription=function(e){return e}),t.version<15025)){const t=Object.getOwnPropertyDescriptor(e.MediaStreamTrack.prototype,"enabled");Object.defineProperty(e.MediaStreamTrack.prototype,"enabled",{set(e){t.set.call(this,e);const n=new Event("enabled");n.enabled=e,this.dispatchEvent(n)}})}e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)&&Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=new e.RTCDtmfSender(this):"video"===this.track.kind&&(this._dtmf=null)),this._dtmf}}),e.RTCDtmfSender&&!e.RTCDTMFSender&&(e.RTCDTMFSender=e.RTCDtmfSender);const n=Jo()(e,t.version);e.RTCPeerConnection=function(e){return e&&e.iceServers&&(e.iceServers=function(e,t){let n=!1;return(e=JSON.parse(JSON.stringify(e))).filter((e=>{if(e&&(e.urls||e.url)){let t=e.urls||e.url;e.url&&!e.urls&&Po("RTCIceServer.url","RTCIceServer.urls");const r="string"==typeof t;return r&&(t=[t]),t=t.filter((e=>{if(0===e.indexOf("stun:"))return!1;const t=e.startsWith("turn")&&!e.startsWith("turn:[")&&e.includes("transport=udp");return t&&!n?(n=!0,!0):t&&!n})),delete e.url,e.urls=r?t[0]:t,!!t.length}}))}(e.iceServers,t.version),ko("ICE servers after filtering:",e.iceServers)),new n(e)},e.RTCPeerConnection.prototype=n.prototype}function ra(e){e.RTCRtpSender&&!("replaceTrack"in e.RTCRtpSender.prototype)&&(e.RTCRtpSender.prototype.replaceTrack=e.RTCRtpSender.prototype.setTrack)}function ia(e){const t=Do(e),n=e&&e.navigator,r=e&&e.MediaStreamTrack;if(n.getUserMedia=function(e,t,r){Po("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),n.mediaDevices.getUserMedia(e).then(t,r)},!(t.version>55&&"autoGainControl"in n.mediaDevices.getSupportedConstraints())){const e=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])},t=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)),e(n.audio,"autoGainControl","mozAutoGainControl"),e(n.audio,"noiseSuppression","mozNoiseSuppression")),t(n)},r&&r.prototype.getSettings){const t=r.prototype.getSettings;r.prototype.getSettings=function(){const n=t.apply(this,arguments);return e(n,"mozAutoGainControl","autoGainControl"),e(n,"mozNoiseSuppression","noiseSuppression"),n}}if(r&&r.prototype.applyConstraints){const t=r.prototype.applyConstraints;r.prototype.applyConstraints=function(n){return"audio"===this.kind&&"object"==typeof n&&(n=JSON.parse(JSON.stringify(n)),e(n,"autoGainControl","mozAutoGainControl"),e(n,"noiseSuppression","mozNoiseSuppression")),t.apply(this,[n])}}}}function sa(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&(e.navigator.mediaDevices.getDisplayMedia=function(n){if(!n||!n.video){const e=new DOMException("getDisplayMedia without video constraints is undefined");return e.name="NotFoundError",e.code=8,Promise.reject(e)}return!0===n.video?n.video={mediaSource:t}:n.video.mediaSource=t,e.navigator.mediaDevices.getUserMedia(n)})}function oa(e){"object"==typeof e&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function aa(e){const t=Do(e);if("object"!=typeof e||!e.RTCPeerConnection&&!e.mozRTCPeerConnection)return;if(!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){const n=e.RTCPeerConnection.prototype[t],r={[t](){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments)}};e.RTCPeerConnection.prototype[t]=r[t]})),t.version<68){const t=e.RTCPeerConnection.prototype.addIceCandidate;e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?arguments[0]&&""===arguments[0].candidate?Promise.resolve():t.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())}}const n={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},r=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[e,i,s]=arguments;return r.apply(this,[e||null]).then((e=>{if(t.version<53&&!i)try{e.forEach((e=>{e.type=n[e.type]||e.type}))}catch(t){if("TypeError"!==t.name)throw t;e.forEach(((t,r)=>{e.set(r,Object.assign({},t,{type:n[t.type]||t.type}))}))}return e})).then(i,s)}}function ca(e){if("object"!=typeof e||!e.RTCPeerConnection||!e.RTCRtpSender)return;if(e.RTCRtpSender&&"getStats"in e.RTCRtpSender.prototype)return;const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e});const n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){const 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 la(e){if("object"!=typeof e||!e.RTCPeerConnection||!e.RTCRtpSender)return;if(e.RTCRtpSender&&"getStats"in e.RTCRtpReceiver.prototype)return;const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e}),No(e,"track",(e=>(e.receiver._pc=e.srcElement,e))),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function fa(e){e.RTCPeerConnection&&!("removeStream"in e.RTCPeerConnection.prototype)&&(e.RTCPeerConnection.prototype.removeStream=function(e){Po("removeStream","removeTrack"),this.getSenders().forEach((t=>{t.track&&e.getTracks().includes(t.track)&&this.removeTrack(t)}))})}function ua(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function da(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.addTransceiver;t&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];const e=arguments[1],n=e&&"sendEncodings"in e;n&&e.sendEncodings.forEach((e=>{if("rid"in e){if(!/^[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")}));const r=t.apply(this,arguments);if(n){const{sender:t}=r,n=t.getParameters();(!("encodings"in n)||1===n.encodings.length&&0===Object.keys(n.encodings[0]).length)&&(n.encodings=e.sendEncodings,t.sendEncodings=e.sendEncodings,this.setParametersPromises.push(t.setParameters(n).then((()=>{delete t.sendEncodings})).catch((()=>{delete t.sendEncodings}))))}return r})}function ha(e){if("object"!=typeof e||!e.RTCRtpSender)return;const t=e.RTCRtpSender.prototype.getParameters;t&&(e.RTCRtpSender.prototype.getParameters=function(){const e=t.apply(this,arguments);return"encodings"in e||(e.encodings=[].concat(this.sendEncodings||[{}])),e})}function pa(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then((()=>t.apply(this,arguments))).finally((()=>{this.setParametersPromises=[]})):t.apply(this,arguments)}}function ma(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then((()=>t.apply(this,arguments))).finally((()=>{this.setParametersPromises=[]})):t.apply(this,arguments)}}function ga(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)){const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(e){this._localStreams||(this._localStreams=[]),this._localStreams.includes(e)||this._localStreams.push(e),e.getAudioTracks().forEach((n=>t.call(this,n,e))),e.getVideoTracks().forEach((n=>t.call(this,n,e)))},e.RTCPeerConnection.prototype.addTrack=function(e,...n){return n&&n.forEach((e=>{this._localStreams?this._localStreams.includes(e)||this._localStreams.push(e):this._localStreams=[e]})),t.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(e){this._localStreams||(this._localStreams=[]);const t=this._localStreams.indexOf(e);if(-1===t)return;this._localStreams.splice(t,1);const n=e.getTracks();this.getSenders().forEach((e=>{n.includes(e.track)&&this.removeTrack(e)}))})}}function va(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(){return this._onaddstream},set(e){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=e),this.addEventListener("track",this._onaddstreampoly=e=>{e.streams.forEach((e=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(e))return;this._remoteStreams.push(e);const t=new Event("addstream");t.stream=e,this.dispatchEvent(t)}))})}});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){const e=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(t){t.streams.forEach((t=>{if(e._remoteStreams||(e._remoteStreams=[]),e._remoteStreams.indexOf(t)>=0)return;e._remoteStreams.push(t);const n=new Event("addstream");n.stream=t,e.dispatchEvent(n)}))}),t.apply(e,arguments)}}}function ba(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype,n=t.createOffer,r=t.createAnswer,i=t.setLocalDescription,s=t.setRemoteDescription,o=t.addIceCandidate;t.createOffer=function(e,t){const r=arguments.length>=2?arguments[2]:arguments[0],i=n.apply(this,[r]);return t?(i.then(e,t),Promise.resolve()):i},t.createAnswer=function(e,t){const n=arguments.length>=2?arguments[2]:arguments[0],i=r.apply(this,[n]);return t?(i.then(e,t),Promise.resolve()):i};let a=function(e,t,n){const r=i.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r};t.setLocalDescription=a,a=function(e,t,n){const r=s.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r},t.setRemoteDescription=a,a=function(e,t,n){const r=o.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r},t.addIceCandidate=a}function ya(e){const t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){const e=t.mediaDevices,n=e.getUserMedia.bind(e);t.mediaDevices.getUserMedia=e=>n(_a(e))}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=function(e,n,r){t.mediaDevices.getUserMedia(e).then(n,r)}.bind(t))}function _a(e){return e&&void 0!==e.video?Object.assign({},e,{video:Bo(e.video)}):e}function Aa(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection;e.RTCPeerConnection=function(e,n){if(e&&e.iceServers){const t=[];for(let n=0;n<e.iceServers.length;n++){let r=e.iceServers[n];!r.hasOwnProperty("urls")&&r.hasOwnProperty("url")?(Po("RTCIceServer.url","RTCIceServer.urls"),r=JSON.parse(JSON.stringify(r)),r.urls=r.url,delete r.url,t.push(r)):t.push(e.iceServers[n])}e.iceServers=t}return new t(e,n)},e.RTCPeerConnection.prototype=t.prototype,"generateCertificate"in t&&Object.defineProperty(e.RTCPeerConnection,"generateCertificate",{get:()=>t.generateCertificate})}function wa(e){"object"==typeof e&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function Ca(e){const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(e){if(e){void 0!==e.offerToReceiveAudio&&(e.offerToReceiveAudio=!!e.offerToReceiveAudio);const t=this.getTransceivers().find((e=>"audio"===e.receiver.track.kind));!1===e.offerToReceiveAudio&&t?"sendrecv"===t.direction?t.setDirection?t.setDirection("sendonly"):t.direction="sendonly":"recvonly"===t.direction&&(t.setDirection?t.setDirection("inactive"):t.direction="inactive"):!0!==e.offerToReceiveAudio||t||this.addTransceiver("audio"),void 0!==e.offerToReceiveVideo&&(e.offerToReceiveVideo=!!e.offerToReceiveVideo);const n=this.getTransceivers().find((e=>"video"===e.receiver.track.kind));!1===e.offerToReceiveVideo&&n?"sendrecv"===n.direction?n.setDirection?n.setDirection("sendonly"):n.direction="sendonly":"recvonly"===n.direction&&(n.setDirection?n.setDirection("inactive"):n.direction="inactive"):!0!==e.offerToReceiveVideo||n||this.addTransceiver("video")}return t.apply(this,arguments)}}function Ea(e){"object"!=typeof e||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}var Sa=n(2699),Ta=n.n(Sa);function Oa(e){if(!e.RTCIceCandidate||e.RTCIceCandidate&&"foundation"in e.RTCIceCandidate.prototype)return;const 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){const n=new t(e),r=Ta().parseCandidate(e.candidate),i=Object.assign(n,r);return i.toJSON=function(){return{candidate:i.candidate,sdpMid:i.sdpMid,sdpMLineIndex:i.sdpMLineIndex,usernameFragment:i.usernameFragment}},i}return new t(e)},e.RTCIceCandidate.prototype=t.prototype,No(e,"icecandidate",(t=>(t.candidate&&Object.defineProperty(t,"candidate",{value:new e.RTCIceCandidate(t.candidate),writable:"false"}),t)))}function xa(e){if(!e.RTCPeerConnection)return;const t=Do(e);"sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get(){return void 0===this._sctp?null:this._sctp}});const n=function(e){if(!e||!e.sdp)return!1;const t=Ta().splitSections(e.sdp);return t.shift(),t.some((e=>{const t=Ta().parseMLine(e);return t&&"application"===t.kind&&-1!==t.protocol.indexOf("SCTP")}))},r=function(e){const t=e.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(null===t||t.length<2)return-1;const n=parseInt(t[1],10);return n!=n?-1:n},i=function(e){let n=65536;return"firefox"===t.browser&&(n=t.version<57?-1===e?16384:2147483637:t.version<60?57===t.version?65535:65536:2147483637),n},s=function(e,n){let r=65536;"firefox"===t.browser&&57===t.version&&(r=65535);const i=Ta().matchPrefix(e.sdp,"a=max-message-size:");return i.length>0?r=parseInt(i[0].substr(19),10):"firefox"===t.browser&&-1!==n&&(r=2147483637),r},o=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,"chrome"===t.browser&&t.version>=76){const{sdpSemantics:e}=this.getConfiguration();"plan-b"===e&&Object.defineProperty(this,"sctp",{get(){return void 0===this._sctp?null:this._sctp},enumerable:!0,configurable:!0})}if(n(arguments[0])){const e=r(arguments[0]),t=i(e),n=s(arguments[0],e);let o;o=0===t&&0===n?Number.POSITIVE_INFINITY:0===t||0===n?Math.max(t,n):Math.min(t,n);const a={};Object.defineProperty(a,"maxMessageSize",{get:()=>o}),this._sctp=a}return o.apply(this,arguments)}}function Ma(e){if(!e.RTCPeerConnection||!("createDataChannel"in e.RTCPeerConnection.prototype))return;function t(e,t){const n=e.send;e.send=function(){const r=arguments[0],i=r.length||r.size||r.byteLength;if("open"===e.readyState&&t.sctp&&i>t.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+t.sctp.maxMessageSize+" bytes)");return n.apply(e,arguments)}}const n=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){const e=n.apply(this,arguments);return t(e,this),e},No(e,"datachannel",(e=>(t(e.channel,e.target),e)))}function Na(e){if(!e.RTCPeerConnection||"connectionState"in e.RTCPeerConnection.prototype)return;const t=e.RTCPeerConnection.prototype;Object.defineProperty(t,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(t,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},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((e=>{const n=t[e];t[e]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=e=>{const t=e.target;if(t._lastConnectionState!==t.connectionState){t._lastConnectionState=t.connectionState;const n=new Event("connectionstatechange",e);t.dispatchEvent(n)}return e},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),n.apply(this,arguments)}}))}function Ia(e){if(!e.RTCPeerConnection)return;const t=Do(e);if("chrome"===t.browser&&t.version>=71)return;if("safari"===t.browser&&t.version>=605)return;const n=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(e){return e&&e.sdp&&-1!==e.sdp.indexOf("\na=extmap-allow-mixed")&&(e.sdp=e.sdp.split("\n").filter((e=>"a=extmap-allow-mixed"!==e.trim())).join("\n")),n.apply(this,arguments)}}!function({window:e}={},t={shimChrome:!0,shimFirefox:!0,shimEdge:!0,shimSafari:!0}){const n=ko,c=Do(e),l={browserDetails:c,commonShim:a,extractVersion:Mo,disableLog:Io,disableWarnings:Ro};switch(c.browser){case"chrome":if(!r||!Xo||!t.shimChrome)return n("Chrome shim is not included in this adapter release."),l;if(null===c.version)return n("Chrome shim can not determine version, not shimming."),l;n("adapter.js shimming chrome."),l.browserShim=r,qo(e),Go(e),Xo(e),Ho(e),Yo(e),Vo(e),$o(e),Wo(e),Ko(e),Oa(e),Na(e),xa(e),Ma(e),Ia(e);break;case"firefox":if(!s||!aa||!t.shimFirefox)return n("Firefox shim is not included in this adapter release."),l;n("adapter.js shimming firefox."),l.browserShim=s,ia(e),aa(e),oa(e),fa(e),ca(e),la(e),ua(e),da(e),ha(e),pa(e),ma(e),Oa(e),Na(e),xa(e),Ma(e);break;case"edge":if(!i||!na||!t.shimEdge)return n("MS edge shim is not included in this adapter release."),l;n("adapter.js shimming edge."),l.browserShim=i,ea(e),ta(e),na(e),ra(e),xa(e),Ma(e);break;case"safari":if(!o||!t.shimSafari)return n("Safari shim is not included in this adapter release."),l;n("adapter.js shimming safari."),l.browserShim=o,Aa(e),Ca(e),ba(e),ga(e),va(e),wa(e),ya(e),Ea(e),Oa(e),xa(e),Ma(e),Ia(e);break;default:n("Unsupported browser!")}}({window:"undefined"==typeof window?void 0:window});var Ra,ka,Pa,Da,Fa,Ba,La,ja,Ua,qa;function za(e,t){return new Gs(t?n=>t.schedule(Ga,0,{error:e,subscriber:n}):t=>t.error(e))}function Ga({error:e,subscriber:t}){t.error(e)}!function(e){e[e.Idle=0]="Idle",e[e.Error=1]="Error",e[e.Connected=2]="Connected"}(Ra||(Ra={})),function(e){e[e.None=0]="None",e[e.Chat=1]="Chat",e[e.Authenticate=2]="Authenticate",e[e.Offline=3]="Offline",e[e.PopoutButton=4]="PopoutButton",e[e.Disabled=5]="Disabled"}(ka||(ka={})),function(e){e[e.None=-1]="None",e[e.Negative=0]="Negative",e[e.Positive=1]="Positive"}(Pa||(Pa={})),function(e){e[e.Uploading=0]="Uploading",e[e.Available=1]="Available",e[e.Deleted=2]="Deleted"}(Da||(Da={})),function(e){e[e.NoError=0]="NoError",e[e.CanRetry=1]="CanRetry",e[e.NoRetry=2]="NoRetry",e[e.UnsupportedFile=3]="UnsupportedFile",e[e.FileError=4]="FileError"}(Fa||(Fa={})),function(e){e[e.MISSED=0]="MISSED",e[e.OLD_ENDED=1]="OLD_ENDED",e[e.PENDING_AGENT=2]="PENDING_AGENT",e[e.ACTIVE=3]="ACTIVE",e[e.BROWSE=5]="BROWSE",e[e.NOT_STARTED=17]="NOT_STARTED",e[e.ENDED_BY_AGENT=16]="ENDED_BY_AGENT",e[e.ENDED_BY_CLIENT=15]="ENDED_BY_CLIENT",e[e.ENDED_DUE_AGENT_INACTIVITY=14]="ENDED_DUE_AGENT_INACTIVITY",e[e.ENDED_DUE_CLIENT_INACTIVITY=13]="ENDED_DUE_CLIENT_INACTIVITY"}(Ba||(Ba={})),function(e){e[e.Chat=0]="Chat",e[e.OfflineForm=1]="OfflineForm",e[e.Rate=2]="Rate",e[e.Auth=3]="Auth"}(La||(La={})),function(e){e[e.Text=0]="Text",e[e.SingleChoice=1]="SingleChoice",e[e.MultipleChoice=2]="MultipleChoice"}(ja||(ja={})),function(e){e[e.Text=0]="Text",e[e.File=1]="File",e[e.Options=2]="Options"}(Ua||(Ua={})),function(e){e[e.Normal=0]="Normal",e[e.Completed=1]="Completed"}(qa||(qa={}));class Ha{constructor(e,t){this.sessionState=e,this.error=t,this.messages$=new Qs,this.supportsWebRTC=!1,this.serverProvideSystemMessages=!1,this.sessionId=""}get(e){return za(this.error)}getSessionUniqueCode(){return-1}fileEndPoint(e){return""}emojiEndpoint(){return""}}const Va=()=>new Ha(Ra.Idle,"Can' send request to idle session"),$a=e=>new Ha(Ra.Error,e);function Wa(e,t){return function(n){return n.lift(new Qa(e,t))}}class Qa{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new Ya(e,this.predicate,this.thisArg))}}class Ya extends Ls{constructor(e,t,n){super(e),this.predicate=t,this.thisArg=n,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}t&&this.destination.next(e)}}var Xa=n(2100);const Ka=Xa.Reader,Za=Xa.Writer,Ja=Xa.util,ec=Xa.roots.default||(Xa.roots.default={}),tc=(ec.ErrorCodes=(()=>{const e={},t=Object.create(e);return t[e[-1]="ConferenceWithPinDoesNotExist"]=-1,t[e[-2]="ConferenceWithPinAlreadyExists"]=-2,t[e[-3]="ConferencePinAndIdDoesNotMatch"]=-3,t[e[-4]="ConferenceAccessDenied"]=-4,t[e[-5]="ConferenceIsCancelled"]=-5,t[e[-6]="ConferencePinIsReadOnly"]=-6,t[e[-7]="ConferenceInvalidPin"]=-7,t[e[-8]="CannotGeneratePin"]=-8,t[e[-9]="FwdProfileDoesNotExist"]=-9,t[e[-10]="FwdProfileOverrideExpirationRequired"]=-10,t[e[0]="Success"]=0,t[e[1]="NoSuchRequest"]=1,t[e[2]="ExceptionOccured"]=2,t[e[3]="RequestIsNotSupported"]=3,t[e[4]="ServerIsBusy"]=4,t[e[5]="BridgeNotFound"]=5,t[e[6]="CannotCleanOwnExtension"]=6,t[e[7]="SetWakeupCallResult"]=7,t[e[8]="ExtensionNotFound"]=8,t[e[9]="NoPermission"]=9,t[e[12]="WebMeetingNoEmail"]=12,t[e[13]="WebMeetingNoAccess"]=13,t[e[16]="WebMeetingInvalidOrganizer"]=16,t[e[17]="WebMeetingInvalidParameters"]=17,t[e[18]="WebMeetingInvalidParticipant"]=18,t[e[19]="WebMeetingInvalidPin"]=19,t[e[20]="WebMeetingAccessDenied"]=20,t[e[21]="WebMeetingNotFound"]=21,t[e[22]="WebMeetingCannotDeleteQM"]=22,t[e[23]="WebMeetingPinIsReadonly"]=23,t[e[24]="WebMeetingNumberToCallIsReadonly"]=24,t[e[25]="WebMeetingInvalidWmUser"]=25,t[e[30]="ExtensionEmailRequired"]=30,t[e[31]="QueueNumberRequired"]=31,t[e[32]="ChatIsDisabled"]=32,t[e[33]="PersonalContactRequired"]=33,t[e[34]="RequiredFieldIsEmpty"]=34,t[e[35]="ContactNotFound"]=35,t[e[36]="ContactIsReadonly"]=36,t[e[37]="ActionIsNotAllowed"]=37,t[e[38]="FileNotFound"]=38,t[e[39]="OwnRecordingsDenied"]=39,t[e[40]="InvalidValue"]=40,t[e[41]="InvalidMedia"]=41,t[e[42]="InvalidOperation"]=42,t[e[43]="OperationFailed"]=43,t})(),ec.ActionType=(()=>{const e={},t=Object.create(e);return t[e[0]="NoUpdates"]=0,t[e[1]="FullUpdate"]=1,t[e[2]="Inserted"]=2,t[e[3]="Updated"]=3,t[e[4]="Deleted"]=4,t})()),nc=(ec.ContactType=(()=>{const e={},t=Object.create(e);return t[e[0]="LocalUser"]=0,t[e[1]="CompanyPhonebook"]=1,t[e[2]="PersonalPhonebook"]=2,t[e[3]="BridgeExtension"]=3,t})(),ec.ChatFileState=(()=>{const e={},t=Object.create(e);return t[e[0]="CF_Uploading"]=0,t[e[1]="CF_Available"]=1,t[e[2]="CF_Deleted"]=2,t})()),rc=(ec.ContactAddedByEnum=(()=>{const e={},t=Object.create(e);return t[e[0]="AB_Tcx"]=0,t[e[1]="AB_Crm"]=1,t[e[2]="AB_Office365"]=2,t})(),ec.ChatMessageType=(()=>{const e={},t=Object.create(e);return t[e[0]="CMT_Normal"]=0,t[e[1]="CMT_Closed"]=1,t[e[2]="CMT_Dealt"]=2,t[e[3]="CMT_File"]=3,t[e[4]="CMT_Taken"]=4,t[e[5]="CMT_Transferred"]=5,t[e[6]="CMT_Whisper"]=6,t[e[7]="CMT_Emergency"]=7,t[e[8]="CMT_License"]=8,t[e[9]="CMT_WebMeeting"]=9,t})()),ic=(ec.ChatRecipientType=(()=>{const e={},t=Object.create(e);return t[e[0]="CRT_Local"]=0,t[e[1]="CRT_3cxBridge"]=1,t[e[2]="CRT_Anonymous"]=2,t[e[3]="CRT_External"]=3,t[e[5]="CRT_System"]=5,t})(),ec.ChatDeliveryStatus=(()=>{const e={},t=Object.create(e);return t[e[0]="CDS_NotDelivered"]=0,t[e[1]="CDS_Delivered"]=1,t[e[2]="CDS_Failed"]=2,t})(),ec.Login=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Za.create()),t.uint32(10).string(e.User),null!=e.Password&&Object.hasOwnProperty.call(e,"Password")&&t.uint32(18).string(e.Password),null!=e.ClientVersion&&Object.hasOwnProperty.call(e,"ClientVersion")&&t.uint32(26).string(e.ClientVersion),null!=e.ClientInfo&&Object.hasOwnProperty.call(e,"ClientInfo")&&t.uint32(34).string(e.ClientInfo),null!=e.ProtocolVersion&&Object.hasOwnProperty.call(e,"ProtocolVersion")&&t.uint32(42).string(e.ProtocolVersion),t},e.decode=function(e,t){e instanceof Ka||(e=Ka.create(e));let n=void 0===t?e.len:e.pos+t,r=new ec.Login;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.User=e.string();break;case 2:r.Password=e.string();break;case 3:r.ClientVersion=e.string();break;case 4:r.ClientInfo=e.string();break;case 5:r.ProtocolVersion=e.string();break;default:e.skipType(7&t)}}return r},e.prototype.toGenericMessage=function(){return new ec.GenericMessage({MessageId:100,LoginRequest:this})},e})()),sc=(ec.LoginInfo=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Za.create()),null!=e.ExtensionId&&Object.hasOwnProperty.call(e,"ExtensionId")&&t.uint32(8).int32(e.ExtensionId),null!=e.IsAuthenticated&&Object.hasOwnProperty.call(e,"IsAuthenticated")&&t.uint32(16).bool(e.IsAuthenticated),null!=e.ValidationMessage&&Object.hasOwnProperty.call(e,"ValidationMessage")&&t.uint32(26).string(e.ValidationMessage),null!=e.Nonce&&Object.hasOwnProperty.call(e,"Nonce")&&t.uint32(34).string(e.Nonce),null!=e.SessionId&&Object.hasOwnProperty.call(e,"SessionId")&&t.uint32(42).string(e.SessionId),null!=e.AddpTimeout&&Object.hasOwnProperty.call(e,"AddpTimeout")&&t.uint32(48).int32(e.AddpTimeout),null!=e.ServerVersion&&Object.hasOwnProperty.call(e,"ServerVersion")&&t.uint32(58).string(e.ServerVersion),null!=e.UpdateAvailable&&Object.hasOwnProperty.call(e,"UpdateAvailable")&&t.uint32(64).bool(e.UpdateAvailable),null!=e.LicenseType&&Object.hasOwnProperty.call(e,"LicenseType")&&t.uint32(72).int32(e.LicenseType),null!=e.LicenseProduct&&Object.hasOwnProperty.call(e,"LicenseProduct")&&t.uint32(82).string(e.LicenseProduct),null!=e.PbxVersion&&Object.hasOwnProperty.call(e,"PbxVersion")&&t.uint32(90).string(e.PbxVersion),t},e.decode=function(e,t){e instanceof Ka||(e=Ka.create(e));let n=void 0===t?e.len:e.pos+t,r=new ec.LoginInfo;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.ExtensionId=e.int32();break;case 2:r.IsAuthenticated=e.bool();break;case 3:r.ValidationMessage=e.string();break;case 4:r.Nonce=e.string();break;case 5:r.SessionId=e.string();break;case 6:r.AddpTimeout=e.int32();break;case 7:r.ServerVersion=e.string();break;case 8:r.UpdateAvailable=e.bool();break;case 9:r.LicenseType=e.int32();break;case 10:r.LicenseProduct=e.string();break;case 11:r.PbxVersion=e.string();break;default:e.skipType(7&t)}}return r},e.prototype.toGenericMessage=function(){return new ec.GenericMessage({MessageId:200,LoginResponse:this})},e})(),ec.Logout=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Za.create()),t},e.decode=function(e,t){e instanceof Ka||(e=Ka.create(e));let n=void 0===t?e.len:e.pos+t,r=new ec.Logout;for(;e.pos<n;){let t=e.uint32();e.skipType(7&t)}return r},e.prototype.toGenericMessage=function(){return new ec.GenericMessage({MessageId:101,LogoutRequest:this})},e})()),oc=ec.DateTime=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Za.create()),null!=e.Year&&Object.hasOwnProperty.call(e,"Year")&&t.uint32(8).int32(e.Year),null!=e.Month&&Object.hasOwnProperty.call(e,"Month")&&t.uint32(16).int32(e.Month),null!=e.Day&&Object.hasOwnProperty.call(e,"Day")&&t.uint32(24).int32(e.Day),null!=e.Hour&&Object.hasOwnProperty.call(e,"Hour")&&t.uint32(32).int32(e.Hour),null!=e.Minute&&Object.hasOwnProperty.call(e,"Minute")&&t.uint32(40).int32(e.Minute),null!=e.Second&&Object.hasOwnProperty.call(e,"Second")&&t.uint32(48).int32(e.Second),t},e.decode=function(e,t){e instanceof Ka||(e=Ka.create(e));let n=void 0===t?e.len:e.pos+t,r=new ec.DateTime;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.Year=e.int32();break;case 2:r.Month=e.int32();break;case 3:r.Day=e.int32();break;case 4:r.Hour=e.int32();break;case 5:r.Minute=e.int32();break;case 6:r.Second=e.int32();break;default:e.skipType(7&t)}}return r},e})(),ac=(ec.Registration=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Za.create()),t.uint32(8).int32(e.Action),t.uint32(16).int32(e.Id),null!=e.Contact&&Object.hasOwnProperty.call(e,"Contact")&&t.uint32(26).string(e.Contact),null!=e.SourceAddress&&Object.hasOwnProperty.call(e,"SourceAddress")&&t.uint32(34).string(e.SourceAddress),null!=e.UserAgent&&Object.hasOwnProperty.call(e,"UserAgent")&&t.uint32(42).string(e.UserAgent),null!=e.ExpiresAt&&Object.hasOwnProperty.call(e,"ExpiresAt")&&ec.DateTime.encode(e.ExpiresAt,t.uint32(50).fork()).ldelim(),t},e.decode=function(e,t){e instanceof Ka||(e=Ka.create(e));let n=void 0===t?e.len:e.pos+t,r=new ec.Registration;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.Action=e.int32();break;case 2:r.Id=e.int32();break;case 3:r.Contact=e.string();break;case 4:r.SourceAddress=e.string();break;case 5:r.UserAgent=e.string();break;case 6:r.ExpiresAt=ec.DateTime.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e})(),ec.Registrations=(()=>{function e(e){if(this.Items=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.Items=Ja.emptyArray,e.encode=function(e,t){if(t||(t=Za.create()),t.uint32(8).int32(e.Action),null!=e.Items&&e.Items.length)for(let n=0;n<e.Items.length;++n)ec.Registration.encode(e.Items[n],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof Ka||(e=Ka.create(e));let n=void 0===t?e.len:e.pos+t,r=new ec.Registrations;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.Action=e.int32();break;case 2:r.Items&&r.Items.length||(r.Items=[]),r.Items.push(ec.Registration.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return r},e})(),ec.MyExtensionInfo=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Za.create()),t.uint32(8).int32(e.Action),t.uint32(16).int32(e.Id),null!=e.Number&&Object.hasOwnProperty.call(e,"Number")&&t.uint32(26).string(e.Number),null!=e.QueueStatus&&Object.hasOwnProperty.call(e,"QueueStatus")&&t.uint32(48).bool(e.QueueStatus),null!=e.ActiveDevices&&Object.hasOwnProperty.call(e,"ActiveDevices")&&ec.Registrations.encode(e.ActiveDevices,t.uint32(74).fork()).ldelim(),t},e.decode=function(e,t){e instanceof Ka||(e=Ka.create(e));let n=void 0===t?e.len:e.pos+t,r=new ec.MyExtensionInfo;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.Action=e.int32();break;case 2:r.Id=e.int32();break;case 3:r.Number=e.string();break;case 6:r.QueueStatus=e.bool();break;case 9:r.ActiveDevices=ec.Registrations.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.prototype.toGenericMessage=function(){return new ec.GenericMessage({MessageId:201,MyInfo:this})},e})(),ec.RequestMyInfo=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Za.create()),t},e.decode=function(e,t){e instanceof Ka||(e=Ka.create(e));let n=void 0===t?e.len:e.pos+t,r=new ec.RequestMyInfo;for(;e.pos<n;){let t=e.uint32();e.skipType(7&t)}return r},e.prototype.toGenericMessage=function(){return new ec.GenericMessage({MessageId:102,GetMyInfo:this})},e})()),cc=(ec.Contact=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Za.create()),t.uint32(8).int32(e.Id),null!=e.FirstName&&Object.hasOwnProperty.call(e,"FirstName")&&t.uint32(18).string(e.FirstName),null!=e.LastName&&Object.hasOwnProperty.call(e,"LastName")&&t.uint32(26).string(e.LastName),null!=e.Number&&Object.hasOwnProperty.call(e,"Number")&&t.uint32(34).string(e.Number),null!=e.ExtensionNumber&&Object.hasOwnProperty.call(e,"ExtensionNumber")&&t.uint32(42).string(e.ExtensionNumber),null!=e.ContactType&&Object.hasOwnProperty.call(e,"ContactType")&&t.uint32(48).int32(e.ContactType),null!=e.Company&&Object.hasOwnProperty.call(e,"Company")&&t.uint32(58).string(e.Company),null!=e.AddressNumberOrData0&&Object.hasOwnProperty.call(e,"AddressNumberOrData0")&&t.uint32(66).string(e.AddressNumberOrData0),null!=e.AddressNumberOrData1&&Object.hasOwnProperty.call(e,"AddressNumberOrData1")&&t.uint32(74).string(e.AddressNumberOrData1),null!=e.AddressNumberOrData2&&Object.hasOwnProperty.call(e,"AddressNumberOrData2")&&t.uint32(82).string(e.AddressNumberOrData2),null!=e.AddressNumberOrData3&&Object.hasOwnProperty.call(e,"AddressNumberOrData3")&&t.uint32(90).string(e.AddressNumberOrData3),null!=e.AddressNumberOrData4&&Object.hasOwnProperty.call(e,"AddressNumberOrData4")&&t.uint32(98).string(e.AddressNumberOrData4),null!=e.AddressNumberOrData5&&Object.hasOwnProperty.call(e,"AddressNumberOrData5")&&t.uint32(106).string(e.AddressNumberOrData5),null!=e.AddressNumberOrData6&&Object.hasOwnProperty.call(e,"AddressNumberOrData6")&&t.uint32(114).string(e.AddressNumberOrData6),null!=e.AddressNumberOrData7&&Object.hasOwnProperty.call(e,"AddressNumberOrData7")&&t.uint32(122).string(e.AddressNumberOrData7),null!=e.AddressNumberOrData8&&Object.hasOwnProperty.call(e,"AddressNumberOrData8")&&t.uint32(130).string(e.AddressNumberOrData8),null!=e.AddressNumberOrData9&&Object.hasOwnProperty.call(e,"AddressNumberOrData9")&&t.uint32(138).string(e.AddressNumberOrData9),t.uint32(144).int32(e.Action),null!=e.ContactImage&&Object.hasOwnProperty.call(e,"ContactImage")&&t.uint32(154).string(e.ContactImage),null!=e.IsEditable&&Object.hasOwnProperty.call(e,"IsEditable")&&t.uint32(160).bool(e.IsEditable),null!=e.CrmContactData&&Object.hasOwnProperty.call(e,"CrmContactData")&&t.uint32(178).string(e.CrmContactData),null!=e.AddedBy&&Object.hasOwnProperty.call(e,"AddedBy")&&t.uint32(184).int32(e.AddedBy),t},e.decode=function(e,t){e instanceof Ka||(e=Ka.create(e));let n=void 0===t?e.len:e.pos+t,r=new ec.Contact;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.Id=e.int32();break;case 2:r.FirstName=e.string();break;case 3:r.LastName=e.string();break;case 4:r.Number=e.string();break;case 5:r.ExtensionNumber=e.string();break;case 6:r.ContactType=e.int32();break;case 7:r.Company=e.string();break;case 8:r.AddressNumberOrData0=e.string();break;case 9:r.AddressNumberOrData1=e.string();break;case 10:r.AddressNumberOrData2=e.string();break;case 11:r.AddressNumberOrData3=e.string();break;case 12:r.AddressNumberOrData4=e.string();break;case 13:r.AddressNumberOrData5=e.string();break;case 14:r.AddressNumberOrData6=e.string();break;case 15:r.AddressNumberOrData7=e.string();break;case 16:r.AddressNumberOrData8=e.string();break;case 17:r.AddressNumberOrData9=e.string();break;case 18:r.Action=e.int32();break;case 19:r.ContactImage=e.string();break;case 20:r.IsEditable=e.bool();break;case 22:r.CrmContactData=e.string();break;case 23:r.AddedBy=e.int32();break;default:e.skipType(7&t)}}return r},e})(),ec.ResponseAcknowledge=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Za.create()),t.uint32(8).bool(e.Success),null!=e.ErrorCode&&Object.hasOwnProperty.call(e,"ErrorCode")&&t.uint32(16).int32(e.ErrorCode),null!=e.Message&&Object.hasOwnProperty.call(e,"Message")&&t.uint32(26).string(e.Message),null!=e.ExceptionType&&Object.hasOwnProperty.call(e,"ExceptionType")&&t.uint32(34).string(e.ExceptionType),null!=e.ExceptionMessage&&Object.hasOwnProperty.call(e,"ExceptionMessage")&&t.uint32(42).string(e.ExceptionMessage),null!=e.ErrorType&&Object.hasOwnProperty.call(e,"ErrorType")&&t.uint32(48).int32(e.ErrorType),null!=e.Parameter&&Object.hasOwnProperty.call(e,"Parameter")&&t.uint32(58).string(e.Parameter),t},e.decode=function(e,t){e instanceof Ka||(e=Ka.create(e));let n=void 0===t?e.len:e.pos+t,r=new ec.ResponseAcknowledge;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.Success=e.bool();break;case 2:r.ErrorCode=e.int32();break;case 3:r.Message=e.string();break;case 4:r.ExceptionType=e.string();break;case 5:r.ExceptionMessage=e.string();break;case 6:r.ErrorType=e.int32();break;case 7:r.Parameter=e.string();break;default:e.skipType(7&t)}}return r},e.prototype.toGenericMessage=function(){return new ec.GenericMessage({MessageId:207,Acknowledge:this})},e})()),lc=ec.ChatRecipient=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Za.create()),null!=e.ExtNumber&&Object.hasOwnProperty.call(e,"ExtNumber")&&t.uint32(10).string(e.ExtNumber),null!=e.Name&&Object.hasOwnProperty.call(e,"Name")&&t.uint32(18).string(e.Name),null!=e.BridgeNumber&&Object.hasOwnProperty.call(e,"BridgeNumber")&&t.uint32(26).string(e.BridgeNumber),null!=e.Email&&Object.hasOwnProperty.call(e,"Email")&&t.uint32(34).string(e.Email),null!=e.Contact&&Object.hasOwnProperty.call(e,"Contact")&&ec.Contact.encode(e.Contact,t.uint32(42).fork()).ldelim(),t.uint32(48).int32(e.IdRecipient),null!=e.RecipientType&&Object.hasOwnProperty.call(e,"RecipientType")&&t.uint32(56).int32(e.RecipientType),t},e.decode=function(e,t){e instanceof Ka||(e=Ka.create(e));let n=void 0===t?e.len:e.pos+t,r=new ec.ChatRecipient;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.ExtNumber=e.string();break;case 2:r.Name=e.string();break;case 3:r.BridgeNumber=e.string();break;case 4:r.Email=e.string();break;case 5:r.Contact=ec.Contact.decode(e,e.uint32());break;case 6:r.IdRecipient=e.int32();break;case 7:r.RecipientType=e.int32();break;default:e.skipType(7&t)}}return r},e})(),fc=(ec.ChatRecipientEx=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Za.create()),null!=e.Recipient&&Object.hasOwnProperty.call(e,"Recipient")&&ec.ChatRecipient.encode(e.Recipient,t.uint32(10).fork()).ldelim(),null!=e.IsAnonymousActive&&Object.hasOwnProperty.call(e,"IsAnonymousActive")&&t.uint32(16).bool(e.IsAnonymousActive),null!=e.IsRemoved&&Object.hasOwnProperty.call(e,"IsRemoved")&&t.uint32(24).bool(e.IsRemoved),null!=e.IsWhisperer&&Object.hasOwnProperty.call(e,"IsWhisperer")&&t.uint32(32).bool(e.IsWhisperer),t},e.decode=function(e,t){e instanceof Ka||(e=Ka.create(e));let n=void 0===t?e.len:e.pos+t,r=new ec.ChatRecipientEx;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.Recipient=ec.ChatRecipient.decode(e,e.uint32());break;case 2:r.IsAnonymousActive=e.bool();break;case 3:r.IsRemoved=e.bool();break;case 4:r.IsWhisperer=e.bool();break;default:e.skipType(7&t)}}return r},e})(),ec.ChatRecipientRef=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Za.create()),t.uint32(8).int32(e.IdRecipient),null!=e.Delivery&&Object.hasOwnProperty.call(e,"Delivery")&&t.uint32(16).int32(e.Delivery),null!=e.IsRead&&Object.hasOwnProperty.call(e,"IsRead")&&t.uint32(24).bool(e.IsRead),null!=e.IsSender&&Object.hasOwnProperty.call(e,"IsSender")&&t.uint32(32).bool(e.IsSender),t},e.decode=function(e,t){e instanceof Ka||(e=Ka.create(e));let n=void 0===t?e.len:e.pos+t,r=new ec.ChatRecipientRef;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.IdRecipient=e.int32();break;case 2:r.Delivery=e.int32();break;case 3:r.IsRead=e.bool();break;case 4:r.IsSender=e.bool();break;default:e.skipType(7&t)}}return r},e})(),ec.ChatMessage=(()=>{function e(e){if(this.Recipients=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.Recipients=Ja.emptyArray,e.encode=function(e,t){if(t||(t=Za.create()),t.uint32(8).int32(e.Id),null!=e.SenderNumber&&Object.hasOwnProperty.call(e,"SenderNumber")&&t.uint32(18).string(e.SenderNumber),null!=e.SenderName&&Object.hasOwnProperty.call(e,"SenderName")&&t.uint32(26).string(e.SenderName),null!=e.SenderBridgeNumber&&Object.hasOwnProperty.call(e,"SenderBridgeNumber")&&t.uint32(34).string(e.SenderBridgeNumber),null!=e.Recipient&&Object.hasOwnProperty.call(e,"Recipient")&&ec.ChatRecipient.encode(e.Recipient,t.uint32(42).fork()).ldelim(),null!=e.Message&&Object.hasOwnProperty.call(e,"Message")&&t.uint32(50).string(e.Message),null!=e.Time&&Object.hasOwnProperty.call(e,"Time")&&ec.DateTime.encode(e.Time,t.uint32(58).fork()).ldelim(),null!=e.IsNew&&Object.hasOwnProperty.call(e,"IsNew")&&t.uint32(64).bool(e.IsNew),null!=e.Party&&Object.hasOwnProperty.call(e,"Party")&&t.uint32(74).string(e.Party),null!=e.PartyNew&&Object.hasOwnProperty.call(e,"PartyNew")&&t.uint32(82).string(e.PartyNew),null!=e.File&&Object.hasOwnProperty.call(e,"File")&&ec.ChatFile.encode(e.File,t.uint32(90).fork()).ldelim(),null!=e.IsAnonymousActive&&Object.hasOwnProperty.call(e,"IsAnonymousActive")&&t.uint32(96).bool(e.IsAnonymousActive),null!=e.IdConversation&&Object.hasOwnProperty.call(e,"IdConversation")&&t.uint32(104).int32(e.IdConversation),null!=e.Recipients&&e.Recipients.length)for(let n=0;n<e.Recipients.length;++n)ec.ChatRecipientRef.encode(e.Recipients[n],t.uint32(114).fork()).ldelim();return null!=e.MessageType&&Object.hasOwnProperty.call(e,"MessageType")&&t.uint32(120).int32(e.MessageType),t},e.decode=function(e,t){e instanceof Ka||(e=Ka.create(e));let n=void 0===t?e.len:e.pos+t,r=new ec.ChatMessage;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.Id=e.int32();break;case 2:r.SenderNumber=e.string();break;case 3:r.SenderName=e.string();break;case 4:r.SenderBridgeNumber=e.string();break;case 5:r.Recipient=ec.ChatRecipient.decode(e,e.uint32());break;case 6:r.Message=e.string();break;case 7:r.Time=ec.DateTime.decode(e,e.uint32());break;case 8:r.IsNew=e.bool();break;case 9:r.Party=e.string();break;case 10:r.PartyNew=e.string();break;case 11:r.File=ec.ChatFile.decode(e,e.uint32());break;case 12:r.IsAnonymousActive=e.bool();break;case 13:r.IdConversation=e.int32();break;case 14:r.Recipients&&r.Recipients.length||(r.Recipients=[]),r.Recipients.push(ec.ChatRecipientRef.decode(e,e.uint32()));break;case 15:r.MessageType=e.int32();break;default:e.skipType(7&t)}}return r},e})()),uc=ec.ChatFile=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Za.create()),null!=e.FileName&&Object.hasOwnProperty.call(e,"FileName")&&t.uint32(10).string(e.FileName),null!=e.FileLink&&Object.hasOwnProperty.call(e,"FileLink")&&t.uint32(18).string(e.FileLink),null!=e.FileState&&Object.hasOwnProperty.call(e,"FileState")&&t.uint32(24).int32(e.FileState),null!=e.Progress&&Object.hasOwnProperty.call(e,"Progress")&&t.uint32(37).float(e.Progress),null!=e.HasPreview&&Object.hasOwnProperty.call(e,"HasPreview")&&t.uint32(40).bool(e.HasPreview),null!=e.FileSize&&Object.hasOwnProperty.call(e,"FileSize")&&t.uint32(48).uint64(e.FileSize),t},e.decode=function(e,t){e instanceof Ka||(e=Ka.create(e));let n=void 0===t?e.len:e.pos+t,r=new ec.ChatFile;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.FileName=e.string();break;case 2:r.FileLink=e.string();break;case 3:r.FileState=e.int32();break;case 4:r.Progress=e.float();break;case 5:r.HasPreview=e.bool();break;case 6:r.FileSize=e.uint64();break;default:e.skipType(7&t)}}return r},e})(),dc=ec.NotificationChatFileProgress=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Za.create()),t.uint32(8).int32(e.Id),null!=e.Party&&Object.hasOwnProperty.call(e,"Party")&&t.uint32(18).string(e.Party),null!=e.File&&Object.hasOwnProperty.call(e,"File")&&ec.ChatFile.encode(e.File,t.uint32(26).fork()).ldelim(),null!=e.IdConversation&&Object.hasOwnProperty.call(e,"IdConversation")&&t.uint32(32).int32(e.IdConversation),t},e.decode=function(e,t){e instanceof Ka||(e=Ka.create(e));let n=void 0===t?e.len:e.pos+t,r=new ec.NotificationChatFileProgress;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.Id=e.int32();break;case 2:r.Party=e.string();break;case 3:r.File=ec.ChatFile.decode(e,e.uint32());break;case 4:r.IdConversation=e.int32();break;default:e.skipType(7&t)}}return r},e.prototype.toGenericMessage=function(){return new ec.GenericMessage({MessageId:232,ChatFileProgress:this})},e})(),hc=ec.RequestSendChatMessage=(()=>{function e(e){if(this.Recipients=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.Recipients=Ja.emptyArray,e.encode=function(e,t){if(t||(t=Za.create()),null!=e.Message&&Object.hasOwnProperty.call(e,"Message")&&t.uint32(10).string(e.Message),null!=e.Recipients&&e.Recipients.length)for(let n=0;n<e.Recipients.length;++n)ec.ChatRecipient.encode(e.Recipients[n],t.uint32(18).fork()).ldelim();return null!=e.SipFrom&&Object.hasOwnProperty.call(e,"SipFrom")&&t.uint32(26).string(e.SipFrom),t},e.decode=function(e,t){e instanceof Ka||(e=Ka.create(e));let n=void 0===t?e.len:e.pos+t,r=new ec.RequestSendChatMessage;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.Message=e.string();break;case 2:r.Recipients&&r.Recipients.length||(r.Recipients=[]),r.Recipients.push(ec.ChatRecipient.decode(e,e.uint32()));break;case 3:r.SipFrom=e.string();break;default:e.skipType(7&t)}}return r},e.prototype.toGenericMessage=function(){return new ec.GenericMessage({MessageId:110,SendChatMessage:this})},e})(),pc=(ec.RequestSendChatFile=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Za.create()),t.uint32(10).string(e.Name),null!=e.Party&&Object.hasOwnProperty.call(e,"Party")&&t.uint32(18).string(e.Party),null!=e.IdConversation&&Object.hasOwnProperty.call(e,"IdConversation")&&t.uint32(24).int32(e.IdConversation),t},e.decode=function(e,t){e instanceof Ka||(e=Ka.create(e));let n=void 0===t?e.len:e.pos+t,r=new ec.RequestSendChatFile;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.Name=e.string();break;case 2:r.Party=e.string();break;case 3:r.IdConversation=e.int32();break;default:e.skipType(7&t)}}return r},e.prototype.toGenericMessage=function(){return new ec.GenericMessage({MessageId:179,SendChatFile:this})},e})(),ec.RequestGetMyMessages=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Za.create()),t.uint32(8).bool(e.OnlyNew),null!=e.FromNumber&&Object.hasOwnProperty.call(e,"FromNumber")&&t.uint32(18).string(e.FromNumber),null!=e.FromBridgeNumber&&Object.hasOwnProperty.call(e,"FromBridgeNumber")&&t.uint32(26).string(e.FromBridgeNumber),null!=e.StartingFrom&&Object.hasOwnProperty.call(e,"StartingFrom")&&ec.DateTime.encode(e.StartingFrom,t.uint32(34).fork()).ldelim(),t},e.decode=function(e,t){e instanceof Ka||(e=Ka.create(e));let n=void 0===t?e.len:e.pos+t,r=new ec.RequestGetMyMessages;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.OnlyNew=e.bool();break;case 2:r.FromNumber=e.string();break;case 3:r.FromBridgeNumber=e.string();break;case 4:r.StartingFrom=ec.DateTime.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.prototype.toGenericMessage=function(){return new ec.GenericMessage({MessageId:111,GetMyMessages:this})},e})(),ec.ResponseMyMessages=(()=>{function e(e){if(this.Messages=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.Messages=Ja.emptyArray,e.encode=function(e,t){if(t||(t=Za.create()),null!=e.Messages&&e.Messages.length)for(let n=0;n<e.Messages.length;++n)ec.ChatMessage.encode(e.Messages[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof Ka||(e=Ka.create(e));let n=void 0===t?e.len:e.pos+t,r=new ec.ResponseMyMessages;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.Messages&&r.Messages.length||(r.Messages=[]),r.Messages.push(ec.ChatMessage.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return r},e.prototype.toGenericMessage=function(){return new ec.GenericMessage({MessageId:209,MyChatMessages:this})},e})()),mc=ec.RequestSetChatReceived=(()=>{function e(e){if(this.Items=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.Items=Ja.emptyArray,e.encode=function(e,t){if(t||(t=Za.create()),null!=e.Items&&e.Items.length)for(let n=0;n<e.Items.length;++n)t.uint32(8).int32(e.Items[n]);return t},e.decode=function(e,t){e instanceof Ka||(e=Ka.create(e));let n=void 0===t?e.len:e.pos+t,r=new ec.RequestSetChatReceived;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:if(r.Items&&r.Items.length||(r.Items=[]),2==(7&t)){let t=e.uint32()+e.pos;for(;e.pos<t;)r.Items.push(e.int32())}else r.Items.push(e.int32());break;default:e.skipType(7&t)}}return r},e.prototype.toGenericMessage=function(){return new ec.GenericMessage({MessageId:112,MessagesReceived:this})},e})(),gc=(ec.ChatPartyInfo=(()=>{function e(e){if(this.Recipients=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.Recipients=Ja.emptyArray,e.encode=function(e,t){if(t||(t=Za.create()),null!=e.Party&&Object.hasOwnProperty.call(e,"Party")&&t.uint32(10).string(e.Party),null!=e.Recipients&&e.Recipients.length)for(let n=0;n<e.Recipients.length;++n)ec.ChatRecipientEx.encode(e.Recipients[n],t.uint32(18).fork()).ldelim();return null!=e.IsExternal&&Object.hasOwnProperty.call(e,"IsExternal")&&t.uint32(24).bool(e.IsExternal),null!=e.IdConversation&&Object.hasOwnProperty.call(e,"IdConversation")&&t.uint32(32).int32(e.IdConversation),null!=e.IsArchived&&Object.hasOwnProperty.call(e,"IsArchived")&&t.uint32(40).bool(e.IsArchived),null!=e.PrivateName&&Object.hasOwnProperty.call(e,"PrivateName")&&t.uint32(50).string(e.PrivateName),null!=e.QueueNo&&Object.hasOwnProperty.call(e,"QueueNo")&&t.uint32(58).string(e.QueueNo),null!=e.QueueName&&Object.hasOwnProperty.call(e,"QueueName")&&t.uint32(66).string(e.QueueName),null!=e.PublicName&&Object.hasOwnProperty.call(e,"PublicName")&&t.uint32(74).string(e.PublicName),null!=e.TakenBy&&Object.hasOwnProperty.call(e,"TakenBy")&&ec.ChatRecipient.encode(e.TakenBy,t.uint32(82).fork()).ldelim(),null!=e.NumberOfMessages&&Object.hasOwnProperty.call(e,"NumberOfMessages")&&t.uint32(88).int32(e.NumberOfMessages),t},e.decode=function(e,t){e instanceof Ka||(e=Ka.create(e));let n=void 0===t?e.len:e.pos+t,r=new ec.ChatPartyInfo;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.Party=e.string();break;case 2:r.Recipients&&r.Recipients.length||(r.Recipients=[]),r.Recipients.push(ec.ChatRecipientEx.decode(e,e.uint32()));break;case 3:r.IsExternal=e.bool();break;case 4:r.IdConversation=e.int32();break;case 5:r.IsArchived=e.bool();break;case 6:r.PrivateName=e.string();break;case 7:r.QueueNo=e.string();break;case 8:r.QueueName=e.string();break;case 9:r.PublicName=e.string();break;case 10:r.TakenBy=ec.ChatRecipient.decode(e,e.uint32());break;case 11:r.NumberOfMessages=e.int32();break;default:e.skipType(7&t)}}return r},e})(),ec.NotificationChatTransferred=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Za.create()),ec.ChatPartyInfo.encode(e.PartyInfo,t.uint32(10).fork()).ldelim(),null!=e.TransferredBy&&Object.hasOwnProperty.call(e,"TransferredBy")&&ec.ChatRecipient.encode(e.TransferredBy,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof Ka||(e=Ka.create(e));let n=void 0===t?e.len:e.pos+t,r=new ec.NotificationChatTransferred;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.PartyInfo=ec.ChatPartyInfo.decode(e,e.uint32());break;case 2:r.TransferredBy=ec.ChatRecipient.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.prototype.toGenericMessage=function(){return new ec.GenericMessage({MessageId:237,ChatTransferred:this})},e})()),vc=ec.NotificationConversationRemoved=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Za.create()),t.uint32(8).int32(e.IdConversation),null!=e.TakenBy&&Object.hasOwnProperty.call(e,"TakenBy")&&ec.ChatRecipient.encode(e.TakenBy,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof Ka||(e=Ka.create(e));let n=void 0===t?e.len:e.pos+t,r=new ec.NotificationConversationRemoved;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.IdConversation=e.int32();break;case 2:r.TakenBy=ec.ChatRecipient.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.prototype.toGenericMessage=function(){return new ec.GenericMessage({MessageId:235,ConversationRemoved:this})},e})(),bc=ec.MyWebRTCEndpoint=(()=>{function e(e){if(this.Items=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.Items=Ja.emptyArray,e.encode=function(e,t){if(t||(t=Za.create()),t.uint32(8).int32(e.Action),null!=e.Items&&e.Items.length)for(let n=0;n<e.Items.length;++n)ec.WebRTCCall.encode(e.Items[n],t.uint32(18).fork()).ldelim();return null!=e.isWebRTCEnpointRegistered&&Object.hasOwnProperty.call(e,"isWebRTCEnpointRegistered")&&t.uint32(24).bool(e.isWebRTCEnpointRegistered),null!=e.DeviceContact&&Object.hasOwnProperty.call(e,"DeviceContact")&&t.uint32(34).string(e.DeviceContact),t},e.decode=function(e,t){e instanceof Ka||(e=Ka.create(e));let n=void 0===t?e.len:e.pos+t,r=new ec.MyWebRTCEndpoint;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.Action=e.int32();break;case 2:r.Items&&r.Items.length||(r.Items=[]),r.Items.push(ec.WebRTCCall.decode(e,e.uint32()));break;case 3:r.isWebRTCEnpointRegistered=e.bool();break;case 4:r.DeviceContact=e.string();break;default:e.skipType(7&t)}}return r},e.prototype.toGenericMessage=function(){return new ec.GenericMessage({MessageId:227,webRTCEndpoint:this})},e})(),yc=ec.WebRTCEndpointSDPState=(()=>{const e={},t=Object.create(e);return t[e[0]="WRTCTerminate"]=0,t[e[1]="WRTCOffer"]=1,t[e[2]="WRTCAnswer"]=2,t[e[3]="WRTCConfirm"]=3,t[e[4]="WRTCRequestForOffer"]=4,t[e[5]="WRTCReject"]=5,t[e[6]="WRTCProcessingOffer"]=6,t[e[7]="WRTCPreparingOffer"]=7,t[e[8]="WRTCAnswerProvided"]=8,t[e[9]="WRTCConfirmed"]=9,t[e[10]="WRTCInitial"]=10,t})(),_c=ec.WebRTCHoldState=(()=>{const e={},t=Object.create(e);return t[e[0]="WebRTCHoldState_NOHOLD"]=0,t[e[1]="WebRTCHoldState_HELD"]=1,t[e[2]="WebRTCHoldState_HOLD"]=2,t[e[3]="WebRTCHoldState_BOTH"]=3,t})(),Ac=ec.WebRTCCall=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Za.create()),t.uint32(8).int32(e.Action),t.uint32(16).int32(e.Id),t.uint32(24).int32(e.sdpType),null!=e.otherPartyDisplayname&&Object.hasOwnProperty.call(e,"otherPartyDisplayname")&&t.uint32(34).string(e.otherPartyDisplayname),null!=e.otherPartyNumber&&Object.hasOwnProperty.call(e,"otherPartyNumber")&&t.uint32(42).string(e.otherPartyNumber),null!=e.transactionId&&Object.hasOwnProperty.call(e,"transactionId")&&t.uint32(48).int32(e.transactionId),null!=e.sdp&&Object.hasOwnProperty.call(e,"sdp")&&t.uint32(58).string(e.sdp),null!=e.SIPDialogID&&Object.hasOwnProperty.call(e,"SIPDialogID")&&t.uint32(66).string(e.SIPDialogID),null!=e.holdState&&Object.hasOwnProperty.call(e,"holdState")&&t.uint32(72).int32(e.holdState),t},e.decode=function(e,t){e instanceof Ka||(e=Ka.create(e));let n=void 0===t?e.len:e.pos+t,r=new ec.WebRTCCall;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.Action=e.int32();break;case 2:r.Id=e.int32();break;case 3:r.sdpType=e.int32();break;case 4:r.otherPartyDisplayname=e.string();break;case 5:r.otherPartyNumber=e.string();break;case 6:r.transactionId=e.int32();break;case 7:r.sdp=e.string();break;case 8:r.SIPDialogID=e.string();break;case 9:r.holdState=e.int32();break;default:e.skipType(7&t)}}return r},e})(),wc=ec.RequestWebRTCChangeSDPState=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Za.create()),t.uint32(8).int32(e.Id),t.uint32(16).int32(e.sdpType),null!=e.transactionId&&Object.hasOwnProperty.call(e,"transactionId")&&t.uint32(24).int32(e.transactionId),null!=e.sdp&&Object.hasOwnProperty.call(e,"sdp")&&t.uint32(34).string(e.sdp),null!=e.destinationNumber&&Object.hasOwnProperty.call(e,"destinationNumber")&&t.uint32(42).string(e.destinationNumber),null!=e.CallerDisplayName&&Object.hasOwnProperty.call(e,"CallerDisplayName")&&t.uint32(50).string(e.CallerDisplayName),null!=e.CallerID&&Object.hasOwnProperty.call(e,"CallerID")&&t.uint32(58).string(e.CallerID),t},e.decode=function(e,t){e instanceof Ka||(e=Ka.create(e));let n=void 0===t?e.len:e.pos+t,r=new ec.RequestWebRTCChangeSDPState;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.Id=e.int32();break;case 2:r.sdpType=e.int32();break;case 3:r.transactionId=e.int32();break;case 4:r.sdp=e.string();break;case 5:r.destinationNumber=e.string();break;case 6:r.CallerDisplayName=e.string();break;case 7:r.CallerID=e.string();break;default:e.skipType(7&t)}}return r},e.prototype.toGenericMessage=function(){return new ec.GenericMessage({MessageId:164,ChangeSDPState:this})},e})(),Cc=(ec.ResponseWebRTCChangeSDPState=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Za.create()),t.uint32(8).bool(e.Success),null!=e.Message&&Object.hasOwnProperty.call(e,"Message")&&t.uint32(18).string(e.Message),null!=e.CallId&&Object.hasOwnProperty.call(e,"CallId")&&t.uint32(24).int32(e.CallId),t},e.decode=function(e,t){e instanceof Ka||(e=Ka.create(e));let n=void 0===t?e.len:e.pos+t,r=new ec.ResponseWebRTCChangeSDPState;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.Success=e.bool();break;case 2:r.Message=e.string();break;case 3:r.CallId=e.int32();break;default:e.skipType(7&t)}}return r},e.prototype.toGenericMessage=function(){return new ec.GenericMessage({MessageId:228,ChangeSDPStateResponse:this})},e})(),ec.WebRTCTransferCall=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Za.create()),t.uint32(8).int32(e.Id),null!=e.destination&&Object.hasOwnProperty.call(e,"destination")&&t.uint32(18).string(e.destination),null!=e.ToCallId&&Object.hasOwnProperty.call(e,"ToCallId")&&t.uint32(24).int32(e.ToCallId),t},e.decode=function(e,t){e instanceof Ka||(e=Ka.create(e));let n=void 0===t?e.len:e.pos+t,r=new ec.WebRTCTransferCall;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.Id=e.int32();break;case 2:r.destination=e.string();break;case 3:r.ToCallId=e.int32();break;default:e.skipType(7&t)}}return r},e})(),ec.RequestRegisterWebRTCEndpoint=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Za.create()),t.uint32(8).bool(e.register),t},e.decode=function(e,t){e instanceof Ka||(e=Ka.create(e));let n=void 0===t?e.len:e.pos+t,r=new ec.RequestRegisterWebRTCEndpoint;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.register=e.bool();break;default:e.skipType(7&t)}}return r},e.prototype.toGenericMessage=function(){return new ec.GenericMessage({MessageId:163,registerWebRTC:this})},e})()),Ec=ec.ChatTyping=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Za.create()),null!=e.Party&&Object.hasOwnProperty.call(e,"Party")&&t.uint32(10).string(e.Party),null!=e.User&&Object.hasOwnProperty.call(e,"User")&&t.uint32(18).string(e.User),null!=e.IdConversation&&Object.hasOwnProperty.call(e,"IdConversation")&&t.uint32(24).int32(e.IdConversation),t},e.decode=function(e,t){e instanceof Ka||(e=Ka.create(e));let n=void 0===t?e.len:e.pos+t,r=new ec.ChatTyping;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.Party=e.string();break;case 2:r.User=e.string();break;case 3:r.IdConversation=e.int32();break;default:e.skipType(7&t)}}return r},e.prototype.toGenericMessage=function(){return new ec.GenericMessage({MessageId:180,UserTypingChat:this})},e})(),Sc=ec.GenericMessage=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=Za.create()),t.uint32(8).int32(e.MessageId),null!=e.LoginRequest&&Object.hasOwnProperty.call(e,"LoginRequest")&&ec.Login.encode(e.LoginRequest,t.uint32(802).fork()).ldelim(),null!=e.LogoutRequest&&Object.hasOwnProperty.call(e,"LogoutRequest")&&ec.Logout.encode(e.LogoutRequest,t.uint32(810).fork()).ldelim(),null!=e.GetMyInfo&&Object.hasOwnProperty.call(e,"GetMyInfo")&&ec.RequestMyInfo.encode(e.GetMyInfo,t.uint32(818).fork()).ldelim(),null!=e.SendChatMessage&&Object.hasOwnProperty.call(e,"SendChatMessage")&&ec.RequestSendChatMessage.encode(e.SendChatMessage,t.uint32(882).fork()).ldelim(),null!=e.GetMyMessages&&Object.hasOwnProperty.call(e,"GetMyMessages")&&ec.RequestGetMyMessages.encode(e.GetMyMessages,t.uint32(890).fork()).ldelim(),null!=e.MessagesReceived&&Object.hasOwnProperty.call(e,"MessagesReceived")&&ec.RequestSetChatReceived.encode(e.MessagesReceived,t.uint32(898).fork()).ldelim(),null!=e.registerWebRTC&&Object.hasOwnProperty.call(e,"registerWebRTC")&&ec.RequestRegisterWebRTCEndpoint.encode(e.registerWebRTC,t.uint32(1306).fork()).ldelim(),null!=e.ChangeSDPState&&Object.hasOwnProperty.call(e,"ChangeSDPState")&&ec.RequestWebRTCChangeSDPState.encode(e.ChangeSDPState,t.uint32(1314).fork()).ldelim(),null!=e.SendChatFile&&Object.hasOwnProperty.call(e,"SendChatFile")&&ec.RequestSendChatFile.encode(e.SendChatFile,t.uint32(1434).fork()).ldelim(),null!=e.UserTypingChat&&Object.hasOwnProperty.call(e,"UserTypingChat")&&ec.ChatTyping.encode(e.UserTypingChat,t.uint32(1442).fork()).ldelim(),null!=e.LoginResponse&&Object.hasOwnProperty.call(e,"LoginResponse")&&ec.LoginInfo.encode(e.LoginResponse,t.uint32(1602).fork()).ldelim(),null!=e.MyInfo&&Object.hasOwnProperty.call(e,"MyInfo")&&ec.MyExtensionInfo.encode(e.MyInfo,t.uint32(1610).fork()).ldelim(),null!=e.Acknowledge&&Object.hasOwnProperty.call(e,"Acknowledge")&&ec.ResponseAcknowledge.encode(e.Acknowledge,t.uint32(1658).fork()).ldelim(),null!=e.MyChatMessages&&Object.hasOwnProperty.call(e,"MyChatMessages")&&ec.ResponseMyMessages.encode(e.MyChatMessages,t.uint32(1674).fork()).ldelim(),null!=e.webRTCEndpoint&&Object.hasOwnProperty.call(e,"webRTCEndpoint")&&ec.MyWebRTCEndpoint.encode(e.webRTCEndpoint,t.uint32(1818).fork()).ldelim(),null!=e.ChangeSDPStateResponse&&Object.hasOwnProperty.call(e,"ChangeSDPStateResponse")&&ec.ResponseWebRTCChangeSDPState.encode(e.ChangeSDPStateResponse,t.uint32(1826).fork()).ldelim(),null!=e.ChatFileProgress&&Object.hasOwnProperty.call(e,"ChatFileProgress")&&ec.NotificationChatFileProgress.encode(e.ChatFileProgress,t.uint32(1858).fork()).ldelim(),null!=e.ConversationRemoved&&Object.hasOwnProperty.call(e,"ConversationRemoved")&&ec.NotificationConversationRemoved.encode(e.ConversationRemoved,t.uint32(1882).fork()).ldelim(),null!=e.ChatTransferred&&Object.hasOwnProperty.call(e,"ChatTransferred")&&ec.NotificationChatTransferred.encode(e.ChatTransferred,t.uint32(1898).fork()).ldelim(),t},e.decode=function(e,t){e instanceof Ka||(e=Ka.create(e));let n=void 0===t?e.len:e.pos+t,r=new ec.GenericMessage;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.MessageId=e.int32();break;case 100:r.LoginRequest=ec.Login.decode(e,e.uint32());break;case 101:r.LogoutRequest=ec.Logout.decode(e,e.uint32());break;case 102:r.GetMyInfo=ec.RequestMyInfo.decode(e,e.uint32());break;case 110:r.SendChatMessage=ec.RequestSendChatMessage.decode(e,e.uint32());break;case 111:r.GetMyMessages=ec.RequestGetMyMessages.decode(e,e.uint32());break;case 112:r.MessagesReceived=ec.RequestSetChatReceived.decode(e,e.uint32());break;case 163:r.registerWebRTC=ec.RequestRegisterWebRTCEndpoint.decode(e,e.uint32());break;case 164:r.ChangeSDPState=ec.RequestWebRTCChangeSDPState.decode(e,e.uint32());break;case 179:r.SendChatFile=ec.RequestSendChatFile.decode(e,e.uint32());break;case 180:r.UserTypingChat=ec.ChatTyping.decode(e,e.uint32());break;case 200:r.LoginResponse=ec.LoginInfo.decode(e,e.uint32());break;case 201:r.MyInfo=ec.MyExtensionInfo.decode(e,e.uint32());break;case 207:r.Acknowledge=ec.ResponseAcknowledge.decode(e,e.uint32());break;case 209:r.MyChatMessages=ec.ResponseMyMessages.decode(e,e.uint32());break;case 227:r.webRTCEndpoint=ec.MyWebRTCEndpoint.decode(e,e.uint32());break;case 228:r.ChangeSDPStateResponse=ec.ResponseWebRTCChangeSDPState.decode(e,e.uint32());break;case 232:r.ChatFileProgress=ec.NotificationChatFileProgress.decode(e,e.uint32());break;case 235:r.ConversationRemoved=ec.NotificationConversationRemoved.decode(e,e.uint32());break;case 237:r.ChatTransferred=ec.NotificationChatTransferred.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e})();
|
20 |
/*!
|
21 |
* vue-i18n v8.22.1
|
22 |
* (c) 2020 kazuya kawaguchi
|
23 |
* Released under the MIT License.
|
|