@xplortech/apollo-core 1.0.0-beta.5 → 1.0.0-beta.6
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.
- package/build/style.css +1 -1
- package/dist/apollo-core/apollo-core.css +9 -5841
- package/dist/apollo-core/apollo-core.esm.js +1 -125
- package/dist/apollo-core/index.esm.js +0 -1
- package/dist/apollo-core/p-ee16942f.entry.js +1 -0
- package/dist/cjs/apollo-core.cjs.js +4 -112
- package/dist/cjs/index.cjs.js +0 -1
- package/dist/cjs/loader.cjs.js +2 -18
- package/dist/cjs/xpl-application-shell.cjs.entry.js +1 -1
- package/dist/cjs/xpl-avatar_12.cjs.entry.js +17 -17
- package/dist/cjs/xpl-backdrop.cjs.entry.js +1 -1
- package/dist/cjs/xpl-button-row.cjs.entry.js +1 -1
- package/dist/cjs/xpl-choicelist.cjs.entry.js +1 -1
- package/dist/cjs/xpl-divider.cjs.entry.js +1 -1
- package/dist/cjs/xpl-dropdown-group_3.cjs.entry.js +4 -1
- package/dist/cjs/xpl-dropdown_2.cjs.entry.js +1 -2
- package/dist/cjs/xpl-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/xpl-grid.cjs.entry.js +1 -1
- package/dist/cjs/xpl-input.cjs.entry.js +4 -21
- package/dist/cjs/xpl-list.cjs.entry.js +2 -2
- package/dist/cjs/xpl-main-nav.cjs.entry.js +1 -1
- package/dist/cjs/xpl-pagination.cjs.entry.js +1 -1
- package/dist/cjs/xpl-select.cjs.entry.js +3 -44
- package/dist/cjs/xpl-toggle.cjs.entry.js +3 -3
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/xpl-choicelist/choice.js +1 -0
- package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +3 -3
- package/dist/collection/components/xpl-dropdown/dropdownoption.js +1 -0
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js +2 -1
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js +4 -1
- package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +16 -8
- package/dist/collection/components/xpl-list/listitem.js +1 -0
- package/dist/collection/components/xpl-list/xpl-list.js +2 -2
- package/dist/collection/components/xpl-select/selectchoice.js +1 -0
- package/dist/collection/components/xpl-select/xpl-select.js +2 -1
- package/dist/collection/components/xpl-table/xpl-table.js +17 -17
- package/dist/custom-elements/index.js +23 -604
- package/dist/esm/apollo-core.js +4 -112
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +2 -18
- package/dist/esm/xpl-application-shell.entry.js +1 -1
- package/dist/esm/xpl-avatar_12.entry.js +17 -17
- package/dist/esm/xpl-backdrop.entry.js +1 -1
- package/dist/esm/xpl-button-row.entry.js +1 -1
- package/dist/esm/xpl-choicelist.entry.js +1 -1
- package/dist/esm/xpl-divider.entry.js +1 -1
- package/dist/esm/xpl-dropdown-group_3.entry.js +4 -1
- package/dist/esm/xpl-dropdown_2.entry.js +1 -2
- package/dist/esm/xpl-grid-item.entry.js +1 -1
- package/dist/esm/xpl-grid.entry.js +1 -1
- package/dist/esm/xpl-input.entry.js +3 -20
- package/dist/esm/xpl-list.entry.js +2 -2
- package/dist/esm/xpl-main-nav.entry.js +1 -1
- package/dist/esm/xpl-pagination.entry.js +1 -1
- package/dist/esm/xpl-select.entry.js +2 -43
- package/dist/esm/xpl-toggle.entry.js +2 -2
- package/dist/types/components/xpl-choicelist/choice.d.ts +5 -5
- package/dist/types/components/xpl-choicelist/xpl-choicelist.d.ts +2 -1
- package/dist/types/components/xpl-dropdown/dropdownoption.d.ts +8 -10
- package/dist/types/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.d.ts +1 -0
- package/dist/types/components/xpl-dropdown/xpl-dropdown.d.ts +6 -4
- package/dist/types/components/xpl-list/listitem.d.ts +15 -19
- package/dist/types/components/xpl-list/xpl-list.d.ts +1 -0
- package/dist/types/components/xpl-select/selectchoice.d.ts +3 -2
- package/dist/types/components/xpl-select/xpl-select.d.ts +1 -0
- package/dist/types/components/xpl-table/xpl-table.d.ts +5 -6
- package/dist/types/components.d.ts +17 -6
- package/package.json +2 -2
- package/dist/apollo-core/app-globals-0f993ce5.js +0 -3
- package/dist/apollo-core/css-shim-bbdf0cc6.js +0 -4
- package/dist/apollo-core/dom-1f98a75f.js +0 -73
- package/dist/apollo-core/index-5b4a209e.js +0 -2938
- package/dist/apollo-core/index-912d1a21.js +0 -584
- package/dist/apollo-core/p-50eb8239.entry.js +0 -1
- package/dist/apollo-core/regular-133c23b5.js +0 -16052
- package/dist/apollo-core/shadow-css-67b66845.js +0 -389
- package/dist/apollo-core/xpl-application-shell.entry.js +0 -60
- package/dist/apollo-core/xpl-avatar.entry.js +0 -19
- package/dist/apollo-core/xpl-backdrop.entry.js +0 -21
- package/dist/apollo-core/xpl-badge.entry.js +0 -17
- package/dist/apollo-core/xpl-breadcrumb-item.entry.js +0 -17
- package/dist/apollo-core/xpl-breadcrumbs.entry.js +0 -12
- package/dist/apollo-core/xpl-button-row.entry.js +0 -18
- package/dist/apollo-core/xpl-button.entry.js +0 -60
- package/dist/apollo-core/xpl-checkbox.entry.js +0 -25
- package/dist/apollo-core/xpl-choicelist.entry.js +0 -39
- package/dist/apollo-core/xpl-content-area.entry.js +0 -16
- package/dist/apollo-core/xpl-divider.entry.js +0 -14
- package/dist/apollo-core/xpl-dropdown-group.entry.js +0 -31
- package/dist/apollo-core/xpl-dropdown-heading.entry.js +0 -12
- package/dist/apollo-core/xpl-dropdown-option.entry.js +0 -61
- package/dist/apollo-core/xpl-dropdown.entry.js +0 -104
- package/dist/apollo-core/xpl-grid-item.entry.js +0 -21
- package/dist/apollo-core/xpl-grid.entry.js +0 -31
- package/dist/apollo-core/xpl-input.entry.js +0 -2547
- package/dist/apollo-core/xpl-list.entry.js +0 -57
- package/dist/apollo-core/xpl-main-nav.entry.js +0 -26
- package/dist/apollo-core/xpl-nav-item.entry.js +0 -26
- package/dist/apollo-core/xpl-pagination.entry.js +0 -72
- package/dist/apollo-core/xpl-radio.entry.js +0 -25
- package/dist/apollo-core/xpl-secondary-nav.entry.js +0 -12
- package/dist/apollo-core/xpl-select.entry.js +0 -662
- package/dist/apollo-core/xpl-table.entry.js +0 -91
- package/dist/apollo-core/xpl-tag.entry.js +0 -17
- package/dist/apollo-core/xpl-toggle.entry.js +0 -30
- package/dist/apollo-core/xpl-utility-bar.entry.js +0 -27
- package/dist/cjs/app-globals-3a1e7e63.js +0 -5
- package/dist/cjs/css-shim-a7379e2b.js +0 -6
- package/dist/cjs/dom-3e7d9c3b.js +0 -75
- package/dist/cjs/index-318d5fc7.js +0 -586
- package/dist/cjs/index-88e58962.js +0 -2975
- package/dist/cjs/regular-503465f4.js +0 -16054
- package/dist/cjs/shadow-css-09555044.js +0 -391
- package/dist/cjs/xpl-avatar.cjs.entry.js +0 -23
- package/dist/cjs/xpl-badge.cjs.entry.js +0 -21
- package/dist/cjs/xpl-breadcrumb-item.cjs.entry.js +0 -21
- package/dist/cjs/xpl-breadcrumbs.cjs.entry.js +0 -16
- package/dist/cjs/xpl-button.cjs.entry.js +0 -64
- package/dist/cjs/xpl-checkbox.cjs.entry.js +0 -29
- package/dist/cjs/xpl-content-area.cjs.entry.js +0 -20
- package/dist/cjs/xpl-dropdown-group.cjs.entry.js +0 -35
- package/dist/cjs/xpl-dropdown-heading.cjs.entry.js +0 -16
- package/dist/cjs/xpl-dropdown-option.cjs.entry.js +0 -65
- package/dist/cjs/xpl-dropdown.cjs.entry.js +0 -108
- package/dist/cjs/xpl-nav-item.cjs.entry.js +0 -30
- package/dist/cjs/xpl-radio.cjs.entry.js +0 -29
- package/dist/cjs/xpl-secondary-nav.cjs.entry.js +0 -16
- package/dist/cjs/xpl-table.cjs.entry.js +0 -95
- package/dist/cjs/xpl-tag.cjs.entry.js +0 -21
- package/dist/cjs/xpl-utility-bar.cjs.entry.js +0 -31
- package/dist/esm/app-globals-0f993ce5.js +0 -3
- package/dist/esm/css-shim-bbdf0cc6.js +0 -4
- package/dist/esm/dom-1f98a75f.js +0 -73
- package/dist/esm/index-5b4a209e.js +0 -2938
- package/dist/esm/index-912d1a21.js +0 -584
- package/dist/esm/regular-133c23b5.js +0 -16052
- package/dist/esm/shadow-css-67b66845.js +0 -389
- package/dist/esm/xpl-avatar.entry.js +0 -19
- package/dist/esm/xpl-badge.entry.js +0 -17
- package/dist/esm/xpl-breadcrumb-item.entry.js +0 -17
- package/dist/esm/xpl-breadcrumbs.entry.js +0 -12
- package/dist/esm/xpl-button.entry.js +0 -60
- package/dist/esm/xpl-checkbox.entry.js +0 -25
- package/dist/esm/xpl-content-area.entry.js +0 -16
- package/dist/esm/xpl-dropdown-group.entry.js +0 -31
- package/dist/esm/xpl-dropdown-heading.entry.js +0 -12
- package/dist/esm/xpl-dropdown-option.entry.js +0 -61
- package/dist/esm/xpl-dropdown.entry.js +0 -104
- package/dist/esm/xpl-nav-item.entry.js +0 -26
- package/dist/esm/xpl-radio.entry.js +0 -25
- package/dist/esm/xpl-secondary-nav.entry.js +0 -12
- package/dist/esm/xpl-table.entry.js +0 -91
- package/dist/esm/xpl-tag.entry.js +0 -17
- package/dist/esm/xpl-utility-bar.entry.js +0 -27
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-88e58962.js');
|
|
6
|
-
|
|
7
|
-
const XplDropdownOption = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
index.registerInstance(this, hostRef);
|
|
10
|
-
}
|
|
11
|
-
componentWillLoad() {
|
|
12
|
-
this.dropdown = this.hostElement.closest('xpl-dropdown');
|
|
13
|
-
}
|
|
14
|
-
handleClick(ev) {
|
|
15
|
-
const { closeOnSelect, mode } = this.dropdown;
|
|
16
|
-
if (Boolean(ev.x && ev.y)) {
|
|
17
|
-
this.dropdown.handleSelect(ev, { component: this });
|
|
18
|
-
if (mode === 'single' && closeOnSelect)
|
|
19
|
-
this.dropdown.isOpen = false;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
handleKeyup(ev) {
|
|
23
|
-
const { dropdown } = this;
|
|
24
|
-
const navigationKeys = [
|
|
25
|
-
'ArrowDown',
|
|
26
|
-
'ArrowLeft',
|
|
27
|
-
'ArrowRight',
|
|
28
|
-
'ArrowUp',
|
|
29
|
-
'Tab',
|
|
30
|
-
];
|
|
31
|
-
const { closeOnSelect, mode, selectOnFocus } = this.dropdown;
|
|
32
|
-
if (selectOnFocus && navigationKeys.includes(ev.key)) {
|
|
33
|
-
const hostElement = document.activeElement.closest('xpl-dropdown-option');
|
|
34
|
-
dropdown.handleSelect(ev, { component: { hostElement } });
|
|
35
|
-
if (mode === 'single' && closeOnSelect)
|
|
36
|
-
this.dropdown.isOpen = false;
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
const selectionKeys = ['Escape', 'Enter'];
|
|
40
|
-
if (selectionKeys.includes(ev.key)) {
|
|
41
|
-
dropdown.handleSelect(ev, { component: this });
|
|
42
|
-
if (this.dropdown.closeOnSelect)
|
|
43
|
-
this.dropdown.isOpen = false;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
connectedCallback() {
|
|
47
|
-
this.hostElement.addEventListener('click', this.handleClick.bind(this));
|
|
48
|
-
this.hostElement.addEventListener('keyup', this.handleKeyup.bind(this));
|
|
49
|
-
}
|
|
50
|
-
disconnectedCallback() {
|
|
51
|
-
this.hostElement.removeEventListener('click', this.handleClick);
|
|
52
|
-
this.hostElement.removeEventListener('keyup', this.handleKeyup);
|
|
53
|
-
}
|
|
54
|
-
render() {
|
|
55
|
-
const { label, isSelected, isDisabled } = this;
|
|
56
|
-
return (index.h(index.Host, { class: {
|
|
57
|
-
'xpl-dropdown-option': true,
|
|
58
|
-
'xpl-dropdown-option--disabled': isDisabled,
|
|
59
|
-
'xpl-dropdown-option--selected': isSelected,
|
|
60
|
-
}, role: "option", "aria-checked": isSelected, "aria-disabled": isDisabled, "aria-selected": isSelected }, index.h("li", { class: "xpl-dropdown-list-item" }, label || index.h("slot", { name: "option" }))));
|
|
61
|
-
}
|
|
62
|
-
get hostElement() { return index.getElement(this); }
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
exports.xpl_dropdown_option = XplDropdownOption;
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-88e58962.js');
|
|
6
|
-
|
|
7
|
-
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
8
|
-
var t = {};
|
|
9
|
-
for (var p in s)
|
|
10
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
11
|
-
t[p] = s[p];
|
|
12
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
13
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
14
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
15
|
-
t[p[i]] = s[p[i]];
|
|
16
|
-
}
|
|
17
|
-
return t;
|
|
18
|
-
};
|
|
19
|
-
const XplDropdown = class {
|
|
20
|
-
constructor(hostRef) {
|
|
21
|
-
index.registerInstance(this, hostRef);
|
|
22
|
-
/** text to display as heading */
|
|
23
|
-
// eslint-disable-next-line @stencil/strict-mutable
|
|
24
|
-
this.isOpen = false;
|
|
25
|
-
/** options that are listed */
|
|
26
|
-
this.closeOnSelect = true;
|
|
27
|
-
/** constant representing number of options that can be selected */
|
|
28
|
-
this.mode = 'single';
|
|
29
|
-
/** whether selection should be made when focusing on interactable element */
|
|
30
|
-
this.selectOnFocus = false;
|
|
31
|
-
this.handleClickOutside = ({ target }) => {
|
|
32
|
-
const { triggerId } = this;
|
|
33
|
-
const isTrigger = triggerId && target.id === triggerId;
|
|
34
|
-
const isInside = this.hostElement.contains(target);
|
|
35
|
-
if (!isInside && !isTrigger)
|
|
36
|
-
this.isOpen = false;
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* called on dropdown option click and keydown events to update isSelected states
|
|
41
|
-
*/
|
|
42
|
-
async handleSelect(e, { component }) {
|
|
43
|
-
const { hostElement, mode, options, update } = this;
|
|
44
|
-
const isSingle = mode === 'single';
|
|
45
|
-
const isMulti = mode === 'multi';
|
|
46
|
-
if (Boolean(options)) {
|
|
47
|
-
options
|
|
48
|
-
.reduce((acc, curr) => [
|
|
49
|
-
...acc,
|
|
50
|
-
...(curr.groupName ? curr.options : [curr]),
|
|
51
|
-
], [])
|
|
52
|
-
.forEach((option) => {
|
|
53
|
-
const isMatch = option.label === component.hostElement.label;
|
|
54
|
-
if (isSingle) {
|
|
55
|
-
option.isSelected = isMatch;
|
|
56
|
-
component.hostElement.isSelected = option.isSelected;
|
|
57
|
-
}
|
|
58
|
-
else if (isMulti && isMatch) {
|
|
59
|
-
option.isSelected = !option.isSelected;
|
|
60
|
-
component.hostElement.isSelected = option.isSelected;
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
const mapOptions = (option) => {
|
|
64
|
-
option.options = option.groupName
|
|
65
|
-
? option.options.map(mapOptions)
|
|
66
|
-
: undefined;
|
|
67
|
-
return option;
|
|
68
|
-
};
|
|
69
|
-
this.options = options.map(mapOptions);
|
|
70
|
-
}
|
|
71
|
-
else if (isSingle) {
|
|
72
|
-
const optionNodes = Array.from(hostElement.querySelectorAll('xpl-dropdown-option'));
|
|
73
|
-
optionNodes.forEach((node) => (node.isSelected = node === component.hostElement));
|
|
74
|
-
}
|
|
75
|
-
else if (isMulti) {
|
|
76
|
-
component.isSelected = !component.isSelected;
|
|
77
|
-
}
|
|
78
|
-
if (Boolean(update))
|
|
79
|
-
update(e, { component: this });
|
|
80
|
-
}
|
|
81
|
-
componentWillLoad() {
|
|
82
|
-
this.handleSelect = this.handleSelect.bind(this);
|
|
83
|
-
}
|
|
84
|
-
connectedCallback() {
|
|
85
|
-
document.addEventListener('mousedown', this.handleClickOutside.bind(this));
|
|
86
|
-
}
|
|
87
|
-
disconnectedCallback() {
|
|
88
|
-
document.removeEventListener('mousedown', this.handleClickOutside);
|
|
89
|
-
}
|
|
90
|
-
render() {
|
|
91
|
-
let { isOpen } = this;
|
|
92
|
-
const { mode, options } = this;
|
|
93
|
-
const hasOptions = options && options.length;
|
|
94
|
-
const mappedOptions = hasOptions &&
|
|
95
|
-
options.map((_a) => {
|
|
96
|
-
var { groupName, options } = _a, properties = __rest(_a, ["groupName", "options"]);
|
|
97
|
-
return groupName ? (index.h("xpl-dropdown-group", Object.assign({ groupName: groupName, options: options }, properties))) : (index.h("xpl-dropdown-option", Object.assign({}, properties)));
|
|
98
|
-
});
|
|
99
|
-
return (index.h(index.Host, { "aria-expanded": isOpen, class: {
|
|
100
|
-
'xpl-dropdown': true,
|
|
101
|
-
'xpl-dropdown--multi': mode === 'multi',
|
|
102
|
-
'xpl-dropdown--open': isOpen,
|
|
103
|
-
}, role: "listbox" }, index.h("ul", { class: "xpl-dropdown-list" }, mappedOptions || index.h("slot", { name: "options" }))));
|
|
104
|
-
}
|
|
105
|
-
get hostElement() { return index.getElement(this); }
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
exports.xpl_dropdown = XplDropdown;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-88e58962.js');
|
|
6
|
-
|
|
7
|
-
const XplNavItem = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
index.registerInstance(this, hostRef);
|
|
10
|
-
this.navOpen = index.createEvent(this, "navOpen", 7);
|
|
11
|
-
/**
|
|
12
|
-
* @property {boolean} - Whether or not the item should control the main nav state on click
|
|
13
|
-
*/
|
|
14
|
-
this.navControl = false;
|
|
15
|
-
}
|
|
16
|
-
onNavToggle() {
|
|
17
|
-
if (window.innerWidth <= 640) {
|
|
18
|
-
this.navOpen.emit(false);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
render() {
|
|
22
|
-
return (index.h(index.Host, { class: "xpl-nav-item", role: "listitem", onClick: () => {
|
|
23
|
-
if (this.navControl) {
|
|
24
|
-
this.onNavToggle();
|
|
25
|
-
}
|
|
26
|
-
} }, index.h("slot", { name: "link" }, index.h("slot", { name: "icon" }), index.h("slot", null))));
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
exports.xpl_nav_item = XplNavItem;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-88e58962.js');
|
|
6
|
-
const index$1 = require('./index-318d5fc7.js');
|
|
7
|
-
|
|
8
|
-
const XplRadio = class {
|
|
9
|
-
constructor(hostRef) {
|
|
10
|
-
index.registerInstance(this, hostRef);
|
|
11
|
-
this.radioChange = index.createEvent(this, "radioChange", 7);
|
|
12
|
-
this.id = index$1.v4();
|
|
13
|
-
}
|
|
14
|
-
render() {
|
|
15
|
-
return (index.h(index.Host, { class: {
|
|
16
|
-
'xpl-checkbox-radio-container': true,
|
|
17
|
-
styled: this.styled,
|
|
18
|
-
disabled: this.disabled,
|
|
19
|
-
} }, index.h("input", { class: "xpl-radio", type: "radio", checked: this.checked, disabled: this.disabled, id: this.id, name: this.name, required: this.required, value: this.value, onChange: () => this.radioChange.emit(true) }), index.h("label", { class: {
|
|
20
|
-
'xpl-label': true,
|
|
21
|
-
'xpl-label--disabled': this.disabled,
|
|
22
|
-
}, htmlFor: this.id }, index.h("slot", null), this.description && (index.h("small", { class: {
|
|
23
|
-
'xpl-description': true,
|
|
24
|
-
'xpl-description--disabled': this.disabled,
|
|
25
|
-
} }, this.description)))));
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
exports.xpl_radio = XplRadio;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-88e58962.js');
|
|
6
|
-
|
|
7
|
-
const XplSecondaryNav = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
index.registerInstance(this, hostRef);
|
|
10
|
-
}
|
|
11
|
-
render() {
|
|
12
|
-
return (index.h(index.Host, { class: "xpl-secondary-nav" }, index.h("nav", { "aria-label": "Secondary Nav" }, index.h("slot", null))));
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
exports.xpl_secondary_nav = XplSecondaryNav;
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-88e58962.js');
|
|
6
|
-
|
|
7
|
-
const XplTable = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
index.registerInstance(this, hostRef);
|
|
10
|
-
this.tableSelect = index.createEvent(this, "tableSelect", 7);
|
|
11
|
-
this.areAllSelected = false;
|
|
12
|
-
this.hasScrolled = false;
|
|
13
|
-
this.selectAll = (e) => {
|
|
14
|
-
const { target } = e;
|
|
15
|
-
if (!(target instanceof HTMLInputElement))
|
|
16
|
-
return;
|
|
17
|
-
const { checked } = target;
|
|
18
|
-
this.areAllSelected = checked;
|
|
19
|
-
this.selected = this.selected.map(() => checked);
|
|
20
|
-
this.onChange();
|
|
21
|
-
};
|
|
22
|
-
this.selectOne = (e, i) => {
|
|
23
|
-
const { target } = e;
|
|
24
|
-
if (!(target instanceof HTMLInputElement))
|
|
25
|
-
return;
|
|
26
|
-
const { checked } = target;
|
|
27
|
-
this.areAllSelected = false;
|
|
28
|
-
this.selected = this.selected.map((v, _i) => (_i === i ? checked : v));
|
|
29
|
-
this.onChange();
|
|
30
|
-
};
|
|
31
|
-
this.onChange = () => {
|
|
32
|
-
this.tableSelect.emit({
|
|
33
|
-
selected: this.selected,
|
|
34
|
-
areAllSelected: this.areAllSelected,
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
this.onScroll = () => {
|
|
38
|
-
this.hasScrolled = this.container.scrollLeft > 0;
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* TODO: Need to figure out how this interplays with data
|
|
42
|
-
* received from an API/server
|
|
43
|
-
*/
|
|
44
|
-
this.sortBy = (col, ascending = true) => {
|
|
45
|
-
this.rowData.sort((a, b) => {
|
|
46
|
-
const A = a[col];
|
|
47
|
-
const B = b[col];
|
|
48
|
-
if (typeof A === 'number' && typeof B === 'number') {
|
|
49
|
-
const f = ascending ? 1 : -1;
|
|
50
|
-
return A > B ? f : -f;
|
|
51
|
-
}
|
|
52
|
-
return -1;
|
|
53
|
-
});
|
|
54
|
-
this.rowData = Array.from(this.rowData);
|
|
55
|
-
this.render();
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
componentWillLoad() {
|
|
59
|
-
this.areAllSelected = false;
|
|
60
|
-
this.rowData = this.data !== undefined ? Array.from(this.data) : [];
|
|
61
|
-
this.selected = new Array(this.rowData.length).fill(false);
|
|
62
|
-
}
|
|
63
|
-
render() {
|
|
64
|
-
let className = 'xpl-table';
|
|
65
|
-
if (this.striped)
|
|
66
|
-
className += ' xpl-table--striped';
|
|
67
|
-
if (this.freeze)
|
|
68
|
-
className += ' xpl-table--freeze';
|
|
69
|
-
if (this.hasScrolled)
|
|
70
|
-
className += ' xpl-table--has-scrolled';
|
|
71
|
-
return (index.h(index.Host, null, index.h("div", { class: "xpl-table-container", onScroll: this.onScroll, ref: (el) => (this.container = el) }, index.h("table", { class: className }, this.columns && (index.h("thead", null, this.columns.map((column, i) => {
|
|
72
|
-
return (index.h("th", null, this.multiselect && i === 0 ? (index.h("label", { htmlFor: "__xpl-table-th" }, index.h("input", { checked: this.areAllSelected, id: "__xpl-table-th",
|
|
73
|
-
// appear indeterminate when at least one but not all
|
|
74
|
-
// are selected
|
|
75
|
-
indeterminate: !this
|
|
76
|
-
.areAllSelected &&
|
|
77
|
-
this.selected.some((a) => a), onChange: (e) => {
|
|
78
|
-
this.selectAll(e);
|
|
79
|
-
}, type: "checkbox" }), column)) : (column)));
|
|
80
|
-
}))), index.h("tbody", null, this.rowData.map((row, rowNum) => {
|
|
81
|
-
return (index.h("tr", { class: this.selected &&
|
|
82
|
-
this.selected[rowNum]
|
|
83
|
-
? 'xpl-table-row-selected'
|
|
84
|
-
: '' }, row.map((cell, i) => {
|
|
85
|
-
return (index.h("td", null, this.multiselect &&
|
|
86
|
-
i === 0 ? (index.h("label", { htmlFor: '__xpl-table-row-' +
|
|
87
|
-
rowNum }, index.h("input", { id: '__xpl-table-row-' +
|
|
88
|
-
rowNum, checked: this
|
|
89
|
-
.selected[rowNum], type: "checkbox", onChange: (e) => this.selectOne(e, rowNum) }), index.h("div", { innerHTML: cell }))) : (index.h("div", { innerHTML: cell }))));
|
|
90
|
-
})));
|
|
91
|
-
}))))));
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
exports.xpl_table = XplTable;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-88e58962.js');
|
|
6
|
-
|
|
7
|
-
const XplTag = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
index.registerInstance(this, hostRef);
|
|
10
|
-
this.close = index.createEvent(this, "close", 7);
|
|
11
|
-
}
|
|
12
|
-
render() {
|
|
13
|
-
return (index.h(index.Host, { class: "xpl-tag-container" }, index.h("button", { class: "xpl-tag", onClick: () => {
|
|
14
|
-
this.close.emit();
|
|
15
|
-
} }, index.h("slot", null)), index.h("button", { class: "xpl-tag__close", onClick: () => {
|
|
16
|
-
this.close.emit();
|
|
17
|
-
} }, "\u00D7")));
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
exports.xpl_tag = XplTag;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-88e58962.js');
|
|
6
|
-
|
|
7
|
-
const XplUtilityBar = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
index.registerInstance(this, hostRef);
|
|
10
|
-
this.navOpen = index.createEvent(this, "navOpen", 7);
|
|
11
|
-
this.open = true;
|
|
12
|
-
this.bars = `
|
|
13
|
-
<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="bars" class="svg-inline--fa fa-bars fa-w-14 xpl-utility-nav__bars" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"></path></svg>
|
|
14
|
-
`;
|
|
15
|
-
}
|
|
16
|
-
onNavToggle() {
|
|
17
|
-
this.open = !this.open;
|
|
18
|
-
this.navOpen.emit(this.open);
|
|
19
|
-
}
|
|
20
|
-
componentWillLoad() {
|
|
21
|
-
this.open =
|
|
22
|
-
this.isNavOpenAtStartup !== undefined
|
|
23
|
-
? this.isNavOpenAtStartup
|
|
24
|
-
: this.open;
|
|
25
|
-
}
|
|
26
|
-
render() {
|
|
27
|
-
return (index.h(index.Host, null, index.h("nav", { "aria-label": "utility navigation bar", class: "xpl-utility-bar" }, this.navControl ? (index.h("div", null, index.h("button", { class: "xpl-utility-bar__nav-control", onClick: () => this.onNavToggle(), innerHTML: `${this.bars}` }), index.h("slot", { name: "aside" }))) : (index.h("slot", { name: "aside" })), index.h("slot", { name: "main" }))));
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
exports.xpl_utility_bar = XplUtilityBar;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Stencil Client Patch Esm v2.8.0 | MIT Licensed | https://stenciljs.com
|
|
3
|
-
*/
|
|
4
|
-
var __assign=undefined&&undefined.__assign||function(){return (__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)},StyleNode=function(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector="";};function parse(e){return parseCss(lex(e=clean(e)),e)}function clean(e){return e.replace(RX.comments,"").replace(RX.port,"")}function lex(e){var t=new StyleNode;t.start=0,t.end=e.length;for(var r=t,n=0,s=e.length;n<s;n++)if(e[n]===OPEN_BRACE){r.rules||(r.rules=[]);var o=r,a=o.rules[o.rules.length-1]||null;(r=new StyleNode).start=n+1,r.parent=o,r.previous=a,o.rules.push(r);}else e[n]===CLOSE_BRACE&&(r.end=n+1,r=r.parent||t);return t}function parseCss(e,t){var r=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=r.trim(),e.parent){var n=e.previous?e.previous.end:e.parent.start;r=(r=(r=_expandUnicodeEscapes(r=t.substring(n,e.start-1))).replace(RX.multipleSpaces," ")).substring(r.lastIndexOf(";")+1);var s=e.parsedSelector=e.selector=r.trim();e.atRule=0===s.indexOf(AT_START),e.atRule?0===s.indexOf(MEDIA_START)?e.type=types.MEDIA_RULE:s.match(RX.keyframesRule)&&(e.type=types.KEYFRAMES_RULE,e.keyframesName=e.selector.split(RX.multipleSpaces).pop()):0===s.indexOf(VAR_START)?e.type=types.MIXIN_RULE:e.type=types.STYLE_RULE;}var o=e.rules;if(o)for(var a=0,i=o.length,l=void 0;a<i&&(l=o[a]);a++)parseCss(l,t);return e}function _expandUnicodeEscapes(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){for(var e=arguments[1],t=6-e.length;t--;)e="0"+e;return "\\"+e}))}var types={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},OPEN_BRACE="{",CLOSE_BRACE="}",RX={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},VAR_START="--",MEDIA_START="@media",AT_START="@";function findRegex(e,t,r){e.lastIndex=0;var n=t.substring(r).match(e);if(n){var s=r+n.index;return {start:s,end:s+n[0].length}}return null}var VAR_USAGE_START=/\bvar\(/,VAR_ASSIGN_START=/\B--[\w-]+\s*:/,COMMENTS=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,TRAILING_LINES=/^[\t ]+\n/gm;function resolveVar(e,t,r){return e[t]?e[t]:r?executeTemplate(r,e):""}function findVarEndIndex(e,t){for(var r=0,n=t;n<e.length;n++){var s=e[n];if("("===s)r++;else if(")"===s&&--r<=0)return n+1}return n}function parseVar(e,t){var r=findRegex(VAR_USAGE_START,e,t);if(!r)return null;var n=findVarEndIndex(e,r.start),s=e.substring(r.end,n-1).split(","),o=s[0],a=s.slice(1);return {start:r.start,end:n,propName:o.trim(),fallback:a.length>0?a.join(",").trim():void 0}}function compileVar(e,t,r){var n=parseVar(e,r);if(!n)return t.push(e.substring(r,e.length)),e.length;var s=n.propName,o=null!=n.fallback?compileTemplate(n.fallback):void 0;return t.push(e.substring(r,n.start),(function(e){return resolveVar(e,s,o)})),n.end}function executeTemplate(e,t){for(var r="",n=0;n<e.length;n++){var s=e[n];r+="string"==typeof s?s:s(t);}return r}function findEndValue(e,t){for(var r=!1,n=!1,s=t;s<e.length;s++){var o=e[s];if(r)n&&'"'===o&&(r=!1),n||"'"!==o||(r=!1);else if('"'===o)r=!0,n=!0;else if("'"===o)r=!0,n=!1;else {if(";"===o)return s+1;if("}"===o)return s}}return s}function removeCustomAssigns(e){for(var t="",r=0;;){var n=findRegex(VAR_ASSIGN_START,e,r),s=n?n.start:e.length;if(t+=e.substring(r,s),!n)break;r=findEndValue(e,s);}return t}function compileTemplate(e){var t=0;e=removeCustomAssigns(e=e.replace(COMMENTS,"")).replace(TRAILING_LINES,"");for(var r=[];t<e.length;)t=compileVar(e,r,t);return r}function resolveValues(e){var t={};e.forEach((function(e){e.declarations.forEach((function(e){t[e.prop]=e.value;}));}));for(var r={},n=Object.entries(t),s=function(e){var t=!1;if(n.forEach((function(e){var n=e[0],s=executeTemplate(e[1],r);s!==r[n]&&(r[n]=s,t=!0);})),!t)return "break"},o=0;o<10;o++){if("break"===s())break}return r}function getSelectors(e,t){if(void 0===t&&(t=0),!e.rules)return [];var r=[];return e.rules.filter((function(e){return e.type===types.STYLE_RULE})).forEach((function(e){var n=getDeclarations(e.cssText);n.length>0&&e.parsedSelector.split(",").forEach((function(e){e=e.trim(),r.push({selector:e,declarations:n,specificity:computeSpecificity(),nu:t});})),t++;})),r}function computeSpecificity(e){return 1}var IMPORTANT="!important",FIND_DECLARATIONS=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;function getDeclarations(e){for(var t,r=[];t=FIND_DECLARATIONS.exec(e.trim());){var n=normalizeValue(t[2]),s=n.value,o=n.important;r.push({prop:t[1].trim(),value:compileTemplate(s),important:o});}return r}function normalizeValue(e){var t=(e=e.replace(/\s+/gim," ").trim()).endsWith(IMPORTANT);return t&&(e=e.substr(0,e.length-IMPORTANT.length).trim()),{value:e,important:t}}function getActiveSelectors(e,t,r){var n=[],s=getScopesForElement(t,e);return r.forEach((function(e){return n.push(e)})),s.forEach((function(e){return n.push(e)})),sortSelectors(getSelectorsForScopes(n).filter((function(t){return matches(e,t.selector)})))}function getScopesForElement(e,t){for(var r=[];t;){var n=e.get(t);n&&r.push(n),t=t.parentElement;}return r}function getSelectorsForScopes(e){var t=[];return e.forEach((function(e){t.push.apply(t,e.selectors);})),t}function sortSelectors(e){return e.sort((function(e,t){return e.specificity===t.specificity?e.nu-t.nu:e.specificity-t.specificity})),e}function matches(e,t){return ":root"===t||"html"===t||e.matches(t)}function parseCSS(e){var t=parse(e),r=compileTemplate(e);return {original:e,template:r,selectors:getSelectors(t),usesCssVars:r.length>1}}function addGlobalStyle(e,t){if(e.some((function(e){return e.styleEl===t})))return !1;var r=parseCSS(t.textContent);return r.styleEl=t,e.push(r),!0}function updateGlobalScopes(e){var t=resolveValues(getSelectorsForScopes(e));e.forEach((function(e){e.usesCssVars&&(e.styleEl.textContent=executeTemplate(e.template,t));}));}function reScope(e,t){var r=e.template.map((function(r){return "string"==typeof r?replaceScope(r,e.scopeId,t):r})),n=e.selectors.map((function(r){return __assign(__assign({},r),{selector:replaceScope(r.selector,e.scopeId,t)})}));return __assign(__assign({},e),{template:r,selectors:n,scopeId:t})}function replaceScope(e,t,r){return e=replaceAll(e,"\\."+t,"."+r)}function replaceAll(e,t,r){return e.replace(new RegExp(t,"g"),r)}function loadDocument(e,t){return loadDocumentStyles(e,t),loadDocumentLinks(e,t).then((function(){updateGlobalScopes(t);}))}function startWatcher(e,t){"undefined"!=typeof MutationObserver&&new MutationObserver((function(){loadDocumentStyles(e,t)&&updateGlobalScopes(t);})).observe(document.head,{childList:!0});}function loadDocumentLinks(e,t){for(var r=[],n=e.querySelectorAll('link[rel="stylesheet"][href]:not([data-no-shim])'),s=0;s<n.length;s++)r.push(addGlobalLink(e,t,n[s]));return Promise.all(r)}function loadDocumentStyles(e,t){return Array.from(e.querySelectorAll("style:not([data-styles]):not([data-no-shim])")).map((function(e){return addGlobalStyle(t,e)})).some(Boolean)}function addGlobalLink(e,t,r){var n=r.href;return fetch(n).then((function(e){return e.text()})).then((function(s){if(hasCssVariables(s)&&r.parentNode){hasRelativeUrls(s)&&(s=fixRelativeUrls(s,n));var o=e.createElement("style");o.setAttribute("data-styles",""),o.textContent=s,addGlobalStyle(t,o),r.parentNode.insertBefore(o,r),r.remove();}})).catch((function(e){console.error(e);}))}var CSS_VARIABLE_REGEXP=/[\s;{]--[-a-zA-Z0-9]+\s*:/m;function hasCssVariables(e){return e.indexOf("var(")>-1||CSS_VARIABLE_REGEXP.test(e)}var CSS_URL_REGEXP=/url[\s]*\([\s]*['"]?(?!(?:https?|data)\:|\/)([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim;function hasRelativeUrls(e){return CSS_URL_REGEXP.lastIndex=0,CSS_URL_REGEXP.test(e)}function fixRelativeUrls(e,t){var r=t.replace(/[^/]*$/,"");return e.replace(CSS_URL_REGEXP,(function(e,t){var n=r+t;return e.replace(t,n)}))}var CustomStyle=function(){function e(e,t){this.win=e,this.doc=t,this.count=0,this.hostStyleMap=new WeakMap,this.hostScopeMap=new WeakMap,this.globalScopes=[],this.scopesMap=new Map,this.didInit=!1;}return e.prototype.i=function(){var e=this;return this.didInit||!this.win.requestAnimationFrame?Promise.resolve():(this.didInit=!0,new Promise((function(t){e.win.requestAnimationFrame((function(){startWatcher(e.doc,e.globalScopes),loadDocument(e.doc,e.globalScopes).then((function(){return t()}));}));})))},e.prototype.addLink=function(e){var t=this;return addGlobalLink(this.doc,this.globalScopes,e).then((function(){t.updateGlobal();}))},e.prototype.addGlobalStyle=function(e){addGlobalStyle(this.globalScopes,e)&&this.updateGlobal();},e.prototype.createHostStyle=function(e,t,r,n){if(this.hostScopeMap.has(e))throw new Error("host style already created");var s=this.registerHostTemplate(r,t,n),o=this.doc.createElement("style");return o.setAttribute("data-no-shim",""),s.usesCssVars?n?(o["s-sc"]=t=s.scopeId+"-"+this.count,o.textContent="/*needs update*/",this.hostStyleMap.set(e,o),this.hostScopeMap.set(e,reScope(s,t)),this.count++):(s.styleEl=o,s.usesCssVars||(o.textContent=executeTemplate(s.template,{})),this.globalScopes.push(s),this.updateGlobal(),this.hostScopeMap.set(e,s)):o.textContent=r,o},e.prototype.removeHost=function(e){var t=this.hostStyleMap.get(e);t&&t.remove(),this.hostStyleMap.delete(e),this.hostScopeMap.delete(e);},e.prototype.updateHost=function(e){var t=this.hostScopeMap.get(e);if(t&&t.usesCssVars&&t.isScoped){var r=this.hostStyleMap.get(e);if(r){var n=resolveValues(getActiveSelectors(e,this.hostScopeMap,this.globalScopes));r.textContent=executeTemplate(t.template,n);}}},e.prototype.updateGlobal=function(){updateGlobalScopes(this.globalScopes);},e.prototype.registerHostTemplate=function(e,t,r){var n=this.scopesMap.get(t);return n||((n=parseCSS(e)).scopeId=t,n.isScoped=r,this.scopesMap.set(t,n)),n},e}();!function(e){!e||e.__cssshim||e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")||(e.__cssshim=new CustomStyle(e,e.document));}("undefined"!=typeof window&&window);
|
package/dist/esm/dom-1f98a75f.js
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Stencil Client Patch Browser v2.8.0 | MIT Licensed | https://stenciljs.com
|
|
3
|
-
*/
|
|
4
|
-
(function(){
|
|
5
|
-
var aa=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));function g(a){var b=aa.has(a);a=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(a);return !b&&a}function l(a){var b=a.isConnected;if(void 0!==b)return b;for(;a&&!(a.__CE_isImportDocument||a instanceof Document);)a=a.parentNode||(window.ShadowRoot&&a instanceof ShadowRoot?a.host:void 0);return !(!a||!(a.__CE_isImportDocument||a instanceof Document))}
|
|
6
|
-
function n(a,b){for(;b&&b!==a&&!b.nextSibling;)b=b.parentNode;return b&&b!==a?b.nextSibling:null}
|
|
7
|
-
function p(a,b,d){d=void 0===d?new Set:d;for(var c=a;c;){if(c.nodeType===Node.ELEMENT_NODE){var e=c;b(e);var f=e.localName;if("link"===f&&"import"===e.getAttribute("rel")){c=e.import;if(c instanceof Node&&!d.has(c))for(d.add(c),c=c.firstChild;c;c=c.nextSibling)p(c,b,d);c=n(a,e);continue}else if("template"===f){c=n(a,e);continue}if(e=e.__CE_shadowRoot)for(e=e.firstChild;e;e=e.nextSibling)p(e,b,d);}c=c.firstChild?c.firstChild:n(a,c);}}function r(a,b,d){a[b]=d;}function u(){this.a=new Map;this.g=new Map;this.c=[];this.f=[];this.b=!1;}function ba(a,b,d){a.a.set(b,d);a.g.set(d.constructorFunction,d);}function ca(a,b){a.b=!0;a.c.push(b);}function da(a,b){a.b=!0;a.f.push(b);}function v(a,b){a.b&&p(b,function(b){return w(a,b)});}function w(a,b){if(a.b&&!b.__CE_patched){b.__CE_patched=!0;for(var d=0;d<a.c.length;d++)a.c[d](b);for(d=0;d<a.f.length;d++)a.f[d](b);}}
|
|
8
|
-
function x(a,b){var d=[];p(b,function(b){return d.push(b)});for(b=0;b<d.length;b++){var c=d[b];1===c.__CE_state?a.connectedCallback(c):y(a,c);}}function z(a,b){var d=[];p(b,function(b){return d.push(b)});for(b=0;b<d.length;b++){var c=d[b];1===c.__CE_state&&a.disconnectedCallback(c);}}
|
|
9
|
-
function A(a,b,d){d=void 0===d?{}:d;var c=d.u||new Set,e=d.i||function(b){return y(a,b)},f=[];p(b,function(b){if("link"===b.localName&&"import"===b.getAttribute("rel")){var d=b.import;d instanceof Node&&(d.__CE_isImportDocument=!0,d.__CE_hasRegistry=!0);d&&"complete"===d.readyState?d.__CE_documentLoadHandled=!0:b.addEventListener("load",function(){var d=b.import;if(!d.__CE_documentLoadHandled){d.__CE_documentLoadHandled=!0;var f=new Set(c);f.delete(d);A(a,d,{u:f,i:e});}});}else f.push(b);},c);if(a.b)for(b=
|
|
10
|
-
0;b<f.length;b++)w(a,f[b]);for(b=0;b<f.length;b++)e(f[b]);}
|
|
11
|
-
function y(a,b){if(void 0===b.__CE_state){var d=b.ownerDocument;if(d.defaultView||d.__CE_isImportDocument&&d.__CE_hasRegistry)if(d=a.a.get(b.localName)){d.constructionStack.push(b);var c=d.constructorFunction;try{try{if(new c!==b)throw Error("The custom element constructor did not produce the element being upgraded.");}finally{d.constructionStack.pop();}}catch(t){throw b.__CE_state=2,t;}b.__CE_state=1;b.__CE_definition=d;if(d.attributeChangedCallback)for(d=d.observedAttributes,c=0;c<d.length;c++){var e=
|
|
12
|
-
d[c],f=b.getAttribute(e);null!==f&&a.attributeChangedCallback(b,e,null,f,null);}l(b)&&a.connectedCallback(b);}}}u.prototype.connectedCallback=function(a){var b=a.__CE_definition;b.connectedCallback&&b.connectedCallback.call(a);};u.prototype.disconnectedCallback=function(a){var b=a.__CE_definition;b.disconnectedCallback&&b.disconnectedCallback.call(a);};
|
|
13
|
-
u.prototype.attributeChangedCallback=function(a,b,d,c,e){var f=a.__CE_definition;f.attributeChangedCallback&&-1<f.observedAttributes.indexOf(b)&&f.attributeChangedCallback.call(a,b,d,c,e);};function B(a){var b=document;this.c=a;this.a=b;this.b=void 0;A(this.c,this.a);"loading"===this.a.readyState&&(this.b=new MutationObserver(this.f.bind(this)),this.b.observe(this.a,{childList:!0,subtree:!0}));}function C(a){a.b&&a.b.disconnect();}B.prototype.f=function(a){var b=this.a.readyState;"interactive"!==b&&"complete"!==b||C(this);for(b=0;b<a.length;b++)for(var d=a[b].addedNodes,c=0;c<d.length;c++)A(this.c,d[c]);};function ea(){var a=this;this.b=this.a=void 0;this.c=new Promise(function(b){a.b=b;a.a&&b(a.a);});}function D(a){if(a.a)throw Error("Already resolved.");a.a=void 0;a.b&&a.b(void 0);}function E(a){this.c=!1;this.a=a;this.j=new Map;this.f=function(b){return b()};this.b=!1;this.g=[];this.o=new B(a);}
|
|
14
|
-
E.prototype.l=function(a,b){var d=this;if(!(b instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!g(a))throw new SyntaxError("The element name '"+a+"' is not valid.");if(this.a.a.get(a))throw Error("A custom element with name '"+a+"' has already been defined.");if(this.c)throw Error("A custom element is already being defined.");this.c=!0;try{var c=function(b){var a=e[b];if(void 0!==a&&!(a instanceof Function))throw Error("The '"+b+"' callback must be a function.");
|
|
15
|
-
return a},e=b.prototype;if(!(e instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var f=c("connectedCallback");var t=c("disconnectedCallback");var k=c("adoptedCallback");var h=c("attributeChangedCallback");var m=b.observedAttributes||[];}catch(q){return}finally{this.c=!1;}b={localName:a,constructorFunction:b,connectedCallback:f,disconnectedCallback:t,adoptedCallback:k,attributeChangedCallback:h,observedAttributes:m,constructionStack:[]};ba(this.a,
|
|
16
|
-
a,b);this.g.push(b);this.b||(this.b=!0,this.f(function(){return fa(d)}));};E.prototype.i=function(a){A(this.a,a);};
|
|
17
|
-
function fa(a){if(!1!==a.b){a.b=!1;for(var b=a.g,d=[],c=new Map,e=0;e<b.length;e++)c.set(b[e].localName,[]);A(a.a,document,{i:function(b){if(void 0===b.__CE_state){var e=b.localName,f=c.get(e);f?f.push(b):a.a.a.get(e)&&d.push(b);}}});for(e=0;e<d.length;e++)y(a.a,d[e]);for(;0<b.length;){var f=b.shift();e=f.localName;f=c.get(f.localName);for(var t=0;t<f.length;t++)y(a.a,f[t]);(e=a.j.get(e))&&D(e);}}}E.prototype.get=function(a){if(a=this.a.a.get(a))return a.constructorFunction};
|
|
18
|
-
E.prototype.m=function(a){if(!g(a))return Promise.reject(new SyntaxError("'"+a+"' is not a valid custom element name."));var b=this.j.get(a);if(b)return b.c;b=new ea;this.j.set(a,b);this.a.a.get(a)&&!this.g.some(function(b){return b.localName===a})&&D(b);return b.c};E.prototype.s=function(a){C(this.o);var b=this.f;this.f=function(d){return a(function(){return b(d)})};};window.CustomElementRegistry=E;E.prototype.define=E.prototype.l;E.prototype.upgrade=E.prototype.i;E.prototype.get=E.prototype.get;
|
|
19
|
-
E.prototype.whenDefined=E.prototype.m;E.prototype.polyfillWrapFlushCallback=E.prototype.s;var F=window.Document.prototype.createElement,G=window.Document.prototype.createElementNS,ha=window.Document.prototype.importNode,ia=window.Document.prototype.prepend,ja=window.Document.prototype.append,ka=window.DocumentFragment.prototype.prepend,la=window.DocumentFragment.prototype.append,H=window.Node.prototype.cloneNode,I=window.Node.prototype.appendChild,J=window.Node.prototype.insertBefore,K=window.Node.prototype.removeChild,L=window.Node.prototype.replaceChild,M=Object.getOwnPropertyDescriptor(window.Node.prototype,
|
|
20
|
-
"textContent"),N=window.Element.prototype.attachShadow,O=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),P=window.Element.prototype.getAttribute,Q=window.Element.prototype.setAttribute,R=window.Element.prototype.removeAttribute,S=window.Element.prototype.getAttributeNS,T=window.Element.prototype.setAttributeNS,U=window.Element.prototype.removeAttributeNS,ma=window.Element.prototype.insertAdjacentElement,na=window.Element.prototype.insertAdjacentHTML,oa=window.Element.prototype.prepend,
|
|
21
|
-
pa=window.Element.prototype.append,V=window.Element.prototype.before,qa=window.Element.prototype.after,ra=window.Element.prototype.replaceWith,sa=window.Element.prototype.remove,ta=window.HTMLElement,W=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),ua=window.HTMLElement.prototype.insertAdjacentElement,va=window.HTMLElement.prototype.insertAdjacentHTML;var wa=new function(){};function xa(){var a=X;window.HTMLElement=function(){function b(){var b=this.constructor,c=a.g.get(b);if(!c)throw Error("The custom element being constructed was not registered with `customElements`.");var e=c.constructionStack;if(0===e.length)return e=F.call(document,c.localName),Object.setPrototypeOf(e,b.prototype),e.__CE_state=1,e.__CE_definition=c,w(a,e),e;c=e.length-1;var f=e[c];if(f===wa)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");
|
|
22
|
-
e[c]=wa;Object.setPrototypeOf(f,b.prototype);w(a,f);return f}b.prototype=ta.prototype;Object.defineProperty(b.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:b});return b}();}function Y(a,b,d){function c(b){return function(d){for(var e=[],c=0;c<arguments.length;++c)e[c]=arguments[c];c=[];for(var f=[],m=0;m<e.length;m++){var q=e[m];q instanceof Element&&l(q)&&f.push(q);if(q instanceof DocumentFragment)for(q=q.firstChild;q;q=q.nextSibling)c.push(q);else c.push(q);}b.apply(this,e);for(e=0;e<f.length;e++)z(a,f[e]);if(l(this))for(e=0;e<c.length;e++)f=c[e],f instanceof Element&&x(a,f);}}void 0!==d.h&&(b.prepend=c(d.h));void 0!==d.append&&(b.append=c(d.append));}function ya(){var a=X;r(Document.prototype,"createElement",function(b){if(this.__CE_hasRegistry){var d=a.a.get(b);if(d)return new d.constructorFunction}b=F.call(this,b);w(a,b);return b});r(Document.prototype,"importNode",function(b,d){b=ha.call(this,b,!!d);this.__CE_hasRegistry?A(a,b):v(a,b);return b});r(Document.prototype,"createElementNS",function(b,d){if(this.__CE_hasRegistry&&(null===b||"http://www.w3.org/1999/xhtml"===b)){var c=a.a.get(d);if(c)return new c.constructorFunction}b=G.call(this,b,
|
|
23
|
-
d);w(a,b);return b});Y(a,Document.prototype,{h:ia,append:ja});}function za(){function a(a,c){Object.defineProperty(a,"textContent",{enumerable:c.enumerable,configurable:!0,get:c.get,set:function(a){if(this.nodeType===Node.TEXT_NODE)c.set.call(this,a);else {var d=void 0;if(this.firstChild){var e=this.childNodes,k=e.length;if(0<k&&l(this)){d=Array(k);for(var h=0;h<k;h++)d[h]=e[h];}}c.set.call(this,a);if(d)for(a=0;a<d.length;a++)z(b,d[a]);}}});}var b=X;r(Node.prototype,"insertBefore",function(a,c){if(a instanceof DocumentFragment){var e=Array.prototype.slice.apply(a.childNodes);
|
|
24
|
-
a=J.call(this,a,c);if(l(this))for(c=0;c<e.length;c++)x(b,e[c]);return a}e=l(a);c=J.call(this,a,c);e&&z(b,a);l(this)&&x(b,a);return c});r(Node.prototype,"appendChild",function(a){if(a instanceof DocumentFragment){var c=Array.prototype.slice.apply(a.childNodes);a=I.call(this,a);if(l(this))for(var e=0;e<c.length;e++)x(b,c[e]);return a}c=l(a);e=I.call(this,a);c&&z(b,a);l(this)&&x(b,a);return e});r(Node.prototype,"cloneNode",function(a){a=H.call(this,!!a);this.ownerDocument.__CE_hasRegistry?A(b,a):v(b,
|
|
25
|
-
a);return a});r(Node.prototype,"removeChild",function(a){var c=l(a),e=K.call(this,a);c&&z(b,a);return e});r(Node.prototype,"replaceChild",function(a,c){if(a instanceof DocumentFragment){var e=Array.prototype.slice.apply(a.childNodes);a=L.call(this,a,c);if(l(this))for(z(b,c),c=0;c<e.length;c++)x(b,e[c]);return a}e=l(a);var f=L.call(this,a,c),d=l(this);d&&z(b,c);e&&z(b,a);d&&x(b,a);return f});M&&M.get?a(Node.prototype,M):ca(b,function(b){a(b,{enumerable:!0,configurable:!0,get:function(){for(var a=[],
|
|
26
|
-
b=0;b<this.childNodes.length;b++){var f=this.childNodes[b];f.nodeType!==Node.COMMENT_NODE&&a.push(f.textContent);}return a.join("")},set:function(a){for(;this.firstChild;)K.call(this,this.firstChild);null!=a&&""!==a&&I.call(this,document.createTextNode(a));}});});}function Aa(a){function b(b){return function(e){for(var c=[],d=0;d<arguments.length;++d)c[d]=arguments[d];d=[];for(var k=[],h=0;h<c.length;h++){var m=c[h];m instanceof Element&&l(m)&&k.push(m);if(m instanceof DocumentFragment)for(m=m.firstChild;m;m=m.nextSibling)d.push(m);else d.push(m);}b.apply(this,c);for(c=0;c<k.length;c++)z(a,k[c]);if(l(this))for(c=0;c<d.length;c++)k=d[c],k instanceof Element&&x(a,k);}}var d=Element.prototype;void 0!==V&&(d.before=b(V));void 0!==V&&(d.after=b(qa));void 0!==ra&&
|
|
27
|
-
r(d,"replaceWith",function(b){for(var e=[],c=0;c<arguments.length;++c)e[c]=arguments[c];c=[];for(var d=[],k=0;k<e.length;k++){var h=e[k];h instanceof Element&&l(h)&&d.push(h);if(h instanceof DocumentFragment)for(h=h.firstChild;h;h=h.nextSibling)c.push(h);else c.push(h);}k=l(this);ra.apply(this,e);for(e=0;e<d.length;e++)z(a,d[e]);if(k)for(z(a,this),e=0;e<c.length;e++)d=c[e],d instanceof Element&&x(a,d);});void 0!==sa&&r(d,"remove",function(){var b=l(this);sa.call(this);b&&z(a,this);});}function Ba(){function a(a,b){Object.defineProperty(a,"innerHTML",{enumerable:b.enumerable,configurable:!0,get:b.get,set:function(a){var e=this,d=void 0;l(this)&&(d=[],p(this,function(a){a!==e&&d.push(a);}));b.set.call(this,a);if(d)for(var f=0;f<d.length;f++){var t=d[f];1===t.__CE_state&&c.disconnectedCallback(t);}this.ownerDocument.__CE_hasRegistry?A(c,this):v(c,this);return a}});}function b(a,b){r(a,"insertAdjacentElement",function(a,e){var d=l(e);a=b.call(this,a,e);d&&z(c,e);l(a)&&x(c,e);return a});}
|
|
28
|
-
function d(a,b){function e(a,b){for(var e=[];a!==b;a=a.nextSibling)e.push(a);for(b=0;b<e.length;b++)A(c,e[b]);}r(a,"insertAdjacentHTML",function(a,c){a=a.toLowerCase();if("beforebegin"===a){var d=this.previousSibling;b.call(this,a,c);e(d||this.parentNode.firstChild,this);}else if("afterbegin"===a)d=this.firstChild,b.call(this,a,c),e(this.firstChild,d);else if("beforeend"===a)d=this.lastChild,b.call(this,a,c),e(d||this.firstChild,null);else if("afterend"===a)d=this.nextSibling,b.call(this,a,c),e(this.nextSibling,
|
|
29
|
-
d);else throw new SyntaxError("The value provided ("+String(a)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");});}var c=X;N&&r(Element.prototype,"attachShadow",function(a){a=N.call(this,a);var b=c;if(b.b&&!a.__CE_patched){a.__CE_patched=!0;for(var e=0;e<b.c.length;e++)b.c[e](a);}return this.__CE_shadowRoot=a});O&&O.get?a(Element.prototype,O):W&&W.get?a(HTMLElement.prototype,W):da(c,function(b){a(b,{enumerable:!0,configurable:!0,get:function(){return H.call(this,!0).innerHTML},
|
|
30
|
-
set:function(a){var b="template"===this.localName,c=b?this.content:this,e=G.call(document,this.namespaceURI,this.localName);for(e.innerHTML=a;0<c.childNodes.length;)K.call(c,c.childNodes[0]);for(a=b?e.content:e;0<a.childNodes.length;)I.call(c,a.childNodes[0]);}});});r(Element.prototype,"setAttribute",function(a,b){if(1!==this.__CE_state)return Q.call(this,a,b);var e=P.call(this,a);Q.call(this,a,b);b=P.call(this,a);c.attributeChangedCallback(this,a,e,b,null);});r(Element.prototype,"setAttributeNS",function(a,
|
|
31
|
-
b,d){if(1!==this.__CE_state)return T.call(this,a,b,d);var e=S.call(this,a,b);T.call(this,a,b,d);d=S.call(this,a,b);c.attributeChangedCallback(this,b,e,d,a);});r(Element.prototype,"removeAttribute",function(a){if(1!==this.__CE_state)return R.call(this,a);var b=P.call(this,a);R.call(this,a);null!==b&&c.attributeChangedCallback(this,a,b,null,null);});r(Element.prototype,"removeAttributeNS",function(a,b){if(1!==this.__CE_state)return U.call(this,a,b);var d=S.call(this,a,b);U.call(this,a,b);var e=S.call(this,
|
|
32
|
-
a,b);d!==e&&c.attributeChangedCallback(this,b,d,e,a);});ua?b(HTMLElement.prototype,ua):ma?b(Element.prototype,ma):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched.");va?d(HTMLElement.prototype,va):na?d(Element.prototype,na):console.warn("Custom Elements: `Element#insertAdjacentHTML` was not patched.");Y(c,Element.prototype,{h:oa,append:pa});Aa(c);}var Z=window.customElements;if(!Z||Z.forcePolyfill||"function"!=typeof Z.define||"function"!=typeof Z.get){var X=new u;xa();ya();Y(X,DocumentFragment.prototype,{h:ka,append:la});za();Ba();document.__CE_hasRegistry=!0;var customElements=new E(X);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:customElements});}}).call(self);
|
|
33
|
-
|
|
34
|
-
// Polyfill document.baseURI
|
|
35
|
-
"string"!==typeof document.baseURI&&Object.defineProperty(Document.prototype,"baseURI",{enumerable:!0,configurable:!0,get:function(){var a=document.querySelector("base");return a&&a.href?a.href:document.URL}});
|
|
36
|
-
|
|
37
|
-
// Polyfill CustomEvent
|
|
38
|
-
"function"!==typeof window.CustomEvent&&(window.CustomEvent=function(c,a){a=a||{bubbles:!1,cancelable:!1,detail:void 0};var b=document.createEvent("CustomEvent");b.initCustomEvent(c,a.bubbles,a.cancelable,a.detail);return b},window.CustomEvent.prototype=window.Event.prototype);
|
|
39
|
-
|
|
40
|
-
// Event.composedPath
|
|
41
|
-
(function(b,c,d){b.composedPath||(b.composedPath=function(){if(this.path)return this.path;var a=this.target;for(this.path=[];null!==a.parentNode;)this.path.push(a),a=a.parentNode;this.path.push(c,d);return this.path});})(Event.prototype,document,window);
|
|
42
|
-
|
|
43
|
-
/*!
|
|
44
|
-
Element.closest and Element.matches
|
|
45
|
-
https://github.com/jonathantneal/closest
|
|
46
|
-
Creative Commons Zero v1.0 Universal
|
|
47
|
-
*/
|
|
48
|
-
(function(a){"function"!==typeof a.matches&&(a.matches=a.msMatchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||function(a){a=(this.document||this.ownerDocument).querySelectorAll(a);for(var b=0;a[b]&&a[b]!==this;)++b;return !!a[b]});"function"!==typeof a.closest&&(a.closest=function(a){for(var b=this;b&&1===b.nodeType;){if(b.matches(a))return b;b=b.parentNode;}return null});})(window.Element.prototype);
|
|
49
|
-
|
|
50
|
-
/*!
|
|
51
|
-
Element.getRootNode()
|
|
52
|
-
*/
|
|
53
|
-
(function(c){function d(a){a=b(a);return a&&11===a.nodeType?d(a.host):a}function b(a){return a&&a.parentNode?b(a.parentNode):a}"function"!==typeof c.getRootNode&&(c.getRootNode=function(a){return a&&a.composed?d(this):b(this)});})(Element.prototype);
|
|
54
|
-
|
|
55
|
-
/*!
|
|
56
|
-
Element.isConnected()
|
|
57
|
-
*/
|
|
58
|
-
(function(a){"isConnected"in a||Object.defineProperty(a,"isConnected",{configurable:!0,enumerable:!0,get:function(){var a=this.getRootNode({composed:!0});return a&&9===a.nodeType}});})(Element.prototype);
|
|
59
|
-
|
|
60
|
-
/*!
|
|
61
|
-
Element.remove()
|
|
62
|
-
*/
|
|
63
|
-
(function(b){b.forEach(function(a){a.hasOwnProperty("remove")||Object.defineProperty(a,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this);}});});})([Element.prototype,CharacterData.prototype,DocumentType.prototype]);
|
|
64
|
-
|
|
65
|
-
/*!
|
|
66
|
-
Element.classList
|
|
67
|
-
*/
|
|
68
|
-
!function(e){'classList'in e||Object.defineProperty(e,"classList",{get:function(){var e=this,t=(e.getAttribute("class")||"").replace(/^\s+|\s$/g,"").split(/\s+/g);function n(){t.length>0?e.setAttribute("class",t.join(" ")):e.removeAttribute("class");}return ""===t[0]&&t.splice(0,1),t.toggle=function(e,i){void 0!==i?i?t.add(e):t.remove(e):-1!==t.indexOf(e)?t.splice(t.indexOf(e),1):t.push(e),n();},t.add=function(){for(var e=[].slice.call(arguments),i=0,s=e.length;i<s;i++)-1===t.indexOf(e[i])&&t.push(e[i]);n();},t.remove=function(){for(var e=[].slice.call(arguments),i=0,s=e.length;i<s;i++)-1!==t.indexOf(e[i])&&t.splice(t.indexOf(e[i]),1);n();},t.item=function(e){return t[e]},t.contains=function(e){return -1!==t.indexOf(e)},t.replace=function(e,i){-1!==t.indexOf(e)&&t.splice(t.indexOf(e),1,i),n();},t.value=e.getAttribute("class")||"",t}});}(Element.prototype);
|
|
69
|
-
|
|
70
|
-
/*!
|
|
71
|
-
DOMTokenList
|
|
72
|
-
*/
|
|
73
|
-
(function(b){try{document.body.classList.add();}catch(e){var c=b.add,d=b.remove;b.add=function(){for(var a=0;a<arguments.length;a++)c.call(this,arguments[a]);};b.remove=function(){for(var a=0;a<arguments.length;a++)d.call(this,arguments[a]);};}})(DOMTokenList.prototype);
|