WordPress Online Booking and Scheduling Plugin – Bookly - Version 18.1

Version Description

Download this release

Release Info

Developer Ladela
Plugin Icon 128x128 WordPress Online Booking and Scheduling Plugin – Bookly
Version 18.1
Comparing to
See all releases

Code changes from version 18.0 to 18.1

backend/components/dialogs/appointment/edit/resources/js/ng-appointment.js CHANGED
@@ -129,7 +129,7 @@
129
  var $scope = booklyAngular.element(jQuery('#bookly-appointment-dialog')).scope();
130
  $scope.$apply(function ($scope) {
131
  let clone = {};
132
- booklyAngular.copy($scope.dataSource.data.customers.find(x => x.id === data.params.args.data.id), clone);
133
  $scope.dataSource.resetCustomer(clone);
134
  $scope.form.customers.push(clone);
135
  $scope.onCustomersChange();
@@ -150,7 +150,7 @@
150
  var $scope = booklyAngular.element(jQuery('#bookly-appointment-dialog')).scope();
151
  $scope.$apply(function ($scope) {
152
  let clone = {};
153
- booklyAngular.copy($scope.dataSource.data.customers.find(x => x.id === data.params.data.id), clone);
154
  $scope.dataSource.resetCustomer(clone);
155
  $scope.form.customers.push(clone);
156
  $scope.onCustomersChange();
@@ -1201,7 +1201,7 @@
1201
  // Call callback.
1202
  callback('refresh');
1203
  }
1204
- }, true]);
1205
  };
1206
 
1207
  /**************************************************************************************************************
129
  var $scope = booklyAngular.element(jQuery('#bookly-appointment-dialog')).scope();
130
  $scope.$apply(function ($scope) {
131
  let clone = {};
132
+ booklyAngular.copy($scope.dataSource.data.customers.find(function(x) { return x.id === data.params.args.data.id; }), clone);
133
  $scope.dataSource.resetCustomer(clone);
134
  $scope.form.customers.push(clone);
135
  $scope.onCustomersChange();
150
  var $scope = booklyAngular.element(jQuery('#bookly-appointment-dialog')).scope();
151
  $scope.$apply(function ($scope) {
152
  let clone = {};
153
+ booklyAngular.copy($scope.dataSource.data.customers.find(function(x) { return x.id === data.params.data.id; }), clone);
154
  $scope.dataSource.resetCustomer(clone);
155
  $scope.form.customers.push(clone);
156
  $scope.onCustomersChange();
1201
  // Call callback.
1202
  callback('refresh');
1203
  }
1204
+ }]);
1205
  };
1206
 
1207
  /**************************************************************************************************************
backend/components/dialogs/customer/edit/resources/js/ng-customer.js CHANGED
@@ -70,7 +70,7 @@
70
 
71
  // Do customer on modal hide.
72
  element
73
- .one('shown.bs.modal', () => {
74
  jQuery('#wp_user')
75
  .select2({
76
  width: '100%',
70
 
71
  // Do customer on modal hide.
72
  element
73
+ .one('shown.bs.modal', function() {
74
  jQuery('#wp_user')
75
  .select2({
76
  width: '100%',
backend/components/dialogs/service/edit/resources/js/service-edit-dialog.js CHANGED
@@ -262,7 +262,7 @@ jQuery(function ($) {
262
  var ladda = rangeTools.ladda($('#bookly-save',$panel).get(0)),
263
  data = $('form', $panel).serializeArray();
264
  $(document.body).trigger('service.submitForm', [$panel, data]);
265
- $.post(ajaxurl, data, (response) => {
266
  if (response.success) {
267
  booklyAlert(response.data.alert);
268
  if (response.data.new_extras_list) {
@@ -271,7 +271,7 @@ jQuery(function ($) {
271
  $servicesList.DataTable().ajax.reload();
272
  $serviceDialog.booklyModal('hide');
273
  }
274
- }, 'json').always(function() {
275
  ladda.stop();
276
  });
277
  }
262
  var ladda = rangeTools.ladda($('#bookly-save',$panel).get(0)),
263
  data = $('form', $panel).serializeArray();
264
  $(document.body).trigger('service.submitForm', [$panel, data]);
265
+ $.post(ajaxurl, data, function (response) {
266
  if (response.success) {
267
  booklyAlert(response.data.alert);
268
  if (response.data.new_extras_list) {
271
  $servicesList.DataTable().ajax.reload();
272
  $serviceDialog.booklyModal('hide');
273
  }
274
+ }, 'json').always(function () {
275
  ladda.stop();
276
  });
277
  }
backend/components/dialogs/service/order/resources/js/service-order-dialog.js CHANGED
@@ -5,15 +5,15 @@ jQuery(function ($) {
5
  .on('service.submitForm', {},
6
  // Bind submit handler for service saving.
7
  function (event, $panel, data) {
8
- let id = data.find(value => value.name === 'id').value,
9
- title = data.find(value => value.name === 'title').value;
10
 
11
  BooklyServiceOrderDialogL10n.services
12
- .find(service => service.id == id).title = title;
13
  })
14
  .on('service.deleted', {},
15
  function (event, services) {
16
- BooklyServiceOrderDialogL10n.services.forEach((service, index) => {
17
  if (services.includes(String(service.id))) {
18
  delete BooklyServiceOrderDialogL10n.services[index];
19
  }
@@ -33,7 +33,7 @@ jQuery(function ($) {
33
  // Save categories
34
  $save.on('click', function (e) {
35
  e.preventDefault();
36
- var ladda = Ladda.create(this),
37
  services = [];
38
  ladda.start();
39
  $list.find('li').each(function (position, category) {
@@ -41,7 +41,7 @@ jQuery(function ($) {
41
  });
42
  $.post(ajaxurl, {
43
  action: 'bookly_update_service_positions',
44
- services,
45
  csrf_token: BooklyServiceOrderDialogL10n.csrfToken
46
  },
47
  function (response) {
5
  .on('service.submitForm', {},
6
  // Bind submit handler for service saving.
7
  function (event, $panel, data) {
8
+ let id = data.find(function(value) { return value.name === 'id'; }).value,
9
+ title = data.find(function(value) { return value.name === 'title'; }).value;
10
 
11
  BooklyServiceOrderDialogL10n.services
12
+ .find(function(service) { return service.id == id; }).title = title;
13
  })
14
  .on('service.deleted', {},
15
  function (event, services) {
16
+ BooklyServiceOrderDialogL10n.services.forEach(function(service, index) {
17
  if (services.includes(String(service.id))) {
18
  delete BooklyServiceOrderDialogL10n.services[index];
19
  }
33
  // Save categories
34
  $save.on('click', function (e) {
35
  e.preventDefault();
36
+ var ladda = Ladda.create(this),
37
  services = [];
38
  ladda.start();
39
  $list.find('li').each(function (position, category) {
41
  });
42
  $.post(ajaxurl, {
43
  action: 'bookly_update_service_positions',
44
+ services: services,
45
  csrf_token: BooklyServiceOrderDialogL10n.csrfToken
46
  },
47
  function (response) {
backend/components/dialogs/staff/edit/resources/js/staff-schedule.js CHANGED
@@ -77,7 +77,7 @@
77
  $list = $('.bookly-js-breaks-list', $row);
78
  $list.html('');
79
  if (response.data.breaks.hasOwnProperty(index)) {
80
- response.data.breaks[index].forEach(elem => {
81
  var $html = $.parseHTML(elem);
82
  initBooklyPopover($html);
83
  $list.append($html)
77
  $list = $('.bookly-js-breaks-list', $row);
78
  $list.html('');
79
  if (response.data.breaks.hasOwnProperty(index)) {
80
+ response.data.breaks[index].forEach(function(elem) {
81
  var $html = $.parseHTML(elem);
82
  initBooklyPopover($html);
83
  $list.append($html)
backend/components/dialogs/staff/edit/templates/holidays.php CHANGED
@@ -10,4 +10,4 @@
10
  </button>
11
  </div>
12
  </div>
13
- <div class="bookly-js-holidays jCal-wrap mt-4" style="height: 1080px;"></div>
10
  </button>
11
  </div>
12
  </div>
13
+ <div class="bookly-js-holidays jCal-wrap mt-4"></div>
backend/components/dialogs/staff/order/resources/js/staff-order-dialog.js CHANGED
@@ -6,7 +6,7 @@ jQuery(function ($) {
6
  function (event, tab, staffData) {
7
  if (tab == 'staff-details') {
8
  let staff = BooklyStaffOrderDialogL10n.staff
9
- .find(s => s.id == staffData.id);
10
 
11
  if (staff === undefined) {
12
  BooklyStaffOrderDialogL10n.staff.push({id: staffData.id, full_name: staffData.full_name})
@@ -17,8 +17,8 @@ jQuery(function ($) {
17
  })
18
  .on('staff.deleted', {},
19
  function (event, staff) {
20
- staff.forEach(id => {
21
- BooklyStaffOrderDialogL10n.staff.forEach((s, index) => {
22
  if (s.id === parseInt(id)) {
23
  BooklyStaffOrderDialogL10n.staff.splice(index, 1);
24
  }
@@ -40,15 +40,15 @@ jQuery(function ($) {
40
  staff = [],
41
  list = [];
42
  ladda.start();
43
- $('li', $list).each((index, elem) => {
44
  let id = $('[name="id"]', $(elem)).val();
45
  staff.push(id);
46
- list.push({id, full_name: $('.bookly-js-full_name', $(elem)).html()});
47
  });
48
 
49
  $.post(ajaxurl, {
50
  action: 'bookly_update_staff_positions',
51
- staff,
52
  csrf_token: BooklyStaffOrderDialogL10n.csrfToken
53
  },
54
  function (response) {
6
  function (event, tab, staffData) {
7
  if (tab == 'staff-details') {
8
  let staff = BooklyStaffOrderDialogL10n.staff
9
+ .find(function(s) { return s.id == staffData.id; });
10
 
11
  if (staff === undefined) {
12
  BooklyStaffOrderDialogL10n.staff.push({id: staffData.id, full_name: staffData.full_name})
17
  })
18
  .on('staff.deleted', {},
19
  function (event, staff) {
20
+ staff.forEach(function(id) {
21
+ BooklyStaffOrderDialogL10n.staff.forEach(function(s, index) {
22
  if (s.id === parseInt(id)) {
23
  BooklyStaffOrderDialogL10n.staff.splice(index, 1);
24
  }
40
  staff = [],
41
  list = [];
42
  ladda.start();
43
+ $('li', $list).each(function(index, elem) {
44
  let id = $('[name="id"]', $(elem)).val();
45
  staff.push(id);
46
+ list.push({id: id, full_name: $('.bookly-js-full_name', $(elem)).html()});
47
  });
48
 
49
  $.post(ajaxurl, {
50
  action: 'bookly_update_staff_positions',
51
+ staff: staff,
52
  csrf_token: BooklyStaffOrderDialogL10n.csrfToken
53
  },
54
  function (response) {
backend/modules/appointments/resources/js/appointments.js CHANGED
@@ -224,7 +224,7 @@ jQuery(function($) {
224
  });
225
 
226
  $.each(BooklyL10n.datatables.appointments.settings.order, function (_, value) {
227
- const index = columns.findIndex(c => c.data === value.column);
228
  if (index !== -1) {
229
  order.push([index, value.order]);
230
  }
@@ -516,7 +516,7 @@ jQuery(function($) {
516
  let result = null;
517
  const search = $(data.element).data('search');
518
  search &&
519
- search.find((text) => {
520
  if (result === null && text.toLowerCase().indexOf(term) !== -1) {
521
  result = data;
522
  }
224
  });
225
 
226
  $.each(BooklyL10n.datatables.appointments.settings.order, function (_, value) {
227
+ const index = columns.findIndex(function (c) { return c.data === value.column; });
228
  if (index !== -1) {
229
  order.push([index, value.order]);
230
  }
516
  let result = null;
517
  const search = $(data.element).data('search');
518
  search &&
519
+ search.find(function (text) {
520
  if (result === null && text.toLowerCase().indexOf(term) !== -1) {
521
  result = data;
522
  }
backend/modules/customers/resources/js/customers.js CHANGED
@@ -43,7 +43,7 @@ jQuery(function($) {
43
  default:
44
  if (column.startsWith('info_fields_')) {
45
  const id = parseInt(column.split('_').pop());
46
- const field = BooklyL10n.infoFields.find( i => i.id === id);
47
  columns.push({
48
  data: 'info_fields.' + id + '.value' + (field.type === 'checkboxes' ? '[, ]' : ''),
49
  render: $.fn.dataTable.render.text(),
@@ -58,7 +58,7 @@ jQuery(function($) {
58
  });
59
 
60
  $.each(BooklyL10n.datatables.customers.settings.order, function (_, value) {
61
- const index = columns.findIndex(c => c.data === value.column);
62
  if (index !== -1) {
63
  order.push([index, value.order]);
64
  }
@@ -189,7 +189,7 @@ jQuery(function($) {
189
  }, 0);
190
  });
191
  })
192
- .on('hidden.bs.modal', () => row = null);
193
 
194
  /**
195
  * On filters change.
43
  default:
44
  if (column.startsWith('info_fields_')) {
45
  const id = parseInt(column.split('_').pop());
46
+ const field = BooklyL10n.infoFields.find( function(i) { return i.id === id; });
47
  columns.push({
48
  data: 'info_fields.' + id + '.value' + (field.type === 'checkboxes' ? '[, ]' : ''),
49
  render: $.fn.dataTable.render.text(),
58
  });
59
 
60
  $.each(BooklyL10n.datatables.customers.settings.order, function (_, value) {
61
+ const index = columns.findIndex(function (c) { return c.data === value.column; });
62
  if (index !== -1) {
63
  order.push([index, value.order]);
64
  }
189
  }, 0);
190
  });
191
  })
192
+ .on('hidden.bs.modal', function () { row = null; });
193
 
194
  /**
195
  * On filters change.
backend/modules/debug/resources/js/debug.js CHANGED
@@ -386,7 +386,7 @@ jQuery(function($) {
386
  error: function () {
387
  booklyAlert({error: [test + ' error: in query execution.']});
388
  }
389
- }).then(response => {
390
  booklyAlert(response.data.alerts);
391
  ladda.stop();
392
  });
@@ -400,7 +400,7 @@ jQuery(function($) {
400
  ladda.start();
401
  ladda.setProgress(0.03);
402
 
403
- BooklyL10n.tests.forEach(test => {
404
  $.ajax({
405
  url: ajaxurl,
406
  type: 'POST',
@@ -412,7 +412,7 @@ jQuery(function($) {
412
  error: function () {
413
  booklyAlert({error: [test + ' error: in query execution.']});
414
  }
415
- }).then(response => {
416
  if (!response.success) {
417
  error_count += 1;
418
  booklyAlert({error: ['Test: ' + response.data.test_name + '<p><pre>' + response.data.error + '</pre></p>']});
386
  error: function () {
387
  booklyAlert({error: [test + ' error: in query execution.']});
388
  }
389
+ }).then(function(response){
390
  booklyAlert(response.data.alerts);
391
  ladda.stop();
392
  });
400
  ladda.start();
401
  ladda.setProgress(0.03);
402
 
403
+ BooklyL10n.tests.forEach(function(test) {
404
  $.ajax({
405
  url: ajaxurl,
406
  type: 'POST',
412
  error: function () {
413
  booklyAlert({error: [test + ' error: in query execution.']});
414
  }
415
+ }).then(function(response) {
416
  if (!response.success) {
417
  error_count += 1;
418
  booklyAlert({error: ['Test: ' + response.data.test_name + '<p><pre>' + response.data.error + '</pre></p>']});
backend/modules/payments/resources/js/payments.js CHANGED
@@ -76,7 +76,7 @@ jQuery(function($) {
76
  let result = null;
77
  const search = $(data.element).data('search');
78
  search &&
79
- search.find((text) => {
80
  if (result === null && text.toLowerCase().indexOf(term) !== -1) {
81
  result = data;
82
  }
@@ -168,7 +168,7 @@ jQuery(function($) {
168
  });
169
 
170
  $.each(BooklyL10n.datatables.payments.settings.order, function (_, value) {
171
- const index = columns.findIndex(c => c.data === value.column);
172
  if (index !== -1) {
173
  order.push([index, value.order]);
174
  }
@@ -217,7 +217,7 @@ jQuery(function($) {
217
  });
218
  dt.on( 'order', function () {
219
  let order = [];
220
- dt.order().forEach(data => {
221
  order.push({
222
  column: columns[data[0]].data,
223
  order: data[1]
76
  let result = null;
77
  const search = $(data.element).data('search');
78
  search &&
79
+ search.find(function(text) {
80
  if (result === null && text.toLowerCase().indexOf(term) !== -1) {
81
  result = data;
82
  }
168
  });
169
 
170
  $.each(BooklyL10n.datatables.payments.settings.order, function (_, value) {
171
+ const index = columns.findIndex(function (c) { return c.data === value.column; });
172
  if (index !== -1) {
173
  order.push([index, value.order]);
174
  }
217
  });
218
  dt.on( 'order', function () {
219
  let order = [];
220
+ dt.order().forEach(function(data) {
221
  order.push({
222
  column: columns[data[0]].data,
223
  order: data[1]
backend/modules/services/resources/js/services-list.js CHANGED
@@ -110,7 +110,7 @@ jQuery(function ($) {
110
  }
111
  });
112
  $.each(BooklyL10n.datatables.services.settings.order, function (_, value) {
113
- const index = columns.findIndex(c => c.data === value.column);
114
  if (index !== -1) {
115
  order.push([index, value.order]);
116
  }
@@ -135,7 +135,7 @@ jQuery(function ($) {
135
  data: function (d) {
136
  let data = $.extend({action: 'bookly_get_services', csrf_token: BooklyL10n.csrfToken, filter: {}}, d);
137
 
138
- Object.keys(filters).map(filter => data.filter[filter] = filters[filter].val());
139
 
140
  return data;
141
  }
110
  }
111
  });
112
  $.each(BooklyL10n.datatables.services.settings.order, function (_, value) {
113
+ const index = columns.findIndex(function (c) { return c.data === value.column; });
114
  if (index !== -1) {
115
  order.push([index, value.order]);
116
  }
135
  data: function (d) {
136
  let data = $.extend({action: 'bookly_get_services', csrf_token: BooklyL10n.csrfToken, filter: {}}, d);
137
 
138
+ Object.keys(filters).map(function (filter) {data.filter[filter] = filters[filter].val();});
139
 
140
  return data;
141
  }
backend/modules/sms/resources/js/notifications-list.js CHANGED
@@ -63,7 +63,7 @@ jQuery(function($) {
63
  });
64
 
65
  $.each(BooklyL10n.datatables[BooklyL10n.gateway + '_notifications'].settings.order, function (_, value) {
66
- const index = columns.findIndex(c => c.data === value.column);
67
  if (index !== -1) {
68
  order.push([index, value.order]);
69
  }
@@ -114,7 +114,7 @@ jQuery(function($) {
114
  });
115
  dt.on( 'order', function () {
116
  let order = [];
117
- dt.order().forEach(data => {
118
  order.push({
119
  column: columns[data[0]].data,
120
  order: data[1]
@@ -242,7 +242,7 @@ jQuery(function($) {
242
  $(':checkbox', $testNotificationsList).prop('checked', this.checked);
243
  $(':checkbox:first-child', $testNotificationsList).trigger('change');
244
  })
245
- .on('click', '[for=bookly-check-all-entities]', e => e.stopPropagation())
246
  .on('click', '.btn-success', function () {
247
  var ladda = Ladda.create(this),
248
  data = $(this).closest('form').serializeArray();
@@ -274,7 +274,7 @@ jQuery(function($) {
274
  let $cloneCheck = $check.clone();
275
 
276
  $('label', $cloneCheck).html(notification.name).attr('for', 'bookly-n-' + notification.id)
277
- .on('click', e => e.stopPropagation())
278
  ;
279
  $(':checkbox', $cloneCheck)
280
  .prop('checked', notification.active == '1')
63
  });
64
 
65
  $.each(BooklyL10n.datatables[BooklyL10n.gateway + '_notifications'].settings.order, function (_, value) {
66
+ const index = columns.findIndex(function (c) { return c.data === value.column; });
67
  if (index !== -1) {
68
  order.push([index, value.order]);
69
  }
114
  });
115
  dt.on( 'order', function () {
116
  let order = [];
117
+ dt.order().forEach(function(data ) {
118
  order.push({
119
  column: columns[data[0]].data,
120
  order: data[1]
242
  $(':checkbox', $testNotificationsList).prop('checked', this.checked);
243
  $(':checkbox:first-child', $testNotificationsList).trigger('change');
244
  })
245
+ .on('click', '[for=bookly-check-all-entities]', function(e) { e.stopPropagation(); })
246
  .on('click', '.btn-success', function () {
247
  var ladda = Ladda.create(this),
248
  data = $(this).closest('form').serializeArray();
274
  let $cloneCheck = $check.clone();
275
 
276
  $('label', $cloneCheck).html(notification.name).attr('for', 'bookly-n-' + notification.id)
277
+ .on('click', function(e) { e.stopPropagation(); })
278
  ;
279
  $(':checkbox', $cloneCheck)
280
  .prop('checked', notification.active == '1')
backend/modules/staff/resources/js/staff-list.js CHANGED
@@ -76,7 +76,7 @@ jQuery(function ($) {
76
  });
77
  let order = [];
78
  $.each(BooklyL10n.datatables.staff_members.settings.order, function (key, value) {
79
- const index = columns.findIndex(c => c.data === value.column);
80
  if (index !== -1) {
81
  order.push([index, value.order]);
82
  }
@@ -101,7 +101,7 @@ jQuery(function ($) {
101
  data: function (d) {
102
  let data = $.extend({action: 'bookly_get_staff_list', csrf_token: BooklyL10n.csrfToken, filter: {}}, d);
103
 
104
- Object.keys(filters).map(filter => {
105
  if (filter == 'archived') {
106
  data.filter[filter] = filters[filter].prop('checked') ? 1 : 0;
107
  } else {
76
  });
77
  let order = [];
78
  $.each(BooklyL10n.datatables.staff_members.settings.order, function (key, value) {
79
+ const index = columns.findIndex(function (c) { return c.data === value.column; });
80
  if (index !== -1) {
81
  order.push([index, value.order]);
82
  }
101
  data: function (d) {
102
  let data = $.extend({action: 'bookly_get_staff_list', csrf_token: BooklyL10n.csrfToken, filter: {}}, d);
103
 
104
+ Object.keys(filters).map(function(filter) {
105
  if (filter == 'archived') {
106
  data.filter[filter] = filters[filter].prop('checked') ? 1 : 0;
107
  } else {
backend/resources/bootstrap/js/bootstrap.min.js CHANGED
@@ -3,4 +3,4 @@
3
  * Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
4
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
5
  */
