@nylas/react 1.1.0-canary.8 → 1.1.0-canary.9

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 (131) hide show
  1. package/dist/elements/index.js +92 -0
  2. package/dist/elements/index.js.map +1 -0
  3. package/dist/elements/react-component-lib/createComponent.js +65 -0
  4. package/dist/elements/react-component-lib/createComponent.js.map +1 -0
  5. package/dist/elements/react-component-lib/createOverlayComponent.js +98 -0
  6. package/dist/elements/react-component-lib/createOverlayComponent.js.map +1 -0
  7. package/dist/elements/react-component-lib/index.js +3 -0
  8. package/dist/elements/react-component-lib/index.js.map +1 -0
  9. package/dist/elements/react-component-lib/interfaces.js +2 -0
  10. package/dist/elements/react-component-lib/interfaces.js.map +1 -0
  11. package/dist/elements/react-component-lib/utils/attachProps.js +92 -0
  12. package/dist/elements/react-component-lib/utils/attachProps.js.map +1 -0
  13. package/dist/elements/react-component-lib/utils/case.js +7 -0
  14. package/dist/elements/react-component-lib/utils/case.js.map +1 -0
  15. package/dist/elements/react-component-lib/utils/dev.js +13 -0
  16. package/dist/elements/react-component-lib/utils/dev.js.map +1 -0
  17. package/dist/elements/react-component-lib/utils/index.js +31 -0
  18. package/dist/elements/react-component-lib/utils/index.js.map +1 -0
  19. package/dist/index.js +29 -0
  20. package/dist/index.js.map +1 -0
  21. package/package.json +8 -12
  22. package/dist/add-circle-icon_22.entry-080abc71.cjs +0 -1
  23. package/dist/add-circle-icon_22.entry-bda9be31.js +0 -1818
  24. package/dist/archive-icon_7.entry-ca20da59.cjs +0 -1
  25. package/dist/archive-icon_7.entry-e2954750.js +0 -75
  26. package/dist/arrow-icon.entry-03a85113.js +0 -15
  27. package/dist/arrow-icon.entry-548b027e.cjs +0 -1
  28. package/dist/bold-icon_3.entry-70ffa7f0.js +0 -35
  29. package/dist/bold-icon_3.entry-9a7b1869.cjs +0 -1
  30. package/dist/calendar-cancel-icon.entry-45388fdc.cjs +0 -1
  31. package/dist/calendar-cancel-icon.entry-6bbc119f.js +0 -15
  32. package/dist/calendar-check-icon_2.entry-6628456c.cjs +0 -1
  33. package/dist/calendar-check-icon_2.entry-f633f7a6.js +0 -25
  34. package/dist/calendar-icon.entry-379b1fa1.cjs +0 -1
  35. package/dist/calendar-icon.entry-62b82c27.js +0 -15
  36. package/dist/chevron-icon_3.entry-74425e1f.js +0 -117
  37. package/dist/chevron-icon_3.entry-7ff803ad.cjs +0 -1
  38. package/dist/close-icon.entry-18e140ed.cjs +0 -1
  39. package/dist/close-icon.entry-6a8ea4a7.js +0 -15
  40. package/dist/constants-f34b9c6e-95a17764.js +0 -3749
  41. package/dist/constants-f34b9c6e-e7137e51.cjs +0 -15
  42. package/dist/core-js-38e53e34.cjs +0 -4
  43. package/dist/core-js-a9d3b6e1.js +0 -3297
  44. package/dist/document-refresh-icon.entry-32c75418.js +0 -15
  45. package/dist/document-refresh-icon.entry-f15f795a.cjs +0 -1
  46. package/dist/dom-68f08be9.cjs +0 -15
  47. package/dist/dom-86e17616.js +0 -664
  48. package/dist/elements-dc5b338e-1f23530f.cjs +0 -16516
  49. package/dist/elements-dc5b338e-62fe1cf3.js +0 -28031
  50. package/dist/flow-40ff9cea-6f8c30e2.cjs +0 -9
  51. package/dist/flow-40ff9cea-ee70fdf5.js +0 -505
  52. package/dist/focus-visible-e8093c16-1f664070.js +0 -84
  53. package/dist/focus-visible-e8093c16-f0f05815.cjs +0 -1
  54. package/dist/forward-icon_6.entry-7fab04d7.js +0 -953
  55. package/dist/forward-icon_6.entry-ef5e2e0f.cjs +0 -3
  56. package/dist/globe-icon.entry-398a9826.cjs +0 -1
  57. package/dist/globe-icon.entry-b8e1efae.js +0 -15
  58. package/dist/google-logo-icon_4.entry-38d5c2f2.cjs +0 -1
  59. package/dist/google-logo-icon_4.entry-5eca9538.js +0 -381
  60. package/dist/index-93c50de4.cjs +0 -37
  61. package/dist/index-f93f6948.js +0 -4006
  62. package/dist/index.es-df564f87-b773d34f.js +0 -3137
  63. package/dist/index.es-df564f87-e4a4092a.cjs +0 -7
  64. package/dist/info-icon_2.entry-2eb70f49.cjs +0 -1
  65. package/dist/info-icon_2.entry-6bbfa6dc.js +0 -34
  66. package/dist/loading-icon.entry-b563b2e6.js +0 -15
  67. package/dist/loading-icon.entry-fb04b893.cjs +0 -1
  68. package/dist/mailbox-store-69c5c5f6-631eddb5.cjs +0 -1
  69. package/dist/mailbox-store-69c5c5f6-8ab4670b.js +0 -380
  70. package/dist/nylas-additional-participants.entry-33a45477.cjs +0 -1
  71. package/dist/nylas-additional-participants.entry-4b214308.js +0 -81
  72. package/dist/nylas-booked-event-card_10.entry-3e225025.cjs +0 -1
  73. package/dist/nylas-booked-event-card_10.entry-e93bc290.js +0 -782
  74. package/dist/nylas-form-card.entry-0748fdd5.js +0 -54
  75. package/dist/nylas-form-card.entry-eb3607bc.cjs +0 -1
  76. package/dist/nylas-if-state.entry-276d61ad.cjs +0 -1
  77. package/dist/nylas-if-state.entry-f8abd025.js +0 -94
  78. package/dist/nylas-list-folders.entry-78cc680e.js +0 -120
  79. package/dist/nylas-list-folders.entry-afe02f0e.cjs +0 -1
  80. package/dist/nylas-list-threads.entry-217088de.js +0 -70
  81. package/dist/nylas-list-threads.entry-6395c12f.cjs +0 -1
  82. package/dist/nylas-login.entry-e4d57589.js +0 -73
  83. package/dist/nylas-login.entry-ec81e21b.cjs +0 -1
  84. package/dist/nylas-mailbox-pagination.entry-069673aa.js +0 -101
  85. package/dist/nylas-mailbox-pagination.entry-d4d929f1.cjs +0 -1
  86. package/dist/nylas-mailbox-toolbar-button.entry-03c5f5c8.js +0 -82
  87. package/dist/nylas-mailbox-toolbar-button.entry-2b9e4431.cjs +0 -1
  88. package/dist/nylas-mailbox.entry-1342178d.cjs +0 -1
  89. package/dist/nylas-mailbox.entry-7e6b4791.js +0 -134
  90. package/dist/nylas-provider.entry-0ae8e70a.cjs +0 -1
  91. package/dist/nylas-provider.entry-498a7be9.js +0 -145
  92. package/dist/nylas-scheduler-editor.entry-4de2bb97.js +0 -2275
  93. package/dist/nylas-scheduler-editor.entry-72c91b7d.cjs +0 -7
  94. package/dist/nylas-scheduling.entry-1a004916.cjs +0 -1
  95. package/dist/nylas-scheduling.entry-4e18ab43.js +0 -235
  96. package/dist/nylas-threads-refresh.entry-d020c89e.cjs +0 -1
  97. package/dist/nylas-threads-refresh.entry-fc2d8028.js +0 -74
  98. package/dist/nylas-threads-search.entry-0abcbc10.cjs +0 -1
  99. package/dist/nylas-threads-search.entry-f92f7e30.js +0 -69
  100. package/dist/nylas-view-thread.entry-2f1474cf.js +0 -203
  101. package/dist/nylas-view-thread.entry-56080c89.cjs +0 -1
  102. package/dist/people-icon.entry-431e5044.cjs +0 -1
  103. package/dist/people-icon.entry-b4778e15.js +0 -15
  104. package/dist/play-icon_2.entry-24ffa01f.js +0 -25
  105. package/dist/play-icon_2.entry-f97db395.cjs +0 -1
  106. package/dist/react.cjs +0 -1
  107. package/dist/react.js +0 -98
  108. package/dist/refresh-icon.entry-8395104b.js +0 -15
  109. package/dist/refresh-icon.entry-cf4416b8.cjs +0 -1
  110. package/dist/register-component-b9cfcbaf-c0147194.js +0 -109
  111. package/dist/register-component-b9cfcbaf-d40e1f3c.cjs +0 -1
  112. package/dist/scheduler-config-store-07d98279-0610e42f.cjs +0 -1
  113. package/dist/scheduler-config-store-07d98279-3b70606c.js +0 -24
  114. package/dist/scheduler-store-24fd0e91-2dba20c2.cjs +0 -1
  115. package/dist/scheduler-store-24fd0e91-47098841.js +0 -302
  116. package/dist/time-period-selector.entry-1e849c2e.js +0 -76
  117. package/dist/time-period-selector.entry-d8f3462f.cjs +0 -1
  118. package/dist/translate-icon.entry-66533238.cjs +0 -1
  119. package/dist/translate-icon.entry-d847f706.js +0 -15
  120. package/dist/warning-icon.entry-1f0f00ed.cjs +0 -1
  121. package/dist/warning-icon.entry-b5db0151.js +0 -15
  122. /package/dist/{elements → types/elements}/index.d.ts +0 -0
  123. /package/dist/{elements → types/elements}/react-component-lib/createComponent.d.ts +0 -0
  124. /package/dist/{elements → types/elements}/react-component-lib/createOverlayComponent.d.ts +0 -0
  125. /package/dist/{elements → types/elements}/react-component-lib/index.d.ts +0 -0
  126. /package/dist/{elements → types/elements}/react-component-lib/interfaces.d.ts +0 -0
  127. /package/dist/{elements → types/elements}/react-component-lib/utils/attachProps.d.ts +0 -0
  128. /package/dist/{elements → types/elements}/react-component-lib/utils/case.d.ts +0 -0
  129. /package/dist/{elements → types/elements}/react-component-lib/utils/dev.d.ts +0 -0
  130. /package/dist/{elements → types/elements}/react-component-lib/utils/index.d.ts +0 -0
  131. /package/dist/{index.d.ts → types/index.d.ts} +0 -0
