@zengenti/contensis-react-base 3.2.3-beta.0 → 3.2.3-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/cjs/{App-D2_FqsUD.js → App-B9Sxnrpa.js} +48 -26
  2. package/cjs/App-B9Sxnrpa.js.map +1 -0
  3. package/cjs/{ChangePassword.container-DrO8p-7S.js → ChangePassword.container-Dup9_na7.js} +7 -4
  4. package/cjs/ChangePassword.container-Dup9_na7.js.map +1 -0
  5. package/cjs/{CookieHelper.class-CNL3lC5D.js → CookieHelper.class-CxeVo9EP.js} +3 -1
  6. package/cjs/CookieHelper.class-CxeVo9EP.js.map +1 -0
  7. package/cjs/{RouteLoader-BrUuhdcK.js → RouteLoader-zFf-UX6s.js} +2 -2
  8. package/cjs/{RouteLoader-BrUuhdcK.js.map → RouteLoader-zFf-UX6s.js.map} +1 -1
  9. package/cjs/{SSRContext-CmXDzwPL.js → SSRContext-DpnwQ2te.js} +3 -3
  10. package/{esm/SSRContext-BoisoiyV.js.map → cjs/SSRContext-DpnwQ2te.js.map} +1 -1
  11. package/cjs/ToJs-C9jwV7YB.js.map +1 -1
  12. package/cjs/client.js +7 -7
  13. package/cjs/client.js.map +1 -1
  14. package/cjs/contensis-react-base.js +2913 -2061
  15. package/cjs/contensis-react-base.js.map +1 -1
  16. package/cjs/forms.js +2199 -2190
  17. package/cjs/forms.js.map +1 -1
  18. package/cjs/{fromJSLeaveImmer-Drk6JyYs.js → fromJSLeaveImmer-Blvlk4t2.js} +2 -3
  19. package/cjs/{fromJSLeaveImmer-Drk6JyYs.js.map → fromJSLeaveImmer-Blvlk4t2.js.map} +1 -1
  20. package/cjs/redux.js +2 -2
  21. package/cjs/redux.js.map +1 -1
  22. package/cjs/routing.js +4 -4
  23. package/cjs/sagas-DFdRjqSX.js.map +1 -1
  24. package/cjs/search.js.map +1 -1
  25. package/cjs/selectors-wCs5fHD4.js.map +1 -1
  26. package/cjs/{store-D8dJBaFw.js → store-BihH67lI.js} +2 -2
  27. package/cjs/{store-D8dJBaFw.js.map → store-BihH67lI.js.map} +1 -1
  28. package/cjs/urls-DVIwGZmd.js.map +1 -1
  29. package/cjs/user.js +2 -2
  30. package/cjs/user.js.map +1 -1
  31. package/cjs/util.js +32 -23
  32. package/cjs/util.js.map +1 -1
  33. package/cjs/version-CM-bJ62L.js.map +1 -1
  34. package/cjs/{version-DSW6Roy9.js → version-Cg79mdPg.js} +2 -2
  35. package/cjs/{version-DSW6Roy9.js.map → version-Cg79mdPg.js.map} +1 -1
  36. package/esm/{App-BE7fh-wb.js → App-BttCZ664.js} +48 -26
  37. package/esm/App-BttCZ664.js.map +1 -0
  38. package/esm/{ChangePassword.container-6fQXhkzW.js → ChangePassword.container-Bcpef423.js} +7 -4
  39. package/esm/ChangePassword.container-Bcpef423.js.map +1 -0
  40. package/esm/{CookieHelper.class-DqJ_o1jL.js → CookieHelper.class-W_NNNJKT.js} +3 -2
  41. package/esm/CookieHelper.class-W_NNNJKT.js.map +1 -0
  42. package/esm/{RouteLoader-BNKfOnU8.js → RouteLoader-De1Q8gFr.js} +2 -2
  43. package/esm/{RouteLoader-BNKfOnU8.js.map → RouteLoader-De1Q8gFr.js.map} +1 -1
  44. package/esm/{SSRContext-BoisoiyV.js → SSRContext-3TvaCDn0.js} +3 -3
  45. package/{cjs/SSRContext-CmXDzwPL.js.map → esm/SSRContext-3TvaCDn0.js.map} +1 -1
  46. package/esm/ToJs-B4MH53fx.js.map +1 -1
  47. package/esm/client.js +8 -8
  48. package/esm/client.js.map +1 -1
  49. package/esm/contensis-react-base.js +2914 -2062
  50. package/esm/contensis-react-base.js.map +1 -1
  51. package/esm/forms.js +2200 -2191
  52. package/esm/forms.js.map +1 -1
  53. package/esm/{fromJSLeaveImmer-DfnbPBKC.js → fromJSLeaveImmer-C_YACmOf.js} +2 -3
  54. package/esm/{fromJSLeaveImmer-DfnbPBKC.js.map → fromJSLeaveImmer-C_YACmOf.js.map} +1 -1
  55. package/esm/redux.js +4 -4
  56. package/esm/redux.js.map +1 -1
  57. package/esm/routing.js +4 -4
  58. package/esm/sagas-waBQR0Ek.js.map +1 -1
  59. package/esm/search.js.map +1 -1
  60. package/esm/selectors-BRzliwbK.js.map +1 -1
  61. package/esm/{store-Cr0lmZNr.js → store-f0WxNWUu.js} +2 -2
  62. package/esm/{store-Cr0lmZNr.js.map → store-f0WxNWUu.js.map} +1 -1
  63. package/esm/urls-DfCisos-.js.map +1 -1
  64. package/esm/user.js +3 -3
  65. package/esm/user.js.map +1 -1
  66. package/esm/util.js +32 -23
  67. package/esm/util.js.map +1 -1
  68. package/esm/version-78jjDnHU.js.map +1 -1
  69. package/esm/{version-CB7rIyoF.js → version-BnnERhzW.js} +2 -2
  70. package/esm/{version-CB7rIyoF.js.map → version-BnnERhzW.js.map} +1 -1
  71. package/models/app/App.d.ts +2 -2
  72. package/models/app/pages/VersionInfo/components/VersionInfo.d.ts +2 -2
  73. package/models/redux/actions/index.d.ts +2 -2
  74. package/models/redux/selectors/index.d.ts +2 -2
  75. package/models/redux/store/injectors.d.ts +4 -4
  76. package/models/redux/types/index.d.ts +2 -2
  77. package/models/redux/types/navigation.d.ts +3 -3
  78. package/models/redux/types/version.d.ts +2 -2
  79. package/models/routing/components/Loading.d.ts +2 -2
  80. package/models/routing/components/NotFound.d.ts +2 -2
  81. package/models/routing/components/Status.d.ts +2 -2
  82. package/models/routing/redux/types.d.ts +11 -11
  83. package/models/search/models/Search.d.ts +1 -1
  84. package/models/search/transformations/searchresult-to-state.mapper.d.ts +1 -2
  85. package/models/server/features/static-assets/index.d.ts +1 -1
  86. package/models/user/components/Login.d.ts +2 -1
  87. package/models/user/components/LoginForm.d.ts +7 -6
  88. package/models/user/components/LogoutForm.d.ts +5 -4
  89. package/models/user/containers/ChangePassword.container.d.ts +1 -1
  90. package/models/user/containers/ForgotPassword.container.d.ts +1 -1
  91. package/models/user/containers/Login.container.d.ts +1 -1
  92. package/models/user/containers/Registration.container.d.ts +1 -1
  93. package/models/user/hocs/withLogin.d.ts +1 -1
  94. package/models/user/hocs/withRegistration.d.ts +1 -1
  95. package/models/user/redux/types.d.ts +21 -21
  96. package/models/user/util/CookieConstants.d.ts +1 -0
  97. package/models/user/util/LoginHelper.class.d.ts +1 -4
  98. package/models/util/ContensisDeliveryApi.d.ts +1 -0
  99. package/models/util/SSRContext.d.ts +4 -5
  100. package/models/util/ToJs.d.ts +1 -1
  101. package/models/util/json-mapper.d.ts +3 -3
  102. package/package.json +62 -63
  103. package/cjs/App-D2_FqsUD.js.map +0 -1
  104. package/cjs/ChangePassword.container-DrO8p-7S.js.map +0 -1
  105. package/cjs/CookieHelper.class-CNL3lC5D.js.map +0 -1
  106. package/esm/App-BE7fh-wb.js.map +0 -1
  107. package/esm/ChangePassword.container-6fQXhkzW.js.map +0 -1
  108. package/esm/CookieHelper.class-DqJ_o1jL.js.map +0 -1
package/esm/forms.js CHANGED
@@ -6,7 +6,7 @@ import React, { createContext, useState, useEffect, useRef } from 'react';
6
6
  import PropTypes from 'prop-types';
7
7
  import { useSelector, useDispatch } from 'react-redux';
8
8
  import styled, { ThemeProvider as ThemeProvider$1, css } from 'styled-components';
9
- import { c as commonjsGlobal, g as getDefaultExportFromCjs } from './_commonjsHelpers-BFTU3MAI.js';
9
+ import { g as getDefaultExportFromCjs } from './_commonjsHelpers-BFTU3MAI.js';
10
10
 
11
11
  const ACTION_PREFIX = '@FORM2/';
12
12
  const SET_FORM_DATA = `${ACTION_PREFIX}SET_FORM_DATA`;
@@ -1837,2226 +1837,2235 @@ EntryPicker.propTypes = {
1837
1837
  formId: PropTypes.string
1838
1838
  };
1839
1839
 
1840
- var dist = {exports: {}};
1840
+ var dist$1 = {exports: {}};
1841
1841
 