6
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],e):e((t=t||self).bootstrap={},t.jQuery)}(this,(function(t,e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;function i(t){let i=!1;return e(this).one(n.TRANSITION_END,()=>{i=!0}),setTimeout(()=>{i||n.triggerTransitionEnd(this)},t),this}const n={TRANSITION_END:"bsTransitionEnd",getUID(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},getSelectorFromElement(t){let e=t.getAttribute("data-target");if(!e||"#"===e){const i=t.getAttribute("href");e=i&&"#"!==i?i.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement(t){if(!t)return 0;let i=e(t).css("transition-duration"),n=e(t).css("transition-delay");const s=parseFloat(i),o=parseFloat(n);return s||o?(i=i.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(i)+parseFloat(n))):0},reflow:t=>t.offsetHeight,triggerTransitionEnd(t){e(t).trigger("transitionend")},supportsTransitionEnd:()=>Boolean("transitionend"),isElement:t=>(t[0]||t).nodeType,typeCheckConfig(t,e,i){for(const o in i)if(Object.prototype.hasOwnProperty.call(i,o)){const r=i[o],a=e[o],l=a&&n.isElement(a)?"element":(s=a,{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(r).test(l))throw new Error(`${t.toUpperCase()}: `+`Option "${o}" provided type "${l}" `+`but expected type "${r}".`)}var s},findShadowRoot(t){if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?n.findShadowRoot(t.parentNode):null},jQueryDetection(){if("undefined"==typeof e)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");const t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||t[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};n.jQueryDetection(),e.fn.emulateTransitionEnd=i,e.event.special[n.TRANSITION_END]={bindType:"transitionend",delegateType:"transitionend",handle(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};const s=e.fn.alert,o={CLOSE:"close.bs.alert",CLOSED:"closed.bs.alert",CLICK_DATA_API:"click.bs.alert.data-api"},r="alert",a="fade",l="show";class c{constructor(t){this._element=t}static get VERSION(){return"4.4.1"}close(t){let e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)}dispose(){e.removeData(this._element,"bs.alert"),this._element=null}_getRootElement(t){const i=n.getSelectorFromElement(t);let s=!1;return i&&(s=document.querySelector(i)),s||(s=e(t).closest(`.${r}`)[0]),s}_triggerCloseEvent(t){const i=e.Event(o.CLOSE);return e(t).trigger(i),i}_removeElement(t){if(e(t).removeClass(l),!e(t).hasClass(a))return void this._destroyElement(t);const i=n.getTransitionDurationFromElement(t);e(t).one(n.TRANSITION_END,e=>this._destroyElement(t,e)).emulateTransitionEnd(i)}_destroyElement(t){e(t).detach().trigger(o.CLOSED).remove()}static _jQueryInterface(t){return this.each((function(){const i=e(this);let n=i.data("bs.alert");n||(n=new c(this),i.data("bs.alert",n)),"close"===t&&n[t](this)}))}static _handleDismiss(t){return function(e){e&&e.preventDefault(),t.close(this)}}}e(document).on(o.CLICK_DATA_API,'[data-dismiss="alert"]',c._handleDismiss(new c)),e.fn.alert=c._jQueryInterface,e.fn.alert.Constructor=c,e.fn.alert.noConflict=()=>(e.fn.alert=s,c._jQueryInterface);const h=e.fn.button,d="active",u="btn",f="focus",p='[data-toggle^="button"]',m='[data-toggle="buttons"]',g='[data-toggle="button"]',_='[data-toggle="buttons"] .btn',b='input:not([type="hidden"])',v=".active",y=".btn",E={CLICK_DATA_API:"click.bs.button.data-api",FOCUS_BLUR_DATA_API:"focus.bs.button.data-api blur.bs.button.data-api",LOAD_DATA_API:"load.bs.button.data-api"};class w{constructor(t){this._element=t}static get VERSION(){return"4.4.1"}toggle(){let t=!0,i=!0;const n=e(this._element).closest(m)[0];if(n){const s=this._element.querySelector(b);if(s){if("radio"===s.type)if(s.checked&&this._element.classList.contains(d))t=!1;else{const t=n.querySelector(v);t&&e(t).removeClass(d)}else"checkbox"===s.type?"LABEL"===this._element.tagName&&s.checked===this._element.classList.contains(d)&&(t=!1):t=!1;t&&(s.checked=!this._element.classList.contains(d),e(s).trigger("change")),s.focus(),i=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(i&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(d)),t&&e(this._element).toggleClass(d))}dispose(){e.removeData(this._element,"bs.button"),this._element=null}static _jQueryInterface(t){return this.each((function(){let i=e(this).data("bs.button");i||(i=new w(this),e(this).data("bs.button",i)),"toggle"===t&&i[t]()}))}}e(document).on(E.CLICK_DATA_API,p,t=>{let i=t.target;if(e(i).hasClass(u)||(i=e(i).closest(y)[0]),!i||i.hasAttribute("disabled")||i.classList.contains("disabled"))t.preventDefault();else{const n=i.querySelector(b);if(n&&(n.hasAttribute("disabled")||n.classList.contains("disabled")))return void t.preventDefault();w._jQueryInterface.call(e(i),"toggle")}}).on(E.FOCUS_BLUR_DATA_API,p,t=>{const i=e(t.target).closest(y)[0];e(i).toggleClass(f,/^focus(in)?$/.test(t.type))}),e(window).on(E.LOAD_DATA_API,()=>{let t=[].slice.call(document.querySelectorAll(_));for(let e=0,i=t.length;e<i;e++){const i=t[e],n=i.querySelector(b);n.checked||n.hasAttribute("checked")?i.classList.add(d):i.classList.remove(d)}t=[].slice.call(document.querySelectorAll(g));for(let e=0,i=t.length;e<i;e++){const i=t[e];"true"===i.getAttribute("aria-pressed")?i.classList.add(d):i.classList.remove(d)}}),e.fn.button=w._jQueryInterface,e.fn.button.Constructor=w,e.fn.button.noConflict=()=>(e.fn.button=h,w._jQueryInterface);const T="carousel",C=".bs.carousel",S=e.fn[T],D={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},I={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},A="next",N="prev",O="left",L="right",k={SLIDE:"slide.bs.carousel",SLID:"slid.bs.carousel",KEYDOWN:"keydown.bs.carousel",MOUSEENTER:"mouseenter.bs.carousel",MOUSELEAVE:"mouseleave.bs.carousel",TOUCHSTART:"touchstart.bs.carousel",TOUCHMOVE:"touchmove.bs.carousel",TOUCHEND:"touchend.bs.carousel",POINTERDOWN:"pointerdown.bs.carousel",POINTERUP:"pointerup.bs.carousel",DRAG_START:"dragstart.bs.carousel",LOAD_DATA_API:"load.bs.carousel.data-api",CLICK_DATA_API:"click.bs.carousel.data-api"},x="carousel",P="active",H="slide",j="carousel-item-right",R="carousel-item-left",F="carousel-item-next",M="carousel-item-prev",W="pointer-event",U=".active",q=".active.carousel-item",B=".carousel-item",$=".carousel-item img",K=".carousel-item-next, .carousel-item-prev",Q=".carousel-indicators",V="[data-slide], [data-slide-to]",Y='[data-ride="carousel"]',z={TOUCH:"touch",PEN:"pen"};class X{constructor(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._element=t,this._indicatorsElement=this._element.querySelector(Q),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}static get VERSION(){return"4.4.1"}static get Default(){return D}next(){this._isSliding||this._slide(A)}nextWhenVisible(){!document.hidden&&e(this._element).is(":visible")&&"hidden"!==e(this._element).css("visibility")&&this.next()}prev(){this._isSliding||this._slide(N)}pause(t){t||(this._isPaused=!0),this._element.querySelector(K)&&(n.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(t){this._activeElement=this._element.querySelector(q);const i=this._getItemIndex(this._activeElement);if(t>this._items.length-1||t<0)return;if(this._isSliding)return void e(this._element).one(k.SLID,()=>this.to(t));if(i===t)return this.pause(),void this.cycle();const n=t>i?A:N;this._slide(n,this._items[t])}dispose(){e(this._element).off(C),e.removeData(this._element,"bs.carousel"),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null}_getConfig(t){return t={...D,...t},n.typeCheckConfig(T,t,I),t}_handleSwipe(){const t=Math.abs(this.touchDeltaX);if(t<=40)return;const e=t/this.touchDeltaX;this.touchDeltaX=0,e>0&&this.prev(),e<0&&this.next()}_addEventListeners(){this._config.keyboard&&e(this._element).on(k.KEYDOWN,t=>this._keydown(t)),"hover"===this._config.pause&&e(this._element).on(k.MOUSEENTER,t=>this.pause(t)).on(k.MOUSELEAVE,t=>this.cycle(t)),this._config.touch&&this._addTouchEventListeners()}_addTouchEventListeners(){if(!this._touchSupported)return;const t=t=>{this._pointerEvent&&z[t.originalEvent.pointerType.toUpperCase()]?this.touchStartX=t.originalEvent.clientX:this._pointerEvent||(this.touchStartX=t.originalEvent.touches[0].clientX)},i=t=>{t.originalEvent.touches&&t.originalEvent.touches.length>1?this.touchDeltaX=0:this.touchDeltaX=t.originalEvent.touches[0].clientX-this.touchStartX},n=t=>{this._pointerEvent&&z[t.originalEvent.pointerType.toUpperCase()]&&(this.touchDeltaX=t.originalEvent.clientX-this.touchStartX),this._handleSwipe(),"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(t=>this.cycle(t),500+this._config.interval))};e(this._element.querySelectorAll($)).on(k.DRAG_START,t=>t.preventDefault()),this._pointerEvent?(e(this._element).on(k.POINTERDOWN,e=>t(e)),e(this._element).on(k.POINTERUP,t=>n(t)),this._element.classList.add(W)):(e(this._element).on(k.TOUCHSTART,e=>t(e)),e(this._element).on(k.TOUCHMOVE,t=>i(t)),e(this._element).on(k.TOUCHEND,t=>n(t)))}_keydown(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}}_getItemIndex(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(B)):[],this._items.indexOf(t)}_getItemByDirection(t,e){const i=t===A,n=t===N,s=this._getItemIndex(e),o=this._items.length-1;if((n&&0===s||i&&s===o)&&!this._config.wrap)return e;const r=(s+(t===N?-1:1))%this._items.length;return-1===r?this._items[this._items.length-1]:this._items[r]}_triggerSlideEvent(t,i){const n=this._getItemIndex(t),s=this._getItemIndex(this._element.querySelector(q)),o=e.Event(k.SLIDE,{relatedTarget:t,direction:i,from:s,to:n});return e(this._element).trigger(o),o}_setActiveIndicatorElement(t){if(this._indicatorsElement){const i=[].slice.call(this._indicatorsElement.querySelectorAll(U));e(i).removeClass(P);const n=this._indicatorsElement.children[this._getItemIndex(t)];n&&e(n).addClass(P)}}_slide(t,i){const s=this._element.querySelector(q),o=this._getItemIndex(s),r=i||s&&this._getItemByDirection(t,s),a=this._getItemIndex(r),l=Boolean(this._interval);let c,h,d;if(t===A?(c=R,h=F,d=O):(c=j,h=M,d=L),r&&e(r).hasClass(P))return void(this._isSliding=!1);if(this._triggerSlideEvent(r,d).isDefaultPrevented())return;if(!s||!r)return;this._isSliding=!0,l&&this.pause(),this._setActiveIndicatorElement(r);const u=e.Event(k.SLID,{relatedTarget:r,direction:d,from:o,to:a});if(e(this._element).hasClass(H)){e(r).addClass(h),n.reflow(r),e(s).addClass(c),e(r).addClass(c);const t=parseInt(r.getAttribute("data-interval"),10);t?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=t):this._config.interval=this._config.defaultInterval||this._config.interval;const i=n.getTransitionDurationFromElement(s);e(s).one(n.TRANSITION_END,()=>{e(r).removeClass(`${c} ${h}`).addClass(P),e(s).removeClass(`${P} ${h} ${c}`),this._isSliding=!1,setTimeout(()=>e(this._element).trigger(u),0)}).emulateTransitionEnd(i)}else e(s).removeClass(P),e(r).addClass(P),this._isSliding=!1,e(this._element).trigger(u);l&&this.cycle()}static _jQueryInterface(t){return this.each((function(){let i=e(this).data("bs.carousel"),n={...D,...e(this).data()};"object"==typeof t&&(n={...n,...t});const s="string"==typeof t?t:n.slide;if(i||(i=new X(this,n),e(this).data("bs.carousel",i)),"number"==typeof t)i.to(t);else if("string"==typeof s){if("undefined"==typeof i[s])throw new TypeError(`No method named "${s}"`);i[s]()}else n.interval&&n.ride&&(i.pause(),i.cycle())}))}static _dataApiClickHandler(t){const i=n.getSelectorFromElement(this);if(!i)return;const s=e(i)[0];if(!s||!e(s).hasClass(x))return;const o={...e(s).data(),...e(this).data()},r=this.getAttribute("data-slide-to");r&&(o.interval=!1),X._jQueryInterface.call(e(s),o),r&&e(s).data("bs.carousel").to(r),t.preventDefault()}}e(document).on(k.CLICK_DATA_API,V,X._dataApiClickHandler),e(window).on(k.LOAD_DATA_API,()=>{const t=[].slice.call(document.querySelectorAll(Y));for(let i=0,n=t.length;i<n;i++){const n=e(t[i]);X._jQueryInterface.call(n,n.data())}}),e.fn[T]=X._jQueryInterface,e.fn[T].Constructor=X,e.fn[T].noConflict=()=>(e.fn[T]=S,X._jQueryInterface);const G="collapse",J=e.fn[G],Z={toggle:!0,parent:""},tt={toggle:"boolean",parent:"(string|element)"},et={SHOW:"show.bs.collapse",SHOWN:"shown.bs.collapse",HIDE:"hide.bs.collapse",HIDDEN:"hidden.bs.collapse",CLICK_DATA_API:"click.bs.collapse.data-api"},it="show",nt="collapse",st="collapsing",ot="collapsed",rt="width",at="height",lt=".show, .collapsing",ct='[data-toggle="collapse"]';class ht{constructor(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=[].slice.call(document.querySelectorAll(`[data-toggle="collapse"][href="#${t.id}"],`+`[data-toggle="collapse"][data-target="#${t.id}"]`));const i=[].slice.call(document.querySelectorAll(ct));for(let e=0,s=i.length;e<s;e++){const s=i[e],o=n.getSelectorFromElement(s),r=[].slice.call(document.querySelectorAll(o)).filter(e=>e===t);null!==o&&r.length>0&&(this._selector=o,this._triggerArray.push(s))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}static get VERSION(){return"4.4.1"}static get Default(){return Z}toggle(){e(this._element).hasClass(it)?this.hide():this.show()}show(){if(this._isTransitioning||e(this._element).hasClass(it))return;let t,i;if(this._parent&&(t=[].slice.call(this._parent.querySelectorAll(lt)).filter(t=>"string"==typeof this._config.parent?t.getAttribute("data-parent")===this._config.parent:t.classList.contains(nt)),0===t.length&&(t=null)),t&&(i=e(t).not(this._selector).data("bs.collapse"),i&&i._isTransitioning))return;const s=e.Event(et.SHOW);if(e(this._element).trigger(s),s.isDefaultPrevented())return;t&&(ht._jQueryInterface.call(e(t).not(this._selector),"hide"),i||e(t).data("bs.collapse",null));const o=this._getDimension();e(this._element).removeClass(nt).addClass(st),this._element.style[o]=0,this._triggerArray.length&&e(this._triggerArray).removeClass(ot).attr("aria-expanded",!0),this.setTransitioning(!0);const r=`scroll${o[0].toUpperCase()+o.slice(1)}`,a=n.getTransitionDurationFromElement(this._element);e(this._element).one(n.TRANSITION_END,()=>{e(this._element).removeClass(st).addClass(nt).addClass(it),this._element.style[o]="",this.setTransitioning(!1),e(this._element).trigger(et.SHOWN)}).emulateTransitionEnd(a),this._element.style[o]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!e(this._element).hasClass(it))return;const t=e.Event(et.HIDE);if(e(this._element).trigger(t),t.isDefaultPrevented())return;const i=this._getDimension();this._element.style[i]=`${this._element.getBoundingClientRect()[i]}px`,n.reflow(this._element),e(this._element).addClass(st).removeClass(nt).removeClass(it);const s=this._triggerArray.length;if(s>0)for(let t=0;t<s;t++){const i=this._triggerArray[t],s=n.getSelectorFromElement(i);if(null!==s){e([].slice.call(document.querySelectorAll(s))).hasClass(it)||e(i).addClass(ot).attr("aria-expanded",!1)}}this.setTransitioning(!0);this._element.style[i]="";const o=n.getTransitionDurationFromElement(this._element);e(this._element).one(n.TRANSITION_END,()=>{this.setTransitioning(!1),e(this._element).removeClass(st).addClass(nt).trigger(et.HIDDEN)}).emulateTransitionEnd(o)}setTransitioning(t){this._isTransitioning=t}dispose(){e.removeData(this._element,"bs.collapse"),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null}_getConfig(t){return(t={...Z,...t}).toggle=Boolean(t.toggle),n.typeCheckConfig(G,t,tt),t}_getDimension(){return e(this._element).hasClass(rt)?rt:at}_getParent(){let t;n.isElement(this._config.parent)?(t=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(t=this._config.parent[0])):t=document.querySelector(this._config.parent);const i=`[data-toggle="collapse"][data-parent="${this._config.parent}"]`,s=[].slice.call(t.querySelectorAll(i));return e(s).each((t,e)=>{this._addAriaAndCollapsedClass(ht._getTargetFromElement(e),[e])}),t}_addAriaAndCollapsedClass(t,i){const n=e(t).hasClass(it);i.length&&e(i).toggleClass(ot,!n).attr("aria-expanded",n)}static _getTargetFromElement(t){const e=n.getSelectorFromElement(t);return e?document.querySelector(e):null}static _jQueryInterface(t){return this.each((function(){const i=e(this);let n=i.data("bs.collapse");const s={...Z,...i.data(),..."object"==typeof t&&t?t:{}};if(!n&&s.toggle&&/show|hide/.test(t)&&(s.toggle=!1),n||(n=new ht(this,s),i.data("bs.collapse",n)),"string"==typeof t){if("undefined"==typeof n[t])throw new TypeError(`No method named "${t}"`);n[t]()}}))}}e(document).on(et.CLICK_DATA_API,ct,(function(t){"A"===t.currentTarget.tagName&&t.preventDefault();const i=e(this),s=n.getSelectorFromElement(this),o=[].slice.call(document.querySelectorAll(s));e(o).each((function(){const t=e(this),n=t.data("bs.collapse")?"toggle":i.data();ht._jQueryInterface.call(t,n)}))})),e.fn[G]=ht._jQueryInterface,e.fn[G].Constructor=ht,e.fn[G].noConflict=()=>(e.fn[G]=J,ht._jQueryInterface);var dt="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,ut=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(dt&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}();var ft=dt&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),ut))}};function pt(t){return t&&"[object Function]"==={}.toString.call(t)}function mt(t,e){if(1!==t.nodeType)return[];var i=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?i[e]:i}function gt(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function _t(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=mt(t),i=e.overflow,n=e.overflowX,s=e.overflowY;return/(auto|scroll|overlay)/.test(i+s+n)?t:_t(gt(t))}function bt(t){return t&&t.referenceNode?t.referenceNode:t}var vt=dt&&!(!window.MSInputMethodContext||!document.documentMode),yt=dt&&/MSIE 10/.test(navigator.userAgent);function Et(t){return 11===t?vt:10===t?yt:vt||yt}function wt(t){if(!t)return document.documentElement;for(var e=Et(10)?document.body:null,i=t.offsetParent||null;i===e&&t.nextElementSibling;)i=(t=t.nextElementSibling).offsetParent;var n=i&&i.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TH","TD","TABLE"].indexOf(i.nodeName)&&"static"===mt(i,"position")?wt(i):i:t?t.ownerDocument.documentElement:document.documentElement}function Tt(t){return null!==t.parentNode?Tt(t.parentNode):t}function Ct(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var i=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,n=i?t:e,s=i?e:t,o=document.createRange();o.setStart(n,0),o.setEnd(s,0);var r,a,l=o.commonAncestorContainer;if(t!==l&&e!==l||n.contains(s))return"BODY"===(a=(r=l).nodeName)||"HTML"!==a&&wt(r.firstElementChild)!==r?wt(l):l;var c=Tt(t);return c.host?Ct(c.host,e):Ct(t,Tt(e).host)}function St(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",i="top"===e?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"===n||"HTML"===n){var s=t.ownerDocument.documentElement,o=t.ownerDocument.scrollingElement||s;return o[i]}return t[i]}function Dt(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=St(e,"top"),s=St(e,"left"),o=i?-1:1;return t.top+=n*o,t.bottom+=n*o,t.left+=s*o,t.right+=s*o,t}function It(t,e){var i="x"===e?"Left":"Top",n="Left"===i?"Right":"Bottom";return parseFloat(t["border"+i+"Width"])+parseFloat(t["border"+n+"Width"])}function At(t,e,i,n){return Math.max(e["offset"+t],e["scroll"+t],i["client"+t],i["offset"+t],i["scroll"+t],Et(10)?parseInt(i["offset"+t])+parseInt(n["margin"+("Height"===t?"Top":"Left")])+parseInt(n["margin"+("Height"===t?"Bottom":"Right")]):0)}function Nt(t){var e=t.body,i=t.documentElement,n=Et(10)&&getComputedStyle(i);return{height:At("Height",e,i,n),width:At("Width",e,i,n)}}var Ot=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},Lt=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),kt=function(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t},xt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t};function Pt(t){return xt({},t,{right:t.left+t.width,bottom:t.top+t.height})}function Ht(t){var e={};try{if(Et(10)){e=t.getBoundingClientRect();var i=St(t,"top"),n=St(t,"left");e.top+=i,e.left+=n,e.bottom+=i,e.right+=n}else e=t.getBoundingClientRect()}catch(t){}var s={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},o="HTML"===t.nodeName?Nt(t.ownerDocument):{},r=o.width||t.clientWidth||s.width,a=o.height||t.clientHeight||s.height,l=t.offsetWidth-r,c=t.offsetHeight-a;if(l||c){var h=mt(t);l-=It(h,"x"),c-=It(h,"y"),s.width-=l,s.height-=c}return Pt(s)}function jt(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=Et(10),s="HTML"===e.nodeName,o=Ht(t),r=Ht(e),a=_t(t),l=mt(e),c=parseFloat(l.borderTopWidth),h=parseFloat(l.borderLeftWidth);i&&s&&(r.top=Math.max(r.top,0),r.left=Math.max(r.left,0));var d=Pt({top:o.top-r.top-c,left:o.left-r.left-h,width:o.width,height:o.height});if(d.marginTop=0,d.marginLeft=0,!n&&s){var u=parseFloat(l.marginTop),f=parseFloat(l.marginLeft);d.top-=c-u,d.bottom-=c-u,d.left-=h-f,d.right-=h-f,d.marginTop=u,d.marginLeft=f}return(n&&!i?e.contains(a):e===a&&"BODY"!==a.nodeName)&&(d=Dt(d,e)),d}function Rt(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=t.ownerDocument.documentElement,n=jt(t,i),s=Math.max(i.clientWidth,window.innerWidth||0),o=Math.max(i.clientHeight,window.innerHeight||0),r=e?0:St(i),a=e?0:St(i,"left"),l={top:r-n.top+n.marginTop,left:a-n.left+n.marginLeft,width:s,height:o};return Pt(l)}function Ft(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===mt(t,"position"))return!0;var i=gt(t);return!!i&&Ft(i)}function Mt(t){if(!t||!t.parentElement||Et())return document.documentElement;for(var e=t.parentElement;e&&"none"===mt(e,"transform");)e=e.parentElement;return e||document.documentElement}function Wt(t,e,i,n){var s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},r=s?Mt(t):Ct(t,bt(e));if("viewport"===n)o=Rt(r,s);else{var a=void 0;"scrollParent"===n?"BODY"===(a=_t(gt(e))).nodeName&&(a=t.ownerDocument.documentElement):a="window"===n?t.ownerDocument.documentElement:n;var l=jt(a,r,s);if("HTML"!==a.nodeName||Ft(r))o=l;else{var c=Nt(t.ownerDocument),h=c.height,d=c.width;o.top+=l.top-l.marginTop,o.bottom=h+l.top,o.left+=l.left-l.marginLeft,o.right=d+l.left}}var u="number"==typeof(i=i||0);return o.left+=u?i:i.left||0,o.top+=u?i:i.top||0,o.right-=u?i:i.right||0,o.bottom-=u?i:i.bottom||0,o}function Ut(t){return t.width*t.height}function qt(t,e,i,n,s){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var r=Wt(i,n,o,s),a={top:{width:r.width,height:e.top-r.top},right:{width:r.right-e.right,height:r.height},bottom:{width:r.width,height:r.bottom-e.bottom},left:{width:e.left-r.left,height:r.height}},l=Object.keys(a).map((function(t){return xt({key:t},a[t],{area:Ut(a[t])})})).sort((function(t,e){return e.area-t.area})),c=l.filter((function(t){var e=t.width,n=t.height;return e>=i.clientWidth&&n>=i.clientHeight})),h=c.length>0?c[0].key:l[0].key,d=t.split("-")[1];return h+(d?"-"+d:"")}function Bt(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=n?Mt(e):Ct(e,bt(i));return jt(i,s,n)}function $t(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),i=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),n=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+n,height:t.offsetHeight+i}}function Kt(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function Qt(t,e,i){i=i.split("-")[0];var n=$t(t),s={width:n.width,height:n.height},o=-1!==["right","left"].indexOf(i),r=o?"top":"left",a=o?"left":"top",l=o?"height":"width",c=o?"width":"height";return s[r]=e[r]+e[l]/2-n[l]/2,s[a]=i===a?e[a]-n[c]:e[Kt(a)],s}function Vt(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function Yt(t,e,i){return(void 0===i?t:t.slice(0,function(t,e,i){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===i}));var n=Vt(t,(function(t){return t[e]===i}));return t.indexOf(n)}(t,"name",i))).forEach((function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var i=t.function||t.fn;t.enabled&&pt(i)&&(e.offsets.popper=Pt(e.offsets.popper),e.offsets.reference=Pt(e.offsets.reference),e=i(e,t))})),e}function zt(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=Bt(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=qt(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=Qt(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=Yt(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function Xt(t,e){return t.some((function(t){var i=t.name;return t.enabled&&i===e}))}function Gt(t){for(var e=[!1,"ms","Webkit","Moz","O"],i=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<e.length;n++){var s=e[n],o=s?""+s+i:t;if("undefined"!=typeof document.body.style[o])return o}return null}function Jt(){return this.state.isDestroyed=!0,Xt(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[Gt("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function Zt(t){var e=t.ownerDocument;return e?e.defaultView:window}function te(t,e,i,n){i.updateBound=n,Zt(t).addEventListener("resize",i.updateBound,{passive:!0});var s=_t(t);return function t(e,i,n,s){var o="BODY"===e.nodeName,r=o?e.ownerDocument.defaultView:e;r.addEventListener(i,n,{passive:!0}),o||t(_t(r.parentNode),i,n,s),s.push(r)}(s,"scroll",i.updateBound,i.scrollParents),i.scrollElement=s,i.eventsEnabled=!0,i}function ee(){this.state.eventsEnabled||(this.state=te(this.reference,this.options,this.state,this.scheduleUpdate))}function ie(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,Zt(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.updateBound)})),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function ne(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function se(t,e){Object.keys(e).forEach((function(i){var n="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&ne(e[i])&&(n="px"),t.style[i]=e[i]+n}))}var oe=dt&&/Firefox/i.test(navigator.userAgent);function re(t,e,i){var n=Vt(t,(function(t){return t.name===e})),s=!!n&&t.some((function(t){return t.name===i&&t.enabled&&t.order<n.order}));if(!s){var o="`"+e+"`",r="`"+i+"`";console.warn(r+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return s}var ae=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],le=ae.slice(3);function ce(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=le.indexOf(t),n=le.slice(i+1).concat(le.slice(0,i));return e?n.reverse():n}var he="flip",de="clockwise",ue="counterclockwise";function fe(t,e,i,n){var s=[0,0],o=-1!==["right","left"].indexOf(n),r=t.split(/(\+|\-)/).map((function(t){return t.trim()})),a=r.indexOf(Vt(r,(function(t){return-1!==t.search(/,|\s/)})));r[a]&&-1===r[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==a?[r.slice(0,a).concat([r[a].split(l)[0]]),[r[a].split(l)[1]].concat(r.slice(a+1))]:[r];return(c=c.map((function(t,n){var s=(1===n?!o:o)?"height":"width",r=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,r=!0,t):r?(t[t.length-1]+=e,r=!1,t):t.concat(e)}),[]).map((function(t){return function(t,e,i,n){var s=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+s[1],r=s[2];if(!o)return t;if(0===r.indexOf("%")){var a=void 0;switch(r){case"%p":a=i;break;case"%":case"%r":default:a=n}return Pt(a)[e]/100*o}if("vh"===r||"vw"===r){return("vh"===r?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o}return o}(t,s,e,i)}))}))).forEach((function(t,e){t.forEach((function(i,n){ne(i)&&(s[e]+=i*("-"===t[n-1]?-1:1))}))})),s}var pe={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,i=e.split("-")[0],n=e.split("-")[1];if(n){var s=t.offsets,o=s.reference,r=s.popper,a=-1!==["bottom","top"].indexOf(i),l=a?"left":"top",c=a?"width":"height",h={start:kt({},l,o[l]),end:kt({},l,o[l]+o[c]-r[c])};t.offsets.popper=xt({},r,h[n])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var i=e.offset,n=t.placement,s=t.offsets,o=s.popper,r=s.reference,a=n.split("-")[0],l=void 0;return l=ne(+i)?[+i,0]:fe(i,o,r,a),"left"===a?(o.top+=l[0],o.left-=l[1]):"right"===a?(o.top+=l[0],o.left+=l[1]):"top"===a?(o.left+=l[0],o.top-=l[1]):"bottom"===a&&(o.left+=l[0],o.top+=l[1]),t.popper=o,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var i=e.boundariesElement||wt(t.instance.popper);t.instance.reference===i&&(i=wt(i));var n=Gt("transform"),s=t.instance.popper.style,o=s.top,r=s.left,a=s[n];s.top="",s.left="",s[n]="";var l=Wt(t.instance.popper,t.instance.reference,e.padding,i,t.positionFixed);s.top=o,s.left=r,s[n]=a,e.boundaries=l;var c=e.priority,h=t.offsets.popper,d={primary:function(t){var i=h[t];return h[t]<l[t]&&!e.escapeWithReference&&(i=Math.max(h[t],l[t])),kt({},t,i)},secondary:function(t){var i="right"===t?"left":"top",n=h[i];return h[t]>l[t]&&!e.escapeWithReference&&(n=Math.min(h[i],l[t]-("right"===t?h.width:h.height))),kt({},i,n)}};return c.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";h=xt({},h,d[e](t))})),t.offsets.popper=h,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,i=e.popper,n=e.reference,s=t.placement.split("-")[0],o=Math.floor,r=-1!==["top","bottom"].indexOf(s),a=r?"right":"bottom",l=r?"left":"top",c=r?"width":"height";return i[a]<o(n[l])&&(t.offsets.popper[l]=o(n[l])-i[c]),i[l]>o(n[a])&&(t.offsets.popper[l]=o(n[a])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var i;if(!re(t.instance.modifiers,"arrow","keepTogether"))return t;var n=e.element;if("string"==typeof n){if(!(n=t.instance.popper.querySelector(n)))return t}else if(!t.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var s=t.placement.split("-")[0],o=t.offsets,r=o.popper,a=o.reference,l=-1!==["left","right"].indexOf(s),c=l?"height":"width",h=l?"Top":"Left",d=h.toLowerCase(),u=l?"left":"top",f=l?"bottom":"right",p=$t(n)[c];a[f]-p<r[d]&&(t.offsets.popper[d]-=r[d]-(a[f]-p)),a[d]+p>r[f]&&(t.offsets.popper[d]+=a[d]+p-r[f]),t.offsets.popper=Pt(t.offsets.popper);var m=a[d]+a[c]/2-p/2,g=mt(t.instance.popper),_=parseFloat(g["margin"+h]),b=parseFloat(g["border"+h+"Width"]),v=m-t.offsets.popper[d]-_-b;return v=Math.max(Math.min(r[c]-p,v),0),t.arrowElement=n,t.offsets.arrow=(kt(i={},d,Math.round(v)),kt(i,u,""),i),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(Xt(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var i=Wt(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),n=t.placement.split("-")[0],s=Kt(n),o=t.placement.split("-")[1]||"",r=[];switch(e.behavior){case he:r=[n,s];break;case de:r=ce(n);break;case ue:r=ce(n,!0);break;default:r=e.behavior}return r.forEach((function(a,l){if(n!==a||r.length===l+1)return t;n=t.placement.split("-")[0],s=Kt(n);var c=t.offsets.popper,h=t.offsets.reference,d=Math.floor,u="left"===n&&d(c.right)>d(h.left)||"right"===n&&d(c.left)<d(h.right)||"top"===n&&d(c.bottom)>d(h.top)||"bottom"===n&&d(c.top)<d(h.bottom),f=d(c.left)<d(i.left),p=d(c.right)>d(i.right),m=d(c.top)<d(i.top),g=d(c.bottom)>d(i.bottom),_="left"===n&&f||"right"===n&&p||"top"===n&&m||"bottom"===n&&g,b=-1!==["top","bottom"].indexOf(n),v=!!e.flipVariations&&(b&&"start"===o&&f||b&&"end"===o&&p||!b&&"start"===o&&m||!b&&"end"===o&&g),y=!!e.flipVariationsByContent&&(b&&"start"===o&&p||b&&"end"===o&&f||!b&&"start"===o&&g||!b&&"end"===o&&m),E=v||y;(u||_||E)&&(t.flipped=!0,(u||_)&&(n=r[l+1]),E&&(o=function(t){return"end"===t?"start":"start"===t?"end":t}(o)),t.placement=n+(o?"-"+o:""),t.offsets.popper=xt({},t.offsets.popper,Qt(t.instance.popper,t.offsets.reference,t.placement)),t=Yt(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,i=e.split("-")[0],n=t.offsets,s=n.popper,o=n.reference,r=-1!==["left","right"].indexOf(i),a=-1===["top","left"].indexOf(i);return s[r?"left":"top"]=o[i]-(a?s[r?"width":"height"]:0),t.placement=Kt(e),t.offsets.popper=Pt(s),t}},hide:{order:800,enabled:!0,fn:function(t){if(!re(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,i=Vt(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottom<i.top||e.left>i.right||e.top>i.bottom||e.right<i.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var i=e.x,n=e.y,s=t.offsets.popper,o=Vt(t.instance.modifiers,(function(t){return"applyStyle"===t.name})).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var r=void 0!==o?o:e.gpuAcceleration,a=wt(t.instance.popper),l=Ht(a),c={position:s.position},h=function(t,e){var i=t.offsets,n=i.popper,s=i.reference,o=Math.round,r=Math.floor,a=function(t){return t},l=o(s.width),c=o(n.width),h=-1!==["left","right"].indexOf(t.placement),d=-1!==t.placement.indexOf("-"),u=e?h||d||l%2==c%2?o:r:a,f=e?o:a;return{left:u(l%2==1&&c%2==1&&!d&&e?n.left-1:n.left),top:f(n.top),bottom:f(n.bottom),right:u(n.right)}}(t,window.devicePixelRatio<2||!oe),d="bottom"===i?"top":"bottom",u="right"===n?"left":"right",f=Gt("transform"),p=void 0,m=void 0;if(m="bottom"===d?"HTML"===a.nodeName?-a.clientHeight+h.bottom:-l.height+h.bottom:h.top,p="right"===u?"HTML"===a.nodeName?-a.clientWidth+h.right:-l.width+h.right:h.left,r&&f)c[f]="translate3d("+p+"px, "+m+"px, 0)",c[d]=0,c[u]=0,c.willChange="transform";else{var g="bottom"===d?-1:1,_="right"===u?-1:1;c[d]=m*g,c[u]=p*_,c.willChange=d+", "+u}var b={"x-placement":t.placement};return t.attributes=xt({},b,t.attributes),t.styles=xt({},c,t.styles),t.arrowStyles=xt({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,i;return se(t.instance.popper,t.styles),e=t.instance.popper,i=t.attributes,Object.keys(i).forEach((function(t){!1!==i[t]?e.setAttribute(t,i[t]):e.removeAttribute(t)})),t.arrowElement&&Object.keys(t.arrowStyles).length&&se(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,i,n,s){var o=Bt(s,e,t,i.positionFixed),r=qt(i.placement,o,e,t,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding);return e.setAttribute("x-placement",r),se(e,{position:i.positionFixed?"fixed":"absolute"}),i},gpuAcceleration:void 0}}},me=function(){function t(e,i){var n=this,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ot(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=ft(this.update.bind(this)),this.options=xt({},t.Defaults,s),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=i&&i.jquery?i[0]:i,this.options.modifiers={},Object.keys(xt({},t.Defaults.modifiers,s.modifiers)).forEach((function(e){n.options.modifiers[e]=xt({},t.Defaults.modifiers[e]||{},s.modifiers?s.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return xt({name:t},n.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&pt(t.onLoad)&&t.onLoad(n.reference,n.popper,n.options,t,n.state)})),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return Lt(t,[{key:"update",value:function(){return zt.call(this)}},{key:"destroy",value:function(){return Jt.call(this)}},{key:"enableEventListeners",value:function(){return ee.call(this)}},{key:"disableEventListeners",value:function(){return ie.call(this)}}]),t}();me.Utils=("undefined"!=typeof window?window:global).PopperUtils,me.placements=ae,me.Defaults=pe;const ge="dropdown",_e=e.fn[ge],be=new RegExp("38|40|27"),ve={HIDE:"hide.bs.dropdown",HIDDEN:"hidden.bs.dropdown",SHOW:"show.bs.dropdown",SHOWN:"shown.bs.dropdown",CLICK:"click.bs.dropdown",CLICK_DATA_API:"click.bs.dropdown.data-api",KEYDOWN_DATA_API:"keydown.bs.dropdown.data-api",KEYUP_DATA_API:"keyup.bs.dropdown.data-api"},ye="disabled",Ee="show",we="dropup",Te="dropright",Ce="dropleft",Se="dropdown-menu-right",De="position-static",Ie='[data-toggle="dropdown"]',Ae=".dropdown form",Ne=".dropdown-menu",Oe=".navbar-nav",Le=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",ke="top-start",xe="top-end",Pe="bottom-start",He="bottom-end",je="right-start",Re="left-start",Fe={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},Me={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"};class We{constructor(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}static get VERSION(){return"4.4.1"}static get Default(){return Fe}static get DefaultType(){return Me}toggle(){if(this._element.disabled||e(this._element).hasClass(ye))return;const t=e(this._menu).hasClass(Ee);We._clearMenus(),t||this.show(!0)}show(t=!1){if(this._element.disabled||e(this._element).hasClass(ye)||e(this._menu).hasClass(Ee))return;const i={relatedTarget:this._element},s=e.Event(ve.SHOW,i),o=We._getParentFromElement(this._element);if(e(o).trigger(s),!s.isDefaultPrevented()){if(!this._inNavbar&&t){if("undefined"==typeof me)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");let t=this._element;"parent"===this._config.reference?t=o:n.isElement(this._config.reference)&&(t=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(t=this._config.reference[0])),"scrollParent"!==this._config.boundary&&e(o).addClass(De),this._popper=new me(t,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===e(o).closest(Oe).length&&e(document.body).children().on("mouseover",null,e.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),e(this._menu).toggleClass(Ee),e(o).toggleClass(Ee).trigger(e.Event(ve.SHOWN,i))}}hide(){if(this._element.disabled||e(this._element).hasClass(ye)||!e(this._menu).hasClass(Ee))return;const t={relatedTarget:this._element},i=e.Event(ve.HIDE,t),n=We._getParentFromElement(this._element);e(n).trigger(i),i.isDefaultPrevented()||(this._popper&&this._popper.destroy(),e(this._menu).toggleClass(Ee),e(n).toggleClass(Ee).trigger(e.Event(ve.HIDDEN,t)))}dispose(){e.removeData(this._element,"bs.dropdown"),e(this._element).off(".bs.dropdown"),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)}update(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()}_addEventListeners(){e(this._element).on(ve.CLICK,t=>{t.preventDefault(),t.stopPropagation(),this.toggle()})}_getConfig(t){return t={...this.constructor.Default,...e(this._element).data(),...t},n.typeCheckConfig(ge,t,this.constructor.DefaultType),t}_getMenuElement(){if(!this._menu){const t=We._getParentFromElement(this._element);t&&(this._menu=t.querySelector(Ne))}return this._menu}_getPlacement(){const t=e(this._element.parentNode);let i=Pe;return t.hasClass(we)?(i=ke,e(this._menu).hasClass(Se)&&(i=xe)):t.hasClass(Te)?i=je:t.hasClass(Ce)?i=Re:e(this._menu).hasClass(Se)&&(i=He),i}_detectNavbar(){return e(this._element).closest(".navbar").length>0}_getOffset(){const t={};return"function"==typeof this._config.offset?t.fn=t=>(t.offsets={...t.offsets,...this._config.offset(t.offsets,this._element)||{}},t):t.offset=this._config.offset,t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),{...t,...this._config.popperConfig}}static _jQueryInterface(t){return this.each((function(){let i=e(this).data("bs.dropdown");if(i||(i=new We(this,"object"==typeof t?t:null),e(this).data("bs.dropdown",i)),"string"==typeof t){if("undefined"==typeof i[t])throw new TypeError(`No method named "${t}"`);i[t]()}}))}static _clearMenus(t){if(t&&(3===t.which||"keyup"===t.type&&9!==t.which))return;const i=[].slice.call(document.querySelectorAll(Ie));for(let n=0,s=i.length;n<s;n++){const s=We._getParentFromElement(i[n]),o=e(i[n]).data("bs.dropdown"),r={relatedTarget:i[n]};if(t&&"click"===t.type&&(r.clickEvent=t),!o)continue;const a=o._menu;if(!e(s).hasClass(Ee))continue;if(t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&9===t.which)&&e.contains(s,t.target))continue;const l=e.Event(ve.HIDE,r);e(s).trigger(l),l.isDefaultPrevented()||("ontouchstart"in document.documentElement&&e(document.body).children().off("mouseover",null,e.noop),i[n].setAttribute("aria-expanded","false"),o._popper&&o._popper.destroy(),e(a).removeClass(Ee),e(s).removeClass(Ee).trigger(e.Event(ve.HIDDEN,r)))}}static _getParentFromElement(t){let e;const i=n.getSelectorFromElement(t);return i&&(e=document.querySelector(i)),e||t.parentNode}static _dataApiKeydownHandler(t){if(/input|textarea/i.test(t.target.tagName)?32===t.which||27!==t.which&&(40!==t.which&&38!==t.which||e(t.target).closest(Ne).length):!be.test(t.which))return;if(t.preventDefault(),t.stopPropagation(),this.disabled||e(this).hasClass(ye))return;const i=We._getParentFromElement(this),n=e(i).hasClass(Ee);if(!n&&27===t.which)return;if(!n||n&&(27===t.which||32===t.which)){if(27===t.which){const t=i.querySelector(Ie);e(t).trigger("focus")}return void e(this).trigger("click")}const s=[].slice.call(i.querySelectorAll(Le)).filter(t=>e(t).is(":visible"));if(0===s.length)return;let o=s.indexOf(t.target);38===t.which&&o>0&&o--,40===t.which&&o<s.length-1&&o++,o<0&&(o=0),s[o].focus()}}e(document).on(ve.KEYDOWN_DATA_API,Ie,We._dataApiKeydownHandler).on(ve.KEYDOWN_DATA_API,Ne,We._dataApiKeydownHandler).on(`${ve.CLICK_DATA_API} ${ve.KEYUP_DATA_API}`,We._clearMenus).on(ve.CLICK_DATA_API,Ie,(function(t){t.preventDefault(),t.stopPropagation(),We._jQueryInterface.call(e(this),"toggle")})).on(ve.CLICK_DATA_API,Ae,t=>{t.stopPropagation()}),e.fn[ge]=We._jQueryInterface,e.fn[ge].Constructor=We,e.fn[ge].noConflict=()=>(e.fn[ge]=_e,We._jQueryInterface);const Ue="booklyModal",qe=e.fn[Ue],Be={backdrop:!0,keyboard:!0,focus:!0,show:!0},$e={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},Ke={HIDE:"hide.bs.modal",HIDE_PREVENTED:"hidePrevented.bs.modal",HIDDEN:"hidden.bs.modal",SHOW:"show.bs.modal",SHOWN:"shown.bs.modal",FOCUSIN:"focusin.bs.modal",RESIZE:"resize.bs.modal",CLICK_DISMISS:"click.dismiss.bs.modal",KEYDOWN_DISMISS:"keydown.dismiss.bs.modal",MOUSEUP_DISMISS:"mouseup.dismiss.bs.modal",MOUSEDOWN_DISMISS:"mousedown.dismiss.bs.modal",CLICK_DATA_API:"click.bs.modal.data-api"},Qe="modal-dialog-scrollable",Ve="modal-scrollbar-measure",Ye="bookly-modal-backdrop",ze="bookly-modal-open",Xe="bookly-fade",Ge="show",Je="modal-static",Ze="modal-faded",ti=".modal-dialog",ei=".modal-body",ii='[data-toggle="bookly-modal"]',ni='[data-dismiss="bookly-modal"]',si=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",oi=".sticky-top",ri=".bookly-modal",ai=".bookly-modal.show";class li{constructor(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(ti),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}static get VERSION(){return"4.4.1"}static get Default(){return Be}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||this._isTransitioning)return;e(this._element).hasClass(Xe)&&(this._isTransitioning=!0);const i=e.Event(Ke.SHOW,{relatedTarget:t});e(this._element).trigger(i),this._isShown||i.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),document.querySelectorAll(ri).forEach(t=>{t.classList.add(Ze)}),this._element.classList.remove(Ze),e(this._element).on(Ke.CLICK_DISMISS,ni,t=>this.hide(t)),e(this._dialog).on(Ke.MOUSEDOWN_DISMISS,()=>{e(this._element).one(Ke.MOUSEUP_DISMISS,t=>{e(t.target).is(this._element)&&(this._ignoreBackdropClick=!0)})}),this._showBackdrop(()=>this._showElement(t)))}hide(t){if(t&&t.preventDefault(),!this._isShown||this._isTransitioning)return;const i=e.Event(Ke.HIDE);if(e(this._element).trigger(i),!this._isShown||i.isDefaultPrevented())return;this._isShown=!1;const s=e(this._element).hasClass(Xe);if(document.querySelectorAll(ri).forEach(t=>{t.classList.remove(Ze)}),s&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),e(document).off(Ke.FOCUSIN),e(this._element).removeClass(Ge),e(this._element).off(Ke.CLICK_DISMISS),e(this._dialog).off(Ke.MOUSEDOWN_DISMISS),s){const t=n.getTransitionDurationFromElement(this._element);e(this._element).one(n.TRANSITION_END,t=>this._hideModal(t)).emulateTransitionEnd(t)}else this._hideModal()}dispose(){[window,this._element,this._dialog].forEach(t=>e(t).off(".bs.modal")),e(document).off(Ke.FOCUSIN),e.removeData(this._element,"bs.modal"),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null}handleUpdate(){this._adjustDialog()}_getConfig(t){return t={...Be,...t},n.typeCheckConfig(Ue,t,$e),t}_triggerBackdropTransition(){if("static"===this._config.backdrop){const t=e.Event(Ke.HIDE_PREVENTED);if(e(this._element).trigger(t),t.defaultPrevented)return;this._element.classList.add(Je);const i=n.getTransitionDurationFromElement(this._element);e(this._element).one(n.TRANSITION_END,()=>{this._element.classList.remove(Je)}).emulateTransitionEnd(i),this._element.focus()}else this.hide()}_showElement(t){const i=e(this._element).hasClass(Xe),s=this._dialog?this._dialog.querySelector(ei):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),e(this._dialog).hasClass(Qe)&&s?s.scrollTop=0:this._element.scrollTop=0,i&&n.reflow(this._element),e(this._element).addClass(Ge),this._config.focus&&this._enforceFocus();const o=e.Event(Ke.SHOWN,{relatedTarget:t}),r=()=>{this._config.focus&&this._element.focus(),this._isTransitioning=!1,e(this._element).trigger(o)};if(i){const t=n.getTransitionDurationFromElement(this._dialog);e(this._dialog).one(n.TRANSITION_END,r).emulateTransitionEnd(t)}else r()}_enforceFocus(){e(document).off(Ke.FOCUSIN).on(Ke.FOCUSIN,t=>{document!==t.target&&this._element!==t.target&&0===e(this._element).has(t.target).length&&this._element.focus()})}_setEscapeEvent(){this._isShown&&this._config.keyboard?e(this._element).on(Ke.KEYDOWN_DISMISS,t=>{27===t.which&&this._triggerBackdropTransition()}):this._isShown||e(this._element).off(Ke.KEYDOWN_DISMISS)}_setResizeEvent(){this._isShown?e(window).on(Ke.RESIZE,t=>this.handleUpdate(t)):e(window).off(Ke.RESIZE)}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._isTransitioning=!1,this._showBackdrop(()=>{0===document.querySelectorAll(ai).length&&e(document.body).removeClass(ze),this._resetAdjustments(),this._resetScrollbar(),e(this._element).trigger(Ke.HIDDEN)})}_removeBackdrop(){this._backdrop&&(e(this._backdrop).remove(),this._backdrop=null)}_showBackdrop(t){const i=e(this._element).hasClass(Xe)?Xe:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=Ye,i&&this._backdrop.classList.add(i),e(this._backdrop).appendTo(document.body),e(this._element).on(Ke.CLICK_DISMISS,t=>{this._ignoreBackdropClick?this._ignoreBackdropClick=!1:t.target===t.currentTarget&&this._triggerBackdropTransition()}),i&&n.reflow(this._backdrop),e(this._backdrop).addClass(Ge),!t)return;if(!i)return void t();const s=n.getTransitionDurationFromElement(this._backdrop);e(this._backdrop).one(n.TRANSITION_END,t).emulateTransitionEnd(s)}else if(!this._isShown&&this._backdrop){e(this._backdrop).removeClass(Ge);const i=()=>{this._removeBackdrop(),t&&t()};if(e(this._element).hasClass(Xe)){const t=n.getTransitionDurationFromElement(this._backdrop);e(this._backdrop).one(n.TRANSITION_END,i).emulateTransitionEnd(t)}else i()}else t&&t()}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=`${this._scrollbarWidth}px`),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=`${this._scrollbarWidth}px`)}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}_checkScrollbar(){const t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()}_setScrollbar(){if(this._isBodyOverflowing){const t=[].slice.call(document.querySelectorAll(si)),i=[].slice.call(document.querySelectorAll(oi));e(t).each((t,i)=>{const n=i.style.paddingRight,s=e(i).css("padding-right");e(i).data("padding-right",n).css("padding-right",`${parseFloat(s)+this._scrollbarWidth}px`)}),e(i).each((t,i)=>{const n=i.style.marginRight,s=e(i).css("margin-right");e(i).data("margin-right",n).css("margin-right",`${parseFloat(s)-this._scrollbarWidth}px`)});const n=document.body.style.paddingRight,s=e(document.body).css("padding-right");e(document.body).data("padding-right",n).css("padding-right",`${parseFloat(s)+this._scrollbarWidth}px`)}e(document.body).addClass(ze)}_resetScrollbar(){const t=[].slice.call(document.querySelectorAll(si));e(t).each((t,i)=>{const n=e(i).data("padding-right");e(i).removeData("padding-right"),i.style.paddingRight=n||""});const i=[].slice.call(document.querySelectorAll(`${oi}`));e(i).each((t,i)=>{const n=e(i).data("margin-right");"undefined"!=typeof n&&e(i).css("margin-right",n).removeData("margin-right")});const n=e(document.body).data("padding-right");e(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""}_getScrollbarWidth(){const t=document.createElement("div");t.className=Ve,document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e}static _jQueryInterface(t,i){return this.each((function(){let n=e(this).data("bs.modal");const s={...Be,...e(this).data(),..."object"==typeof t&&t?t:{}};if(n||(n=new li(this,s),e(this).data("bs.modal",n)),"string"==typeof t){if("undefined"==typeof n[t])throw new TypeError(`No method named "${t}"`);n[t](i)}else s.show&&n.show(i)}))}}e(document).on(Ke.CLICK_DATA_API,ii,(function(t){let i;const s=n.getSelectorFromElement(this);s&&(i=document.querySelector(s));const o=e(i).data("bs.modal")?"toggle":{...e(i).data(),...e(this).data()};"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();const r=e(i).one(Ke.SHOW,t=>{t.isDefaultPrevented()||r.one(Ke.HIDDEN,()=>{e(this).is(":visible")&&this.focus()})});li._jQueryInterface.call(e(i),o,this)})),e.fn[Ue]=li._jQueryInterface,e.fn[Ue].Constructor=li,e.fn[Ue].noConflict=()=>(e.fn[Ue]=qe,li._jQueryInterface);const ci=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],hi={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},di=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,ui=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function fi(t,e){const i=t.nodeName.toLowerCase();if(-1!==e.indexOf(i))return-1===ci.indexOf(i)||Boolean(t.nodeValue.match(di)||t.nodeValue.match(ui));const n=e.filter(t=>t instanceof RegExp);for(let t=0,e=n.length;t<e;t++)if(i.match(n[t]))return!0;return!1}function pi(t,e,i){if(0===t.length)return t;if(i&&"function"==typeof i)return i(t);const n=(new window.DOMParser).parseFromString(t,"text/html"),s=Object.keys(e),o=[].slice.call(n.body.querySelectorAll("*"));for(let t=0,i=o.length;t<i;t++){const i=o[t],n=i.nodeName.toLowerCase();if(-1===s.indexOf(i.nodeName.toLowerCase())){i.parentNode.removeChild(i);continue}const r=[].slice.call(i.attributes),a=[].concat(e["*"]||[],e[n]||[]);r.forEach(t=>{fi(t,a)||i.removeAttribute(t.nodeName)})}return n.body.innerHTML}const mi="tooltip",gi=e.fn.tooltip,_i=new RegExp("(^|\\s)bs-tooltip\\S+","g"),bi=["sanitize","whiteList","sanitizeFn"],vi={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},yi={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},Ei={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:hi,popperConfig:null},wi="show",Ti="out",Ci={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},Si="bookly-fade",Di="show",Ii=".tooltip-inner",Ai=".arrow",Ni="hover",Oi="focus",Li="click",ki="manual";class xi{constructor(t,e){if("undefined"==typeof me)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}static get VERSION(){return"4.4.1"}static get Default(){return Ei}static get NAME(){return mi}static get DATA_KEY(){return"bs.tooltip"}static get Event(){return Ci}static get EVENT_KEY(){return".bs.tooltip"}static get DefaultType(){return vi}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(t){if(this._isEnabled)if(t){const i=this.constructor.DATA_KEY;let n=e(t.currentTarget).data(i);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(i,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(e(this.getTipElement()).hasClass(Di))return void this._leave(null,this);this._enter(null,this)}}dispose(){clearTimeout(this._timeout),e.removeData(this.element,this.constructor.DATA_KEY),e(this.element).off(this.constructor.EVENT_KEY),e(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&e(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null}show(){if("none"===e(this.element).css("display"))throw new Error("Please use show on visible elements");const t=e.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){e(this.element).trigger(t);const i=n.findShadowRoot(this.element),s=e.contains(null!==i?i:this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!s)return;const o=this.getTipElement(),r=n.getUID(this.constructor.NAME);o.setAttribute("id",r),this.element.setAttribute("aria-describedby",r),this.setContent(),this.config.animation&&e(o).addClass(Si);const a="function"==typeof this.config.placement?this.config.placement.call(this,o,this.element):this.config.placement,l=this._getAttachment(a);this.addAttachmentClass(l);const c=this._getContainer();e(o).data(this.constructor.DATA_KEY,this),e.contains(this.element.ownerDocument.documentElement,this.tip)||e(o).appendTo(c),e(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new me(this.element,o,this._getPopperConfig(l)),e(o).addClass(Di),"ontouchstart"in document.documentElement&&e(document.body).children().on("mouseover",null,e.noop);const h=()=>{this.config.animation&&this._fixTransition();const t=this._hoverState;this._hoverState=null,e(this.element).trigger(this.constructor.Event.SHOWN),t===Ti&&this._leave(null,this)};if(e(this.tip).hasClass(Si)){const t=n.getTransitionDurationFromElement(this.tip);e(this.tip).one(n.TRANSITION_END,h).emulateTransitionEnd(t)}else h()}}hide(t){const i=this.getTipElement(),s=e.Event(this.constructor.Event.HIDE),o=()=>{this._hoverState!==wi&&i.parentNode&&i.parentNode.removeChild(i),this._cleanTipClass(),this.element.removeAttribute("aria-describedby"),e(this.element).trigger(this.constructor.Event.HIDDEN),null!==this._popper&&this._popper.destroy(),t&&t()};if(e(this.element).trigger(s),!s.isDefaultPrevented()){if(e(i).removeClass(Di),"ontouchstart"in document.documentElement&&e(document.body).children().off("mouseover",null,e.noop),this._activeTrigger[Li]=!1,this._activeTrigger[Oi]=!1,this._activeTrigger[Ni]=!1,e(this.tip).hasClass(Si)){const t=n.getTransitionDurationFromElement(i);e(i).one(n.TRANSITION_END,o).emulateTransitionEnd(t)}else o();this._hoverState=""}}update(){null!==this._popper&&this._popper.scheduleUpdate()}isWithContent(){return Boolean(this.getTitle())}addAttachmentClass(t){e(this.getTipElement()).addClass(`bs-tooltip-${t}`)}getTipElement(){return this.tip=this.tip||e(this.config.template)[0],this.tip}setContent(){const t=this.getTipElement();this.setElementContent(e(t.querySelectorAll(Ii)),this.getTitle()),e(t).removeClass(`${Si} ${Di}`)}setElementContent(t,i){"object"!=typeof i||!i.nodeType&&!i.jquery?this.config.html?(this.config.sanitize&&(i=pi(i,this.config.whiteList,this.config.sanitizeFn)),t.html(i)):t.text(i):this.config.html?e(i).parent().is(t)||t.empty().append(i):t.text(e(i).text())}getTitle(){let t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t}_getPopperConfig(t){return{...{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:Ai},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:t=>{t.originalPlacement!==t.placement&&this._handlePopperPlacementChange(t)},onUpdate:t=>this._handlePopperPlacementChange(t)},...this.config.popperConfig}}_getOffset(){const t={};return"function"==typeof this.config.offset?t.fn=t=>(t.offsets={...t.offsets,...this.config.offset(t.offsets,this.element)||{}},t):t.offset=this.config.offset,t}_getContainer(){return!1===this.config.container?document.body:n.isElement(this.config.container)?e(this.config.container):e(document).find(this.config.container)}_getAttachment(t){return yi[t.toUpperCase()]}_setListeners(){this.config.trigger.split(" ").forEach(t=>{if("click"===t)e(this.element).on(this.constructor.Event.CLICK,this.config.selector,t=>this.toggle(t));else if(t!==ki){const i=t===Ni?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,n=t===Ni?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;e(this.element).on(i,this.config.selector,t=>this._enter(t)).on(n,this.config.selector,t=>this._leave(t))}}),this._hideModalHandler=()=>{this.element&&this.hide()},e(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config={...this.config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))}_enter(t,i){const n=this.constructor.DATA_KEY;(i=i||e(t.currentTarget).data(n))||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(n,i)),t&&(i._activeTrigger["focusin"===t.type?Oi:Ni]=!0),e(i.getTipElement()).hasClass(Di)||i._hoverState===wi?i._hoverState=wi:(clearTimeout(i._timeout),i._hoverState=wi,i.config.delay&&i.config.delay.show?i._timeout=setTimeout(()=>{i._hoverState===wi&&i.show()},i.config.delay.show):i.show())}_leave(t,i){const n=this.constructor.DATA_KEY;(i=i||e(t.currentTarget).data(n))||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(n,i)),t&&(i._activeTrigger["focusout"===t.type?Oi:Ni]=!1),i._isWithActiveTrigger()||(clearTimeout(i._timeout),i._hoverState=Ti,i.config.delay&&i.config.delay.hide?i._timeout=setTimeout(()=>{i._hoverState===Ti&&i.hide()},i.config.delay.hide):i.hide())}_isWithActiveTrigger(){for(const t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1}_getConfig(t){const i=e(this.element).data();return Object.keys(i).forEach(t=>{-1!==bi.indexOf(t)&&delete i[t]}),"number"==typeof(t={...this.constructor.Default,...i,..."object"==typeof t&&t?t:{}}).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),n.typeCheckConfig(mi,t,this.constructor.DefaultType),t.sanitize&&(t.template=pi(t.template,t.whiteList,t.sanitizeFn)),t}_getDelegateConfig(){const t={};if(this.config)for(const e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t}_cleanTipClass(){const t=e(this.getTipElement()),i=t.attr("class").match(_i);null!==i&&i.length&&t.removeClass(i.join(""))}_handlePopperPlacementChange(t){const e=t.instance;this.tip=e.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))}_fixTransition(){const t=this.getTipElement(),i=this.config.animation;null===t.getAttribute("x-placement")&&(e(t).removeClass(Si),this.config.animation=!1,this.hide(),this.show(),this.config.animation=i)}static _jQueryInterface(t){return this.each((function(){let i=e(this).data("bs.tooltip");const n="object"==typeof t&&t;if((i||!/dispose|hide/.test(t))&&(i||(i=new xi(this,n),e(this).data("bs.tooltip",i)),"string"==typeof t)){if("undefined"==typeof i[t])throw new TypeError(`No method named "${t}"`);i[t]()}}))}}e.fn.tooltip=xi._jQueryInterface,e.fn.tooltip.Constructor=xi,e.fn.tooltip.noConflict=()=>(e.fn.tooltip=gi,xi._jQueryInterface);const Pi="booklyPopover",Hi=e.fn[Pi],ji=new RegExp("(^|\\s)bs-popover\\S+","g"),Ri={...xi.Default,placement:"right",trigger:"click",content:"",template:'<div class="bookly-popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'},Fi={...xi.DefaultType,content:"(string|element|function)"},Mi="bookly-fade",Wi="show",Ui=".popover-header",qi=".popover-body",Bi={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"};class $i extends xi{static get VERSION(){return"4.4.1"}static get Default(){return Ri}static get NAME(){return Pi}static get DATA_KEY(){return"bs.popover"}static get Event(){return Bi}static get EVENT_KEY(){return".bs.popover"}static get DefaultType(){return Fi}isWithContent(){return this.getTitle()||this._getContent()}addAttachmentClass(t){e(this.getTipElement()).addClass(`bs-popover-${t}`)}getTipElement(){return this.tip=this.tip||e(this.config.template)[0],this.tip}setContent(){const t=e(this.getTipElement());this.setElementContent(t.find(Ui),this.getTitle());let i=this._getContent();"function"==typeof i&&(i=i.call(this.element)),this.setElementContent(t.find(qi),i),t.removeClass(`${Mi} ${Wi}`)}_getContent(){return this.element.getAttribute("data-content")||this.config.content}_cleanTipClass(){const t=e(this.getTipElement()),i=t.attr("class").match(ji);null!==i&&i.length>0&&t.removeClass(i.join(""))}static _jQueryInterface(t){return this.each((function(){let i=e(this).data("bs.popover");const n="object"==typeof t?t:null;if((i||!/dispose|hide/.test(t))&&(i||(i=new $i(this,n),e(this).data("bs.popover",i)),"string"==typeof t)){if("undefined"==typeof i[t])throw new TypeError(`No method named "${t}"`);i[t]()}}))}}e.fn[Pi]=$i._jQueryInterface,e.fn[Pi].Constructor=$i,e.fn[Pi].noConflict=()=>(e.fn[Pi]=Hi,$i._jQueryInterface);const Ki="scrollspy",Qi=e.fn[Ki],Vi={offset:10,method:"auto",target:""},Yi={offset:"number",method:"string",target:"(string|element)"},zi={ACTIVATE:"activate.bs.scrollspy",SCROLL:"scroll.bs.scrollspy",LOAD_DATA_API:"load.bs.scrollspy.data-api"},Xi="dropdown-item",Gi="active",Ji='[data-spy="scroll"]',Zi=".nav, .list-group",tn=".nav-link",en=".nav-item",nn=".list-group-item",sn=".dropdown",on=".dropdown-item",rn=".dropdown-toggle",an="offset",ln="position";class cn{constructor(t,i){this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(i),this._selector=`${this._config.target} ${tn},`+`${this._config.target} ${nn},`+`${this._config.target} ${on}`,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,e(this._scrollElement).on(zi.SCROLL,t=>this._process(t)),this.refresh(),this._process()}static get VERSION(){return"4.4.1"}static get Default(){return Vi}refresh(){const t=this._scrollElement===this._scrollElement.window?an:ln,i="auto"===this._config.method?t:this._config.method,s=i===ln?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(t=>{let o;const r=n.getSelectorFromElement(t);if(r&&(o=document.querySelector(r)),o){const t=o.getBoundingClientRect();if(t.width||t.height)return[e(o)[i]().top+s,r]}return null}).filter(t=>t).sort((t,e)=>t[0]-e[0]).forEach(t=>{this._offsets.push(t[0]),this._targets.push(t[1])})}dispose(){e.removeData(this._element,"bs.scrollspy"),e(this._scrollElement).off(".bs.scrollspy"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null}_getConfig(t){if("string"!=typeof(t={...Vi,..."object"==typeof t&&t?t:{}}).target){let i=e(t.target).attr("id");i||(i=n.getUID(Ki),e(t.target).attr("id",i)),t.target=`#${i}`}return n.typeCheckConfig(Ki,t,Yi),t}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){const t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),i=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=i){const t=this._targets[this._targets.length-1];this._activeTarget!==t&&this._activate(t)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(let e=this._offsets.length;e--;){this._activeTarget!==this._targets[e]&&t>=this._offsets[e]&&("undefined"==typeof this._offsets[e+1]||t<this._offsets[e+1])&&this._activate(this._targets[e])}}}_activate(t){this._activeTarget=t,this._clear();const i=this._selector.split(",").map(e=>`${e}[data-target="${t}"],${e}[href="${t}"]`),n=e([].slice.call(document.querySelectorAll(i.join(","))));n.hasClass(Xi)?(n.closest(sn).find(rn).addClass(Gi),n.addClass(Gi)):(n.addClass(Gi),n.parents(Zi).prev(`${tn}, ${nn}`).addClass(Gi),n.parents(Zi).prev(en).children(tn).addClass(Gi)),e(this._scrollElement).trigger(zi.ACTIVATE,{relatedTarget:t})}_clear(){[].slice.call(document.querySelectorAll(this._selector)).filter(t=>t.classList.contains(Gi)).forEach(t=>t.classList.remove(Gi))}static _jQueryInterface(t){return this.each((function(){let i=e(this).data("bs.scrollspy");if(i||(i=new cn(this,"object"==typeof t&&t),e(this).data("bs.scrollspy",i)),"string"==typeof t){if("undefined"==typeof i[t])throw new TypeError(`No method named "${t}"`);i[t]()}}))}}e(window).on(zi.LOAD_DATA_API,()=>{const t=[].slice.call(document.querySelectorAll(Ji));for(let i=t.length;i--;){const n=e(t[i]);cn._jQueryInterface.call(n,n.data())}}),e.fn[Ki]=cn._jQueryInterface,e.fn[Ki].Constructor=cn,e.fn[Ki].noConflict=()=>(e.fn[Ki]=Qi,cn._jQueryInterface);const hn="booklyTab",dn=e.fn[hn],un={HIDE:"hide.bs.tab",HIDDEN:"hidden.bs.tab",SHOW:"show.bs.tab",SHOWN:"shown.bs.tab",CLICK_DATA_API:"click.bs.tab.data-api"},fn="dropdown-menu",pn="active",mn="disabled",gn="bookly-fade",_n="show",bn=".dropdown",vn=".nav, .list-group",yn=".active",En="> li > .active",wn='[data-toggle="bookly-tab"], [data-toggle="bookly-pill"], [data-toggle="bookly-list"]',Tn=".dropdown-toggle",Cn="> .dropdown-menu .active";class Sn{constructor(t){this._element=t}static get VERSION(){return"4.4.1"}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&e(this._element).hasClass(pn)||e(this._element).hasClass(mn))return;let t,i;const s=e(this._element).closest(vn)[0],o=n.getSelectorFromElement(this._element);if(s){const t="UL"===s.nodeName||"OL"===s.nodeName?En:yn;i=e.makeArray(e(s).find(t)),i=i[i.length-1]}const r=e.Event(un.HIDE,{relatedTarget:this._element}),a=e.Event(un.SHOW,{relatedTarget:i});if(i&&e(i).trigger(r),e(this._element).trigger(a),a.isDefaultPrevented()||r.isDefaultPrevented())return;o&&(t=document.querySelector(o)),this._activate(this._element,s);const l=()=>{const t=e.Event(un.HIDDEN,{relatedTarget:this._element}),n=e.Event(un.SHOWN,{relatedTarget:i});e(i).trigger(t),e(this._element).trigger(n)};t?this._activate(t,t.parentNode,l):l()}dispose(){e.removeData(this._element,"bs.tab"),this._element=null}_activate(t,i,s){const o=(!i||"UL"!==i.nodeName&&"OL"!==i.nodeName?e(i).children(yn):e(i).find(En))[0],r=s&&o&&e(o).hasClass(gn),a=()=>this._transitionComplete(t,o,s);if(o&&r){const t=n.getTransitionDurationFromElement(o);e(o).removeClass(_n).one(n.TRANSITION_END,a).emulateTransitionEnd(t)}else a()}_transitionComplete(t,i,s){if(i){e(i).removeClass(pn);const t=e(i.parentNode).find(Cn)[0];t&&e(t).removeClass(pn),"tab"===i.getAttribute("role")&&i.setAttribute("aria-selected",!1)}if(e(t).addClass(pn),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),n.reflow(t),t.classList.contains(gn)&&t.classList.add(_n),t.parentNode&&e(t.parentNode).hasClass(fn)){const i=e(t).closest(bn)[0];if(i){const t=[].slice.call(i.querySelectorAll(Tn));e(t).addClass(pn)}t.setAttribute("aria-expanded",!0)}s&&s()}static _jQueryInterface(t){return this.each((function(){const i=e(this);let n=i.data("bs.tab");if(n||(n=new Sn(this),i.data("bs.tab",n)),"string"==typeof t){if("undefined"==typeof n[t])throw new TypeError(`No method named "${t}"`);n[t]()}}))}}e(document).on(un.CLICK_DATA_API,wn,(function(t){t.preventDefault(),Sn._jQueryInterface.call(e(this),"show")})),e.fn[hn]=Sn._jQueryInterface,e.fn[hn].Constructor=Sn,e.fn[hn].noConflict=()=>(e.fn[hn]=dn,Sn._jQueryInterface);const Dn=e.fn.toast,In={CLICK_DISMISS:"click.dismiss.bs.toast",HIDE:"hide.bs.toast",HIDDEN:"hidden.bs.toast",SHOW:"show.bs.toast",SHOWN:"shown.bs.toast"},An="fade",Nn="hide",On="show",Ln="showing",kn={animation:"boolean",autohide:"boolean",delay:"number"},xn={animation:!0,autohide:!0,delay:500},Pn='[data-dismiss="toast"]';class Hn{constructor(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}static get VERSION(){return"4.4.1"}static get DefaultType(){return kn}static get Default(){return xn}show(){const t=e.Event(In.SHOW);if(e(this._element).trigger(t),t.isDefaultPrevented())return;this._config.animation&&this._element.classList.add(An);const i=()=>{this._element.classList.remove(Ln),this._element.classList.add(On),e(this._element).trigger(In.SHOWN),this._config.autohide&&(this._timeout=setTimeout(()=>{this.hide()},this._config.delay))};if(this._element.classList.remove(Nn),n.reflow(this._element),this._element.classList.add(Ln),this._config.animation){const t=n.getTransitionDurationFromElement(this._element);e(this._element).one(n.TRANSITION_END,i).emulateTransitionEnd(t)}else i()}hide(){if(!this._element.classList.contains(On))return;const t=e.Event(In.HIDE);e(this._element).trigger(t),t.isDefaultPrevented()||this._close()}dispose(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains(On)&&this._element.classList.remove(On),e(this._element).off(In.CLICK_DISMISS),e.removeData(this._element,"bs.toast"),this._element=null,this._config=null}_getConfig(t){return t={...xn,...e(this._element).data(),..."object"==typeof t&&t?t:{}},n.typeCheckConfig("toast",t,this.constructor.DefaultType),t}_setListeners(){e(this._element).on(In.CLICK_DISMISS,Pn,()=>this.hide())}_close(){const t=()=>{this._element.classList.add(Nn),e(this._element).trigger(In.HIDDEN)};if(this._element.classList.remove(On),this._config.animation){const i=n.getTransitionDurationFromElement(this._element);e(this._element).one(n.TRANSITION_END,t).emulateTransitionEnd(i)}else t()}static _jQueryInterface(t){return this.each((function(){const i=e(this);let n=i.data("bs.toast");if(n||(n=new Hn(this,"object"==typeof t&&t),i.data("bs.toast",n)),"string"==typeof t){if("undefined"==typeof n[t])throw new TypeError(`No method named "${t}"`);n[t](this)}}))}}e.fn.toast=Hn._jQueryInterface,e.fn.toast.Constructor=Hn,e.fn.toast.noConflict=()=>(e.fn.toast=Dn,Hn._jQueryInterface),t.Alert=c,t.Button=w,t.Carousel=X,t.Collapse=ht,t.Dropdown=We,t.Modal=li,t.Popover=$i,t.Scrollspy=cn,t.Tab=Sn,t.Toast=Hn,t.Tooltip=xi,t.Util=n,Object.defineProperty(t,"__esModule",{value:!0})}));
3
  * Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
4
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
5
  */
6
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],t):t((e=e||self).bootstrap={},e.jQuery)}(this,function(e,p){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function l(o){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?t(Object(r),!0).forEach(function(e){var t,n,i;t=o,i=r[n=e],n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):t(Object(r)).forEach(function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(r,e))})}return o}p=p&&p.hasOwnProperty("default")?p.default:p;var n="transitionend";function o(e){var t=this,n=!1;return p(this).one(m.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||m.triggerTransitionEnd(t)},e),this}var m={TRANSITION_END:"bsTransitionEnd",getUID:function(e){for(;e+=~~(1e6*Math.random()),document.getElementById(e););return e},getSelectorFromElement:function(e){var t=e.getAttribute("data-target");if(!t||"#"===t){var n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement:function(e){if(!e)return 0;var t=p(e).css("transition-duration"),n=p(e).css("transition-delay"),i=parseFloat(t),o=parseFloat(n);return i||o?(t=t.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(t)+parseFloat(n))):0},reflow:function(e){return e.offsetHeight},triggerTransitionEnd:function(e){p(e).trigger(n)},supportsTransitionEnd:function(){return Boolean(n)},isElement:function(e){return(e[0]||e).nodeType},typeCheckConfig:function(e,t,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var o=n[i],r=t[i],s=r&&m.isElement(r)?"element":(a=r,{}.toString.call(a).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(o).test(s))throw new Error(e.toUpperCase()+': Option "'+i+'" provided type "'+s+'" but expected type "'+o+'".')}var a},findShadowRoot:function(e){if(!document.documentElement.attachShadow)return null;if("function"!=typeof e.getRootNode)return e instanceof ShadowRoot?e:e.parentNode?m.findShadowRoot(e.parentNode):null;var t=e.getRootNode();return t instanceof ShadowRoot?t:null},jQueryDetection:function(){if("undefined"==typeof p)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var e=p.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1===e[0]&&9===e[1]&&e[2]<1||4<=e[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};m.jQueryDetection(),p.fn.emulateTransitionEnd=o,p.event.special[m.TRANSITION_END]={bindType:n,delegateType:n,handle:function(e){if(p(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}};var r="alert",a="bs.alert",c="."+a,h=p.fn[r],u={CLOSE:"close"+c,CLOSED:"closed"+c,CLICK_DATA_API:"click"+c+".data-api"},f="alert",d="fade",g="show",_=function(){function i(e){this._element=e}var e=i.prototype;return e.close=function(e){var t=this._element;e&&(t=this._getRootElement(e)),this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},e.dispose=function(){p.removeData(this._element,a),this._element=null},e._getRootElement=function(e){var t=m.getSelectorFromElement(e),n=!1;return t&&(n=document.querySelector(t)),n=n||p(e).closest("."+f)[0]},e._triggerCloseEvent=function(e){var t=p.Event(u.CLOSE);return p(e).trigger(t),t},e._removeElement=function(t){var n=this;if(p(t).removeClass(g),p(t).hasClass(d)){var e=m.getTransitionDurationFromElement(t);p(t).one(m.TRANSITION_END,function(e){return n._destroyElement(t,e)}).emulateTransitionEnd(e)}else this._destroyElement(t)},e._destroyElement=function(e){p(e).detach().trigger(u.CLOSED).remove()},i._jQueryInterface=function(n){return this.each(function(){var e=p(this),t=e.data(a);t||(t=new i(this),e.data(a,t)),"close"===n&&t[n](this)})},i._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},s(i,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),i}();p(document).on(u.CLICK_DATA_API,'[data-dismiss="alert"]',_._handleDismiss(new _)),p.fn[r]=_._jQueryInterface,p.fn[r].Constructor=_,p.fn[r].noConflict=function(){return p.fn[r]=h,_._jQueryInterface};var v="button",y="bs.button",E="."+y,b=".data-api",w=p.fn[v],T="active",C="btn",S="focus",D='[data-toggle^="button"]',I='[data-toggle="buttons"]',A='[data-toggle="button"]',O='[data-toggle="buttons"] .btn',N='input:not([type="hidden"])',k=".active",L=".btn",P={CLICK_DATA_API:"click"+E+b,FOCUS_BLUR_DATA_API:"focus"+E+b+" blur"+E+b,LOAD_DATA_API:"load"+E+b},x=function(){function n(e){this._element=e}var e=n.prototype;return e.toggle=function(){var e=!0,t=!0,n=p(this._element).closest(I)[0];if(n){var i=this._element.querySelector(N);if(i){if("radio"===i.type)if(i.checked&&this._element.classList.contains(T))e=!1;else{var o=n.querySelector(k);o&&p(o).removeClass(T)}else("checkbox"!==i.type||"LABEL"===this._element.tagName&&i.checked===this._element.classList.contains(T))&&(e=!1);e&&(i.checked=!this._element.classList.contains(T),p(i).trigger("change")),i.focus(),t=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(t&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(T)),e&&p(this._element).toggleClass(T))},e.dispose=function(){p.removeData(this._element,y),this._element=null},n._jQueryInterface=function(t){return this.each(function(){var e=p(this).data(y);e||(e=new n(this),p(this).data(y,e)),"toggle"===t&&e[t]()})},s(n,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),n}();p(document).on(P.CLICK_DATA_API,D,function(e){var t=e.target;if(p(t).hasClass(C)||(t=p(t).closest(L)[0]),!t||t.hasAttribute("disabled")||t.classList.contains("disabled"))e.preventDefault();else{var n=t.querySelector(N);if(n&&(n.hasAttribute("disabled")||n.classList.contains("disabled")))return void e.preventDefault();x._jQueryInterface.call(p(t),"toggle")}}).on(P.FOCUS_BLUR_DATA_API,D,function(e){var t=p(e.target).closest(L)[0];p(t).toggleClass(S,/^focus(in)?$/.test(e.type))}),p(window).on(P.LOAD_DATA_API,function(){for(var e=[].slice.call(document.querySelectorAll(O)),t=0,n=e.length;t<n;t++){var i=e[t],o=i.querySelector(N);o.checked||o.hasAttribute("checked")?i.classList.add(T):i.classList.remove(T)}for(var r=0,s=(e=[].slice.call(document.querySelectorAll(A))).length;r<s;r++){var a=e[r];"true"===a.getAttribute("aria-pressed")?a.classList.add(T):a.classList.remove(T)}}),p.fn[v]=x._jQueryInterface,p.fn[v].Constructor=x,p.fn[v].noConflict=function(){return p.fn[v]=w,x._jQueryInterface};var j="carousel",H="bs.carousel",R="."+H,F=".data-api",M=p.fn[j],W={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},U={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},q="next",B="prev",K="left",Q="right",V={SLIDE:"slide"+R,SLID:"slid"+R,KEYDOWN:"keydown"+R,MOUSEENTER:"mouseenter"+R,MOUSELEAVE:"mouseleave"+R,TOUCHSTART:"touchstart"+R,TOUCHMOVE:"touchmove"+R,TOUCHEND:"touchend"+R,POINTERDOWN:"pointerdown"+R,POINTERUP:"pointerup"+R,DRAG_START:"dragstart"+R,LOAD_DATA_API:"load"+R+F,CLICK_DATA_API:"click"+R+F},Y="carousel",z="active",X="slide",G="carousel-item-right",$="carousel-item-left",J="carousel-item-next",Z="carousel-item-prev",ee="pointer-event",te=".active",ne=".active.carousel-item",ie=".carousel-item",oe=".carousel-item img",re=".carousel-item-next, .carousel-item-prev",se=".carousel-indicators",ae="[data-slide], [data-slide-to]",le='[data-ride="carousel"]',ce={TOUCH:"touch",PEN:"pen"},he=function(){function r(e,t){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(t),this._element=e,this._indicatorsElement=this._element.querySelector(se),this._touchSupported="ontouchstart"in document.documentElement||0<navigator.maxTouchPoints,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var e=r.prototype;return e.next=function(){this._isSliding||this._slide(q)},e.nextWhenVisible=function(){!document.hidden&&p(this._element).is(":visible")&&"hidden"!==p(this._element).css("visibility")&&this.next()},e.prev=function(){this._isSliding||this._slide(B)},e.pause=function(e){e||(this._isPaused=!0),this._element.querySelector(re)&&(m.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},e.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},e.to=function(e){var t=this;this._activeElement=this._element.querySelector(ne);var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)p(this._element).one(V.SLID,function(){return t.to(e)});else{if(n===e)return this.pause(),void this.cycle();var i=n<e?q:B;this._slide(i,this._items[e])}},e.dispose=function(){p(this._element).off(R),p.removeData(this._element,H),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},e._getConfig=function(e){return e=l({},W,{},e),m.typeCheckConfig(j,e,U),e},e._handleSwipe=function(){var e=Math.abs(this.touchDeltaX);if(!(e<=40)){var t=e/this.touchDeltaX;(this.touchDeltaX=0)<t&&this.prev(),t<0&&this.next()}},e._addEventListeners=function(){var t=this;this._config.keyboard&&p(this._element).on(V.KEYDOWN,function(e){return t._keydown(e)}),"hover"===this._config.pause&&p(this._element).on(V.MOUSEENTER,function(e){return t.pause(e)}).on(V.MOUSELEAVE,function(e){return t.cycle(e)}),this._config.touch&&this._addTouchEventListeners()},e._addTouchEventListeners=function(){var n=this;if(this._touchSupported){var t=function(e){n._pointerEvent&&ce[e.originalEvent.pointerType.toUpperCase()]?n.touchStartX=e.originalEvent.clientX:n._pointerEvent||(n.touchStartX=e.originalEvent.touches[0].clientX)},i=function(e){n._pointerEvent&&ce[e.originalEvent.pointerType.toUpperCase()]&&(n.touchDeltaX=e.originalEvent.clientX-n.touchStartX),n._handleSwipe(),"hover"===n._config.pause&&(n.pause(),n.touchTimeout&&clearTimeout(n.touchTimeout),n.touchTimeout=setTimeout(function(e){return n.cycle(e)},500+n._config.interval))};p(this._element.querySelectorAll(oe)).on(V.DRAG_START,function(e){return e.preventDefault()}),this._pointerEvent?(p(this._element).on(V.POINTERDOWN,function(e){return t(e)}),p(this._element).on(V.POINTERUP,function(e){return i(e)}),this._element.classList.add(ee)):(p(this._element).on(V.TOUCHSTART,function(e){return t(e)}),p(this._element).on(V.TOUCHMOVE,function(e){var t;(t=e).originalEvent.touches&&1<t.originalEvent.touches.length?n.touchDeltaX=0:n.touchDeltaX=t.originalEvent.touches[0].clientX-n.touchStartX}),p(this._element).on(V.TOUCHEND,function(e){return i(e)}))}},e._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case 37:e.preventDefault(),this.prev();break;case 39:e.preventDefault(),this.next()}},e._getItemIndex=function(e){return this._items=e&&e.parentNode?[].slice.call(e.parentNode.querySelectorAll(ie)):[],this._items.indexOf(e)},e._getItemByDirection=function(e,t){var n=e===q,i=e===B,o=this._getItemIndex(t),r=this._items.length-1;if((i&&0===o||n&&o===r)&&!this._config.wrap)return t;var s=(o+(e===B?-1:1))%this._items.length;return-1==s?this._items[this._items.length-1]:this._items[s]},e._triggerSlideEvent=function(e,t){var n=this._getItemIndex(e),i=this._getItemIndex(this._element.querySelector(ne)),o=p.Event(V.SLIDE,{relatedTarget:e,direction:t,from:i,to:n});return p(this._element).trigger(o),o},e._setActiveIndicatorElement=function(e){if(this._indicatorsElement){var t=[].slice.call(this._indicatorsElement.querySelectorAll(te));p(t).removeClass(z);var n=this._indicatorsElement.children[this._getItemIndex(e)];n&&p(n).addClass(z)}},e._slide=function(e,t){var n,i,o,r=this,s=this._element.querySelector(ne),a=this._getItemIndex(s),l=t||s&&this._getItemByDirection(e,s),c=this._getItemIndex(l),h=Boolean(this._interval);if(o=e===q?(n=$,i=J,K):(n=G,i=Z,Q),l&&p(l).hasClass(z))this._isSliding=!1;else if(!this._triggerSlideEvent(l,o).isDefaultPrevented()&&s&&l){this._isSliding=!0,h&&this.pause(),this._setActiveIndicatorElement(l);var u=p.Event(V.SLID,{relatedTarget:l,direction:o,from:a,to:c});if(p(this._element).hasClass(X)){p(l).addClass(i),m.reflow(l),p(s).addClass(n),p(l).addClass(n);var f=parseInt(l.getAttribute("data-interval"),10);f?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=f):this._config.interval=this._config.defaultInterval||this._config.interval;var d=m.getTransitionDurationFromElement(s);p(s).one(m.TRANSITION_END,function(){p(l).removeClass(n+" "+i).addClass(z),p(s).removeClass(z+" "+i+" "+n),r._isSliding=!1,setTimeout(function(){return p(r._element).trigger(u)},0)}).emulateTransitionEnd(d)}else p(s).removeClass(z),p(l).addClass(z),this._isSliding=!1,p(this._element).trigger(u);h&&this.cycle()}},r._jQueryInterface=function(i){return this.each(function(){var e=p(this).data(H),t=l({},W,{},p(this).data());"object"==typeof i&&(t=l({},t,{},i));var n="string"==typeof i?i:t.slide;if(e||(e=new r(this,t),p(this).data(H,e)),"number"==typeof i)e.to(i);else if("string"==typeof n){if("undefined"==typeof e[n])throw new TypeError('No method named "'+n+'"');e[n]()}else t.interval&&t.ride&&(e.pause(),e.cycle())})},r._dataApiClickHandler=function(e){var t=m.getSelectorFromElement(this);if(t){var n=p(t)[0];if(n&&p(n).hasClass(Y)){var i=l({},p(n).data(),{},p(this).data()),o=this.getAttribute("data-slide-to");o&&(i.interval=!1),r._jQueryInterface.call(p(n),i),o&&p(n).data(H).to(o),e.preventDefault()}}},s(r,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return W}}]),r}();p(document).on(V.CLICK_DATA_API,ae,he._dataApiClickHandler),p(window).on(V.LOAD_DATA_API,function(){for(var e=[].slice.call(document.querySelectorAll(le)),t=0,n=e.length;t<n;t++){var i=p(e[t]);he._jQueryInterface.call(i,i.data())}}),p.fn[j]=he._jQueryInterface,p.fn[j].Constructor=he,p.fn[j].noConflict=function(){return p.fn[j]=M,he._jQueryInterface};var ue="collapse",fe="bs.collapse",de="."+fe,pe=p.fn[ue],me={toggle:!0,parent:""},ge={toggle:"boolean",parent:"(string|element)"},_e={SHOW:"show"+de,SHOWN:"shown"+de,HIDE:"hide"+de,HIDDEN:"hidden"+de,CLICK_DATA_API:"click"+de+".data-api"},ve="show",ye="collapse",Ee="collapsing",be="collapsed",we="width",Te="height",Ce=".show, .collapsing",Se='[data-toggle="collapse"]',De=function(){function a(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(Se)),i=0,o=n.length;i<o;i++){var r=n[i],s=m.getSelectorFromElement(r),a=[].slice.call(document.querySelectorAll(s)).filter(function(e){return e===t});null!==s&&0<a.length&&(this._selector=s,this._triggerArray.push(r))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var e=a.prototype;return e.toggle=function(){p(this._element).hasClass(ve)?this.hide():this.show()},e.show=function(){var e,t,n=this;if(!this._isTransitioning&&!p(this._element).hasClass(ve)&&(this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(Ce)).filter(function(e){return"string"==typeof n._config.parent?e.getAttribute("data-parent")===n._config.parent:e.classList.contains(ye)})).length&&(e=null),!(e&&(t=p(e).not(this._selector).data(fe))&&t._isTransitioning))){var i=p.Event(_e.SHOW);if(p(this._element).trigger(i),!i.isDefaultPrevented()){e&&(a._jQueryInterface.call(p(e).not(this._selector),"hide"),t||p(e).data(fe,null));var o=this._getDimension();p(this._element).removeClass(ye).addClass(Ee),this._element.style[o]=0,this._triggerArray.length&&p(this._triggerArray).removeClass(be).attr("aria-expanded",!0),this.setTransitioning(!0);var r="scroll"+(o[0].toUpperCase()+o.slice(1)),s=m.getTransitionDurationFromElement(this._element);p(this._element).one(m.TRANSITION_END,function(){p(n._element).removeClass(Ee).addClass(ye).addClass(ve),n._element.style[o]="",n.setTransitioning(!1),p(n._element).trigger(_e.SHOWN)}).emulateTransitionEnd(s),this._element.style[o]=this._element[r]+"px"}}},e.hide=function(){var e=this;if(!this._isTransitioning&&p(this._element).hasClass(ve)){var t=p.Event(_e.HIDE);if(p(this._element).trigger(t),!t.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",m.reflow(this._element),p(this._element).addClass(Ee).removeClass(ye).removeClass(ve);var i=this._triggerArray.length;if(0<i)for(var o=0;o<i;o++){var r=this._triggerArray[o],s=m.getSelectorFromElement(r);if(null!==s)p([].slice.call(document.querySelectorAll(s))).hasClass(ve)||p(r).addClass(be).attr("aria-expanded",!1)}this.setTransitioning(!0);this._element.style[n]="";var a=m.getTransitionDurationFromElement(this._element);p(this._element).one(m.TRANSITION_END,function(){e.setTransitioning(!1),p(e._element).removeClass(Ee).addClass(ye).trigger(_e.HIDDEN)}).emulateTransitionEnd(a)}}},e.setTransitioning=function(e){this._isTransitioning=e},e.dispose=function(){p.removeData(this._element,fe),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},e._getConfig=function(e){return(e=l({},me,{},e)).toggle=Boolean(e.toggle),m.typeCheckConfig(ue,e,ge),e},e._getDimension=function(){return p(this._element).hasClass(we)?we:Te},e._getParent=function(){var e,n=this;m.isElement(this._config.parent)?(e=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(e=this._config.parent[0])):e=document.querySelector(this._config.parent);var t='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',i=[].slice.call(e.querySelectorAll(t));return p(i).each(function(e,t){n._addAriaAndCollapsedClass(a._getTargetFromElement(t),[t])}),e},e._addAriaAndCollapsedClass=function(e,t){var n=p(e).hasClass(ve);t.length&&p(t).toggleClass(be,!n).attr("aria-expanded",n)},a._getTargetFromElement=function(e){var t=m.getSelectorFromElement(e);return t?document.querySelector(t):null},a._jQueryInterface=function(i){return this.each(function(){var e=p(this),t=e.data(fe),n=l({},me,{},e.data(),{},"object"==typeof i&&i?i:{});if(!t&&n.toggle&&/show|hide/.test(i)&&(n.toggle=!1),t||(t=new a(this,n),e.data(fe,t)),"string"==typeof i){if("undefined"==typeof t[i])throw new TypeError('No method named "'+i+'"');t[i]()}})},s(a,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return me}}]),a}();p(document).on(_e.CLICK_DATA_API,Se,function(e){"A"===e.currentTarget.tagName&&e.preventDefault();var n=p(this),t=m.getSelectorFromElement(this),i=[].slice.call(document.querySelectorAll(t));p(i).each(function(){var e=p(this),t=e.data(fe)?"toggle":n.data();De._jQueryInterface.call(e,t)})}),p.fn[ue]=De._jQueryInterface,p.fn[ue].Constructor=De,p.fn[ue].noConflict=function(){return p.fn[ue]=pe,De._jQueryInterface};var Ie="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,Ae=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(Ie&&0<=navigator.userAgent.indexOf(e[t]))return 1;return 0}();var Oe=Ie&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},Ae))}};function Ne(e){return e&&"[object Function]"==={}.toString.call(e)}function ke(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function Le(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function Pe(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=ke(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+i)?e:Pe(Le(e))}function xe(e){return e&&e.referenceNode?e.referenceNode:e}var je=Ie&&!(!window.MSInputMethodContext||!document.documentMode),He=Ie&&/MSIE 10/.test(navigator.userAgent);function Re(e){return 11===e?je:10!==e&&je||He}function Fe(e){if(!e)return document.documentElement;for(var t=Re(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===ke(n,"position")?Fe(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Me(e){return null!==e.parentNode?Me(e.parentNode):e}function We(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?e:t,o=n?t:e,r=document.createRange();r.setStart(i,0),r.setEnd(o,0);var s,a,l=r.commonAncestorContainer;if(e!==l&&t!==l||i.contains(o))return"BODY"===(a=(s=l).nodeName)||"HTML"!==a&&Fe(s.firstElementChild)!==s?Fe(l):l;var c=Me(e);return c.host?We(c.host,t):We(e,Me(t).host)}function Ue(e,t){var n="top"===(1<arguments.length&&void 0!==t?t:"top")?"scrollTop":"scrollLeft",i=e.nodeName;if("BODY"!==i&&"HTML"!==i)return e[n];var o=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||o)[n]}function qe(e,t){var n="x"===t?"Left":"Top",i="Left"==n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+i+"Width"])}function Be(e,t,n,i){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Re(10)?parseInt(n["offset"+e])+parseInt(i["margin"+("Height"===e?"Top":"Left")])+parseInt(i["margin"+("Height"===e?"Bottom":"Right")]):0)}function Ke(e){var t=e.body,n=e.documentElement,i=Re(10)&&getComputedStyle(n);return{height:Be("Height",t,n,i),width:Be("Width",t,n,i)}}var Qe=function(e,t,n){return t&&Ve(e.prototype,t),n&&Ve(e,n),e};function Ve(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Ye(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ze=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};function Xe(e){return ze({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Ge(e){var t={};try{if(Re(10)){t=e.getBoundingClientRect();var n=Ue(e,"top"),i=Ue(e,"left");t.top+=n,t.left+=i,t.bottom+=n,t.right+=i}else t=e.getBoundingClientRect()}catch(e){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},r="HTML"===e.nodeName?Ke(e.ownerDocument):{},s=r.width||e.clientWidth||o.width,a=r.height||e.clientHeight||o.height,l=e.offsetWidth-s,c=e.offsetHeight-a;if(l||c){var h=ke(e);l-=qe(h,"x"),c-=qe(h,"y"),o.width-=l,o.height-=c}return Xe(o)}function $e(e,t,n){var i=2<arguments.length&&void 0!==n&&n,o=Re(10),r="HTML"===t.nodeName,s=Ge(e),a=Ge(t),l=Pe(e),c=ke(t),h=parseFloat(c.borderTopWidth),u=parseFloat(c.borderLeftWidth);i&&r&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var f=Xe({top:s.top-a.top-h,left:s.left-a.left-u,width:s.width,height:s.height});if(f.marginTop=0,f.marginLeft=0,!o&&r){var d=parseFloat(c.marginTop),p=parseFloat(c.marginLeft);f.top-=h-d,f.bottom-=h-d,f.left-=u-p,f.right-=u-p,f.marginTop=d,f.marginLeft=p}return(o&&!i?t.contains(l):t===l&&"BODY"!==l.nodeName)&&(f=function(e,t,n){var i=2<arguments.length&&void 0!==n&&n,o=Ue(t,"top"),r=Ue(t,"left"),s=i?-1:1;return e.top+=o*s,e.bottom+=o*s,e.left+=r*s,e.right+=r*s,e}(f,t)),f}function Je(e){if(!e||!e.parentElement||Re())return document.documentElement;for(var t=e.parentElement;t&&"none"===ke(t,"transform");)t=t.parentElement;return t||document.documentElement}function Ze(e,t,n,i,o){var r=4<arguments.length&&void 0!==o&&o,s={top:0,left:0},a=r?Je(e):We(e,xe(t));if("viewport"===i)s=function(e,t){var n=1<arguments.length&&void 0!==t&&t,i=e.ownerDocument.documentElement,o=$e(e,i),r=Math.max(i.clientWidth,window.innerWidth||0),s=Math.max(i.clientHeight,window.innerHeight||0),a=n?0:Ue(i),l=n?0:Ue(i,"left");return Xe({top:a-o.top+o.marginTop,left:l-o.left+o.marginLeft,width:r,height:s})}(a,r);else{var l=void 0;"scrollParent"===i?"BODY"===(l=Pe(Le(t))).nodeName&&(l=e.ownerDocument.documentElement):l="window"===i?e.ownerDocument.documentElement:i;var c=$e(l,a,r);if("HTML"!==l.nodeName||function e(t){var n=t.nodeName;if("BODY"===n||"HTML"===n)return!1;if("fixed"===ke(t,"position"))return!0;var i=Le(t);return!!i&&e(i)}(a))s=c;else{var h=Ke(e.ownerDocument),u=h.height,f=h.width;s.top+=c.top-c.marginTop,s.bottom=u+c.top,s.left+=c.left-c.marginLeft,s.right=f+c.left}}var d="number"==typeof(n=n||0);return s.left+=d?n:n.left||0,s.top+=d?n:n.top||0,s.right-=d?n:n.right||0,s.bottom-=d?n:n.bottom||0,s}function et(e,t,i,n,o,r){var s=5<arguments.length&&void 0!==r?r:0;if(-1===e.indexOf("auto"))return e;var a=Ze(i,n,s,o),l={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},c=Object.keys(l).map(function(e){return ze({key:e},l[e],{area:(t=l[e]).width*t.height});var t}).sort(function(e,t){return t.area-e.area}),h=c.filter(function(e){var t=e.width,n=e.height;return t>=i.clientWidth&&n>=i.clientHeight}),u=0<h.length?h[0].key:c[0].key,f=e.split("-")[1];return u+(f?"-"+f:"")}function tt(e,t,n,i){var o=3<arguments.length&&void 0!==i?i:null;return $e(n,o?Je(t):We(t,xe(n)),o)}function nt(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),i=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+i,height:e.offsetHeight+n}}function it(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function ot(e,t,n){n=n.split("-")[0];var i=nt(e),o={width:i.width,height:i.height},r=-1!==["right","left"].indexOf(n),s=r?"top":"left",a=r?"left":"top",l=r?"height":"width",c=r?"width":"height";return o[s]=t[s]+t[l]/2-i[l]/2,o[a]=n===a?t[a]-i[c]:t[it(a)],o}function rt(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function st(e,n,t){return(void 0===t?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var i=rt(e,function(e){return e[t]===n});return e.indexOf(i)}(e,"name",t))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var t=e.function||e.fn;e.enabled&&Ne(t)&&(n.offsets.popper=Xe(n.offsets.popper),n.offsets.reference=Xe(n.offsets.reference),n=t(n,e))}),n}function at(e,n){return e.some(function(e){var t=e.name;return e.enabled&&t===n})}function lt(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length;i++){var o=t[i],r=o?""+o+n:e;if("undefined"!=typeof document.body.style[r])return r}return null}function ct(e){var t=e.ownerDocument;return t?t.defaultView:window}function ht(e,t,n,i){n.updateBound=i,ct(e).addEventListener("resize",n.updateBound,{passive:!0});var o=Pe(e);return function e(t,n,i,o){var r="BODY"===t.nodeName,s=r?t.ownerDocument.defaultView:t;s.addEventListener(n,i,{passive:!0}),r||e(Pe(s.parentNode),n,i,o),o.push(s)}(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function ut(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,ct(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function ft(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function dt(n,i){Object.keys(i).forEach(function(e){var t="";-1!==["width","height","top","right","bottom","left"].indexOf(e)&&ft(i[e])&&(t="px"),n.style[e]=i[e]+t})}function pt(e,t){function n(e){return e}var i=e.offsets,o=i.popper,r=i.reference,s=Math.round,a=Math.floor,l=s(r.width),c=s(o.width),h=-1!==["left","right"].indexOf(e.placement),u=-1!==e.placement.indexOf("-"),f=t?h||u||l%2==c%2?s:a:n,d=t?s:n;return{left:f(l%2==1&&c%2==1&&!u&&t?o.left-1:o.left),top:d(o.top),bottom:d(o.bottom),right:f(o.right)}}var mt=Ie&&/Firefox/i.test(navigator.userAgent);function gt(e,t,n){var i=rt(e,function(e){return e.name===t}),o=!!i&&e.some(function(e){return e.name===n&&e.enabled&&e.order<i.order});if(!o){var r="`"+t+"`",s="`"+n+"`";console.warn(s+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")}return o}var _t=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],vt=_t.slice(3);function yt(e,t){var n=1<arguments.length&&void 0!==t&&t,i=vt.indexOf(e),o=vt.slice(i+1).concat(vt.slice(0,i));return n?o.reverse():o}var Et="flip",bt="clockwise",wt="counterclockwise";function Tt(e,o,r,t){var s=[0,0],a=-1!==["right","left"].indexOf(t),n=e.split(/(\+|\-)/).map(function(e){return e.trim()}),i=n.indexOf(rt(n,function(e){return-1!==e.search(/,|\s/)}));n[i]&&-1===n[i].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==i?[n.slice(0,i).concat([n[i].split(l)[0]]),[n[i].split(l)[1]].concat(n.slice(i+1))]:[n];return(c=c.map(function(e,t){var n=(1===t?!a:a)?"height":"width",i=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,i=!0,e):i?(e[e.length-1]+=t,i=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,i){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+o[1],s=o[2];if(!r)return e;if(0!==s.indexOf("%"))return"vh"!==s&&"vw"!==s?r:("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r;var a=void 0;switch(s){case"%p":a=n;break;case"%":case"%r":default:a=i}return Xe(a)[t]/100*r}(e,n,o,r)})})).forEach(function(n,i){n.forEach(function(e,t){ft(e)&&(s[i]+=e*("-"===n[t-1]?-1:1))})}),s}var Ct={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],i=t.split("-")[1];if(i){var o=e.offsets,r=o.reference,s=o.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",c=a?"width":"height",h={start:Ye({},l,r[l]),end:Ye({},l,r[l]+r[c]-s[c])};e.offsets.popper=ze({},s,h[i])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,i=e.placement,o=e.offsets,r=o.popper,s=o.reference,a=i.split("-")[0],l=void 0;return l=ft(+n)?[+n,0]:Tt(n,r,s,a),"left"===a?(r.top+=l[0],r.left-=l[1]):"right"===a?(r.top+=l[0],r.left+=l[1]):"top"===a?(r.left+=l[0],r.top-=l[1]):"bottom"===a&&(r.left+=l[0],r.top+=l[1]),e.popper=r,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,i){var t=i.boundariesElement||Fe(e.instance.popper);e.instance.reference===t&&(t=Fe(t));var n=lt("transform"),o=e.instance.popper.style,r=o.top,s=o.left,a=o[n];o.top="",o.left="",o[n]="";var l=Ze(e.instance.popper,e.instance.reference,i.padding,t,e.positionFixed);o.top=r,o.left=s,o[n]=a,i.boundaries=l;var c=i.priority,h=e.offsets.popper,u={primary:function(e){var t=h[e];return h[e]<l[e]&&!i.escapeWithReference&&(t=Math.max(h[e],l[e])),Ye({},e,t)},secondary:function(e){var t="right"===e?"left":"top",n=h[t];return h[e]>l[e]&&!i.escapeWithReference&&(n=Math.min(h[t],l[e]-("right"===e?h.width:h.height))),Ye({},t,n)}};return c.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";h=ze({},h,u[t](e))}),e.offsets.popper=h,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,i=t.reference,o=e.placement.split("-")[0],r=Math.floor,s=-1!==["top","bottom"].indexOf(o),a=s?"right":"bottom",l=s?"left":"top",c=s?"width":"height";return n[a]<r(i[l])&&(e.offsets.popper[l]=r(i[l])-n[c]),n[l]>r(i[a])&&(e.offsets.popper[l]=r(i[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!gt(e.instance.modifiers,"arrow","keepTogether"))return e;var i=t.element;if("string"==typeof i){if(!(i=e.instance.popper.querySelector(i)))return e}else if(!e.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],r=e.offsets,s=r.popper,a=r.reference,l=-1!==["left","right"].indexOf(o),c=l?"height":"width",h=l?"Top":"Left",u=h.toLowerCase(),f=l?"left":"top",d=l?"bottom":"right",p=nt(i)[c];a[d]-p<s[u]&&(e.offsets.popper[u]-=s[u]-(a[d]-p)),a[u]+p>s[d]&&(e.offsets.popper[u]+=a[u]+p-s[d]),e.offsets.popper=Xe(e.offsets.popper);var m=a[u]+a[c]/2-p/2,g=ke(e.instance.popper),_=parseFloat(g["margin"+h]),v=parseFloat(g["border"+h+"Width"]),y=m-e.offsets.popper[u]-_-v;return y=Math.max(Math.min(s[c]-p,y),0),e.arrowElement=i,e.offsets.arrow=(Ye(n={},u,Math.round(y)),Ye(n,f,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(g,_){if(at(g.instance.modifiers,"inner"))return g;if(g.flipped&&g.placement===g.originalPlacement)return g;var v=Ze(g.instance.popper,g.instance.reference,_.padding,_.boundariesElement,g.positionFixed),y=g.placement.split("-")[0],E=it(y),b=g.placement.split("-")[1]||"",w=[];switch(_.behavior){case Et:w=[y,E];break;case bt:w=yt(y);break;case wt:w=yt(y,!0);break;default:w=_.behavior}return w.forEach(function(e,t){if(y!==e||w.length===t+1)return g;y=g.placement.split("-")[0],E=it(y);var n,i=g.offsets.popper,o=g.offsets.reference,r=Math.floor,s="left"===y&&r(i.right)>r(o.left)||"right"===y&&r(i.left)<r(o.right)||"top"===y&&r(i.bottom)>r(o.top)||"bottom"===y&&r(i.top)<r(o.bottom),a=r(i.left)<r(v.left),l=r(i.right)>r(v.right),c=r(i.top)<r(v.top),h=r(i.bottom)>r(v.bottom),u="left"===y&&a||"right"===y&&l||"top"===y&&c||"bottom"===y&&h,f=-1!==["top","bottom"].indexOf(y),d=!!_.flipVariations&&(f&&"start"===b&&a||f&&"end"===b&&l||!f&&"start"===b&&c||!f&&"end"===b&&h),p=!!_.flipVariationsByContent&&(f&&"start"===b&&l||f&&"end"===b&&a||!f&&"start"===b&&h||!f&&"end"===b&&c),m=d||p;(s||u||m)&&(g.flipped=!0,(s||u)&&(y=w[t+1]),m&&(b="end"===(n=b)?"start":"start"===n?"end":n),g.placement=y+(b?"-"+b:""),g.offsets.popper=ze({},g.offsets.popper,ot(g.instance.popper,g.offsets.reference,g.placement)),g=st(g.instance.modifiers,g,"flip"))}),g},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],i=e.offsets,o=i.popper,r=i.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return o[s?"left":"top"]=r[n]-(a?o[s?"width":"height"]:0),e.placement=it(t),e.offsets.popper=Xe(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!gt(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=rt(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,i=t.y,o=e.offsets.popper,r=rt(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==r&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s=void 0!==r?r:t.gpuAcceleration,a=Fe(e.instance.popper),l=Ge(a),c={position:o.position},h=pt(e,window.devicePixelRatio<2||!mt),u="bottom"===n?"top":"bottom",f="right"===i?"left":"right",d=lt("transform"),p=void 0,m=void 0;if(m="bottom"==u?"HTML"===a.nodeName?-a.clientHeight+h.bottom:-l.height+h.bottom:h.top,p="right"==f?"HTML"===a.nodeName?-a.clientWidth+h.right:-l.width+h.right:h.left,s&&d)c[d]="translate3d("+p+"px, "+m+"px, 0)",c[u]=0,c[f]=0,c.willChange="transform";else{var g="bottom"==u?-1:1,_="right"==f?-1:1;c[u]=m*g,c[f]=p*_,c.willChange=u+", "+f}var v={"x-placement":e.placement};return e.attributes=ze({},v,e.attributes),e.styles=ze({},c,e.styles),e.arrowStyles=ze({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return dt(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach(function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)}),e.arrowElement&&Object.keys(e.arrowStyles).length&&dt(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,i,o){var r=tt(o,t,e,n.positionFixed),s=et(n.placement,r,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",s),dt(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},St=(Qe(Dt,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=tt(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=et(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=ot(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=st(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,at(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[lt("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=ht(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return ut.call(this)}}]),Dt);function Dt(e,t){var n=this,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,Dt),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=Oe(this.update.bind(this)),this.options=ze({},Dt.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=t&&t.jquery?t[0]:t,this.options.modifiers={},Object.keys(ze({},Dt.Defaults.modifiers,i.modifiers)).forEach(function(e){n.options.modifiers[e]=ze({},Dt.Defaults.modifiers[e]||{},i.modifiers?i.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return ze({name:e},n.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&Ne(e.onLoad)&&e.onLoad(n.reference,n.popper,n.options,e,n.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}St.Utils=("undefined"!=typeof window?window:global).PopperUtils,St.placements=_t,St.Defaults=Ct;var It="dropdown",At="bs.dropdown",Ot="."+At,Nt=".data-api",kt=p.fn[It],Lt=new RegExp("38|40|27"),Pt={HIDE:"hide"+Ot,HIDDEN:"hidden"+Ot,SHOW:"show"+Ot,SHOWN:"shown"+Ot,CLICK:"click"+Ot,CLICK_DATA_API:"click"+Ot+Nt,KEYDOWN_DATA_API:"keydown"+Ot+Nt,KEYUP_DATA_API:"keyup"+Ot+Nt},xt="disabled",jt="show",Ht="dropup",Rt="dropright",Ft="dropleft",Mt="dropdown-menu-right",Wt="position-static",Ut='[data-toggle="dropdown"]',qt=".dropdown form",Bt=".dropdown-menu",Kt=".navbar-nav",Qt=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Vt="top-start",Yt="top-end",zt="bottom-start",Xt="bottom-end",Gt="right-start",$t="left-start",Jt={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},Zt={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},en=function(){function c(e,t){this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var e=c.prototype;return e.toggle=function(){if(!this._element.disabled&&!p(this._element).hasClass(xt)){var e=p(this._menu).hasClass(jt);c._clearMenus(),e||this.show(!0)}},e.show=function(e){if(void 0===e&&(e=!1),!(this._element.disabled||p(this._element).hasClass(xt)||p(this._menu).hasClass(jt))){var t={relatedTarget:this._element},n=p.Event(Pt.SHOW,t),i=c._getParentFromElement(this._element);if(p(i).trigger(n),!n.isDefaultPrevented()){if(!this._inNavbar&&e){if("undefined"==typeof St)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");var o=this._element;"parent"===this._config.reference?o=i:m.isElement(this._config.reference)&&(o=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(o=this._config.reference[0])),"scrollParent"!==this._config.boundary&&p(i).addClass(Wt),this._popper=new St(o,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===p(i).closest(Kt).length&&p(document.body).children().on("mouseover",null,p.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),p(this._menu).toggleClass(jt),p(i).toggleClass(jt).trigger(p.Event(Pt.SHOWN,t))}}},e.hide=function(){if(!this._element.disabled&&!p(this._element).hasClass(xt)&&p(this._menu).hasClass(jt)){var e={relatedTarget:this._element},t=p.Event(Pt.HIDE,e),n=c._getParentFromElement(this._element);p(n).trigger(t),t.isDefaultPrevented()||(this._popper&&this._popper.destroy(),p(this._menu).toggleClass(jt),p(n).toggleClass(jt).trigger(p.Event(Pt.HIDDEN,e)))}},e.dispose=function(){p.removeData(this._element,At),p(this._element).off(Ot),this._element=null,(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},e.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},e._addEventListeners=function(){var t=this;p(this._element).on(Pt.CLICK,function(e){e.preventDefault(),e.stopPropagation(),t.toggle()})},e._getConfig=function(e){return e=l({},this.constructor.Default,{},p(this._element).data(),{},e),m.typeCheckConfig(It,e,this.constructor.DefaultType),e},e._getMenuElement=function(){if(!this._menu){var e=c._getParentFromElement(this._element);e&&(this._menu=e.querySelector(Bt))}return this._menu},e._getPlacement=function(){var e=p(this._element.parentNode),t=zt;return e.hasClass(Ht)?(t=Vt,p(this._menu).hasClass(Mt)&&(t=Yt)):e.hasClass(Rt)?t=Gt:e.hasClass(Ft)?t=$t:p(this._menu).hasClass(Mt)&&(t=Xt),t},e._detectNavbar=function(){return 0<p(this._element).closest(".navbar").length},e._getOffset=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=l({},e.offsets,{},t._config.offset(e.offsets,t._element)||{}),e}:e.offset=this._config.offset,e},e._getPopperConfig=function(){var e={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(e.modifiers.applyStyle={enabled:!1}),l({},e,{},this._config.popperConfig)},c._jQueryInterface=function(t){return this.each(function(){var e=p(this).data(At);if(e||(e=new c(this,"object"==typeof t?t:null),p(this).data(At,e)),"string"==typeof t){if("undefined"==typeof e[t])throw new TypeError('No method named "'+t+'"');e[t]()}})},c._clearMenus=function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var t=[].slice.call(document.querySelectorAll(Ut)),n=0,i=t.length;n<i;n++){var o=c._getParentFromElement(t[n]),r=p(t[n]).data(At),s={relatedTarget:t[n]};if(e&&"click"===e.type&&(s.clickEvent=e),r){var a=r._menu;if(p(o).hasClass(jt)&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&9===e.which)&&p.contains(o,e.target))){var l=p.Event(Pt.HIDE,s);p(o).trigger(l),l.isDefaultPrevented()||("ontouchstart"in document.documentElement&&p(document.body).children().off("mouseover",null,p.noop),t[n].setAttribute("aria-expanded","false"),r._popper&&r._popper.destroy(),p(a).removeClass(jt),p(o).removeClass(jt).trigger(p.Event(Pt.HIDDEN,s)))}}}},c._getParentFromElement=function(e){var t,n=m.getSelectorFromElement(e);return n&&(t=document.querySelector(n)),t||e.parentNode},c._dataApiKeydownHandler=function(e){if((/input|textarea/i.test(e.target.tagName)?!(32===e.which||27!==e.which&&(40!==e.which&&38!==e.which||p(e.target).closest(Bt).length)):Lt.test(e.which))&&(e.preventDefault(),e.stopPropagation(),!this.disabled&&!p(this).hasClass(xt))){var t=c._getParentFromElement(this),n=p(t).hasClass(jt);if(n||27!==e.which)if(n&&(!n||27!==e.which&&32!==e.which)){var i=[].slice.call(t.querySelectorAll(Qt)).filter(function(e){return p(e).is(":visible")});if(0!==i.length){var o=i.indexOf(e.target);38===e.which&&0<o&&o--,40===e.which&&o<i.length-1&&o++,o<0&&(o=0),i[o].focus()}}else{if(27===e.which){var r=t.querySelector(Ut);p(r).trigger("focus")}p(this).trigger("click")}}},s(c,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return Jt}},{key:"DefaultType",get:function(){return Zt}}]),c}();p(document).on(Pt.KEYDOWN_DATA_API,Ut,en._dataApiKeydownHandler).on(Pt.KEYDOWN_DATA_API,Bt,en._dataApiKeydownHandler).on(Pt.CLICK_DATA_API+" "+Pt.KEYUP_DATA_API,en._clearMenus).on(Pt.CLICK_DATA_API,Ut,function(e){e.preventDefault(),e.stopPropagation(),en._jQueryInterface.call(p(this),"toggle")}).on(Pt.CLICK_DATA_API,qt,function(e){e.stopPropagation()}),p.fn[It]=en._jQueryInterface,p.fn[It].Constructor=en,p.fn[It].noConflict=function(){return p.fn[It]=kt,en._jQueryInterface},"function"!=typeof NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach);var tn="booklyModal",nn="bs.modal",on="."+nn,rn=p.fn[tn],sn={backdrop:!0,keyboard:!0,focus:!0,show:!0},an={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},ln={HIDE:"hide"+on,HIDE_PREVENTED:"hidePrevented"+on,HIDDEN:"hidden"+on,SHOW:"show"+on,SHOWN:"shown"+on,FOCUSIN:"focusin"+on,RESIZE:"resize"+on,CLICK_DISMISS:"click.dismiss"+on,KEYDOWN_DISMISS:"keydown.dismiss"+on,MOUSEUP_DISMISS:"mouseup.dismiss"+on,MOUSEDOWN_DISMISS:"mousedown.dismiss"+on,CLICK_DATA_API:"click"+on+".data-api"},cn="modal-dialog-scrollable",hn="modal-scrollbar-measure",un="bookly-modal-backdrop",fn="bookly-modal-open",dn="bookly-fade",pn="show",mn="modal-static",gn="modal-faded",_n=".modal-dialog",vn=".modal-body",yn='[data-toggle="bookly-modal"]',En='[data-dismiss="bookly-modal"]',bn=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",wn=".sticky-top",Tn=".bookly-modal",Cn=".bookly-modal.show",Sn=function(){function o(e,t){this._config=this._getConfig(t),this._element=e,this._dialog=e.querySelector(_n),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var e=o.prototype;return e.toggle=function(e){return this._isShown?this.hide():this.show(e)},e.show=function(e){var t=this;if(!this._isShown&&!this._isTransitioning){p(this._element).hasClass(dn)&&(this._isTransitioning=!0);var n=p.Event(ln.SHOW,{relatedTarget:e});p(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),document.querySelectorAll(Tn).forEach(function(e){e.classList.add(gn)}),this._element.classList.remove(gn),p(this._element).on(ln.CLICK_DISMISS,En,function(e){return t.hide(e)}),p(this._dialog).on(ln.MOUSEDOWN_DISMISS,function(){p(t._element).one(ln.MOUSEUP_DISMISS,function(e){p(e.target).is(t._element)&&(t._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return t._showElement(e)}))}},e.hide=function(e){var t=this;if(e&&e.preventDefault(),this._isShown&&!this._isTransitioning){var n=p.Event(ln.HIDE);if(p(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var i=p(this._element).hasClass(dn);if(document.querySelectorAll(Tn).forEach(function(e){e.classList.remove(gn)}),i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),p(document).off(ln.FOCUSIN),p(this._element).removeClass(pn),p(this._element).off(ln.CLICK_DISMISS),p(this._dialog).off(ln.MOUSEDOWN_DISMISS),i){var o=m.getTransitionDurationFromElement(this._element);p(this._element).one(m.TRANSITION_END,function(e){return t._hideModal(e)}).emulateTransitionEnd(o)}else this._hideModal()}}},e.dispose=function(){[window,this._element,this._dialog].forEach(function(e){return p(e).off(on)}),p(document).off(ln.FOCUSIN),p.removeData(this._element,nn),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},e.handleUpdate=function(){this._adjustDialog()},e._getConfig=function(e){return e=l({},sn,{},e),m.typeCheckConfig(tn,e,an),e},e._triggerBackdropTransition=function(){var e=this;if("static"===this._config.backdrop){var t=p.Event(ln.HIDE_PREVENTED);if(p(this._element).trigger(t),t.defaultPrevented)return;this._element.classList.add(mn);var n=m.getTransitionDurationFromElement(this._element);p(this._element).one(m.TRANSITION_END,function(){e._element.classList.remove(mn)}).emulateTransitionEnd(n),this._element.focus()}else this.hide()},e._showElement=function(e){var t=this,n=p(this._element).hasClass(dn),i=this._dialog?this._dialog.querySelector(vn):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),p(this._dialog).hasClass(cn)&&i?i.scrollTop=0:this._element.scrollTop=0,n&&m.reflow(this._element),p(this._element).addClass(pn),this._config.focus&&this._enforceFocus();function o(){t._config.focus&&t._element.focus(),t._isTransitioning=!1,p(t._element).trigger(r)}var r=p.Event(ln.SHOWN,{relatedTarget:e});if(n){var s=m.getTransitionDurationFromElement(this._dialog);p(this._dialog).one(m.TRANSITION_END,o).emulateTransitionEnd(s)}else o()},e._enforceFocus=function(){var t=this;p(document).off(ln.FOCUSIN).on(ln.FOCUSIN,function(e){document!==e.target&&t._element!==e.target&&0===p(t._element).has(e.target).length&&t._element.focus()})},e._setEscapeEvent=function(){var t=this;this._isShown&&this._config.keyboard?p(this._element).on(ln.KEYDOWN_DISMISS,function(e){27===e.which&&t._triggerBackdropTransition()}):this._isShown||p(this._element).off(ln.KEYDOWN_DISMISS)},e._setResizeEvent=function(){var t=this;this._isShown?p(window).on(ln.RESIZE,function(e){return t.handleUpdate(e)}):p(window).off(ln.RESIZE)},e._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._isTransitioning=!1,this._showBackdrop(function(){0===document.querySelectorAll(Cn).length&&p(document.body).removeClass(fn),e._resetAdjustments(),e._resetScrollbar(),p(e._element).trigger(ln.HIDDEN)})},e._removeBackdrop=function(){this._backdrop&&(p(this._backdrop).remove(),this._backdrop=null)},e._showBackdrop=function(e){var t=this,n=p(this._element).hasClass(dn)?dn:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=un,n&&this._backdrop.classList.add(n),p(this._backdrop).appendTo(document.body),p(this._element).on(ln.CLICK_DISMISS,function(e){t._ignoreBackdropClick?t._ignoreBackdropClick=!1:e.target===e.currentTarget&&t._triggerBackdropTransition()}),n&&m.reflow(this._backdrop),p(this._backdrop).addClass(pn),!e)return;if(!n)return void e();var i=m.getTransitionDurationFromElement(this._backdrop);p(this._backdrop).one(m.TRANSITION_END,e).emulateTransitionEnd(i)}else if(!this._isShown&&this._backdrop){p(this._backdrop).removeClass(pn);var o=function(){t._removeBackdrop(),e&&e()};if(p(this._element).hasClass(dn)){var r=m.getTransitionDurationFromElement(this._backdrop);p(this._backdrop).one(m.TRANSITION_END,o).emulateTransitionEnd(r)}else o()}else e&&e()},e._adjustDialog=function(){var e=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=e.left+e.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},e._setScrollbar=function(){var o=this;if(this._isBodyOverflowing){var e=[].slice.call(document.querySelectorAll(bn)),t=[].slice.call(document.querySelectorAll(wn));p(e).each(function(e,t){var n=t.style.paddingRight,i=p(t).css("padding-right");p(t).data("padding-right",n).css("padding-right",parseFloat(i)+o._scrollbarWidth+"px")}),p(t).each(function(e,t){var n=t.style.marginRight,i=p(t).css("margin-right");p(t).data("margin-right",n).css("margin-right",parseFloat(i)-o._scrollbarWidth+"px")});var n=document.body.style.paddingRight,i=p(document.body).css("padding-right");p(document.body).data("padding-right",n).css("padding-right",parseFloat(i)+this._scrollbarWidth+"px")}p(document.body).addClass(fn)},e._resetScrollbar=function(){var e=[].slice.call(document.querySelectorAll(bn));p(e).each(function(e,t){var n=p(t).data("padding-right");p(t).removeData("padding-right"),t.style.paddingRight=n||""});var t=[].slice.call(document.querySelectorAll(""+wn));p(t).each(function(e,t){var n=p(t).data("margin-right");"undefined"!=typeof n&&p(t).css("margin-right",n).removeData("margin-right")});var n=p(document.body).data("padding-right");p(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},e._getScrollbarWidth=function(){var e=document.createElement("div");e.className=hn,document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},o._jQueryInterface=function(n,i){return this.each(function(){var e=p(this).data(nn),t=l({},sn,{},p(this).data(),{},"object"==typeof n&&n?n:{});if(e||(e=new o(this,t),p(this).data(nn,e)),"string"==typeof n){if("undefined"==typeof e[n])throw new TypeError('No method named "'+n+'"');e[n](i)}else t.show&&e.show(i)})},s(o,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return sn}}]),o}();p(document).on(ln.CLICK_DATA_API,yn,function(e){var t,n=this,i=m.getSelectorFromElement(this);i&&(t=document.querySelector(i));var o=p(t).data(nn)?"toggle":l({},p(t).data(),{},p(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault();var r=p(t).one(ln.SHOW,function(e){e.isDefaultPrevented()||r.one(ln.HIDDEN,function(){p(n).is(":visible")&&n.focus()})});Sn._jQueryInterface.call(p(t),o,this)}),p.fn[tn]=Sn._jQueryInterface,p.fn[tn].Constructor=Sn,p.fn[tn].noConflict=function(){return p.fn[tn]=rn,Sn._jQueryInterface};var Dn=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],In={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},An=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,On=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function Nn(e,r,t){if(0===e.length)return e;if(t&&"function"==typeof t)return t(e);for(var n=(new window.DOMParser).parseFromString(e,"text/html"),s=Object.keys(r),a=[].slice.call(n.body.querySelectorAll("*")),i=function(e){var t=a[e],n=t.nodeName.toLowerCase();if(-1===s.indexOf(t.nodeName.toLowerCase()))return t.parentNode.removeChild(t),"continue";var i=[].slice.call(t.attributes),o=[].concat(r["*"]||[],r[n]||[]);i.forEach(function(e){!function(e,t){var n=e.nodeName.toLowerCase();if(-1!==t.indexOf(n))return-1===Dn.indexOf(n)||Boolean(e.nodeValue.match(An)||e.nodeValue.match(On));for(var i=t.filter(function(e){return e instanceof RegExp}),o=0,r=i.length;o<r;o++)if(n.match(i[o]))return 1}(e,o)&&t.removeAttribute(e.nodeName)})},o=0,l=a.length;o<l;o++)i(o);return n.body.innerHTML}var kn="tooltip",Ln="bs.tooltip",Pn="."+Ln,xn=p.fn[kn],jn="bs-tooltip",Hn=new RegExp("(^|\\s)"+jn+"\\S+","g"),Rn=["sanitize","whiteList","sanitizeFn"],Fn={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},Mn={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},Wn={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:In,popperConfig:null},Un="show",qn="out",Bn={HIDE:"hide"+Pn,HIDDEN:"hidden"+Pn,SHOW:"show"+Pn,SHOWN:"shown"+Pn,INSERTED:"inserted"+Pn,CLICK:"click"+Pn,FOCUSIN:"focusin"+Pn,FOCUSOUT:"focusout"+Pn,MOUSEENTER:"mouseenter"+Pn,MOUSELEAVE:"mouseleave"+Pn},Kn="bookly-fade",Qn="show",Vn=".tooltip-inner",Yn=".arrow",zn="hover",Xn="focus",Gn="click",$n="manual",Jn=function(){function i(e,t){if("undefined"==typeof St)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var e=i.prototype;return e.enable=function(){this._isEnabled=!0},e.disable=function(){this._isEnabled=!1},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled},e.toggle=function(e){if(this._isEnabled)if(e){var t=this.constructor.DATA_KEY,n=p(e.currentTarget).data(t);n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),p(e.currentTarget).data(t,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(p(this.getTipElement()).hasClass(Qn))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function(){clearTimeout(this._timeout),p.removeData(this.element,this.constructor.DATA_KEY),p(this.element).off(this.constructor.EVENT_KEY),p(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&p(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},e.show=function(){var t=this;if("none"===p(this.element).css("display"))throw new Error("Please use show on visible elements");var e=p.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){p(this.element).trigger(e);var n=m.findShadowRoot(this.element),i=p.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!i)return;var o=this.getTipElement(),r=m.getUID(this.constructor.NAME);o.setAttribute("id",r),this.element.setAttribute("aria-describedby",r),this.setContent(),this.config.animation&&p(o).addClass(Kn);var s="function"==typeof this.config.placement?this.config.placement.call(this,o,this.element):this.config.placement,a=this._getAttachment(s);this.addAttachmentClass(a);var l=this._getContainer();p(o).data(this.constructor.DATA_KEY,this),p.contains(this.element.ownerDocument.documentElement,this.tip)||p(o).appendTo(l),p(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new St(this.element,o,this._getPopperConfig(a)),p(o).addClass(Qn),"ontouchstart"in document.documentElement&&p(document.body).children().on("mouseover",null,p.noop);var c=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,p(t.element).trigger(t.constructor.Event.SHOWN),e===qn&&t._leave(null,t)};if(p(this.tip).hasClass(Kn)){var h=m.getTransitionDurationFromElement(this.tip);p(this.tip).one(m.TRANSITION_END,c).emulateTransitionEnd(h)}else c()}},e.hide=function(e){function t(){n._hoverState!==Un&&i.parentNode&&i.parentNode.removeChild(i),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),p(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),e&&e()}var n=this,i=this.getTipElement(),o=p.Event(this.constructor.Event.HIDE);if(p(this.element).trigger(o),!o.isDefaultPrevented()){if(p(i).removeClass(Qn),"ontouchstart"in document.documentElement&&p(document.body).children().off("mouseover",null,p.noop),this._activeTrigger[Gn]=!1,this._activeTrigger[Xn]=!1,this._activeTrigger[zn]=!1,p(this.tip).hasClass(Kn)){var r=m.getTransitionDurationFromElement(i);p(i).one(m.TRANSITION_END,t).emulateTransitionEnd(r)}else t();this._hoverState=""}},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return Boolean(this.getTitle())},e.addAttachmentClass=function(e){p(this.getTipElement()).addClass(jn+"-"+e)},e.getTipElement=function(){return this.tip=this.tip||p(this.config.template)[0],this.tip},e.setContent=function(){var e=this.getTipElement();this.setElementContent(p(e.querySelectorAll(Vn)),this.getTitle()),p(e).removeClass(Kn+" "+Qn)},e.setElementContent=function(e,t){"object"!=typeof t||!t.nodeType&&!t.jquery?this.config.html?(this.config.sanitize&&(t=Nn(t,this.config.whiteList,this.config.sanitizeFn)),e.html(t)):e.text(t):this.config.html?p(t).parent().is(e)||e.empty().append(t):e.text(p(t).text())},e.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e=e||("function"==typeof this.config.title?this.config.title.call(this.element):this.config.title)},e._getPopperConfig=function(e){var t=this;return l({},{placement:e,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:Yn},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){return t._handlePopperPlacementChange(e)}},{},this.config.popperConfig)},e._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=l({},e.offsets,{},t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},e._getContainer=function(){return!1===this.config.container?document.body:m.isElement(this.config.container)?p(this.config.container):p(document).find(this.config.container)},e._getAttachment=function(e){return Mn[e.toUpperCase()]},e._setListeners=function(){var i=this;this.config.trigger.split(" ").forEach(function(e){if("click"===e)p(i.element).on(i.constructor.Event.CLICK,i.config.selector,function(e){return i.toggle(e)});else if(e!==$n){var t=e===zn?i.constructor.Event.MOUSEENTER:i.constructor.Event.FOCUSIN,n=e===zn?i.constructor.Event.MOUSELEAVE:i.constructor.Event.FOCUSOUT;p(i.element).on(t,i.config.selector,function(e){return i._enter(e)}).on(n,i.config.selector,function(e){return i._leave(e)})}}),this._hideModalHandler=function(){i.element&&i.hide()},p(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=l({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");!this.element.getAttribute("title")&&"string"==e||(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},e._enter=function(e,t){var n=this.constructor.DATA_KEY;(t=t||p(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),p(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusin"===e.type?Xn:zn]=!0),p(t.getTipElement()).hasClass(Qn)||t._hoverState===Un?t._hoverState=Un:(clearTimeout(t._timeout),t._hoverState=Un,t.config.delay&&t.config.delay.show?t._timeout=setTimeout(function(){t._hoverState===Un&&t.show()},t.config.delay.show):t.show())},e._leave=function(e,t){var n=this.constructor.DATA_KEY;(t=t||p(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),p(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusout"===e.type?Xn:zn]=!1),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=qn,t.config.delay&&t.config.delay.hide?t._timeout=setTimeout(function(){t._hoverState===qn&&t.hide()},t.config.delay.hide):t.hide())},e._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},e._getConfig=function(e){var t=p(this.element).data();return Object.keys(t).forEach(function(e){-1!==Rn.indexOf(e)&&delete t[e]}),"number"==typeof(e=l({},this.constructor.Default,{},t,{},"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),m.typeCheckConfig(kn,e,this.constructor.DefaultType),e.sanitize&&(e.template=Nn(e.template,e.whiteList,e.sanitizeFn)),e},e._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},e._cleanTipClass=function(){var e=p(this.getTipElement()),t=e.attr("class").match(Hn);null!==t&&t.length&&e.removeClass(t.join(""))},e._handlePopperPlacementChange=function(e){var t=e.instance;this.tip=t.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},e._fixTransition=function(){var e=this.getTipElement(),t=this.config.animation;null===e.getAttribute("x-placement")&&(p(e).removeClass(Kn),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},i._jQueryInterface=function(n){return this.each(function(){var e=p(this).data(Ln),t="object"==typeof n&&n;if((e||!/dispose|hide/.test(n))&&(e||(e=new i(this,t),p(this).data(Ln,e)),"string"==typeof n)){if("undefined"==typeof e[n])throw new TypeError('No method named "'+n+'"');e[n]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return Wn}},{key:"NAME",get:function(){return kn}},{key:"DATA_KEY",get:function(){return Ln}},{key:"Event",get:function(){return Bn}},{key:"EVENT_KEY",get:function(){return Pn}},{key:"DefaultType",get:function(){return Fn}}]),i}();p.fn[kn]=Jn._jQueryInterface,p.fn[kn].Constructor=Jn,p.fn[kn].noConflict=function(){return p.fn[kn]=xn,Jn._jQueryInterface};var Zn="booklyPopover",ei="bs.popover",ti="."+ei,ni=p.fn[Zn],ii="bs-popover",oi=new RegExp("(^|\\s)"+ii+"\\S+","g"),ri=l({},Jn.Default,{placement:"right",trigger:"click",content:"",template:'<div class="bookly-popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),si=l({},Jn.DefaultType,{content:"(string|element|function)"}),ai="bookly-fade",li="show",ci=".popover-header",hi=".popover-body",ui={HIDE:"hide"+ti,HIDDEN:"hidden"+ti,SHOW:"show"+ti,SHOWN:"shown"+ti,INSERTED:"inserted"+ti,CLICK:"click"+ti,FOCUSIN:"focusin"+ti,FOCUSOUT:"focusout"+ti,MOUSEENTER:"mouseenter"+ti,MOUSELEAVE:"mouseleave"+ti},fi=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),(t.prototype.constructor=t).__proto__=n;var o=i.prototype;return o.isWithContent=function(){return this.getTitle()||this._getContent()},o.addAttachmentClass=function(e){p(this.getTipElement()).addClass(ii+"-"+e)},o.getTipElement=function(){return this.tip=this.tip||p(this.config.template)[0],this.tip},o.setContent=function(){var e=p(this.getTipElement());this.setElementContent(e.find(ci),this.getTitle());var t=this._getContent();"function"==typeof t&&(t=t.call(this.element)),this.setElementContent(e.find(hi),t),e.removeClass(ai+" "+li)},o._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},o._cleanTipClass=function(){var e=p(this.getTipElement()),t=e.attr("class").match(oi);null!==t&&0<t.length&&e.removeClass(t.join(""))},i._jQueryInterface=function(n){return this.each(function(){var e=p(this).data(ei),t="object"==typeof n?n:null;if((e||!/dispose|hide/.test(n))&&(e||(e=new i(this,t),p(this).data(ei,e)),"string"==typeof n)){if("undefined"==typeof e[n])throw new TypeError('No method named "'+n+'"');e[n]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return ri}},{key:"NAME",get:function(){return Zn}},{key:"DATA_KEY",get:function(){return ei}},{key:"Event",get:function(){return ui}},{key:"EVENT_KEY",get:function(){return ti}},{key:"DefaultType",get:function(){return si}}]),i}(Jn);p.fn[Zn]=fi._jQueryInterface,p.fn[Zn].Constructor=fi,p.fn[Zn].noConflict=function(){return p.fn[Zn]=ni,fi._jQueryInterface};var di="scrollspy",pi="bs.scrollspy",mi="."+pi,gi=p.fn[di],_i={offset:10,method:"auto",target:""},vi={offset:"number",method:"string",target:"(string|element)"},yi={ACTIVATE:"activate"+mi,SCROLL:"scroll"+mi,LOAD_DATA_API:"load"+mi+".data-api"},Ei="dropdown-item",bi="active",wi='[data-spy="scroll"]',Ti=".nav, .list-group",Ci=".nav-link",Si=".nav-item",Di=".list-group-item",Ii=".dropdown",Ai=".dropdown-item",Oi=".dropdown-toggle",Ni="offset",ki="position",Li=function(){function n(e,t){var n=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(t),this._selector=this._config.target+" "+Ci+","+this._config.target+" "+Di+","+this._config.target+" "+Ai,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,p(this._scrollElement).on(yi.SCROLL,function(e){return n._process(e)}),this.refresh(),this._process()}var e=n.prototype;return e.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?Ni:ki,o="auto"===this._config.method?e:this._config.method,r=o===ki?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(e){var t,n=m.getSelectorFromElement(e);if(n&&(t=document.querySelector(n)),t){var i=t.getBoundingClientRect();if(i.width||i.height)return[p(t)[o]().top+r,n]}return null}).filter(function(e){return e}).sort(function(e,t){return e[0]-t[0]}).forEach(function(e){t._offsets.push(e[0]),t._targets.push(e[1])})},e.dispose=function(){p.removeData(this._element,pi),p(this._scrollElement).off(mi),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},e._getConfig=function(e){if("string"!=typeof(e=l({},_i,{},"object"==typeof e&&e?e:{})).target){var t=p(e.target).attr("id");t||(t=m.getUID(di),p(e.target).attr("id",t)),e.target="#"+t}return m.typeCheckConfig(di,e,vi),e},e._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},e._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},e._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},e._process=function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),n<=e){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&e<this._offsets[0]&&0<this._offsets[0])return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;){this._activeTarget!==this._targets[o]&&e>=this._offsets[o]&&("undefined"==typeof this._offsets[o+1]||e<this._offsets[o+1])&&this._activate(this._targets[o])}}},e._activate=function(t){this._activeTarget=t,this._clear();var e=this._selector.split(",").map(function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'}),n=p([].slice.call(document.querySelectorAll(e.join(","))));n.hasClass(Ei)?(n.closest(Ii).find(Oi).addClass(bi),n.addClass(bi)):(n.addClass(bi),n.parents(Ti).prev(Ci+", "+Di).addClass(bi),n.parents(Ti).prev(Si).children(Ci).addClass(bi)),p(this._scrollElement).trigger(yi.ACTIVATE,{relatedTarget:t})},e._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(e){return e.classList.contains(bi)}).forEach(function(e){return e.classList.remove(bi)})},n._jQueryInterface=function(t){return this.each(function(){var e=p(this).data(pi);if(e||(e=new n(this,"object"==typeof t&&t),p(this).data(pi,e)),"string"==typeof t){if("undefined"==typeof e[t])throw new TypeError('No method named "'+t+'"');e[t]()}})},s(n,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return _i}}]),n}();p(window).on(yi.LOAD_DATA_API,function(){for(var e=[].slice.call(document.querySelectorAll(wi)),t=e.length;t--;){var n=p(e[t]);Li._jQueryInterface.call(n,n.data())}}),p.fn[di]=Li._jQueryInterface,p.fn[di].Constructor=Li,p.fn[di].noConflict=function(){return p.fn[di]=gi,Li._jQueryInterface};var Pi="booklyTab",xi="bs.tab",ji="."+xi,Hi=p.fn[Pi],Ri={HIDE:"hide"+ji,HIDDEN:"hidden"+ji,SHOW:"show"+ji,SHOWN:"shown"+ji,CLICK_DATA_API:"click"+ji+".data-api"},Fi="dropdown-menu",Mi="active",Wi="disabled",Ui="bookly-fade",qi="show",Bi=".dropdown",Ki=".nav, .list-group",Qi=".active",Vi="> li > .active",Yi='[data-toggle="bookly-tab"], [data-toggle="bookly-pill"], [data-toggle="bookly-list"]',zi=".dropdown-toggle",Xi="> .dropdown-menu .active",Gi=function(){function i(e){this._element=e}var e=i.prototype;return e.show=function(){var n=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&p(this._element).hasClass(Mi)||p(this._element).hasClass(Wi))){var e,i,t=p(this._element).closest(Ki)[0],o=m.getSelectorFromElement(this._element);if(t){var r="UL"===t.nodeName||"OL"===t.nodeName?Vi:Qi;i=(i=p.makeArray(p(t).find(r)))[i.length-1]}var s=p.Event(Ri.HIDE,{relatedTarget:this._element}),a=p.Event(Ri.SHOW,{relatedTarget:i});if(i&&p(i).trigger(s),p(this._element).trigger(a),!a.isDefaultPrevented()&&!s.isDefaultPrevented()){o&&(e=document.querySelector(o)),this._activate(this._element,t);var l=function(){var e=p.Event(Ri.HIDDEN,{relatedTarget:n._element}),t=p.Event(Ri.SHOWN,{relatedTarget:i});p(i).trigger(e),p(n._element).trigger(t)};e?this._activate(e,e.parentNode,l):l()}}},e.dispose=function(){p.removeData(this._element,xi),this._element=null},e._activate=function(e,t,n){function i(){return o._transitionComplete(e,r,n)}var o=this,r=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?p(t).children(Qi):p(t).find(Vi))[0],s=n&&r&&p(r).hasClass(Ui);if(r&&s){var a=m.getTransitionDurationFromElement(r);p(r).removeClass(qi).one(m.TRANSITION_END,i).emulateTransitionEnd(a)}else i()},e._transitionComplete=function(e,t,n){if(t){p(t).removeClass(Mi);var i=p(t.parentNode).find(Xi)[0];i&&p(i).removeClass(Mi),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}if(p(e).addClass(Mi),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),m.reflow(e),e.classList.contains(Ui)&&e.classList.add(qi),e.parentNode&&p(e.parentNode).hasClass(Fi)){var o=p(e).closest(Bi)[0];if(o){var r=[].slice.call(o.querySelectorAll(zi));p(r).addClass(Mi)}e.setAttribute("aria-expanded",!0)}n&&n()},i._jQueryInterface=function(n){return this.each(function(){var e=p(this),t=e.data(xi);if(t||(t=new i(this),e.data(xi,t)),"string"==typeof n){if("undefined"==typeof t[n])throw new TypeError('No method named "'+n+'"');t[n]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),i}();p(document).on(Ri.CLICK_DATA_API,Yi,function(e){e.preventDefault(),Gi._jQueryInterface.call(p(this),"show")}),p.fn[Pi]=Gi._jQueryInterface,p.fn[Pi].Constructor=Gi,p.fn[Pi].noConflict=function(){return p.fn[Pi]=Hi,Gi._jQueryInterface};var $i="toast",Ji="bs.toast",Zi="."+Ji,eo=p.fn[$i],to={CLICK_DISMISS:"click.dismiss"+Zi,HIDE:"hide"+Zi,HIDDEN:"hidden"+Zi,SHOW:"show"+Zi,SHOWN:"shown"+Zi},no="fade",io="hide",oo="show",ro="showing",so={animation:"boolean",autohide:"boolean",delay:"number"},ao={animation:!0,autohide:!0,delay:500},lo='[data-dismiss="toast"]',co=function(){function i(e,t){this._element=e,this._config=this._getConfig(t),this._timeout=null,this._setListeners()}var e=i.prototype;return e.show=function(){var e=this,t=p.Event(to.SHOW);if(p(this._element).trigger(t),!t.isDefaultPrevented()){this._config.animation&&this._element.classList.add(no);var n=function(){e._element.classList.remove(ro),e._element.classList.add(oo),p(e._element).trigger(to.SHOWN),e._config.autohide&&(e._timeout=setTimeout(function(){e.hide()},e._config.delay))};if(this._element.classList.remove(io),m.reflow(this._element),this._element.classList.add(ro),this._config.animation){var i=m.getTransitionDurationFromElement(this._element);p(this._element).one(m.TRANSITION_END,n).emulateTransitionEnd(i)}else n()}},e.hide=function(){if(this._element.classList.contains(oo)){var e=p.Event(to.HIDE);p(this._element).trigger(e),e.isDefaultPrevented()||this._close()}},e.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains(oo)&&this._element.classList.remove(oo),p(this._element).off(to.CLICK_DISMISS),p.removeData(this._element,Ji),this._element=null,this._config=null},e._getConfig=function(e){return e=l({},ao,{},p(this._element).data(),{},"object"==typeof e&&e?e:{}),m.typeCheckConfig($i,e,this.constructor.DefaultType),e},e._setListeners=function(){var e=this;p(this._element).on(to.CLICK_DISMISS,lo,function(){return e.hide()})},e._close=function(){function e(){t._element.classList.add(io),p(t._element).trigger(to.HIDDEN)}var t=this;if(this._element.classList.remove(oo),this._config.animation){var n=m.getTransitionDurationFromElement(this._element);p(this._element).one(m.TRANSITION_END,e).emulateTransitionEnd(n)}else e()},i._jQueryInterface=function(n){return this.each(function(){var e=p(this),t=e.data(Ji);if(t||(t=new i(this,"object"==typeof n&&n),e.data(Ji,t)),"string"==typeof n){if("undefined"==typeof t[n])throw new TypeError('No method named "'+n+'"');t[n](this)}})},s(i,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"DefaultType",get:function(){return so}},{key:"Default",get:function(){return ao}}]),i}();p.fn[$i]=co._jQueryInterface,p.fn[$i].Constructor=co,p.fn[$i].noConflict=function(){return p.fn[$i]=eo,co._jQueryInterface},e.Alert=_,e.Button=x,e.Carousel=he,e.Collapse=De,e.Dropdown=en,e.Modal=Sn,e.Popover=fi,e.Scrollspy=Li,e.Tab=Gi,e.Toast=co,e.Tooltip=Jn,e.Util=m,Object.defineProperty(e,"__esModule",{value:!0})});
backend/resources/js/plugins.js CHANGED
@@ -71,7 +71,7 @@ jQuery(function ($) {
71
  checkUpdate('bookly-addon-pro', BooklyPluginsPageL10n.addons.slice(i), resolve);
72
  }));
73
  }
74
- Promise.all(promises).then(results => {
75
  let exists = false;
76
  for (var key in results) {
77
  if (results[key].exist_updates) {
71
  checkUpdate('bookly-addon-pro', BooklyPluginsPageL10n.addons.slice(i), resolve);
72
  }));
73
  }
74
+ Promise.all(promises).then(function(results) {
75
  let exists = false;
76
  for (var key in results) {
77
  if (results[key].exist_updates) {
frontend/components/booking/InfoText.php CHANGED
@@ -36,6 +36,7 @@ class InfoText
36
  'appointment_time' => array(),
37
  'category_names' => array(),
38
  'numbers_of_persons' => array(),
 
39
  'service_duration' => array(),
40
  'service_info' => array(),
41
  'service_names' => array(),
36
  'appointment_time' => array(),
37
  'category_names' => array(),
38
  'numbers_of_persons' => array(),
39
+ 'online_meeting_url' => array(), // @todo Remove it from here and adjust proxy methods so that codes can be processed for each step independently
40
  'service_duration' => array(),
41
  'service_info' => array(),
42
  'service_names' => array(),
lib/notifications/assets/item/Codes.php CHANGED
@@ -175,9 +175,7 @@ class Codes extends Order\Codes
175
  '{service_info}' => $format == 'html' ? nl2br( $this->service_info ) : $this->service_info,
176
  '{service_name}' => $this->service_name,
177
  '{service_price}' => Utils\Price::format( $this->service_price ),
178
- '{service_duration}' => $this->appointment_start === null
179
- ? __( 'N/A', 'bookly' )
180
- : Utils\DateTime::secondsToInterval( $this->service_duration ),
181
  '{staff_email}' => $this->staff->getEmail(),
182
  '{staff_info}' => $format == 'html' ? nl2br( $this->staff->getTranslatedInfo() ) : $this->staff->getTranslatedInfo(),
183
  '{staff_name}' => $this->staff->getTranslatedName(),
175
  '{service_info}' => $format == 'html' ? nl2br( $this->service_info ) : $this->service_info,
176
  '{service_name}' => $this->service_name,
177
  '{service_price}' => Utils\Price::format( $this->service_price ),
178
+ '{service_duration}' => Utils\DateTime::secondsToInterval( $this->service_duration ),
 
 
179
  '{staff_email}' => $this->staff->getEmail(),
180
  '{staff_info}' => $format == 'html' ? nl2br( $this->staff->getTranslatedInfo() ) : $this->staff->getTranslatedInfo(),
181
  '{staff_name}' => $this->staff->getTranslatedName(),
main.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Bookly
4
  Plugin URI: https://www.booking-wp-plugin.com/?utm_source=bookly_admin&utm_medium=plugins_page&utm_campaign=plugins_page
5
  Description: Bookly Plugin – is a great easy-to-use and easy-to-manage booking tool for service providers who think about their customers. The plugin supports a wide range of services provided by business and individuals who offer reservations through websites. Set up any reservation quickly, pleasantly and easily with Bookly!
6
- Version: 18.0
7
  Author: Bookly
8
  Author URI: https://www.booking-wp-plugin.com/?utm_source=bookly_admin&utm_medium=plugins_page&utm_campaign=plugins_page
9
  Text Domain: bookly
3
  Plugin Name: Bookly
4
  Plugin URI: https://www.booking-wp-plugin.com/?utm_source=bookly_admin&utm_medium=plugins_page&utm_campaign=plugins_page
5
  Description: Bookly Plugin – is a great easy-to-use and easy-to-manage booking tool for service providers who think about their customers. The plugin supports a wide range of services provided by business and individuals who offer reservations through websites. Set up any reservation quickly, pleasantly and easily with Bookly!
6
+ Version: 18.1
7
  Author: Bookly
8
  Author URI: https://www.booking-wp-plugin.com/?utm_source=bookly_admin&utm_medium=plugins_page&utm_campaign=plugins_page
9
  Text Domain: bookly
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: https://www.booking-wp-plugin.com/
5
  Requires at least: 3.7
6
  Tested up to: 5.4
7
  Requires PHP: 5.3.7
8
- Stable tag: 18.0
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
5
  Requires at least: 3.7
6
  Tested up to: 5.4
7
  Requires PHP: 5.3.7
8
+ Stable tag: 18.1
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11