@@ -1,664 +0,0 @@
1
- (function() {
2
- var f = new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));
3
- function h(e) {
4
- var t = f.has(e);
5
- return e = /^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(e), !t && e;
6
- }
7
- function s(e) {
8
- var t = e.isConnected;
9
- if (t !== void 0)
10
- return t;
11
- for (; e && !(e.__CE_isImportDocument || e instanceof Document); )
12
- e = e.parentNode || (window.ShadowRoot && e instanceof ShadowRoot ? e.host : void 0);
13
- return !(!e || !(e.__CE_isImportDocument || e instanceof Document));
14
- }
15
- function m(e, t) {
16
- for (; t && t !== e && !t.nextSibling; )
17
- t = t.parentNode;
18
- return t && t !== e ? t.nextSibling : null;
19
- }
20
- function p(e, t, n) {
21
- n = n === void 0 ? /* @__PURE__ */ new Set() : n;
22
- for (var r = e; r; ) {
23
- if (r.nodeType === Node.ELEMENT_NODE) {
24
- var o = r;
25
- t(o);
26
- var i = o.localName;
27
- if (i === "link" && o.getAttribute("rel") === "import") {
28
- if (r = o.import, r instanceof Node && !n.has(r))
29
- for (n.add(r), r = r.firstChild; r; r = r.nextSibling)
30
- p(r, t, n);
31
- r = m(e, o);
32
- continue;
33
- } else if (i === "template") {
34
- r = m(e, o);
35
- continue;
36
- }
37
- if (o = o.__CE_shadowRoot)
38
- for (o = o.firstChild; o; o = o.nextSibling)
39
- p(o, t, n);
40
- }
41
- r = r.firstChild ? r.firstChild : m(e, r);
42
- }
43
- }
44
- function d(e, t, n) {
45
- e[t] = n;
46
- }
47
- function _() {
48
- this.a = /* @__PURE__ */ new Map(), this.g = /* @__PURE__ */ new Map(), this.c = [], this.f = [], this.b = !1;
49
- }
50
- function ot(e, t, n) {
51
- e.a.set(t, n), e.g.set(n.constructorFunction, n);
52
- }
53
- function rt(e, t) {
54
- e.b = !0, e.c.push(t);
55
- }
56
- function it(e, t) {
57
- e.b = !0, e.f.push(t);
58
- }
59
- function O(e, t) {
60
- e.b && p(t, function(n) {
61
- return C(e, n);
62
- });
63
- }
64
- function C(e, t) {
65
- if (e.b && !t.__CE_patched) {
66
- t.__CE_patched = !0;
67
- for (var n = 0; n < e.c.length; n++)
68
- e.c[n](t);
69
- for (n = 0; n < e.f.length; n++)
70
- e.f[n](t);
71
- }
72
- }
73
- function w(e, t) {
74
- var n = [];
75
- for (p(t, function(o) {
76
- return n.push(o);
77
- }), t = 0; t < n.length; t++) {
78
- var r = n[t];
79
- r.__CE_state === 1 ? e.connectedCallback(r) : S(e, r);
80
- }
81
- }
82
- function v(e, t) {
83
- var n = [];
84
- for (p(t, function(o) {
85
- return n.push(o);
86
- }), t = 0; t < n.length; t++) {
87
- var r = n[t];
88
- r.__CE_state === 1 && e.disconnectedCallback(r);
89
- }
90
- }
91
- function E(e, t, n) {
92
- n = n === void 0 ? {} : n;
93
- var r = n.u || /* @__PURE__ */ new Set(), o = n.i || function(l) {
94
- return S(e, l);
95
- }, i = [];
96
- if (p(t, function(l) {
97
- if (l.localName === "link" && l.getAttribute("rel") === "import") {
98
- var c = l.import;
99
- c instanceof Node && (c.__CE_isImportDocument = !0, c.__CE_hasRegistry = !0), c && c.readyState === "complete" ? c.__CE_documentLoadHandled = !0 : l.addEventListener("load", function() {
100
- var a = l.import;
101
- if (!a.__CE_documentLoadHandled) {
102
- a.__CE_documentLoadHandled = !0;
103
- var u = new Set(r);
104
- u.delete(a), E(e, a, { u, i: o });
105
- }
106
- });
107
- } else
108
- i.push(l);
109
- }, r), e.b)
110
- for (t = 0; t < i.length; t++)
111
- C(e, i[t]);
112
- for (t = 0; t < i.length; t++)
113
- o(i[t]);
114
- }
115
- function S(e, t) {
116
- if (t.__CE_state === void 0) {
117
- var n = t.ownerDocument;
118
- if ((n.defaultView || n.__CE_isImportDocument && n.__CE_hasRegistry) && (n = e.a.get(t.localName))) {
119
- n.constructionStack.push(t);
120
- var r = n.constructorFunction;
121
- try {
122
- try {
123
- if (new r() !== t)
124
- throw Error("The custom element constructor did not produce the element being upgraded.");
125
- } finally {
126
- n.constructionStack.pop();
127
- }
128
- } catch (l) {
129
- throw t.__CE_state = 2, l;
130
- }
131
- if (t.__CE_state = 1, t.__CE_definition = n, n.attributeChangedCallback)
132
- for (n = n.observedAttributes, r = 0; r < n.length; r++) {
133
- var o = n[r], i = t.getAttribute(o);
134
- i !== null && e.attributeChangedCallback(t, o, null, i, null);
135
- }
136
- s(t) && e.connectedCallback(t);
137
- }
138
- }
139
- }
140
- _.prototype.connectedCallback = function(e) {
141
- var t = e.__CE_definition;
142
- t.connectedCallback && t.connectedCallback.call(e);
143
- }, _.prototype.disconnectedCallback = function(e) {
144
- var t = e.__CE_definition;
145
- t.disconnectedCallback && t.disconnectedCallback.call(e);
146
- }, _.prototype.attributeChangedCallback = function(e, t, n, r, o) {
147
- var i = e.__CE_definition;
148
- i.attributeChangedCallback && -1 < i.observedAttributes.indexOf(t) && i.attributeChangedCallback.call(e, t, n, r, o);
149
- };
150
- function P(e) {
151
- var t = document;
152
- this.c = e, this.a = t, this.b = void 0, E(this.c, this.a), this.a.readyState === "loading" && (this.b = new MutationObserver(this.f.bind(this)), this.b.observe(this.a, { childList: !0, subtree: !0 }));
153
- }
154
- function F(e) {
155
- e.b && e.b.disconnect();
156
- }
157
- P.prototype.f = function(e) {
158
- var t = this.a.readyState;
159
- for (t !== "interactive" && t !== "complete" || F(this), t = 0; t < e.length; t++)
160
- for (var n = e[t].addedNodes, r = 0; r < n.length; r++)
161
- E(this.c, n[r]);
162
- };
163
- function lt() {
164
- var e = this;
165
- this.b = this.a = void 0, this.c = new Promise(function(t) {
166
- e.b = t, e.a && t(e.a);
167
- });
168
- }
169
- function I(e) {
170
- if (e.a)
171
- throw Error("Already resolved.");
172
- e.a = void 0, e.b && e.b(void 0);
173
- }
174
- function y(e) {
175
- this.c = !1, this.a = e, this.j = /* @__PURE__ */ new Map(), this.f = function(t) {
176
- return t();
177
- }, this.b = !1, this.g = [], this.o = new P(e);
178
- }
179
- y.prototype.l = function(e, t) {
180
- var n = this;
181
- if (!(t instanceof Function))
182
- throw new TypeError("Custom element constructors must be functions.");
183
- if (!h(e))
184
- throw new SyntaxError("The element name '" + e + "' is not valid.");
185
- if (this.a.a.get(e))
186
- throw Error("A custom element with name '" + e + "' has already been defined.");
187
- if (this.c)
188
- throw Error("A custom element is already being defined.");
189
- this.c = !0;
190
- try {
191
- var r = function(g) {
192
- var N = o[g];
193
- if (N !== void 0 && !(N instanceof Function))
194
- throw Error("The '" + g + "' callback must be a function.");
195
- return N;
196
- }, o = t.prototype;
197
- if (!(o instanceof Object))
198
- throw new TypeError("The custom element constructor's prototype is not an object.");
199
- var i = r("connectedCallback"), l = r("disconnectedCallback"), c = r("adoptedCallback"), a = r("attributeChangedCallback"), u = t.observedAttributes || [];
200
- } catch {
201
- return;
202
- } finally {
203
- this.c = !1;
204
- }
205
- t = { localName: e, constructorFunction: t, connectedCallback: i, disconnectedCallback: l, adoptedCallback: c, attributeChangedCallback: a, observedAttributes: u, constructionStack: [] }, ot(
206
- this.a,
207
- e,
208
- t
209
- ), this.g.push(t), this.b || (this.b = !0, this.f(function() {
210
- return st(n);
211
- }));
212
- }, y.prototype.i = function(e) {
213
- E(this.a, e);
214
- };
215
- function st(e) {
216
- if (e.b !== !1) {
217
- e.b = !1;
218
- for (var t = e.g, n = [], r = /* @__PURE__ */ new Map(), o = 0; o < t.length; o++)
219
- r.set(t[o].localName, []);
220
- for (E(e.a, document, { i: function(c) {
221
- if (c.__CE_state === void 0) {
222
- var a = c.localName, u = r.get(a);
223
- u ? u.push(c) : e.a.a.get(a) && n.push(c);
224
- }
225
- } }), o = 0; o < n.length; o++)
226
- S(e.a, n[o]);
227
- for (; 0 < t.length; ) {
228
- var i = t.shift();
229
- o = i.localName, i = r.get(i.localName);
230
- for (var l = 0; l < i.length; l++)
231
- S(e.a, i[l]);
232
- (o = e.j.get(o)) && I(o);
233
- }
234
- }
235
- }
236
- y.prototype.get = function(e) {
237
- if (e = this.a.a.get(e))
238
- return e.constructorFunction;
239
- }, y.prototype.m = function(e) {
240
- if (!h(e))
241
- return Promise.reject(new SyntaxError("'" + e + "' is not a valid custom element name."));
242
- var t = this.j.get(e);
243
- return t || (t = new lt(), this.j.set(e, t), this.a.a.get(e) && !this.g.some(function(n) {
244
- return n.localName === e;
245
- }) && I(t)), t.c;
246
- }, y.prototype.s = function(e) {
247
- F(this.o);
248
- var t = this.f;
249
- this.f = function(n) {
250
- return e(function() {
251
- return t(n);
252
- });
253
- };
254
- }, window.CustomElementRegistry = y, y.prototype.define = y.prototype.l, y.prototype.upgrade = y.prototype.i, y.prototype.get = y.prototype.get, y.prototype.whenDefined = y.prototype.m, y.prototype.polyfillWrapFlushCallback = y.prototype.s;
255
- var z = window.Document.prototype.createElement, U = window.Document.prototype.createElementNS, ct = window.Document.prototype.importNode, at = window.Document.prototype.prepend, ut = window.Document.prototype.append, pt = window.DocumentFragment.prototype.prepend, ft = window.DocumentFragment.prototype.append, B = window.Node.prototype.cloneNode, T = window.Node.prototype.appendChild, W = window.Node.prototype.insertBefore, j = window.Node.prototype.removeChild, V = window.Node.prototype.replaceChild, L = Object.getOwnPropertyDescriptor(
256
- window.Node.prototype,
257
- "textContent"
258
- ), $ = window.Element.prototype.attachShadow, M = Object.getOwnPropertyDescriptor(window.Element.prototype, "innerHTML"), x = window.Element.prototype.getAttribute, G = window.Element.prototype.setAttribute, J = window.Element.prototype.removeAttribute, D = window.Element.prototype.getAttributeNS, K = window.Element.prototype.setAttributeNS, Q = window.Element.prototype.removeAttributeNS, Y = window.Element.prototype.insertAdjacentElement, Z = window.Element.prototype.insertAdjacentHTML, ht = window.Element.prototype.prepend, dt = window.Element.prototype.append, k = window.Element.prototype.before, mt = window.Element.prototype.after, X = window.Element.prototype.replaceWith, q = window.Element.prototype.remove, gt = window.HTMLElement, H = Object.getOwnPropertyDescriptor(window.HTMLElement.prototype, "innerHTML"), tt = window.HTMLElement.prototype.insertAdjacentElement, et = window.HTMLElement.prototype.insertAdjacentHTML, nt = new function() {
259
- }();
260
- function yt() {
261
- var e = b;
262
- window.HTMLElement = function() {
263
- function t() {
264
- var n = this.constructor, r = e.g.get(n);
265
- if (!r)
266
- throw Error("The custom element being constructed was not registered with `customElements`.");
267
- var o = r.constructionStack;
268
- if (o.length === 0)
269
- return o = z.call(document, r.localName), Object.setPrototypeOf(o, n.prototype), o.__CE_state = 1, o.__CE_definition = r, C(e, o), o;
270
- r = o.length - 1;
271
- var i = o[r];
272
- if (i === nt)
273
- throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");
274
- return o[r] = nt, Object.setPrototypeOf(i, n.prototype), C(e, i), i;
275
- }
276
- return t.prototype = gt.prototype, Object.defineProperty(t.prototype, "constructor", { writable: !0, configurable: !0, enumerable: !1, value: t }), t;
277
- }();
278
- }
279
- function R(e, t, n) {
280
- function r(o) {
281
- return function(i) {
282
- for (var l = [], c = 0; c < arguments.length; ++c)
283
- l[c] = arguments[c];
284
- c = [];
285
- for (var a = [], u = 0; u < l.length; u++) {
286
- var g = l[u];
287
- if (g instanceof Element && s(g) && a.push(g), g instanceof DocumentFragment)
288
- for (g = g.firstChild; g; g = g.nextSibling)
289
- c.push(g);
290
- else
291
- c.push(g);
292
- }
293
- for (o.apply(this, l), l = 0; l < a.length; l++)
294
- v(e, a[l]);
295
- if (s(this))
296
- for (l = 0; l < c.length; l++)
297
- a = c[l], a instanceof Element && w(e, a);
298
- };
299
- }
300
- n.h !== void 0 && (t.prepend = r(n.h)), n.append !== void 0 && (t.append = r(n.append));
301
- }
302
- function vt() {
303
- var e = b;
304
- d(Document.prototype, "createElement", function(t) {
305
- if (this.__CE_hasRegistry) {
306
- var n = e.a.get(t);
307
- if (n)
308
- return new n.constructorFunction();
309
- }
310
- return t = z.call(this, t), C(e, t), t;
311
- }), d(Document.prototype, "importNode", function(t, n) {
312
- return t = ct.call(this, t, !!n), this.__CE_hasRegistry ? E(e, t) : O(e, t), t;
313
- }), d(Document.prototype, "createElementNS", function(t, n) {
314
- if (this.__CE_hasRegistry && (t === null || t === "http://www.w3.org/1999/xhtml")) {
315
- var r = e.a.get(n);
316
- if (r)
317
- return new r.constructorFunction();
318
- }
319
- return t = U.call(
320
- this,
321
- t,
322
- n
323
- ), C(e, t), t;
324
- }), R(e, Document.prototype, { h: at, append: ut });
325
- }
326
- function wt() {
327
- function e(n, r) {
328
- Object.defineProperty(n, "textContent", { enumerable: r.enumerable, configurable: !0, get: r.get, set: function(o) {
329
- if (this.nodeType === Node.TEXT_NODE)
330
- r.set.call(this, o);
331
- else {
332
- var i = void 0;
333
- if (this.firstChild) {
334
- var l = this.childNodes, c = l.length;
335
- if (0 < c && s(this)) {
336
- i = Array(c);
337
- for (var a = 0; a < c; a++)
338
- i[a] = l[a];
339
- }
340
- }
341
- if (r.set.call(this, o), i)
342
- for (o = 0; o < i.length; o++)
343
- v(t, i[o]);
344
- }
345
- } });
346
- }
347
- var t = b;
348
- d(Node.prototype, "insertBefore", function(n, r) {
349
- if (n instanceof DocumentFragment) {
350
- var o = Array.prototype.slice.apply(n.childNodes);
351
- if (n = W.call(this, n, r), s(this))
352
- for (r = 0; r < o.length; r++)
353
- w(t, o[r]);
354
- return n;
355
- }
356
- return o = s(n), r = W.call(this, n, r), o && v(t, n), s(this) && w(t, n), r;
357
- }), d(Node.prototype, "appendChild", function(n) {
358
- if (n instanceof DocumentFragment) {
359
- var r = Array.prototype.slice.apply(n.childNodes);
360
- if (n = T.call(this, n), s(this))
361
- for (var o = 0; o < r.length; o++)
362
- w(t, r[o]);
363
- return n;
364
- }
365
- return r = s(n), o = T.call(this, n), r && v(t, n), s(this) && w(t, n), o;
366
- }), d(Node.prototype, "cloneNode", function(n) {
367
- return n = B.call(this, !!n), this.ownerDocument.__CE_hasRegistry ? E(t, n) : O(
368
- t,
369
- n
370
- ), n;
371
- }), d(Node.prototype, "removeChild", function(n) {
372
- var r = s(n), o = j.call(this, n);
373
- return r && v(t, n), o;
374
- }), d(Node.prototype, "replaceChild", function(n, r) {
375
- if (n instanceof DocumentFragment) {
376
- var o = Array.prototype.slice.apply(n.childNodes);
377
- if (n = V.call(this, n, r), s(this))
378
- for (v(t, r), r = 0; r < o.length; r++)
379
- w(t, o[r]);
380
- return n;
381
- }
382
- o = s(n);
383
- var i = V.call(this, n, r), l = s(this);
384
- return l && v(t, r), o && v(t, n), l && w(t, n), i;
385
- }), L && L.get ? e(Node.prototype, L) : rt(t, function(n) {
386
- e(n, { enumerable: !0, configurable: !0, get: function() {
387
- for (var r = [], o = 0; o < this.childNodes.length; o++) {
388
- var i = this.childNodes[o];
389
- i.nodeType !== Node.COMMENT_NODE && r.push(i.textContent);
390
- }
391
- return r.join("");
392
- }, set: function(r) {
393
- for (; this.firstChild; )
394
- j.call(this, this.firstChild);
395
- r != null && r !== "" && T.call(this, document.createTextNode(r));
396
- } });
397
- });
398
- }
399
- function Et(e) {
400
- function t(r) {
401
- return function(o) {
402
- for (var i = [], l = 0; l < arguments.length; ++l)
403
- i[l] = arguments[l];
404
- l = [];
405
- for (var c = [], a = 0; a < i.length; a++) {
406
- var u = i[a];
407
- if (u instanceof Element && s(u) && c.push(u), u instanceof DocumentFragment)
408
- for (u = u.firstChild; u; u = u.nextSibling)
409
- l.push(u);
410
- else
411
- l.push(u);
412
- }
413
- for (r.apply(this, i), i = 0; i < c.length; i++)
414
- v(e, c[i]);
415
- if (s(this))
416
- for (i = 0; i < l.length; i++)
417
- c = l[i], c instanceof Element && w(e, c);
418
- };
419
- }
420
- var n = Element.prototype;
421
- k !== void 0 && (n.before = t(k)), k !== void 0 && (n.after = t(mt)), X !== void 0 && d(n, "replaceWith", function(r) {
422
- for (var o = [], i = 0; i < arguments.length; ++i)
423
- o[i] = arguments[i];
424
- i = [];
425
- for (var l = [], c = 0; c < o.length; c++) {
426
- var a = o[c];
427
- if (a instanceof Element && s(a) && l.push(a), a instanceof DocumentFragment)
428
- for (a = a.firstChild; a; a = a.nextSibling)
429
- i.push(a);
430
- else
431
- i.push(a);
432
- }
433
- for (c = s(this), X.apply(this, o), o = 0; o < l.length; o++)
434
- v(e, l[o]);
435
- if (c)
436
- for (v(e, this), o = 0; o < i.length; o++)
437
- l = i[o], l instanceof Element && w(e, l);
438
- }), q !== void 0 && d(n, "remove", function() {
439
- var r = s(this);
440
- q.call(this), r && v(e, this);
441
- });
442
- }
443
- function _t() {
444
- function e(o, i) {
445
- Object.defineProperty(o, "innerHTML", { enumerable: i.enumerable, configurable: !0, get: i.get, set: function(l) {
446
- var c = this, a = void 0;
447
- if (s(this) && (a = [], p(this, function(N) {
448
- N !== c && a.push(N);
449
- })), i.set.call(this, l), a)
450
- for (var u = 0; u < a.length; u++) {
451
- var g = a[u];
452
- g.__CE_state === 1 && r.disconnectedCallback(g);
453
- }
454
- return this.ownerDocument.__CE_hasRegistry ? E(r, this) : O(r, this), l;
455
- } });
456
- }
457
- function t(o, i) {
458
- d(o, "insertAdjacentElement", function(l, c) {
459
- var a = s(c);
460
- return l = i.call(this, l, c), a && v(r, c), s(l) && w(r, c), l;
461
- });
462
- }
463
- function n(o, i) {
464
- function l(c, a) {
465
- for (var u = []; c !== a; c = c.nextSibling)
466
- u.push(c);
467
- for (a = 0; a < u.length; a++)
468
- E(r, u[a]);
469
- }
470
- d(o, "insertAdjacentHTML", function(c, a) {
471
- if (c = c.toLowerCase(), c === "beforebegin") {
472
- var u = this.previousSibling;
473
- i.call(this, c, a), l(u || this.parentNode.firstChild, this);
474
- } else if (c === "afterbegin")
475
- u = this.firstChild, i.call(this, c, a), l(this.firstChild, u);
476
- else if (c === "beforeend")
477
- u = this.lastChild, i.call(this, c, a), l(u || this.firstChild, null);
478
- else if (c === "afterend")
479
- u = this.nextSibling, i.call(this, c, a), l(
480
- this.nextSibling,
481
- u
482
- );
483
- else
484
- throw new SyntaxError("The value provided (" + String(c) + ") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");
485
- });
486
- }
487
- var r = b;
488
- $ && d(Element.prototype, "attachShadow", function(o) {
489
- o = $.call(this, o);
490
- var i = r;
491
- if (i.b && !o.__CE_patched) {
492
- o.__CE_patched = !0;
493
- for (var l = 0; l < i.c.length; l++)
494
- i.c[l](o);
495
- }
496
- return this.__CE_shadowRoot = o;
497
- }), M && M.get ? e(Element.prototype, M) : H && H.get ? e(HTMLElement.prototype, H) : it(r, function(o) {
498
- e(o, {
499
- enumerable: !0,
500
- configurable: !0,
501
- get: function() {
502
- return B.call(this, !0).innerHTML;
503
- },
504
- set: function(i) {
505
- var l = this.localName === "template", c = l ? this.content : this, a = U.call(document, this.namespaceURI, this.localName);
506
- for (a.innerHTML = i; 0 < c.childNodes.length; )
507
- j.call(c, c.childNodes[0]);
508
- for (i = l ? a.content : a; 0 < i.childNodes.length; )
509
- T.call(c, i.childNodes[0]);
510
- }
511
- });
512
- }), d(Element.prototype, "setAttribute", function(o, i) {
513
- if (this.__CE_state !== 1)
514
- return G.call(this, o, i);
515
- var l = x.call(this, o);
516
- G.call(this, o, i), i = x.call(this, o), r.attributeChangedCallback(this, o, l, i, null);
517
- }), d(Element.prototype, "setAttributeNS", function(o, i, l) {
518
- if (this.__CE_state !== 1)
519
- return K.call(this, o, i, l);
520
- var c = D.call(this, o, i);
521
- K.call(this, o, i, l), l = D.call(this, o, i), r.attributeChangedCallback(this, i, c, l, o);
522
- }), d(Element.prototype, "removeAttribute", function(o) {
523
- if (this.__CE_state !== 1)
524
- return J.call(this, o);
525
- var i = x.call(this, o);
526
- J.call(this, o), i !== null && r.attributeChangedCallback(this, o, i, null, null);
527
- }), d(Element.prototype, "removeAttributeNS", function(o, i) {
528
- if (this.__CE_state !== 1)
529
- return Q.call(this, o, i);
530
- var l = D.call(this, o, i);
531
- Q.call(this, o, i);
532
- var c = D.call(
533
- this,
534
- o,
535
- i
536
- );
537
- l !== c && r.attributeChangedCallback(this, i, l, c, o);
538
- }), tt ? t(HTMLElement.prototype, tt) : Y ? t(Element.prototype, Y) : console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched."), et ? n(HTMLElement.prototype, et) : Z ? n(Element.prototype, Z) : console.warn("Custom Elements: `Element#insertAdjacentHTML` was not patched."), R(r, Element.prototype, { h: ht, append: dt }), Et(r);
539
- }
540
- var A = window.customElements;
541
- if (!A || A.forcePolyfill || typeof A.define != "function" || typeof A.get != "function") {
542
- var b = new _();
543
- yt(), vt(), R(b, DocumentFragment.prototype, { h: pt, append: ft }), wt(), _t(), document.__CE_hasRegistry = !0;
544
- var Ct = new y(b);
545
- Object.defineProperty(window, "customElements", { configurable: !0, enumerable: !0, value: Ct });
546
- }
547
- }).call(self);
548
- typeof document.baseURI != "string" && Object.defineProperty(Document.prototype, "baseURI", { enumerable: !0, configurable: !0, get: function() {
549
- var f = document.querySelector("base");
550
- return f && f.href ? f.href : document.URL;
551
- } });
552
- typeof window.CustomEvent != "function" && (window.CustomEvent = function(f, h) {
553
- h = h || { bubbles: !1, cancelable: !1, detail: void 0 };
554
- var s = document.createEvent("CustomEvent");
555
- return s.initCustomEvent(f, h.bubbles, h.cancelable, h.detail), s;
556
- }, window.CustomEvent.prototype = window.Event.prototype);
557
- (function(f, h, s) {
558
- f.composedPath || (f.composedPath = function() {
559
- if (this.path)
560
- return this.path;
561
- var m = this.target;
562
- for (this.path = []; m.parentNode !== null; )
563
- this.path.push(m), m = m.parentNode;
564
- return this.path.push(h, s), this.path;
565
- });
566
- })(Event.prototype, document, window);
567
- /*!
568
- Element.closest and Element.matches
569
- https://github.com/jonathantneal/closest
570
- Creative Commons Zero v1.0 Universal
571
- */
572
- (function(f) {
573
- typeof f.matches != "function" && (f.matches = f.msMatchesSelector || f.mozMatchesSelector || f.webkitMatchesSelector || function(h) {
574
- h = (this.document || this.ownerDocument).querySelectorAll(h);
575
- for (var s = 0; h[s] && h[s] !== this; )
576
- ++s;
577
- return !!h[s];
578
- }), typeof f.closest != "function" && (f.closest = function(h) {
579
- for (var s = this; s && s.nodeType === 1; ) {
580
- if (s.matches(h))
581
- return s;
582
- s = s.parentNode;
583
- }
584
- return null;
585
- });
586
- })(window.Element.prototype);
587
- /*!
588
- Element.getRootNode()
589
- */
590
- (function(f) {
591
- function h(m) {
592
- return m = s(m), m && m.nodeType === 11 ? h(m.host) : m;
593
- }
594
- function s(m) {
595
- return m && m.parentNode ? s(m.parentNode) : m;
596
- }
597
- typeof f.getRootNode != "function" && (f.getRootNode = function(m) {
598
- return m && m.composed ? h(this) : s(this);
599
- });
600
- })(Element.prototype);
601
- /*!
602
- Element.isConnected()
603
- */
604
- (function(f) {
605
- "isConnected" in f || Object.defineProperty(f, "isConnected", { configurable: !0, enumerable: !0, get: function() {
606
- var h = this.getRootNode({ composed: !0 });
607
- return h && h.nodeType === 9;
608
- } });
609
- })(Element.prototype);
610
- /*!
611
- Element.remove()
612
- */
613
- (function(f) {
614
- f.forEach(function(h) {
615
- h.hasOwnProperty("remove") || Object.defineProperty(h, "remove", { configurable: !0, enumerable: !0, writable: !0, value: function() {
616
- this.parentNode !== null && this.parentNode.removeChild(this);
617
- } });
618
- });
619
- })([Element.prototype, CharacterData.prototype, DocumentType.prototype]);
620
- /*!
621
- Element.classList
622
- */
623
- (function(f) {
624
- "classList" in f || Object.defineProperty(f, "classList", { get: function() {
625
- var h = this, s = (h.getAttribute("class") || "").replace(/^\s+|\s$/g, "").split(/\s+/g);
626
- function m() {
627
- s.length > 0 ? h.setAttribute("class", s.join(" ")) : h.removeAttribute("class");
628
- }
629
- return s[0] === "" && s.splice(0, 1), s.toggle = function(p, d) {
630
- d !== void 0 ? d ? s.add(p) : s.remove(p) : s.indexOf(p) !== -1 ? s.splice(s.indexOf(p), 1) : s.push(p), m();
631
- }, s.add = function() {
632
- for (var p = [].slice.call(arguments), d = 0, _ = p.length; d < _; d++)
633
- s.indexOf(p[d]) === -1 && s.push(p[d]);
634
- m();
635
- }, s.remove = function() {
636
- for (var p = [].slice.call(arguments), d = 0, _ = p.length; d < _; d++)
637
- s.indexOf(p[d]) !== -1 && s.splice(s.indexOf(p[d]), 1);
638
- m();
639
- }, s.item = function(p) {
640
- return s[p];
641
- }, s.contains = function(p) {
642
- return s.indexOf(p) !== -1;
643
- }, s.replace = function(p, d) {
644
- s.indexOf(p) !== -1 && s.splice(s.indexOf(p), 1, d), m();
645
- }, s.value = h.getAttribute("class") || "", s;
646
- } });
647
- })(Element.prototype);
648
- /*!
649
- DOMTokenList
650
- */
651
- (function(f) {
652
- try {
653
- document.body.classList.add();
654
- } catch {
655
- var h = f.add, s = f.remove;
656
- f.add = function() {
657
- for (var p = 0; p < arguments.length; p++)
658
- h.call(this, arguments[p]);
659
- }, f.remove = function() {
660
- for (var p = 0; p < arguments.length; p++)
661
- s.call(this, arguments[p]);
662
- };
663
- }
664
- })(DOMTokenList.prototype);