@revolist/revogrid 3.2.4 → 3.2.7

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 (213) hide show
  1. package/custom-element/index.js +29217 -0
  2. package/custom-element/resize-observer.js +503 -0
  3. package/dist/cjs/css-shim-9f5bc84d.js +9 -0
  4. package/dist/cjs/debounce-6cea2774.js +578 -0
  5. package/dist/cjs/dom-fcb646f0.js +78 -0
  6. package/dist/{revo-grid/index-8a604c17.js → cjs/index-cb904e00.js} +230 -1445
  7. package/dist/cjs/index.cjs.js +5 -0
  8. package/dist/cjs/loader.cjs.js +38 -0
  9. package/dist/cjs/resize-observer-bf327d6a.js +507 -0
  10. package/dist/cjs/revo-grid.cjs.js +79 -0
  11. package/dist/cjs/revo-grid_11.cjs.entry.js +28301 -0
  12. package/dist/cjs/revogr-clipboard.cjs.entry.js +56 -0
  13. package/dist/cjs/revogr-filter-panel.cjs.entry.js +278 -0
  14. package/dist/collection/collection-manifest.json +25 -0
  15. package/dist/collection/components/button/button.js +7 -0
  16. package/dist/collection/components/clipboard/revogr-clipboard.js +124 -0
  17. package/dist/collection/components/data/cellRenderer.js +27 -0
  18. package/dist/{revo-grid/columnService-91e552ba.js → collection/components/data/columnService.js} +6 -8
  19. package/dist/collection/components/data/revogr-data-style.css +135 -0
  20. package/dist/collection/components/data/revogr-data.js +325 -0
  21. package/dist/collection/components/data/rowRenderer.js +9 -0
  22. package/dist/collection/components/header/headerCellRenderer.js +29 -0
  23. package/dist/collection/components/header/headerRenderer.js +48 -0
  24. package/dist/collection/components/header/revogr-header-style.css +198 -0
  25. package/dist/collection/components/header/revogr-header.js +300 -0
  26. package/dist/collection/components/order/orderRenderer.js +53 -0
  27. package/dist/collection/components/order/revogr-order-editor.js +361 -0
  28. package/dist/collection/components/order/rowOrderService.js +71 -0
  29. package/dist/collection/components/overlay/autofill.service.js +185 -0
  30. package/dist/collection/components/overlay/clipboard.service.js +42 -0
  31. package/dist/collection/components/overlay/editors/edit.utils.js +8 -0
  32. package/dist/collection/components/overlay/editors/text.js +38 -0
  33. package/dist/collection/components/overlay/keyboard.service.js +131 -0
  34. package/dist/collection/components/overlay/revogr-edit-style.css +86 -0
  35. package/dist/collection/components/overlay/revogr-edit.js +162 -0
  36. package/dist/collection/components/overlay/revogr-overlay-selection.js +729 -0
  37. package/dist/collection/components/overlay/revogr-overlay-style.css +98 -0
  38. package/dist/{revo-grid/selection.utils-a9932db6.js → collection/components/overlay/selection.utils.js} +9 -12
  39. package/dist/collection/components/revo-grid/revo-grid-style.css +544 -0
  40. package/dist/collection/components/revo-grid/revo-grid.js +2226 -0
  41. package/dist/collection/components/revo-grid/viewport.helpers.js +14 -0
  42. package/dist/collection/components/revo-grid/viewport.interfaces.js +4 -0
  43. package/dist/collection/components/revo-grid/viewport.js +21 -0
  44. package/dist/collection/components/revo-grid/viewport.resize.service.js +24 -0
  45. package/dist/collection/components/revo-grid/viewport.scrolling.service.js +63 -0
  46. package/dist/collection/components/revo-grid/viewport.section.js +31 -0
  47. package/dist/collection/components/revo-grid/viewport.service.js +212 -0
  48. package/dist/collection/components/rowHeaders/revogr-row-headers.js +213 -0
  49. package/dist/collection/components/rowHeaders/row-header-render.js +4 -0
  50. package/dist/collection/components/scroll/revogr-viewport-scroll-style.css +137 -0
  51. package/dist/collection/components/scroll/revogr-viewport-scroll.js +402 -0
  52. package/dist/collection/components/scrollable/revogr-scroll-style.css +104 -0
  53. package/dist/collection/components/scrollable/revogr-scroll-virtual.js +256 -0
  54. package/dist/collection/components/selection-focus/revogr-focus-style.css +77 -0
  55. package/dist/collection/components/selection-focus/revogr-focus.js +106 -0
  56. package/dist/collection/components/selection-temp-range/revogr-temp-range-style.css +98 -0
  57. package/dist/collection/components/selection-temp-range/revogr-temp-range.js +141 -0
  58. package/dist/{revo-grid/app-globals-7e6866ba.js → collection/global/global.js} +2 -8
  59. package/dist/collection/index.js +4 -0
  60. package/dist/collection/plugins/autoSizeColumn.js +233 -0
  61. package/dist/collection/plugins/basePlugin.js +30 -0
  62. package/dist/{revo-grid/dispatcher-891af82e.js → collection/plugins/dispatcher.js} +2 -4
  63. package/dist/collection/plugins/export/csv.js +71 -0
  64. package/dist/collection/plugins/export/export.plugin.js +168 -0
  65. package/dist/collection/plugins/export/types.js +4 -0
  66. package/dist/collection/plugins/filter/conditions/equal.js +20 -0
  67. package/dist/collection/plugins/filter/conditions/number/greaterThan.js +13 -0
  68. package/dist/collection/plugins/filter/conditions/number/greaterThanOrEqual.js +10 -0
  69. package/dist/collection/plugins/filter/conditions/number/lessThan.js +15 -0
  70. package/dist/collection/plugins/filter/conditions/number/lessThanOrEqual.js +10 -0
  71. package/dist/collection/plugins/filter/conditions/set.js +6 -0
  72. package/dist/collection/plugins/filter/conditions/string/beginswith.js +20 -0
  73. package/dist/collection/plugins/filter/conditions/string/contains.js +21 -0
  74. package/dist/{revo-grid/filter.button-74c1cd9c.js → collection/plugins/filter/filter.button.js} +10 -13
  75. package/dist/collection/plugins/filter/filter.plugin.js +259 -0
  76. package/dist/collection/plugins/filter/filter.pop.js +488 -0
  77. package/dist/collection/plugins/filter/filter.service.js +47 -0
  78. package/dist/collection/plugins/filter/filter.style.css +239 -0
  79. package/dist/collection/plugins/filter/filter.types.js +4 -0
  80. package/dist/collection/plugins/groupingColumn/columnGroupsRenderer.js +33 -0
  81. package/dist/collection/plugins/groupingColumn/grouping.col.plugin.js +39 -0
  82. package/dist/collection/plugins/groupingColumn/headerGroupRenderer.js +24 -0
  83. package/dist/collection/plugins/groupingRow/grouping.const.js +13 -0
  84. package/dist/collection/plugins/groupingRow/grouping.row.expand.service.js +79 -0
  85. package/dist/collection/plugins/groupingRow/grouping.row.plugin.js +261 -0
  86. package/dist/collection/plugins/groupingRow/grouping.row.renderer.js +32 -0
  87. package/dist/collection/plugins/groupingRow/grouping.row.types.js +4 -0
  88. package/dist/collection/plugins/groupingRow/grouping.service.js +158 -0
  89. package/dist/collection/plugins/groupingRow/grouping.trimmed.service.js +60 -0
  90. package/dist/collection/plugins/moveColumn/columnDragPlugin.js +151 -0
  91. package/dist/collection/plugins/moveColumn/columnOrderHandler.js +63 -0
  92. package/dist/collection/plugins/sorting/sorting.plugin.js +184 -0
  93. package/dist/collection/plugins/sorting/sorting.sign.js +9 -0
  94. package/dist/collection/plugins/stretchPlugin.js +71 -0
  95. package/dist/collection/plugins/trimmed/trimmed.plugin.js +35 -0
  96. package/dist/collection/services/cell.helpers.js +10 -0
  97. package/dist/collection/services/column.data.provider.js +191 -0
  98. package/dist/collection/services/data.provider.js +50 -0
  99. package/dist/collection/services/dimension.provider.js +81 -0
  100. package/dist/{revo-grid/localScrollService-e9b73323.js → collection/services/localScrollService.js} +2 -5
  101. package/dist/collection/services/resizable.directive.js +255 -0
  102. package/dist/collection/services/selection.store.connector.js +216 -0
  103. package/dist/collection/services/viewport.provider.js +17 -0
  104. package/dist/collection/store/dataSource/data.proxy.js +37 -0
  105. package/dist/collection/store/dataSource/data.store.js +130 -0
  106. package/dist/collection/store/dimension/dimension.helpers.js +110 -0
  107. package/dist/collection/store/dimension/dimension.store.js +62 -0
  108. package/dist/collection/store/selection/selection.helpers.js +56 -0
  109. package/dist/collection/store/selection/selection.store.js +71 -0
  110. package/dist/collection/store/selection/selection.store.service.js +38 -0
  111. package/dist/collection/store/storeTypes.js +8 -0
  112. package/dist/{revo-grid/viewport.store-ffaaab6d.js → collection/store/viewPort/viewport.helpers.js} +9 -132
  113. package/dist/collection/store/viewPort/viewport.store.js +124 -0
  114. package/dist/collection/themeManager/theme.compact.js +8 -0
  115. package/dist/collection/themeManager/theme.default.js +8 -0
  116. package/dist/collection/themeManager/theme.material.js +8 -0
  117. package/dist/{revo-grid/themeService-ddaaa364.js → collection/themeManager/themeService.js} +6 -23
  118. package/dist/collection/utils/closestPolifill.js +21 -0
  119. package/dist/collection/utils/consts.js +22 -0
  120. package/dist/collection/utils/generateAlphabetHeader.js +23 -0
  121. package/dist/collection/utils/keyCodes.js +73 -0
  122. package/dist/collection/utils/keyCodes.utils.js +67 -0
  123. package/dist/collection/utils/platform.js +8 -0
  124. package/dist/collection/utils/resizeObserver.js +9 -0
  125. package/dist/collection/utils/store.utils.js +10 -0
  126. package/dist/{revo-grid/utils-2c3b3857.js → collection/utils/utils.js} +8 -10
  127. package/dist/collection/utilsExternal/generate-data.js +132 -0
  128. package/dist/esm/css-shim-e1e1ea5e.js +7 -0
  129. package/dist/esm/debounce-e4e6dd45.js +561 -0
  130. package/dist/esm/dom-21bd1807.js +76 -0
  131. package/dist/esm/index-6f753b3c.js +1817 -0
  132. package/dist/esm/index.js +3 -0
  133. package/dist/esm/loader.js +34 -0
  134. package/dist/esm/polyfills/core-js.js +11 -0
  135. package/dist/esm/polyfills/css-shim.js +1 -0
  136. package/dist/esm/polyfills/dom.js +79 -0
  137. package/dist/esm/polyfills/es5-html-element.js +1 -0
  138. package/dist/esm/polyfills/index.js +34 -0
  139. package/dist/esm/polyfills/system.js +6 -0
  140. package/dist/esm/resize-observer-00c48d78.js +503 -0
  141. package/dist/esm/revo-grid.js +77 -0
  142. package/dist/{revo-grid/lodash-a0ab4cdd.js → esm/revo-grid_11.entry.js} +25351 -14282
  143. package/dist/esm/revogr-clipboard.entry.js +52 -0
  144. package/dist/esm/revogr-filter-panel.entry.js +274 -0
  145. package/dist/esm-es5/css-shim-e1e1ea5e.js +4 -0
  146. package/dist/esm-es5/debounce-e4e6dd45.js +4 -0
  147. package/dist/esm-es5/dom-21bd1807.js +24 -0
  148. package/dist/esm-es5/index-6f753b3c.js +4 -0
  149. package/dist/esm-es5/index.js +3 -0
  150. package/dist/esm-es5/loader.js +4 -0
  151. package/dist/esm-es5/resize-observer-00c48d78.js +4 -0
  152. package/dist/esm-es5/revo-grid.js +4 -0
  153. package/dist/esm-es5/revo-grid_11.entry.js +4 -0
  154. package/dist/esm-es5/revogr-clipboard.entry.js +4 -0
  155. package/dist/esm-es5/revogr-filter-panel.entry.js +4 -0
  156. package/dist/index.cjs.js +1 -0
  157. package/dist/index.js +1 -0
  158. package/dist/revo-grid/css-shim-bcf89cc0.system.js +4 -0
  159. package/dist/revo-grid/css-shim-e1e1ea5e.js +4 -0
  160. package/dist/revo-grid/debounce-5a33c710.system.js +4 -0
  161. package/dist/revo-grid/debounce-726bdadb.js +4 -0
  162. package/dist/revo-grid/dom-21bd1807.js +5 -59
  163. package/dist/revo-grid/dom-726246e2.system.js +24 -0
  164. package/dist/revo-grid/index-f14b41a0.system.js +5 -0
  165. package/dist/revo-grid/index-f30d1de1.js +5 -0
  166. package/dist/revo-grid/index.system.js +4 -0
  167. package/dist/revo-grid/resize-observer-00c48d78.js +1 -500
  168. package/dist/revo-grid/resize-observer-8af0bc0e.system.js +4 -0
  169. package/dist/revo-grid/revo-grid.esm.js +1 -130
  170. package/dist/revo-grid/revo-grid.js +133 -0
  171. package/dist/revo-grid/revo-grid.system.js +4 -0
  172. package/dist/revo-grid/revo-grid_11.entry.js +4 -0
  173. package/dist/revo-grid/revo-grid_11.system.entry.js +4 -0
  174. package/dist/revo-grid/revogr-clipboard.entry.js +1 -49
  175. package/dist/revo-grid/revogr-clipboard.system.entry.js +4 -0
  176. package/dist/revo-grid/revogr-filter-panel.entry.js +1 -274
  177. package/dist/revo-grid/revogr-filter-panel.system.entry.js +4 -0
  178. package/dist/types/components/revo-grid/revo-grid.d.ts +0 -1
  179. package/dist/types/components.d.ts +2 -2
  180. package/loader/cdn.js +3 -1
  181. package/loader/index.cjs.js +3 -1
  182. package/loader/index.d.ts +0 -1
  183. package/loader/index.es2017.js +3 -1
  184. package/loader/index.js +3 -1
  185. package/package.json +1 -1
  186. package/dist/revo-grid/_baseIteratee-af30b221.js +0 -2070
  187. package/dist/revo-grid/consts-ef824e6f.js +0 -46
  188. package/dist/revo-grid/css-shim-5387c708.js +0 -7
  189. package/dist/revo-grid/data.store-3263fff9.js +0 -557
  190. package/dist/revo-grid/debounce-aaa4b4da.js +0 -217
  191. package/dist/revo-grid/dimension.helpers-a7944fc4.js +0 -340
  192. package/dist/revo-grid/each-0378e5a3.js +0 -180
  193. package/dist/revo-grid/identity-c8c7d3d8.js +0 -26
  194. package/dist/revo-grid/isString-a51066b5.js +0 -34
  195. package/dist/revo-grid/isSymbol-e4b5dafe.js +0 -247
  196. package/dist/revo-grid/keyCodes.utils-bd06e3ba.js +0 -299
  197. package/dist/revo-grid/keys-70b7c240.js +0 -561
  198. package/dist/revo-grid/revo-grid.entry.js +0 -3484
  199. package/dist/revo-grid/revogr-data.entry.js +0 -152
  200. package/dist/revo-grid/revogr-edit.entry.js +0 -105
  201. package/dist/revo-grid/revogr-focus.entry.js +0 -41
  202. package/dist/revo-grid/revogr-header.entry.js +0 -560
  203. package/dist/revo-grid/revogr-order-editor.entry.js +0 -175
  204. package/dist/revo-grid/revogr-overlay-selection.entry.js +0 -711
  205. package/dist/revo-grid/revogr-row-headers.entry.js +0 -73
  206. package/dist/revo-grid/revogr-scroll-virtual.entry.js +0 -114
  207. package/dist/revo-grid/revogr-temp-range.entry.js +0 -73
  208. package/dist/revo-grid/revogr-viewport-scroll.entry.js +0 -340
  209. package/dist/revo-grid/selection.store.connector-2b613fd0.js +0 -503
  210. package/dist/revo-grid/shadow-css-602a09db.js +0 -390
  211. package/dist/revo-grid/toInteger-9e6cbfd2.js +0 -107
  212. package/dist/revo-grid/toNumber-913b0b72.js +0 -105
  213. package/dist/revo-grid/viewport.helpers-49d3f031.js +0 -16