1842
- (function (module, exports) {
1843
- !function (t, e) {
1844
- module.exports = e() ;
1845
- }("undefined" != typeof self ? self : commonjsGlobal, function () {
1846
- return function (t) {
1847
- var e = {};
1848
- function n(r) {
1849
- if (e[r]) return e[r].exports;
1850
- var i = e[r] = {
1851
- i: r,
1852
- l: !1,
1853
- exports: {}
1854
- };
1855
- return t[r].call(i.exports, i, i.exports, n), i.l = !0, i.exports;
1856
- }
1857
- return n.m = t, n.c = e, n.d = function (t, e, r) {
1858
- n.o(t, e) || Object.defineProperty(t, e, {
1859
- configurable: !1,
1860
- enumerable: !0,
1861
- get: r
1862
- });
1863
- }, n.n = function (t) {
1864
- var e = t && t.__esModule ? function () {
1865
- return t.default;
1866
- } : function () {
1867
- return t;
1868
- };
1869
- return n.d(e, "a", e), e;
1870
- }, n.o = function (t, e) {
1871
- return Object.prototype.hasOwnProperty.call(t, e);
1872
- }, n.p = "", n(n.s = 2);
1873
- }([function (t, e) {
1874
- var n;
1875
- n = function () {
1876
- return this;
1877
- }();
1878
- try {
1879
- n = n || Function("return this")() || (0, eval)("this");
1880
- } catch (t) {
1881
- "object" == typeof window && (n = window);
1882
- }
1883
- t.exports = n;
1884
- }, function (t, e, n) {
1842
+ var dist = dist$1.exports;
1885
1843
 
1886
- t.exports = u;
1887
- var r = n(3),
1888
- i = n(4),
1889
- o = Array.prototype;
1890
- function u(t) {
1891
- if (!(this instanceof u)) return new u(t);
1892
- var e,
1893
- n = i(t.className).split(/\s+/);
1894
- for (this._elem = t, this.length = 0, e = 0; e < n.length; e += 1) n[e] && o.push.call(this, n[e]);
1895
- }
1896
- u.prototype.add = function () {
1897
- var t, e;
1898
- for (e = 0; e < arguments.length; e += 1) t = "" + arguments[e], r(this, t) >= 0 || o.push.call(this, t);
1899
- return this._elem.className = this.toString(), this;
1900
- }, u.prototype.remove = function () {
1901
- var t, e, n;
1902
- for (n = 0; n < arguments.length; n += 1) e = "" + arguments[n], (t = r(this, e)) < 0 || o.splice.call(this, t, 1);
1903
- return this._elem.className = this.toString(), this;
1904
- }, u.prototype.contains = function (t) {
1905
- return r(this, t += "") >= 0;
1906
- }, u.prototype.toggle = function (t, e) {
1907
- return t += "", !0 === e ? this.add(t) : !1 === e ? this.remove(t) : this[this.contains(t) ? "remove" : "add"](t);
1908
- }, u.prototype.toString = function () {
1909
- return o.join.call(this, " ");
1910
- };
1911
- }, function (t, e, n) {
1844
+ var hasRequiredDist;
1912
1845
 
1913
- var r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
1914
- return typeof t;
1915
- } : function (t) {
1916
- return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1917
- },
1918
- i = function () {
1919
- function t(t, e) {
1920
- for (var n = 0; n < e.length; n++) {
1921
- var r = e[n];
1922
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
1923
- }
1924
- }
1925
- return function (e, n, r) {
1926
- return n && t(e.prototype, n), r && t(e, r), e;
1927
- };
1928
- }(),
1929
- o = E(n(1)),
1930
- u = E(n(5)),
1931
- s = E(n(6)),
1932
- a = E(n(7)),
1933
- c = E(n(8)),
1934
- f = E(n(9)),
1935
- l = E(n(10)),
1936
- h = E(n(12)),
1937
- p = E(n(14)),
1938
- d = E(n(15)),
1939
- g = E(n(17)),
1940
- y = E(n(18)),
1941
- v = E(n(19)),
1942
- m = E(n(31)),
1943
- b = E(n(32)),
1944
- w = E(n(35));
1945
- function E(t) {
1946
- return t && t.__esModule ? t : {
1947
- default: t
1948
- };
1949
- }
1950
- t.exports = function () {
1951
- function t(e) {
1952
- var n = this;
1953
- if (function (t, e) {
1954
- if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
1955
- }(this, t), e = e || {}, this.config = (0, b.default)(e), this.input = (0, d.default)(this.config.input), this.list = (0, d.default)(this.config.list), this.cachedOpts = this.currentOpts = (0, d.default)(this.config.options, !0, this.list), this.isOpen = !1, this.currentOption = null, this.selected = [], this.groups = [], this.isHovering = !1, this.autoFilter = this.config.autoFilter, this.optionsWithEventHandlers = new Set(), this.optionsWithKeyEventHandlers = new Set(), this.config.groups) {
1956
- var r = (0, d.default)(this.config.groups, !0, this.list);
1957
- this.groups = r.map(function (t) {
1958
- return {
1959
- element: t,
1960
- options: n.cachedOpts.filter(function (e) {
1961
- return t.contains(e);
1962
- })
1963
- };
1964
- });
1965
- }
1966
- if (!this.input || !this.list) throw new Error("Unable to find required elements (list/input)");
1967
- (0, v.default)(this.input, this.list, this.cachedOpts), this.config.useLiveRegion && (this.liveRegion = new s.default({
1968
- ariaLive: "assertive"
1969
- })), this.initEvents();
1970
- }
1971
- return i(t, [{
1972
- key: "initEvents",
1973
- value: function () {
1974
- var t = this;
1975
- (0, u.default)(this), this.optionsWithKeyEventHandlers.has(this.input) || (this.input.addEventListener("click", function () {
1976
- t.openList().goTo(t.getOptIndex() || 0);
1977
- }), this.input.addEventListener("blur", function () {
1978
- t.isHovering || t.closeList();
1979
- }), this.input.addEventListener("focus", function () {
1980
- t.selected.length && (t.input.value = t.selected.length >= 2 ? "" : t.config.selectionValue(t.selected)), t.input.select();
1981
- }), document.addEventListener("click", function (e) {
1982
- !(0, p.default)(e.target, [t.input, t.list], !0) && t.isOpen && t.closeList();
1983
- })), this.optionEvents(), this.initKeys();
1984
- }
1985
- }, {
1986
- key: "getOptIndex",
1987
- value: function () {
1988
- return this.currentOption && this.currentOpts.indexOf(this.currentOption);
1989
- }
1990
- }, {
1991
- key: "optionEvents",
1992
- value: function () {
1993
- var t = this;
1994
- this.cachedOpts.forEach(function (e) {
1995
- t.optionsWithEventHandlers.has(e.id) || t.selected.includes(e) || (e.addEventListener("click", function () {
1996
- t.goTo(t.currentOpts.indexOf(e)).select();
1997
- }), e.addEventListener("mouseover", function () {
1998
- var n = t.currentOption;
1999
- n && (0, o.default)(n).remove(t.config.activeClass), (0, o.default)(e).add(t.config.activeClass), t.isHovering = !0;
2000
- }), e.addEventListener("mouseout", function () {
2001
- (0, o.default)(e).remove(t.config.activeClass), t.isHovering = !1;
2002
- }), t.optionsWithEventHandlers.add(e.id));
2003
- });
2004
- }
2005
- }, {
2006
- key: "openList",
2007
- value: function () {
2008
- (0, o.default)(this.list).add(this.config.openClass), this.input.setAttribute("aria-expanded", "true"), this.isOpen || this.announceCount(), this.isOpen = !0, this.emit("list:open");
2009
- var t = (0, f.default)(this.list);
2010
- if (!t.visible) {
2011
- var e = "bottom" === t.position ? 0 - (window.innerHeight - (this.input.clientHeight + this.list.clientHeight)) : 0;
2012
- (0, a.default)({
2013
- element: this.input,
2014
- offset: e,
2015
- bezier: [.19, 1, .22, 1],
2016
- duration: 100
2017
- });
2018
- }
2019
- return this;
2020
- }
2021
- }, {
2022
- key: "closeList",
2023
- value: function (t, e) {
2024
- return (0, o.default)(this.list).remove(this.config.openClass), this.input.setAttribute("aria-expanded", "false"), this.isOpen = !1, t && this.input.focus(), !this.multiselect && this.selected.length && (this.input.value = this.config.selectionValue(this.selected)), e && this.input.select(), this.emit("list:close"), this;
2025
- }
2026
- }, {
2027
- key: "initKeys",
2028
- value: function () {
2029
- var t = this;
2030
- if (!this.optionsWithKeyEventHandlers.has(this.input)) {
2031
- this.optionsWithKeyEventHandlers.add(this.input), h.default.down(this.input, [{
2032
- keys: ["up", "down"],
2033
- callback: function (e, n) {
2034
- if (t.isOpen) return -1 === t.currentOpts.indexOf(t.currentOption) ? t.goTo(0, !0) : t.goTo("down" === n ? "next" : "prev", !0);
2035
- var r = t.selected.length ? t.currentOpts.indexOf(t.selected[t.selected.length - 1]) : 0;
2036
- t.goTo(r, !0).openList();
2037
- },
2038
- preventDefault: !0
2039
- }, {
2040
- keys: ["enter"],
2041
- callback: function (e) {
2042
- t.isOpen && (e.preventDefault(), e.stopPropagation(), t.select());
2043
- }
2044
- }, {
2045
- keys: ["escape"],
2046
- callback: function (e) {
2047
- t.isOpen && (e.stopPropagation(), t.closeList(!0, !0));
2048
- }
2049
- }, {
2050
- keys: ["backspace"],
2051
- callback: function () {
2052
- t.selected.length >= 2 && (t.input.value = "");
2053
- }
2054
- }]);
2055
- var e = [9, 13, 27, 16];
2056
- h.default.up(this.input, function (n) {
2057
- if (t.autoFilter) {
2058
- var r = t.config.filter,
2059
- i = t.cachedInputValue;
2060
- e.indexOf(n.which) > -1 || !r || (t.freshSelection ? (t.clearFilters(), i && i.trim() !== t.input.value.trim() && (t.filter().openList(), t.freshSelection = !1)) : t.filter().openList(), (0, y.default)(t.list, t.currentOpts, t.config.noResultsText));
2061
- }
2062
- });
2063
- }
2064
- }
2065
- }, {
2066
- key: "clearFilters",
2067
- value: function () {
2068
- return this.cachedOpts.forEach(function (t) {
2069
- return t.style.display = "";
2070
- }), this.groups.forEach(function (t) {
2071
- return t.element.style.display = "";
2072
- }), this.currentOpts = this.cachedOpts, this;
2073
- }
2074
- }, {
2075
- key: "filter",
2076
- value: function (t) {
2077
- var e = this,
2078
- n = this.config.filter,
2079
- r = this.currentOpts;
2080
- return this.currentOpts = "function" == typeof n ? n(this.input.value.trim(), this.cachedOpts) : l.default[n](this.input.value.trim(), this.cachedOpts), this.currentOpts = this.currentOpts || [], this.updateOpts(), r.every(function (t) {
2081
- return e.currentOpts.indexOf(t) > -1;
2082
- }) || t || this.announceCount(), this;
2083
- }
2084
- }, {
2085
- key: "announceCount",
2086
- value: function () {
2087
- var t = this.config.announcement && this.config.announcement.count;
2088
- return t && this.liveRegion && this.liveRegion.announce(t(this.currentOpts.length), 500), this;
2089
- }
2090
- }, {
2091
- key: "updateOpts",
2092
- value: function () {
2093
- var t = this,
2094
- e = this.config.optionValue;
2095
- return this.cachedOpts.forEach(function (n) {
2096
- n.style.display = -1 === t.currentOpts.indexOf(n) ? "none" : "", n.innerHTML = "string" == typeof e ? (0, m.default)(n, t.input, e) : e(n);
2097
- }), this.updateGroups(), this;
2098
- }
2099
- }, {
2100
- key: "updateGroups",
2101
- value: function () {
2102
- return this.groups.forEach(function (t) {
2103
- var e = t.options.filter(function (t) {
2104
- return "" === t.style.display;
2105
- });
2106
- t.element.style.display = e.length ? "" : "none";
2107
- }), this;
2108
- }
2109
- }, {
2110
- key: "select",
2111
- value: function () {
2112
- var t = this,
2113
- e = this.currentOption;
2114
- if (e) {
2115
- !this.config.multiselect && this.selected.length && (0, o.default)(this.selected[0]).remove(this.config.selectedClass);
2116
- var n = this.selected.indexOf(e),
2117
- r = n > -1;
2118
- return this.config.multiselect ? r ? this.selected.splice(n, 1) : this.selected.push(e) : this.selected = this.config.allowEmpty && r ? [] : [e], this.cachedOpts.forEach(function (e) {
2119
- e.setAttribute("aria-selected", t.selected.indexOf(e) > -1 ? "true" : "false");
2120
- }), r ? (e.classList.remove(this.config.selectedClass), this.emit("deselection", {
2121
- text: this.input.value,
2122
- option: e
2123
- })) : (e.classList.add(this.config.selectedClass), this.emit("selection", {
2124
- text: this.input.value,
2125
- option: e
2126
- })), this.freshSelection = !0, this.input.value = this.selected.length ? this.config.selectionValue(this.selected) : "", this.cachedInputValue = this.input.value, this.filter(!0).clearFilters(), this.config.multiselect || (this.closeList(), this.input.select()), this;
2127
- }
2128
- }
2129
- }, {
2130
- key: "reset",
2131
- value: function () {
2132
- var t = this;
2133
- return this.clearFilters(), this.input.value = "", this.updateOpts(), this.input.removeAttribute("aria-activedescendant"), this.input.removeAttribute("data-active-option"), this.currentOption = null, this.selected = [], this.cachedOpts.forEach(function (e) {
2134
- (0, o.default)(e).remove(t.config.selectedClass), (0, o.default)(e).remove(t.config.activeClass), e.setAttribute("aria-selected", "false");
2135
- }), this;
2136
- }
2137
- }, {
2138
- key: "goTo",
2139
- value: function (t, e) {
2140
- var n = this;
2141
- if ("string" == typeof t) {
2142
- var r = this.getOptIndex();
2143
- return this.goTo("next" === t ? r + 1 : r - 1, e);
2144
- }
2145
- var i = this.currentOpts[t],
2146
- o = !1;
2147
- if (!this.currentOpts[t]) return 0 === this.getOptIndex() && (this.list.scrollTop = 0), this;
2148
- if (this.groups.length) {
2149
- var u = (0, g.default)(this.groups, i);
2150
- o = u && u !== this.currentGroup, this.currentGroup = u;
2151
- }
2152
- return this.currentOption = i, this.pseudoFocus(o), this.currentOpts.forEach(function (t) {
2153
- t.classList.contains(n.config.activeClass) && !(0, c.default)(n.list, t) && (0, a.default)(t);
2154
- }), this;
2155
- }
2156
- }, {
2157
- key: "pseudoFocus",
2158
- value: function (t) {
2159
- var e = this.currentOption,
2160
- n = this.config.activeClass,
2161
- r = this.input.getAttribute("data-active-option"),
2162
- i = r && document.getElementById(r);
2163
- return i && n && (0, o.default)(i).remove(n), e && (this.input.setAttribute("data-active-option", e.id), n && (0, o.default)(e).add(n), this.liveRegion && (0, w.default)(e, this.config, this.liveRegion.announce.bind(this.liveRegion), t, this.currentGroup && this.currentGroup.element), this.input.setAttribute("aria-activedescendant", e.id), this.currentOption = e, this.emit("change")), this;
2164
- }
2165
- }, {
2166
- key: "setOptions",
2167
- value: function (t) {
2168
- return "object" === (void 0 === t ? "undefined" : r(t)) && this.config.list.append(t), this.cachedOpts.push(t), -1 === this.currentOpts.indexOf(t) && this.currentOpts.push(t), this;
2169
- }
2170
- }, {
2171
- key: "setCurrentOptions",
2172
- value: function () {
2173
- return this.currentOption = this.currentOpts[0], this;
2174
- }
2175
- }, {
2176
- key: "updateSelectedOptions",
2177
- value: function () {
2178
- var t = this,
2179
- e = document.getElementById(this.config.list.id),
2180
- n = this.selected;
2181
- for (this.emptyDropdownList(); e.hasChildNodes();) e.removeChild(e.firstChild);
2182
- return n.length > 0 && n.forEach(function (e) {
2183
- t.setOptions(e);
2184
- }), this;
2185
- }
2186
- }, {
2187
- key: "emptyDropdownList",
2188
- value: function () {
2189
- return this.currentOpts = [], this.cachedOpts = [], this.optionsWithEventHandlers.clear(), this;
2190
- }
2191
- }, {
2192
- key: "setNoResultFound",
2193
- value: function () {
2194
- (0, y.default)(this.list, this.currentOpts, this.config.noResultsText);
2195
- }
2196
- }]), t;
2197
- }();
2198
- }, function (t, e) {
2199
- t.exports = function (t, e) {
2200
- if (t.indexOf) return t.indexOf(e);
2201
- for (var n = 0; n < t.length; ++n) if (t[n] === e) return n;
2202
- return -1;
2203
- };
2204
- }, function (t, e) {
2205
- (e = t.exports = function (t) {
2206
- return t.replace(/^\s*|\s*$/g, "");
2207
- }).left = function (t) {
2208
- return t.replace(/^\s*/, "");
2209
- }, e.right = function (t) {
2210
- return t.replace(/\s*$/, "");
2211
- };
2212
- }, function (t, e, n) {
2213
- function r(t) {
2214
- if (t) return function (t) {
2215
- for (var e in r.prototype) t[e] = r.prototype[e];
2216
- return t;
2217
- }(t);
2218
- }
2219
- t.exports = r, r.prototype.on = r.prototype.addEventListener = function (t, e) {
2220
- return this._callbacks = this._callbacks || {}, (this._callbacks["$" + t] = this._callbacks["$" + t] || []).push(e), this;
2221
- }, r.prototype.once = function (t, e) {
2222
- function n() {
2223
- this.off(t, n), e.apply(this, arguments);
2224
- }
2225
- return n.fn = e, this.on(t, n), this;
2226
- }, r.prototype.off = r.prototype.removeListener = r.prototype.removeAllListeners = r.prototype.removeEventListener = function (t, e) {
2227
- if (this._callbacks = this._callbacks || {}, 0 == arguments.length) return this._callbacks = {}, this;
2228
- var n,
2229
- r = this._callbacks["$" + t];
2230
- if (!r) return this;
2231
- if (1 == arguments.length) return delete this._callbacks["$" + t], this;
2232
- for (var i = 0; i < r.length; i++) if ((n = r[i]) === e || n.fn === e) {
2233
- r.splice(i, 1);
2234
- break;
2235
- }
2236
- return this;
2237
- }, r.prototype.emit = function (t) {
2238
- this._callbacks = this._callbacks || {};
2239
- var e = [].slice.call(arguments, 1),
2240
- n = this._callbacks["$" + t];
2241
- if (n) for (var r = 0, i = (n = n.slice(0)).length; r < i; ++r) n[r].apply(this, e);
2242
- return this;
2243
- }, r.prototype.listeners = function (t) {
2244
- return this._callbacks = this._callbacks || {}, this._callbacks["$" + t] || [];
2245
- }, r.prototype.hasListeners = function (t) {
2246
- return !!this.listeners(t).length;
2247
- };
2248
- }, function (t, e, n) {
1846
+ function requireDist () {
1847
+ if (hasRequiredDist) return dist$1.exports;
1848
+ hasRequiredDist = 1;
1849
+ (function (module, exports) {
1850
+ !function (t, e) {
1851
+ module.exports = e() ;
1852
+ }("undefined" != typeof self ? self : dist, function () {
1853
+ return function (t) {
1854
+ var e = {};
1855
+ function n(r) {
1856
+ if (e[r]) return e[r].exports;
1857
+ var i = e[r] = {
1858
+ i: r,
1859
+ l: !1,
1860
+ exports: {}
1861
+ };
1862
+ return t[r].call(i.exports, i, i.exports, n), i.l = !0, i.exports;
1863
+ }
1864
+ return n.m = t, n.c = e, n.d = function (t, e, r) {
1865
+ n.o(t, e) || Object.defineProperty(t, e, {
1866
+ configurable: !1,
1867
+ enumerable: !0,
1868
+ get: r
1869
+ });
1870
+ }, n.n = function (t) {
1871
+ var e = t && t.__esModule ? function () {
1872
+ return t.default;
1873
+ } : function () {
1874
+ return t;
1875
+ };
1876
+ return n.d(e, "a", e), e;
1877
+ }, n.o = function (t, e) {
1878
+ return Object.prototype.hasOwnProperty.call(t, e);
1879
+ }, n.p = "", n(n.s = 2);
1880
+ }([function (t, e) {
1881
+ var n;
1882
+ n = function () {
1883
+ return this;
1884
+ }();
1885
+ try {
1886
+ n = n || Function("return this")() || (0, eval)("this");
1887
+ } catch (t) {
1888
+ "object" == typeof window && (n = window);
1889
+ }
1890
+ t.exports = n;
1891
+ }, function (t, e, n) {
2249
1892
 
2250
- function r(t) {
2251
- this.region = document.createElement("div"), this.options = t || {}, this.configure(), document.body.appendChild(this.region);
2252
- }
2253
- r.prototype.configure = function () {
2254
- var t = this.options,
2255
- e = this.region;
2256
- e.setAttribute("aria-live", t.ariaLive || "polite"), e.setAttribute("role", t.role || "log"), e.setAttribute("aria-relevant", t.ariaRelevant || "additions"), e.setAttribute("aria-atomic", t.ariaAtomic || "false"), this.region.style.position = "absolute", this.region.style.width = "1px", this.region.style.height = "1px", this.region.style.marginTop = "-1px", this.region.style.clip = "rect(1px, 1px, 1px, 1px)", this.region.style.overflow = "hidden";
2257
- }, r.prototype.announce = function (t, e) {
2258
- var n = document.createElement("div");
2259
- n.innerHTML = t, this.region.appendChild(n), (e || void 0 === e) && setTimeout(function () {
2260
- this.region.removeChild(n);
2261
- }.bind(this), e || 7e3);
2262
- }, t.exports = r;
2263
- }, function (t, e, n) {
2264
- var r;
2265
- r = function () {
2266
- return function (t) {
2267
- function e(r) {
2268
- if (n[r]) return n[r].exports;
2269
- var i = n[r] = {
2270
- i: r,
2271
- l: !1,
2272
- exports: {}
2273
- };
2274
- return t[r].call(i.exports, i, i.exports, e), i.l = !0, i.exports;
2275
- }
2276
- var n = {};
2277
- return e.m = t, e.c = n, e.i = function (t) {
2278
- return t;
2279
- }, e.d = function (t, n, r) {
2280
- e.o(t, n) || Object.defineProperty(t, n, {
2281
- configurable: !1,
2282
- enumerable: !0,
2283
- get: r
2284
- });
2285
- }, e.n = function (t) {
2286
- var n = t && t.__esModule ? function () {
2287
- return t.default;
2288
- } : function () {
2289
- return t;
2290
- };
2291
- return e.d(n, "a", n), n;
2292
- }, e.o = function (t, e) {
2293
- return Object.prototype.hasOwnProperty.call(t, e);
2294
- }, e.p = "", e(e.s = 1);
2295
- }([function (t, e, n) {
1893
+ t.exports = u;
1894
+ var r = n(3),
1895
+ i = n(4),
1896
+ o = Array.prototype;
1897
+ function u(t) {
1898
+ if (!(this instanceof u)) return new u(t);
1899
+ var e,
1900
+ n = i(t.className).split(/\s+/);
1901
+ for (this._elem = t, this.length = 0, e = 0; e < n.length; e += 1) n[e] && o.push.call(this, n[e]);
1902
+ }
1903
+ u.prototype.add = function () {
1904
+ var t, e;
1905
+ for (e = 0; e < arguments.length; e += 1) t = "" + arguments[e], r(this, t) >= 0 || o.push.call(this, t);
1906
+ return this._elem.className = this.toString(), this;
1907
+ }, u.prototype.remove = function () {
1908
+ var t, e, n;
1909
+ for (n = 0; n < arguments.length; n += 1) e = "" + arguments[n], (t = r(this, e)) < 0 || o.splice.call(this, t, 1);
1910
+ return this._elem.className = this.toString(), this;
1911
+ }, u.prototype.contains = function (t) {
1912
+ return r(this, t += "") >= 0;
1913
+ }, u.prototype.toggle = function (t, e) {
1914
+ return t += "", !0 === e ? this.add(t) : !1 === e ? this.remove(t) : this[this.contains(t) ? "remove" : "add"](t);
1915
+ }, u.prototype.toString = function () {
1916
+ return o.join.call(this, " ");
1917
+ };
1918
+ }, function (t, e, n) {
2296
1919
 
2297
- function r(t) {
2298
- return t && t.__esModule ? t : {
2299
- default: t
2300
- };
2301
- }
2302
- function i() {}
2303
- Object.defineProperty(e, "__esModule", {
2304
- value: !0
2305
- });
2306
- var o = r(n(4)),
2307
- u = r(n(7)),
2308
- s = n(2),
2309
- a = r(n(3)),
2310
- c = [.19, 1, .22, 1];
2311
- e.default = function (t) {
2312
- var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 100,
2313
- n = 0,
2314
- r = void 0,
2315
- f = void 0;
2316
- if ((0, s.isElement)(t)) r = o.default.apply(void 0, c), f = i;else {
2317
- if (!(0, s.isObject)(t)) throw new TypeError("The first argument must be HTMLElement or Object.");
2318
- if (!(0, s.isElement)(t.element)) throw new TypeError("`element` must be HTMLElement.");
2319
- n = (0, s.isNumeric)(t.offset) ? t.offset : 0, r = (0, s.isArray)(t.bezier) && 4 === t.bezier.length ? o.default.apply(void 0, function (t) {
2320
- if (Array.isArray(t)) {
2321
- for (var e = 0, n = Array(t.length); e < t.length; e++) n[e] = t[e];
2322
- return n;
2323
- }
2324
- return Array.from(t);
2325
- }(t.bezier)) : o.default.apply(void 0, c), e = t.duration, f = (0, s.isFunction)(t.then) ? t.then : i, t = t.element;
2326
- }
2327
- (!(0, s.isNumeric)(e) || e < 0) && (e = 100);
2328
- var l = (0, a.default)(t),
2329
- h = l.scrollTop,
2330
- p = l.offsetTop,
2331
- d = null,
2332
- g = ("BODY" === l.nodeName ? t.getBoundingClientRect().top + (window.scrollY || window.pageYOffset || document.body.scrollTop) - p : t.offsetTop - p) - h + n;
2333
- (0, u.default)(function t(n) {
2334
- null === d && (d = n);
2335
- var i = n - d,
2336
- o = r(i / e) * g;
2337
- l.scrollTop = Math.round(h + o), i < e ? (0, u.default)(t) : f();
2338
- });
2339
- };
2340
- }, function (t, e, n) {
1920
+ var r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
1921
+ return typeof t;
1922
+ } : function (t) {
1923
+ return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1924
+ },
1925
+ i = function () {
1926
+ function t(t, e) {
1927
+ for (var n = 0; n < e.length; n++) {
1928
+ var r = e[n];
1929
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
1930
+ }
1931
+ }
1932
+ return function (e, n, r) {
1933
+ return n && t(e.prototype, n), r && t(e, r), e;
1934
+ };
1935
+ }(),
1936
+ o = E(n(1)),
1937
+ u = E(n(5)),
1938
+ s = E(n(6)),
1939
+ a = E(n(7)),
1940
+ c = E(n(8)),
1941
+ f = E(n(9)),
1942
+ l = E(n(10)),
1943
+ h = E(n(12)),
1944
+ p = E(n(14)),
1945
+ d = E(n(15)),
1946
+ g = E(n(17)),
1947
+ y = E(n(18)),
1948
+ v = E(n(19)),
1949
+ m = E(n(31)),
1950
+ b = E(n(32)),
1951
+ w = E(n(35));
1952
+ function E(t) {
1953
+ return t && t.__esModule ? t : {
1954
+ default: t
1955
+ };
1956
+ }
1957
+ t.exports = function () {
1958
+ function t(e) {
1959
+ var n = this;
1960
+ if (function (t, e) {
1961
+ if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
1962
+ }(this, t), e = e || {}, this.config = (0, b.default)(e), this.input = (0, d.default)(this.config.input), this.list = (0, d.default)(this.config.list), this.cachedOpts = this.currentOpts = (0, d.default)(this.config.options, !0, this.list), this.isOpen = !1, this.currentOption = null, this.selected = [], this.groups = [], this.isHovering = !1, this.autoFilter = this.config.autoFilter, this.optionsWithEventHandlers = new Set(), this.optionsWithKeyEventHandlers = new Set(), this.config.groups) {
1963
+ var r = (0, d.default)(this.config.groups, !0, this.list);
1964
+ this.groups = r.map(function (t) {
1965
+ return {
1966
+ element: t,
1967
+ options: n.cachedOpts.filter(function (e) {
1968
+ return t.contains(e);
1969
+ })
1970
+ };
1971
+ });
1972
+ }
1973
+ if (!this.input || !this.list) throw new Error("Unable to find required elements (list/input)");
1974
+ (0, v.default)(this.input, this.list, this.cachedOpts), this.config.useLiveRegion && (this.liveRegion = new s.default({
1975
+ ariaLive: "assertive"
1976
+ })), this.initEvents();
1977
+ }
1978
+ return i(t, [{
1979
+ key: "initEvents",
1980
+ value: function () {
1981
+ var t = this;
1982
+ (0, u.default)(this), this.optionsWithKeyEventHandlers.has(this.input) || (this.input.addEventListener("click", function () {
1983
+ t.openList().goTo(t.getOptIndex() || 0);
1984
+ }), this.input.addEventListener("blur", function () {
1985
+ t.isHovering || t.closeList();
1986
+ }), this.input.addEventListener("focus", function () {
1987
+ t.selected.length && (t.input.value = t.selected.length >= 2 ? "" : t.config.selectionValue(t.selected)), t.input.select();
1988
+ }), document.addEventListener("click", function (e) {
1989
+ !(0, p.default)(e.target, [t.input, t.list], !0) && t.isOpen && t.closeList();
1990
+ })), this.optionEvents(), this.initKeys();
1991
+ }
1992
+ }, {
1993
+ key: "getOptIndex",
1994
+ value: function () {
1995
+ return this.currentOption && this.currentOpts.indexOf(this.currentOption);
1996
+ }
1997
+ }, {
1998
+ key: "optionEvents",
1999
+ value: function () {
2000
+ var t = this;
2001
+ this.cachedOpts.forEach(function (e) {
2002
+ t.optionsWithEventHandlers.has(e.id) || t.selected.includes(e) || (e.addEventListener("click", function () {
2003
+ t.goTo(t.currentOpts.indexOf(e)).select();
2004
+ }), e.addEventListener("mouseover", function () {
2005
+ var n = t.currentOption;
2006
+ n && (0, o.default)(n).remove(t.config.activeClass), (0, o.default)(e).add(t.config.activeClass), t.isHovering = !0;
2007
+ }), e.addEventListener("mouseout", function () {
2008
+ (0, o.default)(e).remove(t.config.activeClass), t.isHovering = !1;
2009
+ }), t.optionsWithEventHandlers.add(e.id));
2010
+ });
2011
+ }
2012
+ }, {
2013
+ key: "openList",
2014
+ value: function () {
2015
+ (0, o.default)(this.list).add(this.config.openClass), this.input.setAttribute("aria-expanded", "true"), this.isOpen || this.announceCount(), this.isOpen = !0, this.emit("list:open");
2016
+ var t = (0, f.default)(this.list);
2017
+ if (!t.visible) {
2018
+ var e = "bottom" === t.position ? 0 - (window.innerHeight - (this.input.clientHeight + this.list.clientHeight)) : 0;
2019
+ (0, a.default)({
2020
+ element: this.input,
2021
+ offset: e,
2022
+ bezier: [.19, 1, .22, 1],
2023
+ duration: 100
2024
+ });
2025
+ }
2026
+ return this;
2027
+ }
2028
+ }, {
2029
+ key: "closeList",
2030
+ value: function (t, e) {
2031
+ return (0, o.default)(this.list).remove(this.config.openClass), this.input.setAttribute("aria-expanded", "false"), this.isOpen = !1, t && this.input.focus(), !this.multiselect && this.selected.length && (this.input.value = this.config.selectionValue(this.selected)), e && this.input.select(), this.emit("list:close"), this;
2032
+ }
2033
+ }, {
2034
+ key: "initKeys",
2035
+ value: function () {
2036
+ var t = this;
2037
+ if (!this.optionsWithKeyEventHandlers.has(this.input)) {
2038
+ this.optionsWithKeyEventHandlers.add(this.input), h.default.down(this.input, [{
2039
+ keys: ["up", "down"],
2040
+ callback: function (e, n) {
2041
+ if (t.isOpen) return -1 === t.currentOpts.indexOf(t.currentOption) ? t.goTo(0, !0) : t.goTo("down" === n ? "next" : "prev", !0);
2042
+ var r = t.selected.length ? t.currentOpts.indexOf(t.selected[t.selected.length - 1]) : 0;
2043
+ t.goTo(r, !0).openList();
2044
+ },
2045
+ preventDefault: !0
2046
+ }, {
2047
+ keys: ["enter"],
2048
+ callback: function (e) {
2049
+ t.isOpen && (e.preventDefault(), e.stopPropagation(), t.select());
2050
+ }
2051
+ }, {
2052
+ keys: ["escape"],
2053
+ callback: function (e) {
2054
+ t.isOpen && (e.stopPropagation(), t.closeList(!0, !0));
2055
+ }
2056
+ }, {
2057
+ keys: ["backspace"],
2058
+ callback: function () {
2059
+ t.selected.length >= 2 && (t.input.value = "");
2060
+ }
2061
+ }]);
2062
+ var e = [9, 13, 27, 16];
2063
+ h.default.up(this.input, function (n) {
2064
+ if (t.autoFilter) {
2065
+ var r = t.config.filter,
2066
+ i = t.cachedInputValue;
2067
+ e.indexOf(n.which) > -1 || !r || (t.freshSelection ? (t.clearFilters(), i && i.trim() !== t.input.value.trim() && (t.filter().openList(), t.freshSelection = !1)) : t.filter().openList(), (0, y.default)(t.list, t.currentOpts, t.config.noResultsText));
2068
+ }
2069
+ });
2070
+ }
2071
+ }
2072
+ }, {
2073
+ key: "clearFilters",
2074
+ value: function () {
2075
+ return this.cachedOpts.forEach(function (t) {
2076
+ return t.style.display = "";
2077
+ }), this.groups.forEach(function (t) {
2078
+ return t.element.style.display = "";
2079
+ }), this.currentOpts = this.cachedOpts, this;
2080
+ }
2081
+ }, {
2082
+ key: "filter",
2083
+ value: function (t) {
2084
+ var e = this,
2085
+ n = this.config.filter,
2086
+ r = this.currentOpts;
2087
+ return this.currentOpts = "function" == typeof n ? n(this.input.value.trim(), this.cachedOpts) : l.default[n](this.input.value.trim(), this.cachedOpts), this.currentOpts = this.currentOpts || [], this.updateOpts(), r.every(function (t) {
2088
+ return e.currentOpts.indexOf(t) > -1;
2089
+ }) || t || this.announceCount(), this;
2090
+ }
2091
+ }, {
2092
+ key: "announceCount",
2093
+ value: function () {
2094
+ var t = this.config.announcement && this.config.announcement.count;
2095
+ return t && this.liveRegion && this.liveRegion.announce(t(this.currentOpts.length), 500), this;
2096
+ }
2097
+ }, {
2098
+ key: "updateOpts",
2099
+ value: function () {
2100
+ var t = this,
2101
+ e = this.config.optionValue;
2102
+ return this.cachedOpts.forEach(function (n) {
2103
+ n.style.display = -1 === t.currentOpts.indexOf(n) ? "none" : "", n.innerHTML = "string" == typeof e ? (0, m.default)(n, t.input, e) : e(n);
2104
+ }), this.updateGroups(), this;
2105
+ }
2106
+ }, {
2107
+ key: "updateGroups",
2108
+ value: function () {
2109
+ return this.groups.forEach(function (t) {
2110
+ var e = t.options.filter(function (t) {
2111
+ return "" === t.style.display;
2112
+ });
2113
+ t.element.style.display = e.length ? "" : "none";
2114
+ }), this;
2115
+ }
2116
+ }, {
2117
+ key: "select",
2118
+ value: function () {
2119
+ var t = this,
2120
+ e = this.currentOption;
2121
+ if (e) {
2122
+ !this.config.multiselect && this.selected.length && (0, o.default)(this.selected[0]).remove(this.config.selectedClass);
2123
+ var n = this.selected.indexOf(e),
2124
+ r = n > -1;
2125
+ return this.config.multiselect ? r ? this.selected.splice(n, 1) : this.selected.push(e) : this.selected = this.config.allowEmpty && r ? [] : [e], this.cachedOpts.forEach(function (e) {
2126
+ e.setAttribute("aria-selected", t.selected.indexOf(e) > -1 ? "true" : "false");
2127
+ }), r ? (e.classList.remove(this.config.selectedClass), this.emit("deselection", {
2128
+ text: this.input.value,
2129
+ option: e
2130
+ })) : (e.classList.add(this.config.selectedClass), this.emit("selection", {
2131
+ text: this.input.value,
2132
+ option: e
2133
+ })), this.freshSelection = !0, this.input.value = this.selected.length ? this.config.selectionValue(this.selected) : "", this.cachedInputValue = this.input.value, this.filter(!0).clearFilters(), this.config.multiselect || (this.closeList(), this.input.select()), this;
2134
+ }
2135
+ }
2136
+ }, {
2137
+ key: "reset",
2138
+ value: function () {
2139
+ var t = this;
2140
+ return this.clearFilters(), this.input.value = "", this.updateOpts(), this.input.removeAttribute("aria-activedescendant"), this.input.removeAttribute("data-active-option"), this.currentOption = null, this.selected = [], this.cachedOpts.forEach(function (e) {
2141
+ (0, o.default)(e).remove(t.config.selectedClass), (0, o.default)(e).remove(t.config.activeClass), e.setAttribute("aria-selected", "false");
2142
+ }), this;
2143
+ }
2144
+ }, {
2145
+ key: "goTo",
2146
+ value: function (t, e) {
2147
+ var n = this;
2148
+ if ("string" == typeof t) {
2149
+ var r = this.getOptIndex();
2150
+ return this.goTo("next" === t ? r + 1 : r - 1, e);
2151
+ }
2152
+ var i = this.currentOpts[t],
2153
+ o = !1;
2154
+ if (!this.currentOpts[t]) return 0 === this.getOptIndex() && (this.list.scrollTop = 0), this;
2155
+ if (this.groups.length) {
2156
+ var u = (0, g.default)(this.groups, i);
2157
+ o = u && u !== this.currentGroup, this.currentGroup = u;
2158
+ }
2159
+ return this.currentOption = i, this.pseudoFocus(o), this.currentOpts.forEach(function (t) {
2160
+ t.classList.contains(n.config.activeClass) && !(0, c.default)(n.list, t) && (0, a.default)(t);
2161
+ }), this;
2162
+ }
2163
+ }, {
2164
+ key: "pseudoFocus",
2165
+ value: function (t) {
2166
+ var e = this.currentOption,
2167
+ n = this.config.activeClass,
2168
+ r = this.input.getAttribute("data-active-option"),
2169
+ i = r && document.getElementById(r);
2170
+ return i && n && (0, o.default)(i).remove(n), e && (this.input.setAttribute("data-active-option", e.id), n && (0, o.default)(e).add(n), this.liveRegion && (0, w.default)(e, this.config, this.liveRegion.announce.bind(this.liveRegion), t, this.currentGroup && this.currentGroup.element), this.input.setAttribute("aria-activedescendant", e.id), this.currentOption = e, this.emit("change")), this;
2171
+ }
2172
+ }, {
2173
+ key: "setOptions",
2174
+ value: function (t) {
2175
+ return "object" === (void 0 === t ? "undefined" : r(t)) && this.config.list.append(t), this.cachedOpts.push(t), -1 === this.currentOpts.indexOf(t) && this.currentOpts.push(t), this;
2176
+ }
2177
+ }, {
2178
+ key: "setCurrentOptions",
2179
+ value: function () {
2180
+ return this.currentOption = this.currentOpts[0], this;
2181
+ }
2182
+ }, {
2183
+ key: "updateSelectedOptions",
2184
+ value: function () {
2185
+ var t = this,
2186
+ e = document.getElementById(this.config.list.id),
2187
+ n = this.selected;
2188
+ for (this.emptyDropdownList(); e.hasChildNodes();) e.removeChild(e.firstChild);
2189
+ return n.length > 0 && n.forEach(function (e) {
2190
+ t.setOptions(e);
2191
+ }), this;
2192
+ }
2193
+ }, {
2194
+ key: "emptyDropdownList",
2195
+ value: function () {
2196
+ return this.currentOpts = [], this.cachedOpts = [], this.optionsWithEventHandlers.clear(), this;
2197
+ }
2198
+ }, {
2199
+ key: "setNoResultFound",
2200
+ value: function () {
2201
+ (0, y.default)(this.list, this.currentOpts, this.config.noResultsText);
2202
+ }
2203
+ }]), t;
2204
+ }();
2205
+ }, function (t, e) {
2206
+ t.exports = function (t, e) {
2207
+ if (t.indexOf) return t.indexOf(e);
2208
+ for (var n = 0; n < t.length; ++n) if (t[n] === e) return n;
2209
+ return -1;
2210
+ };
2211
+ }, function (t, e) {
2212
+ (e = t.exports = function (t) {
2213
+ return t.replace(/^\s*|\s*$/g, "");
2214
+ }).left = function (t) {
2215
+ return t.replace(/^\s*/, "");
2216
+ }, e.right = function (t) {
2217
+ return t.replace(/\s*$/, "");
2218
+ };
2219
+ }, function (t, e, n) {
2220
+ function r(t) {
2221
+ if (t) return function (t) {
2222
+ for (var e in r.prototype) t[e] = r.prototype[e];
2223
+ return t;
2224
+ }(t);
2225
+ }
2226
+ t.exports = r, r.prototype.on = r.prototype.addEventListener = function (t, e) {
2227
+ return this._callbacks = this._callbacks || {}, (this._callbacks["$" + t] = this._callbacks["$" + t] || []).push(e), this;
2228
+ }, r.prototype.once = function (t, e) {
2229
+ function n() {
2230
+ this.off(t, n), e.apply(this, arguments);
2231
+ }
2232
+ return n.fn = e, this.on(t, n), this;
2233
+ }, r.prototype.off = r.prototype.removeListener = r.prototype.removeAllListeners = r.prototype.removeEventListener = function (t, e) {
2234
+ if (this._callbacks = this._callbacks || {}, 0 == arguments.length) return this._callbacks = {}, this;
2235
+ var n,
2236
+ r = this._callbacks["$" + t];
2237
+ if (!r) return this;
2238
+ if (1 == arguments.length) return delete this._callbacks["$" + t], this;
2239
+ for (var i = 0; i < r.length; i++) if ((n = r[i]) === e || n.fn === e) {
2240
+ r.splice(i, 1);
2241
+ break;
2242
+ }
2243
+ return this;
2244
+ }, r.prototype.emit = function (t) {
2245
+ this._callbacks = this._callbacks || {};
2246
+ var e = [].slice.call(arguments, 1),
2247
+ n = this._callbacks["$" + t];
2248
+ if (n) for (var r = 0, i = (n = n.slice(0)).length; r < i; ++r) n[r].apply(this, e);
2249
+ return this;
2250
+ }, r.prototype.listeners = function (t) {
2251
+ return this._callbacks = this._callbacks || {}, this._callbacks["$" + t] || [];
2252
+ }, r.prototype.hasListeners = function (t) {
2253
+ return !!this.listeners(t).length;
2254
+ };
2255
+ }, function (t, e, n) {
2341
2256
 
2342
- var r = function (t) {
2343
- return t && t.__esModule ? t : {
2344
- default: t
2345
- };
2346
- }(n(0));
2347
- t.exports = r.default;
2348
- }, function (t, e, n) {
2257
+ function r(t) {
2258
+ this.region = document.createElement("div"), this.options = t || {}, this.configure(), document.body.appendChild(this.region);
2259
+ }
2260
+ r.prototype.configure = function () {
2261
+ var t = this.options,
2262
+ e = this.region;
2263
+ e.setAttribute("aria-live", t.ariaLive || "polite"), e.setAttribute("role", t.role || "log"), e.setAttribute("aria-relevant", t.ariaRelevant || "additions"), e.setAttribute("aria-atomic", t.ariaAtomic || "false"), this.region.style.position = "absolute", this.region.style.width = "1px", this.region.style.height = "1px", this.region.style.marginTop = "-1px", this.region.style.clip = "rect(1px, 1px, 1px, 1px)", this.region.style.overflow = "hidden";
2264
+ }, r.prototype.announce = function (t, e) {
2265
+ var n = document.createElement("div");
2266
+ n.innerHTML = t, this.region.appendChild(n), (e || void 0 === e) && setTimeout(function () {
2267
+ this.region.removeChild(n);
2268
+ }.bind(this), e || 7e3);
2269
+ }, t.exports = r;
2270
+ }, function (t, e, n) {
2271
+ var r;
2272
+ r = function () {
2273
+ return function (t) {
2274
+ function e(r) {
2275
+ if (n[r]) return n[r].exports;
2276
+ var i = n[r] = {
2277
+ i: r,
2278
+ l: !1,
2279
+ exports: {}
2280
+ };
2281
+ return t[r].call(i.exports, i, i.exports, e), i.l = !0, i.exports;
2282
+ }
2283
+ var n = {};
2284
+ return e.m = t, e.c = n, e.i = function (t) {
2285
+ return t;
2286
+ }, e.d = function (t, n, r) {
2287
+ e.o(t, n) || Object.defineProperty(t, n, {
2288
+ configurable: !1,
2289
+ enumerable: !0,
2290
+ get: r
2291
+ });
2292
+ }, e.n = function (t) {
2293
+ var n = t && t.__esModule ? function () {
2294
+ return t.default;
2295
+ } : function () {
2296
+ return t;
2297
+ };
2298
+ return e.d(n, "a", n), n;
2299
+ }, e.o = function (t, e) {
2300
+ return Object.prototype.hasOwnProperty.call(t, e);
2301
+ }, e.p = "", e(e.s = 1);
2302
+ }([function (t, e, n) {
2349
2303
 
2350
- function r(t) {
2351
- return Object.prototype.toString.call(t);
2352
- }
2353
- function i(t) {
2354
- return !isNaN(parseFloat(t)) && isFinite(t);
2355
- }
2356
- Object.defineProperty(e, "__esModule", {
2357
- value: !0
2358
- });
2359
- var o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
2360
- return typeof t;
2361
- } : function (t) {
2362
- return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
2363
- };
2364
- e.isObject = function (t) {
2365
- return "[object Object]" === r(t);
2366
- }, e.isArray = function (t) {
2367
- return null != t && "[object Array]" === r(t);
2368
- }, e.isNumeric = i, e.isPositive = function (t) {
2369
- return i(t) && t >= 0;
2370
- }, e.isFunction = function (t) {
2371
- return null != t && "[object Function]" === r(t);
2372
- }, e.isElement = function (t) {
2373
- return "object" === o(window.HTMLElement) ? t instanceof window.HTMLElement : !!t && "object" === (void 0 === t ? "undefined" : o(t)) && null !== t && 1 === t.nodeType && "string" == typeof t.nodeName;
2374
- };
2375
- }, function (t, e, n) {
2304
+ function r(t) {
2305
+ return t && t.__esModule ? t : {
2306
+ default: t
2307
+ };
2308
+ }
2309
+ function i() {}
2310
+ Object.defineProperty(e, "__esModule", {
2311
+ value: !0
2312
+ });
2313
+ var o = r(n(4)),
2314
+ u = r(n(7)),
2315
+ s = n(2),
2316
+ a = r(n(3)),
2317
+ c = [.19, 1, .22, 1];
2318
+ e.default = function (t) {
2319
+ var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 100,
2320
+ n = 0,
2321
+ r = void 0,
2322
+ f = void 0;
2323
+ if ((0, s.isElement)(t)) r = o.default.apply(void 0, c), f = i;else {
2324
+ if (!(0, s.isObject)(t)) throw new TypeError("The first argument must be HTMLElement or Object.");
2325
+ if (!(0, s.isElement)(t.element)) throw new TypeError("`element` must be HTMLElement.");
2326
+ n = (0, s.isNumeric)(t.offset) ? t.offset : 0, r = (0, s.isArray)(t.bezier) && 4 === t.bezier.length ? o.default.apply(void 0, function (t) {
2327
+ if (Array.isArray(t)) {
2328
+ for (var e = 0, n = Array(t.length); e < t.length; e++) n[e] = t[e];
2329
+ return n;
2330
+ }
2331
+ return Array.from(t);
2332
+ }(t.bezier)) : o.default.apply(void 0, c), e = t.duration, f = (0, s.isFunction)(t.then) ? t.then : i, t = t.element;
2333
+ }
2334
+ (!(0, s.isNumeric)(e) || e < 0) && (e = 100);
2335
+ var l = (0, a.default)(t),
2336
+ h = l.scrollTop,
2337
+ p = l.offsetTop,
2338
+ d = null,
2339
+ g = ("BODY" === l.nodeName ? t.getBoundingClientRect().top + (window.scrollY || window.pageYOffset || document.body.scrollTop) - p : t.offsetTop - p) - h + n;
2340
+ (0, u.default)(function t(n) {
2341
+ null === d && (d = n);
2342
+ var i = n - d,
2343
+ o = r(i / e) * g;
2344
+ l.scrollTop = Math.round(h + o), i < e ? (0, u.default)(t) : f();
2345
+ });
2346
+ };
2347
+ }, function (t, e, n) {
2376
2348
 
2377
- function r(t, e) {
2378
- return window.getComputedStyle(t, null).getPropertyValue(e);
2379
- }
2380
- function i(t) {
2381
- if (1 === t.nodeType) return o.test(function (t) {
2382
- return r(t, "overflow") + r(t, "overflow-y");
2383
- }(t)) && t.scrollHeight > t.clientHeight;
2384
- }
2385
- Object.defineProperty(e, "__esModule", {
2386
- value: !0
2387
- });
2388
- var o = /(auto|scroll)/;
2389
- e.default = function (t) {
2390
- for (var e = function t(e) {
2391
- var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : [],
2392
- r = e.parentNode;
2393
- return null === r || "HTML" === r.nodeName ? n : t(r, n.concat(r));
2394
- }(t), n = document.body, r = 0, o = e.length; r < o; r++) if (i(e[r])) {
2395
- n = e[r];
2396
- break;
2397
- }
2398
- return n;
2399
- };
2400
- }, function (t, e) {
2401
- function n(t, e) {
2402
- return 1 - 3 * e + 3 * t;
2403
- }
2404
- function r(t, e) {
2405
- return 3 * e - 6 * t;
2406
- }
2407
- function i(t) {
2408
- return 3 * t;
2409
- }
2410
- function o(t, e, o) {
2411
- return ((n(e, o) * t + r(e, o)) * t + i(e)) * t;
2412
- }
2413
- function u(t, e, o) {
2414
- return 3 * n(e, o) * t * t + 2 * r(e, o) * t + i(e);
2415
- }
2416
- function s(t, e, n, r, i) {
2417
- var u,
2418
- s,
2419
- a = 0;
2420
- do {
2421
- (u = o(s = e + (n - e) / 2, r, i) - t) > 0 ? n = s : e = s;
2422
- } while (Math.abs(u) > f && ++a < l);
2423
- return s;
2424
- }
2425
- function a(t, e, n, r) {
2426
- for (var i = 0; i < c; ++i) {
2427
- var s = u(e, n, r);
2428
- if (0 === s) return e;
2429
- e -= (o(e, n, r) - t) / s;
2430
- }
2431
- return e;
2432
- }
2433
- var c = 4,
2434
- f = 1e-7,
2435
- l = 10,
2436
- h = 11,
2437
- p = 1 / (h - 1),
2438
- d = "function" == typeof Float32Array;
2439
- t.exports = function (t, e, n, r) {
2440
- function i(e) {
2441
- for (var r = 0, i = 1, o = h - 1; i !== o && c[i] <= e; ++i) r += p;
2442
- var f = r + (e - c[--i]) / (c[i + 1] - c[i]) * p,
2443
- l = u(f, t, n);
2444
- return l >= .001 ? a(e, f, t, n) : 0 === l ? f : s(e, r, r + p, t, n);
2445
- }
2446
- if (!(0 <= t && t <= 1 && 0 <= n && n <= 1)) throw new Error("bezier x values must be in [0, 1] range");
2447
- var c = d ? new Float32Array(h) : new Array(h);
2448
- if (t !== e || n !== r) for (var f = 0; f < h; ++f) c[f] = o(f * p, t, n);
2449
- return function (u) {
2450
- return t === e && n === r ? u : 0 === u ? 0 : 1 === u ? 1 : o(i(u), e, r);
2451
- };
2452
- };
2453
- }, function (t, e, n) {
2454
- (function (e) {
2455
- (function () {
2456
- var n, r, i, o, u, s;
2457
- "undefined" != typeof performance && null !== performance && performance.now ? t.exports = function () {
2458
- return performance.now();
2459
- } : void 0 !== e && null !== e && e.hrtime ? (t.exports = function () {
2460
- return (n() - u) / 1e6;
2461
- }, r = e.hrtime, o = (n = function () {
2462
- var t;
2463
- return 1e9 * (t = r())[0] + t[1];
2464
- })(), s = 1e9 * e.uptime(), u = o - s) : Date.now ? (t.exports = function () {
2465
- return Date.now() - i;
2466
- }, i = Date.now()) : (t.exports = function () {
2467
- return new Date().getTime() - i;
2468
- }, i = new Date().getTime());
2469
- }).call(this);
2470
- }).call(e, n(6));
2471
- }, function (t, e) {
2472
- function n() {
2473
- throw new Error("setTimeout has not been defined");
2474
- }
2475
- function r() {
2476
- throw new Error("clearTimeout has not been defined");
2477
- }
2478
- function i(t) {
2479
- if (c === setTimeout) return setTimeout(t, 0);
2480
- if ((c === n || !c) && setTimeout) return c = setTimeout, setTimeout(t, 0);
2481
- try {
2482
- return c(t, 0);
2483
- } catch (e) {
2484
- try {
2485
- return c.call(null, t, 0);
2486
- } catch (e) {
2487
- return c.call(this, t, 0);
2488
- }
2489
- }
2490
- }
2491
- function o() {
2492
- d && h && (d = !1, h.length ? p = h.concat(p) : g = -1, p.length && u());
2493
- }
2494
- function u() {
2495
- if (!d) {
2496
- var t = i(o);
2497
- d = !0;
2498
- for (var e = p.length; e;) {
2499
- for (h = p, p = []; ++g < e;) h && h[g].run();
2500
- g = -1, e = p.length;
2501
- }
2502
- h = null, d = !1, function (t) {
2503
- if (f === clearTimeout) return clearTimeout(t);
2504
- if ((f === r || !f) && clearTimeout) return f = clearTimeout, clearTimeout(t);
2505
- try {
2506
- f(t);
2507
- } catch (e) {
2508
- try {
2509
- return f.call(null, t);
2510
- } catch (e) {
2511
- return f.call(this, t);
2512
- }
2513
- }
2514
- }(t);
2515
- }
2516
- }
2517
- function s(t, e) {
2518
- this.fun = t, this.array = e;
2519
- }
2520
- function a() {}
2521
- var c,
2522
- f,
2523
- l = t.exports = {};
2524
- !function () {
2525
- try {
2526
- c = "function" == typeof setTimeout ? setTimeout : n;
2527
- } catch (t) {
2528
- c = n;
2529
- }
2530
- try {
2531
- f = "function" == typeof clearTimeout ? clearTimeout : r;
2532
- } catch (t) {
2533
- f = r;
2534
- }
2535
- }();
2536
- var h,
2537
- p = [],
2538
- d = !1,
2539
- g = -1;
2540
- l.nextTick = function (t) {
2541
- var e = new Array(arguments.length - 1);
2542
- if (arguments.length > 1) for (var n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
2543
- p.push(new s(t, e)), 1 !== p.length || d || i(u);
2544
- }, s.prototype.run = function () {
2545
- this.fun.apply(null, this.array);
2546
- }, l.title = "browser", l.browser = !0, l.env = {}, l.argv = [], l.version = "", l.versions = {}, l.on = a, l.addListener = a, l.once = a, l.off = a, l.removeListener = a, l.removeAllListeners = a, l.emit = a, l.binding = function (t) {
2547
- throw new Error("process.binding is not supported");
2548
- }, l.cwd = function () {
2549
- return "/";
2550
- }, l.chdir = function (t) {
2551
- throw new Error("process.chdir is not supported");
2552
- }, l.umask = function () {
2553
- return 0;
2554
- };
2555
- }, function (t, e, n) {
2556
- (function (e) {
2557
- for (var r = n(5), i = "undefined" == typeof window ? e : window, o = ["moz", "webkit"], u = "AnimationFrame", s = i["request" + u], a = i["cancel" + u] || i["cancelRequest" + u], c = 0; !s && c < o.length; c++) s = i[o[c] + "Request" + u], a = i[o[c] + "Cancel" + u] || i[o[c] + "CancelRequest" + u];
2558
- if (!s || !a) {
2559
- var f = 0,
2560
- l = 0,
2561
- h = [];
2562
- s = function (t) {
2563
- if (0 === h.length) {
2564
- var e = r(),
2565
- n = Math.max(0, 1e3 / 60 - (e - f));
2566
- f = n + e, setTimeout(function () {
2567
- var t = h.slice(0);
2568
- h.length = 0;
2569
- for (var e = 0; e < t.length; e++) if (!t[e].cancelled) try {
2570
- t[e].callback(f);
2571
- } catch (t) {
2572
- setTimeout(function () {
2573
- throw t;
2574
- }, 0);
2575
- }
2576
- }, Math.round(n));
2577
- }
2578
- return h.push({
2579
- handle: ++l,
2580
- callback: t,
2581
- cancelled: !1
2582
- }), l;
2583
- }, a = function (t) {
2584
- for (var e = 0; e < h.length; e++) h[e].handle === t && (h[e].cancelled = !0);
2585
- };
2586
- }
2587
- t.exports = function (t) {
2588
- return s.call(i, t);
2589
- }, t.exports.cancel = function () {
2590
- a.apply(i, arguments);
2591
- }, t.exports.polyfill = function () {
2592
- i.requestAnimationFrame = s, i.cancelAnimationFrame = a;
2593
- };
2594
- }).call(e, n(8));
2595
- }, function (t, e) {
2596
- var n;
2597
- n = function () {
2598
- return this;
2599
- }();
2600
- try {
2601
- n = n || Function("return this")() || (0, eval)("this");
2602
- } catch (t) {
2603
- "object" == typeof window && (n = window);
2604
- }
2605
- t.exports = n;
2606
- }]);
2607
- }, t.exports = r();
2608
- }, function (t, e, n) {
2349
+ var r = function (t) {
2350
+ return t && t.__esModule ? t : {
2351
+ default: t
2352
+ };
2353
+ }(n(0));
2354
+ t.exports = r.default;
2355
+ }, function (t, e, n) {
2609
2356
 
2610
- t.exports = function (t, e) {
2611
- var n = t.clientHeight,
2612
- r = e.clientHeight,
2613
- i = t.scrollTop,
2614
- o = e.offsetTop;
2615
- return !(i > o) && !(i + n - r < o);
2616
- };
2617
- }, function (t, e, n) {
2357
+ function r(t) {
2358
+ return Object.prototype.toString.call(t);
2359
+ }
2360
+ function i(t) {
2361
+ return !isNaN(parseFloat(t)) && isFinite(t);
2362
+ }
2363
+ Object.defineProperty(e, "__esModule", {
2364
+ value: !0
2365
+ });
2366
+ var o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
2367
+ return typeof t;
2368
+ } : function (t) {
2369
+ return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
2370
+ };
2371
+ e.isObject = function (t) {
2372
+ return "[object Object]" === r(t);
2373
+ }, e.isArray = function (t) {
2374
+ return null != t && "[object Array]" === r(t);
2375
+ }, e.isNumeric = i, e.isPositive = function (t) {
2376
+ return i(t) && t >= 0;
2377
+ }, e.isFunction = function (t) {
2378
+ return null != t && "[object Function]" === r(t);
2379
+ }, e.isElement = function (t) {
2380
+ return "object" === o(window.HTMLElement) ? t instanceof window.HTMLElement : !!t && "object" === (void 0 === t ? "undefined" : o(t)) && null !== t && 1 === t.nodeType && "string" == typeof t.nodeName;
2381
+ };
2382
+ }, function (t, e, n) {
2618
2383
 
2619
- t.exports = function (t) {
2620
- var e = window.innerHeight,
2621
- n = t.getBoundingClientRect(),
2622
- r = n.top < 0,
2623
- i = n.bottom > e,
2624
- o = !r && !i,
2625
- u = {
2626
- visible: o
2627
- };
2628
- return o || (u.position = r ? "top" : "bottom"), u;
2629
- };
2630
- }, function (t, e, n) {
2384
+ function r(t, e) {
2385
+ return window.getComputedStyle(t, null).getPropertyValue(e);
2386
+ }
2387
+ function i(t) {
2388
+ if (1 === t.nodeType) return o.test(function (t) {
2389
+ return r(t, "overflow") + r(t, "overflow-y");
2390
+ }(t)) && t.scrollHeight > t.clientHeight;
2391
+ }
2392
+ Object.defineProperty(e, "__esModule", {
2393
+ value: !0
2394
+ });
2395
+ var o = /(auto|scroll)/;
2396
+ e.default = function (t) {
2397
+ for (var e = function t(e) {
2398
+ var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : [],
2399
+ r = e.parentNode;
2400
+ return null === r || "HTML" === r.nodeName ? n : t(r, n.concat(r));
2401
+ }(t), n = document.body, r = 0, o = e.length; r < o; r++) if (i(e[r])) {
2402
+ n = e[r];
2403
+ break;
2404
+ }
2405
+ return n;
2406
+ };
2407
+ }, function (t, e) {
2408
+ function n(t, e) {
2409
+ return 1 - 3 * e + 3 * t;
2410
+ }
2411
+ function r(t, e) {
2412
+ return 3 * e - 6 * t;
2413
+ }
2414
+ function i(t) {
2415
+ return 3 * t;
2416
+ }
2417
+ function o(t, e, o) {
2418
+ return ((n(e, o) * t + r(e, o)) * t + i(e)) * t;
2419
+ }
2420
+ function u(t, e, o) {
2421
+ return 3 * n(e, o) * t * t + 2 * r(e, o) * t + i(e);
2422
+ }
2423
+ function s(t, e, n, r, i) {
2424
+ var u,
2425
+ s,
2426
+ a = 0;
2427
+ do {
2428
+ (u = o(s = e + (n - e) / 2, r, i) - t) > 0 ? n = s : e = s;
2429
+ } while (Math.abs(u) > f && ++a < l);
2430
+ return s;
2431
+ }
2432
+ function a(t, e, n, r) {
2433
+ for (var i = 0; i < c; ++i) {
2434
+ var s = u(e, n, r);
2435
+ if (0 === s) return e;
2436
+ e -= (o(e, n, r) - t) / s;
2437
+ }
2438
+ return e;
2439
+ }
2440
+ var c = 4,
2441
+ f = 1e-7,
2442
+ l = 10,
2443
+ h = 11,
2444
+ p = 1 / (h - 1),
2445
+ d = "function" == typeof Float32Array;
2446
+ t.exports = function (t, e, n, r) {
2447
+ function i(e) {
2448
+ for (var r = 0, i = 1, o = h - 1; i !== o && c[i] <= e; ++i) r += p;
2449
+ var f = r + (e - c[--i]) / (c[i + 1] - c[i]) * p,
2450
+ l = u(f, t, n);
2451
+ return l >= .001 ? a(e, f, t, n) : 0 === l ? f : s(e, r, r + p, t, n);
2452
+ }
2453
+ if (!(0 <= t && t <= 1 && 0 <= n && n <= 1)) throw new Error("bezier x values must be in [0, 1] range");
2454
+ var c = d ? new Float32Array(h) : new Array(h);
2455
+ if (t !== e || n !== r) for (var f = 0; f < h; ++f) c[f] = o(f * p, t, n);
2456
+ return function (u) {
2457
+ return t === e && n === r ? u : 0 === u ? 0 : 1 === u ? 1 : o(i(u), e, r);
2458
+ };
2459
+ };
2460
+ }, function (t, e, n) {
2461
+ (function (e) {
2462
+ (function () {
2463
+ var n, r, i, o, u, s;
2464
+ "undefined" != typeof performance && null !== performance && performance.now ? t.exports = function () {
2465
+ return performance.now();
2466
+ } : void 0 !== e && null !== e && e.hrtime ? (t.exports = function () {
2467
+ return (n() - u) / 1e6;
2468
+ }, r = e.hrtime, o = (n = function () {
2469
+ var t;
2470
+ return 1e9 * (t = r())[0] + t[1];
2471
+ })(), s = 1e9 * e.uptime(), u = o - s) : Date.now ? (t.exports = function () {
2472
+ return Date.now() - i;
2473
+ }, i = Date.now()) : (t.exports = function () {
2474
+ return new Date().getTime() - i;
2475
+ }, i = new Date().getTime());
2476
+ }).call(this);
2477
+ }).call(e, n(6));
2478
+ }, function (t, e) {
2479
+ function n() {
2480
+ throw new Error("setTimeout has not been defined");
2481
+ }
2482
+ function r() {
2483
+ throw new Error("clearTimeout has not been defined");
2484
+ }
2485
+ function i(t) {
2486
+ if (c === setTimeout) return setTimeout(t, 0);
2487
+ if ((c === n || !c) && setTimeout) return c = setTimeout, setTimeout(t, 0);
2488
+ try {
2489
+ return c(t, 0);
2490
+ } catch (e) {
2491
+ try {
2492
+ return c.call(null, t, 0);
2493
+ } catch (e) {
2494
+ return c.call(this, t, 0);
2495
+ }
2496
+ }
2497
+ }
2498
+ function o() {
2499
+ d && h && (d = !1, h.length ? p = h.concat(p) : g = -1, p.length && u());
2500
+ }
2501
+ function u() {
2502
+ if (!d) {
2503
+ var t = i(o);
2504
+ d = !0;
2505
+ for (var e = p.length; e;) {
2506
+ for (h = p, p = []; ++g < e;) h && h[g].run();
2507
+ g = -1, e = p.length;
2508
+ }
2509
+ h = null, d = !1, function (t) {
2510
+ if (f === clearTimeout) return clearTimeout(t);
2511
+ if ((f === r || !f) && clearTimeout) return f = clearTimeout, clearTimeout(t);
2512
+ try {
2513
+ f(t);
2514
+ } catch (e) {
2515
+ try {
2516
+ return f.call(null, t);
2517
+ } catch (e) {
2518
+ return f.call(this, t);
2519
+ }
2520
+ }
2521
+ }(t);
2522
+ }
2523
+ }
2524
+ function s(t, e) {
2525
+ this.fun = t, this.array = e;
2526
+ }
2527
+ function a() {}
2528
+ var c,
2529
+ f,
2530
+ l = t.exports = {};
2531
+ !function () {
2532
+ try {
2533
+ c = "function" == typeof setTimeout ? setTimeout : n;
2534
+ } catch (t) {
2535
+ c = n;
2536
+ }
2537
+ try {
2538
+ f = "function" == typeof clearTimeout ? clearTimeout : r;
2539
+ } catch (t) {
2540
+ f = r;
2541
+ }
2542
+ }();
2543
+ var h,
2544
+ p = [],
2545
+ d = !1,
2546
+ g = -1;
2547
+ l.nextTick = function (t) {
2548
+ var e = new Array(arguments.length - 1);
2549
+ if (arguments.length > 1) for (var n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
2550
+ p.push(new s(t, e)), 1 !== p.length || d || i(u);
2551
+ }, s.prototype.run = function () {
2552
+ this.fun.apply(null, this.array);
2553
+ }, l.title = "browser", l.browser = !0, l.env = {}, l.argv = [], l.version = "", l.versions = {}, l.on = a, l.addListener = a, l.once = a, l.off = a, l.removeListener = a, l.removeAllListeners = a, l.emit = a, l.binding = function (t) {
2554
+ throw new Error("process.binding is not supported");
2555
+ }, l.cwd = function () {
2556
+ return "/";
2557
+ }, l.chdir = function (t) {
2558
+ throw new Error("process.chdir is not supported");
2559
+ }, l.umask = function () {
2560
+ return 0;
2561
+ };
2562
+ }, function (t, e, n) {
2563
+ (function (e) {
2564
+ for (var r = n(5), i = "undefined" == typeof window ? e : window, o = ["moz", "webkit"], u = "AnimationFrame", s = i["request" + u], a = i["cancel" + u] || i["cancelRequest" + u], c = 0; !s && c < o.length; c++) s = i[o[c] + "Request" + u], a = i[o[c] + "Cancel" + u] || i[o[c] + "CancelRequest" + u];
2565
+ if (!s || !a) {
2566
+ var f = 0,
2567
+ l = 0,
2568
+ h = [];
2569
+ s = function (t) {
2570
+ if (0 === h.length) {
2571
+ var e = r(),
2572
+ n = Math.max(0, 1e3 / 60 - (e - f));
2573
+ f = n + e, setTimeout(function () {
2574
+ var t = h.slice(0);
2575
+ h.length = 0;
2576
+ for (var e = 0; e < t.length; e++) if (!t[e].cancelled) try {
2577
+ t[e].callback(f);
2578
+ } catch (t) {
2579
+ setTimeout(function () {
2580
+ throw t;
2581
+ }, 0);
2582
+ }
2583
+ }, Math.round(n));
2584
+ }
2585
+ return h.push({
2586
+ handle: ++l,
2587
+ callback: t,
2588
+ cancelled: !1
2589
+ }), l;
2590
+ }, a = function (t) {
2591
+ for (var e = 0; e < h.length; e++) h[e].handle === t && (h[e].cancelled = !0);
2592
+ };
2593
+ }
2594
+ t.exports = function (t) {
2595
+ return s.call(i, t);
2596
+ }, t.exports.cancel = function () {
2597
+ a.apply(i, arguments);
2598
+ }, t.exports.polyfill = function () {
2599
+ i.requestAnimationFrame = s, i.cancelAnimationFrame = a;
2600
+ };
2601
+ }).call(e, n(8));
2602
+ }, function (t, e) {
2603
+ var n;
2604
+ n = function () {
2605
+ return this;
2606
+ }();
2607
+ try {
2608
+ n = n || Function("return this")() || (0, eval)("this");
2609
+ } catch (t) {
2610
+ "object" == typeof window && (n = window);
2611
+ }
2612
+ t.exports = n;
2613
+ }]);
2614
+ }, t.exports = r();
2615
+ }, function (t, e, n) {
2631
2616
 
2632
- var r,
2633
- i = n(11),
2634
- o = (r = i) && r.__esModule ? r : {
2635
- default: r
2636
- };
2637
- t.exports = {
2638
- contains: function (t, e) {
2639
- return e.filter(function (e) {
2640
- return (0, o.default)(e).toLowerCase().indexOf(t.toLowerCase()) > -1;
2641
- });
2642
- },
2643
- equals: function (t, e) {
2644
- return e.filter(function (e) {
2645
- return (0, o.default)(e).toLowerCase() === t.toLowerCase();
2646
- });
2647
- },
2648
- "starts-with": function (t, e) {
2649
- return e.filter(function (e) {
2650
- return 0 === (0, o.default)(e).toLowerCase().indexOf(t.toLowerCase());
2651
- });
2652
- }
2653
- };
2654
- }, function (t, e, n) {
2617
+ t.exports = function (t, e) {
2618
+ var n = t.clientHeight,
2619
+ r = e.clientHeight,
2620
+ i = t.scrollTop,
2621
+ o = e.offsetTop;
2622
+ return !(i > o) && !(i + n - r < o);
2623
+ };
2624
+ }, function (t, e, n) {
2655
2625
 
2656
- t.exports = function (t) {
2657
- return t.getAttribute("data-value") || t.innerText;
2658
- };
2659
- }, function (t, e, n) {
2626
+ t.exports = function (t) {
2627
+ var e = window.innerHeight,
2628
+ n = t.getBoundingClientRect(),
2629
+ r = n.top < 0,
2630
+ i = n.bottom > e,
2631
+ o = !r && !i,
2632
+ u = {
2633
+ visible: o
2634
+ };
2635
+ return o || (u.position = r ? "top" : "bottom"), u;
2636
+ };
2637
+ }, function (t, e, n) {
2660
2638
 
2661
- var r,
2662
- i = n(13),
2663
- o = (r = i) && r.__esModule ? r : {
2664
- default: r
2665
- };
2666
- e.attach = function (t, e, n) {
2667
- if ("function" == typeof n) return e.addEventListener(t, n);
2668
- n && n.length && e.addEventListener(t, function (t) {
2669
- var e = o.default[t.which];
2670
- n.forEach(function (n) {
2671
- n.keys.indexOf(e) > -1 && (n.preventDefault && t.preventDefault(), n.callback(t, e));
2672
- });
2673
- });
2674
- }, e.up = function (t, n) {
2675
- return e.attach("keyup", t, n);
2676
- }, e.down = function (t, n) {
2677
- return e.attach("keydown", t, n);
2678
- }, e.press = function (t, n) {
2679
- return e.attach("keypress", t, n);
2680
- };
2681
- }, function (t, e, n) {
2639
+ var r,
2640
+ i = n(11),
2641
+ o = (r = i) && r.__esModule ? r : {
2642
+ default: r
2643
+ };
2644
+ t.exports = {
2645
+ contains: function (t, e) {
2646
+ return e.filter(function (e) {
2647
+ return (0, o.default)(e).toLowerCase().indexOf(t.toLowerCase()) > -1;
2648
+ });
2649
+ },
2650
+ equals: function (t, e) {
2651
+ return e.filter(function (e) {
2652
+ return (0, o.default)(e).toLowerCase() === t.toLowerCase();
2653
+ });
2654
+ },
2655
+ "starts-with": function (t, e) {
2656
+ return e.filter(function (e) {
2657
+ return 0 === (0, o.default)(e).toLowerCase().indexOf(t.toLowerCase());
2658
+ });
2659
+ }
2660
+ };
2661
+ }, function (t, e, n) {
2682
2662
 
2683
- t.exports = {
2684
- 8: "backspace",
2685
- 9: "tab",
2686
- 13: "enter",
2687
- 27: "escape",
2688
- 32: "space",
2689
- 37: "left",
2690
- 38: "up",
2691
- 39: "right",
2692
- 40: "down"
2693
- };
2694
- }, function (t, e, n) {
2663
+ t.exports = function (t) {
2664
+ return t.getAttribute("data-value") || t.innerText;
2665
+ };
2666
+ }, function (t, e, n) {
2695
2667
 
2696
- t.exports = function (t, e, n) {
2697
- if (e = e.length ? e : [e], n && e.indexOf(t) > -1) return !0;
2698
- for (var r = t.parentNode; r && "HTML" !== r.tagName;) {
2699
- if (e.indexOf(r) > -1) return !0;
2700
- r = r.parentNode;
2701
- }
2702
- return !1;
2703
- };
2704
- }, function (t, e, n) {
2668
+ var r,
2669
+ i = n(13),
2670
+ o = (r = i) && r.__esModule ? r : {
2671
+ default: r
2672
+ };
2673
+ e.attach = function (t, e, n) {
2674
+ if ("function" == typeof n) return e.addEventListener(t, n);
2675
+ n && n.length && e.addEventListener(t, function (t) {
2676
+ var e = o.default[t.which];
2677
+ n.forEach(function (n) {
2678
+ n.keys.indexOf(e) > -1 && (n.preventDefault && t.preventDefault(), n.callback(t, e));
2679
+ });
2680
+ });
2681
+ }, e.up = function (t, n) {
2682
+ return e.attach("keyup", t, n);
2683
+ }, e.down = function (t, n) {
2684
+ return e.attach("keydown", t, n);
2685
+ }, e.press = function (t, n) {
2686
+ return e.attach("keypress", t, n);
2687
+ };
2688
+ }, function (t, e, n) {
2705
2689
 
2706
- var r,
2707
- i = n(16),
2708
- o = (r = i) && r.__esModule ? r : {
2709
- default: r
2710
- };
2711
- t.exports = function (t, e, n) {
2712
- return n = n || document, "string" == typeof t ? e ? o.default.all(t, n) : (0, o.default)(t, n) : t;
2713
- };
2714
- }, function (t, e, n) {
2690
+ t.exports = {
2691
+ 8: "backspace",
2692
+ 9: "tab",
2693
+ 13: "enter",
2694
+ 27: "escape",
2695
+ 32: "space",
2696
+ 37: "left",
2697
+ 38: "up",
2698
+ 39: "right",
2699
+ 40: "down"
2700
+ };
2701
+ }, function (t, e, n) {
2715
2702
 
2716
- (t.exports = function (t, e) {
2717
- return (e = e || document).querySelector(t);
2718
- }).all = function (t, e) {
2719
- return e = e || document, Array.prototype.slice.call(e.querySelectorAll(t));
2720
- };
2721
- }, function (t, e, n) {
2703
+ t.exports = function (t, e, n) {
2704
+ if (e = e.length ? e : [e], n && e.indexOf(t) > -1) return !0;
2705
+ for (var r = t.parentNode; r && "HTML" !== r.tagName;) {
2706
+ if (e.indexOf(r) > -1) return !0;
2707
+ r = r.parentNode;
2708
+ }
2709
+ return !1;
2710
+ };
2711
+ }, function (t, e, n) {
2722
2712
 
2723
- t.exports = function (t, e) {
2724
- var n = t.filter(function (t) {
2725
- return t.options.indexOf(e) > -1;
2726
- });
2727
- return n.length && n[0];
2728
- };
2729
- }, function (t, e, n) {
2713
+ var r,
2714
+ i = n(16),
2715
+ o = (r = i) && r.__esModule ? r : {
2716
+ default: r
2717
+ };
2718
+ t.exports = function (t, e, n) {
2719
+ return n = n || document, "string" == typeof t ? e ? o.default.all(t, n) : (0, o.default)(t, n) : t;
2720
+ };
2721
+ }, function (t, e, n) {
2730
2722
 
2731
- var r,
2732
- i = n(1),
2733
- o = (r = i) && r.__esModule ? r : {
2734
- default: r
2735
- };
2736
- t.exports = function (t, e, n) {
2737
- var r = t.querySelector(".combobo-no-results");
2738
- !n || e.length || r ? r && e.length && t.removeChild(r) : (r = document.createElement("div"), (0, o.default)(r).add("combobo-no-results"), r.innerHTML = n, t.appendChild(r));
2739
- };
2740
- }, function (t, e, n) {
2723
+ (t.exports = function (t, e) {
2724
+ return (e = e || document).querySelector(t);
2725
+ }).all = function (t, e) {
2726
+ return e = e || document, Array.prototype.slice.call(e.querySelectorAll(t));
2727
+ };
2728
+ }, function (t, e, n) {
2741
2729
 
2742
- var r,
2743
- i = n(20),
2744
- o = (r = i) && r.__esModule ? r : {
2745
- default: r
2746
- };
2747
- t.exports = function (t, e, n) {
2748
- e.id = e.id || (0, o.default)(), t.setAttribute("role", "combobox"), e.setAttribute("role", "listbox"), t.setAttribute("aria-controls", e.id), t.setAttribute("aria-autocomplete", "list"), t.setAttribute("aria-expanded", "false"), n.forEach(function (t) {
2749
- t.setAttribute("role", "option"), t.id = t.id || (0, o.default)();
2750
- });
2751
- };
2752
- }, function (t, e, n) {
2730
+ t.exports = function (t, e) {
2731
+ var n = t.filter(function (t) {
2732
+ return t.options.indexOf(e) > -1;
2733
+ });
2734
+ return n.length && n[0];
2735
+ };
2736
+ }, function (t, e, n) {
2753
2737
 
2754
- var r,
2755
- i = n(21),
2756
- o = (r = i) && r.__esModule ? r : {
2757
- default: r
2758
- };
2759
- t.exports = function t(e) {
2760
- e = e || 8;
2761
- var n = (0, o.default)(e);
2762
- if (document.getElementById(n)) return t(e);
2763
- return n;
2764
- };
2765
- }, function (t, e, n) {
2766
- (function (r) {
2767
- var i = n(26);
2768
- function o(t) {
2769
- i("string" == typeof t, "the list of characters must be a string!");
2770
- var e = r.byteLength(t);
2771
- return function (n) {
2772
- i("number" == typeof (n = n || 10) && n >= 0, "the length of the random string must be a number!");
2773
- for (var r = "", o = 0; o < n; o++) r += t[Math.floor(e * Math.random())];
2774
- return r;
2775
- };
2776
- }
2777
- (e = t.exports = o("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")).base62 = e, e.base36 = o("abcdefghijklmnopqrstuvwxyz0123456789"), e.base10 = o("0123456789"), e.create = o;
2778
- }).call(e, n(22).Buffer);
2779
- }, function (t, e, n) {
2738
+ var r,
2739
+ i = n(1),
2740
+ o = (r = i) && r.__esModule ? r : {
2741
+ default: r
2742
+ };
2743
+ t.exports = function (t, e, n) {
2744
+ var r = t.querySelector(".combobo-no-results");
2745
+ !n || e.length || r ? r && e.length && t.removeChild(r) : (r = document.createElement("div"), (0, o.default)(r).add("combobo-no-results"), r.innerHTML = n, t.appendChild(r));
2746
+ };
2747
+ }, function (t, e, n) {
2780
2748
 
2781
- (function (t) {
2782
- var r = n(23),
2783
- i = n(24),
2784
- o = n(25);
2785
- function u() {
2786
- return a.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823;
2787
- }
2788
- function s(t, e) {
2789
- if (u() < e) throw new RangeError("Invalid typed array length");
2790
- return a.TYPED_ARRAY_SUPPORT ? (t = new Uint8Array(e)).__proto__ = a.prototype : (null === t && (t = new a(e)), t.length = e), t;
2791
- }
2792
- function a(t, e, n) {
2793
- if (!(a.TYPED_ARRAY_SUPPORT || this instanceof a)) return new a(t, e, n);
2794
- if ("number" == typeof t) {
2795
- if ("string" == typeof e) throw new Error("If encoding is specified then the first argument must be a string");
2796
- return l(this, t);
2797
- }
2798
- return c(this, t, e, n);
2799
- }
2800
- function c(t, e, n, r) {
2801
- if ("number" == typeof e) throw new TypeError('"value" argument must not be a number');
2802
- return "undefined" != typeof ArrayBuffer && e instanceof ArrayBuffer ? function (t, e, n, r) {
2803
- if (e.byteLength, n < 0 || e.byteLength < n) throw new RangeError("'offset' is out of bounds");
2804
- if (e.byteLength < n + (r || 0)) throw new RangeError("'length' is out of bounds");
2805
- e = void 0 === n && void 0 === r ? new Uint8Array(e) : void 0 === r ? new Uint8Array(e, n) : new Uint8Array(e, n, r);
2806
- a.TYPED_ARRAY_SUPPORT ? (t = e).__proto__ = a.prototype : t = h(t, e);
2807
- return t;
2808
- }(t, e, n, r) : "string" == typeof e ? function (t, e, n) {
2809
- "string" == typeof n && "" !== n || (n = "utf8");
2810
- if (!a.isEncoding(n)) throw new TypeError('"encoding" must be a valid string encoding');
2811
- var r = 0 | d(e, n),
2812
- i = (t = s(t, r)).write(e, n);
2813
- i !== r && (t = t.slice(0, i));
2814
- return t;
2815
- }(t, e, n) : function (t, e) {
2816
- if (a.isBuffer(e)) {
2817
- var n = 0 | p(e.length);
2818
- return 0 === (t = s(t, n)).length ? t : (e.copy(t, 0, 0, n), t);
2819
- }
2820
- if (e) {
2821
- if ("undefined" != typeof ArrayBuffer && e.buffer instanceof ArrayBuffer || "length" in e) return "number" != typeof e.length || (r = e.length) != r ? s(t, 0) : h(t, e);
2822
- if ("Buffer" === e.type && o(e.data)) return h(t, e.data);
2823
- }
2824
- var r;
2825
- throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.");
2826
- }(t, e);
2827
- }
2828
- function f(t) {
2829
- if ("number" != typeof t) throw new TypeError('"size" argument must be a number');
2830
- if (t < 0) throw new RangeError('"size" argument must not be negative');
2831
- }
2832
- function l(t, e) {
2833
- if (f(e), t = s(t, e < 0 ? 0 : 0 | p(e)), !a.TYPED_ARRAY_SUPPORT) for (var n = 0; n < e; ++n) t[n] = 0;
2834
- return t;
2835
- }
2836
- function h(t, e) {
2837
- var n = e.length < 0 ? 0 : 0 | p(e.length);
2838
- t = s(t, n);
2839
- for (var r = 0; r < n; r += 1) t[r] = 255 & e[r];
2840
- return t;
2841
- }
2842
- function p(t) {
2843
- if (t >= u()) throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + u().toString(16) + " bytes");
2844
- return 0 | t;
2845
- }
2846
- function d(t, e) {
2847
- if (a.isBuffer(t)) return t.length;
2848
- if ("undefined" != typeof ArrayBuffer && "function" == typeof ArrayBuffer.isView && (ArrayBuffer.isView(t) || t instanceof ArrayBuffer)) return t.byteLength;
2849
- "string" != typeof t && (t = "" + t);
2850
- var n = t.length;
2851
- if (0 === n) return 0;
2852
- for (var r = !1;;) switch (e) {
2853
- case "ascii":
2854
- case "latin1":
2855
- case "binary":
2856
- return n;
2857
- case "utf8":
2858
- case "utf-8":
2859
- case void 0:
2860
- return N(t).length;
2861
- case "ucs2":
2862
- case "ucs-2":
2863
- case "utf16le":
2864
- case "utf-16le":
2865
- return 2 * n;
2866
- case "hex":
2867
- return n >>> 1;
2868
- case "base64":
2869
- return F(t).length;
2870
- default:
2871
- if (r) return N(t).length;
2872
- e = ("" + e).toLowerCase(), r = !0;
2873
- }
2874
- }
2875
- function g(t, e, n) {
2876
- var r = t[e];
2877
- t[e] = t[n], t[n] = r;
2878
- }
2879
- function y(t, e, n, r, i) {
2880
- if (0 === t.length) return -1;
2881
- if ("string" == typeof n ? (r = n, n = 0) : n > 2147483647 ? n = 2147483647 : n < -2147483648 && (n = -2147483648), n = +n, isNaN(n) && (n = i ? 0 : t.length - 1), n < 0 && (n = t.length + n), n >= t.length) {
2882
- if (i) return -1;
2883
- n = t.length - 1;
2884
- } else if (n < 0) {
2885
- if (!i) return -1;
2886
- n = 0;
2887
- }
2888
- if ("string" == typeof e && (e = a.from(e, r)), a.isBuffer(e)) return 0 === e.length ? -1 : v(t, e, n, r, i);
2889
- if ("number" == typeof e) return e &= 255, a.TYPED_ARRAY_SUPPORT && "function" == typeof Uint8Array.prototype.indexOf ? i ? Uint8Array.prototype.indexOf.call(t, e, n) : Uint8Array.prototype.lastIndexOf.call(t, e, n) : v(t, [e], n, r, i);
2890
- throw new TypeError("val must be string, number or Buffer");
2891
- }
2892
- function v(t, e, n, r, i) {
2893
- var o,
2894
- u = 1,
2895
- s = t.length,
2896
- a = e.length;
2897
- if (void 0 !== r && ("ucs2" === (r = String(r).toLowerCase()) || "ucs-2" === r || "utf16le" === r || "utf-16le" === r)) {
2898
- if (t.length < 2 || e.length < 2) return -1;
2899
- u = 2, s /= 2, a /= 2, n /= 2;
2900
- }
2901
- function c(t, e) {
2902
- return 1 === u ? t[e] : t.readUInt16BE(e * u);
2903
- }
2904
- if (i) {
2905
- var f = -1;
2906
- for (o = n; o < s; o++) if (c(t, o) === c(e, -1 === f ? 0 : o - f)) {
2907
- if (-1 === f && (f = o), o - f + 1 === a) return f * u;
2908
- } else -1 !== f && (o -= o - f), f = -1;
2909
- } else for (n + a > s && (n = s - a), o = n; o >= 0; o--) {
2910
- for (var l = !0, h = 0; h < a; h++) if (c(t, o + h) !== c(e, h)) {
2911
- l = !1;
2912
- break;
2913
- }
2914
- if (l) return o;
2915
- }
2916
- return -1;
2917
- }
2918
- function m(t, e, n, r) {
2919
- n = Number(n) || 0;
2920
- var i = t.length - n;
2921
- r ? (r = Number(r)) > i && (r = i) : r = i;
2922
- var o = e.length;
2923
- if (o % 2 != 0) throw new TypeError("Invalid hex string");
2924
- r > o / 2 && (r = o / 2);
2925
- for (var u = 0; u < r; ++u) {
2926
- var s = parseInt(e.substr(2 * u, 2), 16);
2927
- if (isNaN(s)) return u;
2928
- t[n + u] = s;
2929
- }
2930
- return u;
2931
- }
2932
- function b(t, e, n, r) {
2933
- return z(N(e, t.length - n), t, n, r);
2934
- }
2935
- function w(t, e, n, r) {
2936
- return z(function (t) {
2937
- for (var e = [], n = 0; n < t.length; ++n) e.push(255 & t.charCodeAt(n));
2938
- return e;
2939
- }(e), t, n, r);
2940
- }
2941
- function E(t, e, n, r) {
2942
- return w(t, e, n, r);
2943
- }
2944
- function O(t, e, n, r) {
2945
- return z(F(e), t, n, r);
2946
- }
2947
- function A(t, e, n, r) {
2948
- return z(function (t, e) {
2949
- for (var n, r, i, o = [], u = 0; u < t.length && !((e -= 2) < 0); ++u) n = t.charCodeAt(u), r = n >> 8, i = n % 256, o.push(i), o.push(r);
2950
- return o;
2951
- }(e, t.length - n), t, n, r);
2952
- }
2953
- function x(t, e, n) {
2954
- return 0 === e && n === t.length ? r.fromByteArray(t) : r.fromByteArray(t.slice(e, n));
2955
- }
2956
- function T(t, e, n) {
2957
- n = Math.min(t.length, n);
2958
- for (var r = [], i = e; i < n;) {
2959
- var o,
2960
- u,
2961
- s,
2962
- a,
2963
- c = t[i],
2964
- f = null,
2965
- l = c > 239 ? 4 : c > 223 ? 3 : c > 191 ? 2 : 1;
2966
- if (i + l <= n) switch (l) {
2967
- case 1:
2968
- c < 128 && (f = c);
2969
- break;
2970
- case 2:
2971
- 128 == (192 & (o = t[i + 1])) && (a = (31 & c) << 6 | 63 & o) > 127 && (f = a);
2972
- break;
2973
- case 3:
2974
- o = t[i + 1], u = t[i + 2], 128 == (192 & o) && 128 == (192 & u) && (a = (15 & c) << 12 | (63 & o) << 6 | 63 & u) > 2047 && (a < 55296 || a > 57343) && (f = a);
2975
- break;
2976
- case 4:
2977
- o = t[i + 1], u = t[i + 2], s = t[i + 3], 128 == (192 & o) && 128 == (192 & u) && 128 == (192 & s) && (a = (15 & c) << 18 | (63 & o) << 12 | (63 & u) << 6 | 63 & s) > 65535 && a < 1114112 && (f = a);
2978
- }
2979
- null === f ? (f = 65533, l = 1) : f > 65535 && (f -= 65536, r.push(f >>> 10 & 1023 | 55296), f = 56320 | 1023 & f), r.push(f), i += l;
2980
- }
2981
- return function (t) {
2982
- var e = t.length;
2983
- if (e <= _) return String.fromCharCode.apply(String, t);
2984
- var n = "",
2985
- r = 0;
2986
- for (; r < e;) n += String.fromCharCode.apply(String, t.slice(r, r += _));
2987
- return n;
2988
- }(r);
2989
- }
2990
- e.Buffer = a, e.SlowBuffer = function (t) {
2991
- +t != t && (t = 0);
2992
- return a.alloc(+t);
2993
- }, e.INSPECT_MAX_BYTES = 50, a.TYPED_ARRAY_SUPPORT = void 0 !== t.TYPED_ARRAY_SUPPORT ? t.TYPED_ARRAY_SUPPORT : function () {
2994
- try {
2995
- var t = new Uint8Array(1);
2996
- return t.__proto__ = {
2997
- __proto__: Uint8Array.prototype,
2998
- foo: function () {
2999
- return 42;
3000
- }
3001
- }, 42 === t.foo() && "function" == typeof t.subarray && 0 === t.subarray(1, 1).byteLength;
3002
- } catch (t) {
3003
- return !1;
3004
- }
3005
- }(), e.kMaxLength = u(), a.poolSize = 8192, a._augment = function (t) {
3006
- return t.__proto__ = a.prototype, t;
3007
- }, a.from = function (t, e, n) {
3008
- return c(null, t, e, n);
3009
- }, a.TYPED_ARRAY_SUPPORT && (a.prototype.__proto__ = Uint8Array.prototype, a.__proto__ = Uint8Array, "undefined" != typeof Symbol && Symbol.species && a[Symbol.species] === a && Object.defineProperty(a, Symbol.species, {
3010
- value: null,
3011
- configurable: !0
3012
- })), a.alloc = function (t, e, n) {
3013
- return function (t, e, n, r) {
3014
- return f(e), e <= 0 ? s(t, e) : void 0 !== n ? "string" == typeof r ? s(t, e).fill(n, r) : s(t, e).fill(n) : s(t, e);
3015
- }(null, t, e, n);
3016
- }, a.allocUnsafe = function (t) {
3017
- return l(null, t);
3018
- }, a.allocUnsafeSlow = function (t) {
3019
- return l(null, t);
3020
- }, a.isBuffer = function (t) {
3021
- return !(null == t || !t._isBuffer);
3022
- }, a.compare = function (t, e) {
3023
- if (!a.isBuffer(t) || !a.isBuffer(e)) throw new TypeError("Arguments must be Buffers");
3024
- if (t === e) return 0;
3025
- for (var n = t.length, r = e.length, i = 0, o = Math.min(n, r); i < o; ++i) if (t[i] !== e[i]) {
3026
- n = t[i], r = e[i];
3027
- break;
3028
- }
3029
- return n < r ? -1 : r < n ? 1 : 0;
3030
- }, a.isEncoding = function (t) {
3031
- switch (String(t).toLowerCase()) {
3032
- case "hex":
3033
- case "utf8":
3034
- case "utf-8":
3035
- case "ascii":
3036
- case "latin1":
3037
- case "binary":
3038
- case "base64":
3039
- case "ucs2":
3040
- case "ucs-2":
3041
- case "utf16le":
3042
- case "utf-16le":
3043
- return !0;
3044
- default:
3045
- return !1;
3046
- }
3047
- }, a.concat = function (t, e) {
3048
- if (!o(t)) throw new TypeError('"list" argument must be an Array of Buffers');
3049
- if (0 === t.length) return a.alloc(0);
3050
- var n;
3051
- if (void 0 === e) for (e = 0, n = 0; n < t.length; ++n) e += t[n].length;
3052
- var r = a.allocUnsafe(e),
3053
- i = 0;
3054
- for (n = 0; n < t.length; ++n) {
3055
- var u = t[n];
3056
- if (!a.isBuffer(u)) throw new TypeError('"list" argument must be an Array of Buffers');
3057
- u.copy(r, i), i += u.length;
3058
- }
3059
- return r;
3060
- }, a.byteLength = d, a.prototype._isBuffer = !0, a.prototype.swap16 = function () {
3061
- var t = this.length;
3062
- if (t % 2 != 0) throw new RangeError("Buffer size must be a multiple of 16-bits");
3063
- for (var e = 0; e < t; e += 2) g(this, e, e + 1);
3064
- return this;
3065
- }, a.prototype.swap32 = function () {
3066
- var t = this.length;
3067
- if (t % 4 != 0) throw new RangeError("Buffer size must be a multiple of 32-bits");
3068
- for (var e = 0; e < t; e += 4) g(this, e, e + 3), g(this, e + 1, e + 2);
3069
- return this;
3070
- }, a.prototype.swap64 = function () {
3071
- var t = this.length;
3072
- if (t % 8 != 0) throw new RangeError("Buffer size must be a multiple of 64-bits");
3073
- for (var e = 0; e < t; e += 8) g(this, e, e + 7), g(this, e + 1, e + 6), g(this, e + 2, e + 5), g(this, e + 3, e + 4);
3074
- return this;
3075
- }, a.prototype.toString = function () {
3076
- var t = 0 | this.length;
3077
- return 0 === t ? "" : 0 === arguments.length ? T(this, 0, t) : function (t, e, n) {
3078
- var r = !1;
3079
- if ((void 0 === e || e < 0) && (e = 0), e > this.length) return "";
3080
- if ((void 0 === n || n > this.length) && (n = this.length), n <= 0) return "";
3081
- if ((n >>>= 0) <= (e >>>= 0)) return "";
3082
- for (t || (t = "utf8");;) switch (t) {
3083
- case "hex":
3084
- return k(this, e, n);
3085
- case "utf8":
3086
- case "utf-8":
3087
- return T(this, e, n);
3088
- case "ascii":
3089
- return S(this, e, n);
3090
- case "latin1":
3091
- case "binary":
3092
- return R(this, e, n);
3093
- case "base64":
3094
- return x(this, e, n);
3095
- case "ucs2":
3096
- case "ucs-2":
3097
- case "utf16le":
3098
- case "utf-16le":
3099
- return P(this, e, n);
3100
- default:
3101
- if (r) throw new TypeError("Unknown encoding: " + t);
3102
- t = (t + "").toLowerCase(), r = !0;
3103
- }
3104
- }.apply(this, arguments);
3105
- }, a.prototype.equals = function (t) {
3106
- if (!a.isBuffer(t)) throw new TypeError("Argument must be a Buffer");
3107
- return this === t || 0 === a.compare(this, t);
3108
- }, a.prototype.inspect = function () {
3109
- var t = "",
3110
- n = e.INSPECT_MAX_BYTES;
3111
- return this.length > 0 && (t = this.toString("hex", 0, n).match(/.{2}/g).join(" "), this.length > n && (t += " ... ")), "<Buffer " + t + ">";
3112
- }, a.prototype.compare = function (t, e, n, r, i) {
3113
- if (!a.isBuffer(t)) throw new TypeError("Argument must be a Buffer");
3114
- if (void 0 === e && (e = 0), void 0 === n && (n = t ? t.length : 0), void 0 === r && (r = 0), void 0 === i && (i = this.length), e < 0 || n > t.length || r < 0 || i > this.length) throw new RangeError("out of range index");
3115
- if (r >= i && e >= n) return 0;
3116
- if (r >= i) return -1;
3117
- if (e >= n) return 1;
3118
- if (e >>>= 0, n >>>= 0, r >>>= 0, i >>>= 0, this === t) return 0;
3119
- for (var o = i - r, u = n - e, s = Math.min(o, u), c = this.slice(r, i), f = t.slice(e, n), l = 0; l < s; ++l) if (c[l] !== f[l]) {
3120
- o = c[l], u = f[l];
3121
- break;
3122
- }
3123
- return o < u ? -1 : u < o ? 1 : 0;
3124
- }, a.prototype.includes = function (t, e, n) {
3125
- return -1 !== this.indexOf(t, e, n);
3126
- }, a.prototype.indexOf = function (t, e, n) {
3127
- return y(this, t, e, n, !0);
3128
- }, a.prototype.lastIndexOf = function (t, e, n) {
3129
- return y(this, t, e, n, !1);
3130
- }, a.prototype.write = function (t, e, n, r) {
3131
- if (void 0 === e) r = "utf8", n = this.length, e = 0;else if (void 0 === n && "string" == typeof e) r = e, n = this.length, e = 0;else {
3132
- if (!isFinite(e)) throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");
3133
- e |= 0, isFinite(n) ? (n |= 0, void 0 === r && (r = "utf8")) : (r = n, n = void 0);
3134
- }
3135
- var i = this.length - e;
3136
- if ((void 0 === n || n > i) && (n = i), t.length > 0 && (n < 0 || e < 0) || e > this.length) throw new RangeError("Attempt to write outside buffer bounds");
3137
- r || (r = "utf8");
3138
- for (var o = !1;;) switch (r) {
3139
- case "hex":
3140
- return m(this, t, e, n);
3141
- case "utf8":
3142
- case "utf-8":
3143
- return b(this, t, e, n);
3144
- case "ascii":
3145
- return w(this, t, e, n);
3146
- case "latin1":
3147
- case "binary":
3148
- return E(this, t, e, n);
3149
- case "base64":
3150
- return O(this, t, e, n);
3151
- case "ucs2":
3152
- case "ucs-2":
3153
- case "utf16le":
3154
- case "utf-16le":
3155
- return A(this, t, e, n);
3156
- default:
3157
- if (o) throw new TypeError("Unknown encoding: " + r);
3158
- r = ("" + r).toLowerCase(), o = !0;
3159
- }
3160
- }, a.prototype.toJSON = function () {
3161
- return {
3162
- type: "Buffer",
3163
- data: Array.prototype.slice.call(this._arr || this, 0)
3164
- };
3165
- };
3166
- var _ = 4096;
3167
- function S(t, e, n) {
3168
- var r = "";
3169
- n = Math.min(t.length, n);
3170
- for (var i = e; i < n; ++i) r += String.fromCharCode(127 & t[i]);
3171
- return r;
3172
- }
3173
- function R(t, e, n) {
3174
- var r = "";
3175
- n = Math.min(t.length, n);
3176
- for (var i = e; i < n; ++i) r += String.fromCharCode(t[i]);
3177
- return r;
3178
- }
3179
- function k(t, e, n) {
3180
- var r = t.length;
3181
- (!e || e < 0) && (e = 0), (!n || n < 0 || n > r) && (n = r);
3182
- for (var i = "", o = e; o < n; ++o) i += Y(t[o]);
3183
- return i;
3184
- }
3185
- function P(t, e, n) {
3186
- for (var r = t.slice(e, n), i = "", o = 0; o < r.length; o += 2) i += String.fromCharCode(r[o] + 256 * r[o + 1]);
3187
- return i;
3188
- }
3189
- function L(t, e, n) {
3190
- if (t % 1 != 0 || t < 0) throw new RangeError("offset is not uint");
3191
- if (t + e > n) throw new RangeError("Trying to access beyond buffer length");
3192
- }
3193
- function B(t, e, n, r, i, o) {
3194
- if (!a.isBuffer(t)) throw new TypeError('"buffer" argument must be a Buffer instance');
3195
- if (e > i || e < o) throw new RangeError('"value" argument is out of bounds');
3196
- if (n + r > t.length) throw new RangeError("Index out of range");
3197
- }
3198
- function C(t, e, n, r) {
3199
- e < 0 && (e = 65535 + e + 1);
3200
- for (var i = 0, o = Math.min(t.length - n, 2); i < o; ++i) t[n + i] = (e & 255 << 8 * (r ? i : 1 - i)) >>> 8 * (r ? i : 1 - i);
3201
- }
3202
- function j(t, e, n, r) {
3203
- e < 0 && (e = 4294967295 + e + 1);
3204
- for (var i = 0, o = Math.min(t.length - n, 4); i < o; ++i) t[n + i] = e >>> 8 * (r ? i : 3 - i) & 255;
3205
- }
3206
- function M(t, e, n, r, i, o) {
3207
- if (n + r > t.length) throw new RangeError("Index out of range");
3208
- if (n < 0) throw new RangeError("Index out of range");
3209
- }
3210
- function U(t, e, n, r, o) {
3211
- return o || M(t, 0, n, 4), i.write(t, e, n, r, 23, 4), n + 4;
3212
- }
3213
- function D(t, e, n, r, o) {
3214
- return o || M(t, 0, n, 8), i.write(t, e, n, r, 52, 8), n + 8;
3215
- }
3216
- a.prototype.slice = function (t, e) {
3217
- var n,
3218
- r = this.length;
3219
- if (t = ~~t, e = void 0 === e ? r : ~~e, t < 0 ? (t += r) < 0 && (t = 0) : t > r && (t = r), e < 0 ? (e += r) < 0 && (e = 0) : e > r && (e = r), e < t && (e = t), a.TYPED_ARRAY_SUPPORT) (n = this.subarray(t, e)).__proto__ = a.prototype;else {
3220
- var i = e - t;
3221
- n = new a(i, void 0);
3222
- for (var o = 0; o < i; ++o) n[o] = this[o + t];
3223
- }
3224
- return n;
3225
- }, a.prototype.readUIntLE = function (t, e, n) {
3226
- t |= 0, e |= 0, n || L(t, e, this.length);
3227
- for (var r = this[t], i = 1, o = 0; ++o < e && (i *= 256);) r += this[t + o] * i;
3228
- return r;
3229
- }, a.prototype.readUIntBE = function (t, e, n) {
3230
- t |= 0, e |= 0, n || L(t, e, this.length);
3231
- for (var r = this[t + --e], i = 1; e > 0 && (i *= 256);) r += this[t + --e] * i;
3232
- return r;
3233
- }, a.prototype.readUInt8 = function (t, e) {
3234
- return e || L(t, 1, this.length), this[t];
3235
- }, a.prototype.readUInt16LE = function (t, e) {
3236
- return e || L(t, 2, this.length), this[t] | this[t + 1] << 8;
3237
- }, a.prototype.readUInt16BE = function (t, e) {
3238
- return e || L(t, 2, this.length), this[t] << 8 | this[t + 1];
3239
- }, a.prototype.readUInt32LE = function (t, e) {
3240
- return e || L(t, 4, this.length), (this[t] | this[t + 1] << 8 | this[t + 2] << 16) + 16777216 * this[t + 3];
3241
- }, a.prototype.readUInt32BE = function (t, e) {
3242
- return e || L(t, 4, this.length), 16777216 * this[t] + (this[t + 1] << 16 | this[t + 2] << 8 | this[t + 3]);
3243
- }, a.prototype.readIntLE = function (t, e, n) {
3244
- t |= 0, e |= 0, n || L(t, e, this.length);
3245
- for (var r = this[t], i = 1, o = 0; ++o < e && (i *= 256);) r += this[t + o] * i;
3246
- return r >= (i *= 128) && (r -= Math.pow(2, 8 * e)), r;
3247
- }, a.prototype.readIntBE = function (t, e, n) {
3248
- t |= 0, e |= 0, n || L(t, e, this.length);
3249
- for (var r = e, i = 1, o = this[t + --r]; r > 0 && (i *= 256);) o += this[t + --r] * i;
3250
- return o >= (i *= 128) && (o -= Math.pow(2, 8 * e)), o;
3251
- }, a.prototype.readInt8 = function (t, e) {
3252
- return e || L(t, 1, this.length), 128 & this[t] ? -1 * (255 - this[t] + 1) : this[t];
3253
- }, a.prototype.readInt16LE = function (t, e) {
3254
- e || L(t, 2, this.length);
3255
- var n = this[t] | this[t + 1] << 8;
3256
- return 32768 & n ? 4294901760 | n : n;
3257
- }, a.prototype.readInt16BE = function (t, e) {
3258
- e || L(t, 2, this.length);
3259
- var n = this[t + 1] | this[t] << 8;
3260
- return 32768 & n ? 4294901760 | n : n;
3261
- }, a.prototype.readInt32LE = function (t, e) {
3262
- return e || L(t, 4, this.length), this[t] | this[t + 1] << 8 | this[t + 2] << 16 | this[t + 3] << 24;
3263
- }, a.prototype.readInt32BE = function (t, e) {
3264
- return e || L(t, 4, this.length), this[t] << 24 | this[t + 1] << 16 | this[t + 2] << 8 | this[t + 3];
3265
- }, a.prototype.readFloatLE = function (t, e) {
3266
- return e || L(t, 4, this.length), i.read(this, t, !0, 23, 4);
3267
- }, a.prototype.readFloatBE = function (t, e) {
3268
- return e || L(t, 4, this.length), i.read(this, t, !1, 23, 4);
3269
- }, a.prototype.readDoubleLE = function (t, e) {
3270
- return e || L(t, 8, this.length), i.read(this, t, !0, 52, 8);
3271
- }, a.prototype.readDoubleBE = function (t, e) {
3272
- return e || L(t, 8, this.length), i.read(this, t, !1, 52, 8);
3273
- }, a.prototype.writeUIntLE = function (t, e, n, r) {
3274
- (t = +t, e |= 0, n |= 0, r) || B(this, t, e, n, Math.pow(2, 8 * n) - 1, 0);
3275
- var i = 1,
3276
- o = 0;
3277
- for (this[e] = 255 & t; ++o < n && (i *= 256);) this[e + o] = t / i & 255;
3278
- return e + n;
3279
- }, a.prototype.writeUIntBE = function (t, e, n, r) {
3280
- (t = +t, e |= 0, n |= 0, r) || B(this, t, e, n, Math.pow(2, 8 * n) - 1, 0);
3281
- var i = n - 1,
3282
- o = 1;
3283
- for (this[e + i] = 255 & t; --i >= 0 && (o *= 256);) this[e + i] = t / o & 255;
3284
- return e + n;
3285
- }, a.prototype.writeUInt8 = function (t, e, n) {
3286
- return t = +t, e |= 0, n || B(this, t, e, 1, 255, 0), a.TYPED_ARRAY_SUPPORT || (t = Math.floor(t)), this[e] = 255 & t, e + 1;
3287
- }, a.prototype.writeUInt16LE = function (t, e, n) {
3288
- return t = +t, e |= 0, n || B(this, t, e, 2, 65535, 0), a.TYPED_ARRAY_SUPPORT ? (this[e] = 255 & t, this[e + 1] = t >>> 8) : C(this, t, e, !0), e + 2;
3289
- }, a.prototype.writeUInt16BE = function (t, e, n) {
3290
- return t = +t, e |= 0, n || B(this, t, e, 2, 65535, 0), a.TYPED_ARRAY_SUPPORT ? (this[e] = t >>> 8, this[e + 1] = 255 & t) : C(this, t, e, !1), e + 2;
3291
- }, a.prototype.writeUInt32LE = function (t, e, n) {
3292
- return t = +t, e |= 0, n || B(this, t, e, 4, 4294967295, 0), a.TYPED_ARRAY_SUPPORT ? (this[e + 3] = t >>> 24, this[e + 2] = t >>> 16, this[e + 1] = t >>> 8, this[e] = 255 & t) : j(this, t, e, !0), e + 4;
3293
- }, a.prototype.writeUInt32BE = function (t, e, n) {
3294
- return t = +t, e |= 0, n || B(this, t, e, 4, 4294967295, 0), a.TYPED_ARRAY_SUPPORT ? (this[e] = t >>> 24, this[e + 1] = t >>> 16, this[e + 2] = t >>> 8, this[e + 3] = 255 & t) : j(this, t, e, !1), e + 4;
3295
- }, a.prototype.writeIntLE = function (t, e, n, r) {
3296
- if (t = +t, e |= 0, !r) {
3297
- var i = Math.pow(2, 8 * n - 1);
3298
- B(this, t, e, n, i - 1, -i);
3299
- }
3300
- var o = 0,
3301
- u = 1,
3302
- s = 0;
3303
- for (this[e] = 255 & t; ++o < n && (u *= 256);) t < 0 && 0 === s && 0 !== this[e + o - 1] && (s = 1), this[e + o] = (t / u >> 0) - s & 255;
3304
- return e + n;
3305
- }, a.prototype.writeIntBE = function (t, e, n, r) {
3306
- if (t = +t, e |= 0, !r) {
3307
- var i = Math.pow(2, 8 * n - 1);
3308
- B(this, t, e, n, i - 1, -i);
3309
- }
3310
- var o = n - 1,
3311
- u = 1,
3312
- s = 0;
3313
- for (this[e + o] = 255 & t; --o >= 0 && (u *= 256);) t < 0 && 0 === s && 0 !== this[e + o + 1] && (s = 1), this[e + o] = (t / u >> 0) - s & 255;
3314
- return e + n;
3315
- }, a.prototype.writeInt8 = function (t, e, n) {
3316
- return t = +t, e |= 0, n || B(this, t, e, 1, 127, -128), a.TYPED_ARRAY_SUPPORT || (t = Math.floor(t)), t < 0 && (t = 255 + t + 1), this[e] = 255 & t, e + 1;
3317
- }, a.prototype.writeInt16LE = function (t, e, n) {
3318
- return t = +t, e |= 0, n || B(this, t, e, 2, 32767, -32768), a.TYPED_ARRAY_SUPPORT ? (this[e] = 255 & t, this[e + 1] = t >>> 8) : C(this, t, e, !0), e + 2;
3319
- }, a.prototype.writeInt16BE = function (t, e, n) {
3320
- return t = +t, e |= 0, n || B(this, t, e, 2, 32767, -32768), a.TYPED_ARRAY_SUPPORT ? (this[e] = t >>> 8, this[e + 1] = 255 & t) : C(this, t, e, !1), e + 2;
3321
- }, a.prototype.writeInt32LE = function (t, e, n) {
3322
- return t = +t, e |= 0, n || B(this, t, e, 4, 2147483647, -2147483648), a.TYPED_ARRAY_SUPPORT ? (this[e] = 255 & t, this[e + 1] = t >>> 8, this[e + 2] = t >>> 16, this[e + 3] = t >>> 24) : j(this, t, e, !0), e + 4;
3323
- }, a.prototype.writeInt32BE = function (t, e, n) {
3324
- return t = +t, e |= 0, n || B(this, t, e, 4, 2147483647, -2147483648), t < 0 && (t = 4294967295 + t + 1), a.TYPED_ARRAY_SUPPORT ? (this[e] = t >>> 24, this[e + 1] = t >>> 16, this[e + 2] = t >>> 8, this[e + 3] = 255 & t) : j(this, t, e, !1), e + 4;
3325
- }, a.prototype.writeFloatLE = function (t, e, n) {
3326
- return U(this, t, e, !0, n);
3327
- }, a.prototype.writeFloatBE = function (t, e, n) {
3328
- return U(this, t, e, !1, n);
3329
- }, a.prototype.writeDoubleLE = function (t, e, n) {
3330
- return D(this, t, e, !0, n);
3331
- }, a.prototype.writeDoubleBE = function (t, e, n) {
3332
- return D(this, t, e, !1, n);
3333
- }, a.prototype.copy = function (t, e, n, r) {
3334
- if (n || (n = 0), r || 0 === r || (r = this.length), e >= t.length && (e = t.length), e || (e = 0), r > 0 && r < n && (r = n), r === n) return 0;
3335
- if (0 === t.length || 0 === this.length) return 0;
3336
- if (e < 0) throw new RangeError("targetStart out of bounds");
3337
- if (n < 0 || n >= this.length) throw new RangeError("sourceStart out of bounds");
3338
- if (r < 0) throw new RangeError("sourceEnd out of bounds");
3339
- r > this.length && (r = this.length), t.length - e < r - n && (r = t.length - e + n);
3340
- var i,
3341
- o = r - n;
3342
- if (this === t && n < e && e < r) for (i = o - 1; i >= 0; --i) t[i + e] = this[i + n];else if (o < 1e3 || !a.TYPED_ARRAY_SUPPORT) for (i = 0; i < o; ++i) t[i + e] = this[i + n];else Uint8Array.prototype.set.call(t, this.subarray(n, n + o), e);
3343
- return o;
3344
- }, a.prototype.fill = function (t, e, n, r) {
3345
- if ("string" == typeof t) {
3346
- if ("string" == typeof e ? (r = e, e = 0, n = this.length) : "string" == typeof n && (r = n, n = this.length), 1 === t.length) {
3347
- var i = t.charCodeAt(0);
3348
- i < 256 && (t = i);
3349
- }
3350
- if (void 0 !== r && "string" != typeof r) throw new TypeError("encoding must be a string");
3351
- if ("string" == typeof r && !a.isEncoding(r)) throw new TypeError("Unknown encoding: " + r);
3352
- } else "number" == typeof t && (t &= 255);
3353
- if (e < 0 || this.length < e || this.length < n) throw new RangeError("Out of range index");
3354
- if (n <= e) return this;
3355
- var o;
3356
- if (e >>>= 0, n = void 0 === n ? this.length : n >>> 0, t || (t = 0), "number" == typeof t) for (o = e; o < n; ++o) this[o] = t;else {
3357
- var u = a.isBuffer(t) ? t : N(new a(t, r).toString()),
3358
- s = u.length;
3359
- for (o = 0; o < n - e; ++o) this[o + e] = u[o % s];
3360
- }
3361
- return this;
3362
- };
3363
- var I = /[^+\/0-9A-Za-z-_]/g;
3364
- function Y(t) {
3365
- return t < 16 ? "0" + t.toString(16) : t.toString(16);
3366
- }
3367
- function N(t, e) {
3368
- var n;
3369
- e = e || 1 / 0;
3370
- for (var r = t.length, i = null, o = [], u = 0; u < r; ++u) {
3371
- if ((n = t.charCodeAt(u)) > 55295 && n < 57344) {
3372
- if (!i) {
3373
- if (n > 56319) {
3374
- (e -= 3) > -1 && o.push(239, 191, 189);
3375
- continue;
3376
- }
3377
- if (u + 1 === r) {
3378
- (e -= 3) > -1 && o.push(239, 191, 189);
3379
- continue;
3380
- }
3381
- i = n;
3382
- continue;
3383
- }
3384
- if (n < 56320) {
3385
- (e -= 3) > -1 && o.push(239, 191, 189), i = n;
3386
- continue;
3387
- }
3388
- n = 65536 + (i - 55296 << 10 | n - 56320);
3389
- } else i && (e -= 3) > -1 && o.push(239, 191, 189);
3390
- if (i = null, n < 128) {
3391
- if ((e -= 1) < 0) break;
3392
- o.push(n);
3393
- } else if (n < 2048) {
3394
- if ((e -= 2) < 0) break;
3395
- o.push(n >> 6 | 192, 63 & n | 128);
3396
- } else if (n < 65536) {
3397
- if ((e -= 3) < 0) break;
3398
- o.push(n >> 12 | 224, n >> 6 & 63 | 128, 63 & n | 128);
3399
- } else {
3400
- if (!(n < 1114112)) throw new Error("Invalid code point");
3401
- if ((e -= 4) < 0) break;
3402
- o.push(n >> 18 | 240, n >> 12 & 63 | 128, n >> 6 & 63 | 128, 63 & n | 128);
3403
- }
3404
- }
3405
- return o;
3406
- }
3407
- function F(t) {
3408
- return r.toByteArray(function (t) {
3409
- if ((t = function (t) {
3410
- return t.trim ? t.trim() : t.replace(/^\s+|\s+$/g, "");
3411
- }(t).replace(I, "")).length < 2) return "";
3412
- for (; t.length % 4 != 0;) t += "=";
3413
- return t;
3414
- }(t));
3415
- }
3416
- function z(t, e, n, r) {
3417
- for (var i = 0; i < r && !(i + n >= e.length || i >= t.length); ++i) e[i + n] = t[i];
3418
- return i;
3419
- }
3420
- }).call(e, n(0));
3421
- }, function (t, e, n) {
2749
+ var r,
2750
+ i = n(20),
2751
+ o = (r = i) && r.__esModule ? r : {
2752
+ default: r
2753
+ };
2754
+ t.exports = function (t, e, n) {
2755
+ e.id = e.id || (0, o.default)(), t.setAttribute("role", "combobox"), e.setAttribute("role", "listbox"), t.setAttribute("aria-controls", e.id), t.setAttribute("aria-autocomplete", "list"), t.setAttribute("aria-expanded", "false"), n.forEach(function (t) {
2756
+ t.setAttribute("role", "option"), t.id = t.id || (0, o.default)();
2757
+ });
2758
+ };
2759
+ }, function (t, e, n) {
3422
2760
 
3423
- e.byteLength = function (t) {
3424
- return 3 * t.length / 4 - c(t);
3425
- }, e.toByteArray = function (t) {
3426
- var e,
3427
- n,
3428
- r,
3429
- u,
3430
- s,
3431
- a = t.length;
3432
- u = c(t), s = new o(3 * a / 4 - u), n = u > 0 ? a - 4 : a;
3433
- var f = 0;
3434
- for (e = 0; e < n; e += 4) r = i[t.charCodeAt(e)] << 18 | i[t.charCodeAt(e + 1)] << 12 | i[t.charCodeAt(e + 2)] << 6 | i[t.charCodeAt(e + 3)], s[f++] = r >> 16 & 255, s[f++] = r >> 8 & 255, s[f++] = 255 & r;
3435
- 2 === u ? (r = i[t.charCodeAt(e)] << 2 | i[t.charCodeAt(e + 1)] >> 4, s[f++] = 255 & r) : 1 === u && (r = i[t.charCodeAt(e)] << 10 | i[t.charCodeAt(e + 1)] << 4 | i[t.charCodeAt(e + 2)] >> 2, s[f++] = r >> 8 & 255, s[f++] = 255 & r);
3436
- return s;
3437
- }, e.fromByteArray = function (t) {
3438
- for (var e, n = t.length, i = n % 3, o = "", u = [], s = 0, a = n - i; s < a; s += 16383) u.push(f(t, s, s + 16383 > a ? a : s + 16383));
3439
- 1 === i ? (e = t[n - 1], o += r[e >> 2], o += r[e << 4 & 63], o += "==") : 2 === i && (e = (t[n - 2] << 8) + t[n - 1], o += r[e >> 10], o += r[e >> 4 & 63], o += r[e << 2 & 63], o += "=");
3440
- return u.push(o), u.join("");
3441
- };
3442
- for (var r = [], i = [], o = "undefined" != typeof Uint8Array ? Uint8Array : Array, u = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", s = 0, a = u.length; s < a; ++s) r[s] = u[s], i[u.charCodeAt(s)] = s;
3443
- function c(t) {
3444
- var e = t.length;
3445
- if (e % 4 > 0) throw new Error("Invalid string. Length must be a multiple of 4");
3446
- return "=" === t[e - 2] ? 2 : "=" === t[e - 1] ? 1 : 0;
3447
- }
3448
- function f(t, e, n) {
3449
- for (var i, o, u = [], s = e; s < n; s += 3) i = (t[s] << 16 & 16711680) + (t[s + 1] << 8 & 65280) + (255 & t[s + 2]), u.push(r[(o = i) >> 18 & 63] + r[o >> 12 & 63] + r[o >> 6 & 63] + r[63 & o]);
3450
- return u.join("");
3451
- }
3452
- i["-".charCodeAt(0)] = 62, i["_".charCodeAt(0)] = 63;
3453
- }, function (t, e) {
3454
- e.read = function (t, e, n, r, i) {
3455
- var o,
3456
- u,
3457
- s = 8 * i - r - 1,
3458
- a = (1 << s) - 1,
3459
- c = a >> 1,
3460
- f = -7,
3461
- l = n ? i - 1 : 0,
3462
- h = n ? -1 : 1,
3463
- p = t[e + l];
3464
- for (l += h, o = p & (1 << -f) - 1, p >>= -f, f += s; f > 0; o = 256 * o + t[e + l], l += h, f -= 8);
3465
- for (u = o & (1 << -f) - 1, o >>= -f, f += r; f > 0; u = 256 * u + t[e + l], l += h, f -= 8);
3466
- if (0 === o) o = 1 - c;else {
3467
- if (o === a) return u ? NaN : 1 / 0 * (p ? -1 : 1);
3468
- u += Math.pow(2, r), o -= c;
3469
- }
3470
- return (p ? -1 : 1) * u * Math.pow(2, o - r);
3471
- }, e.write = function (t, e, n, r, i, o) {
3472
- var u,
3473
- s,
3474
- a,
3475
- c = 8 * o - i - 1,
3476
- f = (1 << c) - 1,
3477
- l = f >> 1,
3478
- h = 23 === i ? Math.pow(2, -24) - Math.pow(2, -77) : 0,
3479
- p = r ? 0 : o - 1,
3480
- d = r ? 1 : -1,
3481
- g = e < 0 || 0 === e && 1 / e < 0 ? 1 : 0;
3482
- for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (s = isNaN(e) ? 1 : 0, u = f) : (u = Math.floor(Math.log(e) / Math.LN2), e * (a = Math.pow(2, -u)) < 1 && (u--, a *= 2), (e += u + l >= 1 ? h / a : h * Math.pow(2, 1 - l)) * a >= 2 && (u++, a /= 2), u + l >= f ? (s = 0, u = f) : u + l >= 1 ? (s = (e * a - 1) * Math.pow(2, i), u += l) : (s = e * Math.pow(2, l - 1) * Math.pow(2, i), u = 0)); i >= 8; t[n + p] = 255 & s, p += d, s /= 256, i -= 8);
3483
- for (u = u << i | s, c += i; c > 0; t[n + p] = 255 & u, p += d, u /= 256, c -= 8);
3484
- t[n + p - d] |= 128 * g;
3485
- };
3486
- }, function (t, e) {
3487
- var n = {}.toString;
3488
- t.exports = Array.isArray || function (t) {
3489
- return "[object Array]" == n.call(t);
3490
- };
3491
- }, function (t, e, n) {
2761
+ var r,
2762
+ i = n(21),
2763
+ o = (r = i) && r.__esModule ? r : {
2764
+ default: r
2765
+ };
2766
+ t.exports = function t(e) {
2767
+ e = e || 8;
2768
+ var n = (0, o.default)(e);
2769
+ if (document.getElementById(n)) return t(e);
2770
+ return n;
2771
+ };
2772
+ }, function (t, e, n) {
2773
+ (function (r) {
2774
+ var i = n(26);
2775
+ function o(t) {
2776
+ i("string" == typeof t, "the list of characters must be a string!");
2777
+ var e = r.byteLength(t);
2778
+ return function (n) {
2779
+ i("number" == typeof (n = n || 10) && n >= 0, "the length of the random string must be a number!");
2780
+ for (var r = "", o = 0; o < n; o++) r += t[Math.floor(e * Math.random())];
2781
+ return r;
2782
+ };
2783
+ }
2784
+ (e = t.exports = o("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")).base62 = e, e.base36 = o("abcdefghijklmnopqrstuvwxyz0123456789"), e.base10 = o("0123456789"), e.create = o;
2785
+ }).call(e, n(22).Buffer);
2786
+ }, function (t, e, n) {
3492
2787
 
3493
- (function (e) {
3494
- function r(t, e) {
3495
- if (t === e) return 0;
3496
- for (var n = t.length, r = e.length, i = 0, o = Math.min(n, r); i < o; ++i) if (t[i] !== e[i]) {
3497
- n = t[i], r = e[i];
3498
- break;
3499
- }
3500
- return n < r ? -1 : r < n ? 1 : 0;
3501
- }
3502
- function i(t) {
3503
- return e.Buffer && "function" == typeof e.Buffer.isBuffer ? e.Buffer.isBuffer(t) : !(null == t || !t._isBuffer);
3504
- }
3505
- var o = n(27),
3506
- u = Object.prototype.hasOwnProperty,
3507
- s = Array.prototype.slice,
3508
- a = "foo" === function () {}.name;
3509
- function c(t) {
3510
- return Object.prototype.toString.call(t);
3511
- }
3512
- function f(t) {
3513
- return !i(t) && "function" == typeof e.ArrayBuffer && ("function" == typeof ArrayBuffer.isView ? ArrayBuffer.isView(t) : !!t && (t instanceof DataView || !!(t.buffer && t.buffer instanceof ArrayBuffer)));
3514
- }
3515
- var l = t.exports = v,
3516
- h = /\s*function\s+([^\(\s]*)\s*/;
3517
- function p(t) {
3518
- if (o.isFunction(t)) {
3519
- if (a) return t.name;
3520
- var e = t.toString().match(h);
3521
- return e && e[1];
3522
- }
3523
- }
3524
- function d(t, e) {
3525
- return "string" == typeof t ? t.length < e ? t : t.slice(0, e) : t;
3526
- }
3527
- function g(t) {
3528
- if (a || !o.isFunction(t)) return o.inspect(t);
3529
- var e = p(t);
3530
- return "[Function" + (e ? ": " + e : "") + "]";
3531
- }
3532
- function y(t, e, n, r, i) {
3533
- throw new l.AssertionError({
3534
- message: n,
3535
- actual: t,
3536
- expected: e,
3537
- operator: r,
3538
- stackStartFunction: i
3539
- });
3540
- }
3541
- function v(t, e) {
3542
- t || y(t, !0, e, "==", l.ok);
3543
- }
3544
- function m(t, e, n, u) {
3545
- if (t === e) return !0;
3546
- if (i(t) && i(e)) return 0 === r(t, e);
3547
- if (o.isDate(t) && o.isDate(e)) return t.getTime() === e.getTime();
3548
- if (o.isRegExp(t) && o.isRegExp(e)) return t.source === e.source && t.global === e.global && t.multiline === e.multiline && t.lastIndex === e.lastIndex && t.ignoreCase === e.ignoreCase;
3549
- if (null !== t && "object" == typeof t || null !== e && "object" == typeof e) {
3550
- if (f(t) && f(e) && c(t) === c(e) && !(t instanceof Float32Array || t instanceof Float64Array)) return 0 === r(new Uint8Array(t.buffer), new Uint8Array(e.buffer));
3551
- if (i(t) !== i(e)) return !1;
3552
- var a = (u = u || {
3553
- actual: [],
3554
- expected: []
3555
- }).actual.indexOf(t);
3556
- return -1 !== a && a === u.expected.indexOf(e) || (u.actual.push(t), u.expected.push(e), function (t, e, n, r) {
3557
- if (null === t || void 0 === t || null === e || void 0 === e) return !1;
3558
- if (o.isPrimitive(t) || o.isPrimitive(e)) return t === e;
3559
- if (n && Object.getPrototypeOf(t) !== Object.getPrototypeOf(e)) return !1;
3560
- var i = b(t),
3561
- u = b(e);
3562
- if (i && !u || !i && u) return !1;
3563
- if (i) return t = s.call(t), e = s.call(e), m(t, e, n);
3564
- var a,
3565
- c,
3566
- f = O(t),
3567
- l = O(e);
3568
- if (f.length !== l.length) return !1;
3569
- for (f.sort(), l.sort(), c = f.length - 1; c >= 0; c--) if (f[c] !== l[c]) return !1;
3570
- for (c = f.length - 1; c >= 0; c--) if (a = f[c], !m(t[a], e[a], n, r)) return !1;
3571
- return !0;
3572
- }(t, e, n, u));
3573
- }
3574
- return n ? t === e : t == e;
3575
- }
3576
- function b(t) {
3577
- return "[object Arguments]" == Object.prototype.toString.call(t);
3578
- }
3579
- function w(t, e) {
3580
- if (!t || !e) return !1;
3581
- if ("[object RegExp]" == Object.prototype.toString.call(e)) return e.test(t);
3582
- try {
3583
- if (t instanceof e) return !0;
3584
- } catch (t) {}
3585
- return !Error.isPrototypeOf(e) && !0 === e.call({}, t);
3586
- }
3587
- function E(t, e, n, r) {
3588
- var i;
3589
- if ("function" != typeof e) throw new TypeError('"block" argument must be a function');
3590
- "string" == typeof n && (r = n, n = null), i = function (t) {
3591
- var e;
3592
- try {
3593
- t();
3594
- } catch (t) {
3595
- e = t;
3596
- }
3597
- return e;
3598
- }(e), r = (n && n.name ? " (" + n.name + ")." : ".") + (r ? " " + r : "."), t && !i && y(i, n, "Missing expected exception" + r);
3599
- var u = "string" == typeof r,
3600
- s = !t && o.isError(i),
3601
- a = !t && i && !n;
3602
- if ((s && u && w(i, n) || a) && y(i, n, "Got unwanted exception" + r), t && i && n && !w(i, n) || !t && i) throw i;
3603
- }
3604
- l.AssertionError = function (t) {
3605
- var e;
3606
- this.name = "AssertionError", this.actual = t.actual, this.expected = t.expected, this.operator = t.operator, t.message ? (this.message = t.message, this.generatedMessage = !1) : (this.message = d(g((e = this).actual), 128) + " " + e.operator + " " + d(g(e.expected), 128), this.generatedMessage = !0);
3607
- var n = t.stackStartFunction || y;
3608
- if (Error.captureStackTrace) Error.captureStackTrace(this, n);else {
3609
- var r = new Error();
3610
- if (r.stack) {
3611
- var i = r.stack,
3612
- o = p(n),
3613
- u = i.indexOf("\n" + o);
3614
- if (u >= 0) {
3615
- var s = i.indexOf("\n", u + 1);
3616
- i = i.substring(s + 1);
3617
- }
3618
- this.stack = i;
3619
- }
3620
- }
3621
- }, o.inherits(l.AssertionError, Error), l.fail = y, l.ok = v, l.equal = function (t, e, n) {
3622
- t != e && y(t, e, n, "==", l.equal);
3623
- }, l.notEqual = function (t, e, n) {
3624
- t == e && y(t, e, n, "!=", l.notEqual);
3625
- }, l.deepEqual = function (t, e, n) {
3626
- m(t, e, !1) || y(t, e, n, "deepEqual", l.deepEqual);
3627
- }, l.deepStrictEqual = function (t, e, n) {
3628
- m(t, e, !0) || y(t, e, n, "deepStrictEqual", l.deepStrictEqual);
3629
- }, l.notDeepEqual = function (t, e, n) {
3630
- m(t, e, !1) && y(t, e, n, "notDeepEqual", l.notDeepEqual);
3631
- }, l.notDeepStrictEqual = function t(e, n, r) {
3632
- m(e, n, !0) && y(e, n, r, "notDeepStrictEqual", t);
3633
- }, l.strictEqual = function (t, e, n) {
3634
- t !== e && y(t, e, n, "===", l.strictEqual);
3635
- }, l.notStrictEqual = function (t, e, n) {
3636
- t === e && y(t, e, n, "!==", l.notStrictEqual);
3637
- }, l.throws = function (t, e, n) {
3638
- E(!0, t, e, n);
3639
- }, l.doesNotThrow = function (t, e, n) {
3640
- E(!1, t, e, n);
3641
- }, l.ifError = function (t) {
3642
- if (t) throw t;
3643
- };
3644
- var O = Object.keys || function (t) {
3645
- var e = [];
3646
- for (var n in t) u.call(t, n) && e.push(n);
3647
- return e;
3648
- };
3649
- }).call(e, n(0));
3650
- }, function (t, e, n) {
3651
- (function (t, r) {
3652
- var i = /%[sdj%]/g;
3653
- e.format = function (t) {
3654
- if (!v(t)) {
3655
- for (var e = [], n = 0; n < arguments.length; n++) e.push(s(arguments[n]));
3656
- return e.join(" ");
3657
- }
3658
- n = 1;
3659
- for (var r = arguments, o = r.length, u = String(t).replace(i, function (t) {
3660
- if ("%%" === t) return "%";
3661
- if (n >= o) return t;
3662
- switch (t) {
3663
- case "%s":
3664
- return String(r[n++]);
3665
- case "%d":
3666
- return Number(r[n++]);
3667
- case "%j":
3668
- try {
3669
- return JSON.stringify(r[n++]);
3670
- } catch (t) {
3671
- return "[Circular]";
3672
- }
3673
- default:
3674
- return t;
3675
- }
3676
- }), a = r[n]; n < o; a = r[++n]) g(a) || !w(a) ? u += " " + a : u += " " + s(a);
3677
- return u;
3678
- }, e.deprecate = function (n, i) {
3679
- if (m(t.process)) return function () {
3680
- return e.deprecate(n, i).apply(this, arguments);
3681
- };
3682
- if (!0 === r.noDeprecation) return n;
3683
- var o = !1;
3684
- return function () {
3685
- if (!o) {
3686
- if (r.throwDeprecation) throw new Error(i);
3687
- r.traceDeprecation ? console.trace(i) : console.error(i), o = !0;
3688
- }
3689
- return n.apply(this, arguments);
3690
- };
3691
- };
3692
- var o,
3693
- u = {};
3694
- function s(t, n) {
3695
- var r = {
3696
- seen: [],
3697
- stylize: c
3698
- };
3699
- return arguments.length >= 3 && (r.depth = arguments[2]), arguments.length >= 4 && (r.colors = arguments[3]), d(n) ? r.showHidden = n : n && e._extend(r, n), m(r.showHidden) && (r.showHidden = !1), m(r.depth) && (r.depth = 2), m(r.colors) && (r.colors = !1), m(r.customInspect) && (r.customInspect = !0), r.colors && (r.stylize = a), f(r, t, r.depth);
3700
- }
3701
- function a(t, e) {
3702
- var n = s.styles[e];
3703
- return n ? "[" + s.colors[n][0] + "m" + t + "[" + s.colors[n][1] + "m" : t;
3704
- }
3705
- function c(t, e) {
3706
- return t;
3707
- }
3708
- function f(t, n, r) {
3709
- if (t.customInspect && n && A(n.inspect) && n.inspect !== e.inspect && (!n.constructor || n.constructor.prototype !== n)) {
3710
- var i = n.inspect(r, t);
3711
- return v(i) || (i = f(t, i, r)), i;
3712
- }
3713
- var o = function (t, e) {
3714
- if (m(e)) return t.stylize("undefined", "undefined");
3715
- if (v(e)) {
3716
- var n = "'" + JSON.stringify(e).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
3717
- return t.stylize(n, "string");
3718
- }
3719
- if (y(e)) return t.stylize("" + e, "number");
3720
- if (d(e)) return t.stylize("" + e, "boolean");
3721
- if (g(e)) return t.stylize("null", "null");
3722
- }(t, n);
3723
- if (o) return o;
3724
- var u = Object.keys(n),
3725
- s = function (t) {
3726
- var e = {};
3727
- return t.forEach(function (t, n) {
3728
- e[t] = !0;
3729
- }), e;
3730
- }(u);
3731
- if (t.showHidden && (u = Object.getOwnPropertyNames(n)), O(n) && (u.indexOf("message") >= 0 || u.indexOf("description") >= 0)) return l(n);
3732
- if (0 === u.length) {
3733
- if (A(n)) {
3734
- var a = n.name ? ": " + n.name : "";
3735
- return t.stylize("[Function" + a + "]", "special");
3736
- }
3737
- if (b(n)) return t.stylize(RegExp.prototype.toString.call(n), "regexp");
3738
- if (E(n)) return t.stylize(Date.prototype.toString.call(n), "date");
3739
- if (O(n)) return l(n);
3740
- }
3741
- var c,
3742
- w = "",
3743
- x = !1,
3744
- T = ["{", "}"];
3745
- (p(n) && (x = !0, T = ["[", "]"]), A(n)) && (w = " [Function" + (n.name ? ": " + n.name : "") + "]");
3746
- return b(n) && (w = " " + RegExp.prototype.toString.call(n)), E(n) && (w = " " + Date.prototype.toUTCString.call(n)), O(n) && (w = " " + l(n)), 0 !== u.length || x && 0 != n.length ? r < 0 ? b(n) ? t.stylize(RegExp.prototype.toString.call(n), "regexp") : t.stylize("[Object]", "special") : (t.seen.push(n), c = x ? function (t, e, n, r, i) {
3747
- for (var o = [], u = 0, s = e.length; u < s; ++u) S(e, String(u)) ? o.push(h(t, e, n, r, String(u), !0)) : o.push("");
3748
- return i.forEach(function (i) {
3749
- i.match(/^\d+$/) || o.push(h(t, e, n, r, i, !0));
3750
- }), o;
3751
- }(t, n, r, s, u) : u.map(function (e) {
3752
- return h(t, n, r, s, e, x);
3753
- }), t.seen.pop(), function (t, e, n) {
3754
- if (t.reduce(function (t, e) {
3755
- return e.indexOf("\n") >= 0 && 0, t + e.replace(/\u001b\[\d\d?m/g, "").length + 1;
3756
- }, 0) > 60) return n[0] + ("" === e ? "" : e + "\n ") + " " + t.join(",\n ") + " " + n[1];
3757
- return n[0] + e + " " + t.join(", ") + " " + n[1];
3758
- }(c, w, T)) : T[0] + w + T[1];
3759
- }
3760
- function l(t) {
3761
- return "[" + Error.prototype.toString.call(t) + "]";
3762
- }
3763
- function h(t, e, n, r, i, o) {
3764
- var u, s, a;
3765
- if ((a = Object.getOwnPropertyDescriptor(e, i) || {
3766
- value: e[i]
3767
- }).get ? s = a.set ? t.stylize("[Getter/Setter]", "special") : t.stylize("[Getter]", "special") : a.set && (s = t.stylize("[Setter]", "special")), S(r, i) || (u = "[" + i + "]"), s || (t.seen.indexOf(a.value) < 0 ? (s = g(n) ? f(t, a.value, null) : f(t, a.value, n - 1)).indexOf("\n") > -1 && (s = o ? s.split("\n").map(function (t) {
3768
- return " " + t;
3769
- }).join("\n").substr(2) : "\n" + s.split("\n").map(function (t) {
3770
- return " " + t;
3771
- }).join("\n")) : s = t.stylize("[Circular]", "special")), m(u)) {
3772
- if (o && i.match(/^\d+$/)) return s;
3773
- (u = JSON.stringify("" + i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (u = u.substr(1, u.length - 2), u = t.stylize(u, "name")) : (u = u.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), u = t.stylize(u, "string"));
3774
- }
3775
- return u + ": " + s;
3776
- }
3777
- function p(t) {
3778
- return Array.isArray(t);
3779
- }
3780
- function d(t) {
3781
- return "boolean" == typeof t;
3782
- }
3783
- function g(t) {
3784
- return null === t;
3785
- }
3786
- function y(t) {
3787
- return "number" == typeof t;
3788
- }
3789
- function v(t) {
3790
- return "string" == typeof t;
3791
- }
3792
- function m(t) {
3793
- return void 0 === t;
3794
- }
3795
- function b(t) {
3796
- return w(t) && "[object RegExp]" === x(t);
3797
- }
3798
- function w(t) {
3799
- return "object" == typeof t && null !== t;
3800
- }
3801
- function E(t) {
3802
- return w(t) && "[object Date]" === x(t);
3803
- }
3804
- function O(t) {
3805
- return w(t) && ("[object Error]" === x(t) || t instanceof Error);
3806
- }
3807
- function A(t) {
3808
- return "function" == typeof t;
3809
- }
3810
- function x(t) {
3811
- return Object.prototype.toString.call(t);
3812
- }
3813
- function T(t) {
3814
- return t < 10 ? "0" + t.toString(10) : t.toString(10);
3815
- }
3816
- e.debuglog = function (t) {
3817
- if (m(o) && (o = Object({
3818
- NODE_ENV: "production"
3819
- }).NODE_DEBUG || ""), t = t.toUpperCase(), !u[t]) if (new RegExp("\\b" + t + "\\b", "i").test(o)) {
3820
- var n = r.pid;
3821
- u[t] = function () {
3822
- var r = e.format.apply(e, arguments);
3823
- console.error("%s %d: %s", t, n, r);
3824
- };
3825
- } else u[t] = function () {};
3826
- return u[t];
3827
- }, e.inspect = s, s.colors = {
3828
- bold: [1, 22],
3829
- italic: [3, 23],
3830
- underline: [4, 24],
3831
- inverse: [7, 27],
3832
- white: [37, 39],
3833
- grey: [90, 39],
3834
- black: [30, 39],
3835
- blue: [34, 39],
3836
- cyan: [36, 39],
3837
- green: [32, 39],
3838
- magenta: [35, 39],
3839
- red: [31, 39],
3840
- yellow: [33, 39]
3841
- }, s.styles = {
3842
- special: "cyan",
3843
- number: "yellow",
3844
- boolean: "yellow",
3845
- undefined: "grey",
3846
- null: "bold",
3847
- string: "green",
3848
- date: "magenta",
3849
- regexp: "red"
3850
- }, e.isArray = p, e.isBoolean = d, e.isNull = g, e.isNullOrUndefined = function (t) {
3851
- return null == t;
3852
- }, e.isNumber = y, e.isString = v, e.isSymbol = function (t) {
3853
- return "symbol" == typeof t;
3854
- }, e.isUndefined = m, e.isRegExp = b, e.isObject = w, e.isDate = E, e.isError = O, e.isFunction = A, e.isPrimitive = function (t) {
3855
- return null === t || "boolean" == typeof t || "number" == typeof t || "string" == typeof t || "symbol" == typeof t || void 0 === t;
3856
- }, e.isBuffer = n(29);
3857
- var _ = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
3858
- function S(t, e) {
3859
- return Object.prototype.hasOwnProperty.call(t, e);
3860
- }
3861
- e.log = function () {
3862
- var t, n;
3863
- console.log("%s - %s", (t = new Date(), n = [T(t.getHours()), T(t.getMinutes()), T(t.getSeconds())].join(":"), [t.getDate(), _[t.getMonth()], n].join(" ")), e.format.apply(e, arguments));
3864
- }, e.inherits = n(30), e._extend = function (t, e) {
3865
- if (!e || !w(e)) return t;
3866
- for (var n = Object.keys(e), r = n.length; r--;) t[n[r]] = e[n[r]];
3867
- return t;
3868
- };
3869
- }).call(e, n(0), n(28));
3870
- }, function (t, e) {
3871
- var n,
3872
- r,
3873
- i = t.exports = {};
3874
- function o() {
3875
- throw new Error("setTimeout has not been defined");
3876
- }
3877
- function u() {
3878
- throw new Error("clearTimeout has not been defined");
3879
- }
3880
- function s(t) {
3881
- if (n === setTimeout) return setTimeout(t, 0);
3882
- if ((n === o || !n) && setTimeout) return n = setTimeout, setTimeout(t, 0);
3883
- try {
3884
- return n(t, 0);
3885
- } catch (e) {
3886
- try {
3887
- return n.call(null, t, 0);
3888
- } catch (e) {
3889
- return n.call(this, t, 0);
3890
- }
3891
- }
3892
- }
3893
- !function () {
3894
- try {
3895
- n = "function" == typeof setTimeout ? setTimeout : o;
3896
- } catch (t) {
3897
- n = o;
3898
- }
3899
- try {
3900
- r = "function" == typeof clearTimeout ? clearTimeout : u;
3901
- } catch (t) {
3902
- r = u;
3903
- }
3904
- }();
3905
- var a,
3906
- c = [],
3907
- f = !1,
3908
- l = -1;
3909
- function h() {
3910
- f && a && (f = !1, a.length ? c = a.concat(c) : l = -1, c.length && p());
3911
- }
3912
- function p() {
3913
- if (!f) {
3914
- var t = s(h);
3915
- f = !0;
3916
- for (var e = c.length; e;) {
3917
- for (a = c, c = []; ++l < e;) a && a[l].run();
3918
- l = -1, e = c.length;
3919
- }
3920
- a = null, f = !1, function (t) {
3921
- if (r === clearTimeout) return clearTimeout(t);
3922
- if ((r === u || !r) && clearTimeout) return r = clearTimeout, clearTimeout(t);
3923
- try {
3924
- r(t);
3925
- } catch (e) {
3926
- try {
3927
- return r.call(null, t);
3928
- } catch (e) {
3929
- return r.call(this, t);
3930
- }
3931
- }
3932
- }(t);
3933
- }
3934
- }
3935
- function d(t, e) {
3936
- this.fun = t, this.array = e;
3937
- }
3938
- function g() {}
3939
- i.nextTick = function (t) {
3940
- var e = new Array(arguments.length - 1);
3941
- if (arguments.length > 1) for (var n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
3942
- c.push(new d(t, e)), 1 !== c.length || f || s(p);
3943
- }, d.prototype.run = function () {
3944
- this.fun.apply(null, this.array);
3945
- }, i.title = "browser", i.browser = !0, i.env = {}, i.argv = [], i.version = "", i.versions = {}, i.on = g, i.addListener = g, i.once = g, i.off = g, i.removeListener = g, i.removeAllListeners = g, i.emit = g, i.prependListener = g, i.prependOnceListener = g, i.listeners = function (t) {
3946
- return [];
3947
- }, i.binding = function (t) {
3948
- throw new Error("process.binding is not supported");
3949
- }, i.cwd = function () {
3950
- return "/";
3951
- }, i.chdir = function (t) {
3952
- throw new Error("process.chdir is not supported");
3953
- }, i.umask = function () {
3954
- return 0;
3955
- };
3956
- }, function (t, e) {
3957
- t.exports = function (t) {
3958
- return t && "object" == typeof t && "function" == typeof t.copy && "function" == typeof t.fill && "function" == typeof t.readUInt8;
3959
- };
3960
- }, function (t, e) {
3961
- "function" == typeof Object.create ? t.exports = function (t, e) {
3962
- t.super_ = e, t.prototype = Object.create(e.prototype, {
3963
- constructor: {
3964
- value: t,
3965
- enumerable: !1,
3966
- writable: !0,
3967
- configurable: !0
3968
- }
3969
- });
3970
- } : t.exports = function (t, e) {
3971
- t.super_ = e;
3972
- var n = function () {};
3973
- n.prototype = e.prototype, t.prototype = new n(), t.prototype.constructor = t;
3974
- };
3975
- }, function (t, e, n) {
2788
+ (function (t) {
2789
+ var r = n(23),
2790
+ i = n(24),
2791
+ o = n(25);
2792
+ function u() {
2793
+ return a.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823;
2794
+ }
2795
+ function s(t, e) {
2796
+ if (u() < e) throw new RangeError("Invalid typed array length");
2797
+ return a.TYPED_ARRAY_SUPPORT ? (t = new Uint8Array(e)).__proto__ = a.prototype : (null === t && (t = new a(e)), t.length = e), t;
2798
+ }
2799
+ function a(t, e, n) {
2800
+ if (!(a.TYPED_ARRAY_SUPPORT || this instanceof a)) return new a(t, e, n);
2801
+ if ("number" == typeof t) {
2802
+ if ("string" == typeof e) throw new Error("If encoding is specified then the first argument must be a string");
2803
+ return l(this, t);
2804
+ }
2805
+ return c(this, t, e, n);
2806
+ }
2807
+ function c(t, e, n, r) {
2808
+ if ("number" == typeof e) throw new TypeError('"value" argument must not be a number');
2809
+ return "undefined" != typeof ArrayBuffer && e instanceof ArrayBuffer ? function (t, e, n, r) {
2810
+ if (e.byteLength, n < 0 || e.byteLength < n) throw new RangeError("'offset' is out of bounds");
2811
+ if (e.byteLength < n + (r || 0)) throw new RangeError("'length' is out of bounds");
2812
+ e = void 0 === n && void 0 === r ? new Uint8Array(e) : void 0 === r ? new Uint8Array(e, n) : new Uint8Array(e, n, r);
2813
+ a.TYPED_ARRAY_SUPPORT ? (t = e).__proto__ = a.prototype : t = h(t, e);
2814
+ return t;
2815
+ }(t, e, n, r) : "string" == typeof e ? function (t, e, n) {
2816
+ "string" == typeof n && "" !== n || (n = "utf8");
2817
+ if (!a.isEncoding(n)) throw new TypeError('"encoding" must be a valid string encoding');
2818
+ var r = 0 | d(e, n),
2819
+ i = (t = s(t, r)).write(e, n);
2820
+ i !== r && (t = t.slice(0, i));
2821
+ return t;
2822
+ }(t, e, n) : function (t, e) {
2823
+ if (a.isBuffer(e)) {
2824
+ var n = 0 | p(e.length);
2825
+ return 0 === (t = s(t, n)).length ? t : (e.copy(t, 0, 0, n), t);
2826
+ }
2827
+ if (e) {
2828
+ if ("undefined" != typeof ArrayBuffer && e.buffer instanceof ArrayBuffer || "length" in e) return "number" != typeof e.length || (r = e.length) != r ? s(t, 0) : h(t, e);
2829
+ if ("Buffer" === e.type && o(e.data)) return h(t, e.data);
2830
+ }
2831
+ var r;
2832
+ throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.");
2833
+ }(t, e);
2834
+ }
2835
+ function f(t) {
2836
+ if ("number" != typeof t) throw new TypeError('"size" argument must be a number');
2837
+ if (t < 0) throw new RangeError('"size" argument must not be negative');
2838
+ }
2839
+ function l(t, e) {
2840
+ if (f(e), t = s(t, e < 0 ? 0 : 0 | p(e)), !a.TYPED_ARRAY_SUPPORT) for (var n = 0; n < e; ++n) t[n] = 0;
2841
+ return t;
2842
+ }
2843
+ function h(t, e) {
2844
+ var n = e.length < 0 ? 0 : 0 | p(e.length);
2845
+ t = s(t, n);
2846
+ for (var r = 0; r < n; r += 1) t[r] = 255 & e[r];
2847
+ return t;
2848
+ }
2849
+ function p(t) {
2850
+ if (t >= u()) throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + u().toString(16) + " bytes");
2851
+ return 0 | t;
2852
+ }
2853
+ function d(t, e) {
2854
+ if (a.isBuffer(t)) return t.length;
2855
+ if ("undefined" != typeof ArrayBuffer && "function" == typeof ArrayBuffer.isView && (ArrayBuffer.isView(t) || t instanceof ArrayBuffer)) return t.byteLength;
2856
+ "string" != typeof t && (t = "" + t);
2857
+ var n = t.length;
2858
+ if (0 === n) return 0;
2859
+ for (var r = !1;;) switch (e) {
2860
+ case "ascii":
2861
+ case "latin1":
2862
+ case "binary":
2863
+ return n;
2864
+ case "utf8":
2865
+ case "utf-8":
2866
+ case void 0:
2867
+ return N(t).length;
2868
+ case "ucs2":
2869
+ case "ucs-2":
2870
+ case "utf16le":
2871
+ case "utf-16le":
2872
+ return 2 * n;
2873
+ case "hex":
2874
+ return n >>> 1;
2875
+ case "base64":
2876
+ return F(t).length;
2877
+ default:
2878
+ if (r) return N(t).length;
2879
+ e = ("" + e).toLowerCase(), r = !0;
2880
+ }
2881
+ }
2882
+ function g(t, e, n) {
2883
+ var r = t[e];
2884
+ t[e] = t[n], t[n] = r;
2885
+ }
2886
+ function y(t, e, n, r, i) {
2887
+ if (0 === t.length) return -1;
2888
+ if ("string" == typeof n ? (r = n, n = 0) : n > 2147483647 ? n = 2147483647 : n < -2147483648 && (n = -2147483648), n = +n, isNaN(n) && (n = i ? 0 : t.length - 1), n < 0 && (n = t.length + n), n >= t.length) {
2889
+ if (i) return -1;
2890
+ n = t.length - 1;
2891
+ } else if (n < 0) {
2892
+ if (!i) return -1;
2893
+ n = 0;
2894
+ }
2895
+ if ("string" == typeof e && (e = a.from(e, r)), a.isBuffer(e)) return 0 === e.length ? -1 : v(t, e, n, r, i);
2896
+ if ("number" == typeof e) return e &= 255, a.TYPED_ARRAY_SUPPORT && "function" == typeof Uint8Array.prototype.indexOf ? i ? Uint8Array.prototype.indexOf.call(t, e, n) : Uint8Array.prototype.lastIndexOf.call(t, e, n) : v(t, [e], n, r, i);
2897
+ throw new TypeError("val must be string, number or Buffer");
2898
+ }
2899
+ function v(t, e, n, r, i) {
2900
+ var o,
2901
+ u = 1,
2902
+ s = t.length,
2903
+ a = e.length;
2904
+ if (void 0 !== r && ("ucs2" === (r = String(r).toLowerCase()) || "ucs-2" === r || "utf16le" === r || "utf-16le" === r)) {
2905
+ if (t.length < 2 || e.length < 2) return -1;
2906
+ u = 2, s /= 2, a /= 2, n /= 2;
2907
+ }
2908
+ function c(t, e) {
2909
+ return 1 === u ? t[e] : t.readUInt16BE(e * u);
2910
+ }
2911
+ if (i) {
2912
+ var f = -1;
2913
+ for (o = n; o < s; o++) if (c(t, o) === c(e, -1 === f ? 0 : o - f)) {
2914
+ if (-1 === f && (f = o), o - f + 1 === a) return f * u;
2915
+ } else -1 !== f && (o -= o - f), f = -1;
2916
+ } else for (n + a > s && (n = s - a), o = n; o >= 0; o--) {
2917
+ for (var l = !0, h = 0; h < a; h++) if (c(t, o + h) !== c(e, h)) {
2918
+ l = !1;
2919
+ break;
2920
+ }
2921
+ if (l) return o;
2922
+ }
2923
+ return -1;
2924
+ }
2925
+ function m(t, e, n, r) {
2926
+ n = Number(n) || 0;
2927
+ var i = t.length - n;
2928
+ r ? (r = Number(r)) > i && (r = i) : r = i;
2929
+ var o = e.length;
2930
+ if (o % 2 != 0) throw new TypeError("Invalid hex string");
2931
+ r > o / 2 && (r = o / 2);
2932
+ for (var u = 0; u < r; ++u) {
2933
+ var s = parseInt(e.substr(2 * u, 2), 16);
2934
+ if (isNaN(s)) return u;
2935
+ t[n + u] = s;
2936
+ }
2937
+ return u;
2938
+ }
2939
+ function b(t, e, n, r) {
2940
+ return z(N(e, t.length - n), t, n, r);
2941
+ }
2942
+ function w(t, e, n, r) {
2943
+ return z(function (t) {
2944
+ for (var e = [], n = 0; n < t.length; ++n) e.push(255 & t.charCodeAt(n));
2945
+ return e;
2946
+ }(e), t, n, r);
2947
+ }
2948
+ function E(t, e, n, r) {
2949
+ return w(t, e, n, r);
2950
+ }
2951
+ function O(t, e, n, r) {
2952
+ return z(F(e), t, n, r);
2953
+ }
2954
+ function A(t, e, n, r) {
2955
+ return z(function (t, e) {
2956
+ for (var n, r, i, o = [], u = 0; u < t.length && !((e -= 2) < 0); ++u) n = t.charCodeAt(u), r = n >> 8, i = n % 256, o.push(i), o.push(r);
2957
+ return o;
2958
+ }(e, t.length - n), t, n, r);
2959
+ }
2960
+ function x(t, e, n) {
2961
+ return 0 === e && n === t.length ? r.fromByteArray(t) : r.fromByteArray(t.slice(e, n));
2962
+ }
2963
+ function T(t, e, n) {
2964
+ n = Math.min(t.length, n);
2965
+ for (var r = [], i = e; i < n;) {
2966
+ var o,
2967
+ u,
2968
+ s,
2969
+ a,
2970
+ c = t[i],
2971
+ f = null,
2972
+ l = c > 239 ? 4 : c > 223 ? 3 : c > 191 ? 2 : 1;
2973
+ if (i + l <= n) switch (l) {
2974
+ case 1:
2975
+ c < 128 && (f = c);
2976
+ break;
2977
+ case 2:
2978
+ 128 == (192 & (o = t[i + 1])) && (a = (31 & c) << 6 | 63 & o) > 127 && (f = a);
2979
+ break;
2980
+ case 3:
2981
+ o = t[i + 1], u = t[i + 2], 128 == (192 & o) && 128 == (192 & u) && (a = (15 & c) << 12 | (63 & o) << 6 | 63 & u) > 2047 && (a < 55296 || a > 57343) && (f = a);
2982
+ break;
2983
+ case 4:
2984
+ o = t[i + 1], u = t[i + 2], s = t[i + 3], 128 == (192 & o) && 128 == (192 & u) && 128 == (192 & s) && (a = (15 & c) << 18 | (63 & o) << 12 | (63 & u) << 6 | 63 & s) > 65535 && a < 1114112 && (f = a);
2985
+ }
2986
+ null === f ? (f = 65533, l = 1) : f > 65535 && (f -= 65536, r.push(f >>> 10 & 1023 | 55296), f = 56320 | 1023 & f), r.push(f), i += l;
2987
+ }
2988
+ return function (t) {
2989
+ var e = t.length;
2990
+ if (e <= _) return String.fromCharCode.apply(String, t);
2991
+ var n = "",
2992
+ r = 0;
2993
+ for (; r < e;) n += String.fromCharCode.apply(String, t.slice(r, r += _));
2994
+ return n;
2995
+ }(r);
2996
+ }
2997
+ e.Buffer = a, e.SlowBuffer = function (t) {
2998
+ +t != t && (t = 0);
2999
+ return a.alloc(+t);
3000
+ }, e.INSPECT_MAX_BYTES = 50, a.TYPED_ARRAY_SUPPORT = void 0 !== t.TYPED_ARRAY_SUPPORT ? t.TYPED_ARRAY_SUPPORT : function () {
3001
+ try {
3002
+ var t = new Uint8Array(1);
3003
+ return t.__proto__ = {
3004
+ __proto__: Uint8Array.prototype,
3005
+ foo: function () {
3006
+ return 42;
3007
+ }
3008
+ }, 42 === t.foo() && "function" == typeof t.subarray && 0 === t.subarray(1, 1).byteLength;
3009
+ } catch (t) {
3010
+ return !1;
3011
+ }
3012
+ }(), e.kMaxLength = u(), a.poolSize = 8192, a._augment = function (t) {
3013
+ return t.__proto__ = a.prototype, t;
3014
+ }, a.from = function (t, e, n) {
3015
+ return c(null, t, e, n);
3016
+ }, a.TYPED_ARRAY_SUPPORT && (a.prototype.__proto__ = Uint8Array.prototype, a.__proto__ = Uint8Array, "undefined" != typeof Symbol && Symbol.species && a[Symbol.species] === a && Object.defineProperty(a, Symbol.species, {
3017
+ value: null,
3018
+ configurable: !0
3019
+ })), a.alloc = function (t, e, n) {
3020
+ return function (t, e, n, r) {
3021
+ return f(e), e <= 0 ? s(t, e) : void 0 !== n ? "string" == typeof r ? s(t, e).fill(n, r) : s(t, e).fill(n) : s(t, e);
3022
+ }(null, t, e, n);
3023
+ }, a.allocUnsafe = function (t) {
3024
+ return l(null, t);
3025
+ }, a.allocUnsafeSlow = function (t) {
3026
+ return l(null, t);
3027
+ }, a.isBuffer = function (t) {
3028
+ return !(null == t || !t._isBuffer);
3029
+ }, a.compare = function (t, e) {
3030
+ if (!a.isBuffer(t) || !a.isBuffer(e)) throw new TypeError("Arguments must be Buffers");
3031
+ if (t === e) return 0;
3032
+ for (var n = t.length, r = e.length, i = 0, o = Math.min(n, r); i < o; ++i) if (t[i] !== e[i]) {
3033
+ n = t[i], r = e[i];
3034
+ break;
3035
+ }
3036
+ return n < r ? -1 : r < n ? 1 : 0;
3037
+ }, a.isEncoding = function (t) {
3038
+ switch (String(t).toLowerCase()) {
3039
+ case "hex":
3040
+ case "utf8":
3041
+ case "utf-8":
3042
+ case "ascii":
3043
+ case "latin1":
3044
+ case "binary":
3045
+ case "base64":
3046
+ case "ucs2":
3047
+ case "ucs-2":
3048
+ case "utf16le":
3049
+ case "utf-16le":
3050
+ return !0;
3051
+ default:
3052
+ return !1;
3053
+ }
3054
+ }, a.concat = function (t, e) {
3055
+ if (!o(t)) throw new TypeError('"list" argument must be an Array of Buffers');
3056
+ if (0 === t.length) return a.alloc(0);
3057
+ var n;
3058
+ if (void 0 === e) for (e = 0, n = 0; n < t.length; ++n) e += t[n].length;
3059
+ var r = a.allocUnsafe(e),
3060
+ i = 0;
3061
+ for (n = 0; n < t.length; ++n) {
3062
+ var u = t[n];
3063
+ if (!a.isBuffer(u)) throw new TypeError('"list" argument must be an Array of Buffers');
3064
+ u.copy(r, i), i += u.length;
3065
+ }
3066
+ return r;
3067
+ }, a.byteLength = d, a.prototype._isBuffer = !0, a.prototype.swap16 = function () {
3068
+ var t = this.length;
3069
+ if (t % 2 != 0) throw new RangeError("Buffer size must be a multiple of 16-bits");
3070
+ for (var e = 0; e < t; e += 2) g(this, e, e + 1);
3071
+ return this;
3072
+ }, a.prototype.swap32 = function () {
3073
+ var t = this.length;
3074
+ if (t % 4 != 0) throw new RangeError("Buffer size must be a multiple of 32-bits");
3075
+ for (var e = 0; e < t; e += 4) g(this, e, e + 3), g(this, e + 1, e + 2);
3076
+ return this;
3077
+ }, a.prototype.swap64 = function () {
3078
+ var t = this.length;
3079
+ if (t % 8 != 0) throw new RangeError("Buffer size must be a multiple of 64-bits");
3080
+ for (var e = 0; e < t; e += 8) g(this, e, e + 7), g(this, e + 1, e + 6), g(this, e + 2, e + 5), g(this, e + 3, e + 4);
3081
+ return this;
3082
+ }, a.prototype.toString = function () {
3083
+ var t = 0 | this.length;
3084
+ return 0 === t ? "" : 0 === arguments.length ? T(this, 0, t) : function (t, e, n) {
3085
+ var r = !1;
3086
+ if ((void 0 === e || e < 0) && (e = 0), e > this.length) return "";
3087
+ if ((void 0 === n || n > this.length) && (n = this.length), n <= 0) return "";
3088
+ if ((n >>>= 0) <= (e >>>= 0)) return "";
3089
+ for (t || (t = "utf8");;) switch (t) {
3090
+ case "hex":
3091
+ return k(this, e, n);
3092
+ case "utf8":
3093
+ case "utf-8":
3094
+ return T(this, e, n);
3095
+ case "ascii":
3096
+ return S(this, e, n);
3097
+ case "latin1":
3098
+ case "binary":
3099
+ return R(this, e, n);
3100
+ case "base64":
3101
+ return x(this, e, n);
3102
+ case "ucs2":
3103
+ case "ucs-2":
3104
+ case "utf16le":
3105
+ case "utf-16le":
3106
+ return P(this, e, n);
3107
+ default:
3108
+ if (r) throw new TypeError("Unknown encoding: " + t);
3109
+ t = (t + "").toLowerCase(), r = !0;
3110
+ }
3111
+ }.apply(this, arguments);
3112
+ }, a.prototype.equals = function (t) {
3113
+ if (!a.isBuffer(t)) throw new TypeError("Argument must be a Buffer");
3114
+ return this === t || 0 === a.compare(this, t);
3115
+ }, a.prototype.inspect = function () {
3116
+ var t = "",
3117
+ n = e.INSPECT_MAX_BYTES;
3118
+ return this.length > 0 && (t = this.toString("hex", 0, n).match(/.{2}/g).join(" "), this.length > n && (t += " ... ")), "<Buffer " + t + ">";
3119
+ }, a.prototype.compare = function (t, e, n, r, i) {
3120
+ if (!a.isBuffer(t)) throw new TypeError("Argument must be a Buffer");
3121
+ if (void 0 === e && (e = 0), void 0 === n && (n = t ? t.length : 0), void 0 === r && (r = 0), void 0 === i && (i = this.length), e < 0 || n > t.length || r < 0 || i > this.length) throw new RangeError("out of range index");
3122
+ if (r >= i && e >= n) return 0;
3123
+ if (r >= i) return -1;
3124
+ if (e >= n) return 1;
3125
+ if (e >>>= 0, n >>>= 0, r >>>= 0, i >>>= 0, this === t) return 0;
3126
+ for (var o = i - r, u = n - e, s = Math.min(o, u), c = this.slice(r, i), f = t.slice(e, n), l = 0; l < s; ++l) if (c[l] !== f[l]) {
3127
+ o = c[l], u = f[l];
3128
+ break;
3129
+ }
3130
+ return o < u ? -1 : u < o ? 1 : 0;
3131
+ }, a.prototype.includes = function (t, e, n) {
3132
+ return -1 !== this.indexOf(t, e, n);
3133
+ }, a.prototype.indexOf = function (t, e, n) {
3134
+ return y(this, t, e, n, !0);
3135
+ }, a.prototype.lastIndexOf = function (t, e, n) {
3136
+ return y(this, t, e, n, !1);
3137
+ }, a.prototype.write = function (t, e, n, r) {
3138
+ if (void 0 === e) r = "utf8", n = this.length, e = 0;else if (void 0 === n && "string" == typeof e) r = e, n = this.length, e = 0;else {
3139
+ if (!isFinite(e)) throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");
3140
+ e |= 0, isFinite(n) ? (n |= 0, void 0 === r && (r = "utf8")) : (r = n, n = void 0);
3141
+ }
3142
+ var i = this.length - e;
3143
+ if ((void 0 === n || n > i) && (n = i), t.length > 0 && (n < 0 || e < 0) || e > this.length) throw new RangeError("Attempt to write outside buffer bounds");
3144
+ r || (r = "utf8");
3145
+ for (var o = !1;;) switch (r) {
3146
+ case "hex":
3147
+ return m(this, t, e, n);
3148
+ case "utf8":
3149
+ case "utf-8":
3150
+ return b(this, t, e, n);
3151
+ case "ascii":
3152
+ return w(this, t, e, n);
3153
+ case "latin1":
3154
+ case "binary":
3155
+ return E(this, t, e, n);
3156
+ case "base64":
3157
+ return O(this, t, e, n);
3158
+ case "ucs2":
3159
+ case "ucs-2":
3160
+ case "utf16le":
3161
+ case "utf-16le":
3162
+ return A(this, t, e, n);
3163
+ default:
3164
+ if (o) throw new TypeError("Unknown encoding: " + r);
3165
+ r = ("" + r).toLowerCase(), o = !0;
3166
+ }
3167
+ }, a.prototype.toJSON = function () {
3168
+ return {
3169
+ type: "Buffer",
3170
+ data: Array.prototype.slice.call(this._arr || this, 0)
3171
+ };
3172
+ };
3173
+ var _ = 4096;
3174
+ function S(t, e, n) {
3175
+ var r = "";
3176
+ n = Math.min(t.length, n);
3177
+ for (var i = e; i < n; ++i) r += String.fromCharCode(127 & t[i]);
3178
+ return r;
3179
+ }
3180
+ function R(t, e, n) {
3181
+ var r = "";
3182
+ n = Math.min(t.length, n);
3183
+ for (var i = e; i < n; ++i) r += String.fromCharCode(t[i]);
3184
+ return r;
3185
+ }
3186
+ function k(t, e, n) {
3187
+ var r = t.length;
3188
+ (!e || e < 0) && (e = 0), (!n || n < 0 || n > r) && (n = r);
3189
+ for (var i = "", o = e; o < n; ++o) i += Y(t[o]);
3190
+ return i;
3191
+ }
3192
+ function P(t, e, n) {
3193
+ for (var r = t.slice(e, n), i = "", o = 0; o < r.length; o += 2) i += String.fromCharCode(r[o] + 256 * r[o + 1]);
3194
+ return i;
3195
+ }
3196
+ function L(t, e, n) {
3197
+ if (t % 1 != 0 || t < 0) throw new RangeError("offset is not uint");
3198
+ if (t + e > n) throw new RangeError("Trying to access beyond buffer length");
3199
+ }
3200
+ function B(t, e, n, r, i, o) {
3201
+ if (!a.isBuffer(t)) throw new TypeError('"buffer" argument must be a Buffer instance');
3202
+ if (e > i || e < o) throw new RangeError('"value" argument is out of bounds');
3203
+ if (n + r > t.length) throw new RangeError("Index out of range");
3204
+ }
3205
+ function C(t, e, n, r) {
3206
+ e < 0 && (e = 65535 + e + 1);
3207
+ for (var i = 0, o = Math.min(t.length - n, 2); i < o; ++i) t[n + i] = (e & 255 << 8 * (r ? i : 1 - i)) >>> 8 * (r ? i : 1 - i);
3208
+ }
3209
+ function j(t, e, n, r) {
3210
+ e < 0 && (e = 4294967295 + e + 1);
3211
+ for (var i = 0, o = Math.min(t.length - n, 4); i < o; ++i) t[n + i] = e >>> 8 * (r ? i : 3 - i) & 255;
3212
+ }
3213
+ function M(t, e, n, r, i, o) {
3214
+ if (n + r > t.length) throw new RangeError("Index out of range");
3215
+ if (n < 0) throw new RangeError("Index out of range");
3216
+ }
3217
+ function U(t, e, n, r, o) {
3218
+ return o || M(t, 0, n, 4), i.write(t, e, n, r, 23, 4), n + 4;
3219
+ }
3220
+ function D(t, e, n, r, o) {
3221
+ return o || M(t, 0, n, 8), i.write(t, e, n, r, 52, 8), n + 8;
3222
+ }
3223
+ a.prototype.slice = function (t, e) {
3224
+ var n,
3225
+ r = this.length;
3226
+ if (t = ~~t, e = void 0 === e ? r : ~~e, t < 0 ? (t += r) < 0 && (t = 0) : t > r && (t = r), e < 0 ? (e += r) < 0 && (e = 0) : e > r && (e = r), e < t && (e = t), a.TYPED_ARRAY_SUPPORT) (n = this.subarray(t, e)).__proto__ = a.prototype;else {
3227
+ var i = e - t;
3228
+ n = new a(i, void 0);
3229
+ for (var o = 0; o < i; ++o) n[o] = this[o + t];
3230
+ }
3231
+ return n;
3232
+ }, a.prototype.readUIntLE = function (t, e, n) {
3233
+ t |= 0, e |= 0, n || L(t, e, this.length);
3234
+ for (var r = this[t], i = 1, o = 0; ++o < e && (i *= 256);) r += this[t + o] * i;
3235
+ return r;
3236
+ }, a.prototype.readUIntBE = function (t, e, n) {
3237
+ t |= 0, e |= 0, n || L(t, e, this.length);
3238
+ for (var r = this[t + --e], i = 1; e > 0 && (i *= 256);) r += this[t + --e] * i;
3239
+ return r;
3240
+ }, a.prototype.readUInt8 = function (t, e) {
3241
+ return e || L(t, 1, this.length), this[t];
3242
+ }, a.prototype.readUInt16LE = function (t, e) {
3243
+ return e || L(t, 2, this.length), this[t] | this[t + 1] << 8;
3244
+ }, a.prototype.readUInt16BE = function (t, e) {
3245
+ return e || L(t, 2, this.length), this[t] << 8 | this[t + 1];
3246
+ }, a.prototype.readUInt32LE = function (t, e) {
3247
+ return e || L(t, 4, this.length), (this[t] | this[t + 1] << 8 | this[t + 2] << 16) + 16777216 * this[t + 3];
3248
+ }, a.prototype.readUInt32BE = function (t, e) {
3249
+ return e || L(t, 4, this.length), 16777216 * this[t] + (this[t + 1] << 16 | this[t + 2] << 8 | this[t + 3]);
3250
+ }, a.prototype.readIntLE = function (t, e, n) {
3251
+ t |= 0, e |= 0, n || L(t, e, this.length);
3252
+ for (var r = this[t], i = 1, o = 0; ++o < e && (i *= 256);) r += this[t + o] * i;
3253
+ return r >= (i *= 128) && (r -= Math.pow(2, 8 * e)), r;
3254
+ }, a.prototype.readIntBE = function (t, e, n) {
3255
+ t |= 0, e |= 0, n || L(t, e, this.length);
3256
+ for (var r = e, i = 1, o = this[t + --r]; r > 0 && (i *= 256);) o += this[t + --r] * i;
3257
+ return o >= (i *= 128) && (o -= Math.pow(2, 8 * e)), o;
3258
+ }, a.prototype.readInt8 = function (t, e) {
3259
+ return e || L(t, 1, this.length), 128 & this[t] ? -1 * (255 - this[t] + 1) : this[t];
3260
+ }, a.prototype.readInt16LE = function (t, e) {
3261
+ e || L(t, 2, this.length);
3262
+ var n = this[t] | this[t + 1] << 8;
3263
+ return 32768 & n ? 4294901760 | n : n;
3264
+ }, a.prototype.readInt16BE = function (t, e) {
3265
+ e || L(t, 2, this.length);
3266
+ var n = this[t + 1] | this[t] << 8;
3267
+ return 32768 & n ? 4294901760 | n : n;
3268
+ }, a.prototype.readInt32LE = function (t, e) {
3269
+ return e || L(t, 4, this.length), this[t] | this[t + 1] << 8 | this[t + 2] << 16 | this[t + 3] << 24;
3270
+ }, a.prototype.readInt32BE = function (t, e) {
3271
+ return e || L(t, 4, this.length), this[t] << 24 | this[t + 1] << 16 | this[t + 2] << 8 | this[t + 3];
3272
+ }, a.prototype.readFloatLE = function (t, e) {
3273
+ return e || L(t, 4, this.length), i.read(this, t, !0, 23, 4);
3274
+ }, a.prototype.readFloatBE = function (t, e) {
3275
+ return e || L(t, 4, this.length), i.read(this, t, !1, 23, 4);
3276
+ }, a.prototype.readDoubleLE = function (t, e) {
3277
+ return e || L(t, 8, this.length), i.read(this, t, !0, 52, 8);
3278
+ }, a.prototype.readDoubleBE = function (t, e) {
3279
+ return e || L(t, 8, this.length), i.read(this, t, !1, 52, 8);
3280
+ }, a.prototype.writeUIntLE = function (t, e, n, r) {
3281
+ (t = +t, e |= 0, n |= 0, r) || B(this, t, e, n, Math.pow(2, 8 * n) - 1, 0);
3282
+ var i = 1,
3283
+ o = 0;
3284
+ for (this[e] = 255 & t; ++o < n && (i *= 256);) this[e + o] = t / i & 255;
3285
+ return e + n;
3286
+ }, a.prototype.writeUIntBE = function (t, e, n, r) {
3287
+ (t = +t, e |= 0, n |= 0, r) || B(this, t, e, n, Math.pow(2, 8 * n) - 1, 0);
3288
+ var i = n - 1,
3289
+ o = 1;
3290
+ for (this[e + i] = 255 & t; --i >= 0 && (o *= 256);) this[e + i] = t / o & 255;
3291
+ return e + n;
3292
+ }, a.prototype.writeUInt8 = function (t, e, n) {
3293
+ return t = +t, e |= 0, n || B(this, t, e, 1, 255, 0), a.TYPED_ARRAY_SUPPORT || (t = Math.floor(t)), this[e] = 255 & t, e + 1;
3294
+ }, a.prototype.writeUInt16LE = function (t, e, n) {
3295
+ return t = +t, e |= 0, n || B(this, t, e, 2, 65535, 0), a.TYPED_ARRAY_SUPPORT ? (this[e] = 255 & t, this[e + 1] = t >>> 8) : C(this, t, e, !0), e + 2;
3296
+ }, a.prototype.writeUInt16BE = function (t, e, n) {
3297
+ return t = +t, e |= 0, n || B(this, t, e, 2, 65535, 0), a.TYPED_ARRAY_SUPPORT ? (this[e] = t >>> 8, this[e + 1] = 255 & t) : C(this, t, e, !1), e + 2;
3298
+ }, a.prototype.writeUInt32LE = function (t, e, n) {
3299
+ return t = +t, e |= 0, n || B(this, t, e, 4, 4294967295, 0), a.TYPED_ARRAY_SUPPORT ? (this[e + 3] = t >>> 24, this[e + 2] = t >>> 16, this[e + 1] = t >>> 8, this[e] = 255 & t) : j(this, t, e, !0), e + 4;
3300
+ }, a.prototype.writeUInt32BE = function (t, e, n) {
3301
+ return t = +t, e |= 0, n || B(this, t, e, 4, 4294967295, 0), a.TYPED_ARRAY_SUPPORT ? (this[e] = t >>> 24, this[e + 1] = t >>> 16, this[e + 2] = t >>> 8, this[e + 3] = 255 & t) : j(this, t, e, !1), e + 4;
3302
+ }, a.prototype.writeIntLE = function (t, e, n, r) {
3303
+ if (t = +t, e |= 0, !r) {
3304
+ var i = Math.pow(2, 8 * n - 1);
3305
+ B(this, t, e, n, i - 1, -i);
3306
+ }
3307
+ var o = 0,
3308
+ u = 1,
3309
+ s = 0;
3310
+ for (this[e] = 255 & t; ++o < n && (u *= 256);) t < 0 && 0 === s && 0 !== this[e + o - 1] && (s = 1), this[e + o] = (t / u >> 0) - s & 255;
3311
+ return e + n;
3312
+ }, a.prototype.writeIntBE = function (t, e, n, r) {
3313
+ if (t = +t, e |= 0, !r) {
3314
+ var i = Math.pow(2, 8 * n - 1);
3315
+ B(this, t, e, n, i - 1, -i);
3316
+ }
3317
+ var o = n - 1,
3318
+ u = 1,
3319
+ s = 0;
3320
+ for (this[e + o] = 255 & t; --o >= 0 && (u *= 256);) t < 0 && 0 === s && 0 !== this[e + o + 1] && (s = 1), this[e + o] = (t / u >> 0) - s & 255;
3321
+ return e + n;
3322
+ }, a.prototype.writeInt8 = function (t, e, n) {
3323
+ return t = +t, e |= 0, n || B(this, t, e, 1, 127, -128), a.TYPED_ARRAY_SUPPORT || (t = Math.floor(t)), t < 0 && (t = 255 + t + 1), this[e] = 255 & t, e + 1;
3324
+ }, a.prototype.writeInt16LE = function (t, e, n) {
3325
+ return t = +t, e |= 0, n || B(this, t, e, 2, 32767, -32768), a.TYPED_ARRAY_SUPPORT ? (this[e] = 255 & t, this[e + 1] = t >>> 8) : C(this, t, e, !0), e + 2;
3326
+ }, a.prototype.writeInt16BE = function (t, e, n) {
3327
+ return t = +t, e |= 0, n || B(this, t, e, 2, 32767, -32768), a.TYPED_ARRAY_SUPPORT ? (this[e] = t >>> 8, this[e + 1] = 255 & t) : C(this, t, e, !1), e + 2;
3328
+ }, a.prototype.writeInt32LE = function (t, e, n) {
3329
+ return t = +t, e |= 0, n || B(this, t, e, 4, 2147483647, -2147483648), a.TYPED_ARRAY_SUPPORT ? (this[e] = 255 & t, this[e + 1] = t >>> 8, this[e + 2] = t >>> 16, this[e + 3] = t >>> 24) : j(this, t, e, !0), e + 4;
3330
+ }, a.prototype.writeInt32BE = function (t, e, n) {
3331
+ return t = +t, e |= 0, n || B(this, t, e, 4, 2147483647, -2147483648), t < 0 && (t = 4294967295 + t + 1), a.TYPED_ARRAY_SUPPORT ? (this[e] = t >>> 24, this[e + 1] = t >>> 16, this[e + 2] = t >>> 8, this[e + 3] = 255 & t) : j(this, t, e, !1), e + 4;
3332
+ }, a.prototype.writeFloatLE = function (t, e, n) {
3333
+ return U(this, t, e, !0, n);
3334
+ }, a.prototype.writeFloatBE = function (t, e, n) {
3335
+ return U(this, t, e, !1, n);
3336
+ }, a.prototype.writeDoubleLE = function (t, e, n) {
3337
+ return D(this, t, e, !0, n);
3338
+ }, a.prototype.writeDoubleBE = function (t, e, n) {
3339
+ return D(this, t, e, !1, n);
3340
+ }, a.prototype.copy = function (t, e, n, r) {
3341
+ if (n || (n = 0), r || 0 === r || (r = this.length), e >= t.length && (e = t.length), e || (e = 0), r > 0 && r < n && (r = n), r === n) return 0;
3342
+ if (0 === t.length || 0 === this.length) return 0;
3343
+ if (e < 0) throw new RangeError("targetStart out of bounds");
3344
+ if (n < 0 || n >= this.length) throw new RangeError("sourceStart out of bounds");
3345
+ if (r < 0) throw new RangeError("sourceEnd out of bounds");
3346
+ r > this.length && (r = this.length), t.length - e < r - n && (r = t.length - e + n);
3347
+ var i,
3348
+ o = r - n;
3349
+ if (this === t && n < e && e < r) for (i = o - 1; i >= 0; --i) t[i + e] = this[i + n];else if (o < 1e3 || !a.TYPED_ARRAY_SUPPORT) for (i = 0; i < o; ++i) t[i + e] = this[i + n];else Uint8Array.prototype.set.call(t, this.subarray(n, n + o), e);
3350
+ return o;
3351
+ }, a.prototype.fill = function (t, e, n, r) {
3352
+ if ("string" == typeof t) {
3353
+ if ("string" == typeof e ? (r = e, e = 0, n = this.length) : "string" == typeof n && (r = n, n = this.length), 1 === t.length) {
3354
+ var i = t.charCodeAt(0);
3355
+ i < 256 && (t = i);
3356
+ }
3357
+ if (void 0 !== r && "string" != typeof r) throw new TypeError("encoding must be a string");
3358
+ if ("string" == typeof r && !a.isEncoding(r)) throw new TypeError("Unknown encoding: " + r);
3359
+ } else "number" == typeof t && (t &= 255);
3360
+ if (e < 0 || this.length < e || this.length < n) throw new RangeError("Out of range index");
3361
+ if (n <= e) return this;
3362
+ var o;
3363
+ if (e >>>= 0, n = void 0 === n ? this.length : n >>> 0, t || (t = 0), "number" == typeof t) for (o = e; o < n; ++o) this[o] = t;else {
3364
+ var u = a.isBuffer(t) ? t : N(new a(t, r).toString()),
3365
+ s = u.length;
3366
+ for (o = 0; o < n - e; ++o) this[o + e] = u[o % s];
3367
+ }
3368
+ return this;
3369
+ };
3370
+ var I = /[^+\/0-9A-Za-z-_]/g;
3371
+ function Y(t) {
3372
+ return t < 16 ? "0" + t.toString(16) : t.toString(16);
3373
+ }
3374
+ function N(t, e) {
3375
+ var n;
3376
+ e = e || 1 / 0;
3377
+ for (var r = t.length, i = null, o = [], u = 0; u < r; ++u) {
3378
+ if ((n = t.charCodeAt(u)) > 55295 && n < 57344) {
3379
+ if (!i) {
3380
+ if (n > 56319) {
3381
+ (e -= 3) > -1 && o.push(239, 191, 189);
3382
+ continue;
3383
+ }
3384
+ if (u + 1 === r) {
3385
+ (e -= 3) > -1 && o.push(239, 191, 189);
3386
+ continue;
3387
+ }
3388
+ i = n;
3389
+ continue;
3390
+ }
3391
+ if (n < 56320) {
3392
+ (e -= 3) > -1 && o.push(239, 191, 189), i = n;
3393
+ continue;
3394
+ }
3395
+ n = 65536 + (i - 55296 << 10 | n - 56320);
3396
+ } else i && (e -= 3) > -1 && o.push(239, 191, 189);
3397
+ if (i = null, n < 128) {
3398
+ if ((e -= 1) < 0) break;
3399
+ o.push(n);
3400
+ } else if (n < 2048) {
3401
+ if ((e -= 2) < 0) break;
3402
+ o.push(n >> 6 | 192, 63 & n | 128);
3403
+ } else if (n < 65536) {
3404
+ if ((e -= 3) < 0) break;
3405
+ o.push(n >> 12 | 224, n >> 6 & 63 | 128, 63 & n | 128);
3406
+ } else {
3407
+ if (!(n < 1114112)) throw new Error("Invalid code point");
3408
+ if ((e -= 4) < 0) break;
3409
+ o.push(n >> 18 | 240, n >> 12 & 63 | 128, n >> 6 & 63 | 128, 63 & n | 128);
3410
+ }
3411
+ }
3412
+ return o;
3413
+ }
3414
+ function F(t) {
3415
+ return r.toByteArray(function (t) {
3416
+ if ((t = function (t) {
3417
+ return t.trim ? t.trim() : t.replace(/^\s+|\s+$/g, "");
3418
+ }(t).replace(I, "")).length < 2) return "";
3419
+ for (; t.length % 4 != 0;) t += "=";
3420
+ return t;
3421
+ }(t));
3422
+ }
3423
+ function z(t, e, n, r) {
3424
+ for (var i = 0; i < r && !(i + n >= e.length || i >= t.length); ++i) e[i + n] = t[i];
3425
+ return i;
3426
+ }
3427
+ }).call(e, n(0));
3428
+ }, function (t, e, n) {
3976
3429
 
3977
- t.exports = function (t, e, n) {
3978
- var r = e.value,
3979
- i = t.innerText,
3980
- o = i.toLowerCase().indexOf(r.toLowerCase()),
3981
- u = r.length;
3982
- return r && o >= 0 ? i.substring(0, o) + '<span class="' + n + '">' + i.substr(o, u) + "</span>" + i.substring(o + u) : i;
3983
- };
3984
- }, function (t, e, n) {
3430
+ e.byteLength = function (t) {
3431
+ return 3 * t.length / 4 - c(t);
3432
+ }, e.toByteArray = function (t) {
3433
+ var e,
3434
+ n,
3435
+ r,
3436
+ u,
3437
+ s,
3438
+ a = t.length;
3439
+ u = c(t), s = new o(3 * a / 4 - u), n = u > 0 ? a - 4 : a;
3440
+ var f = 0;
3441
+ for (e = 0; e < n; e += 4) r = i[t.charCodeAt(e)] << 18 | i[t.charCodeAt(e + 1)] << 12 | i[t.charCodeAt(e + 2)] << 6 | i[t.charCodeAt(e + 3)], s[f++] = r >> 16 & 255, s[f++] = r >> 8 & 255, s[f++] = 255 & r;
3442
+ 2 === u ? (r = i[t.charCodeAt(e)] << 2 | i[t.charCodeAt(e + 1)] >> 4, s[f++] = 255 & r) : 1 === u && (r = i[t.charCodeAt(e)] << 10 | i[t.charCodeAt(e + 1)] << 4 | i[t.charCodeAt(e + 2)] >> 2, s[f++] = r >> 8 & 255, s[f++] = 255 & r);
3443
+ return s;
3444
+ }, e.fromByteArray = function (t) {
3445
+ for (var e, n = t.length, i = n % 3, o = "", u = [], s = 0, a = n - i; s < a; s += 16383) u.push(f(t, s, s + 16383 > a ? a : s + 16383));
3446
+ 1 === i ? (e = t[n - 1], o += r[e >> 2], o += r[e << 4 & 63], o += "==") : 2 === i && (e = (t[n - 2] << 8) + t[n - 1], o += r[e >> 10], o += r[e >> 4 & 63], o += r[e << 2 & 63], o += "=");
3447
+ return u.push(o), u.join("");
3448
+ };
3449
+ for (var r = [], i = [], o = "undefined" != typeof Uint8Array ? Uint8Array : Array, u = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", s = 0, a = u.length; s < a; ++s) r[s] = u[s], i[u.charCodeAt(s)] = s;
3450
+ function c(t) {
3451
+ var e = t.length;
3452
+ if (e % 4 > 0) throw new Error("Invalid string. Length must be a multiple of 4");
3453
+ return "=" === t[e - 2] ? 2 : "=" === t[e - 1] ? 1 : 0;
3454
+ }
3455
+ function f(t, e, n) {
3456
+ for (var i, o, u = [], s = e; s < n; s += 3) i = (t[s] << 16 & 16711680) + (t[s + 1] << 8 & 65280) + (255 & t[s + 2]), u.push(r[(o = i) >> 18 & 63] + r[o >> 12 & 63] + r[o >> 6 & 63] + r[63 & o]);
3457
+ return u.join("");
3458
+ }
3459
+ i["-".charCodeAt(0)] = 62, i["_".charCodeAt(0)] = 63;
3460
+ }, function (t, e) {
3461
+ e.read = function (t, e, n, r, i) {
3462
+ var o,
3463
+ u,
3464
+ s = 8 * i - r - 1,
3465
+ a = (1 << s) - 1,
3466
+ c = a >> 1,
3467
+ f = -7,
3468
+ l = n ? i - 1 : 0,
3469
+ h = n ? -1 : 1,
3470
+ p = t[e + l];
3471
+ for (l += h, o = p & (1 << -f) - 1, p >>= -f, f += s; f > 0; o = 256 * o + t[e + l], l += h, f -= 8);
3472
+ for (u = o & (1 << -f) - 1, o >>= -f, f += r; f > 0; u = 256 * u + t[e + l], l += h, f -= 8);
3473
+ if (0 === o) o = 1 - c;else {
3474
+ if (o === a) return u ? NaN : 1 / 0 * (p ? -1 : 1);
3475
+ u += Math.pow(2, r), o -= c;
3476
+ }
3477
+ return (p ? -1 : 1) * u * Math.pow(2, o - r);
3478
+ }, e.write = function (t, e, n, r, i, o) {
3479
+ var u,
3480
+ s,
3481
+ a,
3482
+ c = 8 * o - i - 1,
3483
+ f = (1 << c) - 1,
3484
+ l = f >> 1,
3485
+ h = 23 === i ? Math.pow(2, -24) - Math.pow(2, -77) : 0,
3486
+ p = r ? 0 : o - 1,
3487
+ d = r ? 1 : -1,
3488
+ g = e < 0 || 0 === e && 1 / e < 0 ? 1 : 0;
3489
+ for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (s = isNaN(e) ? 1 : 0, u = f) : (u = Math.floor(Math.log(e) / Math.LN2), e * (a = Math.pow(2, -u)) < 1 && (u--, a *= 2), (e += u + l >= 1 ? h / a : h * Math.pow(2, 1 - l)) * a >= 2 && (u++, a /= 2), u + l >= f ? (s = 0, u = f) : u + l >= 1 ? (s = (e * a - 1) * Math.pow(2, i), u += l) : (s = e * Math.pow(2, l - 1) * Math.pow(2, i), u = 0)); i >= 8; t[n + p] = 255 & s, p += d, s /= 256, i -= 8);
3490
+ for (u = u << i | s, c += i; c > 0; t[n + p] = 255 & u, p += d, u /= 256, c -= 8);
3491
+ t[n + p - d] |= 128 * g;
3492
+ };
3493
+ }, function (t, e) {
3494
+ var n = {}.toString;
3495
+ t.exports = Array.isArray || function (t) {
3496
+ return "[object Array]" == n.call(t);
3497
+ };
3498
+ }, function (t, e, n) {
3985
3499
 
3986
- var r,
3987
- i = n(33),
3988
- o = (r = i) && r.__esModule ? r : {
3989
- default: r
3990
- };
3991
- var u = {
3992
- input: ".combobox",
3993
- list: ".listbox",
3994
- options: ".option",
3995
- groups: null,
3996
- openClass: "open",
3997
- activeClass: "active",
3998
- selectedClass: "selected",
3999
- useLiveRegion: !0,
4000
- allowEmpty: !0,
4001
- multiselect: !1,
4002
- noResultsText: null,
4003
- selectionValue: function (t) {
4004
- return t.map(function (t) {
4005
- return t.innerText.trim();
4006
- }).join(" - ");
4007
- },
4008
- optionValue: function (t) {
4009
- return t.innerHTML;
4010
- },
4011
- announcement: {
4012
- count: function (t) {
4013
- return t + " options available";
4014
- },
4015
- selected: "Selected."
4016
- },
4017
- filter: "contains",
4018
- autoFilter: !0
4019
- };
4020
- t.exports = function (t) {
4021
- var e = {},
4022
- n = {};
4023
- return t.announcement = t.announcement || {}, (0, o.default)(n, u.announcement, t.announcement), (0, o.default)(e, u, t), e.announcement = n, e;
4024
- };
4025
- }, function (t, e, n) {
3500
+ (function (e) {
3501
+ function r(t, e) {
3502
+ if (t === e) return 0;
3503
+ for (var n = t.length, r = e.length, i = 0, o = Math.min(n, r); i < o; ++i) if (t[i] !== e[i]) {
3504
+ n = t[i], r = e[i];
3505
+ break;
3506
+ }
3507
+ return n < r ? -1 : r < n ? 1 : 0;
3508
+ }
3509
+ function i(t) {
3510
+ return e.Buffer && "function" == typeof e.Buffer.isBuffer ? e.Buffer.isBuffer(t) : !(null == t || !t._isBuffer);
3511
+ }
3512
+ var o = n(27),
3513
+ u = Object.prototype.hasOwnProperty,
3514
+ s = Array.prototype.slice,
3515
+ a = "foo" === function () {}.name;
3516
+ function c(t) {
3517
+ return Object.prototype.toString.call(t);
3518
+ }
3519
+ function f(t) {
3520
+ return !i(t) && "function" == typeof e.ArrayBuffer && ("function" == typeof ArrayBuffer.isView ? ArrayBuffer.isView(t) : !!t && (t instanceof DataView || !!(t.buffer && t.buffer instanceof ArrayBuffer)));
3521
+ }
3522
+ var l = t.exports = v,
3523
+ h = /\s*function\s+([^\(\s]*)\s*/;
3524
+ function p(t) {
3525
+ if (o.isFunction(t)) {
3526
+ if (a) return t.name;
3527
+ var e = t.toString().match(h);
3528
+ return e && e[1];
3529
+ }
3530
+ }
3531
+ function d(t, e) {
3532
+ return "string" == typeof t ? t.length < e ? t : t.slice(0, e) : t;
3533
+ }
3534
+ function g(t) {
3535
+ if (a || !o.isFunction(t)) return o.inspect(t);
3536
+ var e = p(t);
3537
+ return "[Function" + (e ? ": " + e : "") + "]";
3538
+ }
3539
+ function y(t, e, n, r, i) {
3540
+ throw new l.AssertionError({
3541
+ message: n,
3542
+ actual: t,
3543
+ expected: e,
3544
+ operator: r,
3545
+ stackStartFunction: i
3546
+ });
3547
+ }
3548
+ function v(t, e) {
3549
+ t || y(t, !0, e, "==", l.ok);
3550
+ }
3551
+ function m(t, e, n, u) {
3552
+ if (t === e) return !0;
3553
+ if (i(t) && i(e)) return 0 === r(t, e);
3554
+ if (o.isDate(t) && o.isDate(e)) return t.getTime() === e.getTime();
3555
+ if (o.isRegExp(t) && o.isRegExp(e)) return t.source === e.source && t.global === e.global && t.multiline === e.multiline && t.lastIndex === e.lastIndex && t.ignoreCase === e.ignoreCase;
3556
+ if (null !== t && "object" == typeof t || null !== e && "object" == typeof e) {
3557
+ if (f(t) && f(e) && c(t) === c(e) && !(t instanceof Float32Array || t instanceof Float64Array)) return 0 === r(new Uint8Array(t.buffer), new Uint8Array(e.buffer));
3558
+ if (i(t) !== i(e)) return !1;
3559
+ var a = (u = u || {
3560
+ actual: [],
3561
+ expected: []
3562
+ }).actual.indexOf(t);
3563
+ return -1 !== a && a === u.expected.indexOf(e) || (u.actual.push(t), u.expected.push(e), function (t, e, n, r) {
3564
+ if (null === t || void 0 === t || null === e || void 0 === e) return !1;
3565
+ if (o.isPrimitive(t) || o.isPrimitive(e)) return t === e;
3566
+ if (n && Object.getPrototypeOf(t) !== Object.getPrototypeOf(e)) return !1;
3567
+ var i = b(t),
3568
+ u = b(e);
3569
+ if (i && !u || !i && u) return !1;
3570
+ if (i) return t = s.call(t), e = s.call(e), m(t, e, n);
3571
+ var a,
3572
+ c,
3573
+ f = O(t),
3574
+ l = O(e);
3575
+ if (f.length !== l.length) return !1;
3576
+ for (f.sort(), l.sort(), c = f.length - 1; c >= 0; c--) if (f[c] !== l[c]) return !1;
3577
+ for (c = f.length - 1; c >= 0; c--) if (a = f[c], !m(t[a], e[a], n, r)) return !1;
3578
+ return !0;
3579
+ }(t, e, n, u));
3580
+ }
3581
+ return n ? t === e : t == e;
3582
+ }
3583
+ function b(t) {
3584
+ return "[object Arguments]" == Object.prototype.toString.call(t);
3585
+ }
3586
+ function w(t, e) {
3587
+ if (!t || !e) return !1;
3588
+ if ("[object RegExp]" == Object.prototype.toString.call(e)) return e.test(t);
3589
+ try {
3590
+ if (t instanceof e) return !0;
3591
+ } catch (t) {}
3592
+ return !Error.isPrototypeOf(e) && !0 === e.call({}, t);
3593
+ }
3594
+ function E(t, e, n, r) {
3595
+ var i;
3596
+ if ("function" != typeof e) throw new TypeError('"block" argument must be a function');
3597
+ "string" == typeof n && (r = n, n = null), i = function (t) {
3598
+ var e;
3599
+ try {
3600
+ t();
3601
+ } catch (t) {
3602
+ e = t;
3603
+ }
3604
+ return e;
3605
+ }(e), r = (n && n.name ? " (" + n.name + ")." : ".") + (r ? " " + r : "."), t && !i && y(i, n, "Missing expected exception" + r);
3606
+ var u = "string" == typeof r,
3607
+ s = !t && o.isError(i),
3608
+ a = !t && i && !n;
3609
+ if ((s && u && w(i, n) || a) && y(i, n, "Got unwanted exception" + r), t && i && n && !w(i, n) || !t && i) throw i;
3610
+ }
3611
+ l.AssertionError = function (t) {
3612
+ var e;
3613
+ this.name = "AssertionError", this.actual = t.actual, this.expected = t.expected, this.operator = t.operator, t.message ? (this.message = t.message, this.generatedMessage = !1) : (this.message = d(g((e = this).actual), 128) + " " + e.operator + " " + d(g(e.expected), 128), this.generatedMessage = !0);
3614
+ var n = t.stackStartFunction || y;
3615
+ if (Error.captureStackTrace) Error.captureStackTrace(this, n);else {
3616
+ var r = new Error();
3617
+ if (r.stack) {
3618
+ var i = r.stack,
3619
+ o = p(n),
3620
+ u = i.indexOf("\n" + o);
3621
+ if (u >= 0) {
3622
+ var s = i.indexOf("\n", u + 1);
3623
+ i = i.substring(s + 1);
3624
+ }
3625
+ this.stack = i;
3626
+ }
3627
+ }
3628
+ }, o.inherits(l.AssertionError, Error), l.fail = y, l.ok = v, l.equal = function (t, e, n) {
3629
+ t != e && y(t, e, n, "==", l.equal);
3630
+ }, l.notEqual = function (t, e, n) {
3631
+ t == e && y(t, e, n, "!=", l.notEqual);
3632
+ }, l.deepEqual = function (t, e, n) {
3633
+ m(t, e, !1) || y(t, e, n, "deepEqual", l.deepEqual);
3634
+ }, l.deepStrictEqual = function (t, e, n) {
3635
+ m(t, e, !0) || y(t, e, n, "deepStrictEqual", l.deepStrictEqual);
3636
+ }, l.notDeepEqual = function (t, e, n) {
3637
+ m(t, e, !1) && y(t, e, n, "notDeepEqual", l.notDeepEqual);
3638
+ }, l.notDeepStrictEqual = function t(e, n, r) {
3639
+ m(e, n, !0) && y(e, n, r, "notDeepStrictEqual", t);
3640
+ }, l.strictEqual = function (t, e, n) {
3641
+ t !== e && y(t, e, n, "===", l.strictEqual);
3642
+ }, l.notStrictEqual = function (t, e, n) {
3643
+ t === e && y(t, e, n, "!==", l.notStrictEqual);
3644
+ }, l.throws = function (t, e, n) {
3645
+ E(!0, t, e, n);
3646
+ }, l.doesNotThrow = function (t, e, n) {
3647
+ E(!1, t, e, n);
3648
+ }, l.ifError = function (t) {
3649
+ if (t) throw t;
3650
+ };
3651
+ var O = Object.keys || function (t) {
3652
+ var e = [];
3653
+ for (var n in t) u.call(t, n) && e.push(n);
3654
+ return e;
3655
+ };
3656
+ }).call(e, n(0));
3657
+ }, function (t, e, n) {
3658
+ (function (t, r) {
3659
+ var i = /%[sdj%]/g;
3660
+ e.format = function (t) {
3661
+ if (!v(t)) {
3662
+ for (var e = [], n = 0; n < arguments.length; n++) e.push(s(arguments[n]));
3663
+ return e.join(" ");
3664
+ }
3665
+ n = 1;
3666
+ for (var r = arguments, o = r.length, u = String(t).replace(i, function (t) {
3667
+ if ("%%" === t) return "%";
3668
+ if (n >= o) return t;
3669
+ switch (t) {
3670
+ case "%s":
3671
+ return String(r[n++]);
3672
+ case "%d":
3673
+ return Number(r[n++]);
3674
+ case "%j":
3675
+ try {
3676
+ return JSON.stringify(r[n++]);
3677
+ } catch (t) {
3678
+ return "[Circular]";
3679
+ }
3680
+ default:
3681
+ return t;
3682
+ }
3683
+ }), a = r[n]; n < o; a = r[++n]) g(a) || !w(a) ? u += " " + a : u += " " + s(a);
3684
+ return u;
3685
+ }, e.deprecate = function (n, i) {
3686
+ if (m(t.process)) return function () {
3687
+ return e.deprecate(n, i).apply(this, arguments);
3688
+ };
3689
+ if (!0 === r.noDeprecation) return n;
3690
+ var o = !1;
3691
+ return function () {
3692
+ if (!o) {
3693
+ if (r.throwDeprecation) throw new Error(i);
3694
+ r.traceDeprecation ? console.trace(i) : console.error(i), o = !0;
3695
+ }
3696
+ return n.apply(this, arguments);
3697
+ };
3698
+ };
3699
+ var o,
3700
+ u = {};
3701
+ function s(t, n) {
3702
+ var r = {
3703
+ seen: [],
3704
+ stylize: c
3705
+ };
3706
+ return arguments.length >= 3 && (r.depth = arguments[2]), arguments.length >= 4 && (r.colors = arguments[3]), d(n) ? r.showHidden = n : n && e._extend(r, n), m(r.showHidden) && (r.showHidden = !1), m(r.depth) && (r.depth = 2), m(r.colors) && (r.colors = !1), m(r.customInspect) && (r.customInspect = !0), r.colors && (r.stylize = a), f(r, t, r.depth);
3707
+ }
3708
+ function a(t, e) {
3709
+ var n = s.styles[e];
3710
+ return n ? "[" + s.colors[n][0] + "m" + t + "[" + s.colors[n][1] + "m" : t;
3711
+ }
3712
+ function c(t, e) {
3713
+ return t;
3714
+ }
3715
+ function f(t, n, r) {
3716
+ if (t.customInspect && n && A(n.inspect) && n.inspect !== e.inspect && (!n.constructor || n.constructor.prototype !== n)) {
3717
+ var i = n.inspect(r, t);
3718
+ return v(i) || (i = f(t, i, r)), i;
3719
+ }
3720
+ var o = function (t, e) {
3721
+ if (m(e)) return t.stylize("undefined", "undefined");
3722
+ if (v(e)) {
3723
+ var n = "'" + JSON.stringify(e).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
3724
+ return t.stylize(n, "string");
3725
+ }
3726
+ if (y(e)) return t.stylize("" + e, "number");
3727
+ if (d(e)) return t.stylize("" + e, "boolean");
3728
+ if (g(e)) return t.stylize("null", "null");
3729
+ }(t, n);
3730
+ if (o) return o;
3731
+ var u = Object.keys(n),
3732
+ s = function (t) {
3733
+ var e = {};
3734
+ return t.forEach(function (t, n) {
3735
+ e[t] = !0;
3736
+ }), e;
3737
+ }(u);
3738
+ if (t.showHidden && (u = Object.getOwnPropertyNames(n)), O(n) && (u.indexOf("message") >= 0 || u.indexOf("description") >= 0)) return l(n);
3739
+ if (0 === u.length) {
3740
+ if (A(n)) {
3741
+ var a = n.name ? ": " + n.name : "";
3742
+ return t.stylize("[Function" + a + "]", "special");
3743
+ }
3744
+ if (b(n)) return t.stylize(RegExp.prototype.toString.call(n), "regexp");
3745
+ if (E(n)) return t.stylize(Date.prototype.toString.call(n), "date");
3746
+ if (O(n)) return l(n);
3747
+ }
3748
+ var c,
3749
+ w = "",
3750
+ x = !1,
3751
+ T = ["{", "}"];
3752
+ (p(n) && (x = !0, T = ["[", "]"]), A(n)) && (w = " [Function" + (n.name ? ": " + n.name : "") + "]");
3753
+ return b(n) && (w = " " + RegExp.prototype.toString.call(n)), E(n) && (w = " " + Date.prototype.toUTCString.call(n)), O(n) && (w = " " + l(n)), 0 !== u.length || x && 0 != n.length ? r < 0 ? b(n) ? t.stylize(RegExp.prototype.toString.call(n), "regexp") : t.stylize("[Object]", "special") : (t.seen.push(n), c = x ? function (t, e, n, r, i) {
3754
+ for (var o = [], u = 0, s = e.length; u < s; ++u) S(e, String(u)) ? o.push(h(t, e, n, r, String(u), !0)) : o.push("");
3755
+ return i.forEach(function (i) {
3756
+ i.match(/^\d+$/) || o.push(h(t, e, n, r, i, !0));
3757
+ }), o;
3758
+ }(t, n, r, s, u) : u.map(function (e) {
3759
+ return h(t, n, r, s, e, x);
3760
+ }), t.seen.pop(), function (t, e, n) {
3761
+ if (t.reduce(function (t, e) {
3762
+ return e.indexOf("\n") >= 0 && 0, t + e.replace(/\u001b\[\d\d?m/g, "").length + 1;
3763
+ }, 0) > 60) return n[0] + ("" === e ? "" : e + "\n ") + " " + t.join(",\n ") + " " + n[1];
3764
+ return n[0] + e + " " + t.join(", ") + " " + n[1];
3765
+ }(c, w, T)) : T[0] + w + T[1];
3766
+ }
3767
+ function l(t) {
3768
+ return "[" + Error.prototype.toString.call(t) + "]";
3769
+ }
3770
+ function h(t, e, n, r, i, o) {
3771
+ var u, s, a;
3772
+ if ((a = Object.getOwnPropertyDescriptor(e, i) || {
3773
+ value: e[i]
3774
+ }).get ? s = a.set ? t.stylize("[Getter/Setter]", "special") : t.stylize("[Getter]", "special") : a.set && (s = t.stylize("[Setter]", "special")), S(r, i) || (u = "[" + i + "]"), s || (t.seen.indexOf(a.value) < 0 ? (s = g(n) ? f(t, a.value, null) : f(t, a.value, n - 1)).indexOf("\n") > -1 && (s = o ? s.split("\n").map(function (t) {
3775
+ return " " + t;
3776
+ }).join("\n").substr(2) : "\n" + s.split("\n").map(function (t) {
3777
+ return " " + t;
3778
+ }).join("\n")) : s = t.stylize("[Circular]", "special")), m(u)) {
3779
+ if (o && i.match(/^\d+$/)) return s;
3780
+ (u = JSON.stringify("" + i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (u = u.substr(1, u.length - 2), u = t.stylize(u, "name")) : (u = u.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), u = t.stylize(u, "string"));
3781
+ }
3782
+ return u + ": " + s;
3783
+ }
3784
+ function p(t) {
3785
+ return Array.isArray(t);
3786
+ }
3787
+ function d(t) {
3788
+ return "boolean" == typeof t;
3789
+ }
3790
+ function g(t) {
3791
+ return null === t;
3792
+ }
3793
+ function y(t) {
3794
+ return "number" == typeof t;
3795
+ }
3796
+ function v(t) {
3797
+ return "string" == typeof t;
3798
+ }
3799
+ function m(t) {
3800
+ return void 0 === t;
3801
+ }
3802
+ function b(t) {
3803
+ return w(t) && "[object RegExp]" === x(t);
3804
+ }
3805
+ function w(t) {
3806
+ return "object" == typeof t && null !== t;
3807
+ }
3808
+ function E(t) {
3809
+ return w(t) && "[object Date]" === x(t);
3810
+ }
3811
+ function O(t) {
3812
+ return w(t) && ("[object Error]" === x(t) || t instanceof Error);
3813
+ }
3814
+ function A(t) {
3815
+ return "function" == typeof t;
3816
+ }
3817
+ function x(t) {
3818
+ return Object.prototype.toString.call(t);
3819
+ }
3820
+ function T(t) {
3821
+ return t < 10 ? "0" + t.toString(10) : t.toString(10);
3822
+ }
3823
+ e.debuglog = function (t) {
3824
+ if (m(o) && (o = Object({
3825
+ NODE_ENV: "production"
3826
+ }).NODE_DEBUG || ""), t = t.toUpperCase(), !u[t]) if (new RegExp("\\b" + t + "\\b", "i").test(o)) {
3827
+ var n = r.pid;
3828
+ u[t] = function () {
3829
+ var r = e.format.apply(e, arguments);
3830
+ console.error("%s %d: %s", t, n, r);
3831
+ };
3832
+ } else u[t] = function () {};
3833
+ return u[t];
3834
+ }, e.inspect = s, s.colors = {
3835
+ bold: [1, 22],
3836
+ italic: [3, 23],
3837
+ underline: [4, 24],
3838
+ inverse: [7, 27],
3839
+ white: [37, 39],
3840
+ grey: [90, 39],
3841
+ black: [30, 39],
3842
+ blue: [34, 39],
3843
+ cyan: [36, 39],
3844
+ green: [32, 39],
3845
+ magenta: [35, 39],
3846
+ red: [31, 39],
3847
+ yellow: [33, 39]
3848
+ }, s.styles = {
3849
+ special: "cyan",
3850
+ number: "yellow",
3851
+ boolean: "yellow",
3852
+ undefined: "grey",
3853
+ null: "bold",
3854
+ string: "green",
3855
+ date: "magenta",
3856
+ regexp: "red"
3857
+ }, e.isArray = p, e.isBoolean = d, e.isNull = g, e.isNullOrUndefined = function (t) {
3858
+ return null == t;
3859
+ }, e.isNumber = y, e.isString = v, e.isSymbol = function (t) {
3860
+ return "symbol" == typeof t;
3861
+ }, e.isUndefined = m, e.isRegExp = b, e.isObject = w, e.isDate = E, e.isError = O, e.isFunction = A, e.isPrimitive = function (t) {
3862
+ return null === t || "boolean" == typeof t || "number" == typeof t || "string" == typeof t || "symbol" == typeof t || void 0 === t;
3863
+ }, e.isBuffer = n(29);
3864
+ var _ = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
3865
+ function S(t, e) {
3866
+ return Object.prototype.hasOwnProperty.call(t, e);
3867
+ }
3868
+ e.log = function () {
3869
+ var t, n;
3870
+ console.log("%s - %s", (t = new Date(), n = [T(t.getHours()), T(t.getMinutes()), T(t.getSeconds())].join(":"), [t.getDate(), _[t.getMonth()], n].join(" ")), e.format.apply(e, arguments));
3871
+ }, e.inherits = n(30), e._extend = function (t, e) {
3872
+ if (!e || !w(e)) return t;
3873
+ for (var n = Object.keys(e), r = n.length; r--;) t[n[r]] = e[n[r]];
3874
+ return t;
3875
+ };
3876
+ }).call(e, n(0), n(28));
3877
+ }, function (t, e) {
3878
+ var n,
3879
+ r,
3880
+ i = t.exports = {};
3881
+ function o() {
3882
+ throw new Error("setTimeout has not been defined");
3883
+ }
3884
+ function u() {
3885
+ throw new Error("clearTimeout has not been defined");
3886
+ }
3887
+ function s(t) {
3888
+ if (n === setTimeout) return setTimeout(t, 0);
3889
+ if ((n === o || !n) && setTimeout) return n = setTimeout, setTimeout(t, 0);
3890
+ try {
3891
+ return n(t, 0);
3892
+ } catch (e) {
3893
+ try {
3894
+ return n.call(null, t, 0);
3895
+ } catch (e) {
3896
+ return n.call(this, t, 0);
3897
+ }
3898
+ }
3899
+ }
3900
+ !function () {
3901
+ try {
3902
+ n = "function" == typeof setTimeout ? setTimeout : o;
3903
+ } catch (t) {
3904
+ n = o;
3905
+ }
3906
+ try {
3907
+ r = "function" == typeof clearTimeout ? clearTimeout : u;
3908
+ } catch (t) {
3909
+ r = u;
3910
+ }
3911
+ }();
3912
+ var a,
3913
+ c = [],
3914
+ f = !1,
3915
+ l = -1;
3916
+ function h() {
3917
+ f && a && (f = !1, a.length ? c = a.concat(c) : l = -1, c.length && p());
3918
+ }
3919
+ function p() {
3920
+ if (!f) {
3921
+ var t = s(h);
3922
+ f = !0;
3923
+ for (var e = c.length; e;) {
3924
+ for (a = c, c = []; ++l < e;) a && a[l].run();
3925
+ l = -1, e = c.length;
3926
+ }
3927
+ a = null, f = !1, function (t) {
3928
+ if (r === clearTimeout) return clearTimeout(t);
3929
+ if ((r === u || !r) && clearTimeout) return r = clearTimeout, clearTimeout(t);
3930
+ try {
3931
+ r(t);
3932
+ } catch (e) {
3933
+ try {
3934
+ return r.call(null, t);
3935
+ } catch (e) {
3936
+ return r.call(this, t);
3937
+ }
3938
+ }
3939
+ }(t);
3940
+ }
3941
+ }
3942
+ function d(t, e) {
3943
+ this.fun = t, this.array = e;
3944
+ }
3945
+ function g() {}
3946
+ i.nextTick = function (t) {
3947
+ var e = new Array(arguments.length - 1);
3948
+ if (arguments.length > 1) for (var n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
3949
+ c.push(new d(t, e)), 1 !== c.length || f || s(p);
3950
+ }, d.prototype.run = function () {
3951
+ this.fun.apply(null, this.array);
3952
+ }, i.title = "browser", i.browser = !0, i.env = {}, i.argv = [], i.version = "", i.versions = {}, i.on = g, i.addListener = g, i.once = g, i.off = g, i.removeListener = g, i.removeAllListeners = g, i.emit = g, i.prependListener = g, i.prependOnceListener = g, i.listeners = function (t) {
3953
+ return [];
3954
+ }, i.binding = function (t) {
3955
+ throw new Error("process.binding is not supported");
3956
+ }, i.cwd = function () {
3957
+ return "/";
3958
+ }, i.chdir = function (t) {
3959
+ throw new Error("process.chdir is not supported");
3960
+ }, i.umask = function () {
3961
+ return 0;
3962
+ };
3963
+ }, function (t, e) {
3964
+ t.exports = function (t) {
3965
+ return t && "object" == typeof t && "function" == typeof t.copy && "function" == typeof t.fill && "function" == typeof t.readUInt8;
3966
+ };
3967
+ }, function (t, e) {
3968
+ "function" == typeof Object.create ? t.exports = function (t, e) {
3969
+ t.super_ = e, t.prototype = Object.create(e.prototype, {
3970
+ constructor: {
3971
+ value: t,
3972
+ enumerable: !1,
3973
+ writable: !0,
3974
+ configurable: !0
3975
+ }
3976
+ });
3977
+ } : t.exports = function (t, e) {
3978
+ t.super_ = e;
3979
+ var n = function () {};
3980
+ n.prototype = e.prototype, t.prototype = new n(), t.prototype.constructor = t;
3981
+ };
3982
+ }, function (t, e, n) {
4026
3983
 
4027
- var r = n(34);
4028
- function i(t, e) {
4029
- for (var n in e) o(e, n) && (t[n] = e[n]);
4030
- }
4031
- function o(t, e) {
4032
- return Object.prototype.hasOwnProperty.call(t, e);
4033
- }
4034
- t.exports = function (t) {
4035
- r(t) || (t = {});
4036
- for (var e = arguments.length, n = 1; n < e; n++) {
4037
- var o = arguments[n];
4038
- r(o) && i(t, o);
4039
- }
4040
- return t;
4041
- };
4042
- }, function (t, e, n) {
3984
+ t.exports = function (t, e, n) {
3985
+ var r = e.value,
3986
+ i = t.innerText,
3987
+ o = i.toLowerCase().indexOf(r.toLowerCase()),
3988
+ u = r.length;
3989
+ return r && o >= 0 ? i.substring(0, o) + '<span class="' + n + '">' + i.substr(o, u) + "</span>" + i.substring(o + u) : i;
3990
+ };
3991
+ }, function (t, e, n) {
4043
3992
 
4044
- t.exports = function (t) {
4045
- return void 0 !== t && null !== t && ("object" == typeof t || "function" == typeof t);
4046
- };
4047
- }, function (t, e, n) {
3993
+ var r,
3994
+ i = n(33),
3995
+ o = (r = i) && r.__esModule ? r : {
3996
+ default: r
3997
+ };
3998
+ var u = {
3999
+ input: ".combobox",
4000
+ list: ".listbox",
4001
+ options: ".option",
4002
+ groups: null,
4003
+ openClass: "open",
4004
+ activeClass: "active",
4005
+ selectedClass: "selected",
4006
+ useLiveRegion: !0,
4007
+ allowEmpty: !0,
4008
+ multiselect: !1,
4009
+ noResultsText: null,
4010
+ selectionValue: function (t) {
4011
+ return t.map(function (t) {
4012
+ return t.innerText.trim();
4013
+ }).join(" - ");
4014
+ },
4015
+ optionValue: function (t) {
4016
+ return t.innerHTML;
4017
+ },
4018
+ announcement: {
4019
+ count: function (t) {
4020
+ return t + " options available";
4021
+ },
4022
+ selected: "Selected."
4023
+ },
4024
+ filter: "contains",
4025
+ autoFilter: !0
4026
+ };
4027
+ t.exports = function (t) {
4028
+ var e = {},
4029
+ n = {};
4030
+ return t.announcement = t.announcement || {}, (0, o.default)(n, u.announcement, t.announcement), (0, o.default)(e, u, t), e.announcement = n, e;
4031
+ };
4032
+ }, function (t, e, n) {
4048
4033
 
4049
- t.exports = function (t, e, n, r, i) {
4050
- var o = "true" === t.getAttribute("aria-selected"),
4051
- u = e.announcement.selected,
4052
- s = t.innerText;
4053
- s = r && e.announcement && e.announcement.groupChange ? e.announcement.groupChange(i) + " " + s : s, n(s = o && u ? s + " " + u : s, 500);
4054
- };
4055
- }]);
4056
- });
4057
- } (dist));
4034
+ var r = n(34);
4035
+ function i(t, e) {
4036
+ for (var n in e) o(e, n) && (t[n] = e[n]);
4037
+ }
4038
+ function o(t, e) {
4039
+ return Object.prototype.hasOwnProperty.call(t, e);
4040
+ }
4041
+ t.exports = function (t) {
4042
+ r(t) || (t = {});
4043
+ for (var e = arguments.length, n = 1; n < e; n++) {
4044
+ var o = arguments[n];
4045
+ r(o) && i(t, o);
4046
+ }
4047
+ return t;
4048
+ };
4049
+ }, function (t, e, n) {
4058
4050
 
4059
- var distExports = dist.exports;
4051
+ t.exports = function (t) {
4052
+ return void 0 !== t && null !== t && ("object" == typeof t || "function" == typeof t);
4053
+ };
4054
+ }, function (t, e, n) {
4055
+
4056
+ t.exports = function (t, e, n, r, i) {
4057
+ var o = "true" === t.getAttribute("aria-selected"),
4058
+ u = e.announcement.selected,
4059
+ s = t.innerText;
4060
+ s = r && e.announcement && e.announcement.groupChange ? e.announcement.groupChange(i) + " " + s : s, n(s = o && u ? s + " " + u : s, 500);
4061
+ };
4062
+ }]);
4063
+ });
4064
+ } (dist$1));
4065
+ return dist$1.exports;
4066
+ }
4067
+
4068
+ var distExports = requireDist();
4060
4069
  var Combobo = /*@__PURE__*/getDefaultExportFromCjs(distExports);
4061
4070
 
4062
4071
  const countries = [{