@@ -0,0 +1,561 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
4
+ import { h } from './index-6f753b3c.js';
5
+
6
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
7
+
8
+ function createCommonjsModule(fn, basedir, module) {
9
+ return module = {
10
+ path: basedir,
11
+ exports: {},
12
+ require: function (path, base) {
13
+ return commonjsRequire();
14
+ }
15
+ }, fn(module, module.exports), module.exports;
16
+ }
17
+
18
+ function commonjsRequire () {
19
+ throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
20
+ }
21
+
22
+ /** Detect free variable `global` from Node.js. */
23
+ var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
24
+
25
+ var _freeGlobal = freeGlobal;
26
+
27
+ /** Detect free variable `self`. */
28
+ var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
29
+
30
+ /** Used as a reference to the global object. */
31
+ var root = _freeGlobal || freeSelf || Function('return this')();
32
+
33
+ var _root = root;
34
+
35
+ /** Built-in value references. */
36
+ var Symbol = _root.Symbol;
37
+
38
+ var _Symbol = Symbol;
39
+
40
+ /** Used for built-in method references. */
41
+ var objectProto$1 = Object.prototype;
42
+
43
+ /** Used to check objects for own properties. */
44
+ var hasOwnProperty = objectProto$1.hasOwnProperty;
45
+
46
+ /**
47
+ * Used to resolve the
48
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
49
+ * of values.
50
+ */
51
+ var nativeObjectToString$1 = objectProto$1.toString;
52
+
53
+ /** Built-in value references. */
54
+ var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
55
+
56
+ /**
57
+ * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
58
+ *
59
+ * @private
60
+ * @param {*} value The value to query.
61
+ * @returns {string} Returns the raw `toStringTag`.
62
+ */
63
+ function getRawTag(value) {
64
+ var isOwn = hasOwnProperty.call(value, symToStringTag$1),
65
+ tag = value[symToStringTag$1];
66
+
67
+ try {
68
+ value[symToStringTag$1] = undefined;
69
+ var unmasked = true;
70
+ } catch (e) {}
71
+
72
+ var result = nativeObjectToString$1.call(value);
73
+ if (unmasked) {
74
+ if (isOwn) {
75
+ value[symToStringTag$1] = tag;
76
+ } else {
77
+ delete value[symToStringTag$1];
78
+ }
79
+ }
80
+ return result;
81
+ }
82
+
83
+ var _getRawTag = getRawTag;
84
+
85
+ /** Used for built-in method references. */
86
+ var objectProto = Object.prototype;
87
+
88
+ /**
89
+ * Used to resolve the
90
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
91
+ * of values.
92
+ */
93
+ var nativeObjectToString = objectProto.toString;
94
+
95
+ /**
96
+ * Converts `value` to a string using `Object.prototype.toString`.
97
+ *
98
+ * @private
99
+ * @param {*} value The value to convert.
100
+ * @returns {string} Returns the converted string.
101
+ */
102
+ function objectToString(value) {
103
+ return nativeObjectToString.call(value);
104
+ }
105
+
106
+ var _objectToString = objectToString;
107
+
108
+ /** `Object#toString` result references. */
109
+ var nullTag = '[object Null]',
110
+ undefinedTag = '[object Undefined]';
111
+
112
+ /** Built-in value references. */
113
+ var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
114
+
115
+ /**
116
+ * The base implementation of `getTag` without fallbacks for buggy environments.
117
+ *
118
+ * @private
119
+ * @param {*} value The value to query.
120
+ * @returns {string} Returns the `toStringTag`.
121
+ */
122
+ function baseGetTag(value) {
123
+ if (value == null) {
124
+ return value === undefined ? undefinedTag : nullTag;
125
+ }
126
+ return (symToStringTag && symToStringTag in Object(value))
127
+ ? _getRawTag(value)
128
+ : _objectToString(value);
129
+ }
130
+
131
+ var _baseGetTag = baseGetTag;
132
+
133
+ /**
134
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
135
+ * and has a `typeof` result of "object".
136
+ *
137
+ * @static
138
+ * @memberOf _
139
+ * @since 4.0.0
140
+ * @category Lang
141
+ * @param {*} value The value to check.
142
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
143
+ * @example
144
+ *
145
+ * _.isObjectLike({});
146
+ * // => true
147
+ *
148
+ * _.isObjectLike([1, 2, 3]);
149
+ * // => true
150
+ *
151
+ * _.isObjectLike(_.noop);
152
+ * // => false
153
+ *
154
+ * _.isObjectLike(null);
155
+ * // => false
156
+ */
157
+ function isObjectLike(value) {
158
+ return value != null && typeof value == 'object';
159
+ }
160
+
161
+ var isObjectLike_1 = isObjectLike;
162
+
163
+ /**
164
+ * Checks if `value` is the
165
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
166
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
167
+ *
168
+ * @static
169
+ * @memberOf _
170
+ * @since 0.1.0
171
+ * @category Lang
172
+ * @param {*} value The value to check.
173
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
174
+ * @example
175
+ *
176
+ * _.isObject({});
177
+ * // => true
178
+ *
179
+ * _.isObject([1, 2, 3]);
180
+ * // => true
181
+ *
182
+ * _.isObject(_.noop);
183
+ * // => true
184
+ *
185
+ * _.isObject(null);
186
+ * // => false
187
+ */
188
+ function isObject(value) {
189
+ var type = typeof value;
190
+ return value != null && (type == 'object' || type == 'function');
191
+ }
192
+
193
+ var isObject_1 = isObject;
194
+
195
+ /** `Object#toString` result references. */
196
+ var symbolTag = '[object Symbol]';
197
+
198
+ /**
199
+ * Checks if `value` is classified as a `Symbol` primitive or object.
200
+ *
201
+ * @static
202
+ * @memberOf _
203
+ * @since 4.0.0
204
+ * @category Lang
205
+ * @param {*} value The value to check.
206
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
207
+ * @example
208
+ *
209
+ * _.isSymbol(Symbol.iterator);
210
+ * // => true
211
+ *
212
+ * _.isSymbol('abc');
213
+ * // => false
214
+ */
215
+ function isSymbol(value) {
216
+ return typeof value == 'symbol' ||
217
+ (isObjectLike_1(value) && _baseGetTag(value) == symbolTag);
218
+ }
219
+
220
+ var isSymbol_1 = isSymbol;
221
+
222
+ /** Used to match a single whitespace character. */
223
+ var reWhitespace = /\s/;
224
+
225
+ /**
226
+ * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
227
+ * character of `string`.
228
+ *
229
+ * @private
230
+ * @param {string} string The string to inspect.
231
+ * @returns {number} Returns the index of the last non-whitespace character.
232
+ */
233
+ function trimmedEndIndex(string) {
234
+ var index = string.length;
235
+
236
+ while (index-- && reWhitespace.test(string.charAt(index))) {}
237
+ return index;
238
+ }
239
+
240
+ var _trimmedEndIndex = trimmedEndIndex;
241
+
242
+ /** Used to match leading whitespace. */
243
+ var reTrimStart = /^\s+/;
244
+
245
+ /**
246
+ * The base implementation of `_.trim`.
247
+ *
248
+ * @private
249
+ * @param {string} string The string to trim.
250
+ * @returns {string} Returns the trimmed string.
251
+ */
252
+ function baseTrim(string) {
253
+ return string
254
+ ? string.slice(0, _trimmedEndIndex(string) + 1).replace(reTrimStart, '')
255
+ : string;
256
+ }
257
+
258
+ var _baseTrim = baseTrim;
259
+
260
+ /** Used as references for various `Number` constants. */
261
+ var NAN = 0 / 0;
262
+
263
+ /** Used to detect bad signed hexadecimal string values. */
264
+ var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
265
+
266
+ /** Used to detect binary string values. */
267
+ var reIsBinary = /^0b[01]+$/i;
268
+
269
+ /** Used to detect octal string values. */
270
+ var reIsOctal = /^0o[0-7]+$/i;
271
+
272
+ /** Built-in method references without a dependency on `root`. */
273
+ var freeParseInt = parseInt;
274
+
275
+ /**
276
+ * Converts `value` to a number.
277
+ *
278
+ * @static
279
+ * @memberOf _
280
+ * @since 4.0.0
281
+ * @category Lang
282
+ * @param {*} value The value to process.
283
+ * @returns {number} Returns the number.
284
+ * @example
285
+ *
286
+ * _.toNumber(3.2);
287
+ * // => 3.2
288
+ *
289
+ * _.toNumber(Number.MIN_VALUE);
290
+ * // => 5e-324
291
+ *
292
+ * _.toNumber(Infinity);
293
+ * // => Infinity
294
+ *
295
+ * _.toNumber('3.2');
296
+ * // => 3.2
297
+ */
298
+ function toNumber(value) {
299
+ if (typeof value == 'number') {
300
+ return value;
301
+ }
302
+ if (isSymbol_1(value)) {
303
+ return NAN;
304
+ }
305
+ if (isObject_1(value)) {
306
+ var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
307
+ value = isObject_1(other) ? (other + '') : other;
308
+ }
309
+ if (typeof value != 'string') {
310
+ return value === 0 ? value : +value;
311
+ }
312
+ value = _baseTrim(value);
313
+ var isBinary = reIsBinary.test(value);
314
+ return (isBinary || reIsOctal.test(value))
315
+ ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
316
+ : (reIsBadHex.test(value) ? NAN : +value);
317
+ }
318
+
319
+ var toNumber_1 = toNumber;
320
+
321
+ const FILTER_BUTTON_CLASS = 'rv-filter';
322
+ const FILTER_BUTTON_ACTIVE = 'active';
323
+ const FILTER_PROP = 'hasFilter';
324
+ const AND_OR_BUTTON = 'and-or-button';
325
+ const TRASH_BUTTON = 'trash-button';
326
+ const FilterButton = ({ column }) => {
327
+ return (h("span", null,
328
+ h("button", { class: {
329
+ [FILTER_BUTTON_CLASS]: true,
330
+ [FILTER_BUTTON_ACTIVE]: column && !!column[FILTER_PROP],
331
+ } },
332
+ h("svg", { class: "filter-img", viewBox: "0 0 64 64" },
333
+ h("g", { stroke: "none", "stroke-width": "1", fill: "none", "fill-rule": "evenodd" },
334
+ h("path", { d: "M43,48 L43,56 L21,56 L21,48 L43,48 Z M53,28 L53,36 L12,36 L12,28 L53,28 Z M64,8 L64,16 L0,16 L0,8 L64,8 Z", fill: "currentColor" }))))));
335
+ };
336
+ const TrashButton = () => {
337
+ return (h("div", { class: { [TRASH_BUTTON]: true } },
338
+ h("svg", { class: "trash-img", viewBox: "0 0 24 24" },
339
+ h("path", { fill: "currentColor", d: "M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M7,6H17V19H7V6M9,8V17H11V8H9M13,8V17H15V8H13Z" }))));
340
+ };
341
+ const AndOrButton = ({ isAnd }) => {
342
+ return h("button", { class: { [AND_OR_BUTTON]: true, 'light revo-button': true } }, isAnd ? 'and' : 'or');
343
+ };
344
+ function isFilterBtn(e) {
345
+ if (e.classList.contains(FILTER_BUTTON_CLASS)) {
346
+ return true;
347
+ }
348
+ return e === null || e === void 0 ? void 0 : e.closest(`.${FILTER_BUTTON_CLASS}`);
349
+ }
350
+
351
+ /**
352
+ * Gets the timestamp of the number of milliseconds that have elapsed since
353
+ * the Unix epoch (1 January 1970 00:00:00 UTC).
354
+ *
355
+ * @static
356
+ * @memberOf _
357
+ * @since 2.4.0
358
+ * @category Date
359
+ * @returns {number} Returns the timestamp.
360
+ * @example
361
+ *
362
+ * _.defer(function(stamp) {
363
+ * console.log(_.now() - stamp);
364
+ * }, _.now());
365
+ * // => Logs the number of milliseconds it took for the deferred invocation.
366
+ */
367
+ var now = function() {
368
+ return _root.Date.now();
369
+ };
370
+
371
+ var now_1 = now;
372
+
373
+ /** Error message constants. */
374
+ var FUNC_ERROR_TEXT = 'Expected a function';
375
+
376
+ /* Built-in method references for those with the same name as other `lodash` methods. */
377
+ var nativeMax = Math.max,
378
+ nativeMin = Math.min;
379
+
380
+ /**
381
+ * Creates a debounced function that delays invoking `func` until after `wait`
382
+ * milliseconds have elapsed since the last time the debounced function was
383
+ * invoked. The debounced function comes with a `cancel` method to cancel
384
+ * delayed `func` invocations and a `flush` method to immediately invoke them.
385
+ * Provide `options` to indicate whether `func` should be invoked on the
386
+ * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
387
+ * with the last arguments provided to the debounced function. Subsequent
388
+ * calls to the debounced function return the result of the last `func`
389
+ * invocation.
390
+ *
391
+ * **Note:** If `leading` and `trailing` options are `true`, `func` is
392
+ * invoked on the trailing edge of the timeout only if the debounced function
393
+ * is invoked more than once during the `wait` timeout.
394
+ *
395
+ * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
396
+ * until to the next tick, similar to `setTimeout` with a timeout of `0`.
397
+ *
398
+ * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
399
+ * for details over the differences between `_.debounce` and `_.throttle`.
400
+ *
401
+ * @static
402
+ * @memberOf _
403
+ * @since 0.1.0
404
+ * @category Function
405
+ * @param {Function} func The function to debounce.
406
+ * @param {number} [wait=0] The number of milliseconds to delay.
407
+ * @param {Object} [options={}] The options object.
408
+ * @param {boolean} [options.leading=false]
409
+ * Specify invoking on the leading edge of the timeout.
410
+ * @param {number} [options.maxWait]
411
+ * The maximum time `func` is allowed to be delayed before it's invoked.
412
+ * @param {boolean} [options.trailing=true]
413
+ * Specify invoking on the trailing edge of the timeout.
414
+ * @returns {Function} Returns the new debounced function.
415
+ * @example
416
+ *
417
+ * // Avoid costly calculations while the window size is in flux.
418
+ * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
419
+ *
420
+ * // Invoke `sendMail` when clicked, debouncing subsequent calls.
421
+ * jQuery(element).on('click', _.debounce(sendMail, 300, {
422
+ * 'leading': true,
423
+ * 'trailing': false
424
+ * }));
425
+ *
426
+ * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
427
+ * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
428
+ * var source = new EventSource('/stream');
429
+ * jQuery(source).on('message', debounced);
430
+ *
431
+ * // Cancel the trailing debounced invocation.
432
+ * jQuery(window).on('popstate', debounced.cancel);
433
+ */
434
+ function debounce(func, wait, options) {
435
+ var lastArgs,
436
+ lastThis,
437
+ maxWait,
438
+ result,
439
+ timerId,
440
+ lastCallTime,
441
+ lastInvokeTime = 0,
442
+ leading = false,
443
+ maxing = false,
444
+ trailing = true;
445
+
446
+ if (typeof func != 'function') {
447
+ throw new TypeError(FUNC_ERROR_TEXT);
448
+ }
449
+ wait = toNumber_1(wait) || 0;
450
+ if (isObject_1(options)) {
451
+ leading = !!options.leading;
452
+ maxing = 'maxWait' in options;
453
+ maxWait = maxing ? nativeMax(toNumber_1(options.maxWait) || 0, wait) : maxWait;
454
+ trailing = 'trailing' in options ? !!options.trailing : trailing;
455
+ }
456
+
457
+ function invokeFunc(time) {
458
+ var args = lastArgs,
459
+ thisArg = lastThis;
460
+
461
+ lastArgs = lastThis = undefined;
462
+ lastInvokeTime = time;
463
+ result = func.apply(thisArg, args);
464
+ return result;
465
+ }
466
+
467
+ function leadingEdge(time) {
468
+ // Reset any `maxWait` timer.
469
+ lastInvokeTime = time;
470
+ // Start the timer for the trailing edge.
471
+ timerId = setTimeout(timerExpired, wait);
472
+ // Invoke the leading edge.
473
+ return leading ? invokeFunc(time) : result;
474
+ }
475
+
476
+ function remainingWait(time) {
477
+ var timeSinceLastCall = time - lastCallTime,
478
+ timeSinceLastInvoke = time - lastInvokeTime,
479
+ timeWaiting = wait - timeSinceLastCall;
480
+
481
+ return maxing
482
+ ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
483
+ : timeWaiting;
484
+ }
485
+
486
+ function shouldInvoke(time) {
487
+ var timeSinceLastCall = time - lastCallTime,
488
+ timeSinceLastInvoke = time - lastInvokeTime;
489
+
490
+ // Either this is the first call, activity has stopped and we're at the
491
+ // trailing edge, the system time has gone backwards and we're treating
492
+ // it as the trailing edge, or we've hit the `maxWait` limit.
493
+ return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
494
+ (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
495
+ }
496
+
497
+ function timerExpired() {
498
+ var time = now_1();
499
+ if (shouldInvoke(time)) {
500
+ return trailingEdge(time);
501
+ }
502
+ // Restart the timer.
503
+ timerId = setTimeout(timerExpired, remainingWait(time));
504
+ }
505
+
506
+ function trailingEdge(time) {
507
+ timerId = undefined;
508
+
509
+ // Only invoke if we have `lastArgs` which means `func` has been
510
+ // debounced at least once.
511
+ if (trailing && lastArgs) {
512
+ return invokeFunc(time);
513
+ }
514
+ lastArgs = lastThis = undefined;
515
+ return result;
516
+ }
517
+
518
+ function cancel() {
519
+ if (timerId !== undefined) {
520
+ clearTimeout(timerId);
521
+ }
522
+ lastInvokeTime = 0;
523
+ lastArgs = lastCallTime = lastThis = timerId = undefined;
524
+ }
525
+
526
+ function flush() {
527
+ return timerId === undefined ? result : trailingEdge(now_1());
528
+ }
529
+
530
+ function debounced() {
531
+ var time = now_1(),
532
+ isInvoking = shouldInvoke(time);
533
+
534
+ lastArgs = arguments;
535
+ lastThis = this;
536
+ lastCallTime = time;
537
+
538
+ if (isInvoking) {
539
+ if (timerId === undefined) {
540
+ return leadingEdge(lastCallTime);
541
+ }
542
+ if (maxing) {
543
+ // Handle invocations in a tight loop.
544
+ clearTimeout(timerId);
545
+ timerId = setTimeout(timerExpired, wait);
546
+ return invokeFunc(lastCallTime);
547
+ }
548
+ }
549
+ if (timerId === undefined) {
550
+ timerId = setTimeout(timerExpired, wait);
551
+ }
552
+ return result;
553
+ }
554
+ debounced.cancel = cancel;
555
+ debounced.flush = flush;
556
+ return debounced;
557
+ }
558
+
559
+ var debounce_1 = debounce;
560
+
561
+ export { AndOrButton as A, FILTER_PROP as F, TrashButton as T, _baseGetTag as _, _root as a, _freeGlobal as b, createCommonjsModule as c, isObject_1 as d, _Symbol as e, isSymbol_1 as f, isFilterBtn as g, commonjsGlobal as h, isObjectLike_1 as i, debounce_1 as j, FilterButton as k, toNumber_1 as t };
@@ -0,0 +1,76 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
4
+ /*
5
+ Stencil Client Patch Browser v2.17.3 | MIT Licensed | https://stenciljs.com
6
+ */
7
+ (function(){
8
+ 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))}
9
+ function n(a,b){for(;b&&b!==a&&!b.nextSibling;)b=b.parentNode;return b&&b!==a?b.nextSibling:null}
10
+ 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);}}
11
+ 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);}}
12
+ 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=
13
+ 0;b<f.length;b++)w(a,f[b]);for(b=0;b<f.length;b++)e(f[b]);}
14
+ 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=
15
+ 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);};
16
+ 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);}
17
+ 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.");
18
+ 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,
19
+ 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);};
20
+ 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};
21
+ 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;
22
+ 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,
23
+ "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,
24
+ 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.");
25
+ 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,
26
+ 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);
27
+ 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,
28
+ 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=[],
29
+ 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&&
30
+ 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});}
31
+ 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,
32
+ 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},
33
+ 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,
34
+ 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,
35
+ 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);
36
+
37
+ // Polyfill document.baseURI
38
+ "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}});
39
+
40
+ // Polyfill CustomEvent
41
+ "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);
42
+
43
+ // Event.composedPath
44
+ (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);
45
+
46
+ /*!
47
+ Element.closest and Element.matches
48
+ https://github.com/jonathantneal/closest
49
+ Creative Commons Zero v1.0 Universal
50
+ */
51
+ (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);
52
+
53
+ /*!
54
+ Element.getRootNode()
55
+ */
56
+ (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);
57
+
58
+ /*!
59
+ Element.isConnected()
60
+ */
61
+ (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);
62
+
63
+ /*!
64
+ Element.remove()
65
+ */
66
+ (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]);
67
+
68
+ /*!
69
+ Element.classList
70
+ */
71
+ !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);
72
+
73
+ /*!
74
+ DOMTokenList
75
+ */
76
+ (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);