PluginProbe
Yatra – Travel Booking & Tour Operator Software / 3.0.13
Yatra – Travel Booking & Tour Operator Software v3.0.13
3.0.16 3.0.15 3.0.14 3.0.14.1 3.0.14.2 3.0.12 3.0.13 3.0.11 3.0.10 3.0.9 3.0.8 3.0.7 3.0.6 3.0.5 3.0.5.1 3.0.4 3.0.3 3.0.2.9 3.0.2.7 3.0.2.8 3.0.2.6 trunk 1.0.0 2.0.0 2.0.1 All 84 releases
yatra / assets / dist / js / react-vendor-xzSqHjRF.js

react-vendor-xzSqHjRF.js in Yatra – Travel Booking & Tour Operator Software 3.0.13, at assets/dist/js/react-vendor-xzSqHjRF.js

25,888 lines 997.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 var __typeError = (msg) => {
2 throw TypeError(msg);
3 };
4 var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
5 var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
6 var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
7 var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
8 var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
9 var __privateWrapper = (obj, member, setter, getter) => ({
10 set _(value) {
11 __privateSet(obj, member, value, setter);
12 },
13 get _() {
14 return __privateGet(obj, member, getter);
15 }
16 });
17 var _provider, _providerCalled, _a, _focused, _cleanup, _setup, _b, _online, _cleanup2, _setup2, _c, _gcTimeout, _d, _initialState, _revertState, _cache, _client, _retryer, _defaultOptions, _abortSignalConsumed, _Query_instances, dispatch_fn, _e, _client2, _currentQuery, _currentQueryInitialState, _currentResult, _currentResultState, _currentResultOptions, _currentThenable, _selectError, _selectFn, _selectResult, _lastQueryWithDefinedData, _staleTimeoutId, _refetchIntervalId, _currentRefetchInterval, _trackedProps, _QueryObserver_instances, executeFetch_fn, updateStaleTimeout_fn, computeRefetchInterval_fn, updateRefetchInterval_fn, updateTimers_fn, clearStaleTimeout_fn, clearRefetchInterval_fn, updateQuery_fn, notify_fn, _f, _client3, _observers, _mutationCache, _retryer2, _Mutation_instances, dispatch_fn2, _g, _mutations, _scopes, _mutationId, _h, _client4, _currentResult2, _currentMutation, _mutateOptions, _MutationObserver_instances, updateResult_fn, notify_fn2, _i, _queries, _j, _queryCache, _mutationCache2, _defaultOptions2, _queryDefaults, _mutationDefaults, _mountCount, _unsubscribeFocus, _unsubscribeOnline, _k;
18 var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
19 function getDefaultExportFromCjs(x2) {
20 return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
21 }
22 var jsxRuntime = { exports: {} };
23 var reactJsxRuntime_production_min = {};
24 var react = { exports: {} };
25 var react_production_min = {};
26 /**
27 * @license React
28 * react.production.min.js
29 *
30 * Copyright (c) Facebook, Inc. and its affiliates.
31 *
32 * This source code is licensed under the MIT license found in the
33 * LICENSE file in the root directory of this source tree.
34 */
35 var l$2 = Symbol.for("react.element"), n$2 = Symbol.for("react.portal"), p$3 = Symbol.for("react.fragment"), q$2 = Symbol.for("react.strict_mode"), r = Symbol.for("react.profiler"), t$1 = Symbol.for("react.provider"), u$1 = Symbol.for("react.context"), v$2 = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), x = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), z$1 = Symbol.iterator;
36 function A$1(a) {
37 if (null === a || "object" !== typeof a) return null;
38 a = z$1 && a[z$1] || a["@@iterator"];
39 return "function" === typeof a ? a : null;
40 }
41 var B$1 = { isMounted: function() {
42 return false;
43 }, enqueueForceUpdate: function() {
44 }, enqueueReplaceState: function() {
45 }, enqueueSetState: function() {
46 } }, C$1 = Object.assign, D$1 = {};
47 function E$1(a, b2, e2) {
48 this.props = a;
49 this.context = b2;
50 this.refs = D$1;
51 this.updater = e2 || B$1;
52 }
53 E$1.prototype.isReactComponent = {};
54 E$1.prototype.setState = function(a, b2) {
55 if ("object" !== typeof a && "function" !== typeof a && null != a) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
56 this.updater.enqueueSetState(this, a, b2, "setState");
57 };
58 E$1.prototype.forceUpdate = function(a) {
59 this.updater.enqueueForceUpdate(this, a, "forceUpdate");
60 };
61 function F() {
62 }
63 F.prototype = E$1.prototype;
64 function G$1(a, b2, e2) {
65 this.props = a;
66 this.context = b2;
67 this.refs = D$1;
68 this.updater = e2 || B$1;
69 }
70 var H$1 = G$1.prototype = new F();
71 H$1.constructor = G$1;
72 C$1(H$1, E$1.prototype);
73 H$1.isPureReactComponent = true;
74 var I$1 = Array.isArray, J = Object.prototype.hasOwnProperty, K$1 = { current: null }, L$1 = { key: true, ref: true, __self: true, __source: true };
75 function M$1(a, b2, e2) {
76 var d2, c2 = {}, k2 = null, h2 = null;
77 if (null != b2) for (d2 in void 0 !== b2.ref && (h2 = b2.ref), void 0 !== b2.key && (k2 = "" + b2.key), b2) J.call(b2, d2) && !L$1.hasOwnProperty(d2) && (c2[d2] = b2[d2]);
78 var g2 = arguments.length - 2;
79 if (1 === g2) c2.children = e2;
80 else if (1 < g2) {
81 for (var f2 = Array(g2), m2 = 0; m2 < g2; m2++) f2[m2] = arguments[m2 + 2];
82 c2.children = f2;
83 }
84 if (a && a.defaultProps) for (d2 in g2 = a.defaultProps, g2) void 0 === c2[d2] && (c2[d2] = g2[d2]);
85 return { $$typeof: l$2, type: a, key: k2, ref: h2, props: c2, _owner: K$1.current };
86 }
87 function N$1(a, b2) {
88 return { $$typeof: l$2, type: a.type, key: b2, ref: a.ref, props: a.props, _owner: a._owner };
89 }
90 function O$1(a) {
91 return "object" === typeof a && null !== a && a.$$typeof === l$2;
92 }
93 function escape(a) {
94 var b2 = { "=": "=0", ":": "=2" };
95 return "$" + a.replace(/[=:]/g, function(a2) {
96 return b2[a2];
97 });
98 }
99 var P$1 = /\/+/g;
100 function Q$1(a, b2) {
101 return "object" === typeof a && null !== a && null != a.key ? escape("" + a.key) : b2.toString(36);
102 }
103 function R$1(a, b2, e2, d2, c2) {
104 var k2 = typeof a;
105 if ("undefined" === k2 || "boolean" === k2) a = null;
106 var h2 = false;
107 if (null === a) h2 = true;
108 else switch (k2) {
109 case "string":
110 case "number":
111 h2 = true;
112 break;
113 case "object":
114 switch (a.$$typeof) {
115 case l$2:
116 case n$2:
117 h2 = true;
118 }
119 }
120 if (h2) return h2 = a, c2 = c2(h2), a = "" === d2 ? "." + Q$1(h2, 0) : d2, I$1(c2) ? (e2 = "", null != a && (e2 = a.replace(P$1, "$&/") + "/"), R$1(c2, b2, e2, "", function(a2) {
121 return a2;
122 })) : null != c2 && (O$1(c2) && (c2 = N$1(c2, e2 + (!c2.key || h2 && h2.key === c2.key ? "" : ("" + c2.key).replace(P$1, "$&/") + "/") + a)), b2.push(c2)), 1;
123 h2 = 0;
124 d2 = "" === d2 ? "." : d2 + ":";
125 if (I$1(a)) for (var g2 = 0; g2 < a.length; g2++) {
126 k2 = a[g2];
127 var f2 = d2 + Q$1(k2, g2);
128 h2 += R$1(k2, b2, e2, f2, c2);
129 }
130 else if (f2 = A$1(a), "function" === typeof f2) for (a = f2.call(a), g2 = 0; !(k2 = a.next()).done; ) k2 = k2.value, f2 = d2 + Q$1(k2, g2++), h2 += R$1(k2, b2, e2, f2, c2);
131 else if ("object" === k2) throw b2 = String(a), Error("Objects are not valid as a React child (found: " + ("[object Object]" === b2 ? "object with keys {" + Object.keys(a).join(", ") + "}" : b2) + "). If you meant to render a collection of children, use an array instead.");
132 return h2;
133 }
134 function S$1(a, b2, e2) {
135 if (null == a) return a;
136 var d2 = [], c2 = 0;
137 R$1(a, d2, "", "", function(a2) {
138 return b2.call(e2, a2, c2++);
139 });
140 return d2;
141 }
142 function T$1(a) {
143 if (-1 === a._status) {
144 var b2 = a._result;
145 b2 = b2();
146 b2.then(function(b3) {
147 if (0 === a._status || -1 === a._status) a._status = 1, a._result = b3;
148 }, function(b3) {
149 if (0 === a._status || -1 === a._status) a._status = 2, a._result = b3;
150 });
151 -1 === a._status && (a._status = 0, a._result = b2);
152 }
153 if (1 === a._status) return a._result.default;
154 throw a._result;
155 }
156 var U$1 = { current: null }, V$1 = { transition: null }, W$1 = { ReactCurrentDispatcher: U$1, ReactCurrentBatchConfig: V$1, ReactCurrentOwner: K$1 };
157 function X$2() {
158 throw Error("act(...) is not supported in production builds of React.");
159 }
160 react_production_min.Children = { map: S$1, forEach: function(a, b2, e2) {
161 S$1(a, function() {
162 b2.apply(this, arguments);
163 }, e2);
164 }, count: function(a) {
165 var b2 = 0;
166 S$1(a, function() {
167 b2++;
168 });
169 return b2;
170 }, toArray: function(a) {
171 return S$1(a, function(a2) {
172 return a2;
173 }) || [];
174 }, only: function(a) {
175 if (!O$1(a)) throw Error("React.Children.only expected to receive a single React element child.");
176 return a;
177 } };
178 react_production_min.Component = E$1;
179 react_production_min.Fragment = p$3;
180 react_production_min.Profiler = r;
181 react_production_min.PureComponent = G$1;
182 react_production_min.StrictMode = q$2;
183 react_production_min.Suspense = w;
184 react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W$1;
185 react_production_min.act = X$2;
186 react_production_min.cloneElement = function(a, b2, e2) {
187 if (null === a || void 0 === a) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a + ".");
188 var d2 = C$1({}, a.props), c2 = a.key, k2 = a.ref, h2 = a._owner;
189 if (null != b2) {
190 void 0 !== b2.ref && (k2 = b2.ref, h2 = K$1.current);
191 void 0 !== b2.key && (c2 = "" + b2.key);
192 if (a.type && a.type.defaultProps) var g2 = a.type.defaultProps;
193 for (f2 in b2) J.call(b2, f2) && !L$1.hasOwnProperty(f2) && (d2[f2] = void 0 === b2[f2] && void 0 !== g2 ? g2[f2] : b2[f2]);
194 }
195 var f2 = arguments.length - 2;
196 if (1 === f2) d2.children = e2;
197 else if (1 < f2) {
198 g2 = Array(f2);
199 for (var m2 = 0; m2 < f2; m2++) g2[m2] = arguments[m2 + 2];
200 d2.children = g2;
201 }
202 return { $$typeof: l$2, type: a.type, key: c2, ref: k2, props: d2, _owner: h2 };
203 };
204 react_production_min.createContext = function(a) {
205 a = { $$typeof: u$1, _currentValue: a, _currentValue2: a, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null };
206 a.Provider = { $$typeof: t$1, _context: a };
207 return a.Consumer = a;
208 };
209 react_production_min.createElement = M$1;
210 react_production_min.createFactory = function(a) {
211 var b2 = M$1.bind(null, a);
212 b2.type = a;
213 return b2;
214 };
215 react_production_min.createRef = function() {
216 return { current: null };
217 };
218 react_production_min.forwardRef = function(a) {
219 return { $$typeof: v$2, render: a };
220 };
221 react_production_min.isValidElement = O$1;
222 react_production_min.lazy = function(a) {
223 return { $$typeof: y, _payload: { _status: -1, _result: a }, _init: T$1 };
224 };
225 react_production_min.memo = function(a, b2) {
226 return { $$typeof: x, type: a, compare: void 0 === b2 ? null : b2 };
227 };
228 react_production_min.startTransition = function(a) {
229 var b2 = V$1.transition;
230 V$1.transition = {};
231 try {
232 a();
233 } finally {
234 V$1.transition = b2;
235 }
236 };
237 react_production_min.unstable_act = X$2;
238 react_production_min.useCallback = function(a, b2) {
239 return U$1.current.useCallback(a, b2);
240 };
241 react_production_min.useContext = function(a) {
242 return U$1.current.useContext(a);
243 };
244 react_production_min.useDebugValue = function() {
245 };
246 react_production_min.useDeferredValue = function(a) {
247 return U$1.current.useDeferredValue(a);
248 };
249 react_production_min.useEffect = function(a, b2) {
250 return U$1.current.useEffect(a, b2);
251 };
252 react_production_min.useId = function() {
253 return U$1.current.useId();
254 };
255 react_production_min.useImperativeHandle = function(a, b2, e2) {
256 return U$1.current.useImperativeHandle(a, b2, e2);
257 };
258 react_production_min.useInsertionEffect = function(a, b2) {
259 return U$1.current.useInsertionEffect(a, b2);
260 };
261 react_production_min.useLayoutEffect = function(a, b2) {
262 return U$1.current.useLayoutEffect(a, b2);
263 };
264 react_production_min.useMemo = function(a, b2) {
265 return U$1.current.useMemo(a, b2);
266 };
267 react_production_min.useReducer = function(a, b2, e2) {
268 return U$1.current.useReducer(a, b2, e2);
269 };
270 react_production_min.useRef = function(a) {
271 return U$1.current.useRef(a);
272 };
273 react_production_min.useState = function(a) {
274 return U$1.current.useState(a);
275 };
276 react_production_min.useSyncExternalStore = function(a, b2, e2) {
277 return U$1.current.useSyncExternalStore(a, b2, e2);
278 };
279 react_production_min.useTransition = function() {
280 return U$1.current.useTransition();
281 };
282 react_production_min.version = "18.3.1";
283 {
284 react.exports = react_production_min;
285 }
286 var reactExports = react.exports;
287 const React = /* @__PURE__ */ getDefaultExportFromCjs(reactExports);
288 /**
289 * @license React
290 * react-jsx-runtime.production.min.js
291 *
292 * Copyright (c) Facebook, Inc. and its affiliates.
293 *
294 * This source code is licensed under the MIT license found in the
295 * LICENSE file in the root directory of this source tree.
296 */
297 var f$1 = reactExports, k$1 = Symbol.for("react.element"), l$1 = Symbol.for("react.fragment"), m$2 = Object.prototype.hasOwnProperty, n$1 = f$1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p$2 = { key: true, ref: true, __self: true, __source: true };
298 function q$1(c2, a, g2) {
299 var b2, d2 = {}, e2 = null, h2 = null;
300 void 0 !== g2 && (e2 = "" + g2);
301 void 0 !== a.key && (e2 = "" + a.key);
302 void 0 !== a.ref && (h2 = a.ref);
303 for (b2 in a) m$2.call(a, b2) && !p$2.hasOwnProperty(b2) && (d2[b2] = a[b2]);
304 if (c2 && c2.defaultProps) for (b2 in a = c2.defaultProps, a) void 0 === d2[b2] && (d2[b2] = a[b2]);
305 return { $$typeof: k$1, type: c2, key: e2, ref: h2, props: d2, _owner: n$1.current };
306 }
307 reactJsxRuntime_production_min.Fragment = l$1;
308 reactJsxRuntime_production_min.jsx = q$1;
309 reactJsxRuntime_production_min.jsxs = q$1;
310 {
311 jsxRuntime.exports = reactJsxRuntime_production_min;
312 }
313 var jsxRuntimeExports = jsxRuntime.exports;
314 var client = {};
315 var reactDom = { exports: {} };
316 var reactDom_production_min = {};
317 var scheduler = { exports: {} };
318 var scheduler_production_min = {};
319 /**
320 * @license React
321 * scheduler.production.min.js
322 *
323 * Copyright (c) Facebook, Inc. and its affiliates.
324 *
325 * This source code is licensed under the MIT license found in the
326 * LICENSE file in the root directory of this source tree.
327 */
328 (function(exports$1) {
329 function f2(a, b2) {
330 var c2 = a.length;
331 a.push(b2);
332 a: for (; 0 < c2; ) {
333 var d2 = c2 - 1 >>> 1, e2 = a[d2];
334 if (0 < g2(e2, b2)) a[d2] = b2, a[c2] = e2, c2 = d2;
335 else break a;
336 }
337 }
338 function h2(a) {
339 return 0 === a.length ? null : a[0];
340 }
341 function k2(a) {
342 if (0 === a.length) return null;
343 var b2 = a[0], c2 = a.pop();
344 if (c2 !== b2) {
345 a[0] = c2;
346 a: for (var d2 = 0, e2 = a.length, w2 = e2 >>> 1; d2 < w2; ) {
347 var m2 = 2 * (d2 + 1) - 1, C2 = a[m2], n2 = m2 + 1, x2 = a[n2];
348 if (0 > g2(C2, c2)) n2 < e2 && 0 > g2(x2, C2) ? (a[d2] = x2, a[n2] = c2, d2 = n2) : (a[d2] = C2, a[m2] = c2, d2 = m2);
349 else if (n2 < e2 && 0 > g2(x2, c2)) a[d2] = x2, a[n2] = c2, d2 = n2;
350 else break a;
351 }
352 }
353 return b2;
354 }
355 function g2(a, b2) {
356 var c2 = a.sortIndex - b2.sortIndex;
357 return 0 !== c2 ? c2 : a.id - b2.id;
358 }
359 if ("object" === typeof performance && "function" === typeof performance.now) {
360 var l2 = performance;
361 exports$1.unstable_now = function() {
362 return l2.now();
363 };
364 } else {
365 var p2 = Date, q2 = p2.now();
366 exports$1.unstable_now = function() {
367 return p2.now() - q2;
368 };
369 }
370 var r2 = [], t2 = [], u2 = 1, v2 = null, y2 = 3, z2 = false, A2 = false, B2 = false, D2 = "function" === typeof setTimeout ? setTimeout : null, E2 = "function" === typeof clearTimeout ? clearTimeout : null, F2 = "undefined" !== typeof setImmediate ? setImmediate : null;
371 "undefined" !== typeof navigator && void 0 !== navigator.scheduling && void 0 !== navigator.scheduling.isInputPending && navigator.scheduling.isInputPending.bind(navigator.scheduling);
372 function G2(a) {
373 for (var b2 = h2(t2); null !== b2; ) {
374 if (null === b2.callback) k2(t2);
375 else if (b2.startTime <= a) k2(t2), b2.sortIndex = b2.expirationTime, f2(r2, b2);
376 else break;
377 b2 = h2(t2);
378 }
379 }
380 function H2(a) {
381 B2 = false;
382 G2(a);
383 if (!A2) if (null !== h2(r2)) A2 = true, I2(J2);
384 else {
385 var b2 = h2(t2);
386 null !== b2 && K2(H2, b2.startTime - a);
387 }
388 }
389 function J2(a, b2) {
390 A2 = false;
391 B2 && (B2 = false, E2(L2), L2 = -1);
392 z2 = true;
393 var c2 = y2;
394 try {
395 G2(b2);
396 for (v2 = h2(r2); null !== v2 && (!(v2.expirationTime > b2) || a && !M2()); ) {
397 var d2 = v2.callback;
398 if ("function" === typeof d2) {
399 v2.callback = null;
400 y2 = v2.priorityLevel;
401 var e2 = d2(v2.expirationTime <= b2);
402 b2 = exports$1.unstable_now();
403 "function" === typeof e2 ? v2.callback = e2 : v2 === h2(r2) && k2(r2);
404 G2(b2);
405 } else k2(r2);
406 v2 = h2(r2);
407 }
408 if (null !== v2) var w2 = true;
409 else {
410 var m2 = h2(t2);
411 null !== m2 && K2(H2, m2.startTime - b2);
412 w2 = false;
413 }
414 return w2;
415 } finally {
416 v2 = null, y2 = c2, z2 = false;
417 }
418 }
419 var N2 = false, O2 = null, L2 = -1, P2 = 5, Q2 = -1;
420 function M2() {
421 return exports$1.unstable_now() - Q2 < P2 ? false : true;
422 }
423 function R2() {
424 if (null !== O2) {
425 var a = exports$1.unstable_now();
426 Q2 = a;
427 var b2 = true;
428 try {
429 b2 = O2(true, a);
430 } finally {
431 b2 ? S2() : (N2 = false, O2 = null);
432 }
433 } else N2 = false;
434 }
435 var S2;
436 if ("function" === typeof F2) S2 = function() {
437 F2(R2);
438 };
439 else if ("undefined" !== typeof MessageChannel) {
440 var T2 = new MessageChannel(), U2 = T2.port2;
441 T2.port1.onmessage = R2;
442 S2 = function() {
443 U2.postMessage(null);
444 };
445 } else S2 = function() {
446 D2(R2, 0);
447 };
448 function I2(a) {
449 O2 = a;
450 N2 || (N2 = true, S2());
451 }
452 function K2(a, b2) {
453 L2 = D2(function() {
454 a(exports$1.unstable_now());
455 }, b2);
456 }
457 exports$1.unstable_IdlePriority = 5;
458 exports$1.unstable_ImmediatePriority = 1;
459 exports$1.unstable_LowPriority = 4;
460 exports$1.unstable_NormalPriority = 3;
461 exports$1.unstable_Profiling = null;
462 exports$1.unstable_UserBlockingPriority = 2;
463 exports$1.unstable_cancelCallback = function(a) {
464 a.callback = null;
465 };
466 exports$1.unstable_continueExecution = function() {
467 A2 || z2 || (A2 = true, I2(J2));
468 };
469 exports$1.unstable_forceFrameRate = function(a) {
470 0 > a || 125 < a ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : P2 = 0 < a ? Math.floor(1e3 / a) : 5;
471 };
472 exports$1.unstable_getCurrentPriorityLevel = function() {
473 return y2;
474 };
475 exports$1.unstable_getFirstCallbackNode = function() {
476 return h2(r2);
477 };
478 exports$1.unstable_next = function(a) {
479 switch (y2) {
480 case 1:
481 case 2:
482 case 3:
483 var b2 = 3;
484 break;
485 default:
486 b2 = y2;
487 }
488 var c2 = y2;
489 y2 = b2;
490 try {
491 return a();
492 } finally {
493 y2 = c2;
494 }
495 };
496 exports$1.unstable_pauseExecution = function() {
497 };
498 exports$1.unstable_requestPaint = function() {
499 };
500 exports$1.unstable_runWithPriority = function(a, b2) {
501 switch (a) {
502 case 1:
503 case 2:
504 case 3:
505 case 4:
506 case 5:
507 break;
508 default:
509 a = 3;
510 }
511 var c2 = y2;
512 y2 = a;
513 try {
514 return b2();
515 } finally {
516 y2 = c2;
517 }
518 };
519 exports$1.unstable_scheduleCallback = function(a, b2, c2) {
520 var d2 = exports$1.unstable_now();
521 "object" === typeof c2 && null !== c2 ? (c2 = c2.delay, c2 = "number" === typeof c2 && 0 < c2 ? d2 + c2 : d2) : c2 = d2;
522 switch (a) {
523 case 1:
524 var e2 = -1;
525 break;
526 case 2:
527 e2 = 250;
528 break;
529 case 5:
530 e2 = 1073741823;
531 break;
532 case 4:
533 e2 = 1e4;
534 break;
535 default:
536 e2 = 5e3;
537 }
538 e2 = c2 + e2;
539 a = { id: u2++, callback: b2, priorityLevel: a, startTime: c2, expirationTime: e2, sortIndex: -1 };
540 c2 > d2 ? (a.sortIndex = c2, f2(t2, a), null === h2(r2) && a === h2(t2) && (B2 ? (E2(L2), L2 = -1) : B2 = true, K2(H2, c2 - d2))) : (a.sortIndex = e2, f2(r2, a), A2 || z2 || (A2 = true, I2(J2)));
541 return a;
542 };
543 exports$1.unstable_shouldYield = M2;
544 exports$1.unstable_wrapCallback = function(a) {
545 var b2 = y2;
546 return function() {
547 var c2 = y2;
548 y2 = b2;
549 try {
550 return a.apply(this, arguments);
551 } finally {
552 y2 = c2;
553 }
554 };
555 };
556 })(scheduler_production_min);
557 {
558 scheduler.exports = scheduler_production_min;
559 }
560 var schedulerExports = scheduler.exports;
561 /**
562 * @license React
563 * react-dom.production.min.js
564 *
565 * Copyright (c) Facebook, Inc. and its affiliates.
566 *
567 * This source code is licensed under the MIT license found in the
568 * LICENSE file in the root directory of this source tree.
569 */
570 var aa = reactExports, ca = schedulerExports;
571 function p$1(a) {
572 for (var b2 = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, c2 = 1; c2 < arguments.length; c2++) b2 += "&args[]=" + encodeURIComponent(arguments[c2]);
573 return "Minified React error #" + a + "; visit " + b2 + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
574 }
575 var da = /* @__PURE__ */ new Set(), ea = {};
576 function fa(a, b2) {
577 ha(a, b2);
578 ha(a + "Capture", b2);
579 }
580 function ha(a, b2) {
581 ea[a] = b2;
582 for (a = 0; a < b2.length; a++) da.add(b2[a]);
583 }
584 var ia = !("undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement), ja = Object.prototype.hasOwnProperty, ka = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, la = {}, ma = {};
585 function oa(a) {
586 if (ja.call(ma, a)) return true;
587 if (ja.call(la, a)) return false;
588 if (ka.test(a)) return ma[a] = true;
589 la[a] = true;
590 return false;
591 }
592 function pa(a, b2, c2, d2) {
593 if (null !== c2 && 0 === c2.type) return false;
594 switch (typeof b2) {
595 case "function":
596 case "symbol":
597 return true;
598 case "boolean":
599 if (d2) return false;
600 if (null !== c2) return !c2.acceptsBooleans;
601 a = a.toLowerCase().slice(0, 5);
602 return "data-" !== a && "aria-" !== a;
603 default:
604 return false;
605 }
606 }
607 function qa(a, b2, c2, d2) {
608 if (null === b2 || "undefined" === typeof b2 || pa(a, b2, c2, d2)) return true;
609 if (d2) return false;
610 if (null !== c2) switch (c2.type) {
611 case 3:
612 return !b2;
613 case 4:
614 return false === b2;
615 case 5:
616 return isNaN(b2);
617 case 6:
618 return isNaN(b2) || 1 > b2;
619 }
620 return false;
621 }
622 function v$1(a, b2, c2, d2, e2, f2, g2) {
623 this.acceptsBooleans = 2 === b2 || 3 === b2 || 4 === b2;
624 this.attributeName = d2;
625 this.attributeNamespace = e2;
626 this.mustUseProperty = c2;
627 this.propertyName = a;
628 this.type = b2;
629 this.sanitizeURL = f2;
630 this.removeEmptyString = g2;
631 }
632 var z = {};
633 "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a) {
634 z[a] = new v$1(a, 0, false, a, null, false, false);
635 });
636 [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(a) {
637 var b2 = a[0];
638 z[b2] = new v$1(b2, 1, false, a[1], null, false, false);
639 });
640 ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(a) {
641 z[a] = new v$1(a, 2, false, a.toLowerCase(), null, false, false);
642 });
643 ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(a) {
644 z[a] = new v$1(a, 2, false, a, null, false, false);
645 });
646 "allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a) {
647 z[a] = new v$1(a, 3, false, a.toLowerCase(), null, false, false);
648 });
649 ["checked", "multiple", "muted", "selected"].forEach(function(a) {
650 z[a] = new v$1(a, 3, true, a, null, false, false);
651 });
652 ["capture", "download"].forEach(function(a) {
653 z[a] = new v$1(a, 4, false, a, null, false, false);
654 });
655 ["cols", "rows", "size", "span"].forEach(function(a) {
656 z[a] = new v$1(a, 6, false, a, null, false, false);
657 });
658 ["rowSpan", "start"].forEach(function(a) {
659 z[a] = new v$1(a, 5, false, a.toLowerCase(), null, false, false);
660 });
661 var ra = /[\-:]([a-z])/g;
662 function sa(a) {
663 return a[1].toUpperCase();
664 }
665 "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a) {
666 var b2 = a.replace(
667 ra,
668 sa
669 );
670 z[b2] = new v$1(b2, 1, false, a, null, false, false);
671 });
672 "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a) {
673 var b2 = a.replace(ra, sa);
674 z[b2] = new v$1(b2, 1, false, a, "http://www.w3.org/1999/xlink", false, false);
675 });
676 ["xml:base", "xml:lang", "xml:space"].forEach(function(a) {
677 var b2 = a.replace(ra, sa);
678 z[b2] = new v$1(b2, 1, false, a, "http://www.w3.org/XML/1998/namespace", false, false);
679 });
680 ["tabIndex", "crossOrigin"].forEach(function(a) {
681 z[a] = new v$1(a, 1, false, a.toLowerCase(), null, false, false);
682 });
683 z.xlinkHref = new v$1("xlinkHref", 1, false, "xlink:href", "http://www.w3.org/1999/xlink", true, false);
684 ["src", "href", "action", "formAction"].forEach(function(a) {
685 z[a] = new v$1(a, 1, false, a.toLowerCase(), null, true, true);
686 });
687 function ta(a, b2, c2, d2) {
688 var e2 = z.hasOwnProperty(b2) ? z[b2] : null;
689 if (null !== e2 ? 0 !== e2.type : d2 || !(2 < b2.length) || "o" !== b2[0] && "O" !== b2[0] || "n" !== b2[1] && "N" !== b2[1]) qa(b2, c2, e2, d2) && (c2 = null), d2 || null === e2 ? oa(b2) && (null === c2 ? a.removeAttribute(b2) : a.setAttribute(b2, "" + c2)) : e2.mustUseProperty ? a[e2.propertyName] = null === c2 ? 3 === e2.type ? false : "" : c2 : (b2 = e2.attributeName, d2 = e2.attributeNamespace, null === c2 ? a.removeAttribute(b2) : (e2 = e2.type, c2 = 3 === e2 || 4 === e2 && true === c2 ? "" : "" + c2, d2 ? a.setAttributeNS(d2, b2, c2) : a.setAttribute(b2, c2)));
690 }
691 var ua = aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, va = Symbol.for("react.element"), wa = Symbol.for("react.portal"), ya = Symbol.for("react.fragment"), za = Symbol.for("react.strict_mode"), Aa = Symbol.for("react.profiler"), Ba = Symbol.for("react.provider"), Ca = Symbol.for("react.context"), Da = Symbol.for("react.forward_ref"), Ea = Symbol.for("react.suspense"), Fa = Symbol.for("react.suspense_list"), Ga = Symbol.for("react.memo"), Ha = Symbol.for("react.lazy");
692 var Ia = Symbol.for("react.offscreen");
693 var Ja = Symbol.iterator;
694 function Ka(a) {
695 if (null === a || "object" !== typeof a) return null;
696 a = Ja && a[Ja] || a["@@iterator"];
697 return "function" === typeof a ? a : null;
698 }
699 var A = Object.assign, La;
700 function Ma(a) {
701 if (void 0 === La) try {
702 throw Error();
703 } catch (c2) {
704 var b2 = c2.stack.trim().match(/\n( *(at )?)/);
705 La = b2 && b2[1] || "";
706 }
707 return "\n" + La + a;
708 }
709 var Na = false;
710 function Oa(a, b2) {
711 if (!a || Na) return "";
712 Na = true;
713 var c2 = Error.prepareStackTrace;
714 Error.prepareStackTrace = void 0;
715 try {
716 if (b2) if (b2 = function() {
717 throw Error();
718 }, Object.defineProperty(b2.prototype, "props", { set: function() {
719 throw Error();
720 } }), "object" === typeof Reflect && Reflect.construct) {
721 try {
722 Reflect.construct(b2, []);
723 } catch (l2) {
724 var d2 = l2;
725 }
726 Reflect.construct(a, [], b2);
727 } else {
728 try {
729 b2.call();
730 } catch (l2) {
731 d2 = l2;
732 }
733 a.call(b2.prototype);
734 }
735 else {
736 try {
737 throw Error();
738 } catch (l2) {
739 d2 = l2;
740 }
741 a();
742 }
743 } catch (l2) {
744 if (l2 && d2 && "string" === typeof l2.stack) {
745 for (var e2 = l2.stack.split("\n"), f2 = d2.stack.split("\n"), g2 = e2.length - 1, h2 = f2.length - 1; 1 <= g2 && 0 <= h2 && e2[g2] !== f2[h2]; ) h2--;
746 for (; 1 <= g2 && 0 <= h2; g2--, h2--) if (e2[g2] !== f2[h2]) {
747 if (1 !== g2 || 1 !== h2) {
748 do
749 if (g2--, h2--, 0 > h2 || e2[g2] !== f2[h2]) {
750 var k2 = "\n" + e2[g2].replace(" at new ", " at ");
751 a.displayName && k2.includes("<anonymous>") && (k2 = k2.replace("<anonymous>", a.displayName));
752 return k2;
753 }
754 while (1 <= g2 && 0 <= h2);
755 }
756 break;
757 }
758 }
759 } finally {
760 Na = false, Error.prepareStackTrace = c2;
761 }
762 return (a = a ? a.displayName || a.name : "") ? Ma(a) : "";
763 }
764 function Pa(a) {
765 switch (a.tag) {
766 case 5:
767 return Ma(a.type);
768 case 16:
769 return Ma("Lazy");
770 case 13:
771 return Ma("Suspense");
772 case 19:
773 return Ma("SuspenseList");
774 case 0:
775 case 2:
776 case 15:
777 return a = Oa(a.type, false), a;
778 case 11:
779 return a = Oa(a.type.render, false), a;
780 case 1:
781 return a = Oa(a.type, true), a;
782 default:
783 return "";
784 }
785 }
786 function Qa(a) {
787 if (null == a) return null;
788 if ("function" === typeof a) return a.displayName || a.name || null;
789 if ("string" === typeof a) return a;
790 switch (a) {
791 case ya:
792 return "Fragment";
793 case wa:
794 return "Portal";
795 case Aa:
796 return "Profiler";
797 case za:
798 return "StrictMode";
799 case Ea:
800 return "Suspense";
801 case Fa:
802 return "SuspenseList";
803 }
804 if ("object" === typeof a) switch (a.$$typeof) {
805 case Ca:
806 return (a.displayName || "Context") + ".Consumer";
807 case Ba:
808 return (a._context.displayName || "Context") + ".Provider";
809 case Da:
810 var b2 = a.render;
811 a = a.displayName;
812 a || (a = b2.displayName || b2.name || "", a = "" !== a ? "ForwardRef(" + a + ")" : "ForwardRef");
813 return a;
814 case Ga:
815 return b2 = a.displayName || null, null !== b2 ? b2 : Qa(a.type) || "Memo";
816 case Ha:
817 b2 = a._payload;
818 a = a._init;
819 try {
820 return Qa(a(b2));
821 } catch (c2) {
822 }
823 }
824 return null;
825 }
826 function Ra(a) {
827 var b2 = a.type;
828 switch (a.tag) {
829 case 24:
830 return "Cache";
831 case 9:
832 return (b2.displayName || "Context") + ".Consumer";
833 case 10:
834 return (b2._context.displayName || "Context") + ".Provider";
835 case 18:
836 return "DehydratedFragment";
837 case 11:
838 return a = b2.render, a = a.displayName || a.name || "", b2.displayName || ("" !== a ? "ForwardRef(" + a + ")" : "ForwardRef");
839 case 7:
840 return "Fragment";
841 case 5:
842 return b2;
843 case 4:
844 return "Portal";
845 case 3:
846 return "Root";
847 case 6:
848 return "Text";
849 case 16:
850 return Qa(b2);
851 case 8:
852 return b2 === za ? "StrictMode" : "Mode";
853 case 22:
854 return "Offscreen";
855 case 12:
856 return "Profiler";
857 case 21:
858 return "Scope";
859 case 13:
860 return "Suspense";
861 case 19:
862 return "SuspenseList";
863 case 25:
864 return "TracingMarker";
865 case 1:
866 case 0:
867 case 17:
868 case 2:
869 case 14:
870 case 15:
871 if ("function" === typeof b2) return b2.displayName || b2.name || null;
872 if ("string" === typeof b2) return b2;
873 }
874 return null;
875 }
876 function Sa(a) {
877 switch (typeof a) {
878 case "boolean":
879 case "number":
880 case "string":
881 case "undefined":
882 return a;
883 case "object":
884 return a;
885 default:
886 return "";
887 }
888 }
889 function Ta(a) {
890 var b2 = a.type;
891 return (a = a.nodeName) && "input" === a.toLowerCase() && ("checkbox" === b2 || "radio" === b2);
892 }
893 function Ua(a) {
894 var b2 = Ta(a) ? "checked" : "value", c2 = Object.getOwnPropertyDescriptor(a.constructor.prototype, b2), d2 = "" + a[b2];
895 if (!a.hasOwnProperty(b2) && "undefined" !== typeof c2 && "function" === typeof c2.get && "function" === typeof c2.set) {
896 var e2 = c2.get, f2 = c2.set;
897 Object.defineProperty(a, b2, { configurable: true, get: function() {
898 return e2.call(this);
899 }, set: function(a2) {
900 d2 = "" + a2;
901 f2.call(this, a2);
902 } });
903 Object.defineProperty(a, b2, { enumerable: c2.enumerable });
904 return { getValue: function() {
905 return d2;
906 }, setValue: function(a2) {
907 d2 = "" + a2;
908 }, stopTracking: function() {
909 a._valueTracker = null;
910 delete a[b2];
911 } };
912 }
913 }
914 function Va(a) {
915 a._valueTracker || (a._valueTracker = Ua(a));
916 }
917 function Wa(a) {
918 if (!a) return false;
919 var b2 = a._valueTracker;
920 if (!b2) return true;
921 var c2 = b2.getValue();
922 var d2 = "";
923 a && (d2 = Ta(a) ? a.checked ? "true" : "false" : a.value);
924 a = d2;
925 return a !== c2 ? (b2.setValue(a), true) : false;
926 }
927 function Xa(a) {
928 a = a || ("undefined" !== typeof document ? document : void 0);
929 if ("undefined" === typeof a) return null;
930 try {
931 return a.activeElement || a.body;
932 } catch (b2) {
933 return a.body;
934 }
935 }
936 function Ya(a, b2) {
937 var c2 = b2.checked;
938 return A({}, b2, { defaultChecked: void 0, defaultValue: void 0, value: void 0, checked: null != c2 ? c2 : a._wrapperState.initialChecked });
939 }
940 function Za(a, b2) {
941 var c2 = null == b2.defaultValue ? "" : b2.defaultValue, d2 = null != b2.checked ? b2.checked : b2.defaultChecked;
942 c2 = Sa(null != b2.value ? b2.value : c2);
943 a._wrapperState = { initialChecked: d2, initialValue: c2, controlled: "checkbox" === b2.type || "radio" === b2.type ? null != b2.checked : null != b2.value };
944 }
945 function ab(a, b2) {
946 b2 = b2.checked;
947 null != b2 && ta(a, "checked", b2, false);
948 }
949 function bb(a, b2) {
950 ab(a, b2);
951 var c2 = Sa(b2.value), d2 = b2.type;
952 if (null != c2) if ("number" === d2) {
953 if (0 === c2 && "" === a.value || a.value != c2) a.value = "" + c2;
954 } else a.value !== "" + c2 && (a.value = "" + c2);
955 else if ("submit" === d2 || "reset" === d2) {
956 a.removeAttribute("value");
957 return;
958 }
959 b2.hasOwnProperty("value") ? cb(a, b2.type, c2) : b2.hasOwnProperty("defaultValue") && cb(a, b2.type, Sa(b2.defaultValue));
960 null == b2.checked && null != b2.defaultChecked && (a.defaultChecked = !!b2.defaultChecked);
961 }
962 function db(a, b2, c2) {
963 if (b2.hasOwnProperty("value") || b2.hasOwnProperty("defaultValue")) {
964 var d2 = b2.type;
965 if (!("submit" !== d2 && "reset" !== d2 || void 0 !== b2.value && null !== b2.value)) return;
966 b2 = "" + a._wrapperState.initialValue;
967 c2 || b2 === a.value || (a.value = b2);
968 a.defaultValue = b2;
969 }
970 c2 = a.name;
971 "" !== c2 && (a.name = "");
972 a.defaultChecked = !!a._wrapperState.initialChecked;
973 "" !== c2 && (a.name = c2);
974 }
975 function cb(a, b2, c2) {
976 if ("number" !== b2 || Xa(a.ownerDocument) !== a) null == c2 ? a.defaultValue = "" + a._wrapperState.initialValue : a.defaultValue !== "" + c2 && (a.defaultValue = "" + c2);
977 }
978 var eb = Array.isArray;
979 function fb(a, b2, c2, d2) {
980 a = a.options;
981 if (b2) {
982 b2 = {};
983 for (var e2 = 0; e2 < c2.length; e2++) b2["$" + c2[e2]] = true;
984 for (c2 = 0; c2 < a.length; c2++) e2 = b2.hasOwnProperty("$" + a[c2].value), a[c2].selected !== e2 && (a[c2].selected = e2), e2 && d2 && (a[c2].defaultSelected = true);
985 } else {
986 c2 = "" + Sa(c2);
987 b2 = null;
988 for (e2 = 0; e2 < a.length; e2++) {
989 if (a[e2].value === c2) {
990 a[e2].selected = true;
991 d2 && (a[e2].defaultSelected = true);
992 return;
993 }
994 null !== b2 || a[e2].disabled || (b2 = a[e2]);
995 }
996 null !== b2 && (b2.selected = true);
997 }
998 }
999 function gb(a, b2) {
1000 if (null != b2.dangerouslySetInnerHTML) throw Error(p$1(91));
1001 return A({}, b2, { value: void 0, defaultValue: void 0, children: "" + a._wrapperState.initialValue });
1002 }
1003 function hb(a, b2) {
1004 var c2 = b2.value;
1005 if (null == c2) {
1006 c2 = b2.children;
1007 b2 = b2.defaultValue;
1008 if (null != c2) {
1009 if (null != b2) throw Error(p$1(92));
1010 if (eb(c2)) {
1011 if (1 < c2.length) throw Error(p$1(93));
1012 c2 = c2[0];
1013 }
1014 b2 = c2;
1015 }
1016 null == b2 && (b2 = "");
1017 c2 = b2;
1018 }
1019 a._wrapperState = { initialValue: Sa(c2) };
1020 }
1021 function ib(a, b2) {
1022 var c2 = Sa(b2.value), d2 = Sa(b2.defaultValue);
1023 null != c2 && (c2 = "" + c2, c2 !== a.value && (a.value = c2), null == b2.defaultValue && a.defaultValue !== c2 && (a.defaultValue = c2));
1024 null != d2 && (a.defaultValue = "" + d2);
1025 }
1026 function jb(a) {
1027 var b2 = a.textContent;
1028 b2 === a._wrapperState.initialValue && "" !== b2 && null !== b2 && (a.value = b2);
1029 }
1030 function kb(a) {
1031 switch (a) {
1032 case "svg":
1033 return "http://www.w3.org/2000/svg";
1034 case "math":
1035 return "http://www.w3.org/1998/Math/MathML";
1036 default:
1037 return "http://www.w3.org/1999/xhtml";
1038 }
1039 }
1040 function lb(a, b2) {
1041 return null == a || "http://www.w3.org/1999/xhtml" === a ? kb(b2) : "http://www.w3.org/2000/svg" === a && "foreignObject" === b2 ? "http://www.w3.org/1999/xhtml" : a;
1042 }
1043 var mb, nb = function(a) {
1044 return "undefined" !== typeof MSApp && MSApp.execUnsafeLocalFunction ? function(b2, c2, d2, e2) {
1045 MSApp.execUnsafeLocalFunction(function() {
1046 return a(b2, c2, d2, e2);
1047 });
1048 } : a;
1049 }(function(a, b2) {
1050 if ("http://www.w3.org/2000/svg" !== a.namespaceURI || "innerHTML" in a) a.innerHTML = b2;
1051 else {
1052 mb = mb || document.createElement("div");
1053 mb.innerHTML = "<svg>" + b2.valueOf().toString() + "</svg>";
1054 for (b2 = mb.firstChild; a.firstChild; ) a.removeChild(a.firstChild);
1055 for (; b2.firstChild; ) a.appendChild(b2.firstChild);
1056 }
1057 });
1058 function ob(a, b2) {
1059 if (b2) {
1060 var c2 = a.firstChild;
1061 if (c2 && c2 === a.lastChild && 3 === c2.nodeType) {
1062 c2.nodeValue = b2;
1063 return;
1064 }
1065 }
1066 a.textContent = b2;
1067 }
1068 var pb = {
1069 animationIterationCount: true,
1070 aspectRatio: true,
1071 borderImageOutset: true,
1072 borderImageSlice: true,
1073 borderImageWidth: true,
1074 boxFlex: true,
1075 boxFlexGroup: true,
1076 boxOrdinalGroup: true,
1077 columnCount: true,
1078 columns: true,
1079 flex: true,
1080 flexGrow: true,
1081 flexPositive: true,
1082 flexShrink: true,
1083 flexNegative: true,
1084 flexOrder: true,
1085 gridArea: true,
1086 gridRow: true,
1087 gridRowEnd: true,
1088 gridRowSpan: true,
1089 gridRowStart: true,
1090 gridColumn: true,
1091 gridColumnEnd: true,
1092 gridColumnSpan: true,
1093 gridColumnStart: true,
1094 fontWeight: true,
1095 lineClamp: true,
1096 lineHeight: true,
1097 opacity: true,
1098 order: true,
1099 orphans: true,
1100 tabSize: true,
1101 widows: true,
1102 zIndex: true,
1103 zoom: true,
1104 fillOpacity: true,
1105 floodOpacity: true,
1106 stopOpacity: true,
1107 strokeDasharray: true,
1108 strokeDashoffset: true,
1109 strokeMiterlimit: true,
1110 strokeOpacity: true,
1111 strokeWidth: true
1112 }, qb = ["Webkit", "ms", "Moz", "O"];
1113 Object.keys(pb).forEach(function(a) {
1114 qb.forEach(function(b2) {
1115 b2 = b2 + a.charAt(0).toUpperCase() + a.substring(1);
1116 pb[b2] = pb[a];
1117 });
1118 });
1119 function rb(a, b2, c2) {
1120 return null == b2 || "boolean" === typeof b2 || "" === b2 ? "" : c2 || "number" !== typeof b2 || 0 === b2 || pb.hasOwnProperty(a) && pb[a] ? ("" + b2).trim() : b2 + "px";
1121 }
1122 function sb(a, b2) {
1123 a = a.style;
1124 for (var c2 in b2) if (b2.hasOwnProperty(c2)) {
1125 var d2 = 0 === c2.indexOf("--"), e2 = rb(c2, b2[c2], d2);
1126 "float" === c2 && (c2 = "cssFloat");
1127 d2 ? a.setProperty(c2, e2) : a[c2] = e2;
1128 }
1129 }
1130 var tb = A({ menuitem: true }, { area: true, base: true, br: true, col: true, embed: true, hr: true, img: true, input: true, keygen: true, link: true, meta: true, param: true, source: true, track: true, wbr: true });
1131 function ub(a, b2) {
1132 if (b2) {
1133 if (tb[a] && (null != b2.children || null != b2.dangerouslySetInnerHTML)) throw Error(p$1(137, a));
1134 if (null != b2.dangerouslySetInnerHTML) {
1135 if (null != b2.children) throw Error(p$1(60));
1136 if ("object" !== typeof b2.dangerouslySetInnerHTML || !("__html" in b2.dangerouslySetInnerHTML)) throw Error(p$1(61));
1137 }
1138 if (null != b2.style && "object" !== typeof b2.style) throw Error(p$1(62));
1139 }
1140 }
1141 function vb(a, b2) {
1142 if (-1 === a.indexOf("-")) return "string" === typeof b2.is;
1143 switch (a) {
1144 case "annotation-xml":
1145 case "color-profile":
1146 case "font-face":
1147 case "font-face-src":
1148 case "font-face-uri":
1149 case "font-face-format":
1150 case "font-face-name":
1151 case "missing-glyph":
1152 return false;
1153 default:
1154 return true;
1155 }
1156 }
1157 var wb = null;
1158 function xb(a) {
1159 a = a.target || a.srcElement || window;
1160 a.correspondingUseElement && (a = a.correspondingUseElement);
1161 return 3 === a.nodeType ? a.parentNode : a;
1162 }
1163 var yb = null, zb = null, Ab = null;
1164 function Bb(a) {
1165 if (a = Cb(a)) {
1166 if ("function" !== typeof yb) throw Error(p$1(280));
1167 var b2 = a.stateNode;
1168 b2 && (b2 = Db(b2), yb(a.stateNode, a.type, b2));
1169 }
1170 }
1171 function Eb(a) {
1172 zb ? Ab ? Ab.push(a) : Ab = [a] : zb = a;
1173 }
1174 function Fb() {
1175 if (zb) {
1176 var a = zb, b2 = Ab;
1177 Ab = zb = null;
1178 Bb(a);
1179 if (b2) for (a = 0; a < b2.length; a++) Bb(b2[a]);
1180 }
1181 }
1182 function Gb(a, b2) {
1183 return a(b2);
1184 }
1185 function Hb() {
1186 }
1187 var Ib = false;
1188 function Jb(a, b2, c2) {
1189 if (Ib) return a(b2, c2);
1190 Ib = true;
1191 try {
1192 return Gb(a, b2, c2);
1193 } finally {
1194 if (Ib = false, null !== zb || null !== Ab) Hb(), Fb();
1195 }
1196 }
1197 function Kb(a, b2) {
1198 var c2 = a.stateNode;
1199 if (null === c2) return null;
1200 var d2 = Db(c2);
1201 if (null === d2) return null;
1202 c2 = d2[b2];
1203 a: switch (b2) {
1204 case "onClick":
1205 case "onClickCapture":
1206 case "onDoubleClick":
1207 case "onDoubleClickCapture":
1208 case "onMouseDown":
1209 case "onMouseDownCapture":
1210 case "onMouseMove":
1211 case "onMouseMoveCapture":
1212 case "onMouseUp":
1213 case "onMouseUpCapture":
1214 case "onMouseEnter":
1215 (d2 = !d2.disabled) || (a = a.type, d2 = !("button" === a || "input" === a || "select" === a || "textarea" === a));
1216 a = !d2;
1217 break a;
1218 default:
1219 a = false;
1220 }
1221 if (a) return null;
1222 if (c2 && "function" !== typeof c2) throw Error(p$1(231, b2, typeof c2));
1223 return c2;
1224 }
1225 var Lb = false;
1226 if (ia) try {
1227 var Mb = {};
1228 Object.defineProperty(Mb, "passive", { get: function() {
1229 Lb = true;
1230 } });
1231 window.addEventListener("test", Mb, Mb);
1232 window.removeEventListener("test", Mb, Mb);
1233 } catch (a) {
1234 Lb = false;
1235 }
1236 function Nb(a, b2, c2, d2, e2, f2, g2, h2, k2) {
1237 var l2 = Array.prototype.slice.call(arguments, 3);
1238 try {
1239 b2.apply(c2, l2);
1240 } catch (m2) {
1241 this.onError(m2);
1242 }
1243 }
1244 var Ob = false, Pb = null, Qb = false, Rb = null, Sb = { onError: function(a) {
1245 Ob = true;
1246 Pb = a;
1247 } };
1248 function Tb(a, b2, c2, d2, e2, f2, g2, h2, k2) {
1249 Ob = false;
1250 Pb = null;
1251 Nb.apply(Sb, arguments);
1252 }
1253 function Ub(a, b2, c2, d2, e2, f2, g2, h2, k2) {
1254 Tb.apply(this, arguments);
1255 if (Ob) {
1256 if (Ob) {
1257 var l2 = Pb;
1258 Ob = false;
1259 Pb = null;
1260 } else throw Error(p$1(198));
1261 Qb || (Qb = true, Rb = l2);
1262 }
1263 }
1264 function Vb(a) {
1265 var b2 = a, c2 = a;
1266 if (a.alternate) for (; b2.return; ) b2 = b2.return;
1267 else {
1268 a = b2;
1269 do
1270 b2 = a, 0 !== (b2.flags & 4098) && (c2 = b2.return), a = b2.return;
1271 while (a);
1272 }
1273 return 3 === b2.tag ? c2 : null;
1274 }
1275 function Wb(a) {
1276 if (13 === a.tag) {
1277 var b2 = a.memoizedState;
1278 null === b2 && (a = a.alternate, null !== a && (b2 = a.memoizedState));
1279 if (null !== b2) return b2.dehydrated;
1280 }
1281 return null;
1282 }
1283 function Xb(a) {
1284 if (Vb(a) !== a) throw Error(p$1(188));
1285 }
1286 function Yb(a) {
1287 var b2 = a.alternate;
1288 if (!b2) {
1289 b2 = Vb(a);
1290 if (null === b2) throw Error(p$1(188));
1291 return b2 !== a ? null : a;
1292 }
1293 for (var c2 = a, d2 = b2; ; ) {
1294 var e2 = c2.return;
1295 if (null === e2) break;
1296 var f2 = e2.alternate;
1297 if (null === f2) {
1298 d2 = e2.return;
1299 if (null !== d2) {
1300 c2 = d2;
1301 continue;
1302 }
1303 break;
1304 }
1305 if (e2.child === f2.child) {
1306 for (f2 = e2.child; f2; ) {
1307 if (f2 === c2) return Xb(e2), a;
1308 if (f2 === d2) return Xb(e2), b2;
1309 f2 = f2.sibling;
1310 }
1311 throw Error(p$1(188));
1312 }
1313 if (c2.return !== d2.return) c2 = e2, d2 = f2;
1314 else {
1315 for (var g2 = false, h2 = e2.child; h2; ) {
1316 if (h2 === c2) {
1317 g2 = true;
1318 c2 = e2;
1319 d2 = f2;
1320 break;
1321 }
1322 if (h2 === d2) {
1323 g2 = true;
1324 d2 = e2;
1325 c2 = f2;
1326 break;
1327 }
1328 h2 = h2.sibling;
1329 }
1330 if (!g2) {
1331 for (h2 = f2.child; h2; ) {
1332 if (h2 === c2) {
1333 g2 = true;
1334 c2 = f2;
1335 d2 = e2;
1336 break;
1337 }
1338 if (h2 === d2) {
1339 g2 = true;
1340 d2 = f2;
1341 c2 = e2;
1342 break;
1343 }
1344 h2 = h2.sibling;
1345 }
1346 if (!g2) throw Error(p$1(189));
1347 }
1348 }
1349 if (c2.alternate !== d2) throw Error(p$1(190));
1350 }
1351 if (3 !== c2.tag) throw Error(p$1(188));
1352 return c2.stateNode.current === c2 ? a : b2;
1353 }
1354 function Zb(a) {
1355 a = Yb(a);
1356 return null !== a ? $b(a) : null;
1357 }
1358 function $b(a) {
1359 if (5 === a.tag || 6 === a.tag) return a;
1360 for (a = a.child; null !== a; ) {
1361 var b2 = $b(a);
1362 if (null !== b2) return b2;
1363 a = a.sibling;
1364 }
1365 return null;
1366 }
1367 var ac = ca.unstable_scheduleCallback, bc = ca.unstable_cancelCallback, cc = ca.unstable_shouldYield, dc = ca.unstable_requestPaint, B = ca.unstable_now, ec = ca.unstable_getCurrentPriorityLevel, fc = ca.unstable_ImmediatePriority, gc = ca.unstable_UserBlockingPriority, hc = ca.unstable_NormalPriority, ic = ca.unstable_LowPriority, jc = ca.unstable_IdlePriority, kc = null, lc = null;
1368 function mc(a) {
1369 if (lc && "function" === typeof lc.onCommitFiberRoot) try {
1370 lc.onCommitFiberRoot(kc, a, void 0, 128 === (a.current.flags & 128));
1371 } catch (b2) {
1372 }
1373 }
1374 var oc = Math.clz32 ? Math.clz32 : nc, pc = Math.log, qc = Math.LN2;
1375 function nc(a) {
1376 a >>>= 0;
1377 return 0 === a ? 32 : 31 - (pc(a) / qc | 0) | 0;
1378 }
1379 var rc = 64, sc = 4194304;
1380 function tc(a) {
1381 switch (a & -a) {
1382 case 1:
1383 return 1;
1384 case 2:
1385 return 2;
1386 case 4:
1387 return 4;
1388 case 8:
1389 return 8;
1390 case 16:
1391 return 16;
1392 case 32:
1393 return 32;
1394 case 64:
1395 case 128:
1396 case 256:
1397 case 512:
1398 case 1024:
1399 case 2048:
1400 case 4096:
1401 case 8192:
1402 case 16384:
1403 case 32768:
1404 case 65536:
1405 case 131072:
1406 case 262144:
1407 case 524288:
1408 case 1048576:
1409 case 2097152:
1410 return a & 4194240;
1411 case 4194304:
1412 case 8388608:
1413 case 16777216:
1414 case 33554432:
1415 case 67108864:
1416 return a & 130023424;
1417 case 134217728:
1418 return 134217728;
1419 case 268435456:
1420 return 268435456;
1421 case 536870912:
1422 return 536870912;
1423 case 1073741824:
1424 return 1073741824;
1425 default:
1426 return a;
1427 }
1428 }
1429 function uc(a, b2) {
1430 var c2 = a.pendingLanes;
1431 if (0 === c2) return 0;
1432 var d2 = 0, e2 = a.suspendedLanes, f2 = a.pingedLanes, g2 = c2 & 268435455;
1433 if (0 !== g2) {
1434 var h2 = g2 & ~e2;
1435 0 !== h2 ? d2 = tc(h2) : (f2 &= g2, 0 !== f2 && (d2 = tc(f2)));
1436 } else g2 = c2 & ~e2, 0 !== g2 ? d2 = tc(g2) : 0 !== f2 && (d2 = tc(f2));
1437 if (0 === d2) return 0;
1438 if (0 !== b2 && b2 !== d2 && 0 === (b2 & e2) && (e2 = d2 & -d2, f2 = b2 & -b2, e2 >= f2 || 16 === e2 && 0 !== (f2 & 4194240))) return b2;
1439 0 !== (d2 & 4) && (d2 |= c2 & 16);
1440 b2 = a.entangledLanes;
1441 if (0 !== b2) for (a = a.entanglements, b2 &= d2; 0 < b2; ) c2 = 31 - oc(b2), e2 = 1 << c2, d2 |= a[c2], b2 &= ~e2;
1442 return d2;
1443 }
1444 function vc(a, b2) {
1445 switch (a) {
1446 case 1:
1447 case 2:
1448 case 4:
1449 return b2 + 250;
1450 case 8:
1451 case 16:
1452 case 32:
1453 case 64:
1454 case 128:
1455 case 256:
1456 case 512:
1457 case 1024:
1458 case 2048:
1459 case 4096:
1460 case 8192:
1461 case 16384:
1462 case 32768:
1463 case 65536:
1464 case 131072:
1465 case 262144:
1466 case 524288:
1467 case 1048576:
1468 case 2097152:
1469 return b2 + 5e3;
1470 case 4194304:
1471 case 8388608:
1472 case 16777216:
1473 case 33554432:
1474 case 67108864:
1475 return -1;
1476 case 134217728:
1477 case 268435456:
1478 case 536870912:
1479 case 1073741824:
1480 return -1;
1481 default:
1482 return -1;
1483 }
1484 }
1485 function wc(a, b2) {
1486 for (var c2 = a.suspendedLanes, d2 = a.pingedLanes, e2 = a.expirationTimes, f2 = a.pendingLanes; 0 < f2; ) {
1487 var g2 = 31 - oc(f2), h2 = 1 << g2, k2 = e2[g2];
1488 if (-1 === k2) {
1489 if (0 === (h2 & c2) || 0 !== (h2 & d2)) e2[g2] = vc(h2, b2);
1490 } else k2 <= b2 && (a.expiredLanes |= h2);
1491 f2 &= ~h2;
1492 }
1493 }
1494 function xc(a) {
1495 a = a.pendingLanes & -1073741825;
1496 return 0 !== a ? a : a & 1073741824 ? 1073741824 : 0;
1497 }
1498 function yc() {
1499 var a = rc;
1500 rc <<= 1;
1501 0 === (rc & 4194240) && (rc = 64);
1502 return a;
1503 }
1504 function zc(a) {
1505 for (var b2 = [], c2 = 0; 31 > c2; c2++) b2.push(a);
1506 return b2;
1507 }
1508 function Ac(a, b2, c2) {
1509 a.pendingLanes |= b2;
1510 536870912 !== b2 && (a.suspendedLanes = 0, a.pingedLanes = 0);
1511 a = a.eventTimes;
1512 b2 = 31 - oc(b2);
1513 a[b2] = c2;
1514 }
1515 function Bc(a, b2) {
1516 var c2 = a.pendingLanes & ~b2;
1517 a.pendingLanes = b2;
1518 a.suspendedLanes = 0;
1519 a.pingedLanes = 0;
1520 a.expiredLanes &= b2;
1521 a.mutableReadLanes &= b2;
1522 a.entangledLanes &= b2;
1523 b2 = a.entanglements;
1524 var d2 = a.eventTimes;
1525 for (a = a.expirationTimes; 0 < c2; ) {
1526 var e2 = 31 - oc(c2), f2 = 1 << e2;
1527 b2[e2] = 0;
1528 d2[e2] = -1;
1529 a[e2] = -1;
1530 c2 &= ~f2;
1531 }
1532 }
1533 function Cc(a, b2) {
1534 var c2 = a.entangledLanes |= b2;
1535 for (a = a.entanglements; c2; ) {
1536 var d2 = 31 - oc(c2), e2 = 1 << d2;
1537 e2 & b2 | a[d2] & b2 && (a[d2] |= b2);
1538 c2 &= ~e2;
1539 }
1540 }
1541 var C = 0;
1542 function Dc(a) {
1543 a &= -a;
1544 return 1 < a ? 4 < a ? 0 !== (a & 268435455) ? 16 : 536870912 : 4 : 1;
1545 }
1546 var Ec, Fc, Gc, Hc, Ic, Jc = false, Kc = [], Lc = null, Mc = null, Nc = null, Oc = /* @__PURE__ */ new Map(), Pc = /* @__PURE__ */ new Map(), Qc = [], Rc = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");
1547 function Sc(a, b2) {
1548 switch (a) {
1549 case "focusin":
1550 case "focusout":
1551 Lc = null;
1552 break;
1553 case "dragenter":
1554 case "dragleave":
1555 Mc = null;
1556 break;
1557 case "mouseover":
1558 case "mouseout":
1559 Nc = null;
1560 break;
1561 case "pointerover":
1562 case "pointerout":
1563 Oc.delete(b2.pointerId);
1564 break;
1565 case "gotpointercapture":
1566 case "lostpointercapture":
1567 Pc.delete(b2.pointerId);
1568 }
1569 }
1570 function Tc(a, b2, c2, d2, e2, f2) {
1571 if (null === a || a.nativeEvent !== f2) return a = { blockedOn: b2, domEventName: c2, eventSystemFlags: d2, nativeEvent: f2, targetContainers: [e2] }, null !== b2 && (b2 = Cb(b2), null !== b2 && Fc(b2)), a;
1572 a.eventSystemFlags |= d2;
1573 b2 = a.targetContainers;
1574 null !== e2 && -1 === b2.indexOf(e2) && b2.push(e2);
1575 return a;
1576 }
1577 function Uc(a, b2, c2, d2, e2) {
1578 switch (b2) {
1579 case "focusin":
1580 return Lc = Tc(Lc, a, b2, c2, d2, e2), true;
1581 case "dragenter":
1582 return Mc = Tc(Mc, a, b2, c2, d2, e2), true;
1583 case "mouseover":
1584 return Nc = Tc(Nc, a, b2, c2, d2, e2), true;
1585 case "pointerover":
1586 var f2 = e2.pointerId;
1587 Oc.set(f2, Tc(Oc.get(f2) || null, a, b2, c2, d2, e2));
1588 return true;
1589 case "gotpointercapture":
1590 return f2 = e2.pointerId, Pc.set(f2, Tc(Pc.get(f2) || null, a, b2, c2, d2, e2)), true;
1591 }
1592 return false;
1593 }
1594 function Vc(a) {
1595 var b2 = Wc(a.target);
1596 if (null !== b2) {
1597 var c2 = Vb(b2);
1598 if (null !== c2) {
1599 if (b2 = c2.tag, 13 === b2) {
1600 if (b2 = Wb(c2), null !== b2) {
1601 a.blockedOn = b2;
1602 Ic(a.priority, function() {
1603 Gc(c2);
1604 });
1605 return;
1606 }
1607 } else if (3 === b2 && c2.stateNode.current.memoizedState.isDehydrated) {
1608 a.blockedOn = 3 === c2.tag ? c2.stateNode.containerInfo : null;
1609 return;
1610 }
1611 }
1612 }
1613 a.blockedOn = null;
1614 }
1615 function Xc(a) {
1616 if (null !== a.blockedOn) return false;
1617 for (var b2 = a.targetContainers; 0 < b2.length; ) {
1618 var c2 = Yc(a.domEventName, a.eventSystemFlags, b2[0], a.nativeEvent);
1619 if (null === c2) {
1620 c2 = a.nativeEvent;
1621 var d2 = new c2.constructor(c2.type, c2);
1622 wb = d2;
1623 c2.target.dispatchEvent(d2);
1624 wb = null;
1625 } else return b2 = Cb(c2), null !== b2 && Fc(b2), a.blockedOn = c2, false;
1626 b2.shift();
1627 }
1628 return true;
1629 }
1630 function Zc(a, b2, c2) {
1631 Xc(a) && c2.delete(b2);
1632 }
1633 function $c() {
1634 Jc = false;
1635 null !== Lc && Xc(Lc) && (Lc = null);
1636 null !== Mc && Xc(Mc) && (Mc = null);
1637 null !== Nc && Xc(Nc) && (Nc = null);
1638 Oc.forEach(Zc);
1639 Pc.forEach(Zc);
1640 }
1641 function ad(a, b2) {
1642 a.blockedOn === b2 && (a.blockedOn = null, Jc || (Jc = true, ca.unstable_scheduleCallback(ca.unstable_NormalPriority, $c)));
1643 }
1644 function bd(a) {
1645 function b2(b3) {
1646 return ad(b3, a);
1647 }
1648 if (0 < Kc.length) {
1649 ad(Kc[0], a);
1650 for (var c2 = 1; c2 < Kc.length; c2++) {
1651 var d2 = Kc[c2];
1652 d2.blockedOn === a && (d2.blockedOn = null);
1653 }
1654 }
1655 null !== Lc && ad(Lc, a);
1656 null !== Mc && ad(Mc, a);
1657 null !== Nc && ad(Nc, a);
1658 Oc.forEach(b2);
1659 Pc.forEach(b2);
1660 for (c2 = 0; c2 < Qc.length; c2++) d2 = Qc[c2], d2.blockedOn === a && (d2.blockedOn = null);
1661 for (; 0 < Qc.length && (c2 = Qc[0], null === c2.blockedOn); ) Vc(c2), null === c2.blockedOn && Qc.shift();
1662 }
1663 var cd = ua.ReactCurrentBatchConfig, dd = true;
1664 function ed(a, b2, c2, d2) {
1665 var e2 = C, f2 = cd.transition;
1666 cd.transition = null;
1667 try {
1668 C = 1, fd(a, b2, c2, d2);
1669 } finally {
1670 C = e2, cd.transition = f2;
1671 }
1672 }
1673 function gd(a, b2, c2, d2) {
1674 var e2 = C, f2 = cd.transition;
1675 cd.transition = null;
1676 try {
1677 C = 4, fd(a, b2, c2, d2);
1678 } finally {
1679 C = e2, cd.transition = f2;
1680 }
1681 }
1682 function fd(a, b2, c2, d2) {
1683 if (dd) {
1684 var e2 = Yc(a, b2, c2, d2);
1685 if (null === e2) hd(a, b2, d2, id, c2), Sc(a, d2);
1686 else if (Uc(e2, a, b2, c2, d2)) d2.stopPropagation();
1687 else if (Sc(a, d2), b2 & 4 && -1 < Rc.indexOf(a)) {
1688 for (; null !== e2; ) {
1689 var f2 = Cb(e2);
1690 null !== f2 && Ec(f2);
1691 f2 = Yc(a, b2, c2, d2);
1692 null === f2 && hd(a, b2, d2, id, c2);
1693 if (f2 === e2) break;
1694 e2 = f2;
1695 }
1696 null !== e2 && d2.stopPropagation();
1697 } else hd(a, b2, d2, null, c2);
1698 }
1699 }
1700 var id = null;
1701 function Yc(a, b2, c2, d2) {
1702 id = null;
1703 a = xb(d2);
1704 a = Wc(a);
1705 if (null !== a) if (b2 = Vb(a), null === b2) a = null;
1706 else if (c2 = b2.tag, 13 === c2) {
1707 a = Wb(b2);
1708 if (null !== a) return a;
1709 a = null;
1710 } else if (3 === c2) {
1711 if (b2.stateNode.current.memoizedState.isDehydrated) return 3 === b2.tag ? b2.stateNode.containerInfo : null;
1712 a = null;
1713 } else b2 !== a && (a = null);
1714 id = a;
1715 return null;
1716 }
1717 function jd(a) {
1718 switch (a) {
1719 case "cancel":
1720 case "click":
1721 case "close":
1722 case "contextmenu":
1723 case "copy":
1724 case "cut":
1725 case "auxclick":
1726 case "dblclick":
1727 case "dragend":
1728 case "dragstart":
1729 case "drop":
1730 case "focusin":
1731 case "focusout":
1732 case "input":
1733 case "invalid":
1734 case "keydown":
1735 case "keypress":
1736 case "keyup":
1737 case "mousedown":
1738 case "mouseup":
1739 case "paste":
1740 case "pause":
1741 case "play":
1742 case "pointercancel":
1743 case "pointerdown":
1744 case "pointerup":
1745 case "ratechange":
1746 case "reset":
1747 case "resize":
1748 case "seeked":
1749 case "submit":
1750 case "touchcancel":
1751 case "touchend":
1752 case "touchstart":
1753 case "volumechange":
1754 case "change":
1755 case "selectionchange":
1756 case "textInput":
1757 case "compositionstart":
1758 case "compositionend":
1759 case "compositionupdate":
1760 case "beforeblur":
1761 case "afterblur":
1762 case "beforeinput":
1763 case "blur":
1764 case "fullscreenchange":
1765 case "focus":
1766 case "hashchange":
1767 case "popstate":
1768 case "select":
1769 case "selectstart":
1770 return 1;
1771 case "drag":
1772 case "dragenter":
1773 case "dragexit":
1774 case "dragleave":
1775 case "dragover":
1776 case "mousemove":
1777 case "mouseout":
1778 case "mouseover":
1779 case "pointermove":
1780 case "pointerout":
1781 case "pointerover":
1782 case "scroll":
1783 case "toggle":
1784 case "touchmove":
1785 case "wheel":
1786 case "mouseenter":
1787 case "mouseleave":
1788 case "pointerenter":
1789 case "pointerleave":
1790 return 4;
1791 case "message":
1792 switch (ec()) {
1793 case fc:
1794 return 1;
1795 case gc:
1796 return 4;
1797 case hc:
1798 case ic:
1799 return 16;
1800 case jc:
1801 return 536870912;
1802 default:
1803 return 16;
1804 }
1805 default:
1806 return 16;
1807 }
1808 }
1809 var kd = null, ld = null, md = null;
1810 function nd() {
1811 if (md) return md;
1812 var a, b2 = ld, c2 = b2.length, d2, e2 = "value" in kd ? kd.value : kd.textContent, f2 = e2.length;
1813 for (a = 0; a < c2 && b2[a] === e2[a]; a++) ;
1814 var g2 = c2 - a;
1815 for (d2 = 1; d2 <= g2 && b2[c2 - d2] === e2[f2 - d2]; d2++) ;
1816 return md = e2.slice(a, 1 < d2 ? 1 - d2 : void 0);
1817 }
1818 function od(a) {
1819 var b2 = a.keyCode;
1820 "charCode" in a ? (a = a.charCode, 0 === a && 13 === b2 && (a = 13)) : a = b2;
1821 10 === a && (a = 13);
1822 return 32 <= a || 13 === a ? a : 0;
1823 }
1824 function pd() {
1825 return true;
1826 }
1827 function qd() {
1828 return false;
1829 }
1830 function rd(a) {
1831 function b2(b3, d2, e2, f2, g2) {
1832 this._reactName = b3;
1833 this._targetInst = e2;
1834 this.type = d2;
1835 this.nativeEvent = f2;
1836 this.target = g2;
1837 this.currentTarget = null;
1838 for (var c2 in a) a.hasOwnProperty(c2) && (b3 = a[c2], this[c2] = b3 ? b3(f2) : f2[c2]);
1839 this.isDefaultPrevented = (null != f2.defaultPrevented ? f2.defaultPrevented : false === f2.returnValue) ? pd : qd;
1840 this.isPropagationStopped = qd;
1841 return this;
1842 }
1843 A(b2.prototype, { preventDefault: function() {
1844 this.defaultPrevented = true;
1845 var a2 = this.nativeEvent;
1846 a2 && (a2.preventDefault ? a2.preventDefault() : "unknown" !== typeof a2.returnValue && (a2.returnValue = false), this.isDefaultPrevented = pd);
1847 }, stopPropagation: function() {
1848 var a2 = this.nativeEvent;
1849 a2 && (a2.stopPropagation ? a2.stopPropagation() : "unknown" !== typeof a2.cancelBubble && (a2.cancelBubble = true), this.isPropagationStopped = pd);
1850 }, persist: function() {
1851 }, isPersistent: pd });
1852 return b2;
1853 }
1854 var sd = { eventPhase: 0, bubbles: 0, cancelable: 0, timeStamp: function(a) {
1855 return a.timeStamp || Date.now();
1856 }, defaultPrevented: 0, isTrusted: 0 }, td = rd(sd), ud = A({}, sd, { view: 0, detail: 0 }), vd = rd(ud), wd, xd, yd, Ad = A({}, ud, { screenX: 0, screenY: 0, clientX: 0, clientY: 0, pageX: 0, pageY: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, getModifierState: zd, button: 0, buttons: 0, relatedTarget: function(a) {
1857 return void 0 === a.relatedTarget ? a.fromElement === a.srcElement ? a.toElement : a.fromElement : a.relatedTarget;
1858 }, movementX: function(a) {
1859 if ("movementX" in a) return a.movementX;
1860 a !== yd && (yd && "mousemove" === a.type ? (wd = a.screenX - yd.screenX, xd = a.screenY - yd.screenY) : xd = wd = 0, yd = a);
1861 return wd;
1862 }, movementY: function(a) {
1863 return "movementY" in a ? a.movementY : xd;
1864 } }), Bd = rd(Ad), Cd = A({}, Ad, { dataTransfer: 0 }), Dd = rd(Cd), Ed = A({}, ud, { relatedTarget: 0 }), Fd = rd(Ed), Gd = A({}, sd, { animationName: 0, elapsedTime: 0, pseudoElement: 0 }), Hd = rd(Gd), Id = A({}, sd, { clipboardData: function(a) {
1865 return "clipboardData" in a ? a.clipboardData : window.clipboardData;
1866 } }), Jd = rd(Id), Kd = A({}, sd, { data: 0 }), Ld = rd(Kd), Md = {
1867 Esc: "Escape",
1868 Spacebar: " ",
1869 Left: "ArrowLeft",
1870 Up: "ArrowUp",
1871 Right: "ArrowRight",
1872 Down: "ArrowDown",
1873 Del: "Delete",
1874 Win: "OS",
1875 Menu: "ContextMenu",
1876 Apps: "ContextMenu",
1877 Scroll: "ScrollLock",
1878 MozPrintableKey: "Unidentified"
1879 }, Nd = {
1880 8: "Backspace",
1881 9: "Tab",
1882 12: "Clear",
1883 13: "Enter",
1884 16: "Shift",
1885 17: "Control",
1886 18: "Alt",
1887 19: "Pause",
1888 20: "CapsLock",
1889 27: "Escape",
1890 32: " ",
1891 33: "PageUp",
1892 34: "PageDown",
1893 35: "End",
1894 36: "Home",
1895 37: "ArrowLeft",
1896 38: "ArrowUp",
1897 39: "ArrowRight",
1898 40: "ArrowDown",
1899 45: "Insert",
1900 46: "Delete",
1901 112: "F1",
1902 113: "F2",
1903 114: "F3",
1904 115: "F4",
1905 116: "F5",
1906 117: "F6",
1907 118: "F7",
1908 119: "F8",
1909 120: "F9",
1910 121: "F10",
1911 122: "F11",
1912 123: "F12",
1913 144: "NumLock",
1914 145: "ScrollLock",
1915 224: "Meta"
1916 }, Od = { Alt: "altKey", Control: "ctrlKey", Meta: "metaKey", Shift: "shiftKey" };
1917 function Pd(a) {
1918 var b2 = this.nativeEvent;
1919 return b2.getModifierState ? b2.getModifierState(a) : (a = Od[a]) ? !!b2[a] : false;
1920 }
1921 function zd() {
1922 return Pd;
1923 }
1924 var Qd = A({}, ud, { key: function(a) {
1925 if (a.key) {
1926 var b2 = Md[a.key] || a.key;
1927 if ("Unidentified" !== b2) return b2;
1928 }
1929 return "keypress" === a.type ? (a = od(a), 13 === a ? "Enter" : String.fromCharCode(a)) : "keydown" === a.type || "keyup" === a.type ? Nd[a.keyCode] || "Unidentified" : "";
1930 }, code: 0, location: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, repeat: 0, locale: 0, getModifierState: zd, charCode: function(a) {
1931 return "keypress" === a.type ? od(a) : 0;
1932 }, keyCode: function(a) {
1933 return "keydown" === a.type || "keyup" === a.type ? a.keyCode : 0;
1934 }, which: function(a) {
1935 return "keypress" === a.type ? od(a) : "keydown" === a.type || "keyup" === a.type ? a.keyCode : 0;
1936 } }), Rd = rd(Qd), Sd = A({}, Ad, { pointerId: 0, width: 0, height: 0, pressure: 0, tangentialPressure: 0, tiltX: 0, tiltY: 0, twist: 0, pointerType: 0, isPrimary: 0 }), Td = rd(Sd), Ud = A({}, ud, { touches: 0, targetTouches: 0, changedTouches: 0, altKey: 0, metaKey: 0, ctrlKey: 0, shiftKey: 0, getModifierState: zd }), Vd = rd(Ud), Wd = A({}, sd, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 }), Xd = rd(Wd), Yd = A({}, Ad, {
1937 deltaX: function(a) {
1938 return "deltaX" in a ? a.deltaX : "wheelDeltaX" in a ? -a.wheelDeltaX : 0;
1939 },
1940 deltaY: function(a) {
1941 return "deltaY" in a ? a.deltaY : "wheelDeltaY" in a ? -a.wheelDeltaY : "wheelDelta" in a ? -a.wheelDelta : 0;
1942 },
1943 deltaZ: 0,
1944 deltaMode: 0
1945 }), Zd = rd(Yd), $d = [9, 13, 27, 32], ae = ia && "CompositionEvent" in window, be = null;
1946 ia && "documentMode" in document && (be = document.documentMode);
1947 var ce = ia && "TextEvent" in window && !be, de = ia && (!ae || be && 8 < be && 11 >= be), ee = String.fromCharCode(32), fe = false;
1948 function ge(a, b2) {
1949 switch (a) {
1950 case "keyup":
1951 return -1 !== $d.indexOf(b2.keyCode);
1952 case "keydown":
1953 return 229 !== b2.keyCode;
1954 case "keypress":
1955 case "mousedown":
1956 case "focusout":
1957 return true;
1958 default:
1959 return false;
1960 }
1961 }
1962 function he(a) {
1963 a = a.detail;
1964 return "object" === typeof a && "data" in a ? a.data : null;
1965 }
1966 var ie = false;
1967 function je(a, b2) {
1968 switch (a) {
1969 case "compositionend":
1970 return he(b2);
1971 case "keypress":
1972 if (32 !== b2.which) return null;
1973 fe = true;
1974 return ee;
1975 case "textInput":
1976 return a = b2.data, a === ee && fe ? null : a;
1977 default:
1978 return null;
1979 }
1980 }
1981 function ke(a, b2) {
1982 if (ie) return "compositionend" === a || !ae && ge(a, b2) ? (a = nd(), md = ld = kd = null, ie = false, a) : null;
1983 switch (a) {
1984 case "paste":
1985 return null;
1986 case "keypress":
1987 if (!(b2.ctrlKey || b2.altKey || b2.metaKey) || b2.ctrlKey && b2.altKey) {
1988 if (b2.char && 1 < b2.char.length) return b2.char;
1989 if (b2.which) return String.fromCharCode(b2.which);
1990 }
1991 return null;
1992 case "compositionend":
1993 return de && "ko" !== b2.locale ? null : b2.data;
1994 default:
1995 return null;
1996 }
1997 }
1998 var le = { color: true, date: true, datetime: true, "datetime-local": true, email: true, month: true, number: true, password: true, range: true, search: true, tel: true, text: true, time: true, url: true, week: true };
1999 function me(a) {
2000 var b2 = a && a.nodeName && a.nodeName.toLowerCase();
2001 return "input" === b2 ? !!le[a.type] : "textarea" === b2 ? true : false;
2002 }
2003 function ne(a, b2, c2, d2) {
2004 Eb(d2);
2005 b2 = oe(b2, "onChange");
2006 0 < b2.length && (c2 = new td("onChange", "change", null, c2, d2), a.push({ event: c2, listeners: b2 }));
2007 }
2008 var pe = null, qe = null;
2009 function re(a) {
2010 se(a, 0);
2011 }
2012 function te(a) {
2013 var b2 = ue(a);
2014 if (Wa(b2)) return a;
2015 }
2016 function ve(a, b2) {
2017 if ("change" === a) return b2;
2018 }
2019 var we = false;
2020 if (ia) {
2021 var xe;
2022 if (ia) {
2023 var ye = "oninput" in document;
2024 if (!ye) {
2025 var ze = document.createElement("div");
2026 ze.setAttribute("oninput", "return;");
2027 ye = "function" === typeof ze.oninput;
2028 }
2029 xe = ye;
2030 } else xe = false;
2031 we = xe && (!document.documentMode || 9 < document.documentMode);
2032 }
2033 function Ae() {
2034 pe && (pe.detachEvent("onpropertychange", Be), qe = pe = null);
2035 }
2036 function Be(a) {
2037 if ("value" === a.propertyName && te(qe)) {
2038 var b2 = [];
2039 ne(b2, qe, a, xb(a));
2040 Jb(re, b2);
2041 }
2042 }
2043 function Ce(a, b2, c2) {
2044 "focusin" === a ? (Ae(), pe = b2, qe = c2, pe.attachEvent("onpropertychange", Be)) : "focusout" === a && Ae();
2045 }
2046 function De(a) {
2047 if ("selectionchange" === a || "keyup" === a || "keydown" === a) return te(qe);
2048 }
2049 function Ee(a, b2) {
2050 if ("click" === a) return te(b2);
2051 }
2052 function Fe(a, b2) {
2053 if ("input" === a || "change" === a) return te(b2);
2054 }
2055 function Ge(a, b2) {
2056 return a === b2 && (0 !== a || 1 / a === 1 / b2) || a !== a && b2 !== b2;
2057 }
2058 var He = "function" === typeof Object.is ? Object.is : Ge;
2059 function Ie(a, b2) {
2060 if (He(a, b2)) return true;
2061 if ("object" !== typeof a || null === a || "object" !== typeof b2 || null === b2) return false;
2062 var c2 = Object.keys(a), d2 = Object.keys(b2);
2063 if (c2.length !== d2.length) return false;
2064 for (d2 = 0; d2 < c2.length; d2++) {
2065 var e2 = c2[d2];
2066 if (!ja.call(b2, e2) || !He(a[e2], b2[e2])) return false;
2067 }
2068 return true;
2069 }
2070 function Je(a) {
2071 for (; a && a.firstChild; ) a = a.firstChild;
2072 return a;
2073 }
2074 function Ke(a, b2) {
2075 var c2 = Je(a);
2076 a = 0;
2077 for (var d2; c2; ) {
2078 if (3 === c2.nodeType) {
2079 d2 = a + c2.textContent.length;
2080 if (a <= b2 && d2 >= b2) return { node: c2, offset: b2 - a };
2081 a = d2;
2082 }
2083 a: {
2084 for (; c2; ) {
2085 if (c2.nextSibling) {
2086 c2 = c2.nextSibling;
2087 break a;
2088 }
2089 c2 = c2.parentNode;
2090 }
2091 c2 = void 0;
2092 }
2093 c2 = Je(c2);
2094 }
2095 }
2096 function Le(a, b2) {
2097 return a && b2 ? a === b2 ? true : a && 3 === a.nodeType ? false : b2 && 3 === b2.nodeType ? Le(a, b2.parentNode) : "contains" in a ? a.contains(b2) : a.compareDocumentPosition ? !!(a.compareDocumentPosition(b2) & 16) : false : false;
2098 }
2099 function Me() {
2100 for (var a = window, b2 = Xa(); b2 instanceof a.HTMLIFrameElement; ) {
2101 try {
2102 var c2 = "string" === typeof b2.contentWindow.location.href;
2103 } catch (d2) {
2104 c2 = false;
2105 }
2106 if (c2) a = b2.contentWindow;
2107 else break;
2108 b2 = Xa(a.document);
2109 }
2110 return b2;
2111 }
2112 function Ne(a) {
2113 var b2 = a && a.nodeName && a.nodeName.toLowerCase();
2114 return b2 && ("input" === b2 && ("text" === a.type || "search" === a.type || "tel" === a.type || "url" === a.type || "password" === a.type) || "textarea" === b2 || "true" === a.contentEditable);
2115 }
2116 function Oe(a) {
2117 var b2 = Me(), c2 = a.focusedElem, d2 = a.selectionRange;
2118 if (b2 !== c2 && c2 && c2.ownerDocument && Le(c2.ownerDocument.documentElement, c2)) {
2119 if (null !== d2 && Ne(c2)) {
2120 if (b2 = d2.start, a = d2.end, void 0 === a && (a = b2), "selectionStart" in c2) c2.selectionStart = b2, c2.selectionEnd = Math.min(a, c2.value.length);
2121 else if (a = (b2 = c2.ownerDocument || document) && b2.defaultView || window, a.getSelection) {
2122 a = a.getSelection();
2123 var e2 = c2.textContent.length, f2 = Math.min(d2.start, e2);
2124 d2 = void 0 === d2.end ? f2 : Math.min(d2.end, e2);
2125 !a.extend && f2 > d2 && (e2 = d2, d2 = f2, f2 = e2);
2126 e2 = Ke(c2, f2);
2127 var g2 = Ke(
2128 c2,
2129 d2
2130 );
2131 e2 && g2 && (1 !== a.rangeCount || a.anchorNode !== e2.node || a.anchorOffset !== e2.offset || a.focusNode !== g2.node || a.focusOffset !== g2.offset) && (b2 = b2.createRange(), b2.setStart(e2.node, e2.offset), a.removeAllRanges(), f2 > d2 ? (a.addRange(b2), a.extend(g2.node, g2.offset)) : (b2.setEnd(g2.node, g2.offset), a.addRange(b2)));
2132 }
2133 }
2134 b2 = [];
2135 for (a = c2; a = a.parentNode; ) 1 === a.nodeType && b2.push({ element: a, left: a.scrollLeft, top: a.scrollTop });
2136 "function" === typeof c2.focus && c2.focus();
2137 for (c2 = 0; c2 < b2.length; c2++) a = b2[c2], a.element.scrollLeft = a.left, a.element.scrollTop = a.top;
2138 }
2139 }
2140 var Pe = ia && "documentMode" in document && 11 >= document.documentMode, Qe = null, Re = null, Se = null, Te = false;
2141 function Ue(a, b2, c2) {
2142 var d2 = c2.window === c2 ? c2.document : 9 === c2.nodeType ? c2 : c2.ownerDocument;
2143 Te || null == Qe || Qe !== Xa(d2) || (d2 = Qe, "selectionStart" in d2 && Ne(d2) ? d2 = { start: d2.selectionStart, end: d2.selectionEnd } : (d2 = (d2.ownerDocument && d2.ownerDocument.defaultView || window).getSelection(), d2 = { anchorNode: d2.anchorNode, anchorOffset: d2.anchorOffset, focusNode: d2.focusNode, focusOffset: d2.focusOffset }), Se && Ie(Se, d2) || (Se = d2, d2 = oe(Re, "onSelect"), 0 < d2.length && (b2 = new td("onSelect", "select", null, b2, c2), a.push({ event: b2, listeners: d2 }), b2.target = Qe)));
2144 }
2145 function Ve(a, b2) {
2146 var c2 = {};
2147 c2[a.toLowerCase()] = b2.toLowerCase();
2148 c2["Webkit" + a] = "webkit" + b2;
2149 c2["Moz" + a] = "moz" + b2;
2150 return c2;
2151 }
2152 var We = { animationend: Ve("Animation", "AnimationEnd"), animationiteration: Ve("Animation", "AnimationIteration"), animationstart: Ve("Animation", "AnimationStart"), transitionend: Ve("Transition", "TransitionEnd") }, Xe = {}, Ye = {};
2153 ia && (Ye = document.createElement("div").style, "AnimationEvent" in window || (delete We.animationend.animation, delete We.animationiteration.animation, delete We.animationstart.animation), "TransitionEvent" in window || delete We.transitionend.transition);
2154 function Ze(a) {
2155 if (Xe[a]) return Xe[a];
2156 if (!We[a]) return a;
2157 var b2 = We[a], c2;
2158 for (c2 in b2) if (b2.hasOwnProperty(c2) && c2 in Ye) return Xe[a] = b2[c2];
2159 return a;
2160 }
2161 var $e = Ze("animationend"), af = Ze("animationiteration"), bf = Ze("animationstart"), cf = Ze("transitionend"), df = /* @__PURE__ */ new Map(), ef = "abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");
2162 function ff(a, b2) {
2163 df.set(a, b2);
2164 fa(b2, [a]);
2165 }
2166 for (var gf = 0; gf < ef.length; gf++) {
2167 var hf = ef[gf], jf = hf.toLowerCase(), kf = hf[0].toUpperCase() + hf.slice(1);
2168 ff(jf, "on" + kf);
2169 }
2170 ff($e, "onAnimationEnd");
2171 ff(af, "onAnimationIteration");
2172 ff(bf, "onAnimationStart");
2173 ff("dblclick", "onDoubleClick");
2174 ff("focusin", "onFocus");
2175 ff("focusout", "onBlur");
2176 ff(cf, "onTransitionEnd");
2177 ha("onMouseEnter", ["mouseout", "mouseover"]);
2178 ha("onMouseLeave", ["mouseout", "mouseover"]);
2179 ha("onPointerEnter", ["pointerout", "pointerover"]);
2180 ha("onPointerLeave", ["pointerout", "pointerover"]);
2181 fa("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" "));
2182 fa("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));
2183 fa("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]);
2184 fa("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" "));
2185 fa("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" "));
2186 fa("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));
2187 var lf = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), mf = new Set("cancel close invalid load scroll toggle".split(" ").concat(lf));
2188 function nf(a, b2, c2) {
2189 var d2 = a.type || "unknown-event";
2190 a.currentTarget = c2;
2191 Ub(d2, b2, void 0, a);
2192 a.currentTarget = null;
2193 }
2194 function se(a, b2) {
2195 b2 = 0 !== (b2 & 4);
2196 for (var c2 = 0; c2 < a.length; c2++) {
2197 var d2 = a[c2], e2 = d2.event;
2198 d2 = d2.listeners;
2199 a: {
2200 var f2 = void 0;
2201 if (b2) for (var g2 = d2.length - 1; 0 <= g2; g2--) {
2202 var h2 = d2[g2], k2 = h2.instance, l2 = h2.currentTarget;
2203 h2 = h2.listener;
2204 if (k2 !== f2 && e2.isPropagationStopped()) break a;
2205 nf(e2, h2, l2);
2206 f2 = k2;
2207 }
2208 else for (g2 = 0; g2 < d2.length; g2++) {
2209 h2 = d2[g2];
2210 k2 = h2.instance;
2211 l2 = h2.currentTarget;
2212 h2 = h2.listener;
2213 if (k2 !== f2 && e2.isPropagationStopped()) break a;
2214 nf(e2, h2, l2);
2215 f2 = k2;
2216 }
2217 }
2218 }
2219 if (Qb) throw a = Rb, Qb = false, Rb = null, a;
2220 }
2221 function D(a, b2) {
2222 var c2 = b2[of];
2223 void 0 === c2 && (c2 = b2[of] = /* @__PURE__ */ new Set());
2224 var d2 = a + "__bubble";
2225 c2.has(d2) || (pf(b2, a, 2, false), c2.add(d2));
2226 }
2227 function qf(a, b2, c2) {
2228 var d2 = 0;
2229 b2 && (d2 |= 4);
2230 pf(c2, a, d2, b2);
2231 }
2232 var rf = "_reactListening" + Math.random().toString(36).slice(2);
2233 function sf(a) {
2234 if (!a[rf]) {
2235 a[rf] = true;
2236 da.forEach(function(b3) {
2237 "selectionchange" !== b3 && (mf.has(b3) || qf(b3, false, a), qf(b3, true, a));
2238 });
2239 var b2 = 9 === a.nodeType ? a : a.ownerDocument;
2240 null === b2 || b2[rf] || (b2[rf] = true, qf("selectionchange", false, b2));
2241 }
2242 }
2243 function pf(a, b2, c2, d2) {
2244 switch (jd(b2)) {
2245 case 1:
2246 var e2 = ed;
2247 break;
2248 case 4:
2249 e2 = gd;
2250 break;
2251 default:
2252 e2 = fd;
2253 }
2254 c2 = e2.bind(null, b2, c2, a);
2255 e2 = void 0;
2256 !Lb || "touchstart" !== b2 && "touchmove" !== b2 && "wheel" !== b2 || (e2 = true);
2257 d2 ? void 0 !== e2 ? a.addEventListener(b2, c2, { capture: true, passive: e2 }) : a.addEventListener(b2, c2, true) : void 0 !== e2 ? a.addEventListener(b2, c2, { passive: e2 }) : a.addEventListener(b2, c2, false);
2258 }
2259 function hd(a, b2, c2, d2, e2) {
2260 var f2 = d2;
2261 if (0 === (b2 & 1) && 0 === (b2 & 2) && null !== d2) a: for (; ; ) {
2262 if (null === d2) return;
2263 var g2 = d2.tag;
2264 if (3 === g2 || 4 === g2) {
2265 var h2 = d2.stateNode.containerInfo;
2266 if (h2 === e2 || 8 === h2.nodeType && h2.parentNode === e2) break;
2267 if (4 === g2) for (g2 = d2.return; null !== g2; ) {
2268 var k2 = g2.tag;
2269 if (3 === k2 || 4 === k2) {
2270 if (k2 = g2.stateNode.containerInfo, k2 === e2 || 8 === k2.nodeType && k2.parentNode === e2) return;
2271 }
2272 g2 = g2.return;
2273 }
2274 for (; null !== h2; ) {
2275 g2 = Wc(h2);
2276 if (null === g2) return;
2277 k2 = g2.tag;
2278 if (5 === k2 || 6 === k2) {
2279 d2 = f2 = g2;
2280 continue a;
2281 }
2282 h2 = h2.parentNode;
2283 }
2284 }
2285 d2 = d2.return;
2286 }
2287 Jb(function() {
2288 var d3 = f2, e3 = xb(c2), g3 = [];
2289 a: {
2290 var h3 = df.get(a);
2291 if (void 0 !== h3) {
2292 var k3 = td, n2 = a;
2293 switch (a) {
2294 case "keypress":
2295 if (0 === od(c2)) break a;
2296 case "keydown":
2297 case "keyup":
2298 k3 = Rd;
2299 break;
2300 case "focusin":
2301 n2 = "focus";
2302 k3 = Fd;
2303 break;
2304 case "focusout":
2305 n2 = "blur";
2306 k3 = Fd;
2307 break;
2308 case "beforeblur":
2309 case "afterblur":
2310 k3 = Fd;
2311 break;
2312 case "click":
2313 if (2 === c2.button) break a;
2314 case "auxclick":
2315 case "dblclick":
2316 case "mousedown":
2317 case "mousemove":
2318 case "mouseup":
2319 case "mouseout":
2320 case "mouseover":
2321 case "contextmenu":
2322 k3 = Bd;
2323 break;
2324 case "drag":
2325 case "dragend":
2326 case "dragenter":
2327 case "dragexit":
2328 case "dragleave":
2329 case "dragover":
2330 case "dragstart":
2331 case "drop":
2332 k3 = Dd;
2333 break;
2334 case "touchcancel":
2335 case "touchend":
2336 case "touchmove":
2337 case "touchstart":
2338 k3 = Vd;
2339 break;
2340 case $e:
2341 case af:
2342 case bf:
2343 k3 = Hd;
2344 break;
2345 case cf:
2346 k3 = Xd;
2347 break;
2348 case "scroll":
2349 k3 = vd;
2350 break;
2351 case "wheel":
2352 k3 = Zd;
2353 break;
2354 case "copy":
2355 case "cut":
2356 case "paste":
2357 k3 = Jd;
2358 break;
2359 case "gotpointercapture":
2360 case "lostpointercapture":
2361 case "pointercancel":
2362 case "pointerdown":
2363 case "pointermove":
2364 case "pointerout":
2365 case "pointerover":
2366 case "pointerup":
2367 k3 = Td;
2368 }
2369 var t2 = 0 !== (b2 & 4), J2 = !t2 && "scroll" === a, x2 = t2 ? null !== h3 ? h3 + "Capture" : null : h3;
2370 t2 = [];
2371 for (var w2 = d3, u2; null !== w2; ) {
2372 u2 = w2;
2373 var F2 = u2.stateNode;
2374 5 === u2.tag && null !== F2 && (u2 = F2, null !== x2 && (F2 = Kb(w2, x2), null != F2 && t2.push(tf(w2, F2, u2))));
2375 if (J2) break;
2376 w2 = w2.return;
2377 }
2378 0 < t2.length && (h3 = new k3(h3, n2, null, c2, e3), g3.push({ event: h3, listeners: t2 }));
2379 }
2380 }
2381 if (0 === (b2 & 7)) {
2382 a: {
2383 h3 = "mouseover" === a || "pointerover" === a;
2384 k3 = "mouseout" === a || "pointerout" === a;
2385 if (h3 && c2 !== wb && (n2 = c2.relatedTarget || c2.fromElement) && (Wc(n2) || n2[uf])) break a;
2386 if (k3 || h3) {
2387 h3 = e3.window === e3 ? e3 : (h3 = e3.ownerDocument) ? h3.defaultView || h3.parentWindow : window;
2388 if (k3) {
2389 if (n2 = c2.relatedTarget || c2.toElement, k3 = d3, n2 = n2 ? Wc(n2) : null, null !== n2 && (J2 = Vb(n2), n2 !== J2 || 5 !== n2.tag && 6 !== n2.tag)) n2 = null;
2390 } else k3 = null, n2 = d3;
2391 if (k3 !== n2) {
2392 t2 = Bd;
2393 F2 = "onMouseLeave";
2394 x2 = "onMouseEnter";
2395 w2 = "mouse";
2396 if ("pointerout" === a || "pointerover" === a) t2 = Td, F2 = "onPointerLeave", x2 = "onPointerEnter", w2 = "pointer";
2397 J2 = null == k3 ? h3 : ue(k3);
2398 u2 = null == n2 ? h3 : ue(n2);
2399 h3 = new t2(F2, w2 + "leave", k3, c2, e3);
2400 h3.target = J2;
2401 h3.relatedTarget = u2;
2402 F2 = null;
2403 Wc(e3) === d3 && (t2 = new t2(x2, w2 + "enter", n2, c2, e3), t2.target = u2, t2.relatedTarget = J2, F2 = t2);
2404 J2 = F2;
2405 if (k3 && n2) b: {
2406 t2 = k3;
2407 x2 = n2;
2408 w2 = 0;
2409 for (u2 = t2; u2; u2 = vf(u2)) w2++;
2410 u2 = 0;
2411 for (F2 = x2; F2; F2 = vf(F2)) u2++;
2412 for (; 0 < w2 - u2; ) t2 = vf(t2), w2--;
2413 for (; 0 < u2 - w2; ) x2 = vf(x2), u2--;
2414 for (; w2--; ) {
2415 if (t2 === x2 || null !== x2 && t2 === x2.alternate) break b;
2416 t2 = vf(t2);
2417 x2 = vf(x2);
2418 }
2419 t2 = null;
2420 }
2421 else t2 = null;
2422 null !== k3 && wf(g3, h3, k3, t2, false);
2423 null !== n2 && null !== J2 && wf(g3, J2, n2, t2, true);
2424 }
2425 }
2426 }
2427 a: {
2428 h3 = d3 ? ue(d3) : window;
2429 k3 = h3.nodeName && h3.nodeName.toLowerCase();
2430 if ("select" === k3 || "input" === k3 && "file" === h3.type) var na = ve;
2431 else if (me(h3)) if (we) na = Fe;
2432 else {
2433 na = De;
2434 var xa = Ce;
2435 }
2436 else (k3 = h3.nodeName) && "input" === k3.toLowerCase() && ("checkbox" === h3.type || "radio" === h3.type) && (na = Ee);
2437 if (na && (na = na(a, d3))) {
2438 ne(g3, na, c2, e3);
2439 break a;
2440 }
2441 xa && xa(a, h3, d3);
2442 "focusout" === a && (xa = h3._wrapperState) && xa.controlled && "number" === h3.type && cb(h3, "number", h3.value);
2443 }
2444 xa = d3 ? ue(d3) : window;
2445 switch (a) {
2446 case "focusin":
2447 if (me(xa) || "true" === xa.contentEditable) Qe = xa, Re = d3, Se = null;
2448 break;
2449 case "focusout":
2450 Se = Re = Qe = null;
2451 break;
2452 case "mousedown":
2453 Te = true;
2454 break;
2455 case "contextmenu":
2456 case "mouseup":
2457 case "dragend":
2458 Te = false;
2459 Ue(g3, c2, e3);
2460 break;
2461 case "selectionchange":
2462 if (Pe) break;
2463 case "keydown":
2464 case "keyup":
2465 Ue(g3, c2, e3);
2466 }
2467 var $a;
2468 if (ae) b: {
2469 switch (a) {
2470 case "compositionstart":
2471 var ba = "onCompositionStart";
2472 break b;
2473 case "compositionend":
2474 ba = "onCompositionEnd";
2475 break b;
2476 case "compositionupdate":
2477 ba = "onCompositionUpdate";
2478 break b;
2479 }
2480 ba = void 0;
2481 }
2482 else ie ? ge(a, c2) && (ba = "onCompositionEnd") : "keydown" === a && 229 === c2.keyCode && (ba = "onCompositionStart");
2483 ba && (de && "ko" !== c2.locale && (ie || "onCompositionStart" !== ba ? "onCompositionEnd" === ba && ie && ($a = nd()) : (kd = e3, ld = "value" in kd ? kd.value : kd.textContent, ie = true)), xa = oe(d3, ba), 0 < xa.length && (ba = new Ld(ba, a, null, c2, e3), g3.push({ event: ba, listeners: xa }), $a ? ba.data = $a : ($a = he(c2), null !== $a && (ba.data = $a))));
2484 if ($a = ce ? je(a, c2) : ke(a, c2)) d3 = oe(d3, "onBeforeInput"), 0 < d3.length && (e3 = new Ld("onBeforeInput", "beforeinput", null, c2, e3), g3.push({ event: e3, listeners: d3 }), e3.data = $a);
2485 }
2486 se(g3, b2);
2487 });
2488 }
2489 function tf(a, b2, c2) {
2490 return { instance: a, listener: b2, currentTarget: c2 };
2491 }
2492 function oe(a, b2) {
2493 for (var c2 = b2 + "Capture", d2 = []; null !== a; ) {
2494 var e2 = a, f2 = e2.stateNode;
2495 5 === e2.tag && null !== f2 && (e2 = f2, f2 = Kb(a, c2), null != f2 && d2.unshift(tf(a, f2, e2)), f2 = Kb(a, b2), null != f2 && d2.push(tf(a, f2, e2)));
2496 a = a.return;
2497 }
2498 return d2;
2499 }
2500 function vf(a) {
2501 if (null === a) return null;
2502 do
2503 a = a.return;
2504 while (a && 5 !== a.tag);
2505 return a ? a : null;
2506 }
2507 function wf(a, b2, c2, d2, e2) {
2508 for (var f2 = b2._reactName, g2 = []; null !== c2 && c2 !== d2; ) {
2509 var h2 = c2, k2 = h2.alternate, l2 = h2.stateNode;
2510 if (null !== k2 && k2 === d2) break;
2511 5 === h2.tag && null !== l2 && (h2 = l2, e2 ? (k2 = Kb(c2, f2), null != k2 && g2.unshift(tf(c2, k2, h2))) : e2 || (k2 = Kb(c2, f2), null != k2 && g2.push(tf(c2, k2, h2))));
2512 c2 = c2.return;
2513 }
2514 0 !== g2.length && a.push({ event: b2, listeners: g2 });
2515 }
2516 var xf = /\r\n?/g, yf = /\u0000|\uFFFD/g;
2517 function zf(a) {
2518 return ("string" === typeof a ? a : "" + a).replace(xf, "\n").replace(yf, "");
2519 }
2520 function Af(a, b2, c2) {
2521 b2 = zf(b2);
2522 if (zf(a) !== b2 && c2) throw Error(p$1(425));
2523 }
2524 function Bf() {
2525 }
2526 var Cf = null, Df = null;
2527 function Ef(a, b2) {
2528 return "textarea" === a || "noscript" === a || "string" === typeof b2.children || "number" === typeof b2.children || "object" === typeof b2.dangerouslySetInnerHTML && null !== b2.dangerouslySetInnerHTML && null != b2.dangerouslySetInnerHTML.__html;
2529 }
2530 var Ff = "function" === typeof setTimeout ? setTimeout : void 0, Gf = "function" === typeof clearTimeout ? clearTimeout : void 0, Hf = "function" === typeof Promise ? Promise : void 0, Jf = "function" === typeof queueMicrotask ? queueMicrotask : "undefined" !== typeof Hf ? function(a) {
2531 return Hf.resolve(null).then(a).catch(If);
2532 } : Ff;
2533 function If(a) {
2534 setTimeout(function() {
2535 throw a;
2536 });
2537 }
2538 function Kf(a, b2) {
2539 var c2 = b2, d2 = 0;
2540 do {
2541 var e2 = c2.nextSibling;
2542 a.removeChild(c2);
2543 if (e2 && 8 === e2.nodeType) if (c2 = e2.data, "/$" === c2) {
2544 if (0 === d2) {
2545 a.removeChild(e2);
2546 bd(b2);
2547 return;
2548 }
2549 d2--;
2550 } else "$" !== c2 && "$?" !== c2 && "$!" !== c2 || d2++;
2551 c2 = e2;
2552 } while (c2);
2553 bd(b2);
2554 }
2555 function Lf(a) {
2556 for (; null != a; a = a.nextSibling) {
2557 var b2 = a.nodeType;
2558 if (1 === b2 || 3 === b2) break;
2559 if (8 === b2) {
2560 b2 = a.data;
2561 if ("$" === b2 || "$!" === b2 || "$?" === b2) break;
2562 if ("/$" === b2) return null;
2563 }
2564 }
2565 return a;
2566 }
2567 function Mf(a) {
2568 a = a.previousSibling;
2569 for (var b2 = 0; a; ) {
2570 if (8 === a.nodeType) {
2571 var c2 = a.data;
2572 if ("$" === c2 || "$!" === c2 || "$?" === c2) {
2573 if (0 === b2) return a;
2574 b2--;
2575 } else "/$" === c2 && b2++;
2576 }
2577 a = a.previousSibling;
2578 }
2579 return null;
2580 }
2581 var Nf = Math.random().toString(36).slice(2), Of = "__reactFiber$" + Nf, Pf = "__reactProps$" + Nf, uf = "__reactContainer$" + Nf, of = "__reactEvents$" + Nf, Qf = "__reactListeners$" + Nf, Rf = "__reactHandles$" + Nf;
2582 function Wc(a) {
2583 var b2 = a[Of];
2584 if (b2) return b2;
2585 for (var c2 = a.parentNode; c2; ) {
2586 if (b2 = c2[uf] || c2[Of]) {
2587 c2 = b2.alternate;
2588 if (null !== b2.child || null !== c2 && null !== c2.child) for (a = Mf(a); null !== a; ) {
2589 if (c2 = a[Of]) return c2;
2590 a = Mf(a);
2591 }
2592 return b2;
2593 }
2594 a = c2;
2595 c2 = a.parentNode;
2596 }
2597 return null;
2598 }
2599 function Cb(a) {
2600 a = a[Of] || a[uf];
2601 return !a || 5 !== a.tag && 6 !== a.tag && 13 !== a.tag && 3 !== a.tag ? null : a;
2602 }
2603 function ue(a) {
2604 if (5 === a.tag || 6 === a.tag) return a.stateNode;
2605 throw Error(p$1(33));
2606 }
2607 function Db(a) {
2608 return a[Pf] || null;
2609 }
2610 var Sf = [], Tf = -1;
2611 function Uf(a) {
2612 return { current: a };
2613 }
2614 function E(a) {
2615 0 > Tf || (a.current = Sf[Tf], Sf[Tf] = null, Tf--);
2616 }
2617 function G(a, b2) {
2618 Tf++;
2619 Sf[Tf] = a.current;
2620 a.current = b2;
2621 }
2622 var Vf = {}, H = Uf(Vf), Wf = Uf(false), Xf = Vf;
2623 function Yf(a, b2) {
2624 var c2 = a.type.contextTypes;
2625 if (!c2) return Vf;
2626 var d2 = a.stateNode;
2627 if (d2 && d2.__reactInternalMemoizedUnmaskedChildContext === b2) return d2.__reactInternalMemoizedMaskedChildContext;
2628 var e2 = {}, f2;
2629 for (f2 in c2) e2[f2] = b2[f2];
2630 d2 && (a = a.stateNode, a.__reactInternalMemoizedUnmaskedChildContext = b2, a.__reactInternalMemoizedMaskedChildContext = e2);
2631 return e2;
2632 }
2633 function Zf(a) {
2634 a = a.childContextTypes;
2635 return null !== a && void 0 !== a;
2636 }
2637 function $f() {
2638 E(Wf);
2639 E(H);
2640 }
2641 function ag(a, b2, c2) {
2642 if (H.current !== Vf) throw Error(p$1(168));
2643 G(H, b2);
2644 G(Wf, c2);
2645 }
2646 function bg(a, b2, c2) {
2647 var d2 = a.stateNode;
2648 b2 = b2.childContextTypes;
2649 if ("function" !== typeof d2.getChildContext) return c2;
2650 d2 = d2.getChildContext();
2651 for (var e2 in d2) if (!(e2 in b2)) throw Error(p$1(108, Ra(a) || "Unknown", e2));
2652 return A({}, c2, d2);
2653 }
2654 function cg(a) {
2655 a = (a = a.stateNode) && a.__reactInternalMemoizedMergedChildContext || Vf;
2656 Xf = H.current;
2657 G(H, a);
2658 G(Wf, Wf.current);
2659 return true;
2660 }
2661 function dg(a, b2, c2) {
2662 var d2 = a.stateNode;
2663 if (!d2) throw Error(p$1(169));
2664 c2 ? (a = bg(a, b2, Xf), d2.__reactInternalMemoizedMergedChildContext = a, E(Wf), E(H), G(H, a)) : E(Wf);
2665 G(Wf, c2);
2666 }
2667 var eg = null, fg = false, gg = false;
2668 function hg(a) {
2669 null === eg ? eg = [a] : eg.push(a);
2670 }
2671 function ig(a) {
2672 fg = true;
2673 hg(a);
2674 }
2675 function jg() {
2676 if (!gg && null !== eg) {
2677 gg = true;
2678 var a = 0, b2 = C;
2679 try {
2680 var c2 = eg;
2681 for (C = 1; a < c2.length; a++) {
2682 var d2 = c2[a];
2683 do
2684 d2 = d2(true);
2685 while (null !== d2);
2686 }
2687 eg = null;
2688 fg = false;
2689 } catch (e2) {
2690 throw null !== eg && (eg = eg.slice(a + 1)), ac(fc, jg), e2;
2691 } finally {
2692 C = b2, gg = false;
2693 }
2694 }
2695 return null;
2696 }
2697 var kg = [], lg = 0, mg = null, ng = 0, og = [], pg = 0, qg = null, rg = 1, sg = "";
2698 function tg(a, b2) {
2699 kg[lg++] = ng;
2700 kg[lg++] = mg;
2701 mg = a;
2702 ng = b2;
2703 }
2704 function ug(a, b2, c2) {
2705 og[pg++] = rg;
2706 og[pg++] = sg;
2707 og[pg++] = qg;
2708 qg = a;
2709 var d2 = rg;
2710 a = sg;
2711 var e2 = 32 - oc(d2) - 1;
2712 d2 &= ~(1 << e2);
2713 c2 += 1;
2714 var f2 = 32 - oc(b2) + e2;
2715 if (30 < f2) {
2716 var g2 = e2 - e2 % 5;
2717 f2 = (d2 & (1 << g2) - 1).toString(32);
2718 d2 >>= g2;
2719 e2 -= g2;
2720 rg = 1 << 32 - oc(b2) + e2 | c2 << e2 | d2;
2721 sg = f2 + a;
2722 } else rg = 1 << f2 | c2 << e2 | d2, sg = a;
2723 }
2724 function vg(a) {
2725 null !== a.return && (tg(a, 1), ug(a, 1, 0));
2726 }
2727 function wg(a) {
2728 for (; a === mg; ) mg = kg[--lg], kg[lg] = null, ng = kg[--lg], kg[lg] = null;
2729 for (; a === qg; ) qg = og[--pg], og[pg] = null, sg = og[--pg], og[pg] = null, rg = og[--pg], og[pg] = null;
2730 }
2731 var xg = null, yg = null, I = false, zg = null;
2732 function Ag(a, b2) {
2733 var c2 = Bg(5, null, null, 0);
2734 c2.elementType = "DELETED";
2735 c2.stateNode = b2;
2736 c2.return = a;
2737 b2 = a.deletions;
2738 null === b2 ? (a.deletions = [c2], a.flags |= 16) : b2.push(c2);
2739 }
2740 function Cg(a, b2) {
2741 switch (a.tag) {
2742 case 5:
2743 var c2 = a.type;
2744 b2 = 1 !== b2.nodeType || c2.toLowerCase() !== b2.nodeName.toLowerCase() ? null : b2;
2745 return null !== b2 ? (a.stateNode = b2, xg = a, yg = Lf(b2.firstChild), true) : false;
2746 case 6:
2747 return b2 = "" === a.pendingProps || 3 !== b2.nodeType ? null : b2, null !== b2 ? (a.stateNode = b2, xg = a, yg = null, true) : false;
2748 case 13:
2749 return b2 = 8 !== b2.nodeType ? null : b2, null !== b2 ? (c2 = null !== qg ? { id: rg, overflow: sg } : null, a.memoizedState = { dehydrated: b2, treeContext: c2, retryLane: 1073741824 }, c2 = Bg(18, null, null, 0), c2.stateNode = b2, c2.return = a, a.child = c2, xg = a, yg = null, true) : false;
2750 default:
2751 return false;
2752 }
2753 }
2754 function Dg(a) {
2755 return 0 !== (a.mode & 1) && 0 === (a.flags & 128);
2756 }
2757 function Eg(a) {
2758 if (I) {
2759 var b2 = yg;
2760 if (b2) {
2761 var c2 = b2;
2762 if (!Cg(a, b2)) {
2763 if (Dg(a)) throw Error(p$1(418));
2764 b2 = Lf(c2.nextSibling);
2765 var d2 = xg;
2766 b2 && Cg(a, b2) ? Ag(d2, c2) : (a.flags = a.flags & -4097 | 2, I = false, xg = a);
2767 }
2768 } else {
2769 if (Dg(a)) throw Error(p$1(418));
2770 a.flags = a.flags & -4097 | 2;
2771 I = false;
2772 xg = a;
2773 }
2774 }
2775 }
2776 function Fg(a) {
2777 for (a = a.return; null !== a && 5 !== a.tag && 3 !== a.tag && 13 !== a.tag; ) a = a.return;
2778 xg = a;
2779 }
2780 function Gg(a) {
2781 if (a !== xg) return false;
2782 if (!I) return Fg(a), I = true, false;
2783 var b2;
2784 (b2 = 3 !== a.tag) && !(b2 = 5 !== a.tag) && (b2 = a.type, b2 = "head" !== b2 && "body" !== b2 && !Ef(a.type, a.memoizedProps));
2785 if (b2 && (b2 = yg)) {
2786 if (Dg(a)) throw Hg(), Error(p$1(418));
2787 for (; b2; ) Ag(a, b2), b2 = Lf(b2.nextSibling);
2788 }
2789 Fg(a);
2790 if (13 === a.tag) {
2791 a = a.memoizedState;
2792 a = null !== a ? a.dehydrated : null;
2793 if (!a) throw Error(p$1(317));
2794 a: {
2795 a = a.nextSibling;
2796 for (b2 = 0; a; ) {
2797 if (8 === a.nodeType) {
2798 var c2 = a.data;
2799 if ("/$" === c2) {
2800 if (0 === b2) {
2801 yg = Lf(a.nextSibling);
2802 break a;
2803 }
2804 b2--;
2805 } else "$" !== c2 && "$!" !== c2 && "$?" !== c2 || b2++;
2806 }
2807 a = a.nextSibling;
2808 }
2809 yg = null;
2810 }
2811 } else yg = xg ? Lf(a.stateNode.nextSibling) : null;
2812 return true;
2813 }
2814 function Hg() {
2815 for (var a = yg; a; ) a = Lf(a.nextSibling);
2816 }
2817 function Ig() {
2818 yg = xg = null;
2819 I = false;
2820 }
2821 function Jg(a) {
2822 null === zg ? zg = [a] : zg.push(a);
2823 }
2824 var Kg = ua.ReactCurrentBatchConfig;
2825 function Lg(a, b2, c2) {
2826 a = c2.ref;
2827 if (null !== a && "function" !== typeof a && "object" !== typeof a) {
2828 if (c2._owner) {
2829 c2 = c2._owner;
2830 if (c2) {
2831 if (1 !== c2.tag) throw Error(p$1(309));
2832 var d2 = c2.stateNode;
2833 }
2834 if (!d2) throw Error(p$1(147, a));
2835 var e2 = d2, f2 = "" + a;
2836 if (null !== b2 && null !== b2.ref && "function" === typeof b2.ref && b2.ref._stringRef === f2) return b2.ref;
2837 b2 = function(a2) {
2838 var b3 = e2.refs;
2839 null === a2 ? delete b3[f2] : b3[f2] = a2;
2840 };
2841 b2._stringRef = f2;
2842 return b2;
2843 }
2844 if ("string" !== typeof a) throw Error(p$1(284));
2845 if (!c2._owner) throw Error(p$1(290, a));
2846 }
2847 return a;
2848 }
2849 function Mg(a, b2) {
2850 a = Object.prototype.toString.call(b2);
2851 throw Error(p$1(31, "[object Object]" === a ? "object with keys {" + Object.keys(b2).join(", ") + "}" : a));
2852 }
2853 function Ng(a) {
2854 var b2 = a._init;
2855 return b2(a._payload);
2856 }
2857 function Og(a) {
2858 function b2(b3, c3) {
2859 if (a) {
2860 var d3 = b3.deletions;
2861 null === d3 ? (b3.deletions = [c3], b3.flags |= 16) : d3.push(c3);
2862 }
2863 }
2864 function c2(c3, d3) {
2865 if (!a) return null;
2866 for (; null !== d3; ) b2(c3, d3), d3 = d3.sibling;
2867 return null;
2868 }
2869 function d2(a2, b3) {
2870 for (a2 = /* @__PURE__ */ new Map(); null !== b3; ) null !== b3.key ? a2.set(b3.key, b3) : a2.set(b3.index, b3), b3 = b3.sibling;
2871 return a2;
2872 }
2873 function e2(a2, b3) {
2874 a2 = Pg(a2, b3);
2875 a2.index = 0;
2876 a2.sibling = null;
2877 return a2;
2878 }
2879 function f2(b3, c3, d3) {
2880 b3.index = d3;
2881 if (!a) return b3.flags |= 1048576, c3;
2882 d3 = b3.alternate;
2883 if (null !== d3) return d3 = d3.index, d3 < c3 ? (b3.flags |= 2, c3) : d3;
2884 b3.flags |= 2;
2885 return c3;
2886 }
2887 function g2(b3) {
2888 a && null === b3.alternate && (b3.flags |= 2);
2889 return b3;
2890 }
2891 function h2(a2, b3, c3, d3) {
2892 if (null === b3 || 6 !== b3.tag) return b3 = Qg(c3, a2.mode, d3), b3.return = a2, b3;
2893 b3 = e2(b3, c3);
2894 b3.return = a2;
2895 return b3;
2896 }
2897 function k2(a2, b3, c3, d3) {
2898 var f3 = c3.type;
2899 if (f3 === ya) return m2(a2, b3, c3.props.children, d3, c3.key);
2900 if (null !== b3 && (b3.elementType === f3 || "object" === typeof f3 && null !== f3 && f3.$$typeof === Ha && Ng(f3) === b3.type)) return d3 = e2(b3, c3.props), d3.ref = Lg(a2, b3, c3), d3.return = a2, d3;
2901 d3 = Rg(c3.type, c3.key, c3.props, null, a2.mode, d3);
2902 d3.ref = Lg(a2, b3, c3);
2903 d3.return = a2;
2904 return d3;
2905 }
2906 function l2(a2, b3, c3, d3) {
2907 if (null === b3 || 4 !== b3.tag || b3.stateNode.containerInfo !== c3.containerInfo || b3.stateNode.implementation !== c3.implementation) return b3 = Sg(c3, a2.mode, d3), b3.return = a2, b3;
2908 b3 = e2(b3, c3.children || []);
2909 b3.return = a2;
2910 return b3;
2911 }
2912 function m2(a2, b3, c3, d3, f3) {
2913 if (null === b3 || 7 !== b3.tag) return b3 = Tg(c3, a2.mode, d3, f3), b3.return = a2, b3;
2914 b3 = e2(b3, c3);
2915 b3.return = a2;
2916 return b3;
2917 }
2918 function q2(a2, b3, c3) {
2919 if ("string" === typeof b3 && "" !== b3 || "number" === typeof b3) return b3 = Qg("" + b3, a2.mode, c3), b3.return = a2, b3;
2920 if ("object" === typeof b3 && null !== b3) {
2921 switch (b3.$$typeof) {
2922 case va:
2923 return c3 = Rg(b3.type, b3.key, b3.props, null, a2.mode, c3), c3.ref = Lg(a2, null, b3), c3.return = a2, c3;
2924 case wa:
2925 return b3 = Sg(b3, a2.mode, c3), b3.return = a2, b3;
2926 case Ha:
2927 var d3 = b3._init;
2928 return q2(a2, d3(b3._payload), c3);
2929 }
2930 if (eb(b3) || Ka(b3)) return b3 = Tg(b3, a2.mode, c3, null), b3.return = a2, b3;
2931 Mg(a2, b3);
2932 }
2933 return null;
2934 }
2935 function r2(a2, b3, c3, d3) {
2936 var e3 = null !== b3 ? b3.key : null;
2937 if ("string" === typeof c3 && "" !== c3 || "number" === typeof c3) return null !== e3 ? null : h2(a2, b3, "" + c3, d3);
2938 if ("object" === typeof c3 && null !== c3) {
2939 switch (c3.$$typeof) {
2940 case va:
2941 return c3.key === e3 ? k2(a2, b3, c3, d3) : null;
2942 case wa:
2943 return c3.key === e3 ? l2(a2, b3, c3, d3) : null;
2944 case Ha:
2945 return e3 = c3._init, r2(
2946 a2,
2947 b3,
2948 e3(c3._payload),
2949 d3
2950 );
2951 }
2952 if (eb(c3) || Ka(c3)) return null !== e3 ? null : m2(a2, b3, c3, d3, null);
2953 Mg(a2, c3);
2954 }
2955 return null;
2956 }
2957 function y2(a2, b3, c3, d3, e3) {
2958 if ("string" === typeof d3 && "" !== d3 || "number" === typeof d3) return a2 = a2.get(c3) || null, h2(b3, a2, "" + d3, e3);
2959 if ("object" === typeof d3 && null !== d3) {
2960 switch (d3.$$typeof) {
2961 case va:
2962 return a2 = a2.get(null === d3.key ? c3 : d3.key) || null, k2(b3, a2, d3, e3);
2963 case wa:
2964 return a2 = a2.get(null === d3.key ? c3 : d3.key) || null, l2(b3, a2, d3, e3);
2965 case Ha:
2966 var f3 = d3._init;
2967 return y2(a2, b3, c3, f3(d3._payload), e3);
2968 }
2969 if (eb(d3) || Ka(d3)) return a2 = a2.get(c3) || null, m2(b3, a2, d3, e3, null);
2970 Mg(b3, d3);
2971 }
2972 return null;
2973 }
2974 function n2(e3, g3, h3, k3) {
2975 for (var l3 = null, m3 = null, u2 = g3, w2 = g3 = 0, x2 = null; null !== u2 && w2 < h3.length; w2++) {
2976 u2.index > w2 ? (x2 = u2, u2 = null) : x2 = u2.sibling;
2977 var n3 = r2(e3, u2, h3[w2], k3);
2978 if (null === n3) {
2979 null === u2 && (u2 = x2);
2980 break;
2981 }
2982 a && u2 && null === n3.alternate && b2(e3, u2);
2983 g3 = f2(n3, g3, w2);
2984 null === m3 ? l3 = n3 : m3.sibling = n3;
2985 m3 = n3;
2986 u2 = x2;
2987 }
2988 if (w2 === h3.length) return c2(e3, u2), I && tg(e3, w2), l3;
2989 if (null === u2) {
2990 for (; w2 < h3.length; w2++) u2 = q2(e3, h3[w2], k3), null !== u2 && (g3 = f2(u2, g3, w2), null === m3 ? l3 = u2 : m3.sibling = u2, m3 = u2);
2991 I && tg(e3, w2);
2992 return l3;
2993 }
2994 for (u2 = d2(e3, u2); w2 < h3.length; w2++) x2 = y2(u2, e3, w2, h3[w2], k3), null !== x2 && (a && null !== x2.alternate && u2.delete(null === x2.key ? w2 : x2.key), g3 = f2(x2, g3, w2), null === m3 ? l3 = x2 : m3.sibling = x2, m3 = x2);
2995 a && u2.forEach(function(a2) {
2996 return b2(e3, a2);
2997 });
2998 I && tg(e3, w2);
2999 return l3;
3000 }
3001 function t2(e3, g3, h3, k3) {
3002 var l3 = Ka(h3);
3003 if ("function" !== typeof l3) throw Error(p$1(150));
3004 h3 = l3.call(h3);
3005 if (null == h3) throw Error(p$1(151));
3006 for (var u2 = l3 = null, m3 = g3, w2 = g3 = 0, x2 = null, n3 = h3.next(); null !== m3 && !n3.done; w2++, n3 = h3.next()) {
3007 m3.index > w2 ? (x2 = m3, m3 = null) : x2 = m3.sibling;
3008 var t3 = r2(e3, m3, n3.value, k3);
3009 if (null === t3) {
3010 null === m3 && (m3 = x2);
3011 break;
3012 }
3013 a && m3 && null === t3.alternate && b2(e3, m3);
3014 g3 = f2(t3, g3, w2);
3015 null === u2 ? l3 = t3 : u2.sibling = t3;
3016 u2 = t3;
3017 m3 = x2;
3018 }
3019 if (n3.done) return c2(
3020 e3,
3021 m3
3022 ), I && tg(e3, w2), l3;
3023 if (null === m3) {
3024 for (; !n3.done; w2++, n3 = h3.next()) n3 = q2(e3, n3.value, k3), null !== n3 && (g3 = f2(n3, g3, w2), null === u2 ? l3 = n3 : u2.sibling = n3, u2 = n3);
3025 I && tg(e3, w2);
3026 return l3;
3027 }
3028 for (m3 = d2(e3, m3); !n3.done; w2++, n3 = h3.next()) n3 = y2(m3, e3, w2, n3.value, k3), null !== n3 && (a && null !== n3.alternate && m3.delete(null === n3.key ? w2 : n3.key), g3 = f2(n3, g3, w2), null === u2 ? l3 = n3 : u2.sibling = n3, u2 = n3);
3029 a && m3.forEach(function(a2) {
3030 return b2(e3, a2);
3031 });
3032 I && tg(e3, w2);
3033 return l3;
3034 }
3035 function J2(a2, d3, f3, h3) {
3036 "object" === typeof f3 && null !== f3 && f3.type === ya && null === f3.key && (f3 = f3.props.children);
3037 if ("object" === typeof f3 && null !== f3) {
3038 switch (f3.$$typeof) {
3039 case va:
3040 a: {
3041 for (var k3 = f3.key, l3 = d3; null !== l3; ) {
3042 if (l3.key === k3) {
3043 k3 = f3.type;
3044 if (k3 === ya) {
3045 if (7 === l3.tag) {
3046 c2(a2, l3.sibling);
3047 d3 = e2(l3, f3.props.children);
3048 d3.return = a2;
3049 a2 = d3;
3050 break a;
3051 }
3052 } else if (l3.elementType === k3 || "object" === typeof k3 && null !== k3 && k3.$$typeof === Ha && Ng(k3) === l3.type) {
3053 c2(a2, l3.sibling);
3054 d3 = e2(l3, f3.props);
3055 d3.ref = Lg(a2, l3, f3);
3056 d3.return = a2;
3057 a2 = d3;
3058 break a;
3059 }
3060 c2(a2, l3);
3061 break;
3062 } else b2(a2, l3);
3063 l3 = l3.sibling;
3064 }
3065 f3.type === ya ? (d3 = Tg(f3.props.children, a2.mode, h3, f3.key), d3.return = a2, a2 = d3) : (h3 = Rg(f3.type, f3.key, f3.props, null, a2.mode, h3), h3.ref = Lg(a2, d3, f3), h3.return = a2, a2 = h3);
3066 }
3067 return g2(a2);
3068 case wa:
3069 a: {
3070 for (l3 = f3.key; null !== d3; ) {
3071 if (d3.key === l3) if (4 === d3.tag && d3.stateNode.containerInfo === f3.containerInfo && d3.stateNode.implementation === f3.implementation) {
3072 c2(a2, d3.sibling);
3073 d3 = e2(d3, f3.children || []);
3074 d3.return = a2;
3075 a2 = d3;
3076 break a;
3077 } else {
3078 c2(a2, d3);
3079 break;
3080 }
3081 else b2(a2, d3);
3082 d3 = d3.sibling;
3083 }
3084 d3 = Sg(f3, a2.mode, h3);
3085 d3.return = a2;
3086 a2 = d3;
3087 }
3088 return g2(a2);
3089 case Ha:
3090 return l3 = f3._init, J2(a2, d3, l3(f3._payload), h3);
3091 }
3092 if (eb(f3)) return n2(a2, d3, f3, h3);
3093 if (Ka(f3)) return t2(a2, d3, f3, h3);
3094 Mg(a2, f3);
3095 }
3096 return "string" === typeof f3 && "" !== f3 || "number" === typeof f3 ? (f3 = "" + f3, null !== d3 && 6 === d3.tag ? (c2(a2, d3.sibling), d3 = e2(d3, f3), d3.return = a2, a2 = d3) : (c2(a2, d3), d3 = Qg(f3, a2.mode, h3), d3.return = a2, a2 = d3), g2(a2)) : c2(a2, d3);
3097 }
3098 return J2;
3099 }
3100 var Ug = Og(true), Vg = Og(false), Wg = Uf(null), Xg = null, Yg = null, Zg = null;
3101 function $g() {
3102 Zg = Yg = Xg = null;
3103 }
3104 function ah(a) {
3105 var b2 = Wg.current;
3106 E(Wg);
3107 a._currentValue = b2;
3108 }
3109 function bh(a, b2, c2) {
3110 for (; null !== a; ) {
3111 var d2 = a.alternate;
3112 (a.childLanes & b2) !== b2 ? (a.childLanes |= b2, null !== d2 && (d2.childLanes |= b2)) : null !== d2 && (d2.childLanes & b2) !== b2 && (d2.childLanes |= b2);
3113 if (a === c2) break;
3114 a = a.return;
3115 }
3116 }
3117 function ch(a, b2) {
3118 Xg = a;
3119 Zg = Yg = null;
3120 a = a.dependencies;
3121 null !== a && null !== a.firstContext && (0 !== (a.lanes & b2) && (dh = true), a.firstContext = null);
3122 }
3123 function eh(a) {
3124 var b2 = a._currentValue;
3125 if (Zg !== a) if (a = { context: a, memoizedValue: b2, next: null }, null === Yg) {
3126 if (null === Xg) throw Error(p$1(308));
3127 Yg = a;
3128 Xg.dependencies = { lanes: 0, firstContext: a };
3129 } else Yg = Yg.next = a;
3130 return b2;
3131 }
3132 var fh = null;
3133 function gh(a) {
3134 null === fh ? fh = [a] : fh.push(a);
3135 }
3136 function hh(a, b2, c2, d2) {
3137 var e2 = b2.interleaved;
3138 null === e2 ? (c2.next = c2, gh(b2)) : (c2.next = e2.next, e2.next = c2);
3139 b2.interleaved = c2;
3140 return ih(a, d2);
3141 }
3142 function ih(a, b2) {
3143 a.lanes |= b2;
3144 var c2 = a.alternate;
3145 null !== c2 && (c2.lanes |= b2);
3146 c2 = a;
3147 for (a = a.return; null !== a; ) a.childLanes |= b2, c2 = a.alternate, null !== c2 && (c2.childLanes |= b2), c2 = a, a = a.return;
3148 return 3 === c2.tag ? c2.stateNode : null;
3149 }
3150 var jh = false;
3151 function kh(a) {
3152 a.updateQueue = { baseState: a.memoizedState, firstBaseUpdate: null, lastBaseUpdate: null, shared: { pending: null, interleaved: null, lanes: 0 }, effects: null };
3153 }
3154 function lh(a, b2) {
3155 a = a.updateQueue;
3156 b2.updateQueue === a && (b2.updateQueue = { baseState: a.baseState, firstBaseUpdate: a.firstBaseUpdate, lastBaseUpdate: a.lastBaseUpdate, shared: a.shared, effects: a.effects });
3157 }
3158 function mh(a, b2) {
3159 return { eventTime: a, lane: b2, tag: 0, payload: null, callback: null, next: null };
3160 }
3161 function nh(a, b2, c2) {
3162 var d2 = a.updateQueue;
3163 if (null === d2) return null;
3164 d2 = d2.shared;
3165 if (0 !== (K & 2)) {
3166 var e2 = d2.pending;
3167 null === e2 ? b2.next = b2 : (b2.next = e2.next, e2.next = b2);
3168 d2.pending = b2;
3169 return ih(a, c2);
3170 }
3171 e2 = d2.interleaved;
3172 null === e2 ? (b2.next = b2, gh(d2)) : (b2.next = e2.next, e2.next = b2);
3173 d2.interleaved = b2;
3174 return ih(a, c2);
3175 }
3176 function oh(a, b2, c2) {
3177 b2 = b2.updateQueue;
3178 if (null !== b2 && (b2 = b2.shared, 0 !== (c2 & 4194240))) {
3179 var d2 = b2.lanes;
3180 d2 &= a.pendingLanes;
3181 c2 |= d2;
3182 b2.lanes = c2;
3183 Cc(a, c2);
3184 }
3185 }
3186 function ph(a, b2) {
3187 var c2 = a.updateQueue, d2 = a.alternate;
3188 if (null !== d2 && (d2 = d2.updateQueue, c2 === d2)) {
3189 var e2 = null, f2 = null;
3190 c2 = c2.firstBaseUpdate;
3191 if (null !== c2) {
3192 do {
3193 var g2 = { eventTime: c2.eventTime, lane: c2.lane, tag: c2.tag, payload: c2.payload, callback: c2.callback, next: null };
3194 null === f2 ? e2 = f2 = g2 : f2 = f2.next = g2;
3195 c2 = c2.next;
3196 } while (null !== c2);
3197 null === f2 ? e2 = f2 = b2 : f2 = f2.next = b2;
3198 } else e2 = f2 = b2;
3199 c2 = { baseState: d2.baseState, firstBaseUpdate: e2, lastBaseUpdate: f2, shared: d2.shared, effects: d2.effects };
3200 a.updateQueue = c2;
3201 return;
3202 }
3203 a = c2.lastBaseUpdate;
3204 null === a ? c2.firstBaseUpdate = b2 : a.next = b2;
3205 c2.lastBaseUpdate = b2;
3206 }
3207 function qh(a, b2, c2, d2) {
3208 var e2 = a.updateQueue;
3209 jh = false;
3210 var f2 = e2.firstBaseUpdate, g2 = e2.lastBaseUpdate, h2 = e2.shared.pending;
3211 if (null !== h2) {
3212 e2.shared.pending = null;
3213 var k2 = h2, l2 = k2.next;
3214 k2.next = null;
3215 null === g2 ? f2 = l2 : g2.next = l2;
3216 g2 = k2;
3217 var m2 = a.alternate;
3218 null !== m2 && (m2 = m2.updateQueue, h2 = m2.lastBaseUpdate, h2 !== g2 && (null === h2 ? m2.firstBaseUpdate = l2 : h2.next = l2, m2.lastBaseUpdate = k2));
3219 }
3220 if (null !== f2) {
3221 var q2 = e2.baseState;
3222 g2 = 0;
3223 m2 = l2 = k2 = null;
3224 h2 = f2;
3225 do {
3226 var r2 = h2.lane, y2 = h2.eventTime;
3227 if ((d2 & r2) === r2) {
3228 null !== m2 && (m2 = m2.next = {
3229 eventTime: y2,
3230 lane: 0,
3231 tag: h2.tag,
3232 payload: h2.payload,
3233 callback: h2.callback,
3234 next: null
3235 });
3236 a: {
3237 var n2 = a, t2 = h2;
3238 r2 = b2;
3239 y2 = c2;
3240 switch (t2.tag) {
3241 case 1:
3242 n2 = t2.payload;
3243 if ("function" === typeof n2) {
3244 q2 = n2.call(y2, q2, r2);
3245 break a;
3246 }
3247 q2 = n2;
3248 break a;
3249 case 3:
3250 n2.flags = n2.flags & -65537 | 128;
3251 case 0:
3252 n2 = t2.payload;
3253 r2 = "function" === typeof n2 ? n2.call(y2, q2, r2) : n2;
3254 if (null === r2 || void 0 === r2) break a;
3255 q2 = A({}, q2, r2);
3256 break a;
3257 case 2:
3258 jh = true;
3259 }
3260 }
3261 null !== h2.callback && 0 !== h2.lane && (a.flags |= 64, r2 = e2.effects, null === r2 ? e2.effects = [h2] : r2.push(h2));
3262 } else y2 = { eventTime: y2, lane: r2, tag: h2.tag, payload: h2.payload, callback: h2.callback, next: null }, null === m2 ? (l2 = m2 = y2, k2 = q2) : m2 = m2.next = y2, g2 |= r2;
3263 h2 = h2.next;
3264 if (null === h2) if (h2 = e2.shared.pending, null === h2) break;
3265 else r2 = h2, h2 = r2.next, r2.next = null, e2.lastBaseUpdate = r2, e2.shared.pending = null;
3266 } while (1);
3267 null === m2 && (k2 = q2);
3268 e2.baseState = k2;
3269 e2.firstBaseUpdate = l2;
3270 e2.lastBaseUpdate = m2;
3271 b2 = e2.shared.interleaved;
3272 if (null !== b2) {
3273 e2 = b2;
3274 do
3275 g2 |= e2.lane, e2 = e2.next;
3276 while (e2 !== b2);
3277 } else null === f2 && (e2.shared.lanes = 0);
3278 rh |= g2;
3279 a.lanes = g2;
3280 a.memoizedState = q2;
3281 }
3282 }
3283 function sh(a, b2, c2) {
3284 a = b2.effects;
3285 b2.effects = null;
3286 if (null !== a) for (b2 = 0; b2 < a.length; b2++) {
3287 var d2 = a[b2], e2 = d2.callback;
3288 if (null !== e2) {
3289 d2.callback = null;
3290 d2 = c2;
3291 if ("function" !== typeof e2) throw Error(p$1(191, e2));
3292 e2.call(d2);
3293 }
3294 }
3295 }
3296 var th = {}, uh = Uf(th), vh = Uf(th), wh = Uf(th);
3297 function xh(a) {
3298 if (a === th) throw Error(p$1(174));
3299 return a;
3300 }
3301 function yh(a, b2) {
3302 G(wh, b2);
3303 G(vh, a);
3304 G(uh, th);
3305 a = b2.nodeType;
3306 switch (a) {
3307 case 9:
3308 case 11:
3309 b2 = (b2 = b2.documentElement) ? b2.namespaceURI : lb(null, "");
3310 break;
3311 default:
3312 a = 8 === a ? b2.parentNode : b2, b2 = a.namespaceURI || null, a = a.tagName, b2 = lb(b2, a);
3313 }
3314 E(uh);
3315 G(uh, b2);
3316 }
3317 function zh() {
3318 E(uh);
3319 E(vh);
3320 E(wh);
3321 }
3322 function Ah(a) {
3323 xh(wh.current);
3324 var b2 = xh(uh.current);
3325 var c2 = lb(b2, a.type);
3326 b2 !== c2 && (G(vh, a), G(uh, c2));
3327 }
3328 function Bh(a) {
3329 vh.current === a && (E(uh), E(vh));
3330 }
3331 var L = Uf(0);
3332 function Ch(a) {
3333 for (var b2 = a; null !== b2; ) {
3334 if (13 === b2.tag) {
3335 var c2 = b2.memoizedState;
3336 if (null !== c2 && (c2 = c2.dehydrated, null === c2 || "$?" === c2.data || "$!" === c2.data)) return b2;
3337 } else if (19 === b2.tag && void 0 !== b2.memoizedProps.revealOrder) {
3338 if (0 !== (b2.flags & 128)) return b2;
3339 } else if (null !== b2.child) {
3340 b2.child.return = b2;
3341 b2 = b2.child;
3342 continue;
3343 }
3344 if (b2 === a) break;
3345 for (; null === b2.sibling; ) {
3346 if (null === b2.return || b2.return === a) return null;
3347 b2 = b2.return;
3348 }
3349 b2.sibling.return = b2.return;
3350 b2 = b2.sibling;
3351 }
3352 return null;
3353 }
3354 var Dh = [];
3355 function Eh() {
3356 for (var a = 0; a < Dh.length; a++) Dh[a]._workInProgressVersionPrimary = null;
3357 Dh.length = 0;
3358 }
3359 var Fh = ua.ReactCurrentDispatcher, Gh = ua.ReactCurrentBatchConfig, Hh = 0, M = null, N = null, O = null, Ih = false, Jh = false, Kh = 0, Lh = 0;
3360 function P() {
3361 throw Error(p$1(321));
3362 }
3363 function Mh(a, b2) {
3364 if (null === b2) return false;
3365 for (var c2 = 0; c2 < b2.length && c2 < a.length; c2++) if (!He(a[c2], b2[c2])) return false;
3366 return true;
3367 }
3368 function Nh(a, b2, c2, d2, e2, f2) {
3369 Hh = f2;
3370 M = b2;
3371 b2.memoizedState = null;
3372 b2.updateQueue = null;
3373 b2.lanes = 0;
3374 Fh.current = null === a || null === a.memoizedState ? Oh : Ph;
3375 a = c2(d2, e2);
3376 if (Jh) {
3377 f2 = 0;
3378 do {
3379 Jh = false;
3380 Kh = 0;
3381 if (25 <= f2) throw Error(p$1(301));
3382 f2 += 1;
3383 O = N = null;
3384 b2.updateQueue = null;
3385 Fh.current = Qh;
3386 a = c2(d2, e2);
3387 } while (Jh);
3388 }
3389 Fh.current = Rh;
3390 b2 = null !== N && null !== N.next;
3391 Hh = 0;
3392 O = N = M = null;
3393 Ih = false;
3394 if (b2) throw Error(p$1(300));
3395 return a;
3396 }
3397 function Sh() {
3398 var a = 0 !== Kh;
3399 Kh = 0;
3400 return a;
3401 }
3402 function Th() {
3403 var a = { memoizedState: null, baseState: null, baseQueue: null, queue: null, next: null };
3404 null === O ? M.memoizedState = O = a : O = O.next = a;
3405 return O;
3406 }
3407 function Uh() {
3408 if (null === N) {
3409 var a = M.alternate;
3410 a = null !== a ? a.memoizedState : null;
3411 } else a = N.next;
3412 var b2 = null === O ? M.memoizedState : O.next;
3413 if (null !== b2) O = b2, N = a;
3414 else {
3415 if (null === a) throw Error(p$1(310));
3416 N = a;
3417 a = { memoizedState: N.memoizedState, baseState: N.baseState, baseQueue: N.baseQueue, queue: N.queue, next: null };
3418 null === O ? M.memoizedState = O = a : O = O.next = a;
3419 }
3420 return O;
3421 }
3422 function Vh(a, b2) {
3423 return "function" === typeof b2 ? b2(a) : b2;
3424 }
3425 function Wh(a) {
3426 var b2 = Uh(), c2 = b2.queue;
3427 if (null === c2) throw Error(p$1(311));
3428 c2.lastRenderedReducer = a;
3429 var d2 = N, e2 = d2.baseQueue, f2 = c2.pending;
3430 if (null !== f2) {
3431 if (null !== e2) {
3432 var g2 = e2.next;
3433 e2.next = f2.next;
3434 f2.next = g2;
3435 }
3436 d2.baseQueue = e2 = f2;
3437 c2.pending = null;
3438 }
3439 if (null !== e2) {
3440 f2 = e2.next;
3441 d2 = d2.baseState;
3442 var h2 = g2 = null, k2 = null, l2 = f2;
3443 do {
3444 var m2 = l2.lane;
3445 if ((Hh & m2) === m2) null !== k2 && (k2 = k2.next = { lane: 0, action: l2.action, hasEagerState: l2.hasEagerState, eagerState: l2.eagerState, next: null }), d2 = l2.hasEagerState ? l2.eagerState : a(d2, l2.action);
3446 else {
3447 var q2 = {
3448 lane: m2,
3449 action: l2.action,
3450 hasEagerState: l2.hasEagerState,
3451 eagerState: l2.eagerState,
3452 next: null
3453 };
3454 null === k2 ? (h2 = k2 = q2, g2 = d2) : k2 = k2.next = q2;
3455 M.lanes |= m2;
3456 rh |= m2;
3457 }
3458 l2 = l2.next;
3459 } while (null !== l2 && l2 !== f2);
3460 null === k2 ? g2 = d2 : k2.next = h2;
3461 He(d2, b2.memoizedState) || (dh = true);
3462 b2.memoizedState = d2;
3463 b2.baseState = g2;
3464 b2.baseQueue = k2;
3465 c2.lastRenderedState = d2;
3466 }
3467 a = c2.interleaved;
3468 if (null !== a) {
3469 e2 = a;
3470 do
3471 f2 = e2.lane, M.lanes |= f2, rh |= f2, e2 = e2.next;
3472 while (e2 !== a);
3473 } else null === e2 && (c2.lanes = 0);
3474 return [b2.memoizedState, c2.dispatch];
3475 }
3476 function Xh(a) {
3477 var b2 = Uh(), c2 = b2.queue;
3478 if (null === c2) throw Error(p$1(311));
3479 c2.lastRenderedReducer = a;
3480 var d2 = c2.dispatch, e2 = c2.pending, f2 = b2.memoizedState;
3481 if (null !== e2) {
3482 c2.pending = null;
3483 var g2 = e2 = e2.next;
3484 do
3485 f2 = a(f2, g2.action), g2 = g2.next;
3486 while (g2 !== e2);
3487 He(f2, b2.memoizedState) || (dh = true);
3488 b2.memoizedState = f2;
3489 null === b2.baseQueue && (b2.baseState = f2);
3490 c2.lastRenderedState = f2;
3491 }
3492 return [f2, d2];
3493 }
3494 function Yh() {
3495 }
3496 function Zh(a, b2) {
3497 var c2 = M, d2 = Uh(), e2 = b2(), f2 = !He(d2.memoizedState, e2);
3498 f2 && (d2.memoizedState = e2, dh = true);
3499 d2 = d2.queue;
3500 $h(ai.bind(null, c2, d2, a), [a]);
3501 if (d2.getSnapshot !== b2 || f2 || null !== O && O.memoizedState.tag & 1) {
3502 c2.flags |= 2048;
3503 bi(9, ci.bind(null, c2, d2, e2, b2), void 0, null);
3504 if (null === Q) throw Error(p$1(349));
3505 0 !== (Hh & 30) || di(c2, b2, e2);
3506 }
3507 return e2;
3508 }
3509 function di(a, b2, c2) {
3510 a.flags |= 16384;
3511 a = { getSnapshot: b2, value: c2 };
3512 b2 = M.updateQueue;
3513 null === b2 ? (b2 = { lastEffect: null, stores: null }, M.updateQueue = b2, b2.stores = [a]) : (c2 = b2.stores, null === c2 ? b2.stores = [a] : c2.push(a));
3514 }
3515 function ci(a, b2, c2, d2) {
3516 b2.value = c2;
3517 b2.getSnapshot = d2;
3518 ei(b2) && fi(a);
3519 }
3520 function ai(a, b2, c2) {
3521 return c2(function() {
3522 ei(b2) && fi(a);
3523 });
3524 }
3525 function ei(a) {
3526 var b2 = a.getSnapshot;
3527 a = a.value;
3528 try {
3529 var c2 = b2();
3530 return !He(a, c2);
3531 } catch (d2) {
3532 return true;
3533 }
3534 }
3535 function fi(a) {
3536 var b2 = ih(a, 1);
3537 null !== b2 && gi(b2, a, 1, -1);
3538 }
3539 function hi(a) {
3540 var b2 = Th();
3541 "function" === typeof a && (a = a());
3542 b2.memoizedState = b2.baseState = a;
3543 a = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: Vh, lastRenderedState: a };
3544 b2.queue = a;
3545 a = a.dispatch = ii.bind(null, M, a);
3546 return [b2.memoizedState, a];
3547 }
3548 function bi(a, b2, c2, d2) {
3549 a = { tag: a, create: b2, destroy: c2, deps: d2, next: null };
3550 b2 = M.updateQueue;
3551 null === b2 ? (b2 = { lastEffect: null, stores: null }, M.updateQueue = b2, b2.lastEffect = a.next = a) : (c2 = b2.lastEffect, null === c2 ? b2.lastEffect = a.next = a : (d2 = c2.next, c2.next = a, a.next = d2, b2.lastEffect = a));
3552 return a;
3553 }
3554 function ji() {
3555 return Uh().memoizedState;
3556 }
3557 function ki(a, b2, c2, d2) {
3558 var e2 = Th();
3559 M.flags |= a;
3560 e2.memoizedState = bi(1 | b2, c2, void 0, void 0 === d2 ? null : d2);
3561 }
3562 function li(a, b2, c2, d2) {
3563 var e2 = Uh();
3564 d2 = void 0 === d2 ? null : d2;
3565 var f2 = void 0;
3566 if (null !== N) {
3567 var g2 = N.memoizedState;
3568 f2 = g2.destroy;
3569 if (null !== d2 && Mh(d2, g2.deps)) {
3570 e2.memoizedState = bi(b2, c2, f2, d2);
3571 return;
3572 }
3573 }
3574 M.flags |= a;
3575 e2.memoizedState = bi(1 | b2, c2, f2, d2);
3576 }
3577 function mi(a, b2) {
3578 return ki(8390656, 8, a, b2);
3579 }
3580 function $h(a, b2) {
3581 return li(2048, 8, a, b2);
3582 }
3583 function ni(a, b2) {
3584 return li(4, 2, a, b2);
3585 }
3586 function oi(a, b2) {
3587 return li(4, 4, a, b2);
3588 }
3589 function pi(a, b2) {
3590 if ("function" === typeof b2) return a = a(), b2(a), function() {
3591 b2(null);
3592 };
3593 if (null !== b2 && void 0 !== b2) return a = a(), b2.current = a, function() {
3594 b2.current = null;
3595 };
3596 }
3597 function qi(a, b2, c2) {
3598 c2 = null !== c2 && void 0 !== c2 ? c2.concat([a]) : null;
3599 return li(4, 4, pi.bind(null, b2, a), c2);
3600 }
3601 function ri() {
3602 }
3603 function si(a, b2) {
3604 var c2 = Uh();
3605 b2 = void 0 === b2 ? null : b2;
3606 var d2 = c2.memoizedState;
3607 if (null !== d2 && null !== b2 && Mh(b2, d2[1])) return d2[0];
3608 c2.memoizedState = [a, b2];
3609 return a;
3610 }
3611 function ti(a, b2) {
3612 var c2 = Uh();
3613 b2 = void 0 === b2 ? null : b2;
3614 var d2 = c2.memoizedState;
3615 if (null !== d2 && null !== b2 && Mh(b2, d2[1])) return d2[0];
3616 a = a();
3617 c2.memoizedState = [a, b2];
3618 return a;
3619 }
3620 function ui(a, b2, c2) {
3621 if (0 === (Hh & 21)) return a.baseState && (a.baseState = false, dh = true), a.memoizedState = c2;
3622 He(c2, b2) || (c2 = yc(), M.lanes |= c2, rh |= c2, a.baseState = true);
3623 return b2;
3624 }
3625 function vi(a, b2) {
3626 var c2 = C;
3627 C = 0 !== c2 && 4 > c2 ? c2 : 4;
3628 a(true);
3629 var d2 = Gh.transition;
3630 Gh.transition = {};
3631 try {
3632 a(false), b2();
3633 } finally {
3634 C = c2, Gh.transition = d2;
3635 }
3636 }
3637 function wi() {
3638 return Uh().memoizedState;
3639 }
3640 function xi(a, b2, c2) {
3641 var d2 = yi(a);
3642 c2 = { lane: d2, action: c2, hasEagerState: false, eagerState: null, next: null };
3643 if (zi(a)) Ai(b2, c2);
3644 else if (c2 = hh(a, b2, c2, d2), null !== c2) {
3645 var e2 = R();
3646 gi(c2, a, d2, e2);
3647 Bi(c2, b2, d2);
3648 }
3649 }
3650 function ii(a, b2, c2) {
3651 var d2 = yi(a), e2 = { lane: d2, action: c2, hasEagerState: false, eagerState: null, next: null };
3652 if (zi(a)) Ai(b2, e2);
3653 else {
3654 var f2 = a.alternate;
3655 if (0 === a.lanes && (null === f2 || 0 === f2.lanes) && (f2 = b2.lastRenderedReducer, null !== f2)) try {
3656 var g2 = b2.lastRenderedState, h2 = f2(g2, c2);
3657 e2.hasEagerState = true;
3658 e2.eagerState = h2;
3659 if (He(h2, g2)) {
3660 var k2 = b2.interleaved;
3661 null === k2 ? (e2.next = e2, gh(b2)) : (e2.next = k2.next, k2.next = e2);
3662 b2.interleaved = e2;
3663 return;
3664 }
3665 } catch (l2) {
3666 } finally {
3667 }
3668 c2 = hh(a, b2, e2, d2);
3669 null !== c2 && (e2 = R(), gi(c2, a, d2, e2), Bi(c2, b2, d2));
3670 }
3671 }
3672 function zi(a) {
3673 var b2 = a.alternate;
3674 return a === M || null !== b2 && b2 === M;
3675 }
3676 function Ai(a, b2) {
3677 Jh = Ih = true;
3678 var c2 = a.pending;
3679 null === c2 ? b2.next = b2 : (b2.next = c2.next, c2.next = b2);
3680 a.pending = b2;
3681 }
3682 function Bi(a, b2, c2) {
3683 if (0 !== (c2 & 4194240)) {
3684 var d2 = b2.lanes;
3685 d2 &= a.pendingLanes;
3686 c2 |= d2;
3687 b2.lanes = c2;
3688 Cc(a, c2);
3689 }
3690 }
3691 var Rh = { readContext: eh, useCallback: P, useContext: P, useEffect: P, useImperativeHandle: P, useInsertionEffect: P, useLayoutEffect: P, useMemo: P, useReducer: P, useRef: P, useState: P, useDebugValue: P, useDeferredValue: P, useTransition: P, useMutableSource: P, useSyncExternalStore: P, useId: P, unstable_isNewReconciler: false }, Oh = { readContext: eh, useCallback: function(a, b2) {
3692 Th().memoizedState = [a, void 0 === b2 ? null : b2];
3693 return a;
3694 }, useContext: eh, useEffect: mi, useImperativeHandle: function(a, b2, c2) {
3695 c2 = null !== c2 && void 0 !== c2 ? c2.concat([a]) : null;
3696 return ki(
3697 4194308,
3698 4,
3699 pi.bind(null, b2, a),
3700 c2
3701 );
3702 }, useLayoutEffect: function(a, b2) {
3703 return ki(4194308, 4, a, b2);
3704 }, useInsertionEffect: function(a, b2) {
3705 return ki(4, 2, a, b2);
3706 }, useMemo: function(a, b2) {
3707 var c2 = Th();
3708 b2 = void 0 === b2 ? null : b2;
3709 a = a();
3710 c2.memoizedState = [a, b2];
3711 return a;
3712 }, useReducer: function(a, b2, c2) {
3713 var d2 = Th();
3714 b2 = void 0 !== c2 ? c2(b2) : b2;
3715 d2.memoizedState = d2.baseState = b2;
3716 a = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: a, lastRenderedState: b2 };
3717 d2.queue = a;
3718 a = a.dispatch = xi.bind(null, M, a);
3719 return [d2.memoizedState, a];
3720 }, useRef: function(a) {
3721 var b2 = Th();
3722 a = { current: a };
3723 return b2.memoizedState = a;
3724 }, useState: hi, useDebugValue: ri, useDeferredValue: function(a) {
3725 return Th().memoizedState = a;
3726 }, useTransition: function() {
3727 var a = hi(false), b2 = a[0];
3728 a = vi.bind(null, a[1]);
3729 Th().memoizedState = a;
3730 return [b2, a];
3731 }, useMutableSource: function() {
3732 }, useSyncExternalStore: function(a, b2, c2) {
3733 var d2 = M, e2 = Th();
3734 if (I) {
3735 if (void 0 === c2) throw Error(p$1(407));
3736 c2 = c2();
3737 } else {
3738 c2 = b2();
3739 if (null === Q) throw Error(p$1(349));
3740 0 !== (Hh & 30) || di(d2, b2, c2);
3741 }
3742 e2.memoizedState = c2;
3743 var f2 = { value: c2, getSnapshot: b2 };
3744 e2.queue = f2;
3745 mi(ai.bind(
3746 null,
3747 d2,
3748 f2,
3749 a
3750 ), [a]);
3751 d2.flags |= 2048;
3752 bi(9, ci.bind(null, d2, f2, c2, b2), void 0, null);
3753 return c2;
3754 }, useId: function() {
3755 var a = Th(), b2 = Q.identifierPrefix;
3756 if (I) {
3757 var c2 = sg;
3758 var d2 = rg;
3759 c2 = (d2 & ~(1 << 32 - oc(d2) - 1)).toString(32) + c2;
3760 b2 = ":" + b2 + "R" + c2;
3761 c2 = Kh++;
3762 0 < c2 && (b2 += "H" + c2.toString(32));
3763 b2 += ":";
3764 } else c2 = Lh++, b2 = ":" + b2 + "r" + c2.toString(32) + ":";
3765 return a.memoizedState = b2;
3766 }, unstable_isNewReconciler: false }, Ph = {
3767 readContext: eh,
3768 useCallback: si,
3769 useContext: eh,
3770 useEffect: $h,
3771 useImperativeHandle: qi,
3772 useInsertionEffect: ni,
3773 useLayoutEffect: oi,
3774 useMemo: ti,
3775 useReducer: Wh,
3776 useRef: ji,
3777 useState: function() {
3778 return Wh(Vh);
3779 },
3780 useDebugValue: ri,
3781 useDeferredValue: function(a) {
3782 var b2 = Uh();
3783 return ui(b2, N.memoizedState, a);
3784 },
3785 useTransition: function() {
3786 var a = Wh(Vh)[0], b2 = Uh().memoizedState;
3787 return [a, b2];
3788 },
3789 useMutableSource: Yh,
3790 useSyncExternalStore: Zh,
3791 useId: wi,
3792 unstable_isNewReconciler: false
3793 }, Qh = { readContext: eh, useCallback: si, useContext: eh, useEffect: $h, useImperativeHandle: qi, useInsertionEffect: ni, useLayoutEffect: oi, useMemo: ti, useReducer: Xh, useRef: ji, useState: function() {
3794 return Xh(Vh);
3795 }, useDebugValue: ri, useDeferredValue: function(a) {
3796 var b2 = Uh();
3797 return null === N ? b2.memoizedState = a : ui(b2, N.memoizedState, a);
3798 }, useTransition: function() {
3799 var a = Xh(Vh)[0], b2 = Uh().memoizedState;
3800 return [a, b2];
3801 }, useMutableSource: Yh, useSyncExternalStore: Zh, useId: wi, unstable_isNewReconciler: false };
3802 function Ci(a, b2) {
3803 if (a && a.defaultProps) {
3804 b2 = A({}, b2);
3805 a = a.defaultProps;
3806 for (var c2 in a) void 0 === b2[c2] && (b2[c2] = a[c2]);
3807 return b2;
3808 }
3809 return b2;
3810 }
3811 function Di(a, b2, c2, d2) {
3812 b2 = a.memoizedState;
3813 c2 = c2(d2, b2);
3814 c2 = null === c2 || void 0 === c2 ? b2 : A({}, b2, c2);
3815 a.memoizedState = c2;
3816 0 === a.lanes && (a.updateQueue.baseState = c2);
3817 }
3818 var Ei = { isMounted: function(a) {
3819 return (a = a._reactInternals) ? Vb(a) === a : false;
3820 }, enqueueSetState: function(a, b2, c2) {
3821 a = a._reactInternals;
3822 var d2 = R(), e2 = yi(a), f2 = mh(d2, e2);
3823 f2.payload = b2;
3824 void 0 !== c2 && null !== c2 && (f2.callback = c2);
3825 b2 = nh(a, f2, e2);
3826 null !== b2 && (gi(b2, a, e2, d2), oh(b2, a, e2));
3827 }, enqueueReplaceState: function(a, b2, c2) {
3828 a = a._reactInternals;
3829 var d2 = R(), e2 = yi(a), f2 = mh(d2, e2);
3830 f2.tag = 1;
3831 f2.payload = b2;
3832 void 0 !== c2 && null !== c2 && (f2.callback = c2);
3833 b2 = nh(a, f2, e2);
3834 null !== b2 && (gi(b2, a, e2, d2), oh(b2, a, e2));
3835 }, enqueueForceUpdate: function(a, b2) {
3836 a = a._reactInternals;
3837 var c2 = R(), d2 = yi(a), e2 = mh(c2, d2);
3838 e2.tag = 2;
3839 void 0 !== b2 && null !== b2 && (e2.callback = b2);
3840 b2 = nh(a, e2, d2);
3841 null !== b2 && (gi(b2, a, d2, c2), oh(b2, a, d2));
3842 } };
3843 function Fi(a, b2, c2, d2, e2, f2, g2) {
3844 a = a.stateNode;
3845 return "function" === typeof a.shouldComponentUpdate ? a.shouldComponentUpdate(d2, f2, g2) : b2.prototype && b2.prototype.isPureReactComponent ? !Ie(c2, d2) || !Ie(e2, f2) : true;
3846 }
3847 function Gi(a, b2, c2) {
3848 var d2 = false, e2 = Vf;
3849 var f2 = b2.contextType;
3850 "object" === typeof f2 && null !== f2 ? f2 = eh(f2) : (e2 = Zf(b2) ? Xf : H.current, d2 = b2.contextTypes, f2 = (d2 = null !== d2 && void 0 !== d2) ? Yf(a, e2) : Vf);
3851 b2 = new b2(c2, f2);
3852 a.memoizedState = null !== b2.state && void 0 !== b2.state ? b2.state : null;
3853 b2.updater = Ei;
3854 a.stateNode = b2;
3855 b2._reactInternals = a;
3856 d2 && (a = a.stateNode, a.__reactInternalMemoizedUnmaskedChildContext = e2, a.__reactInternalMemoizedMaskedChildContext = f2);
3857 return b2;
3858 }
3859 function Hi(a, b2, c2, d2) {
3860 a = b2.state;
3861 "function" === typeof b2.componentWillReceiveProps && b2.componentWillReceiveProps(c2, d2);
3862 "function" === typeof b2.UNSAFE_componentWillReceiveProps && b2.UNSAFE_componentWillReceiveProps(c2, d2);
3863 b2.state !== a && Ei.enqueueReplaceState(b2, b2.state, null);
3864 }
3865 function Ii(a, b2, c2, d2) {
3866 var e2 = a.stateNode;
3867 e2.props = c2;
3868 e2.state = a.memoizedState;
3869 e2.refs = {};
3870 kh(a);
3871 var f2 = b2.contextType;
3872 "object" === typeof f2 && null !== f2 ? e2.context = eh(f2) : (f2 = Zf(b2) ? Xf : H.current, e2.context = Yf(a, f2));
3873 e2.state = a.memoizedState;
3874 f2 = b2.getDerivedStateFromProps;
3875 "function" === typeof f2 && (Di(a, b2, f2, c2), e2.state = a.memoizedState);
3876 "function" === typeof b2.getDerivedStateFromProps || "function" === typeof e2.getSnapshotBeforeUpdate || "function" !== typeof e2.UNSAFE_componentWillMount && "function" !== typeof e2.componentWillMount || (b2 = e2.state, "function" === typeof e2.componentWillMount && e2.componentWillMount(), "function" === typeof e2.UNSAFE_componentWillMount && e2.UNSAFE_componentWillMount(), b2 !== e2.state && Ei.enqueueReplaceState(e2, e2.state, null), qh(a, c2, e2, d2), e2.state = a.memoizedState);
3877 "function" === typeof e2.componentDidMount && (a.flags |= 4194308);
3878 }
3879 function Ji(a, b2) {
3880 try {
3881 var c2 = "", d2 = b2;
3882 do
3883 c2 += Pa(d2), d2 = d2.return;
3884 while (d2);
3885 var e2 = c2;
3886 } catch (f2) {
3887 e2 = "\nError generating stack: " + f2.message + "\n" + f2.stack;
3888 }
3889 return { value: a, source: b2, stack: e2, digest: null };
3890 }
3891 function Ki(a, b2, c2) {
3892 return { value: a, source: null, stack: null != c2 ? c2 : null, digest: null != b2 ? b2 : null };
3893 }
3894 function Li(a, b2) {
3895 try {
3896 console.error(b2.value);
3897 } catch (c2) {
3898 setTimeout(function() {
3899 throw c2;
3900 });
3901 }
3902 }
3903 var Mi = "function" === typeof WeakMap ? WeakMap : Map;
3904 function Ni(a, b2, c2) {
3905 c2 = mh(-1, c2);
3906 c2.tag = 3;
3907 c2.payload = { element: null };
3908 var d2 = b2.value;
3909 c2.callback = function() {
3910 Oi || (Oi = true, Pi = d2);
3911 Li(a, b2);
3912 };
3913 return c2;
3914 }
3915 function Qi(a, b2, c2) {
3916 c2 = mh(-1, c2);
3917 c2.tag = 3;
3918 var d2 = a.type.getDerivedStateFromError;
3919 if ("function" === typeof d2) {
3920 var e2 = b2.value;
3921 c2.payload = function() {
3922 return d2(e2);
3923 };
3924 c2.callback = function() {
3925 Li(a, b2);
3926 };
3927 }
3928 var f2 = a.stateNode;
3929 null !== f2 && "function" === typeof f2.componentDidCatch && (c2.callback = function() {
3930 Li(a, b2);
3931 "function" !== typeof d2 && (null === Ri ? Ri = /* @__PURE__ */ new Set([this]) : Ri.add(this));
3932 var c3 = b2.stack;
3933 this.componentDidCatch(b2.value, { componentStack: null !== c3 ? c3 : "" });
3934 });
3935 return c2;
3936 }
3937 function Si(a, b2, c2) {
3938 var d2 = a.pingCache;
3939 if (null === d2) {
3940 d2 = a.pingCache = new Mi();
3941 var e2 = /* @__PURE__ */ new Set();
3942 d2.set(b2, e2);
3943 } else e2 = d2.get(b2), void 0 === e2 && (e2 = /* @__PURE__ */ new Set(), d2.set(b2, e2));
3944 e2.has(c2) || (e2.add(c2), a = Ti.bind(null, a, b2, c2), b2.then(a, a));
3945 }
3946 function Ui(a) {
3947 do {
3948 var b2;
3949 if (b2 = 13 === a.tag) b2 = a.memoizedState, b2 = null !== b2 ? null !== b2.dehydrated ? true : false : true;
3950 if (b2) return a;
3951 a = a.return;
3952 } while (null !== a);
3953 return null;
3954 }
3955 function Vi(a, b2, c2, d2, e2) {
3956 if (0 === (a.mode & 1)) return a === b2 ? a.flags |= 65536 : (a.flags |= 128, c2.flags |= 131072, c2.flags &= -52805, 1 === c2.tag && (null === c2.alternate ? c2.tag = 17 : (b2 = mh(-1, 1), b2.tag = 2, nh(c2, b2, 1))), c2.lanes |= 1), a;
3957 a.flags |= 65536;
3958 a.lanes = e2;
3959 return a;
3960 }
3961 var Wi = ua.ReactCurrentOwner, dh = false;
3962 function Xi(a, b2, c2, d2) {
3963 b2.child = null === a ? Vg(b2, null, c2, d2) : Ug(b2, a.child, c2, d2);
3964 }
3965 function Yi(a, b2, c2, d2, e2) {
3966 c2 = c2.render;
3967 var f2 = b2.ref;
3968 ch(b2, e2);
3969 d2 = Nh(a, b2, c2, d2, f2, e2);
3970 c2 = Sh();
3971 if (null !== a && !dh) return b2.updateQueue = a.updateQueue, b2.flags &= -2053, a.lanes &= ~e2, Zi(a, b2, e2);
3972 I && c2 && vg(b2);
3973 b2.flags |= 1;
3974 Xi(a, b2, d2, e2);
3975 return b2.child;
3976 }
3977 function $i(a, b2, c2, d2, e2) {
3978 if (null === a) {
3979 var f2 = c2.type;
3980 if ("function" === typeof f2 && !aj(f2) && void 0 === f2.defaultProps && null === c2.compare && void 0 === c2.defaultProps) return b2.tag = 15, b2.type = f2, bj(a, b2, f2, d2, e2);
3981 a = Rg(c2.type, null, d2, b2, b2.mode, e2);
3982 a.ref = b2.ref;
3983 a.return = b2;
3984 return b2.child = a;
3985 }
3986 f2 = a.child;
3987 if (0 === (a.lanes & e2)) {
3988 var g2 = f2.memoizedProps;
3989 c2 = c2.compare;
3990 c2 = null !== c2 ? c2 : Ie;
3991 if (c2(g2, d2) && a.ref === b2.ref) return Zi(a, b2, e2);
3992 }
3993 b2.flags |= 1;
3994 a = Pg(f2, d2);
3995 a.ref = b2.ref;
3996 a.return = b2;
3997 return b2.child = a;
3998 }
3999 function bj(a, b2, c2, d2, e2) {
4000 if (null !== a) {
4001 var f2 = a.memoizedProps;
4002 if (Ie(f2, d2) && a.ref === b2.ref) if (dh = false, b2.pendingProps = d2 = f2, 0 !== (a.lanes & e2)) 0 !== (a.flags & 131072) && (dh = true);
4003 else return b2.lanes = a.lanes, Zi(a, b2, e2);
4004 }
4005 return cj(a, b2, c2, d2, e2);
4006 }
4007 function dj(a, b2, c2) {
4008 var d2 = b2.pendingProps, e2 = d2.children, f2 = null !== a ? a.memoizedState : null;
4009 if ("hidden" === d2.mode) if (0 === (b2.mode & 1)) b2.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }, G(ej, fj), fj |= c2;
4010 else {
4011 if (0 === (c2 & 1073741824)) return a = null !== f2 ? f2.baseLanes | c2 : c2, b2.lanes = b2.childLanes = 1073741824, b2.memoizedState = { baseLanes: a, cachePool: null, transitions: null }, b2.updateQueue = null, G(ej, fj), fj |= a, null;
4012 b2.memoizedState = { baseLanes: 0, cachePool: null, transitions: null };
4013 d2 = null !== f2 ? f2.baseLanes : c2;
4014 G(ej, fj);
4015 fj |= d2;
4016 }
4017 else null !== f2 ? (d2 = f2.baseLanes | c2, b2.memoizedState = null) : d2 = c2, G(ej, fj), fj |= d2;
4018 Xi(a, b2, e2, c2);
4019 return b2.child;
4020 }
4021 function gj(a, b2) {
4022 var c2 = b2.ref;
4023 if (null === a && null !== c2 || null !== a && a.ref !== c2) b2.flags |= 512, b2.flags |= 2097152;
4024 }
4025 function cj(a, b2, c2, d2, e2) {
4026 var f2 = Zf(c2) ? Xf : H.current;
4027 f2 = Yf(b2, f2);
4028 ch(b2, e2);
4029 c2 = Nh(a, b2, c2, d2, f2, e2);
4030 d2 = Sh();
4031 if (null !== a && !dh) return b2.updateQueue = a.updateQueue, b2.flags &= -2053, a.lanes &= ~e2, Zi(a, b2, e2);
4032 I && d2 && vg(b2);
4033 b2.flags |= 1;
4034 Xi(a, b2, c2, e2);
4035 return b2.child;
4036 }
4037 function hj(a, b2, c2, d2, e2) {
4038 if (Zf(c2)) {
4039 var f2 = true;
4040 cg(b2);
4041 } else f2 = false;
4042 ch(b2, e2);
4043 if (null === b2.stateNode) ij(a, b2), Gi(b2, c2, d2), Ii(b2, c2, d2, e2), d2 = true;
4044 else if (null === a) {
4045 var g2 = b2.stateNode, h2 = b2.memoizedProps;
4046 g2.props = h2;
4047 var k2 = g2.context, l2 = c2.contextType;
4048 "object" === typeof l2 && null !== l2 ? l2 = eh(l2) : (l2 = Zf(c2) ? Xf : H.current, l2 = Yf(b2, l2));
4049 var m2 = c2.getDerivedStateFromProps, q2 = "function" === typeof m2 || "function" === typeof g2.getSnapshotBeforeUpdate;
4050 q2 || "function" !== typeof g2.UNSAFE_componentWillReceiveProps && "function" !== typeof g2.componentWillReceiveProps || (h2 !== d2 || k2 !== l2) && Hi(b2, g2, d2, l2);
4051 jh = false;
4052 var r2 = b2.memoizedState;
4053 g2.state = r2;
4054 qh(b2, d2, g2, e2);
4055 k2 = b2.memoizedState;
4056 h2 !== d2 || r2 !== k2 || Wf.current || jh ? ("function" === typeof m2 && (Di(b2, c2, m2, d2), k2 = b2.memoizedState), (h2 = jh || Fi(b2, c2, h2, d2, r2, k2, l2)) ? (q2 || "function" !== typeof g2.UNSAFE_componentWillMount && "function" !== typeof g2.componentWillMount || ("function" === typeof g2.componentWillMount && g2.componentWillMount(), "function" === typeof g2.UNSAFE_componentWillMount && g2.UNSAFE_componentWillMount()), "function" === typeof g2.componentDidMount && (b2.flags |= 4194308)) : ("function" === typeof g2.componentDidMount && (b2.flags |= 4194308), b2.memoizedProps = d2, b2.memoizedState = k2), g2.props = d2, g2.state = k2, g2.context = l2, d2 = h2) : ("function" === typeof g2.componentDidMount && (b2.flags |= 4194308), d2 = false);
4057 } else {
4058 g2 = b2.stateNode;
4059 lh(a, b2);
4060 h2 = b2.memoizedProps;
4061 l2 = b2.type === b2.elementType ? h2 : Ci(b2.type, h2);
4062 g2.props = l2;
4063 q2 = b2.pendingProps;
4064 r2 = g2.context;
4065 k2 = c2.contextType;
4066 "object" === typeof k2 && null !== k2 ? k2 = eh(k2) : (k2 = Zf(c2) ? Xf : H.current, k2 = Yf(b2, k2));
4067 var y2 = c2.getDerivedStateFromProps;
4068 (m2 = "function" === typeof y2 || "function" === typeof g2.getSnapshotBeforeUpdate) || "function" !== typeof g2.UNSAFE_componentWillReceiveProps && "function" !== typeof g2.componentWillReceiveProps || (h2 !== q2 || r2 !== k2) && Hi(b2, g2, d2, k2);
4069 jh = false;
4070 r2 = b2.memoizedState;
4071 g2.state = r2;
4072 qh(b2, d2, g2, e2);
4073 var n2 = b2.memoizedState;
4074 h2 !== q2 || r2 !== n2 || Wf.current || jh ? ("function" === typeof y2 && (Di(b2, c2, y2, d2), n2 = b2.memoizedState), (l2 = jh || Fi(b2, c2, l2, d2, r2, n2, k2) || false) ? (m2 || "function" !== typeof g2.UNSAFE_componentWillUpdate && "function" !== typeof g2.componentWillUpdate || ("function" === typeof g2.componentWillUpdate && g2.componentWillUpdate(d2, n2, k2), "function" === typeof g2.UNSAFE_componentWillUpdate && g2.UNSAFE_componentWillUpdate(d2, n2, k2)), "function" === typeof g2.componentDidUpdate && (b2.flags |= 4), "function" === typeof g2.getSnapshotBeforeUpdate && (b2.flags |= 1024)) : ("function" !== typeof g2.componentDidUpdate || h2 === a.memoizedProps && r2 === a.memoizedState || (b2.flags |= 4), "function" !== typeof g2.getSnapshotBeforeUpdate || h2 === a.memoizedProps && r2 === a.memoizedState || (b2.flags |= 1024), b2.memoizedProps = d2, b2.memoizedState = n2), g2.props = d2, g2.state = n2, g2.context = k2, d2 = l2) : ("function" !== typeof g2.componentDidUpdate || h2 === a.memoizedProps && r2 === a.memoizedState || (b2.flags |= 4), "function" !== typeof g2.getSnapshotBeforeUpdate || h2 === a.memoizedProps && r2 === a.memoizedState || (b2.flags |= 1024), d2 = false);
4075 }
4076 return jj(a, b2, c2, d2, f2, e2);
4077 }
4078 function jj(a, b2, c2, d2, e2, f2) {
4079 gj(a, b2);
4080 var g2 = 0 !== (b2.flags & 128);
4081 if (!d2 && !g2) return e2 && dg(b2, c2, false), Zi(a, b2, f2);
4082 d2 = b2.stateNode;
4083 Wi.current = b2;
4084 var h2 = g2 && "function" !== typeof c2.getDerivedStateFromError ? null : d2.render();
4085 b2.flags |= 1;
4086 null !== a && g2 ? (b2.child = Ug(b2, a.child, null, f2), b2.child = Ug(b2, null, h2, f2)) : Xi(a, b2, h2, f2);
4087 b2.memoizedState = d2.state;
4088 e2 && dg(b2, c2, true);
4089 return b2.child;
4090 }
4091 function kj(a) {
4092 var b2 = a.stateNode;
4093 b2.pendingContext ? ag(a, b2.pendingContext, b2.pendingContext !== b2.context) : b2.context && ag(a, b2.context, false);
4094 yh(a, b2.containerInfo);
4095 }
4096 function lj(a, b2, c2, d2, e2) {
4097 Ig();
4098 Jg(e2);
4099 b2.flags |= 256;
4100 Xi(a, b2, c2, d2);
4101 return b2.child;
4102 }
4103 var mj = { dehydrated: null, treeContext: null, retryLane: 0 };
4104 function nj(a) {
4105 return { baseLanes: a, cachePool: null, transitions: null };
4106 }
4107 function oj(a, b2, c2) {
4108 var d2 = b2.pendingProps, e2 = L.current, f2 = false, g2 = 0 !== (b2.flags & 128), h2;
4109 (h2 = g2) || (h2 = null !== a && null === a.memoizedState ? false : 0 !== (e2 & 2));
4110 if (h2) f2 = true, b2.flags &= -129;
4111 else if (null === a || null !== a.memoizedState) e2 |= 1;
4112 G(L, e2 & 1);
4113 if (null === a) {
4114 Eg(b2);
4115 a = b2.memoizedState;
4116 if (null !== a && (a = a.dehydrated, null !== a)) return 0 === (b2.mode & 1) ? b2.lanes = 1 : "$!" === a.data ? b2.lanes = 8 : b2.lanes = 1073741824, null;
4117 g2 = d2.children;
4118 a = d2.fallback;
4119 return f2 ? (d2 = b2.mode, f2 = b2.child, g2 = { mode: "hidden", children: g2 }, 0 === (d2 & 1) && null !== f2 ? (f2.childLanes = 0, f2.pendingProps = g2) : f2 = pj(g2, d2, 0, null), a = Tg(a, d2, c2, null), f2.return = b2, a.return = b2, f2.sibling = a, b2.child = f2, b2.child.memoizedState = nj(c2), b2.memoizedState = mj, a) : qj(b2, g2);
4120 }
4121 e2 = a.memoizedState;
4122 if (null !== e2 && (h2 = e2.dehydrated, null !== h2)) return rj(a, b2, g2, d2, h2, e2, c2);
4123 if (f2) {
4124 f2 = d2.fallback;
4125 g2 = b2.mode;
4126 e2 = a.child;
4127 h2 = e2.sibling;
4128 var k2 = { mode: "hidden", children: d2.children };
4129 0 === (g2 & 1) && b2.child !== e2 ? (d2 = b2.child, d2.childLanes = 0, d2.pendingProps = k2, b2.deletions = null) : (d2 = Pg(e2, k2), d2.subtreeFlags = e2.subtreeFlags & 14680064);
4130 null !== h2 ? f2 = Pg(h2, f2) : (f2 = Tg(f2, g2, c2, null), f2.flags |= 2);
4131 f2.return = b2;
4132 d2.return = b2;
4133 d2.sibling = f2;
4134 b2.child = d2;
4135 d2 = f2;
4136 f2 = b2.child;
4137 g2 = a.child.memoizedState;
4138 g2 = null === g2 ? nj(c2) : { baseLanes: g2.baseLanes | c2, cachePool: null, transitions: g2.transitions };
4139 f2.memoizedState = g2;
4140 f2.childLanes = a.childLanes & ~c2;
4141 b2.memoizedState = mj;
4142 return d2;
4143 }
4144 f2 = a.child;
4145 a = f2.sibling;
4146 d2 = Pg(f2, { mode: "visible", children: d2.children });
4147 0 === (b2.mode & 1) && (d2.lanes = c2);
4148 d2.return = b2;
4149 d2.sibling = null;
4150 null !== a && (c2 = b2.deletions, null === c2 ? (b2.deletions = [a], b2.flags |= 16) : c2.push(a));
4151 b2.child = d2;
4152 b2.memoizedState = null;
4153 return d2;
4154 }
4155 function qj(a, b2) {
4156 b2 = pj({ mode: "visible", children: b2 }, a.mode, 0, null);
4157 b2.return = a;
4158 return a.child = b2;
4159 }
4160 function sj(a, b2, c2, d2) {
4161 null !== d2 && Jg(d2);
4162 Ug(b2, a.child, null, c2);
4163 a = qj(b2, b2.pendingProps.children);
4164 a.flags |= 2;
4165 b2.memoizedState = null;
4166 return a;
4167 }
4168 function rj(a, b2, c2, d2, e2, f2, g2) {
4169 if (c2) {
4170 if (b2.flags & 256) return b2.flags &= -257, d2 = Ki(Error(p$1(422))), sj(a, b2, g2, d2);
4171 if (null !== b2.memoizedState) return b2.child = a.child, b2.flags |= 128, null;
4172 f2 = d2.fallback;
4173 e2 = b2.mode;
4174 d2 = pj({ mode: "visible", children: d2.children }, e2, 0, null);
4175 f2 = Tg(f2, e2, g2, null);
4176 f2.flags |= 2;
4177 d2.return = b2;
4178 f2.return = b2;
4179 d2.sibling = f2;
4180 b2.child = d2;
4181 0 !== (b2.mode & 1) && Ug(b2, a.child, null, g2);
4182 b2.child.memoizedState = nj(g2);
4183 b2.memoizedState = mj;
4184 return f2;
4185 }
4186 if (0 === (b2.mode & 1)) return sj(a, b2, g2, null);
4187 if ("$!" === e2.data) {
4188 d2 = e2.nextSibling && e2.nextSibling.dataset;
4189 if (d2) var h2 = d2.dgst;
4190 d2 = h2;
4191 f2 = Error(p$1(419));
4192 d2 = Ki(f2, d2, void 0);
4193 return sj(a, b2, g2, d2);
4194 }
4195 h2 = 0 !== (g2 & a.childLanes);
4196 if (dh || h2) {
4197 d2 = Q;
4198 if (null !== d2) {
4199 switch (g2 & -g2) {
4200 case 4:
4201 e2 = 2;
4202 break;
4203 case 16:
4204 e2 = 8;
4205 break;
4206 case 64:
4207 case 128:
4208 case 256:
4209 case 512:
4210 case 1024:
4211 case 2048:
4212 case 4096:
4213 case 8192:
4214 case 16384:
4215 case 32768:
4216 case 65536:
4217 case 131072:
4218 case 262144:
4219 case 524288:
4220 case 1048576:
4221 case 2097152:
4222 case 4194304:
4223 case 8388608:
4224 case 16777216:
4225 case 33554432:
4226 case 67108864:
4227 e2 = 32;
4228 break;
4229 case 536870912:
4230 e2 = 268435456;
4231 break;
4232 default:
4233 e2 = 0;
4234 }
4235 e2 = 0 !== (e2 & (d2.suspendedLanes | g2)) ? 0 : e2;
4236 0 !== e2 && e2 !== f2.retryLane && (f2.retryLane = e2, ih(a, e2), gi(d2, a, e2, -1));
4237 }
4238 tj();
4239 d2 = Ki(Error(p$1(421)));
4240 return sj(a, b2, g2, d2);
4241 }
4242 if ("$?" === e2.data) return b2.flags |= 128, b2.child = a.child, b2 = uj.bind(null, a), e2._reactRetry = b2, null;
4243 a = f2.treeContext;
4244 yg = Lf(e2.nextSibling);
4245 xg = b2;
4246 I = true;
4247 zg = null;
4248 null !== a && (og[pg++] = rg, og[pg++] = sg, og[pg++] = qg, rg = a.id, sg = a.overflow, qg = b2);
4249 b2 = qj(b2, d2.children);
4250 b2.flags |= 4096;
4251 return b2;
4252 }
4253 function vj(a, b2, c2) {
4254 a.lanes |= b2;
4255 var d2 = a.alternate;
4256 null !== d2 && (d2.lanes |= b2);
4257 bh(a.return, b2, c2);
4258 }
4259 function wj(a, b2, c2, d2, e2) {
4260 var f2 = a.memoizedState;
4261 null === f2 ? a.memoizedState = { isBackwards: b2, rendering: null, renderingStartTime: 0, last: d2, tail: c2, tailMode: e2 } : (f2.isBackwards = b2, f2.rendering = null, f2.renderingStartTime = 0, f2.last = d2, f2.tail = c2, f2.tailMode = e2);
4262 }
4263 function xj(a, b2, c2) {
4264 var d2 = b2.pendingProps, e2 = d2.revealOrder, f2 = d2.tail;
4265 Xi(a, b2, d2.children, c2);
4266 d2 = L.current;
4267 if (0 !== (d2 & 2)) d2 = d2 & 1 | 2, b2.flags |= 128;
4268 else {
4269 if (null !== a && 0 !== (a.flags & 128)) a: for (a = b2.child; null !== a; ) {
4270 if (13 === a.tag) null !== a.memoizedState && vj(a, c2, b2);
4271 else if (19 === a.tag) vj(a, c2, b2);
4272 else if (null !== a.child) {
4273 a.child.return = a;
4274 a = a.child;
4275 continue;
4276 }
4277 if (a === b2) break a;
4278 for (; null === a.sibling; ) {
4279 if (null === a.return || a.return === b2) break a;
4280 a = a.return;
4281 }
4282 a.sibling.return = a.return;
4283 a = a.sibling;
4284 }
4285 d2 &= 1;
4286 }
4287 G(L, d2);
4288 if (0 === (b2.mode & 1)) b2.memoizedState = null;
4289 else switch (e2) {
4290 case "forwards":
4291 c2 = b2.child;
4292 for (e2 = null; null !== c2; ) a = c2.alternate, null !== a && null === Ch(a) && (e2 = c2), c2 = c2.sibling;
4293 c2 = e2;
4294 null === c2 ? (e2 = b2.child, b2.child = null) : (e2 = c2.sibling, c2.sibling = null);
4295 wj(b2, false, e2, c2, f2);
4296 break;
4297 case "backwards":
4298 c2 = null;
4299 e2 = b2.child;
4300 for (b2.child = null; null !== e2; ) {
4301 a = e2.alternate;
4302 if (null !== a && null === Ch(a)) {
4303 b2.child = e2;
4304 break;
4305 }
4306 a = e2.sibling;
4307 e2.sibling = c2;
4308 c2 = e2;
4309 e2 = a;
4310 }
4311 wj(b2, true, c2, null, f2);
4312 break;
4313 case "together":
4314 wj(b2, false, null, null, void 0);
4315 break;
4316 default:
4317 b2.memoizedState = null;
4318 }
4319 return b2.child;
4320 }
4321 function ij(a, b2) {
4322 0 === (b2.mode & 1) && null !== a && (a.alternate = null, b2.alternate = null, b2.flags |= 2);
4323 }
4324 function Zi(a, b2, c2) {
4325 null !== a && (b2.dependencies = a.dependencies);
4326 rh |= b2.lanes;
4327 if (0 === (c2 & b2.childLanes)) return null;
4328 if (null !== a && b2.child !== a.child) throw Error(p$1(153));
4329 if (null !== b2.child) {
4330 a = b2.child;
4331 c2 = Pg(a, a.pendingProps);
4332 b2.child = c2;
4333 for (c2.return = b2; null !== a.sibling; ) a = a.sibling, c2 = c2.sibling = Pg(a, a.pendingProps), c2.return = b2;
4334 c2.sibling = null;
4335 }
4336 return b2.child;
4337 }
4338 function yj(a, b2, c2) {
4339 switch (b2.tag) {
4340 case 3:
4341 kj(b2);
4342 Ig();
4343 break;
4344 case 5:
4345 Ah(b2);
4346 break;
4347 case 1:
4348 Zf(b2.type) && cg(b2);
4349 break;
4350 case 4:
4351 yh(b2, b2.stateNode.containerInfo);
4352 break;
4353 case 10:
4354 var d2 = b2.type._context, e2 = b2.memoizedProps.value;
4355 G(Wg, d2._currentValue);
4356 d2._currentValue = e2;
4357 break;
4358 case 13:
4359 d2 = b2.memoizedState;
4360 if (null !== d2) {
4361 if (null !== d2.dehydrated) return G(L, L.current & 1), b2.flags |= 128, null;
4362 if (0 !== (c2 & b2.child.childLanes)) return oj(a, b2, c2);
4363 G(L, L.current & 1);
4364 a = Zi(a, b2, c2);
4365 return null !== a ? a.sibling : null;
4366 }
4367 G(L, L.current & 1);
4368 break;
4369 case 19:
4370 d2 = 0 !== (c2 & b2.childLanes);
4371 if (0 !== (a.flags & 128)) {
4372 if (d2) return xj(a, b2, c2);
4373 b2.flags |= 128;
4374 }
4375 e2 = b2.memoizedState;
4376 null !== e2 && (e2.rendering = null, e2.tail = null, e2.lastEffect = null);
4377 G(L, L.current);
4378 if (d2) break;
4379 else return null;
4380 case 22:
4381 case 23:
4382 return b2.lanes = 0, dj(a, b2, c2);
4383 }
4384 return Zi(a, b2, c2);
4385 }
4386 var zj, Aj, Bj, Cj;
4387 zj = function(a, b2) {
4388 for (var c2 = b2.child; null !== c2; ) {
4389 if (5 === c2.tag || 6 === c2.tag) a.appendChild(c2.stateNode);
4390 else if (4 !== c2.tag && null !== c2.child) {
4391 c2.child.return = c2;
4392 c2 = c2.child;
4393 continue;
4394 }
4395 if (c2 === b2) break;
4396 for (; null === c2.sibling; ) {
4397 if (null === c2.return || c2.return === b2) return;
4398 c2 = c2.return;
4399 }
4400 c2.sibling.return = c2.return;
4401 c2 = c2.sibling;
4402 }
4403 };
4404 Aj = function() {
4405 };
4406 Bj = function(a, b2, c2, d2) {
4407 var e2 = a.memoizedProps;
4408 if (e2 !== d2) {
4409 a = b2.stateNode;
4410 xh(uh.current);
4411 var f2 = null;
4412 switch (c2) {
4413 case "input":
4414 e2 = Ya(a, e2);
4415 d2 = Ya(a, d2);
4416 f2 = [];
4417 break;
4418 case "select":
4419 e2 = A({}, e2, { value: void 0 });
4420 d2 = A({}, d2, { value: void 0 });
4421 f2 = [];
4422 break;
4423 case "textarea":
4424 e2 = gb(a, e2);
4425 d2 = gb(a, d2);
4426 f2 = [];
4427 break;
4428 default:
4429 "function" !== typeof e2.onClick && "function" === typeof d2.onClick && (a.onclick = Bf);
4430 }
4431 ub(c2, d2);
4432 var g2;
4433 c2 = null;
4434 for (l2 in e2) if (!d2.hasOwnProperty(l2) && e2.hasOwnProperty(l2) && null != e2[l2]) if ("style" === l2) {
4435 var h2 = e2[l2];
4436 for (g2 in h2) h2.hasOwnProperty(g2) && (c2 || (c2 = {}), c2[g2] = "");
4437 } else "dangerouslySetInnerHTML" !== l2 && "children" !== l2 && "suppressContentEditableWarning" !== l2 && "suppressHydrationWarning" !== l2 && "autoFocus" !== l2 && (ea.hasOwnProperty(l2) ? f2 || (f2 = []) : (f2 = f2 || []).push(l2, null));
4438 for (l2 in d2) {
4439 var k2 = d2[l2];
4440 h2 = null != e2 ? e2[l2] : void 0;
4441 if (d2.hasOwnProperty(l2) && k2 !== h2 && (null != k2 || null != h2)) if ("style" === l2) if (h2) {
4442 for (g2 in h2) !h2.hasOwnProperty(g2) || k2 && k2.hasOwnProperty(g2) || (c2 || (c2 = {}), c2[g2] = "");
4443 for (g2 in k2) k2.hasOwnProperty(g2) && h2[g2] !== k2[g2] && (c2 || (c2 = {}), c2[g2] = k2[g2]);
4444 } else c2 || (f2 || (f2 = []), f2.push(
4445 l2,
4446 c2
4447 )), c2 = k2;
4448 else "dangerouslySetInnerHTML" === l2 ? (k2 = k2 ? k2.__html : void 0, h2 = h2 ? h2.__html : void 0, null != k2 && h2 !== k2 && (f2 = f2 || []).push(l2, k2)) : "children" === l2 ? "string" !== typeof k2 && "number" !== typeof k2 || (f2 = f2 || []).push(l2, "" + k2) : "suppressContentEditableWarning" !== l2 && "suppressHydrationWarning" !== l2 && (ea.hasOwnProperty(l2) ? (null != k2 && "onScroll" === l2 && D("scroll", a), f2 || h2 === k2 || (f2 = [])) : (f2 = f2 || []).push(l2, k2));
4449 }
4450 c2 && (f2 = f2 || []).push("style", c2);
4451 var l2 = f2;
4452 if (b2.updateQueue = l2) b2.flags |= 4;
4453 }
4454 };
4455 Cj = function(a, b2, c2, d2) {
4456 c2 !== d2 && (b2.flags |= 4);
4457 };
4458 function Dj(a, b2) {
4459 if (!I) switch (a.tailMode) {
4460 case "hidden":
4461 b2 = a.tail;
4462 for (var c2 = null; null !== b2; ) null !== b2.alternate && (c2 = b2), b2 = b2.sibling;
4463 null === c2 ? a.tail = null : c2.sibling = null;
4464 break;
4465 case "collapsed":
4466 c2 = a.tail;
4467 for (var d2 = null; null !== c2; ) null !== c2.alternate && (d2 = c2), c2 = c2.sibling;
4468 null === d2 ? b2 || null === a.tail ? a.tail = null : a.tail.sibling = null : d2.sibling = null;
4469 }
4470 }
4471 function S(a) {
4472 var b2 = null !== a.alternate && a.alternate.child === a.child, c2 = 0, d2 = 0;
4473 if (b2) for (var e2 = a.child; null !== e2; ) c2 |= e2.lanes | e2.childLanes, d2 |= e2.subtreeFlags & 14680064, d2 |= e2.flags & 14680064, e2.return = a, e2 = e2.sibling;
4474 else for (e2 = a.child; null !== e2; ) c2 |= e2.lanes | e2.childLanes, d2 |= e2.subtreeFlags, d2 |= e2.flags, e2.return = a, e2 = e2.sibling;
4475 a.subtreeFlags |= d2;
4476 a.childLanes = c2;
4477 return b2;
4478 }
4479 function Ej(a, b2, c2) {
4480 var d2 = b2.pendingProps;
4481 wg(b2);
4482 switch (b2.tag) {
4483 case 2:
4484 case 16:
4485 case 15:
4486 case 0:
4487 case 11:
4488 case 7:
4489 case 8:
4490 case 12:
4491 case 9:
4492 case 14:
4493 return S(b2), null;
4494 case 1:
4495 return Zf(b2.type) && $f(), S(b2), null;
4496 case 3:
4497 d2 = b2.stateNode;
4498 zh();
4499 E(Wf);
4500 E(H);
4501 Eh();
4502 d2.pendingContext && (d2.context = d2.pendingContext, d2.pendingContext = null);
4503 if (null === a || null === a.child) Gg(b2) ? b2.flags |= 4 : null === a || a.memoizedState.isDehydrated && 0 === (b2.flags & 256) || (b2.flags |= 1024, null !== zg && (Fj(zg), zg = null));
4504 Aj(a, b2);
4505 S(b2);
4506 return null;
4507 case 5:
4508 Bh(b2);
4509 var e2 = xh(wh.current);
4510 c2 = b2.type;
4511 if (null !== a && null != b2.stateNode) Bj(a, b2, c2, d2, e2), a.ref !== b2.ref && (b2.flags |= 512, b2.flags |= 2097152);
4512 else {
4513 if (!d2) {
4514 if (null === b2.stateNode) throw Error(p$1(166));
4515 S(b2);
4516 return null;
4517 }
4518 a = xh(uh.current);
4519 if (Gg(b2)) {
4520 d2 = b2.stateNode;
4521 c2 = b2.type;
4522 var f2 = b2.memoizedProps;
4523 d2[Of] = b2;
4524 d2[Pf] = f2;
4525 a = 0 !== (b2.mode & 1);
4526 switch (c2) {
4527 case "dialog":
4528 D("cancel", d2);
4529 D("close", d2);
4530 break;
4531 case "iframe":
4532 case "object":
4533 case "embed":
4534 D("load", d2);
4535 break;
4536 case "video":
4537 case "audio":
4538 for (e2 = 0; e2 < lf.length; e2++) D(lf[e2], d2);
4539 break;
4540 case "source":
4541 D("error", d2);
4542 break;
4543 case "img":
4544 case "image":
4545 case "link":
4546 D(
4547 "error",
4548 d2
4549 );
4550 D("load", d2);
4551 break;
4552 case "details":
4553 D("toggle", d2);
4554 break;
4555 case "input":
4556 Za(d2, f2);
4557 D("invalid", d2);
4558 break;
4559 case "select":
4560 d2._wrapperState = { wasMultiple: !!f2.multiple };
4561 D("invalid", d2);
4562 break;
4563 case "textarea":
4564 hb(d2, f2), D("invalid", d2);
4565 }
4566 ub(c2, f2);
4567 e2 = null;
4568 for (var g2 in f2) if (f2.hasOwnProperty(g2)) {
4569 var h2 = f2[g2];
4570 "children" === g2 ? "string" === typeof h2 ? d2.textContent !== h2 && (true !== f2.suppressHydrationWarning && Af(d2.textContent, h2, a), e2 = ["children", h2]) : "number" === typeof h2 && d2.textContent !== "" + h2 && (true !== f2.suppressHydrationWarning && Af(
4571 d2.textContent,
4572 h2,
4573 a
4574 ), e2 = ["children", "" + h2]) : ea.hasOwnProperty(g2) && null != h2 && "onScroll" === g2 && D("scroll", d2);
4575 }
4576 switch (c2) {
4577 case "input":
4578 Va(d2);
4579 db(d2, f2, true);
4580 break;
4581 case "textarea":
4582 Va(d2);
4583 jb(d2);
4584 break;
4585 case "select":
4586 case "option":
4587 break;
4588 default:
4589 "function" === typeof f2.onClick && (d2.onclick = Bf);
4590 }
4591 d2 = e2;
4592 b2.updateQueue = d2;
4593 null !== d2 && (b2.flags |= 4);
4594 } else {
4595 g2 = 9 === e2.nodeType ? e2 : e2.ownerDocument;
4596 "http://www.w3.org/1999/xhtml" === a && (a = kb(c2));
4597 "http://www.w3.org/1999/xhtml" === a ? "script" === c2 ? (a = g2.createElement("div"), a.innerHTML = "<script><\/script>", a = a.removeChild(a.firstChild)) : "string" === typeof d2.is ? a = g2.createElement(c2, { is: d2.is }) : (a = g2.createElement(c2), "select" === c2 && (g2 = a, d2.multiple ? g2.multiple = true : d2.size && (g2.size = d2.size))) : a = g2.createElementNS(a, c2);
4598 a[Of] = b2;
4599 a[Pf] = d2;
4600 zj(a, b2, false, false);
4601 b2.stateNode = a;
4602 a: {
4603 g2 = vb(c2, d2);
4604 switch (c2) {
4605 case "dialog":
4606 D("cancel", a);
4607 D("close", a);
4608 e2 = d2;
4609 break;
4610 case "iframe":
4611 case "object":
4612 case "embed":
4613 D("load", a);
4614 e2 = d2;
4615 break;
4616 case "video":
4617 case "audio":
4618 for (e2 = 0; e2 < lf.length; e2++) D(lf[e2], a);
4619 e2 = d2;
4620 break;
4621 case "source":
4622 D("error", a);
4623 e2 = d2;
4624 break;
4625 case "img":
4626 case "image":
4627 case "link":
4628 D(
4629 "error",
4630 a
4631 );
4632 D("load", a);
4633 e2 = d2;
4634 break;
4635 case "details":
4636 D("toggle", a);
4637 e2 = d2;
4638 break;
4639 case "input":
4640 Za(a, d2);
4641 e2 = Ya(a, d2);
4642 D("invalid", a);
4643 break;
4644 case "option":
4645 e2 = d2;
4646 break;
4647 case "select":
4648 a._wrapperState = { wasMultiple: !!d2.multiple };
4649 e2 = A({}, d2, { value: void 0 });
4650 D("invalid", a);
4651 break;
4652 case "textarea":
4653 hb(a, d2);
4654 e2 = gb(a, d2);
4655 D("invalid", a);
4656 break;
4657 default:
4658 e2 = d2;
4659 }
4660 ub(c2, e2);
4661 h2 = e2;
4662 for (f2 in h2) if (h2.hasOwnProperty(f2)) {
4663 var k2 = h2[f2];
4664 "style" === f2 ? sb(a, k2) : "dangerouslySetInnerHTML" === f2 ? (k2 = k2 ? k2.__html : void 0, null != k2 && nb(a, k2)) : "children" === f2 ? "string" === typeof k2 ? ("textarea" !== c2 || "" !== k2) && ob(a, k2) : "number" === typeof k2 && ob(a, "" + k2) : "suppressContentEditableWarning" !== f2 && "suppressHydrationWarning" !== f2 && "autoFocus" !== f2 && (ea.hasOwnProperty(f2) ? null != k2 && "onScroll" === f2 && D("scroll", a) : null != k2 && ta(a, f2, k2, g2));
4665 }
4666 switch (c2) {
4667 case "input":
4668 Va(a);
4669 db(a, d2, false);
4670 break;
4671 case "textarea":
4672 Va(a);
4673 jb(a);
4674 break;
4675 case "option":
4676 null != d2.value && a.setAttribute("value", "" + Sa(d2.value));
4677 break;
4678 case "select":
4679 a.multiple = !!d2.multiple;
4680 f2 = d2.value;
4681 null != f2 ? fb(a, !!d2.multiple, f2, false) : null != d2.defaultValue && fb(
4682 a,
4683 !!d2.multiple,
4684 d2.defaultValue,
4685 true
4686 );
4687 break;
4688 default:
4689 "function" === typeof e2.onClick && (a.onclick = Bf);
4690 }
4691 switch (c2) {
4692 case "button":
4693 case "input":
4694 case "select":
4695 case "textarea":
4696 d2 = !!d2.autoFocus;
4697 break a;
4698 case "img":
4699 d2 = true;
4700 break a;
4701 default:
4702 d2 = false;
4703 }
4704 }
4705 d2 && (b2.flags |= 4);
4706 }
4707 null !== b2.ref && (b2.flags |= 512, b2.flags |= 2097152);
4708 }
4709 S(b2);
4710 return null;
4711 case 6:
4712 if (a && null != b2.stateNode) Cj(a, b2, a.memoizedProps, d2);
4713 else {
4714 if ("string" !== typeof d2 && null === b2.stateNode) throw Error(p$1(166));
4715 c2 = xh(wh.current);
4716 xh(uh.current);
4717 if (Gg(b2)) {
4718 d2 = b2.stateNode;
4719 c2 = b2.memoizedProps;
4720 d2[Of] = b2;
4721 if (f2 = d2.nodeValue !== c2) {
4722 if (a = xg, null !== a) switch (a.tag) {
4723 case 3:
4724 Af(d2.nodeValue, c2, 0 !== (a.mode & 1));
4725 break;
4726 case 5:
4727 true !== a.memoizedProps.suppressHydrationWarning && Af(d2.nodeValue, c2, 0 !== (a.mode & 1));
4728 }
4729 }
4730 f2 && (b2.flags |= 4);
4731 } else d2 = (9 === c2.nodeType ? c2 : c2.ownerDocument).createTextNode(d2), d2[Of] = b2, b2.stateNode = d2;
4732 }
4733 S(b2);
4734 return null;
4735 case 13:
4736 E(L);
4737 d2 = b2.memoizedState;
4738 if (null === a || null !== a.memoizedState && null !== a.memoizedState.dehydrated) {
4739 if (I && null !== yg && 0 !== (b2.mode & 1) && 0 === (b2.flags & 128)) Hg(), Ig(), b2.flags |= 98560, f2 = false;
4740 else if (f2 = Gg(b2), null !== d2 && null !== d2.dehydrated) {
4741 if (null === a) {
4742 if (!f2) throw Error(p$1(318));
4743 f2 = b2.memoizedState;
4744 f2 = null !== f2 ? f2.dehydrated : null;
4745 if (!f2) throw Error(p$1(317));
4746 f2[Of] = b2;
4747 } else Ig(), 0 === (b2.flags & 128) && (b2.memoizedState = null), b2.flags |= 4;
4748 S(b2);
4749 f2 = false;
4750 } else null !== zg && (Fj(zg), zg = null), f2 = true;
4751 if (!f2) return b2.flags & 65536 ? b2 : null;
4752 }
4753 if (0 !== (b2.flags & 128)) return b2.lanes = c2, b2;
4754 d2 = null !== d2;
4755 d2 !== (null !== a && null !== a.memoizedState) && d2 && (b2.child.flags |= 8192, 0 !== (b2.mode & 1) && (null === a || 0 !== (L.current & 1) ? 0 === T && (T = 3) : tj()));
4756 null !== b2.updateQueue && (b2.flags |= 4);
4757 S(b2);
4758 return null;
4759 case 4:
4760 return zh(), Aj(a, b2), null === a && sf(b2.stateNode.containerInfo), S(b2), null;
4761 case 10:
4762 return ah(b2.type._context), S(b2), null;
4763 case 17:
4764 return Zf(b2.type) && $f(), S(b2), null;
4765 case 19:
4766 E(L);
4767 f2 = b2.memoizedState;
4768 if (null === f2) return S(b2), null;
4769 d2 = 0 !== (b2.flags & 128);
4770 g2 = f2.rendering;
4771 if (null === g2) if (d2) Dj(f2, false);
4772 else {
4773 if (0 !== T || null !== a && 0 !== (a.flags & 128)) for (a = b2.child; null !== a; ) {
4774 g2 = Ch(a);
4775 if (null !== g2) {
4776 b2.flags |= 128;
4777 Dj(f2, false);
4778 d2 = g2.updateQueue;
4779 null !== d2 && (b2.updateQueue = d2, b2.flags |= 4);
4780 b2.subtreeFlags = 0;
4781 d2 = c2;
4782 for (c2 = b2.child; null !== c2; ) f2 = c2, a = d2, f2.flags &= 14680066, g2 = f2.alternate, null === g2 ? (f2.childLanes = 0, f2.lanes = a, f2.child = null, f2.subtreeFlags = 0, f2.memoizedProps = null, f2.memoizedState = null, f2.updateQueue = null, f2.dependencies = null, f2.stateNode = null) : (f2.childLanes = g2.childLanes, f2.lanes = g2.lanes, f2.child = g2.child, f2.subtreeFlags = 0, f2.deletions = null, f2.memoizedProps = g2.memoizedProps, f2.memoizedState = g2.memoizedState, f2.updateQueue = g2.updateQueue, f2.type = g2.type, a = g2.dependencies, f2.dependencies = null === a ? null : { lanes: a.lanes, firstContext: a.firstContext }), c2 = c2.sibling;
4783 G(L, L.current & 1 | 2);
4784 return b2.child;
4785 }
4786 a = a.sibling;
4787 }
4788 null !== f2.tail && B() > Gj && (b2.flags |= 128, d2 = true, Dj(f2, false), b2.lanes = 4194304);
4789 }
4790 else {
4791 if (!d2) if (a = Ch(g2), null !== a) {
4792 if (b2.flags |= 128, d2 = true, c2 = a.updateQueue, null !== c2 && (b2.updateQueue = c2, b2.flags |= 4), Dj(f2, true), null === f2.tail && "hidden" === f2.tailMode && !g2.alternate && !I) return S(b2), null;
4793 } else 2 * B() - f2.renderingStartTime > Gj && 1073741824 !== c2 && (b2.flags |= 128, d2 = true, Dj(f2, false), b2.lanes = 4194304);
4794 f2.isBackwards ? (g2.sibling = b2.child, b2.child = g2) : (c2 = f2.last, null !== c2 ? c2.sibling = g2 : b2.child = g2, f2.last = g2);
4795 }
4796 if (null !== f2.tail) return b2 = f2.tail, f2.rendering = b2, f2.tail = b2.sibling, f2.renderingStartTime = B(), b2.sibling = null, c2 = L.current, G(L, d2 ? c2 & 1 | 2 : c2 & 1), b2;
4797 S(b2);
4798 return null;
4799 case 22:
4800 case 23:
4801 return Hj(), d2 = null !== b2.memoizedState, null !== a && null !== a.memoizedState !== d2 && (b2.flags |= 8192), d2 && 0 !== (b2.mode & 1) ? 0 !== (fj & 1073741824) && (S(b2), b2.subtreeFlags & 6 && (b2.flags |= 8192)) : S(b2), null;
4802 case 24:
4803 return null;
4804 case 25:
4805 return null;
4806 }
4807 throw Error(p$1(156, b2.tag));
4808 }
4809 function Ij(a, b2) {
4810 wg(b2);
4811 switch (b2.tag) {
4812 case 1:
4813 return Zf(b2.type) && $f(), a = b2.flags, a & 65536 ? (b2.flags = a & -65537 | 128, b2) : null;
4814 case 3:
4815 return zh(), E(Wf), E(H), Eh(), a = b2.flags, 0 !== (a & 65536) && 0 === (a & 128) ? (b2.flags = a & -65537 | 128, b2) : null;
4816 case 5:
4817 return Bh(b2), null;
4818 case 13:
4819 E(L);
4820 a = b2.memoizedState;
4821 if (null !== a && null !== a.dehydrated) {
4822 if (null === b2.alternate) throw Error(p$1(340));
4823 Ig();
4824 }
4825 a = b2.flags;
4826 return a & 65536 ? (b2.flags = a & -65537 | 128, b2) : null;
4827 case 19:
4828 return E(L), null;
4829 case 4:
4830 return zh(), null;
4831 case 10:
4832 return ah(b2.type._context), null;
4833 case 22:
4834 case 23:
4835 return Hj(), null;
4836 case 24:
4837 return null;
4838 default:
4839 return null;
4840 }
4841 }
4842 var Jj = false, U = false, Kj = "function" === typeof WeakSet ? WeakSet : Set, V = null;
4843 function Lj(a, b2) {
4844 var c2 = a.ref;
4845 if (null !== c2) if ("function" === typeof c2) try {
4846 c2(null);
4847 } catch (d2) {
4848 W(a, b2, d2);
4849 }
4850 else c2.current = null;
4851 }
4852 function Mj(a, b2, c2) {
4853 try {
4854 c2();
4855 } catch (d2) {
4856 W(a, b2, d2);
4857 }
4858 }
4859 var Nj = false;
4860 function Oj(a, b2) {
4861 Cf = dd;
4862 a = Me();
4863 if (Ne(a)) {
4864 if ("selectionStart" in a) var c2 = { start: a.selectionStart, end: a.selectionEnd };
4865 else a: {
4866 c2 = (c2 = a.ownerDocument) && c2.defaultView || window;
4867 var d2 = c2.getSelection && c2.getSelection();
4868 if (d2 && 0 !== d2.rangeCount) {
4869 c2 = d2.anchorNode;
4870 var e2 = d2.anchorOffset, f2 = d2.focusNode;
4871 d2 = d2.focusOffset;
4872 try {
4873 c2.nodeType, f2.nodeType;
4874 } catch (F2) {
4875 c2 = null;
4876 break a;
4877 }
4878 var g2 = 0, h2 = -1, k2 = -1, l2 = 0, m2 = 0, q2 = a, r2 = null;
4879 b: for (; ; ) {
4880 for (var y2; ; ) {
4881 q2 !== c2 || 0 !== e2 && 3 !== q2.nodeType || (h2 = g2 + e2);
4882 q2 !== f2 || 0 !== d2 && 3 !== q2.nodeType || (k2 = g2 + d2);
4883 3 === q2.nodeType && (g2 += q2.nodeValue.length);
4884 if (null === (y2 = q2.firstChild)) break;
4885 r2 = q2;
4886 q2 = y2;
4887 }
4888 for (; ; ) {
4889 if (q2 === a) break b;
4890 r2 === c2 && ++l2 === e2 && (h2 = g2);
4891 r2 === f2 && ++m2 === d2 && (k2 = g2);
4892 if (null !== (y2 = q2.nextSibling)) break;
4893 q2 = r2;
4894 r2 = q2.parentNode;
4895 }
4896 q2 = y2;
4897 }
4898 c2 = -1 === h2 || -1 === k2 ? null : { start: h2, end: k2 };
4899 } else c2 = null;
4900 }
4901 c2 = c2 || { start: 0, end: 0 };
4902 } else c2 = null;
4903 Df = { focusedElem: a, selectionRange: c2 };
4904 dd = false;
4905 for (V = b2; null !== V; ) if (b2 = V, a = b2.child, 0 !== (b2.subtreeFlags & 1028) && null !== a) a.return = b2, V = a;
4906 else for (; null !== V; ) {
4907 b2 = V;
4908 try {
4909 var n2 = b2.alternate;
4910 if (0 !== (b2.flags & 1024)) switch (b2.tag) {
4911 case 0:
4912 case 11:
4913 case 15:
4914 break;
4915 case 1:
4916 if (null !== n2) {
4917 var t2 = n2.memoizedProps, J2 = n2.memoizedState, x2 = b2.stateNode, w2 = x2.getSnapshotBeforeUpdate(b2.elementType === b2.type ? t2 : Ci(b2.type, t2), J2);
4918 x2.__reactInternalSnapshotBeforeUpdate = w2;
4919 }
4920 break;
4921 case 3:
4922 var u2 = b2.stateNode.containerInfo;
4923 1 === u2.nodeType ? u2.textContent = "" : 9 === u2.nodeType && u2.documentElement && u2.removeChild(u2.documentElement);
4924 break;
4925 case 5:
4926 case 6:
4927 case 4:
4928 case 17:
4929 break;
4930 default:
4931 throw Error(p$1(163));
4932 }
4933 } catch (F2) {
4934 W(b2, b2.return, F2);
4935 }
4936 a = b2.sibling;
4937 if (null !== a) {
4938 a.return = b2.return;
4939 V = a;
4940 break;
4941 }
4942 V = b2.return;
4943 }
4944 n2 = Nj;
4945 Nj = false;
4946 return n2;
4947 }
4948 function Pj(a, b2, c2) {
4949 var d2 = b2.updateQueue;
4950 d2 = null !== d2 ? d2.lastEffect : null;
4951 if (null !== d2) {
4952 var e2 = d2 = d2.next;
4953 do {
4954 if ((e2.tag & a) === a) {
4955 var f2 = e2.destroy;
4956 e2.destroy = void 0;
4957 void 0 !== f2 && Mj(b2, c2, f2);
4958 }
4959 e2 = e2.next;
4960 } while (e2 !== d2);
4961 }
4962 }
4963 function Qj(a, b2) {
4964 b2 = b2.updateQueue;
4965 b2 = null !== b2 ? b2.lastEffect : null;
4966 if (null !== b2) {
4967 var c2 = b2 = b2.next;
4968 do {
4969 if ((c2.tag & a) === a) {
4970 var d2 = c2.create;
4971 c2.destroy = d2();
4972 }
4973 c2 = c2.next;
4974 } while (c2 !== b2);
4975 }
4976 }
4977 function Rj(a) {
4978 var b2 = a.ref;
4979 if (null !== b2) {
4980 var c2 = a.stateNode;
4981 switch (a.tag) {
4982 case 5:
4983 a = c2;
4984 break;
4985 default:
4986 a = c2;
4987 }
4988 "function" === typeof b2 ? b2(a) : b2.current = a;
4989 }
4990 }
4991 function Sj(a) {
4992 var b2 = a.alternate;
4993 null !== b2 && (a.alternate = null, Sj(b2));
4994 a.child = null;
4995 a.deletions = null;
4996 a.sibling = null;
4997 5 === a.tag && (b2 = a.stateNode, null !== b2 && (delete b2[Of], delete b2[Pf], delete b2[of], delete b2[Qf], delete b2[Rf]));
4998 a.stateNode = null;
4999 a.return = null;
5000 a.dependencies = null;
5001 a.memoizedProps = null;
5002 a.memoizedState = null;
5003 a.pendingProps = null;
5004 a.stateNode = null;
5005 a.updateQueue = null;
5006 }
5007 function Tj(a) {
5008 return 5 === a.tag || 3 === a.tag || 4 === a.tag;
5009 }
5010 function Uj(a) {
5011 a: for (; ; ) {
5012 for (; null === a.sibling; ) {
5013 if (null === a.return || Tj(a.return)) return null;
5014 a = a.return;
5015 }
5016 a.sibling.return = a.return;
5017 for (a = a.sibling; 5 !== a.tag && 6 !== a.tag && 18 !== a.tag; ) {
5018 if (a.flags & 2) continue a;
5019 if (null === a.child || 4 === a.tag) continue a;
5020 else a.child.return = a, a = a.child;
5021 }
5022 if (!(a.flags & 2)) return a.stateNode;
5023 }
5024 }
5025 function Vj(a, b2, c2) {
5026 var d2 = a.tag;
5027 if (5 === d2 || 6 === d2) a = a.stateNode, b2 ? 8 === c2.nodeType ? c2.parentNode.insertBefore(a, b2) : c2.insertBefore(a, b2) : (8 === c2.nodeType ? (b2 = c2.parentNode, b2.insertBefore(a, c2)) : (b2 = c2, b2.appendChild(a)), c2 = c2._reactRootContainer, null !== c2 && void 0 !== c2 || null !== b2.onclick || (b2.onclick = Bf));
5028 else if (4 !== d2 && (a = a.child, null !== a)) for (Vj(a, b2, c2), a = a.sibling; null !== a; ) Vj(a, b2, c2), a = a.sibling;
5029 }
5030 function Wj(a, b2, c2) {
5031 var d2 = a.tag;
5032 if (5 === d2 || 6 === d2) a = a.stateNode, b2 ? c2.insertBefore(a, b2) : c2.appendChild(a);
5033 else if (4 !== d2 && (a = a.child, null !== a)) for (Wj(a, b2, c2), a = a.sibling; null !== a; ) Wj(a, b2, c2), a = a.sibling;
5034 }
5035 var X$1 = null, Xj = false;
5036 function Yj(a, b2, c2) {
5037 for (c2 = c2.child; null !== c2; ) Zj(a, b2, c2), c2 = c2.sibling;
5038 }
5039 function Zj(a, b2, c2) {
5040 if (lc && "function" === typeof lc.onCommitFiberUnmount) try {
5041 lc.onCommitFiberUnmount(kc, c2);
5042 } catch (h2) {
5043 }
5044 switch (c2.tag) {
5045 case 5:
5046 U || Lj(c2, b2);
5047 case 6:
5048 var d2 = X$1, e2 = Xj;
5049 X$1 = null;
5050 Yj(a, b2, c2);
5051 X$1 = d2;
5052 Xj = e2;
5053 null !== X$1 && (Xj ? (a = X$1, c2 = c2.stateNode, 8 === a.nodeType ? a.parentNode.removeChild(c2) : a.removeChild(c2)) : X$1.removeChild(c2.stateNode));
5054 break;
5055 case 18:
5056 null !== X$1 && (Xj ? (a = X$1, c2 = c2.stateNode, 8 === a.nodeType ? Kf(a.parentNode, c2) : 1 === a.nodeType && Kf(a, c2), bd(a)) : Kf(X$1, c2.stateNode));
5057 break;
5058 case 4:
5059 d2 = X$1;
5060 e2 = Xj;
5061 X$1 = c2.stateNode.containerInfo;
5062 Xj = true;
5063 Yj(a, b2, c2);
5064 X$1 = d2;
5065 Xj = e2;
5066 break;
5067 case 0:
5068 case 11:
5069 case 14:
5070 case 15:
5071 if (!U && (d2 = c2.updateQueue, null !== d2 && (d2 = d2.lastEffect, null !== d2))) {
5072 e2 = d2 = d2.next;
5073 do {
5074 var f2 = e2, g2 = f2.destroy;
5075 f2 = f2.tag;
5076 void 0 !== g2 && (0 !== (f2 & 2) ? Mj(c2, b2, g2) : 0 !== (f2 & 4) && Mj(c2, b2, g2));
5077 e2 = e2.next;
5078 } while (e2 !== d2);
5079 }
5080 Yj(a, b2, c2);
5081 break;
5082 case 1:
5083 if (!U && (Lj(c2, b2), d2 = c2.stateNode, "function" === typeof d2.componentWillUnmount)) try {
5084 d2.props = c2.memoizedProps, d2.state = c2.memoizedState, d2.componentWillUnmount();
5085 } catch (h2) {
5086 W(c2, b2, h2);
5087 }
5088 Yj(a, b2, c2);
5089 break;
5090 case 21:
5091 Yj(a, b2, c2);
5092 break;
5093 case 22:
5094 c2.mode & 1 ? (U = (d2 = U) || null !== c2.memoizedState, Yj(a, b2, c2), U = d2) : Yj(a, b2, c2);
5095 break;
5096 default:
5097 Yj(a, b2, c2);
5098 }
5099 }
5100 function ak(a) {
5101 var b2 = a.updateQueue;
5102 if (null !== b2) {
5103 a.updateQueue = null;
5104 var c2 = a.stateNode;
5105 null === c2 && (c2 = a.stateNode = new Kj());
5106 b2.forEach(function(b3) {
5107 var d2 = bk.bind(null, a, b3);
5108 c2.has(b3) || (c2.add(b3), b3.then(d2, d2));
5109 });
5110 }
5111 }
5112 function ck(a, b2) {
5113 var c2 = b2.deletions;
5114 if (null !== c2) for (var d2 = 0; d2 < c2.length; d2++) {
5115 var e2 = c2[d2];
5116 try {
5117 var f2 = a, g2 = b2, h2 = g2;
5118 a: for (; null !== h2; ) {
5119 switch (h2.tag) {
5120 case 5:
5121 X$1 = h2.stateNode;
5122 Xj = false;
5123 break a;
5124 case 3:
5125 X$1 = h2.stateNode.containerInfo;
5126 Xj = true;
5127 break a;
5128 case 4:
5129 X$1 = h2.stateNode.containerInfo;
5130 Xj = true;
5131 break a;
5132 }
5133 h2 = h2.return;
5134 }
5135 if (null === X$1) throw Error(p$1(160));
5136 Zj(f2, g2, e2);
5137 X$1 = null;
5138 Xj = false;
5139 var k2 = e2.alternate;
5140 null !== k2 && (k2.return = null);
5141 e2.return = null;
5142 } catch (l2) {
5143 W(e2, b2, l2);
5144 }
5145 }
5146 if (b2.subtreeFlags & 12854) for (b2 = b2.child; null !== b2; ) dk(b2, a), b2 = b2.sibling;
5147 }
5148 function dk(a, b2) {
5149 var c2 = a.alternate, d2 = a.flags;
5150 switch (a.tag) {
5151 case 0:
5152 case 11:
5153 case 14:
5154 case 15:
5155 ck(b2, a);
5156 ek(a);
5157 if (d2 & 4) {
5158 try {
5159 Pj(3, a, a.return), Qj(3, a);
5160 } catch (t2) {
5161 W(a, a.return, t2);
5162 }
5163 try {
5164 Pj(5, a, a.return);
5165 } catch (t2) {
5166 W(a, a.return, t2);
5167 }
5168 }
5169 break;
5170 case 1:
5171 ck(b2, a);
5172 ek(a);
5173 d2 & 512 && null !== c2 && Lj(c2, c2.return);
5174 break;
5175 case 5:
5176 ck(b2, a);
5177 ek(a);
5178 d2 & 512 && null !== c2 && Lj(c2, c2.return);
5179 if (a.flags & 32) {
5180 var e2 = a.stateNode;
5181 try {
5182 ob(e2, "");
5183 } catch (t2) {
5184 W(a, a.return, t2);
5185 }
5186 }
5187 if (d2 & 4 && (e2 = a.stateNode, null != e2)) {
5188 var f2 = a.memoizedProps, g2 = null !== c2 ? c2.memoizedProps : f2, h2 = a.type, k2 = a.updateQueue;
5189 a.updateQueue = null;
5190 if (null !== k2) try {
5191 "input" === h2 && "radio" === f2.type && null != f2.name && ab(e2, f2);
5192 vb(h2, g2);
5193 var l2 = vb(h2, f2);
5194 for (g2 = 0; g2 < k2.length; g2 += 2) {
5195 var m2 = k2[g2], q2 = k2[g2 + 1];
5196 "style" === m2 ? sb(e2, q2) : "dangerouslySetInnerHTML" === m2 ? nb(e2, q2) : "children" === m2 ? ob(e2, q2) : ta(e2, m2, q2, l2);
5197 }
5198 switch (h2) {
5199 case "input":
5200 bb(e2, f2);
5201 break;
5202 case "textarea":
5203 ib(e2, f2);
5204 break;
5205 case "select":
5206 var r2 = e2._wrapperState.wasMultiple;
5207 e2._wrapperState.wasMultiple = !!f2.multiple;
5208 var y2 = f2.value;
5209 null != y2 ? fb(e2, !!f2.multiple, y2, false) : r2 !== !!f2.multiple && (null != f2.defaultValue ? fb(
5210 e2,
5211 !!f2.multiple,
5212 f2.defaultValue,
5213 true
5214 ) : fb(e2, !!f2.multiple, f2.multiple ? [] : "", false));
5215 }
5216 e2[Pf] = f2;
5217 } catch (t2) {
5218 W(a, a.return, t2);
5219 }
5220 }
5221 break;
5222 case 6:
5223 ck(b2, a);
5224 ek(a);
5225 if (d2 & 4) {
5226 if (null === a.stateNode) throw Error(p$1(162));
5227 e2 = a.stateNode;
5228 f2 = a.memoizedProps;
5229 try {
5230 e2.nodeValue = f2;
5231 } catch (t2) {
5232 W(a, a.return, t2);
5233 }
5234 }
5235 break;
5236 case 3:
5237 ck(b2, a);
5238 ek(a);
5239 if (d2 & 4 && null !== c2 && c2.memoizedState.isDehydrated) try {
5240 bd(b2.containerInfo);
5241 } catch (t2) {
5242 W(a, a.return, t2);
5243 }
5244 break;
5245 case 4:
5246 ck(b2, a);
5247 ek(a);
5248 break;
5249 case 13:
5250 ck(b2, a);
5251 ek(a);
5252 e2 = a.child;
5253 e2.flags & 8192 && (f2 = null !== e2.memoizedState, e2.stateNode.isHidden = f2, !f2 || null !== e2.alternate && null !== e2.alternate.memoizedState || (fk = B()));
5254 d2 & 4 && ak(a);
5255 break;
5256 case 22:
5257 m2 = null !== c2 && null !== c2.memoizedState;
5258 a.mode & 1 ? (U = (l2 = U) || m2, ck(b2, a), U = l2) : ck(b2, a);
5259 ek(a);
5260 if (d2 & 8192) {
5261 l2 = null !== a.memoizedState;
5262 if ((a.stateNode.isHidden = l2) && !m2 && 0 !== (a.mode & 1)) for (V = a, m2 = a.child; null !== m2; ) {
5263 for (q2 = V = m2; null !== V; ) {
5264 r2 = V;
5265 y2 = r2.child;
5266 switch (r2.tag) {
5267 case 0:
5268 case 11:
5269 case 14:
5270 case 15:
5271 Pj(4, r2, r2.return);
5272 break;
5273 case 1:
5274 Lj(r2, r2.return);
5275 var n2 = r2.stateNode;
5276 if ("function" === typeof n2.componentWillUnmount) {
5277 d2 = r2;
5278 c2 = r2.return;
5279 try {
5280 b2 = d2, n2.props = b2.memoizedProps, n2.state = b2.memoizedState, n2.componentWillUnmount();
5281 } catch (t2) {
5282 W(d2, c2, t2);
5283 }
5284 }
5285 break;
5286 case 5:
5287 Lj(r2, r2.return);
5288 break;
5289 case 22:
5290 if (null !== r2.memoizedState) {
5291 gk(q2);
5292 continue;
5293 }
5294 }
5295 null !== y2 ? (y2.return = r2, V = y2) : gk(q2);
5296 }
5297 m2 = m2.sibling;
5298 }
5299 a: for (m2 = null, q2 = a; ; ) {
5300 if (5 === q2.tag) {
5301 if (null === m2) {
5302 m2 = q2;
5303 try {
5304 e2 = q2.stateNode, l2 ? (f2 = e2.style, "function" === typeof f2.setProperty ? f2.setProperty("display", "none", "important") : f2.display = "none") : (h2 = q2.stateNode, k2 = q2.memoizedProps.style, g2 = void 0 !== k2 && null !== k2 && k2.hasOwnProperty("display") ? k2.display : null, h2.style.display = rb("display", g2));
5305 } catch (t2) {
5306 W(a, a.return, t2);
5307 }
5308 }
5309 } else if (6 === q2.tag) {
5310 if (null === m2) try {
5311 q2.stateNode.nodeValue = l2 ? "" : q2.memoizedProps;
5312 } catch (t2) {
5313 W(a, a.return, t2);
5314 }
5315 } else if ((22 !== q2.tag && 23 !== q2.tag || null === q2.memoizedState || q2 === a) && null !== q2.child) {
5316 q2.child.return = q2;
5317 q2 = q2.child;
5318 continue;
5319 }
5320 if (q2 === a) break a;
5321 for (; null === q2.sibling; ) {
5322 if (null === q2.return || q2.return === a) break a;
5323 m2 === q2 && (m2 = null);
5324 q2 = q2.return;
5325 }
5326 m2 === q2 && (m2 = null);
5327 q2.sibling.return = q2.return;
5328 q2 = q2.sibling;
5329 }
5330 }
5331 break;
5332 case 19:
5333 ck(b2, a);
5334 ek(a);
5335 d2 & 4 && ak(a);
5336 break;
5337 case 21:
5338 break;
5339 default:
5340 ck(
5341 b2,
5342 a
5343 ), ek(a);
5344 }
5345 }
5346 function ek(a) {
5347 var b2 = a.flags;
5348 if (b2 & 2) {
5349 try {
5350 a: {
5351 for (var c2 = a.return; null !== c2; ) {
5352 if (Tj(c2)) {
5353 var d2 = c2;
5354 break a;
5355 }
5356 c2 = c2.return;
5357 }
5358 throw Error(p$1(160));
5359 }
5360 switch (d2.tag) {
5361 case 5:
5362 var e2 = d2.stateNode;
5363 d2.flags & 32 && (ob(e2, ""), d2.flags &= -33);
5364 var f2 = Uj(a);
5365 Wj(a, f2, e2);
5366 break;
5367 case 3:
5368 case 4:
5369 var g2 = d2.stateNode.containerInfo, h2 = Uj(a);
5370 Vj(a, h2, g2);
5371 break;
5372 default:
5373 throw Error(p$1(161));
5374 }
5375 } catch (k2) {
5376 W(a, a.return, k2);
5377 }
5378 a.flags &= -3;
5379 }
5380 b2 & 4096 && (a.flags &= -4097);
5381 }
5382 function hk(a, b2, c2) {
5383 V = a;
5384 ik(a);
5385 }
5386 function ik(a, b2, c2) {
5387 for (var d2 = 0 !== (a.mode & 1); null !== V; ) {
5388 var e2 = V, f2 = e2.child;
5389 if (22 === e2.tag && d2) {
5390 var g2 = null !== e2.memoizedState || Jj;
5391 if (!g2) {
5392 var h2 = e2.alternate, k2 = null !== h2 && null !== h2.memoizedState || U;
5393 h2 = Jj;
5394 var l2 = U;
5395 Jj = g2;
5396 if ((U = k2) && !l2) for (V = e2; null !== V; ) g2 = V, k2 = g2.child, 22 === g2.tag && null !== g2.memoizedState ? jk(e2) : null !== k2 ? (k2.return = g2, V = k2) : jk(e2);
5397 for (; null !== f2; ) V = f2, ik(f2), f2 = f2.sibling;
5398 V = e2;
5399 Jj = h2;
5400 U = l2;
5401 }
5402 kk(a);
5403 } else 0 !== (e2.subtreeFlags & 8772) && null !== f2 ? (f2.return = e2, V = f2) : kk(a);
5404 }
5405 }
5406 function kk(a) {
5407 for (; null !== V; ) {
5408 var b2 = V;
5409 if (0 !== (b2.flags & 8772)) {
5410 var c2 = b2.alternate;
5411 try {
5412 if (0 !== (b2.flags & 8772)) switch (b2.tag) {
5413 case 0:
5414 case 11:
5415 case 15:
5416 U || Qj(5, b2);
5417 break;
5418 case 1:
5419 var d2 = b2.stateNode;
5420 if (b2.flags & 4 && !U) if (null === c2) d2.componentDidMount();
5421 else {
5422 var e2 = b2.elementType === b2.type ? c2.memoizedProps : Ci(b2.type, c2.memoizedProps);
5423 d2.componentDidUpdate(e2, c2.memoizedState, d2.__reactInternalSnapshotBeforeUpdate);
5424 }
5425 var f2 = b2.updateQueue;
5426 null !== f2 && sh(b2, f2, d2);
5427 break;
5428 case 3:
5429 var g2 = b2.updateQueue;
5430 if (null !== g2) {
5431 c2 = null;
5432 if (null !== b2.child) switch (b2.child.tag) {
5433 case 5:
5434 c2 = b2.child.stateNode;
5435 break;
5436 case 1:
5437 c2 = b2.child.stateNode;
5438 }
5439 sh(b2, g2, c2);
5440 }
5441 break;
5442 case 5:
5443 var h2 = b2.stateNode;
5444 if (null === c2 && b2.flags & 4) {
5445 c2 = h2;
5446 var k2 = b2.memoizedProps;
5447 switch (b2.type) {
5448 case "button":
5449 case "input":
5450 case "select":
5451 case "textarea":
5452 k2.autoFocus && c2.focus();
5453 break;
5454 case "img":
5455 k2.src && (c2.src = k2.src);
5456 }
5457 }
5458 break;
5459 case 6:
5460 break;
5461 case 4:
5462 break;
5463 case 12:
5464 break;
5465 case 13:
5466 if (null === b2.memoizedState) {
5467 var l2 = b2.alternate;
5468 if (null !== l2) {
5469 var m2 = l2.memoizedState;
5470 if (null !== m2) {
5471 var q2 = m2.dehydrated;
5472 null !== q2 && bd(q2);
5473 }
5474 }
5475 }
5476 break;
5477 case 19:
5478 case 17:
5479 case 21:
5480 case 22:
5481 case 23:
5482 case 25:
5483 break;
5484 default:
5485 throw Error(p$1(163));
5486 }
5487 U || b2.flags & 512 && Rj(b2);
5488 } catch (r2) {
5489 W(b2, b2.return, r2);
5490 }
5491 }
5492 if (b2 === a) {
5493 V = null;
5494 break;
5495 }
5496 c2 = b2.sibling;
5497 if (null !== c2) {
5498 c2.return = b2.return;
5499 V = c2;
5500 break;
5501 }
5502 V = b2.return;
5503 }
5504 }
5505 function gk(a) {
5506 for (; null !== V; ) {
5507 var b2 = V;
5508 if (b2 === a) {
5509 V = null;
5510 break;
5511 }
5512 var c2 = b2.sibling;
5513 if (null !== c2) {
5514 c2.return = b2.return;
5515 V = c2;
5516 break;
5517 }
5518 V = b2.return;
5519 }
5520 }
5521 function jk(a) {
5522 for (; null !== V; ) {
5523 var b2 = V;
5524 try {
5525 switch (b2.tag) {
5526 case 0:
5527 case 11:
5528 case 15:
5529 var c2 = b2.return;
5530 try {
5531 Qj(4, b2);
5532 } catch (k2) {
5533 W(b2, c2, k2);
5534 }
5535 break;
5536 case 1:
5537 var d2 = b2.stateNode;
5538 if ("function" === typeof d2.componentDidMount) {
5539 var e2 = b2.return;
5540 try {
5541 d2.componentDidMount();
5542 } catch (k2) {
5543 W(b2, e2, k2);
5544 }
5545 }
5546 var f2 = b2.return;
5547 try {
5548 Rj(b2);
5549 } catch (k2) {
5550 W(b2, f2, k2);
5551 }
5552 break;
5553 case 5:
5554 var g2 = b2.return;
5555 try {
5556 Rj(b2);
5557 } catch (k2) {
5558 W(b2, g2, k2);
5559 }
5560 }
5561 } catch (k2) {
5562 W(b2, b2.return, k2);
5563 }
5564 if (b2 === a) {
5565 V = null;
5566 break;
5567 }
5568 var h2 = b2.sibling;
5569 if (null !== h2) {
5570 h2.return = b2.return;
5571 V = h2;
5572 break;
5573 }
5574 V = b2.return;
5575 }
5576 }
5577 var lk = Math.ceil, mk = ua.ReactCurrentDispatcher, nk = ua.ReactCurrentOwner, ok = ua.ReactCurrentBatchConfig, K = 0, Q = null, Y = null, Z = 0, fj = 0, ej = Uf(0), T = 0, pk = null, rh = 0, qk = 0, rk = 0, sk = null, tk = null, fk = 0, Gj = Infinity, uk = null, Oi = false, Pi = null, Ri = null, vk = false, wk = null, xk = 0, yk = 0, zk = null, Ak = -1, Bk = 0;
5578 function R() {
5579 return 0 !== (K & 6) ? B() : -1 !== Ak ? Ak : Ak = B();
5580 }
5581 function yi(a) {
5582 if (0 === (a.mode & 1)) return 1;
5583 if (0 !== (K & 2) && 0 !== Z) return Z & -Z;
5584 if (null !== Kg.transition) return 0 === Bk && (Bk = yc()), Bk;
5585 a = C;
5586 if (0 !== a) return a;
5587 a = window.event;
5588 a = void 0 === a ? 16 : jd(a.type);
5589 return a;
5590 }
5591 function gi(a, b2, c2, d2) {
5592 if (50 < yk) throw yk = 0, zk = null, Error(p$1(185));
5593 Ac(a, c2, d2);
5594 if (0 === (K & 2) || a !== Q) a === Q && (0 === (K & 2) && (qk |= c2), 4 === T && Ck(a, Z)), Dk(a, d2), 1 === c2 && 0 === K && 0 === (b2.mode & 1) && (Gj = B() + 500, fg && jg());
5595 }
5596 function Dk(a, b2) {
5597 var c2 = a.callbackNode;
5598 wc(a, b2);
5599 var d2 = uc(a, a === Q ? Z : 0);
5600 if (0 === d2) null !== c2 && bc(c2), a.callbackNode = null, a.callbackPriority = 0;
5601 else if (b2 = d2 & -d2, a.callbackPriority !== b2) {
5602 null != c2 && bc(c2);
5603 if (1 === b2) 0 === a.tag ? ig(Ek.bind(null, a)) : hg(Ek.bind(null, a)), Jf(function() {
5604 0 === (K & 6) && jg();
5605 }), c2 = null;
5606 else {
5607 switch (Dc(d2)) {
5608 case 1:
5609 c2 = fc;
5610 break;
5611 case 4:
5612 c2 = gc;
5613 break;
5614 case 16:
5615 c2 = hc;
5616 break;
5617 case 536870912:
5618 c2 = jc;
5619 break;
5620 default:
5621 c2 = hc;
5622 }
5623 c2 = Fk(c2, Gk.bind(null, a));
5624 }
5625 a.callbackPriority = b2;
5626 a.callbackNode = c2;
5627 }
5628 }
5629 function Gk(a, b2) {
5630 Ak = -1;
5631 Bk = 0;
5632 if (0 !== (K & 6)) throw Error(p$1(327));
5633 var c2 = a.callbackNode;
5634 if (Hk() && a.callbackNode !== c2) return null;
5635 var d2 = uc(a, a === Q ? Z : 0);
5636 if (0 === d2) return null;
5637 if (0 !== (d2 & 30) || 0 !== (d2 & a.expiredLanes) || b2) b2 = Ik(a, d2);
5638 else {
5639 b2 = d2;
5640 var e2 = K;
5641 K |= 2;
5642 var f2 = Jk();
5643 if (Q !== a || Z !== b2) uk = null, Gj = B() + 500, Kk(a, b2);
5644 do
5645 try {
5646 Lk();
5647 break;
5648 } catch (h2) {
5649 Mk(a, h2);
5650 }
5651 while (1);
5652 $g();
5653 mk.current = f2;
5654 K = e2;
5655 null !== Y ? b2 = 0 : (Q = null, Z = 0, b2 = T);
5656 }
5657 if (0 !== b2) {
5658 2 === b2 && (e2 = xc(a), 0 !== e2 && (d2 = e2, b2 = Nk(a, e2)));
5659 if (1 === b2) throw c2 = pk, Kk(a, 0), Ck(a, d2), Dk(a, B()), c2;
5660 if (6 === b2) Ck(a, d2);
5661 else {
5662 e2 = a.current.alternate;
5663 if (0 === (d2 & 30) && !Ok(e2) && (b2 = Ik(a, d2), 2 === b2 && (f2 = xc(a), 0 !== f2 && (d2 = f2, b2 = Nk(a, f2))), 1 === b2)) throw c2 = pk, Kk(a, 0), Ck(a, d2), Dk(a, B()), c2;
5664 a.finishedWork = e2;
5665 a.finishedLanes = d2;
5666 switch (b2) {
5667 case 0:
5668 case 1:
5669 throw Error(p$1(345));
5670 case 2:
5671 Pk(a, tk, uk);
5672 break;
5673 case 3:
5674 Ck(a, d2);
5675 if ((d2 & 130023424) === d2 && (b2 = fk + 500 - B(), 10 < b2)) {
5676 if (0 !== uc(a, 0)) break;
5677 e2 = a.suspendedLanes;
5678 if ((e2 & d2) !== d2) {
5679 R();
5680 a.pingedLanes |= a.suspendedLanes & e2;
5681 break;
5682 }
5683 a.timeoutHandle = Ff(Pk.bind(null, a, tk, uk), b2);
5684 break;
5685 }
5686 Pk(a, tk, uk);
5687 break;
5688 case 4:
5689 Ck(a, d2);
5690 if ((d2 & 4194240) === d2) break;
5691 b2 = a.eventTimes;
5692 for (e2 = -1; 0 < d2; ) {
5693 var g2 = 31 - oc(d2);
5694 f2 = 1 << g2;
5695 g2 = b2[g2];
5696 g2 > e2 && (e2 = g2);
5697 d2 &= ~f2;
5698 }
5699 d2 = e2;
5700 d2 = B() - d2;
5701 d2 = (120 > d2 ? 120 : 480 > d2 ? 480 : 1080 > d2 ? 1080 : 1920 > d2 ? 1920 : 3e3 > d2 ? 3e3 : 4320 > d2 ? 4320 : 1960 * lk(d2 / 1960)) - d2;
5702 if (10 < d2) {
5703 a.timeoutHandle = Ff(Pk.bind(null, a, tk, uk), d2);
5704 break;
5705 }
5706 Pk(a, tk, uk);
5707 break;
5708 case 5:
5709 Pk(a, tk, uk);
5710 break;
5711 default:
5712 throw Error(p$1(329));
5713 }
5714 }
5715 }
5716 Dk(a, B());
5717 return a.callbackNode === c2 ? Gk.bind(null, a) : null;
5718 }
5719 function Nk(a, b2) {
5720 var c2 = sk;
5721 a.current.memoizedState.isDehydrated && (Kk(a, b2).flags |= 256);
5722 a = Ik(a, b2);
5723 2 !== a && (b2 = tk, tk = c2, null !== b2 && Fj(b2));
5724 return a;
5725 }
5726 function Fj(a) {
5727 null === tk ? tk = a : tk.push.apply(tk, a);
5728 }
5729 function Ok(a) {
5730 for (var b2 = a; ; ) {
5731 if (b2.flags & 16384) {
5732 var c2 = b2.updateQueue;
5733 if (null !== c2 && (c2 = c2.stores, null !== c2)) for (var d2 = 0; d2 < c2.length; d2++) {
5734 var e2 = c2[d2], f2 = e2.getSnapshot;
5735 e2 = e2.value;
5736 try {
5737 if (!He(f2(), e2)) return false;
5738 } catch (g2) {
5739 return false;
5740 }
5741 }
5742 }
5743 c2 = b2.child;
5744 if (b2.subtreeFlags & 16384 && null !== c2) c2.return = b2, b2 = c2;
5745 else {
5746 if (b2 === a) break;
5747 for (; null === b2.sibling; ) {
5748 if (null === b2.return || b2.return === a) return true;
5749 b2 = b2.return;
5750 }
5751 b2.sibling.return = b2.return;
5752 b2 = b2.sibling;
5753 }
5754 }
5755 return true;
5756 }
5757 function Ck(a, b2) {
5758 b2 &= ~rk;
5759 b2 &= ~qk;
5760 a.suspendedLanes |= b2;
5761 a.pingedLanes &= ~b2;
5762 for (a = a.expirationTimes; 0 < b2; ) {
5763 var c2 = 31 - oc(b2), d2 = 1 << c2;
5764 a[c2] = -1;
5765 b2 &= ~d2;
5766 }
5767 }
5768 function Ek(a) {
5769 if (0 !== (K & 6)) throw Error(p$1(327));
5770 Hk();
5771 var b2 = uc(a, 0);
5772 if (0 === (b2 & 1)) return Dk(a, B()), null;
5773 var c2 = Ik(a, b2);
5774 if (0 !== a.tag && 2 === c2) {
5775 var d2 = xc(a);
5776 0 !== d2 && (b2 = d2, c2 = Nk(a, d2));
5777 }
5778 if (1 === c2) throw c2 = pk, Kk(a, 0), Ck(a, b2), Dk(a, B()), c2;
5779 if (6 === c2) throw Error(p$1(345));
5780 a.finishedWork = a.current.alternate;
5781 a.finishedLanes = b2;
5782 Pk(a, tk, uk);
5783 Dk(a, B());
5784 return null;
5785 }
5786 function Qk(a, b2) {
5787 var c2 = K;
5788 K |= 1;
5789 try {
5790 return a(b2);
5791 } finally {
5792 K = c2, 0 === K && (Gj = B() + 500, fg && jg());
5793 }
5794 }
5795 function Rk(a) {
5796 null !== wk && 0 === wk.tag && 0 === (K & 6) && Hk();
5797 var b2 = K;
5798 K |= 1;
5799 var c2 = ok.transition, d2 = C;
5800 try {
5801 if (ok.transition = null, C = 1, a) return a();
5802 } finally {
5803 C = d2, ok.transition = c2, K = b2, 0 === (K & 6) && jg();
5804 }
5805 }
5806 function Hj() {
5807 fj = ej.current;
5808 E(ej);
5809 }
5810 function Kk(a, b2) {
5811 a.finishedWork = null;
5812 a.finishedLanes = 0;
5813 var c2 = a.timeoutHandle;
5814 -1 !== c2 && (a.timeoutHandle = -1, Gf(c2));
5815 if (null !== Y) for (c2 = Y.return; null !== c2; ) {
5816 var d2 = c2;
5817 wg(d2);
5818 switch (d2.tag) {
5819 case 1:
5820 d2 = d2.type.childContextTypes;
5821 null !== d2 && void 0 !== d2 && $f();
5822 break;
5823 case 3:
5824 zh();
5825 E(Wf);
5826 E(H);
5827 Eh();
5828 break;
5829 case 5:
5830 Bh(d2);
5831 break;
5832 case 4:
5833 zh();
5834 break;
5835 case 13:
5836 E(L);
5837 break;
5838 case 19:
5839 E(L);
5840 break;
5841 case 10:
5842 ah(d2.type._context);
5843 break;
5844 case 22:
5845 case 23:
5846 Hj();
5847 }
5848 c2 = c2.return;
5849 }
5850 Q = a;
5851 Y = a = Pg(a.current, null);
5852 Z = fj = b2;
5853 T = 0;
5854 pk = null;
5855 rk = qk = rh = 0;
5856 tk = sk = null;
5857 if (null !== fh) {
5858 for (b2 = 0; b2 < fh.length; b2++) if (c2 = fh[b2], d2 = c2.interleaved, null !== d2) {
5859 c2.interleaved = null;
5860 var e2 = d2.next, f2 = c2.pending;
5861 if (null !== f2) {
5862 var g2 = f2.next;
5863 f2.next = e2;
5864 d2.next = g2;
5865 }
5866 c2.pending = d2;
5867 }
5868 fh = null;
5869 }
5870 return a;
5871 }
5872 function Mk(a, b2) {
5873 do {
5874 var c2 = Y;
5875 try {
5876 $g();
5877 Fh.current = Rh;
5878 if (Ih) {
5879 for (var d2 = M.memoizedState; null !== d2; ) {
5880 var e2 = d2.queue;
5881 null !== e2 && (e2.pending = null);
5882 d2 = d2.next;
5883 }
5884 Ih = false;
5885 }
5886 Hh = 0;
5887 O = N = M = null;
5888 Jh = false;
5889 Kh = 0;
5890 nk.current = null;
5891 if (null === c2 || null === c2.return) {
5892 T = 1;
5893 pk = b2;
5894 Y = null;
5895 break;
5896 }
5897 a: {
5898 var f2 = a, g2 = c2.return, h2 = c2, k2 = b2;
5899 b2 = Z;
5900 h2.flags |= 32768;
5901 if (null !== k2 && "object" === typeof k2 && "function" === typeof k2.then) {
5902 var l2 = k2, m2 = h2, q2 = m2.tag;
5903 if (0 === (m2.mode & 1) && (0 === q2 || 11 === q2 || 15 === q2)) {
5904 var r2 = m2.alternate;
5905 r2 ? (m2.updateQueue = r2.updateQueue, m2.memoizedState = r2.memoizedState, m2.lanes = r2.lanes) : (m2.updateQueue = null, m2.memoizedState = null);
5906 }
5907 var y2 = Ui(g2);
5908 if (null !== y2) {
5909 y2.flags &= -257;
5910 Vi(y2, g2, h2, f2, b2);
5911 y2.mode & 1 && Si(f2, l2, b2);
5912 b2 = y2;
5913 k2 = l2;
5914 var n2 = b2.updateQueue;
5915 if (null === n2) {
5916 var t2 = /* @__PURE__ */ new Set();
5917 t2.add(k2);
5918 b2.updateQueue = t2;
5919 } else n2.add(k2);
5920 break a;
5921 } else {
5922 if (0 === (b2 & 1)) {
5923 Si(f2, l2, b2);
5924 tj();
5925 break a;
5926 }
5927 k2 = Error(p$1(426));
5928 }
5929 } else if (I && h2.mode & 1) {
5930 var J2 = Ui(g2);
5931 if (null !== J2) {
5932 0 === (J2.flags & 65536) && (J2.flags |= 256);
5933 Vi(J2, g2, h2, f2, b2);
5934 Jg(Ji(k2, h2));
5935 break a;
5936 }
5937 }
5938 f2 = k2 = Ji(k2, h2);
5939 4 !== T && (T = 2);
5940 null === sk ? sk = [f2] : sk.push(f2);
5941 f2 = g2;
5942 do {
5943 switch (f2.tag) {
5944 case 3:
5945 f2.flags |= 65536;
5946 b2 &= -b2;
5947 f2.lanes |= b2;
5948 var x2 = Ni(f2, k2, b2);
5949 ph(f2, x2);
5950 break a;
5951 case 1:
5952 h2 = k2;
5953 var w2 = f2.type, u2 = f2.stateNode;
5954 if (0 === (f2.flags & 128) && ("function" === typeof w2.getDerivedStateFromError || null !== u2 && "function" === typeof u2.componentDidCatch && (null === Ri || !Ri.has(u2)))) {
5955 f2.flags |= 65536;
5956 b2 &= -b2;
5957 f2.lanes |= b2;
5958 var F2 = Qi(f2, h2, b2);
5959 ph(f2, F2);
5960 break a;
5961 }
5962 }
5963 f2 = f2.return;
5964 } while (null !== f2);
5965 }
5966 Sk(c2);
5967 } catch (na) {
5968 b2 = na;
5969 Y === c2 && null !== c2 && (Y = c2 = c2.return);
5970 continue;
5971 }
5972 break;
5973 } while (1);
5974 }
5975 function Jk() {
5976 var a = mk.current;
5977 mk.current = Rh;
5978 return null === a ? Rh : a;
5979 }
5980 function tj() {
5981 if (0 === T || 3 === T || 2 === T) T = 4;
5982 null === Q || 0 === (rh & 268435455) && 0 === (qk & 268435455) || Ck(Q, Z);
5983 }
5984 function Ik(a, b2) {
5985 var c2 = K;
5986 K |= 2;
5987 var d2 = Jk();
5988 if (Q !== a || Z !== b2) uk = null, Kk(a, b2);
5989 do
5990 try {
5991 Tk();
5992 break;
5993 } catch (e2) {
5994 Mk(a, e2);
5995 }
5996 while (1);
5997 $g();
5998 K = c2;
5999 mk.current = d2;
6000 if (null !== Y) throw Error(p$1(261));
6001 Q = null;
6002 Z = 0;
6003 return T;
6004 }
6005 function Tk() {
6006 for (; null !== Y; ) Uk(Y);
6007 }
6008 function Lk() {
6009 for (; null !== Y && !cc(); ) Uk(Y);
6010 }
6011 function Uk(a) {
6012 var b2 = Vk(a.alternate, a, fj);
6013 a.memoizedProps = a.pendingProps;
6014 null === b2 ? Sk(a) : Y = b2;
6015 nk.current = null;
6016 }
6017 function Sk(a) {
6018 var b2 = a;
6019 do {
6020 var c2 = b2.alternate;
6021 a = b2.return;
6022 if (0 === (b2.flags & 32768)) {
6023 if (c2 = Ej(c2, b2, fj), null !== c2) {
6024 Y = c2;
6025 return;
6026 }
6027 } else {
6028 c2 = Ij(c2, b2);
6029 if (null !== c2) {
6030 c2.flags &= 32767;
6031 Y = c2;
6032 return;
6033 }
6034 if (null !== a) a.flags |= 32768, a.subtreeFlags = 0, a.deletions = null;
6035 else {
6036 T = 6;
6037 Y = null;
6038 return;
6039 }
6040 }
6041 b2 = b2.sibling;
6042 if (null !== b2) {
6043 Y = b2;
6044 return;
6045 }
6046 Y = b2 = a;
6047 } while (null !== b2);
6048 0 === T && (T = 5);
6049 }
6050 function Pk(a, b2, c2) {
6051 var d2 = C, e2 = ok.transition;
6052 try {
6053 ok.transition = null, C = 1, Wk(a, b2, c2, d2);
6054 } finally {
6055 ok.transition = e2, C = d2;
6056 }
6057 return null;
6058 }
6059 function Wk(a, b2, c2, d2) {
6060 do
6061 Hk();
6062 while (null !== wk);
6063 if (0 !== (K & 6)) throw Error(p$1(327));
6064 c2 = a.finishedWork;
6065 var e2 = a.finishedLanes;
6066 if (null === c2) return null;
6067 a.finishedWork = null;
6068 a.finishedLanes = 0;
6069 if (c2 === a.current) throw Error(p$1(177));
6070 a.callbackNode = null;
6071 a.callbackPriority = 0;
6072 var f2 = c2.lanes | c2.childLanes;
6073 Bc(a, f2);
6074 a === Q && (Y = Q = null, Z = 0);
6075 0 === (c2.subtreeFlags & 2064) && 0 === (c2.flags & 2064) || vk || (vk = true, Fk(hc, function() {
6076 Hk();
6077 return null;
6078 }));
6079 f2 = 0 !== (c2.flags & 15990);
6080 if (0 !== (c2.subtreeFlags & 15990) || f2) {
6081 f2 = ok.transition;
6082 ok.transition = null;
6083 var g2 = C;
6084 C = 1;
6085 var h2 = K;
6086 K |= 4;
6087 nk.current = null;
6088 Oj(a, c2);
6089 dk(c2, a);
6090 Oe(Df);
6091 dd = !!Cf;
6092 Df = Cf = null;
6093 a.current = c2;
6094 hk(c2);
6095 dc();
6096 K = h2;
6097 C = g2;
6098 ok.transition = f2;
6099 } else a.current = c2;
6100 vk && (vk = false, wk = a, xk = e2);
6101 f2 = a.pendingLanes;
6102 0 === f2 && (Ri = null);
6103 mc(c2.stateNode);
6104 Dk(a, B());
6105 if (null !== b2) for (d2 = a.onRecoverableError, c2 = 0; c2 < b2.length; c2++) e2 = b2[c2], d2(e2.value, { componentStack: e2.stack, digest: e2.digest });
6106 if (Oi) throw Oi = false, a = Pi, Pi = null, a;
6107 0 !== (xk & 1) && 0 !== a.tag && Hk();
6108 f2 = a.pendingLanes;
6109 0 !== (f2 & 1) ? a === zk ? yk++ : (yk = 0, zk = a) : yk = 0;
6110 jg();
6111 return null;
6112 }
6113 function Hk() {
6114 if (null !== wk) {
6115 var a = Dc(xk), b2 = ok.transition, c2 = C;
6116 try {
6117 ok.transition = null;
6118 C = 16 > a ? 16 : a;
6119 if (null === wk) var d2 = false;
6120 else {
6121 a = wk;
6122 wk = null;
6123 xk = 0;
6124 if (0 !== (K & 6)) throw Error(p$1(331));
6125 var e2 = K;
6126 K |= 4;
6127 for (V = a.current; null !== V; ) {
6128 var f2 = V, g2 = f2.child;
6129 if (0 !== (V.flags & 16)) {
6130 var h2 = f2.deletions;
6131 if (null !== h2) {
6132 for (var k2 = 0; k2 < h2.length; k2++) {
6133 var l2 = h2[k2];
6134 for (V = l2; null !== V; ) {
6135 var m2 = V;
6136 switch (m2.tag) {
6137 case 0:
6138 case 11:
6139 case 15:
6140 Pj(8, m2, f2);
6141 }
6142 var q2 = m2.child;
6143 if (null !== q2) q2.return = m2, V = q2;
6144 else for (; null !== V; ) {
6145 m2 = V;
6146 var r2 = m2.sibling, y2 = m2.return;
6147 Sj(m2);
6148 if (m2 === l2) {
6149 V = null;
6150 break;
6151 }
6152 if (null !== r2) {
6153 r2.return = y2;
6154 V = r2;
6155 break;
6156 }
6157 V = y2;
6158 }
6159 }
6160 }
6161 var n2 = f2.alternate;
6162 if (null !== n2) {
6163 var t2 = n2.child;
6164 if (null !== t2) {
6165 n2.child = null;
6166 do {
6167 var J2 = t2.sibling;
6168 t2.sibling = null;
6169 t2 = J2;
6170 } while (null !== t2);
6171 }
6172 }
6173 V = f2;
6174 }
6175 }
6176 if (0 !== (f2.subtreeFlags & 2064) && null !== g2) g2.return = f2, V = g2;
6177 else b: for (; null !== V; ) {
6178 f2 = V;
6179 if (0 !== (f2.flags & 2048)) switch (f2.tag) {
6180 case 0:
6181 case 11:
6182 case 15:
6183 Pj(9, f2, f2.return);
6184 }
6185 var x2 = f2.sibling;
6186 if (null !== x2) {
6187 x2.return = f2.return;
6188 V = x2;
6189 break b;
6190 }
6191 V = f2.return;
6192 }
6193 }
6194 var w2 = a.current;
6195 for (V = w2; null !== V; ) {
6196 g2 = V;
6197 var u2 = g2.child;
6198 if (0 !== (g2.subtreeFlags & 2064) && null !== u2) u2.return = g2, V = u2;
6199 else b: for (g2 = w2; null !== V; ) {
6200 h2 = V;
6201 if (0 !== (h2.flags & 2048)) try {
6202 switch (h2.tag) {
6203 case 0:
6204 case 11:
6205 case 15:
6206 Qj(9, h2);
6207 }
6208 } catch (na) {
6209 W(h2, h2.return, na);
6210 }
6211 if (h2 === g2) {
6212 V = null;
6213 break b;
6214 }
6215 var F2 = h2.sibling;
6216 if (null !== F2) {
6217 F2.return = h2.return;
6218 V = F2;
6219 break b;
6220 }
6221 V = h2.return;
6222 }
6223 }
6224 K = e2;
6225 jg();
6226 if (lc && "function" === typeof lc.onPostCommitFiberRoot) try {
6227 lc.onPostCommitFiberRoot(kc, a);
6228 } catch (na) {
6229 }
6230 d2 = true;
6231 }
6232 return d2;
6233 } finally {
6234 C = c2, ok.transition = b2;
6235 }
6236 }
6237 return false;
6238 }
6239 function Xk(a, b2, c2) {
6240 b2 = Ji(c2, b2);
6241 b2 = Ni(a, b2, 1);
6242 a = nh(a, b2, 1);
6243 b2 = R();
6244 null !== a && (Ac(a, 1, b2), Dk(a, b2));
6245 }
6246 function W(a, b2, c2) {
6247 if (3 === a.tag) Xk(a, a, c2);
6248 else for (; null !== b2; ) {
6249 if (3 === b2.tag) {
6250 Xk(b2, a, c2);
6251 break;
6252 } else if (1 === b2.tag) {
6253 var d2 = b2.stateNode;
6254 if ("function" === typeof b2.type.getDerivedStateFromError || "function" === typeof d2.componentDidCatch && (null === Ri || !Ri.has(d2))) {
6255 a = Ji(c2, a);
6256 a = Qi(b2, a, 1);
6257 b2 = nh(b2, a, 1);
6258 a = R();
6259 null !== b2 && (Ac(b2, 1, a), Dk(b2, a));
6260 break;
6261 }
6262 }
6263 b2 = b2.return;
6264 }
6265 }
6266 function Ti(a, b2, c2) {
6267 var d2 = a.pingCache;
6268 null !== d2 && d2.delete(b2);
6269 b2 = R();
6270 a.pingedLanes |= a.suspendedLanes & c2;
6271 Q === a && (Z & c2) === c2 && (4 === T || 3 === T && (Z & 130023424) === Z && 500 > B() - fk ? Kk(a, 0) : rk |= c2);
6272 Dk(a, b2);
6273 }
6274 function Yk(a, b2) {
6275 0 === b2 && (0 === (a.mode & 1) ? b2 = 1 : (b2 = sc, sc <<= 1, 0 === (sc & 130023424) && (sc = 4194304)));
6276 var c2 = R();
6277 a = ih(a, b2);
6278 null !== a && (Ac(a, b2, c2), Dk(a, c2));
6279 }
6280 function uj(a) {
6281 var b2 = a.memoizedState, c2 = 0;
6282 null !== b2 && (c2 = b2.retryLane);
6283 Yk(a, c2);
6284 }
6285 function bk(a, b2) {
6286 var c2 = 0;
6287 switch (a.tag) {
6288 case 13:
6289 var d2 = a.stateNode;
6290 var e2 = a.memoizedState;
6291 null !== e2 && (c2 = e2.retryLane);
6292 break;
6293 case 19:
6294 d2 = a.stateNode;
6295 break;
6296 default:
6297 throw Error(p$1(314));
6298 }
6299 null !== d2 && d2.delete(b2);
6300 Yk(a, c2);
6301 }
6302 var Vk;
6303 Vk = function(a, b2, c2) {
6304 if (null !== a) if (a.memoizedProps !== b2.pendingProps || Wf.current) dh = true;
6305 else {
6306 if (0 === (a.lanes & c2) && 0 === (b2.flags & 128)) return dh = false, yj(a, b2, c2);
6307 dh = 0 !== (a.flags & 131072) ? true : false;
6308 }
6309 else dh = false, I && 0 !== (b2.flags & 1048576) && ug(b2, ng, b2.index);
6310 b2.lanes = 0;
6311 switch (b2.tag) {
6312 case 2:
6313 var d2 = b2.type;
6314 ij(a, b2);
6315 a = b2.pendingProps;
6316 var e2 = Yf(b2, H.current);
6317 ch(b2, c2);
6318 e2 = Nh(null, b2, d2, a, e2, c2);
6319 var f2 = Sh();
6320 b2.flags |= 1;
6321 "object" === typeof e2 && null !== e2 && "function" === typeof e2.render && void 0 === e2.$$typeof ? (b2.tag = 1, b2.memoizedState = null, b2.updateQueue = null, Zf(d2) ? (f2 = true, cg(b2)) : f2 = false, b2.memoizedState = null !== e2.state && void 0 !== e2.state ? e2.state : null, kh(b2), e2.updater = Ei, b2.stateNode = e2, e2._reactInternals = b2, Ii(b2, d2, a, c2), b2 = jj(null, b2, d2, true, f2, c2)) : (b2.tag = 0, I && f2 && vg(b2), Xi(null, b2, e2, c2), b2 = b2.child);
6322 return b2;
6323 case 16:
6324 d2 = b2.elementType;
6325 a: {
6326 ij(a, b2);
6327 a = b2.pendingProps;
6328 e2 = d2._init;
6329 d2 = e2(d2._payload);
6330 b2.type = d2;
6331 e2 = b2.tag = Zk(d2);
6332 a = Ci(d2, a);
6333 switch (e2) {
6334 case 0:
6335 b2 = cj(null, b2, d2, a, c2);
6336 break a;
6337 case 1:
6338 b2 = hj(null, b2, d2, a, c2);
6339 break a;
6340 case 11:
6341 b2 = Yi(null, b2, d2, a, c2);
6342 break a;
6343 case 14:
6344 b2 = $i(null, b2, d2, Ci(d2.type, a), c2);
6345 break a;
6346 }
6347 throw Error(p$1(
6348 306,
6349 d2,
6350 ""
6351 ));
6352 }
6353 return b2;
6354 case 0:
6355 return d2 = b2.type, e2 = b2.pendingProps, e2 = b2.elementType === d2 ? e2 : Ci(d2, e2), cj(a, b2, d2, e2, c2);
6356 case 1:
6357 return d2 = b2.type, e2 = b2.pendingProps, e2 = b2.elementType === d2 ? e2 : Ci(d2, e2), hj(a, b2, d2, e2, c2);
6358 case 3:
6359 a: {
6360 kj(b2);
6361 if (null === a) throw Error(p$1(387));
6362 d2 = b2.pendingProps;
6363 f2 = b2.memoizedState;
6364 e2 = f2.element;
6365 lh(a, b2);
6366 qh(b2, d2, null, c2);
6367 var g2 = b2.memoizedState;
6368 d2 = g2.element;
6369 if (f2.isDehydrated) if (f2 = { element: d2, isDehydrated: false, cache: g2.cache, pendingSuspenseBoundaries: g2.pendingSuspenseBoundaries, transitions: g2.transitions }, b2.updateQueue.baseState = f2, b2.memoizedState = f2, b2.flags & 256) {
6370 e2 = Ji(Error(p$1(423)), b2);
6371 b2 = lj(a, b2, d2, c2, e2);
6372 break a;
6373 } else if (d2 !== e2) {
6374 e2 = Ji(Error(p$1(424)), b2);
6375 b2 = lj(a, b2, d2, c2, e2);
6376 break a;
6377 } else for (yg = Lf(b2.stateNode.containerInfo.firstChild), xg = b2, I = true, zg = null, c2 = Vg(b2, null, d2, c2), b2.child = c2; c2; ) c2.flags = c2.flags & -3 | 4096, c2 = c2.sibling;
6378 else {
6379 Ig();
6380 if (d2 === e2) {
6381 b2 = Zi(a, b2, c2);
6382 break a;
6383 }
6384 Xi(a, b2, d2, c2);
6385 }
6386 b2 = b2.child;
6387 }
6388 return b2;
6389 case 5:
6390 return Ah(b2), null === a && Eg(b2), d2 = b2.type, e2 = b2.pendingProps, f2 = null !== a ? a.memoizedProps : null, g2 = e2.children, Ef(d2, e2) ? g2 = null : null !== f2 && Ef(d2, f2) && (b2.flags |= 32), gj(a, b2), Xi(a, b2, g2, c2), b2.child;
6391 case 6:
6392 return null === a && Eg(b2), null;
6393 case 13:
6394 return oj(a, b2, c2);
6395 case 4:
6396 return yh(b2, b2.stateNode.containerInfo), d2 = b2.pendingProps, null === a ? b2.child = Ug(b2, null, d2, c2) : Xi(a, b2, d2, c2), b2.child;
6397 case 11:
6398 return d2 = b2.type, e2 = b2.pendingProps, e2 = b2.elementType === d2 ? e2 : Ci(d2, e2), Yi(a, b2, d2, e2, c2);
6399 case 7:
6400 return Xi(a, b2, b2.pendingProps, c2), b2.child;
6401 case 8:
6402 return Xi(a, b2, b2.pendingProps.children, c2), b2.child;
6403 case 12:
6404 return Xi(a, b2, b2.pendingProps.children, c2), b2.child;
6405 case 10:
6406 a: {
6407 d2 = b2.type._context;
6408 e2 = b2.pendingProps;
6409 f2 = b2.memoizedProps;
6410 g2 = e2.value;
6411 G(Wg, d2._currentValue);
6412 d2._currentValue = g2;
6413 if (null !== f2) if (He(f2.value, g2)) {
6414 if (f2.children === e2.children && !Wf.current) {
6415 b2 = Zi(a, b2, c2);
6416 break a;
6417 }
6418 } else for (f2 = b2.child, null !== f2 && (f2.return = b2); null !== f2; ) {
6419 var h2 = f2.dependencies;
6420 if (null !== h2) {
6421 g2 = f2.child;
6422 for (var k2 = h2.firstContext; null !== k2; ) {
6423 if (k2.context === d2) {
6424 if (1 === f2.tag) {
6425 k2 = mh(-1, c2 & -c2);
6426 k2.tag = 2;
6427 var l2 = f2.updateQueue;
6428 if (null !== l2) {
6429 l2 = l2.shared;
6430 var m2 = l2.pending;
6431 null === m2 ? k2.next = k2 : (k2.next = m2.next, m2.next = k2);
6432 l2.pending = k2;
6433 }
6434 }
6435 f2.lanes |= c2;
6436 k2 = f2.alternate;
6437 null !== k2 && (k2.lanes |= c2);
6438 bh(
6439 f2.return,
6440 c2,
6441 b2
6442 );
6443 h2.lanes |= c2;
6444 break;
6445 }
6446 k2 = k2.next;
6447 }
6448 } else if (10 === f2.tag) g2 = f2.type === b2.type ? null : f2.child;
6449 else if (18 === f2.tag) {
6450 g2 = f2.return;
6451 if (null === g2) throw Error(p$1(341));
6452 g2.lanes |= c2;
6453 h2 = g2.alternate;
6454 null !== h2 && (h2.lanes |= c2);
6455 bh(g2, c2, b2);
6456 g2 = f2.sibling;
6457 } else g2 = f2.child;
6458 if (null !== g2) g2.return = f2;
6459 else for (g2 = f2; null !== g2; ) {
6460 if (g2 === b2) {
6461 g2 = null;
6462 break;
6463 }
6464 f2 = g2.sibling;
6465 if (null !== f2) {
6466 f2.return = g2.return;
6467 g2 = f2;
6468 break;
6469 }
6470 g2 = g2.return;
6471 }
6472 f2 = g2;
6473 }
6474 Xi(a, b2, e2.children, c2);
6475 b2 = b2.child;
6476 }
6477 return b2;
6478 case 9:
6479 return e2 = b2.type, d2 = b2.pendingProps.children, ch(b2, c2), e2 = eh(e2), d2 = d2(e2), b2.flags |= 1, Xi(a, b2, d2, c2), b2.child;
6480 case 14:
6481 return d2 = b2.type, e2 = Ci(d2, b2.pendingProps), e2 = Ci(d2.type, e2), $i(a, b2, d2, e2, c2);
6482 case 15:
6483 return bj(a, b2, b2.type, b2.pendingProps, c2);
6484 case 17:
6485 return d2 = b2.type, e2 = b2.pendingProps, e2 = b2.elementType === d2 ? e2 : Ci(d2, e2), ij(a, b2), b2.tag = 1, Zf(d2) ? (a = true, cg(b2)) : a = false, ch(b2, c2), Gi(b2, d2, e2), Ii(b2, d2, e2, c2), jj(null, b2, d2, true, a, c2);
6486 case 19:
6487 return xj(a, b2, c2);
6488 case 22:
6489 return dj(a, b2, c2);
6490 }
6491 throw Error(p$1(156, b2.tag));
6492 };
6493 function Fk(a, b2) {
6494 return ac(a, b2);
6495 }
6496 function $k(a, b2, c2, d2) {
6497 this.tag = a;
6498 this.key = c2;
6499 this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null;
6500 this.index = 0;
6501 this.ref = null;
6502 this.pendingProps = b2;
6503 this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null;
6504 this.mode = d2;
6505 this.subtreeFlags = this.flags = 0;
6506 this.deletions = null;
6507 this.childLanes = this.lanes = 0;
6508 this.alternate = null;
6509 }
6510 function Bg(a, b2, c2, d2) {
6511 return new $k(a, b2, c2, d2);
6512 }
6513 function aj(a) {
6514 a = a.prototype;
6515 return !(!a || !a.isReactComponent);
6516 }
6517 function Zk(a) {
6518 if ("function" === typeof a) return aj(a) ? 1 : 0;
6519 if (void 0 !== a && null !== a) {
6520 a = a.$$typeof;
6521 if (a === Da) return 11;
6522 if (a === Ga) return 14;
6523 }
6524 return 2;
6525 }
6526 function Pg(a, b2) {
6527 var c2 = a.alternate;
6528 null === c2 ? (c2 = Bg(a.tag, b2, a.key, a.mode), c2.elementType = a.elementType, c2.type = a.type, c2.stateNode = a.stateNode, c2.alternate = a, a.alternate = c2) : (c2.pendingProps = b2, c2.type = a.type, c2.flags = 0, c2.subtreeFlags = 0, c2.deletions = null);
6529 c2.flags = a.flags & 14680064;
6530 c2.childLanes = a.childLanes;
6531 c2.lanes = a.lanes;
6532 c2.child = a.child;
6533 c2.memoizedProps = a.memoizedProps;
6534 c2.memoizedState = a.memoizedState;
6535 c2.updateQueue = a.updateQueue;
6536 b2 = a.dependencies;
6537 c2.dependencies = null === b2 ? null : { lanes: b2.lanes, firstContext: b2.firstContext };
6538 c2.sibling = a.sibling;
6539 c2.index = a.index;
6540 c2.ref = a.ref;
6541 return c2;
6542 }
6543 function Rg(a, b2, c2, d2, e2, f2) {
6544 var g2 = 2;
6545 d2 = a;
6546 if ("function" === typeof a) aj(a) && (g2 = 1);
6547 else if ("string" === typeof a) g2 = 5;
6548 else a: switch (a) {
6549 case ya:
6550 return Tg(c2.children, e2, f2, b2);
6551 case za:
6552 g2 = 8;
6553 e2 |= 8;
6554 break;
6555 case Aa:
6556 return a = Bg(12, c2, b2, e2 | 2), a.elementType = Aa, a.lanes = f2, a;
6557 case Ea:
6558 return a = Bg(13, c2, b2, e2), a.elementType = Ea, a.lanes = f2, a;
6559 case Fa:
6560 return a = Bg(19, c2, b2, e2), a.elementType = Fa, a.lanes = f2, a;
6561 case Ia:
6562 return pj(c2, e2, f2, b2);
6563 default:
6564 if ("object" === typeof a && null !== a) switch (a.$$typeof) {
6565 case Ba:
6566 g2 = 10;
6567 break a;
6568 case Ca:
6569 g2 = 9;
6570 break a;
6571 case Da:
6572 g2 = 11;
6573 break a;
6574 case Ga:
6575 g2 = 14;
6576 break a;
6577 case Ha:
6578 g2 = 16;
6579 d2 = null;
6580 break a;
6581 }
6582 throw Error(p$1(130, null == a ? a : typeof a, ""));
6583 }
6584 b2 = Bg(g2, c2, b2, e2);
6585 b2.elementType = a;
6586 b2.type = d2;
6587 b2.lanes = f2;
6588 return b2;
6589 }
6590 function Tg(a, b2, c2, d2) {
6591 a = Bg(7, a, d2, b2);
6592 a.lanes = c2;
6593 return a;
6594 }
6595 function pj(a, b2, c2, d2) {
6596 a = Bg(22, a, d2, b2);
6597 a.elementType = Ia;
6598 a.lanes = c2;
6599 a.stateNode = { isHidden: false };
6600 return a;
6601 }
6602 function Qg(a, b2, c2) {
6603 a = Bg(6, a, null, b2);
6604 a.lanes = c2;
6605 return a;
6606 }
6607 function Sg(a, b2, c2) {
6608 b2 = Bg(4, null !== a.children ? a.children : [], a.key, b2);
6609 b2.lanes = c2;
6610 b2.stateNode = { containerInfo: a.containerInfo, pendingChildren: null, implementation: a.implementation };
6611 return b2;
6612 }
6613 function al(a, b2, c2, d2, e2) {
6614 this.tag = b2;
6615 this.containerInfo = a;
6616 this.finishedWork = this.pingCache = this.current = this.pendingChildren = null;
6617 this.timeoutHandle = -1;
6618 this.callbackNode = this.pendingContext = this.context = null;
6619 this.callbackPriority = 0;
6620 this.eventTimes = zc(0);
6621 this.expirationTimes = zc(-1);
6622 this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0;
6623 this.entanglements = zc(0);
6624 this.identifierPrefix = d2;
6625 this.onRecoverableError = e2;
6626 this.mutableSourceEagerHydrationData = null;
6627 }
6628 function bl(a, b2, c2, d2, e2, f2, g2, h2, k2) {
6629 a = new al(a, b2, c2, h2, k2);
6630 1 === b2 ? (b2 = 1, true === f2 && (b2 |= 8)) : b2 = 0;
6631 f2 = Bg(3, null, null, b2);
6632 a.current = f2;
6633 f2.stateNode = a;
6634 f2.memoizedState = { element: d2, isDehydrated: c2, cache: null, transitions: null, pendingSuspenseBoundaries: null };
6635 kh(f2);
6636 return a;
6637 }
6638 function cl(a, b2, c2) {
6639 var d2 = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
6640 return { $$typeof: wa, key: null == d2 ? null : "" + d2, children: a, containerInfo: b2, implementation: c2 };
6641 }
6642 function dl(a) {
6643 if (!a) return Vf;
6644 a = a._reactInternals;
6645 a: {
6646 if (Vb(a) !== a || 1 !== a.tag) throw Error(p$1(170));
6647 var b2 = a;
6648 do {
6649 switch (b2.tag) {
6650 case 3:
6651 b2 = b2.stateNode.context;
6652 break a;
6653 case 1:
6654 if (Zf(b2.type)) {
6655 b2 = b2.stateNode.__reactInternalMemoizedMergedChildContext;
6656 break a;
6657 }
6658 }
6659 b2 = b2.return;
6660 } while (null !== b2);
6661 throw Error(p$1(171));
6662 }
6663 if (1 === a.tag) {
6664 var c2 = a.type;
6665 if (Zf(c2)) return bg(a, c2, b2);
6666 }
6667 return b2;
6668 }
6669 function el(a, b2, c2, d2, e2, f2, g2, h2, k2) {
6670 a = bl(c2, d2, true, a, e2, f2, g2, h2, k2);
6671 a.context = dl(null);
6672 c2 = a.current;
6673 d2 = R();
6674 e2 = yi(c2);
6675 f2 = mh(d2, e2);
6676 f2.callback = void 0 !== b2 && null !== b2 ? b2 : null;
6677 nh(c2, f2, e2);
6678 a.current.lanes = e2;
6679 Ac(a, e2, d2);
6680 Dk(a, d2);
6681 return a;
6682 }
6683 function fl(a, b2, c2, d2) {
6684 var e2 = b2.current, f2 = R(), g2 = yi(e2);
6685 c2 = dl(c2);
6686 null === b2.context ? b2.context = c2 : b2.pendingContext = c2;
6687 b2 = mh(f2, g2);
6688 b2.payload = { element: a };
6689 d2 = void 0 === d2 ? null : d2;
6690 null !== d2 && (b2.callback = d2);
6691 a = nh(e2, b2, g2);
6692 null !== a && (gi(a, e2, g2, f2), oh(a, e2, g2));
6693 return g2;
6694 }
6695 function gl(a) {
6696 a = a.current;
6697 if (!a.child) return null;
6698 switch (a.child.tag) {
6699 case 5:
6700 return a.child.stateNode;
6701 default:
6702 return a.child.stateNode;
6703 }
6704 }
6705 function hl(a, b2) {
6706 a = a.memoizedState;
6707 if (null !== a && null !== a.dehydrated) {
6708 var c2 = a.retryLane;
6709 a.retryLane = 0 !== c2 && c2 < b2 ? c2 : b2;
6710 }
6711 }
6712 function il(a, b2) {
6713 hl(a, b2);
6714 (a = a.alternate) && hl(a, b2);
6715 }
6716 function jl() {
6717 return null;
6718 }
6719 var kl = "function" === typeof reportError ? reportError : function(a) {
6720 console.error(a);
6721 };
6722 function ll(a) {
6723 this._internalRoot = a;
6724 }
6725 ml.prototype.render = ll.prototype.render = function(a) {
6726 var b2 = this._internalRoot;
6727 if (null === b2) throw Error(p$1(409));
6728 fl(a, b2, null, null);
6729 };
6730 ml.prototype.unmount = ll.prototype.unmount = function() {
6731 var a = this._internalRoot;
6732 if (null !== a) {
6733 this._internalRoot = null;
6734 var b2 = a.containerInfo;
6735 Rk(function() {
6736 fl(null, a, null, null);
6737 });
6738 b2[uf] = null;
6739 }
6740 };
6741 function ml(a) {
6742 this._internalRoot = a;
6743 }
6744 ml.prototype.unstable_scheduleHydration = function(a) {
6745 if (a) {
6746 var b2 = Hc();
6747 a = { blockedOn: null, target: a, priority: b2 };
6748 for (var c2 = 0; c2 < Qc.length && 0 !== b2 && b2 < Qc[c2].priority; c2++) ;
6749 Qc.splice(c2, 0, a);
6750 0 === c2 && Vc(a);
6751 }
6752 };
6753 function nl(a) {
6754 return !(!a || 1 !== a.nodeType && 9 !== a.nodeType && 11 !== a.nodeType);
6755 }
6756 function ol(a) {
6757 return !(!a || 1 !== a.nodeType && 9 !== a.nodeType && 11 !== a.nodeType && (8 !== a.nodeType || " react-mount-point-unstable " !== a.nodeValue));
6758 }
6759 function pl() {
6760 }
6761 function ql(a, b2, c2, d2, e2) {
6762 if (e2) {
6763 if ("function" === typeof d2) {
6764 var f2 = d2;
6765 d2 = function() {
6766 var a2 = gl(g2);
6767 f2.call(a2);
6768 };
6769 }
6770 var g2 = el(b2, d2, a, 0, null, false, false, "", pl);
6771 a._reactRootContainer = g2;
6772 a[uf] = g2.current;
6773 sf(8 === a.nodeType ? a.parentNode : a);
6774 Rk();
6775 return g2;
6776 }
6777 for (; e2 = a.lastChild; ) a.removeChild(e2);
6778 if ("function" === typeof d2) {
6779 var h2 = d2;
6780 d2 = function() {
6781 var a2 = gl(k2);
6782 h2.call(a2);
6783 };
6784 }
6785 var k2 = bl(a, 0, false, null, null, false, false, "", pl);
6786 a._reactRootContainer = k2;
6787 a[uf] = k2.current;
6788 sf(8 === a.nodeType ? a.parentNode : a);
6789 Rk(function() {
6790 fl(b2, k2, c2, d2);
6791 });
6792 return k2;
6793 }
6794 function rl(a, b2, c2, d2, e2) {
6795 var f2 = c2._reactRootContainer;
6796 if (f2) {
6797 var g2 = f2;
6798 if ("function" === typeof e2) {
6799 var h2 = e2;
6800 e2 = function() {
6801 var a2 = gl(g2);
6802 h2.call(a2);
6803 };
6804 }
6805 fl(b2, g2, a, e2);
6806 } else g2 = ql(c2, b2, a, e2, d2);
6807 return gl(g2);
6808 }
6809 Ec = function(a) {
6810 switch (a.tag) {
6811 case 3:
6812 var b2 = a.stateNode;
6813 if (b2.current.memoizedState.isDehydrated) {
6814 var c2 = tc(b2.pendingLanes);
6815 0 !== c2 && (Cc(b2, c2 | 1), Dk(b2, B()), 0 === (K & 6) && (Gj = B() + 500, jg()));
6816 }
6817 break;
6818 case 13:
6819 Rk(function() {
6820 var b3 = ih(a, 1);
6821 if (null !== b3) {
6822 var c3 = R();
6823 gi(b3, a, 1, c3);
6824 }
6825 }), il(a, 1);
6826 }
6827 };
6828 Fc = function(a) {
6829 if (13 === a.tag) {
6830 var b2 = ih(a, 134217728);
6831 if (null !== b2) {
6832 var c2 = R();
6833 gi(b2, a, 134217728, c2);
6834 }
6835 il(a, 134217728);
6836 }
6837 };
6838 Gc = function(a) {
6839 if (13 === a.tag) {
6840 var b2 = yi(a), c2 = ih(a, b2);
6841 if (null !== c2) {
6842 var d2 = R();
6843 gi(c2, a, b2, d2);
6844 }
6845 il(a, b2);
6846 }
6847 };
6848 Hc = function() {
6849 return C;
6850 };
6851 Ic = function(a, b2) {
6852 var c2 = C;
6853 try {
6854 return C = a, b2();
6855 } finally {
6856 C = c2;
6857 }
6858 };
6859 yb = function(a, b2, c2) {
6860 switch (b2) {
6861 case "input":
6862 bb(a, c2);
6863 b2 = c2.name;
6864 if ("radio" === c2.type && null != b2) {
6865 for (c2 = a; c2.parentNode; ) c2 = c2.parentNode;
6866 c2 = c2.querySelectorAll("input[name=" + JSON.stringify("" + b2) + '][type="radio"]');
6867 for (b2 = 0; b2 < c2.length; b2++) {
6868 var d2 = c2[b2];
6869 if (d2 !== a && d2.form === a.form) {
6870 var e2 = Db(d2);
6871 if (!e2) throw Error(p$1(90));
6872 Wa(d2);
6873 bb(d2, e2);
6874 }
6875 }
6876 }
6877 break;
6878 case "textarea":
6879 ib(a, c2);
6880 break;
6881 case "select":
6882 b2 = c2.value, null != b2 && fb(a, !!c2.multiple, b2, false);
6883 }
6884 };
6885 Gb = Qk;
6886 Hb = Rk;
6887 var sl = { usingClientEntryPoint: false, Events: [Cb, ue, Db, Eb, Fb, Qk] }, tl = { findFiberByHostInstance: Wc, bundleType: 0, version: "18.3.1", rendererPackageName: "react-dom" };
6888 var ul = { bundleType: tl.bundleType, version: tl.version, rendererPackageName: tl.rendererPackageName, rendererConfig: tl.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, overrideProps: null, overridePropsDeletePath: null, overridePropsRenamePath: null, setErrorHandler: null, setSuspenseHandler: null, scheduleUpdate: null, currentDispatcherRef: ua.ReactCurrentDispatcher, findHostInstanceByFiber: function(a) {
6889 a = Zb(a);
6890 return null === a ? null : a.stateNode;
6891 }, findFiberByHostInstance: tl.findFiberByHostInstance || jl, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, reconcilerVersion: "18.3.1-next-f1338f8080-20240426" };
6892 if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
6893 var vl = __REACT_DEVTOOLS_GLOBAL_HOOK__;
6894 if (!vl.isDisabled && vl.supportsFiber) try {
6895 kc = vl.inject(ul), lc = vl;
6896 } catch (a) {
6897 }
6898 }
6899 reactDom_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = sl;
6900 reactDom_production_min.createPortal = function(a, b2) {
6901 var c2 = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
6902 if (!nl(b2)) throw Error(p$1(200));
6903 return cl(a, b2, null, c2);
6904 };
6905 reactDom_production_min.createRoot = function(a, b2) {
6906 if (!nl(a)) throw Error(p$1(299));
6907 var c2 = false, d2 = "", e2 = kl;
6908 null !== b2 && void 0 !== b2 && (true === b2.unstable_strictMode && (c2 = true), void 0 !== b2.identifierPrefix && (d2 = b2.identifierPrefix), void 0 !== b2.onRecoverableError && (e2 = b2.onRecoverableError));
6909 b2 = bl(a, 1, false, null, null, c2, false, d2, e2);
6910 a[uf] = b2.current;
6911 sf(8 === a.nodeType ? a.parentNode : a);
6912 return new ll(b2);
6913 };
6914 reactDom_production_min.findDOMNode = function(a) {
6915 if (null == a) return null;
6916 if (1 === a.nodeType) return a;
6917 var b2 = a._reactInternals;
6918 if (void 0 === b2) {
6919 if ("function" === typeof a.render) throw Error(p$1(188));
6920 a = Object.keys(a).join(",");
6921 throw Error(p$1(268, a));
6922 }
6923 a = Zb(b2);
6924 a = null === a ? null : a.stateNode;
6925 return a;
6926 };
6927 reactDom_production_min.flushSync = function(a) {
6928 return Rk(a);
6929 };
6930 reactDom_production_min.hydrate = function(a, b2, c2) {
6931 if (!ol(b2)) throw Error(p$1(200));
6932 return rl(null, a, b2, true, c2);
6933 };
6934 reactDom_production_min.hydrateRoot = function(a, b2, c2) {
6935 if (!nl(a)) throw Error(p$1(405));
6936 var d2 = null != c2 && c2.hydratedSources || null, e2 = false, f2 = "", g2 = kl;
6937 null !== c2 && void 0 !== c2 && (true === c2.unstable_strictMode && (e2 = true), void 0 !== c2.identifierPrefix && (f2 = c2.identifierPrefix), void 0 !== c2.onRecoverableError && (g2 = c2.onRecoverableError));
6938 b2 = el(b2, null, a, 1, null != c2 ? c2 : null, e2, false, f2, g2);
6939 a[uf] = b2.current;
6940 sf(a);
6941 if (d2) for (a = 0; a < d2.length; a++) c2 = d2[a], e2 = c2._getVersion, e2 = e2(c2._source), null == b2.mutableSourceEagerHydrationData ? b2.mutableSourceEagerHydrationData = [c2, e2] : b2.mutableSourceEagerHydrationData.push(
6942 c2,
6943 e2
6944 );
6945 return new ml(b2);
6946 };
6947 reactDom_production_min.render = function(a, b2, c2) {
6948 if (!ol(b2)) throw Error(p$1(200));
6949 return rl(null, a, b2, false, c2);
6950 };
6951 reactDom_production_min.unmountComponentAtNode = function(a) {
6952 if (!ol(a)) throw Error(p$1(40));
6953 return a._reactRootContainer ? (Rk(function() {
6954 rl(null, null, a, false, function() {
6955 a._reactRootContainer = null;
6956 a[uf] = null;
6957 });
6958 }), true) : false;
6959 };
6960 reactDom_production_min.unstable_batchedUpdates = Qk;
6961 reactDom_production_min.unstable_renderSubtreeIntoContainer = function(a, b2, c2, d2) {
6962 if (!ol(c2)) throw Error(p$1(200));
6963 if (null == a || void 0 === a._reactInternals) throw Error(p$1(38));
6964 return rl(a, b2, c2, false, d2);
6965 };
6966 reactDom_production_min.version = "18.3.1-next-f1338f8080-20240426";
6967 function checkDCE() {
6968 if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === "undefined" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== "function") {
6969 return;
6970 }
6971 try {
6972 __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
6973 } catch (err) {
6974 console.error(err);
6975 }
6976 }
6977 {
6978 checkDCE();
6979 reactDom.exports = reactDom_production_min;
6980 }
6981 var reactDomExports = reactDom.exports;
6982 var m$1 = reactDomExports;
6983 {
6984 client.createRoot = m$1.createRoot;
6985 client.hydrateRoot = m$1.hydrateRoot;
6986 }
6987 var Subscribable = class {
6988 constructor() {
6989 this.listeners = /* @__PURE__ */ new Set();
6990 this.subscribe = this.subscribe.bind(this);
6991 }
6992 subscribe(listener) {
6993 this.listeners.add(listener);
6994 this.onSubscribe();
6995 return () => {
6996 this.listeners.delete(listener);
6997 this.onUnsubscribe();
6998 };
6999 }
7000 hasListeners() {
7001 return this.listeners.size > 0;
7002 }
7003 onSubscribe() {
7004 }
7005 onUnsubscribe() {
7006 }
7007 };
7008 var defaultTimeoutProvider = {
7009 // We need the wrapper function syntax below instead of direct references to
7010 // global setTimeout etc.
7011 //
7012 // BAD: `setTimeout: setTimeout`
7013 // GOOD: `setTimeout: (cb, delay) => setTimeout(cb, delay)`
7014 //
7015 // If we use direct references here, then anything that wants to spy on or
7016 // replace the global setTimeout (like tests) won't work since we'll already
7017 // have a hard reference to the original implementation at the time when this
7018 // file was imported.
7019 setTimeout: (callback, delay) => setTimeout(callback, delay),
7020 clearTimeout: (timeoutId) => clearTimeout(timeoutId),
7021 setInterval: (callback, delay) => setInterval(callback, delay),
7022 clearInterval: (intervalId) => clearInterval(intervalId)
7023 };
7024 var TimeoutManager = (_a = class {
7025 constructor() {
7026 // We cannot have TimeoutManager<T> as we must instantiate it with a concrete
7027 // type at app boot; and if we leave that type, then any new timer provider
7028 // would need to support ReturnType<typeof setTimeout>, which is infeasible.
7029 //
7030 // We settle for type safety for the TimeoutProvider type, and accept that
7031 // this class is unsafe internally to allow for extension.
7032 __privateAdd(this, _provider, defaultTimeoutProvider);
7033 __privateAdd(this, _providerCalled, false);
7034 }
7035 setTimeoutProvider(provider) {
7036 __privateSet(this, _provider, provider);
7037 }
7038 setTimeout(callback, delay) {
7039 return __privateGet(this, _provider).setTimeout(callback, delay);
7040 }
7041 clearTimeout(timeoutId) {
7042 __privateGet(this, _provider).clearTimeout(timeoutId);
7043 }
7044 setInterval(callback, delay) {
7045 return __privateGet(this, _provider).setInterval(callback, delay);
7046 }
7047 clearInterval(intervalId) {
7048 __privateGet(this, _provider).clearInterval(intervalId);
7049 }
7050 }, _provider = new WeakMap(), _providerCalled = new WeakMap(), _a);
7051 var timeoutManager = new TimeoutManager();
7052 function systemSetTimeoutZero(callback) {
7053 setTimeout(callback, 0);
7054 }
7055 var isServer = typeof window === "undefined" || "Deno" in globalThis;
7056 function noop() {
7057 }
7058 function functionalUpdate(updater, input) {
7059 return typeof updater === "function" ? updater(input) : updater;
7060 }
7061 function isValidTimeout(value) {
7062 return typeof value === "number" && value >= 0 && value !== Infinity;
7063 }
7064 function timeUntilStale(updatedAt, staleTime) {
7065 return Math.max(updatedAt + (staleTime || 0) - Date.now(), 0);
7066 }
7067 function resolveStaleTime(staleTime, query) {
7068 return typeof staleTime === "function" ? staleTime(query) : staleTime;
7069 }
7070 function resolveEnabled(enabled, query) {
7071 return typeof enabled === "function" ? enabled(query) : enabled;
7072 }
7073 function matchQuery(filters, query) {
7074 const {
7075 type = "all",
7076 exact,
7077 fetchStatus,
7078 predicate,
7079 queryKey,
7080 stale
7081 } = filters;
7082 if (queryKey) {
7083 if (exact) {
7084 if (query.queryHash !== hashQueryKeyByOptions(queryKey, query.options)) {
7085 return false;
7086 }
7087 } else if (!partialMatchKey(query.queryKey, queryKey)) {
7088 return false;
7089 }
7090 }
7091 if (type !== "all") {
7092 const isActive = query.isActive();
7093 if (type === "active" && !isActive) {
7094 return false;
7095 }
7096 if (type === "inactive" && isActive) {
7097 return false;
7098 }
7099 }
7100 if (typeof stale === "boolean" && query.isStale() !== stale) {
7101 return false;
7102 }
7103 if (fetchStatus && fetchStatus !== query.state.fetchStatus) {
7104 return false;
7105 }
7106 if (predicate && !predicate(query)) {
7107 return false;
7108 }
7109 return true;
7110 }
7111 function matchMutation(filters, mutation) {
7112 const { exact, status, predicate, mutationKey } = filters;
7113 if (mutationKey) {
7114 if (!mutation.options.mutationKey) {
7115 return false;
7116 }
7117 if (exact) {
7118 if (hashKey(mutation.options.mutationKey) !== hashKey(mutationKey)) {
7119 return false;
7120 }
7121 } else if (!partialMatchKey(mutation.options.mutationKey, mutationKey)) {
7122 return false;
7123 }
7124 }
7125 if (status && mutation.state.status !== status) {
7126 return false;
7127 }
7128 if (predicate && !predicate(mutation)) {
7129 return false;
7130 }
7131 return true;
7132 }
7133 function hashQueryKeyByOptions(queryKey, options) {
7134 const hashFn = (options == null ? void 0 : options.queryKeyHashFn) || hashKey;
7135 return hashFn(queryKey);
7136 }
7137 function hashKey(queryKey) {
7138 return JSON.stringify(
7139 queryKey,
7140 (_, val) => isPlainObject(val) ? Object.keys(val).sort().reduce((result, key) => {
7141 result[key] = val[key];
7142 return result;
7143 }, {}) : val
7144 );
7145 }
7146 function partialMatchKey(a, b2) {
7147 if (a === b2) {
7148 return true;
7149 }
7150 if (typeof a !== typeof b2) {
7151 return false;
7152 }
7153 if (a && b2 && typeof a === "object" && typeof b2 === "object") {
7154 return Object.keys(b2).every((key) => partialMatchKey(a[key], b2[key]));
7155 }
7156 return false;
7157 }
7158 var hasOwn$1 = Object.prototype.hasOwnProperty;
7159 function replaceEqualDeep(a, b2, depth = 0) {
7160 if (a === b2) {
7161 return a;
7162 }
7163 if (depth > 500) return b2;
7164 const array = isPlainArray(a) && isPlainArray(b2);
7165 if (!array && !(isPlainObject(a) && isPlainObject(b2))) return b2;
7166 const aItems = array ? a : Object.keys(a);
7167 const aSize = aItems.length;
7168 const bItems = array ? b2 : Object.keys(b2);
7169 const bSize = bItems.length;
7170 const copy = array ? new Array(bSize) : {};
7171 let equalItems = 0;
7172 for (let i = 0; i < bSize; i++) {
7173 const key = array ? i : bItems[i];
7174 const aItem = a[key];
7175 const bItem = b2[key];
7176 if (aItem === bItem) {
7177 copy[key] = aItem;
7178 if (array ? i < aSize : hasOwn$1.call(a, key)) equalItems++;
7179 continue;
7180 }
7181 if (aItem === null || bItem === null || typeof aItem !== "object" || typeof bItem !== "object") {
7182 copy[key] = bItem;
7183 continue;
7184 }
7185 const v2 = replaceEqualDeep(aItem, bItem, depth + 1);
7186 copy[key] = v2;
7187 if (v2 === aItem) equalItems++;
7188 }
7189 return aSize === bSize && equalItems === aSize ? a : copy;
7190 }
7191 function shallowEqualObjects(a, b2) {
7192 if (!b2 || Object.keys(a).length !== Object.keys(b2).length) {
7193 return false;
7194 }
7195 for (const key in a) {
7196 if (a[key] !== b2[key]) {
7197 return false;
7198 }
7199 }
7200 return true;
7201 }
7202 function isPlainArray(value) {
7203 return Array.isArray(value) && value.length === Object.keys(value).length;
7204 }
7205 function isPlainObject(o) {
7206 if (!hasObjectPrototype(o)) {
7207 return false;
7208 }
7209 const ctor = o.constructor;
7210 if (ctor === void 0) {
7211 return true;
7212 }
7213 const prot = ctor.prototype;
7214 if (!hasObjectPrototype(prot)) {
7215 return false;
7216 }
7217 if (!prot.hasOwnProperty("isPrototypeOf")) {
7218 return false;
7219 }
7220 if (Object.getPrototypeOf(o) !== Object.prototype) {
7221 return false;
7222 }
7223 return true;
7224 }
7225 function hasObjectPrototype(o) {
7226 return Object.prototype.toString.call(o) === "[object Object]";
7227 }
7228 function sleep(timeout) {
7229 return new Promise((resolve) => {
7230 timeoutManager.setTimeout(resolve, timeout);
7231 });
7232 }
7233 function replaceData(prevData, data, options) {
7234 if (typeof options.structuralSharing === "function") {
7235 return options.structuralSharing(prevData, data);
7236 } else if (options.structuralSharing !== false) {
7237 return replaceEqualDeep(prevData, data);
7238 }
7239 return data;
7240 }
7241 function addToEnd(items, item, max = 0) {
7242 const newItems = [...items, item];
7243 return max && newItems.length > max ? newItems.slice(1) : newItems;
7244 }
7245 function addToStart(items, item, max = 0) {
7246 const newItems = [item, ...items];
7247 return max && newItems.length > max ? newItems.slice(0, -1) : newItems;
7248 }
7249 var skipToken = /* @__PURE__ */ Symbol();
7250 function ensureQueryFn(options, fetchOptions) {
7251 if (!options.queryFn && (fetchOptions == null ? void 0 : fetchOptions.initialPromise)) {
7252 return () => fetchOptions.initialPromise;
7253 }
7254 if (!options.queryFn || options.queryFn === skipToken) {
7255 return () => Promise.reject(new Error(`Missing queryFn: '${options.queryHash}'`));
7256 }
7257 return options.queryFn;
7258 }
7259 function shouldThrowError(throwOnError, params) {
7260 if (typeof throwOnError === "function") {
7261 return throwOnError(...params);
7262 }
7263 return !!throwOnError;
7264 }
7265 function addConsumeAwareSignal(object, getSignal, onCancelled) {
7266 let consumed = false;
7267 let signal;
7268 Object.defineProperty(object, "signal", {
7269 enumerable: true,
7270 get: () => {
7271 signal ?? (signal = getSignal());
7272 if (consumed) {
7273 return signal;
7274 }
7275 consumed = true;
7276 if (signal.aborted) {
7277 onCancelled();
7278 } else {
7279 signal.addEventListener("abort", onCancelled, { once: true });
7280 }
7281 return signal;
7282 }
7283 });
7284 return object;
7285 }
7286 var FocusManager = (_b = class extends Subscribable {
7287 constructor() {
7288 super();
7289 __privateAdd(this, _focused);
7290 __privateAdd(this, _cleanup);
7291 __privateAdd(this, _setup);
7292 __privateSet(this, _setup, (onFocus) => {
7293 if (!isServer && window.addEventListener) {
7294 const listener = () => onFocus();
7295 window.addEventListener("visibilitychange", listener, false);
7296 return () => {
7297 window.removeEventListener("visibilitychange", listener);
7298 };
7299 }
7300 return;
7301 });
7302 }
7303 onSubscribe() {
7304 if (!__privateGet(this, _cleanup)) {
7305 this.setEventListener(__privateGet(this, _setup));
7306 }
7307 }
7308 onUnsubscribe() {
7309 var _a2;
7310 if (!this.hasListeners()) {
7311 (_a2 = __privateGet(this, _cleanup)) == null ? void 0 : _a2.call(this);
7312 __privateSet(this, _cleanup, void 0);
7313 }
7314 }
7315 setEventListener(setup) {
7316 var _a2;
7317 __privateSet(this, _setup, setup);
7318 (_a2 = __privateGet(this, _cleanup)) == null ? void 0 : _a2.call(this);
7319 __privateSet(this, _cleanup, setup((focused) => {
7320 if (typeof focused === "boolean") {
7321 this.setFocused(focused);
7322 } else {
7323 this.onFocus();
7324 }
7325 }));
7326 }
7327 setFocused(focused) {
7328 const changed = __privateGet(this, _focused) !== focused;
7329 if (changed) {
7330 __privateSet(this, _focused, focused);
7331 this.onFocus();
7332 }
7333 }
7334 onFocus() {
7335 const isFocused = this.isFocused();
7336 this.listeners.forEach((listener) => {
7337 listener(isFocused);
7338 });
7339 }
7340 isFocused() {
7341 var _a2;
7342 if (typeof __privateGet(this, _focused) === "boolean") {
7343 return __privateGet(this, _focused);
7344 }
7345 return ((_a2 = globalThis.document) == null ? void 0 : _a2.visibilityState) !== "hidden";
7346 }
7347 }, _focused = new WeakMap(), _cleanup = new WeakMap(), _setup = new WeakMap(), _b);
7348 var focusManager = new FocusManager();
7349 function pendingThenable() {
7350 let resolve;
7351 let reject;
7352 const thenable = new Promise((_resolve, _reject) => {
7353 resolve = _resolve;
7354 reject = _reject;
7355 });
7356 thenable.status = "pending";
7357 thenable.catch(() => {
7358 });
7359 function finalize(data) {
7360 Object.assign(thenable, data);
7361 delete thenable.resolve;
7362 delete thenable.reject;
7363 }
7364 thenable.resolve = (value) => {
7365 finalize({
7366 status: "fulfilled",
7367 value
7368 });
7369 resolve(value);
7370 };
7371 thenable.reject = (reason) => {
7372 finalize({
7373 status: "rejected",
7374 reason
7375 });
7376 reject(reason);
7377 };
7378 return thenable;
7379 }
7380 var defaultScheduler = systemSetTimeoutZero;
7381 function createNotifyManager() {
7382 let queue = [];
7383 let transactions = 0;
7384 let notifyFn = (callback) => {
7385 callback();
7386 };
7387 let batchNotifyFn = (callback) => {
7388 callback();
7389 };
7390 let scheduleFn = defaultScheduler;
7391 const schedule = (callback) => {
7392 if (transactions) {
7393 queue.push(callback);
7394 } else {
7395 scheduleFn(() => {
7396 notifyFn(callback);
7397 });
7398 }
7399 };
7400 const flush = () => {
7401 const originalQueue = queue;
7402 queue = [];
7403 if (originalQueue.length) {
7404 scheduleFn(() => {
7405 batchNotifyFn(() => {
7406 originalQueue.forEach((callback) => {
7407 notifyFn(callback);
7408 });
7409 });
7410 });
7411 }
7412 };
7413 return {
7414 batch: (callback) => {
7415 let result;
7416 transactions++;
7417 try {
7418 result = callback();
7419 } finally {
7420 transactions--;
7421 if (!transactions) {
7422 flush();
7423 }
7424 }
7425 return result;
7426 },
7427 /**
7428 * All calls to the wrapped function will be batched.
7429 */
7430 batchCalls: (callback) => {
7431 return (...args) => {
7432 schedule(() => {
7433 callback(...args);
7434 });
7435 };
7436 },
7437 schedule,
7438 /**
7439 * Use this method to set a custom notify function.
7440 * This can be used to for example wrap notifications with `React.act` while running tests.
7441 */
7442 setNotifyFunction: (fn) => {
7443 notifyFn = fn;
7444 },
7445 /**
7446 * Use this method to set a custom function to batch notifications together into a single tick.
7447 * By default React Query will use the batch function provided by ReactDOM or React Native.
7448 */
7449 setBatchNotifyFunction: (fn) => {
7450 batchNotifyFn = fn;
7451 },
7452 setScheduler: (fn) => {
7453 scheduleFn = fn;
7454 }
7455 };
7456 }
7457 var notifyManager = createNotifyManager();
7458 var OnlineManager = (_c = class extends Subscribable {
7459 constructor() {
7460 super();
7461 __privateAdd(this, _online, true);
7462 __privateAdd(this, _cleanup2);
7463 __privateAdd(this, _setup2);
7464 __privateSet(this, _setup2, (onOnline) => {
7465 if (!isServer && window.addEventListener) {
7466 const onlineListener = () => onOnline(true);
7467 const offlineListener = () => onOnline(false);
7468 window.addEventListener("online", onlineListener, false);
7469 window.addEventListener("offline", offlineListener, false);
7470 return () => {
7471 window.removeEventListener("online", onlineListener);
7472 window.removeEventListener("offline", offlineListener);
7473 };
7474 }
7475 return;
7476 });
7477 }
7478 onSubscribe() {
7479 if (!__privateGet(this, _cleanup2)) {
7480 this.setEventListener(__privateGet(this, _setup2));
7481 }
7482 }
7483 onUnsubscribe() {
7484 var _a2;
7485 if (!this.hasListeners()) {
7486 (_a2 = __privateGet(this, _cleanup2)) == null ? void 0 : _a2.call(this);
7487 __privateSet(this, _cleanup2, void 0);
7488 }
7489 }
7490 setEventListener(setup) {
7491 var _a2;
7492 __privateSet(this, _setup2, setup);
7493 (_a2 = __privateGet(this, _cleanup2)) == null ? void 0 : _a2.call(this);
7494 __privateSet(this, _cleanup2, setup(this.setOnline.bind(this)));
7495 }
7496 setOnline(online) {
7497 const changed = __privateGet(this, _online) !== online;
7498 if (changed) {
7499 __privateSet(this, _online, online);
7500 this.listeners.forEach((listener) => {
7501 listener(online);
7502 });
7503 }
7504 }
7505 isOnline() {
7506 return __privateGet(this, _online);
7507 }
7508 }, _online = new WeakMap(), _cleanup2 = new WeakMap(), _setup2 = new WeakMap(), _c);
7509 var onlineManager = new OnlineManager();
7510 function defaultRetryDelay(failureCount) {
7511 return Math.min(1e3 * 2 ** failureCount, 3e4);
7512 }
7513 function canFetch(networkMode) {
7514 return (networkMode ?? "online") === "online" ? onlineManager.isOnline() : true;
7515 }
7516 var CancelledError = class extends Error {
7517 constructor(options) {
7518 super("CancelledError");
7519 this.revert = options == null ? void 0 : options.revert;
7520 this.silent = options == null ? void 0 : options.silent;
7521 }
7522 };
7523 function createRetryer(config) {
7524 let isRetryCancelled = false;
7525 let failureCount = 0;
7526 let continueFn;
7527 const thenable = pendingThenable();
7528 const isResolved = () => thenable.status !== "pending";
7529 const cancel = (cancelOptions) => {
7530 var _a2;
7531 if (!isResolved()) {
7532 const error = new CancelledError(cancelOptions);
7533 reject(error);
7534 (_a2 = config.onCancel) == null ? void 0 : _a2.call(config, error);
7535 }
7536 };
7537 const cancelRetry = () => {
7538 isRetryCancelled = true;
7539 };
7540 const continueRetry = () => {
7541 isRetryCancelled = false;
7542 };
7543 const canContinue = () => focusManager.isFocused() && (config.networkMode === "always" || onlineManager.isOnline()) && config.canRun();
7544 const canStart = () => canFetch(config.networkMode) && config.canRun();
7545 const resolve = (value) => {
7546 if (!isResolved()) {
7547 continueFn == null ? void 0 : continueFn();
7548 thenable.resolve(value);
7549 }
7550 };
7551 const reject = (value) => {
7552 if (!isResolved()) {
7553 continueFn == null ? void 0 : continueFn();
7554 thenable.reject(value);
7555 }
7556 };
7557 const pause = () => {
7558 return new Promise((continueResolve) => {
7559 var _a2;
7560 continueFn = (value) => {
7561 if (isResolved() || canContinue()) {
7562 continueResolve(value);
7563 }
7564 };
7565 (_a2 = config.onPause) == null ? void 0 : _a2.call(config);
7566 }).then(() => {
7567 var _a2;
7568 continueFn = void 0;
7569 if (!isResolved()) {
7570 (_a2 = config.onContinue) == null ? void 0 : _a2.call(config);
7571 }
7572 });
7573 };
7574 const run = () => {
7575 if (isResolved()) {
7576 return;
7577 }
7578 let promiseOrValue;
7579 const initialPromise = failureCount === 0 ? config.initialPromise : void 0;
7580 try {
7581 promiseOrValue = initialPromise ?? config.fn();
7582 } catch (error) {
7583 promiseOrValue = Promise.reject(error);
7584 }
7585 Promise.resolve(promiseOrValue).then(resolve).catch((error) => {
7586 var _a2;
7587 if (isResolved()) {
7588 return;
7589 }
7590 const retry = config.retry ?? (isServer ? 0 : 3);
7591 const retryDelay = config.retryDelay ?? defaultRetryDelay;
7592 const delay = typeof retryDelay === "function" ? retryDelay(failureCount, error) : retryDelay;
7593 const shouldRetry = retry === true || typeof retry === "number" && failureCount < retry || typeof retry === "function" && retry(failureCount, error);
7594 if (isRetryCancelled || !shouldRetry) {
7595 reject(error);
7596 return;
7597 }
7598 failureCount++;
7599 (_a2 = config.onFail) == null ? void 0 : _a2.call(config, failureCount, error);
7600 sleep(delay).then(() => {
7601 return canContinue() ? void 0 : pause();
7602 }).then(() => {
7603 if (isRetryCancelled) {
7604 reject(error);
7605 } else {
7606 run();
7607 }
7608 });
7609 });
7610 };
7611 return {
7612 promise: thenable,
7613 status: () => thenable.status,
7614 cancel,
7615 continue: () => {
7616 continueFn == null ? void 0 : continueFn();
7617 return thenable;
7618 },
7619 cancelRetry,
7620 continueRetry,
7621 canStart,
7622 start: () => {
7623 if (canStart()) {
7624 run();
7625 } else {
7626 pause().then(run);
7627 }
7628 return thenable;
7629 }
7630 };
7631 }
7632 var Removable = (_d = class {
7633 constructor() {
7634 __privateAdd(this, _gcTimeout);
7635 }
7636 destroy() {
7637 this.clearGcTimeout();
7638 }
7639 scheduleGc() {
7640 this.clearGcTimeout();
7641 if (isValidTimeout(this.gcTime)) {
7642 __privateSet(this, _gcTimeout, timeoutManager.setTimeout(() => {
7643 this.optionalRemove();
7644 }, this.gcTime));
7645 }
7646 }
7647 updateGcTime(newGcTime) {
7648 this.gcTime = Math.max(
7649 this.gcTime || 0,
7650 newGcTime ?? (isServer ? Infinity : 5 * 60 * 1e3)
7651 );
7652 }
7653 clearGcTimeout() {
7654 if (__privateGet(this, _gcTimeout)) {
7655 timeoutManager.clearTimeout(__privateGet(this, _gcTimeout));
7656 __privateSet(this, _gcTimeout, void 0);
7657 }
7658 }
7659 }, _gcTimeout = new WeakMap(), _d);
7660 var Query = (_e = class extends Removable {
7661 constructor(config) {
7662 super();
7663 __privateAdd(this, _Query_instances);
7664 __privateAdd(this, _initialState);
7665 __privateAdd(this, _revertState);
7666 __privateAdd(this, _cache);
7667 __privateAdd(this, _client);
7668 __privateAdd(this, _retryer);
7669 __privateAdd(this, _defaultOptions);
7670 __privateAdd(this, _abortSignalConsumed);
7671 __privateSet(this, _abortSignalConsumed, false);
7672 __privateSet(this, _defaultOptions, config.defaultOptions);
7673 this.setOptions(config.options);
7674 this.observers = [];
7675 __privateSet(this, _client, config.client);
7676 __privateSet(this, _cache, __privateGet(this, _client).getQueryCache());
7677 this.queryKey = config.queryKey;
7678 this.queryHash = config.queryHash;
7679 __privateSet(this, _initialState, getDefaultState$1(this.options));
7680 this.state = config.state ?? __privateGet(this, _initialState);
7681 this.scheduleGc();
7682 }
7683 get meta() {
7684 return this.options.meta;
7685 }
7686 get promise() {
7687 var _a2;
7688 return (_a2 = __privateGet(this, _retryer)) == null ? void 0 : _a2.promise;
7689 }
7690 setOptions(options) {
7691 this.options = { ...__privateGet(this, _defaultOptions), ...options };
7692 this.updateGcTime(this.options.gcTime);
7693 if (this.state && this.state.data === void 0) {
7694 const defaultState = getDefaultState$1(this.options);
7695 if (defaultState.data !== void 0) {
7696 this.setState(
7697 successState(defaultState.data, defaultState.dataUpdatedAt)
7698 );
7699 __privateSet(this, _initialState, defaultState);
7700 }
7701 }
7702 }
7703 optionalRemove() {
7704 if (!this.observers.length && this.state.fetchStatus === "idle") {
7705 __privateGet(this, _cache).remove(this);
7706 }
7707 }
7708 setData(newData, options) {
7709 const data = replaceData(this.state.data, newData, this.options);
7710 __privateMethod(this, _Query_instances, dispatch_fn).call(this, {
7711 data,
7712 type: "success",
7713 dataUpdatedAt: options == null ? void 0 : options.updatedAt,
7714 manual: options == null ? void 0 : options.manual
7715 });
7716 return data;
7717 }
7718 setState(state, setStateOptions) {
7719 __privateMethod(this, _Query_instances, dispatch_fn).call(this, { type: "setState", state, setStateOptions });
7720 }
7721 cancel(options) {
7722 var _a2, _b2;
7723 const promise = (_a2 = __privateGet(this, _retryer)) == null ? void 0 : _a2.promise;
7724 (_b2 = __privateGet(this, _retryer)) == null ? void 0 : _b2.cancel(options);
7725 return promise ? promise.then(noop).catch(noop) : Promise.resolve();
7726 }
7727 destroy() {
7728 super.destroy();
7729 this.cancel({ silent: true });
7730 }
7731 reset() {
7732 this.destroy();
7733 this.setState(__privateGet(this, _initialState));
7734 }
7735 isActive() {
7736 return this.observers.some(
7737 (observer) => resolveEnabled(observer.options.enabled, this) !== false
7738 );
7739 }
7740 isDisabled() {
7741 if (this.getObserversCount() > 0) {
7742 return !this.isActive();
7743 }
7744 return this.options.queryFn === skipToken || this.state.dataUpdateCount + this.state.errorUpdateCount === 0;
7745 }
7746 isStatic() {
7747 if (this.getObserversCount() > 0) {
7748 return this.observers.some(
7749 (observer) => resolveStaleTime(observer.options.staleTime, this) === "static"
7750 );
7751 }
7752 return false;
7753 }
7754 isStale() {
7755 if (this.getObserversCount() > 0) {
7756 return this.observers.some(
7757 (observer) => observer.getCurrentResult().isStale
7758 );
7759 }
7760 return this.state.data === void 0 || this.state.isInvalidated;
7761 }
7762 isStaleByTime(staleTime = 0) {
7763 if (this.state.data === void 0) {
7764 return true;
7765 }
7766 if (staleTime === "static") {
7767 return false;
7768 }
7769 if (this.state.isInvalidated) {
7770 return true;
7771 }
7772 return !timeUntilStale(this.state.dataUpdatedAt, staleTime);
7773 }
7774 onFocus() {
7775 var _a2;
7776 const observer = this.observers.find((x2) => x2.shouldFetchOnWindowFocus());
7777 observer == null ? void 0 : observer.refetch({ cancelRefetch: false });
7778 (_a2 = __privateGet(this, _retryer)) == null ? void 0 : _a2.continue();
7779 }
7780 onOnline() {
7781 var _a2;
7782 const observer = this.observers.find((x2) => x2.shouldFetchOnReconnect());
7783 observer == null ? void 0 : observer.refetch({ cancelRefetch: false });
7784 (_a2 = __privateGet(this, _retryer)) == null ? void 0 : _a2.continue();
7785 }
7786 addObserver(observer) {
7787 if (!this.observers.includes(observer)) {
7788 this.observers.push(observer);
7789 this.clearGcTimeout();
7790 __privateGet(this, _cache).notify({ type: "observerAdded", query: this, observer });
7791 }
7792 }
7793 removeObserver(observer) {
7794 if (this.observers.includes(observer)) {
7795 this.observers = this.observers.filter((x2) => x2 !== observer);
7796 if (!this.observers.length) {
7797 if (__privateGet(this, _retryer)) {
7798 if (__privateGet(this, _abortSignalConsumed)) {
7799 __privateGet(this, _retryer).cancel({ revert: true });
7800 } else {
7801 __privateGet(this, _retryer).cancelRetry();
7802 }
7803 }
7804 this.scheduleGc();
7805 }
7806 __privateGet(this, _cache).notify({ type: "observerRemoved", query: this, observer });
7807 }
7808 }
7809 getObserversCount() {
7810 return this.observers.length;
7811 }
7812 invalidate() {
7813 if (!this.state.isInvalidated) {
7814 __privateMethod(this, _Query_instances, dispatch_fn).call(this, { type: "invalidate" });
7815 }
7816 }
7817 async fetch(options, fetchOptions) {
7818 var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l;
7819 if (this.state.fetchStatus !== "idle" && // If the promise in the retryer is already rejected, we have to definitely
7820 // re-start the fetch; there is a chance that the query is still in a
7821 // pending state when that happens
7822 ((_a2 = __privateGet(this, _retryer)) == null ? void 0 : _a2.status()) !== "rejected") {
7823 if (this.state.data !== void 0 && (fetchOptions == null ? void 0 : fetchOptions.cancelRefetch)) {
7824 this.cancel({ silent: true });
7825 } else if (__privateGet(this, _retryer)) {
7826 __privateGet(this, _retryer).continueRetry();
7827 return __privateGet(this, _retryer).promise;
7828 }
7829 }
7830 if (options) {
7831 this.setOptions(options);
7832 }
7833 if (!this.options.queryFn) {
7834 const observer = this.observers.find((x2) => x2.options.queryFn);
7835 if (observer) {
7836 this.setOptions(observer.options);
7837 }
7838 }
7839 const abortController = new AbortController();
7840 const addSignalProperty = (object) => {
7841 Object.defineProperty(object, "signal", {
7842 enumerable: true,
7843 get: () => {
7844 __privateSet(this, _abortSignalConsumed, true);
7845 return abortController.signal;
7846 }
7847 });
7848 };
7849 const fetchFn = () => {
7850 const queryFn = ensureQueryFn(this.options, fetchOptions);
7851 const createQueryFnContext = () => {
7852 const queryFnContext2 = {
7853 client: __privateGet(this, _client),
7854 queryKey: this.queryKey,
7855 meta: this.meta
7856 };
7857 addSignalProperty(queryFnContext2);
7858 return queryFnContext2;
7859 };
7860 const queryFnContext = createQueryFnContext();
7861 __privateSet(this, _abortSignalConsumed, false);
7862 if (this.options.persister) {
7863 return this.options.persister(
7864 queryFn,
7865 queryFnContext,
7866 this
7867 );
7868 }
7869 return queryFn(queryFnContext);
7870 };
7871 const createFetchContext = () => {
7872 const context2 = {
7873 fetchOptions,
7874 options: this.options,
7875 queryKey: this.queryKey,
7876 client: __privateGet(this, _client),
7877 state: this.state,
7878 fetchFn
7879 };
7880 addSignalProperty(context2);
7881 return context2;
7882 };
7883 const context = createFetchContext();
7884 (_b2 = this.options.behavior) == null ? void 0 : _b2.onFetch(context, this);
7885 __privateSet(this, _revertState, this.state);
7886 if (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((_c2 = context.fetchOptions) == null ? void 0 : _c2.meta)) {
7887 __privateMethod(this, _Query_instances, dispatch_fn).call(this, { type: "fetch", meta: (_d2 = context.fetchOptions) == null ? void 0 : _d2.meta });
7888 }
7889 __privateSet(this, _retryer, createRetryer({
7890 initialPromise: fetchOptions == null ? void 0 : fetchOptions.initialPromise,
7891 fn: context.fetchFn,
7892 onCancel: (error) => {
7893 if (error instanceof CancelledError && error.revert) {
7894 this.setState({
7895 ...__privateGet(this, _revertState),
7896 fetchStatus: "idle"
7897 });
7898 }
7899 abortController.abort();
7900 },
7901 onFail: (failureCount, error) => {
7902 __privateMethod(this, _Query_instances, dispatch_fn).call(this, { type: "failed", failureCount, error });
7903 },
7904 onPause: () => {
7905 __privateMethod(this, _Query_instances, dispatch_fn).call(this, { type: "pause" });
7906 },
7907 onContinue: () => {
7908 __privateMethod(this, _Query_instances, dispatch_fn).call(this, { type: "continue" });
7909 },
7910 retry: context.options.retry,
7911 retryDelay: context.options.retryDelay,
7912 networkMode: context.options.networkMode,
7913 canRun: () => true
7914 }));
7915 try {
7916 const data = await __privateGet(this, _retryer).start();
7917 if (data === void 0) {
7918 if (false) ;
7919 throw new Error(`${this.queryHash} data is undefined`);
7920 }
7921 this.setData(data);
7922 (_f2 = (_e2 = __privateGet(this, _cache).config).onSuccess) == null ? void 0 : _f2.call(_e2, data, this);
7923 (_h2 = (_g2 = __privateGet(this, _cache).config).onSettled) == null ? void 0 : _h2.call(
7924 _g2,
7925 data,
7926 this.state.error,
7927 this
7928 );
7929 return data;
7930 } catch (error) {
7931 if (error instanceof CancelledError) {
7932 if (error.silent) {
7933 return __privateGet(this, _retryer).promise;
7934 } else if (error.revert) {
7935 if (this.state.data === void 0) {
7936 throw error;
7937 }
7938 return this.state.data;
7939 }
7940 }
7941 __privateMethod(this, _Query_instances, dispatch_fn).call(this, {
7942 type: "error",
7943 error
7944 });
7945 (_j2 = (_i2 = __privateGet(this, _cache).config).onError) == null ? void 0 : _j2.call(
7946 _i2,
7947 error,
7948 this
7949 );
7950 (_l = (_k2 = __privateGet(this, _cache).config).onSettled) == null ? void 0 : _l.call(
7951 _k2,
7952 this.state.data,
7953 error,
7954 this
7955 );
7956 throw error;
7957 } finally {
7958 this.scheduleGc();
7959 }
7960 }
7961 }, _initialState = new WeakMap(), _revertState = new WeakMap(), _cache = new WeakMap(), _client = new WeakMap(), _retryer = new WeakMap(), _defaultOptions = new WeakMap(), _abortSignalConsumed = new WeakMap(), _Query_instances = new WeakSet(), dispatch_fn = function(action) {
7962 const reducer = (state) => {
7963 switch (action.type) {
7964 case "failed":
7965 return {
7966 ...state,
7967 fetchFailureCount: action.failureCount,
7968 fetchFailureReason: action.error
7969 };
7970 case "pause":
7971 return {
7972 ...state,
7973 fetchStatus: "paused"
7974 };
7975 case "continue":
7976 return {
7977 ...state,
7978 fetchStatus: "fetching"
7979 };
7980 case "fetch":
7981 return {
7982 ...state,
7983 ...fetchState(state.data, this.options),
7984 fetchMeta: action.meta ?? null
7985 };
7986 case "success":
7987 const newState = {
7988 ...state,
7989 ...successState(action.data, action.dataUpdatedAt),
7990 dataUpdateCount: state.dataUpdateCount + 1,
7991 ...!action.manual && {
7992 fetchStatus: "idle",
7993 fetchFailureCount: 0,
7994 fetchFailureReason: null
7995 }
7996 };
7997 __privateSet(this, _revertState, action.manual ? newState : void 0);
7998 return newState;
7999 case "error":
8000 const error = action.error;
8001 return {
8002 ...state,
8003 error,
8004 errorUpdateCount: state.errorUpdateCount + 1,
8005 errorUpdatedAt: Date.now(),
8006 fetchFailureCount: state.fetchFailureCount + 1,
8007 fetchFailureReason: error,
8008 fetchStatus: "idle",
8009 status: "error",
8010 // flag existing data as invalidated if we get a background error
8011 // note that "no data" always means stale so we can set unconditionally here
8012 isInvalidated: true
8013 };
8014 case "invalidate":
8015 return {
8016 ...state,
8017 isInvalidated: true
8018 };
8019 case "setState":
8020 return {
8021 ...state,
8022 ...action.state
8023 };
8024 }
8025 };
8026 this.state = reducer(this.state);
8027 notifyManager.batch(() => {
8028 this.observers.forEach((observer) => {
8029 observer.onQueryUpdate();
8030 });
8031 __privateGet(this, _cache).notify({ query: this, type: "updated", action });
8032 });
8033 }, _e);
8034 function fetchState(data, options) {
8035 return {
8036 fetchFailureCount: 0,
8037 fetchFailureReason: null,
8038 fetchStatus: canFetch(options.networkMode) ? "fetching" : "paused",
8039 ...data === void 0 && {
8040 error: null,
8041 status: "pending"
8042 }
8043 };
8044 }
8045 function successState(data, dataUpdatedAt) {
8046 return {
8047 data,
8048 dataUpdatedAt: dataUpdatedAt ?? Date.now(),
8049 error: null,
8050 isInvalidated: false,
8051 status: "success"
8052 };
8053 }
8054 function getDefaultState$1(options) {
8055 const data = typeof options.initialData === "function" ? options.initialData() : options.initialData;
8056 const hasData = data !== void 0;
8057 const initialDataUpdatedAt = hasData ? typeof options.initialDataUpdatedAt === "function" ? options.initialDataUpdatedAt() : options.initialDataUpdatedAt : 0;
8058 return {
8059 data,
8060 dataUpdateCount: 0,
8061 dataUpdatedAt: hasData ? initialDataUpdatedAt ?? Date.now() : 0,
8062 error: null,
8063 errorUpdateCount: 0,
8064 errorUpdatedAt: 0,
8065 fetchFailureCount: 0,
8066 fetchFailureReason: null,
8067 fetchMeta: null,
8068 isInvalidated: false,
8069 status: hasData ? "success" : "pending",
8070 fetchStatus: "idle"
8071 };
8072 }
8073 var QueryObserver = (_f = class extends Subscribable {
8074 constructor(client2, options) {
8075 super();
8076 __privateAdd(this, _QueryObserver_instances);
8077 __privateAdd(this, _client2);
8078 __privateAdd(this, _currentQuery);
8079 __privateAdd(this, _currentQueryInitialState);
8080 __privateAdd(this, _currentResult);
8081 __privateAdd(this, _currentResultState);
8082 __privateAdd(this, _currentResultOptions);
8083 __privateAdd(this, _currentThenable);
8084 __privateAdd(this, _selectError);
8085 __privateAdd(this, _selectFn);
8086 __privateAdd(this, _selectResult);
8087 // This property keeps track of the last query with defined data.
8088 // It will be used to pass the previous data and query to the placeholder function between renders.
8089 __privateAdd(this, _lastQueryWithDefinedData);
8090 __privateAdd(this, _staleTimeoutId);
8091 __privateAdd(this, _refetchIntervalId);
8092 __privateAdd(this, _currentRefetchInterval);
8093 __privateAdd(this, _trackedProps, /* @__PURE__ */ new Set());
8094 this.options = options;
8095 __privateSet(this, _client2, client2);
8096 __privateSet(this, _selectError, null);
8097 __privateSet(this, _currentThenable, pendingThenable());
8098 this.bindMethods();
8099 this.setOptions(options);
8100 }
8101 bindMethods() {
8102 this.refetch = this.refetch.bind(this);
8103 }
8104 onSubscribe() {
8105 if (this.listeners.size === 1) {
8106 __privateGet(this, _currentQuery).addObserver(this);
8107 if (shouldFetchOnMount(__privateGet(this, _currentQuery), this.options)) {
8108 __privateMethod(this, _QueryObserver_instances, executeFetch_fn).call(this);
8109 } else {
8110 this.updateResult();
8111 }
8112 __privateMethod(this, _QueryObserver_instances, updateTimers_fn).call(this);
8113 }
8114 }
8115 onUnsubscribe() {
8116 if (!this.hasListeners()) {
8117 this.destroy();
8118 }
8119 }
8120 shouldFetchOnReconnect() {
8121 return shouldFetchOn(
8122 __privateGet(this, _currentQuery),
8123 this.options,
8124 this.options.refetchOnReconnect
8125 );
8126 }
8127 shouldFetchOnWindowFocus() {
8128 return shouldFetchOn(
8129 __privateGet(this, _currentQuery),
8130 this.options,
8131 this.options.refetchOnWindowFocus
8132 );
8133 }
8134 destroy() {
8135 this.listeners = /* @__PURE__ */ new Set();
8136 __privateMethod(this, _QueryObserver_instances, clearStaleTimeout_fn).call(this);
8137 __privateMethod(this, _QueryObserver_instances, clearRefetchInterval_fn).call(this);
8138 __privateGet(this, _currentQuery).removeObserver(this);
8139 }
8140 setOptions(options) {
8141 const prevOptions = this.options;
8142 const prevQuery = __privateGet(this, _currentQuery);
8143 this.options = __privateGet(this, _client2).defaultQueryOptions(options);
8144 if (this.options.enabled !== void 0 && typeof this.options.enabled !== "boolean" && typeof this.options.enabled !== "function" && typeof resolveEnabled(this.options.enabled, __privateGet(this, _currentQuery)) !== "boolean") {
8145 throw new Error(
8146 "Expected enabled to be a boolean or a callback that returns a boolean"
8147 );
8148 }
8149 __privateMethod(this, _QueryObserver_instances, updateQuery_fn).call(this);
8150 __privateGet(this, _currentQuery).setOptions(this.options);
8151 if (prevOptions._defaulted && !shallowEqualObjects(this.options, prevOptions)) {
8152 __privateGet(this, _client2).getQueryCache().notify({
8153 type: "observerOptionsUpdated",
8154 query: __privateGet(this, _currentQuery),
8155 observer: this
8156 });
8157 }
8158 const mounted = this.hasListeners();
8159 if (mounted && shouldFetchOptionally(
8160 __privateGet(this, _currentQuery),
8161 prevQuery,
8162 this.options,
8163 prevOptions
8164 )) {
8165 __privateMethod(this, _QueryObserver_instances, executeFetch_fn).call(this);
8166 }
8167 this.updateResult();
8168 if (mounted && (__privateGet(this, _currentQuery) !== prevQuery || resolveEnabled(this.options.enabled, __privateGet(this, _currentQuery)) !== resolveEnabled(prevOptions.enabled, __privateGet(this, _currentQuery)) || resolveStaleTime(this.options.staleTime, __privateGet(this, _currentQuery)) !== resolveStaleTime(prevOptions.staleTime, __privateGet(this, _currentQuery)))) {
8169 __privateMethod(this, _QueryObserver_instances, updateStaleTimeout_fn).call(this);
8170 }
8171 const nextRefetchInterval = __privateMethod(this, _QueryObserver_instances, computeRefetchInterval_fn).call(this);
8172 if (mounted && (__privateGet(this, _currentQuery) !== prevQuery || resolveEnabled(this.options.enabled, __privateGet(this, _currentQuery)) !== resolveEnabled(prevOptions.enabled, __privateGet(this, _currentQuery)) || nextRefetchInterval !== __privateGet(this, _currentRefetchInterval))) {
8173 __privateMethod(this, _QueryObserver_instances, updateRefetchInterval_fn).call(this, nextRefetchInterval);
8174 }
8175 }
8176 getOptimisticResult(options) {
8177 const query = __privateGet(this, _client2).getQueryCache().build(__privateGet(this, _client2), options);
8178 const result = this.createResult(query, options);
8179 if (shouldAssignObserverCurrentProperties(this, result)) {
8180 __privateSet(this, _currentResult, result);
8181 __privateSet(this, _currentResultOptions, this.options);
8182 __privateSet(this, _currentResultState, __privateGet(this, _currentQuery).state);
8183 }
8184 return result;
8185 }
8186 getCurrentResult() {
8187 return __privateGet(this, _currentResult);
8188 }
8189 trackResult(result, onPropTracked) {
8190 return new Proxy(result, {
8191 get: (target, key) => {
8192 this.trackProp(key);
8193 onPropTracked == null ? void 0 : onPropTracked(key);
8194 if (key === "promise") {
8195 this.trackProp("data");
8196 if (!this.options.experimental_prefetchInRender && __privateGet(this, _currentThenable).status === "pending") {
8197 __privateGet(this, _currentThenable).reject(
8198 new Error(
8199 "experimental_prefetchInRender feature flag is not enabled"
8200 )
8201 );
8202 }
8203 }
8204 return Reflect.get(target, key);
8205 }
8206 });
8207 }
8208 trackProp(key) {
8209 __privateGet(this, _trackedProps).add(key);
8210 }
8211 getCurrentQuery() {
8212 return __privateGet(this, _currentQuery);
8213 }
8214 refetch({ ...options } = {}) {
8215 return this.fetch({
8216 ...options
8217 });
8218 }
8219 fetchOptimistic(options) {
8220 const defaultedOptions = __privateGet(this, _client2).defaultQueryOptions(options);
8221 const query = __privateGet(this, _client2).getQueryCache().build(__privateGet(this, _client2), defaultedOptions);
8222 return query.fetch().then(() => this.createResult(query, defaultedOptions));
8223 }
8224 fetch(fetchOptions) {
8225 return __privateMethod(this, _QueryObserver_instances, executeFetch_fn).call(this, {
8226 ...fetchOptions,
8227 cancelRefetch: fetchOptions.cancelRefetch ?? true
8228 }).then(() => {
8229 this.updateResult();
8230 return __privateGet(this, _currentResult);
8231 });
8232 }
8233 createResult(query, options) {
8234 var _a2;
8235 const prevQuery = __privateGet(this, _currentQuery);
8236 const prevOptions = this.options;
8237 const prevResult = __privateGet(this, _currentResult);
8238 const prevResultState = __privateGet(this, _currentResultState);
8239 const prevResultOptions = __privateGet(this, _currentResultOptions);
8240 const queryChange = query !== prevQuery;
8241 const queryInitialState = queryChange ? query.state : __privateGet(this, _currentQueryInitialState);
8242 const { state } = query;
8243 let newState = { ...state };
8244 let isPlaceholderData = false;
8245 let data;
8246 if (options._optimisticResults) {
8247 const mounted = this.hasListeners();
8248 const fetchOnMount = !mounted && shouldFetchOnMount(query, options);
8249 const fetchOptionally = mounted && shouldFetchOptionally(query, prevQuery, options, prevOptions);
8250 if (fetchOnMount || fetchOptionally) {
8251 newState = {
8252 ...newState,
8253 ...fetchState(state.data, query.options)
8254 };
8255 }
8256 if (options._optimisticResults === "isRestoring") {
8257 newState.fetchStatus = "idle";
8258 }
8259 }
8260 let { error, errorUpdatedAt, status } = newState;
8261 data = newState.data;
8262 let skipSelect = false;
8263 if (options.placeholderData !== void 0 && data === void 0 && status === "pending") {
8264 let placeholderData;
8265 if ((prevResult == null ? void 0 : prevResult.isPlaceholderData) && options.placeholderData === (prevResultOptions == null ? void 0 : prevResultOptions.placeholderData)) {
8266 placeholderData = prevResult.data;
8267 skipSelect = true;
8268 } else {
8269 placeholderData = typeof options.placeholderData === "function" ? options.placeholderData(
8270 (_a2 = __privateGet(this, _lastQueryWithDefinedData)) == null ? void 0 : _a2.state.data,
8271 __privateGet(this, _lastQueryWithDefinedData)
8272 ) : options.placeholderData;
8273 }
8274 if (placeholderData !== void 0) {
8275 status = "success";
8276 data = replaceData(
8277 prevResult == null ? void 0 : prevResult.data,
8278 placeholderData,
8279 options
8280 );
8281 isPlaceholderData = true;
8282 }
8283 }
8284 if (options.select && data !== void 0 && !skipSelect) {
8285 if (prevResult && data === (prevResultState == null ? void 0 : prevResultState.data) && options.select === __privateGet(this, _selectFn)) {
8286 data = __privateGet(this, _selectResult);
8287 } else {
8288 try {
8289 __privateSet(this, _selectFn, options.select);
8290 data = options.select(data);
8291 data = replaceData(prevResult == null ? void 0 : prevResult.data, data, options);
8292 __privateSet(this, _selectResult, data);
8293 __privateSet(this, _selectError, null);
8294 } catch (selectError) {
8295 __privateSet(this, _selectError, selectError);
8296 }
8297 }
8298 }
8299 if (__privateGet(this, _selectError)) {
8300 error = __privateGet(this, _selectError);
8301 data = __privateGet(this, _selectResult);
8302 errorUpdatedAt = Date.now();
8303 status = "error";
8304 }
8305 const isFetching = newState.fetchStatus === "fetching";
8306 const isPending = status === "pending";
8307 const isError = status === "error";
8308 const isLoading = isPending && isFetching;
8309 const hasData = data !== void 0;
8310 const result = {
8311 status,
8312 fetchStatus: newState.fetchStatus,
8313 isPending,
8314 isSuccess: status === "success",
8315 isError,
8316 isInitialLoading: isLoading,
8317 isLoading,
8318 data,
8319 dataUpdatedAt: newState.dataUpdatedAt,
8320 error,
8321 errorUpdatedAt,
8322 failureCount: newState.fetchFailureCount,
8323 failureReason: newState.fetchFailureReason,
8324 errorUpdateCount: newState.errorUpdateCount,
8325 isFetched: newState.dataUpdateCount > 0 || newState.errorUpdateCount > 0,
8326 isFetchedAfterMount: newState.dataUpdateCount > queryInitialState.dataUpdateCount || newState.errorUpdateCount > queryInitialState.errorUpdateCount,
8327 isFetching,
8328 isRefetching: isFetching && !isPending,
8329 isLoadingError: isError && !hasData,
8330 isPaused: newState.fetchStatus === "paused",
8331 isPlaceholderData,
8332 isRefetchError: isError && hasData,
8333 isStale: isStale(query, options),
8334 refetch: this.refetch,
8335 promise: __privateGet(this, _currentThenable),
8336 isEnabled: resolveEnabled(options.enabled, query) !== false
8337 };
8338 const nextResult = result;
8339 if (this.options.experimental_prefetchInRender) {
8340 const hasResultData = nextResult.data !== void 0;
8341 const isErrorWithoutData = nextResult.status === "error" && !hasResultData;
8342 const finalizeThenableIfPossible = (thenable) => {
8343 if (isErrorWithoutData) {
8344 thenable.reject(nextResult.error);
8345 } else if (hasResultData) {
8346 thenable.resolve(nextResult.data);
8347 }
8348 };
8349 const recreateThenable = () => {
8350 const pending = __privateSet(this, _currentThenable, nextResult.promise = pendingThenable());
8351 finalizeThenableIfPossible(pending);
8352 };
8353 const prevThenable = __privateGet(this, _currentThenable);
8354 switch (prevThenable.status) {
8355 case "pending":
8356 if (query.queryHash === prevQuery.queryHash) {
8357 finalizeThenableIfPossible(prevThenable);
8358 }
8359 break;
8360 case "fulfilled":
8361 if (isErrorWithoutData || nextResult.data !== prevThenable.value) {
8362 recreateThenable();
8363 }
8364 break;
8365 case "rejected":
8366 if (!isErrorWithoutData || nextResult.error !== prevThenable.reason) {
8367 recreateThenable();
8368 }
8369 break;
8370 }
8371 }
8372 return nextResult;
8373 }
8374 updateResult() {
8375 const prevResult = __privateGet(this, _currentResult);
8376 const nextResult = this.createResult(__privateGet(this, _currentQuery), this.options);
8377 __privateSet(this, _currentResultState, __privateGet(this, _currentQuery).state);
8378 __privateSet(this, _currentResultOptions, this.options);
8379 if (__privateGet(this, _currentResultState).data !== void 0) {
8380 __privateSet(this, _lastQueryWithDefinedData, __privateGet(this, _currentQuery));
8381 }
8382 if (shallowEqualObjects(nextResult, prevResult)) {
8383 return;
8384 }
8385 __privateSet(this, _currentResult, nextResult);
8386 const shouldNotifyListeners = () => {
8387 if (!prevResult) {
8388 return true;
8389 }
8390 const { notifyOnChangeProps } = this.options;
8391 const notifyOnChangePropsValue = typeof notifyOnChangeProps === "function" ? notifyOnChangeProps() : notifyOnChangeProps;
8392 if (notifyOnChangePropsValue === "all" || !notifyOnChangePropsValue && !__privateGet(this, _trackedProps).size) {
8393 return true;
8394 }
8395 const includedProps = new Set(
8396 notifyOnChangePropsValue ?? __privateGet(this, _trackedProps)
8397 );
8398 if (this.options.throwOnError) {
8399 includedProps.add("error");
8400 }
8401 return Object.keys(__privateGet(this, _currentResult)).some((key) => {
8402 const typedKey = key;
8403 const changed = __privateGet(this, _currentResult)[typedKey] !== prevResult[typedKey];
8404 return changed && includedProps.has(typedKey);
8405 });
8406 };
8407 __privateMethod(this, _QueryObserver_instances, notify_fn).call(this, { listeners: shouldNotifyListeners() });
8408 }
8409 onQueryUpdate() {
8410 this.updateResult();
8411 if (this.hasListeners()) {
8412 __privateMethod(this, _QueryObserver_instances, updateTimers_fn).call(this);
8413 }
8414 }
8415 }, _client2 = new WeakMap(), _currentQuery = new WeakMap(), _currentQueryInitialState = new WeakMap(), _currentResult = new WeakMap(), _currentResultState = new WeakMap(), _currentResultOptions = new WeakMap(), _currentThenable = new WeakMap(), _selectError = new WeakMap(), _selectFn = new WeakMap(), _selectResult = new WeakMap(), _lastQueryWithDefinedData = new WeakMap(), _staleTimeoutId = new WeakMap(), _refetchIntervalId = new WeakMap(), _currentRefetchInterval = new WeakMap(), _trackedProps = new WeakMap(), _QueryObserver_instances = new WeakSet(), executeFetch_fn = function(fetchOptions) {
8416 __privateMethod(this, _QueryObserver_instances, updateQuery_fn).call(this);
8417 let promise = __privateGet(this, _currentQuery).fetch(
8418 this.options,
8419 fetchOptions
8420 );
8421 if (!(fetchOptions == null ? void 0 : fetchOptions.throwOnError)) {
8422 promise = promise.catch(noop);
8423 }
8424 return promise;
8425 }, updateStaleTimeout_fn = function() {
8426 __privateMethod(this, _QueryObserver_instances, clearStaleTimeout_fn).call(this);
8427 const staleTime = resolveStaleTime(
8428 this.options.staleTime,
8429 __privateGet(this, _currentQuery)
8430 );
8431 if (isServer || __privateGet(this, _currentResult).isStale || !isValidTimeout(staleTime)) {
8432 return;
8433 }
8434 const time = timeUntilStale(__privateGet(this, _currentResult).dataUpdatedAt, staleTime);
8435 const timeout = time + 1;
8436 __privateSet(this, _staleTimeoutId, timeoutManager.setTimeout(() => {
8437 if (!__privateGet(this, _currentResult).isStale) {
8438 this.updateResult();
8439 }
8440 }, timeout));
8441 }, computeRefetchInterval_fn = function() {
8442 return (typeof this.options.refetchInterval === "function" ? this.options.refetchInterval(__privateGet(this, _currentQuery)) : this.options.refetchInterval) ?? false;
8443 }, updateRefetchInterval_fn = function(nextInterval) {
8444 __privateMethod(this, _QueryObserver_instances, clearRefetchInterval_fn).call(this);
8445 __privateSet(this, _currentRefetchInterval, nextInterval);
8446 if (isServer || resolveEnabled(this.options.enabled, __privateGet(this, _currentQuery)) === false || !isValidTimeout(__privateGet(this, _currentRefetchInterval)) || __privateGet(this, _currentRefetchInterval) === 0) {
8447 return;
8448 }
8449 __privateSet(this, _refetchIntervalId, timeoutManager.setInterval(() => {
8450 if (this.options.refetchIntervalInBackground || focusManager.isFocused()) {
8451 __privateMethod(this, _QueryObserver_instances, executeFetch_fn).call(this);
8452 }
8453 }, __privateGet(this, _currentRefetchInterval)));
8454 }, updateTimers_fn = function() {
8455 __privateMethod(this, _QueryObserver_instances, updateStaleTimeout_fn).call(this);
8456 __privateMethod(this, _QueryObserver_instances, updateRefetchInterval_fn).call(this, __privateMethod(this, _QueryObserver_instances, computeRefetchInterval_fn).call(this));
8457 }, clearStaleTimeout_fn = function() {
8458 if (__privateGet(this, _staleTimeoutId)) {
8459 timeoutManager.clearTimeout(__privateGet(this, _staleTimeoutId));
8460 __privateSet(this, _staleTimeoutId, void 0);
8461 }
8462 }, clearRefetchInterval_fn = function() {
8463 if (__privateGet(this, _refetchIntervalId)) {
8464 timeoutManager.clearInterval(__privateGet(this, _refetchIntervalId));
8465 __privateSet(this, _refetchIntervalId, void 0);
8466 }
8467 }, updateQuery_fn = function() {
8468 const query = __privateGet(this, _client2).getQueryCache().build(__privateGet(this, _client2), this.options);
8469 if (query === __privateGet(this, _currentQuery)) {
8470 return;
8471 }
8472 const prevQuery = __privateGet(this, _currentQuery);
8473 __privateSet(this, _currentQuery, query);
8474 __privateSet(this, _currentQueryInitialState, query.state);
8475 if (this.hasListeners()) {
8476 prevQuery == null ? void 0 : prevQuery.removeObserver(this);
8477 query.addObserver(this);
8478 }
8479 }, notify_fn = function(notifyOptions) {
8480 notifyManager.batch(() => {
8481 if (notifyOptions.listeners) {
8482 this.listeners.forEach((listener) => {
8483 listener(__privateGet(this, _currentResult));
8484 });
8485 }
8486 __privateGet(this, _client2).getQueryCache().notify({
8487 query: __privateGet(this, _currentQuery),
8488 type: "observerResultsUpdated"
8489 });
8490 });
8491 }, _f);
8492 function shouldLoadOnMount(query, options) {
8493 return resolveEnabled(options.enabled, query) !== false && query.state.data === void 0 && !(query.state.status === "error" && options.retryOnMount === false);
8494 }
8495 function shouldFetchOnMount(query, options) {
8496 return shouldLoadOnMount(query, options) || query.state.data !== void 0 && shouldFetchOn(query, options, options.refetchOnMount);
8497 }
8498 function shouldFetchOn(query, options, field) {
8499 if (resolveEnabled(options.enabled, query) !== false && resolveStaleTime(options.staleTime, query) !== "static") {
8500 const value = typeof field === "function" ? field(query) : field;
8501 return value === "always" || value !== false && isStale(query, options);
8502 }
8503 return false;
8504 }
8505 function shouldFetchOptionally(query, prevQuery, options, prevOptions) {
8506 return (query !== prevQuery || resolveEnabled(prevOptions.enabled, query) === false) && (!options.suspense || query.state.status !== "error") && isStale(query, options);
8507 }
8508 function isStale(query, options) {
8509 return resolveEnabled(options.enabled, query) !== false && query.isStaleByTime(resolveStaleTime(options.staleTime, query));
8510 }
8511 function shouldAssignObserverCurrentProperties(observer, optimisticResult) {
8512 if (!shallowEqualObjects(observer.getCurrentResult(), optimisticResult)) {
8513 return true;
8514 }
8515 return false;
8516 }
8517 function infiniteQueryBehavior(pages) {
8518 return {
8519 onFetch: (context, query) => {
8520 var _a2, _b2, _c2, _d2, _e2;
8521 const options = context.options;
8522 const direction = (_c2 = (_b2 = (_a2 = context.fetchOptions) == null ? void 0 : _a2.meta) == null ? void 0 : _b2.fetchMore) == null ? void 0 : _c2.direction;
8523 const oldPages = ((_d2 = context.state.data) == null ? void 0 : _d2.pages) || [];
8524 const oldPageParams = ((_e2 = context.state.data) == null ? void 0 : _e2.pageParams) || [];
8525 let result = { pages: [], pageParams: [] };
8526 let currentPage = 0;
8527 const fetchFn = async () => {
8528 let cancelled = false;
8529 const addSignalProperty = (object) => {
8530 addConsumeAwareSignal(
8531 object,
8532 () => context.signal,
8533 () => cancelled = true
8534 );
8535 };
8536 const queryFn = ensureQueryFn(context.options, context.fetchOptions);
8537 const fetchPage = async (data, param, previous) => {
8538 if (cancelled) {
8539 return Promise.reject();
8540 }
8541 if (param == null && data.pages.length) {
8542 return Promise.resolve(data);
8543 }
8544 const createQueryFnContext = () => {
8545 const queryFnContext2 = {
8546 client: context.client,
8547 queryKey: context.queryKey,
8548 pageParam: param,
8549 direction: previous ? "backward" : "forward",
8550 meta: context.options.meta
8551 };
8552 addSignalProperty(queryFnContext2);
8553 return queryFnContext2;
8554 };
8555 const queryFnContext = createQueryFnContext();
8556 const page = await queryFn(queryFnContext);
8557 const { maxPages } = context.options;
8558 const addTo = previous ? addToStart : addToEnd;
8559 return {
8560 pages: addTo(data.pages, page, maxPages),
8561 pageParams: addTo(data.pageParams, param, maxPages)
8562 };
8563 };
8564 if (direction && oldPages.length) {
8565 const previous = direction === "backward";
8566 const pageParamFn = previous ? getPreviousPageParam : getNextPageParam;
8567 const oldData = {
8568 pages: oldPages,
8569 pageParams: oldPageParams
8570 };
8571 const param = pageParamFn(options, oldData);
8572 result = await fetchPage(oldData, param, previous);
8573 } else {
8574 const remainingPages = pages ?? oldPages.length;
8575 do {
8576 const param = currentPage === 0 ? oldPageParams[0] ?? options.initialPageParam : getNextPageParam(options, result);
8577 if (currentPage > 0 && param == null) {
8578 break;
8579 }
8580 result = await fetchPage(result, param);
8581 currentPage++;
8582 } while (currentPage < remainingPages);
8583 }
8584 return result;
8585 };
8586 if (context.options.persister) {
8587 context.fetchFn = () => {
8588 var _a3, _b3;
8589 return (_b3 = (_a3 = context.options).persister) == null ? void 0 : _b3.call(
8590 _a3,
8591 fetchFn,
8592 {
8593 client: context.client,
8594 queryKey: context.queryKey,
8595 meta: context.options.meta,
8596 signal: context.signal
8597 },
8598 query
8599 );
8600 };
8601 } else {
8602 context.fetchFn = fetchFn;
8603 }
8604 }
8605 };
8606 }
8607 function getNextPageParam(options, { pages, pageParams }) {
8608 const lastIndex = pages.length - 1;
8609 return pages.length > 0 ? options.getNextPageParam(
8610 pages[lastIndex],
8611 pages,
8612 pageParams[lastIndex],
8613 pageParams
8614 ) : void 0;
8615 }
8616 function getPreviousPageParam(options, { pages, pageParams }) {
8617 var _a2;
8618 return pages.length > 0 ? (_a2 = options.getPreviousPageParam) == null ? void 0 : _a2.call(options, pages[0], pages, pageParams[0], pageParams) : void 0;
8619 }
8620 var Mutation = (_g = class extends Removable {
8621 constructor(config) {
8622 super();
8623 __privateAdd(this, _Mutation_instances);
8624 __privateAdd(this, _client3);
8625 __privateAdd(this, _observers);
8626 __privateAdd(this, _mutationCache);
8627 __privateAdd(this, _retryer2);
8628 __privateSet(this, _client3, config.client);
8629 this.mutationId = config.mutationId;
8630 __privateSet(this, _mutationCache, config.mutationCache);
8631 __privateSet(this, _observers, []);
8632 this.state = config.state || getDefaultState();
8633 this.setOptions(config.options);
8634 this.scheduleGc();
8635 }
8636 setOptions(options) {
8637 this.options = options;
8638 this.updateGcTime(this.options.gcTime);
8639 }
8640 get meta() {
8641 return this.options.meta;
8642 }
8643 addObserver(observer) {
8644 if (!__privateGet(this, _observers).includes(observer)) {
8645 __privateGet(this, _observers).push(observer);
8646 this.clearGcTimeout();
8647 __privateGet(this, _mutationCache).notify({
8648 type: "observerAdded",
8649 mutation: this,
8650 observer
8651 });
8652 }
8653 }
8654 removeObserver(observer) {
8655 __privateSet(this, _observers, __privateGet(this, _observers).filter((x2) => x2 !== observer));
8656 this.scheduleGc();
8657 __privateGet(this, _mutationCache).notify({
8658 type: "observerRemoved",
8659 mutation: this,
8660 observer
8661 });
8662 }
8663 optionalRemove() {
8664 if (!__privateGet(this, _observers).length) {
8665 if (this.state.status === "pending") {
8666 this.scheduleGc();
8667 } else {
8668 __privateGet(this, _mutationCache).remove(this);
8669 }
8670 }
8671 }
8672 continue() {
8673 var _a2;
8674 return ((_a2 = __privateGet(this, _retryer2)) == null ? void 0 : _a2.continue()) ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before
8675 this.execute(this.state.variables);
8676 }
8677 async execute(variables) {
8678 var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l, _m, _n, _o, _p, _q, _r;
8679 const onContinue = () => {
8680 __privateMethod(this, _Mutation_instances, dispatch_fn2).call(this, { type: "continue" });
8681 };
8682 const mutationFnContext = {
8683 client: __privateGet(this, _client3),
8684 meta: this.options.meta,
8685 mutationKey: this.options.mutationKey
8686 };
8687 __privateSet(this, _retryer2, createRetryer({
8688 fn: () => {
8689 if (!this.options.mutationFn) {
8690 return Promise.reject(new Error("No mutationFn found"));
8691 }
8692 return this.options.mutationFn(variables, mutationFnContext);
8693 },
8694 onFail: (failureCount, error) => {
8695 __privateMethod(this, _Mutation_instances, dispatch_fn2).call(this, { type: "failed", failureCount, error });
8696 },
8697 onPause: () => {
8698 __privateMethod(this, _Mutation_instances, dispatch_fn2).call(this, { type: "pause" });
8699 },
8700 onContinue,
8701 retry: this.options.retry ?? 0,
8702 retryDelay: this.options.retryDelay,
8703 networkMode: this.options.networkMode,
8704 canRun: () => __privateGet(this, _mutationCache).canRun(this)
8705 }));
8706 const restored = this.state.status === "pending";
8707 const isPaused = !__privateGet(this, _retryer2).canStart();
8708 try {
8709 if (restored) {
8710 onContinue();
8711 } else {
8712 __privateMethod(this, _Mutation_instances, dispatch_fn2).call(this, { type: "pending", variables, isPaused });
8713 if (__privateGet(this, _mutationCache).config.onMutate) {
8714 await __privateGet(this, _mutationCache).config.onMutate(
8715 variables,
8716 this,
8717 mutationFnContext
8718 );
8719 }
8720 const context = await ((_b2 = (_a2 = this.options).onMutate) == null ? void 0 : _b2.call(
8721 _a2,
8722 variables,
8723 mutationFnContext
8724 ));
8725 if (context !== this.state.context) {
8726 __privateMethod(this, _Mutation_instances, dispatch_fn2).call(this, {
8727 type: "pending",
8728 context,
8729 variables,
8730 isPaused
8731 });
8732 }
8733 }
8734 const data = await __privateGet(this, _retryer2).start();
8735 await ((_d2 = (_c2 = __privateGet(this, _mutationCache).config).onSuccess) == null ? void 0 : _d2.call(
8736 _c2,
8737 data,
8738 variables,
8739 this.state.context,
8740 this,
8741 mutationFnContext
8742 ));
8743 await ((_f2 = (_e2 = this.options).onSuccess) == null ? void 0 : _f2.call(
8744 _e2,
8745 data,
8746 variables,
8747 this.state.context,
8748 mutationFnContext
8749 ));
8750 await ((_h2 = (_g2 = __privateGet(this, _mutationCache).config).onSettled) == null ? void 0 : _h2.call(
8751 _g2,
8752 data,
8753 null,
8754 this.state.variables,
8755 this.state.context,
8756 this,
8757 mutationFnContext
8758 ));
8759 await ((_j2 = (_i2 = this.options).onSettled) == null ? void 0 : _j2.call(
8760 _i2,
8761 data,
8762 null,
8763 variables,
8764 this.state.context,
8765 mutationFnContext
8766 ));
8767 __privateMethod(this, _Mutation_instances, dispatch_fn2).call(this, { type: "success", data });
8768 return data;
8769 } catch (error) {
8770 try {
8771 await ((_l = (_k2 = __privateGet(this, _mutationCache).config).onError) == null ? void 0 : _l.call(
8772 _k2,
8773 error,
8774 variables,
8775 this.state.context,
8776 this,
8777 mutationFnContext
8778 ));
8779 } catch (e2) {
8780 void Promise.reject(e2);
8781 }
8782 try {
8783 await ((_n = (_m = this.options).onError) == null ? void 0 : _n.call(
8784 _m,
8785 error,
8786 variables,
8787 this.state.context,
8788 mutationFnContext
8789 ));
8790 } catch (e2) {
8791 void Promise.reject(e2);
8792 }
8793 try {
8794 await ((_p = (_o = __privateGet(this, _mutationCache).config).onSettled) == null ? void 0 : _p.call(
8795 _o,
8796 void 0,
8797 error,
8798 this.state.variables,
8799 this.state.context,
8800 this,
8801 mutationFnContext
8802 ));
8803 } catch (e2) {
8804 void Promise.reject(e2);
8805 }
8806 try {
8807 await ((_r = (_q = this.options).onSettled) == null ? void 0 : _r.call(
8808 _q,
8809 void 0,
8810 error,
8811 variables,
8812 this.state.context,
8813 mutationFnContext
8814 ));
8815 } catch (e2) {
8816 void Promise.reject(e2);
8817 }
8818 __privateMethod(this, _Mutation_instances, dispatch_fn2).call(this, { type: "error", error });
8819 throw error;
8820 } finally {
8821 __privateGet(this, _mutationCache).runNext(this);
8822 }
8823 }
8824 }, _client3 = new WeakMap(), _observers = new WeakMap(), _mutationCache = new WeakMap(), _retryer2 = new WeakMap(), _Mutation_instances = new WeakSet(), dispatch_fn2 = function(action) {
8825 const reducer = (state) => {
8826 switch (action.type) {
8827 case "failed":
8828 return {
8829 ...state,
8830 failureCount: action.failureCount,
8831 failureReason: action.error
8832 };
8833 case "pause":
8834 return {
8835 ...state,
8836 isPaused: true
8837 };
8838 case "continue":
8839 return {
8840 ...state,
8841 isPaused: false
8842 };
8843 case "pending":
8844 return {
8845 ...state,
8846 context: action.context,
8847 data: void 0,
8848 failureCount: 0,
8849 failureReason: null,
8850 error: null,
8851 isPaused: action.isPaused,
8852 status: "pending",
8853 variables: action.variables,
8854 submittedAt: Date.now()
8855 };
8856 case "success":
8857 return {
8858 ...state,
8859 data: action.data,
8860 failureCount: 0,
8861 failureReason: null,
8862 error: null,
8863 status: "success",
8864 isPaused: false
8865 };
8866 case "error":
8867 return {
8868 ...state,
8869 data: void 0,
8870 error: action.error,
8871 failureCount: state.failureCount + 1,
8872 failureReason: action.error,
8873 isPaused: false,
8874 status: "error"
8875 };
8876 }
8877 };
8878 this.state = reducer(this.state);
8879 notifyManager.batch(() => {
8880 __privateGet(this, _observers).forEach((observer) => {
8881 observer.onMutationUpdate(action);
8882 });
8883 __privateGet(this, _mutationCache).notify({
8884 mutation: this,
8885 type: "updated",
8886 action
8887 });
8888 });
8889 }, _g);
8890 function getDefaultState() {
8891 return {
8892 context: void 0,
8893 data: void 0,
8894 error: null,
8895 failureCount: 0,
8896 failureReason: null,
8897 isPaused: false,
8898 status: "idle",
8899 variables: void 0,
8900 submittedAt: 0
8901 };
8902 }
8903 var MutationCache = (_h = class extends Subscribable {
8904 constructor(config = {}) {
8905 super();
8906 __privateAdd(this, _mutations);
8907 __privateAdd(this, _scopes);
8908 __privateAdd(this, _mutationId);
8909 this.config = config;
8910 __privateSet(this, _mutations, /* @__PURE__ */ new Set());
8911 __privateSet(this, _scopes, /* @__PURE__ */ new Map());
8912 __privateSet(this, _mutationId, 0);
8913 }
8914 build(client2, options, state) {
8915 const mutation = new Mutation({
8916 client: client2,
8917 mutationCache: this,
8918 mutationId: ++__privateWrapper(this, _mutationId)._,
8919 options: client2.defaultMutationOptions(options),
8920 state
8921 });
8922 this.add(mutation);
8923 return mutation;
8924 }
8925 add(mutation) {
8926 __privateGet(this, _mutations).add(mutation);
8927 const scope = scopeFor(mutation);
8928 if (typeof scope === "string") {
8929 const scopedMutations = __privateGet(this, _scopes).get(scope);
8930 if (scopedMutations) {
8931 scopedMutations.push(mutation);
8932 } else {
8933 __privateGet(this, _scopes).set(scope, [mutation]);
8934 }
8935 }
8936 this.notify({ type: "added", mutation });
8937 }
8938 remove(mutation) {
8939 if (__privateGet(this, _mutations).delete(mutation)) {
8940 const scope = scopeFor(mutation);
8941 if (typeof scope === "string") {
8942 const scopedMutations = __privateGet(this, _scopes).get(scope);
8943 if (scopedMutations) {
8944 if (scopedMutations.length > 1) {
8945 const index = scopedMutations.indexOf(mutation);
8946 if (index !== -1) {
8947 scopedMutations.splice(index, 1);
8948 }
8949 } else if (scopedMutations[0] === mutation) {
8950 __privateGet(this, _scopes).delete(scope);
8951 }
8952 }
8953 }
8954 }
8955 this.notify({ type: "removed", mutation });
8956 }
8957 canRun(mutation) {
8958 const scope = scopeFor(mutation);
8959 if (typeof scope === "string") {
8960 const mutationsWithSameScope = __privateGet(this, _scopes).get(scope);
8961 const firstPendingMutation = mutationsWithSameScope == null ? void 0 : mutationsWithSameScope.find(
8962 (m2) => m2.state.status === "pending"
8963 );
8964 return !firstPendingMutation || firstPendingMutation === mutation;
8965 } else {
8966 return true;
8967 }
8968 }
8969 runNext(mutation) {
8970 var _a2;
8971 const scope = scopeFor(mutation);
8972 if (typeof scope === "string") {
8973 const foundMutation = (_a2 = __privateGet(this, _scopes).get(scope)) == null ? void 0 : _a2.find((m2) => m2 !== mutation && m2.state.isPaused);
8974 return (foundMutation == null ? void 0 : foundMutation.continue()) ?? Promise.resolve();
8975 } else {
8976 return Promise.resolve();
8977 }
8978 }
8979 clear() {
8980 notifyManager.batch(() => {
8981 __privateGet(this, _mutations).forEach((mutation) => {
8982 this.notify({ type: "removed", mutation });
8983 });
8984 __privateGet(this, _mutations).clear();
8985 __privateGet(this, _scopes).clear();
8986 });
8987 }
8988 getAll() {
8989 return Array.from(__privateGet(this, _mutations));
8990 }
8991 find(filters) {
8992 const defaultedFilters = { exact: true, ...filters };
8993 return this.getAll().find(
8994 (mutation) => matchMutation(defaultedFilters, mutation)
8995 );
8996 }
8997 findAll(filters = {}) {
8998 return this.getAll().filter((mutation) => matchMutation(filters, mutation));
8999 }
9000 notify(event) {
9001 notifyManager.batch(() => {
9002 this.listeners.forEach((listener) => {
9003 listener(event);
9004 });
9005 });
9006 }
9007 resumePausedMutations() {
9008 const pausedMutations = this.getAll().filter((x2) => x2.state.isPaused);
9009 return notifyManager.batch(
9010 () => Promise.all(
9011 pausedMutations.map((mutation) => mutation.continue().catch(noop))
9012 )
9013 );
9014 }
9015 }, _mutations = new WeakMap(), _scopes = new WeakMap(), _mutationId = new WeakMap(), _h);
9016 function scopeFor(mutation) {
9017 var _a2;
9018 return (_a2 = mutation.options.scope) == null ? void 0 : _a2.id;
9019 }
9020 var MutationObserver$1 = (_i = class extends Subscribable {
9021 constructor(client2, options) {
9022 super();
9023 __privateAdd(this, _MutationObserver_instances);
9024 __privateAdd(this, _client4);
9025 __privateAdd(this, _currentResult2);
9026 __privateAdd(this, _currentMutation);
9027 __privateAdd(this, _mutateOptions);
9028 __privateSet(this, _client4, client2);
9029 this.setOptions(options);
9030 this.bindMethods();
9031 __privateMethod(this, _MutationObserver_instances, updateResult_fn).call(this);
9032 }
9033 bindMethods() {
9034 this.mutate = this.mutate.bind(this);
9035 this.reset = this.reset.bind(this);
9036 }
9037 setOptions(options) {
9038 var _a2;
9039 const prevOptions = this.options;
9040 this.options = __privateGet(this, _client4).defaultMutationOptions(options);
9041 if (!shallowEqualObjects(this.options, prevOptions)) {
9042 __privateGet(this, _client4).getMutationCache().notify({
9043 type: "observerOptionsUpdated",
9044 mutation: __privateGet(this, _currentMutation),
9045 observer: this
9046 });
9047 }
9048 if ((prevOptions == null ? void 0 : prevOptions.mutationKey) && this.options.mutationKey && hashKey(prevOptions.mutationKey) !== hashKey(this.options.mutationKey)) {
9049 this.reset();
9050 } else if (((_a2 = __privateGet(this, _currentMutation)) == null ? void 0 : _a2.state.status) === "pending") {
9051 __privateGet(this, _currentMutation).setOptions(this.options);
9052 }
9053 }
9054 onUnsubscribe() {
9055 var _a2;
9056 if (!this.hasListeners()) {
9057 (_a2 = __privateGet(this, _currentMutation)) == null ? void 0 : _a2.removeObserver(this);
9058 }
9059 }
9060 onMutationUpdate(action) {
9061 __privateMethod(this, _MutationObserver_instances, updateResult_fn).call(this);
9062 __privateMethod(this, _MutationObserver_instances, notify_fn2).call(this, action);
9063 }
9064 getCurrentResult() {
9065 return __privateGet(this, _currentResult2);
9066 }
9067 reset() {
9068 var _a2;
9069 (_a2 = __privateGet(this, _currentMutation)) == null ? void 0 : _a2.removeObserver(this);
9070 __privateSet(this, _currentMutation, void 0);
9071 __privateMethod(this, _MutationObserver_instances, updateResult_fn).call(this);
9072 __privateMethod(this, _MutationObserver_instances, notify_fn2).call(this);
9073 }
9074 mutate(variables, options) {
9075 var _a2;
9076 __privateSet(this, _mutateOptions, options);
9077 (_a2 = __privateGet(this, _currentMutation)) == null ? void 0 : _a2.removeObserver(this);
9078 __privateSet(this, _currentMutation, __privateGet(this, _client4).getMutationCache().build(__privateGet(this, _client4), this.options));
9079 __privateGet(this, _currentMutation).addObserver(this);
9080 return __privateGet(this, _currentMutation).execute(variables);
9081 }
9082 }, _client4 = new WeakMap(), _currentResult2 = new WeakMap(), _currentMutation = new WeakMap(), _mutateOptions = new WeakMap(), _MutationObserver_instances = new WeakSet(), updateResult_fn = function() {
9083 var _a2;
9084 const state = ((_a2 = __privateGet(this, _currentMutation)) == null ? void 0 : _a2.state) ?? getDefaultState();
9085 __privateSet(this, _currentResult2, {
9086 ...state,
9087 isPending: state.status === "pending",
9088 isSuccess: state.status === "success",
9089 isError: state.status === "error",
9090 isIdle: state.status === "idle",
9091 mutate: this.mutate,
9092 reset: this.reset
9093 });
9094 }, notify_fn2 = function(action) {
9095 notifyManager.batch(() => {
9096 var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2;
9097 if (__privateGet(this, _mutateOptions) && this.hasListeners()) {
9098 const variables = __privateGet(this, _currentResult2).variables;
9099 const onMutateResult = __privateGet(this, _currentResult2).context;
9100 const context = {
9101 client: __privateGet(this, _client4),
9102 meta: this.options.meta,
9103 mutationKey: this.options.mutationKey
9104 };
9105 if ((action == null ? void 0 : action.type) === "success") {
9106 try {
9107 (_b2 = (_a2 = __privateGet(this, _mutateOptions)).onSuccess) == null ? void 0 : _b2.call(
9108 _a2,
9109 action.data,
9110 variables,
9111 onMutateResult,
9112 context
9113 );
9114 } catch (e2) {
9115 void Promise.reject(e2);
9116 }
9117 try {
9118 (_d2 = (_c2 = __privateGet(this, _mutateOptions)).onSettled) == null ? void 0 : _d2.call(
9119 _c2,
9120 action.data,
9121 null,
9122 variables,
9123 onMutateResult,
9124 context
9125 );
9126 } catch (e2) {
9127 void Promise.reject(e2);
9128 }
9129 } else if ((action == null ? void 0 : action.type) === "error") {
9130 try {
9131 (_f2 = (_e2 = __privateGet(this, _mutateOptions)).onError) == null ? void 0 : _f2.call(
9132 _e2,
9133 action.error,
9134 variables,
9135 onMutateResult,
9136 context
9137 );
9138 } catch (e2) {
9139 void Promise.reject(e2);
9140 }
9141 try {
9142 (_h2 = (_g2 = __privateGet(this, _mutateOptions)).onSettled) == null ? void 0 : _h2.call(
9143 _g2,
9144 void 0,
9145 action.error,
9146 variables,
9147 onMutateResult,
9148 context
9149 );
9150 } catch (e2) {
9151 void Promise.reject(e2);
9152 }
9153 }
9154 }
9155 this.listeners.forEach((listener) => {
9156 listener(__privateGet(this, _currentResult2));
9157 });
9158 });
9159 }, _i);
9160 var QueryCache = (_j = class extends Subscribable {
9161 constructor(config = {}) {
9162 super();
9163 __privateAdd(this, _queries);
9164 this.config = config;
9165 __privateSet(this, _queries, /* @__PURE__ */ new Map());
9166 }
9167 build(client2, options, state) {
9168 const queryKey = options.queryKey;
9169 const queryHash = options.queryHash ?? hashQueryKeyByOptions(queryKey, options);
9170 let query = this.get(queryHash);
9171 if (!query) {
9172 query = new Query({
9173 client: client2,
9174 queryKey,
9175 queryHash,
9176 options: client2.defaultQueryOptions(options),
9177 state,
9178 defaultOptions: client2.getQueryDefaults(queryKey)
9179 });
9180 this.add(query);
9181 }
9182 return query;
9183 }
9184 add(query) {
9185 if (!__privateGet(this, _queries).has(query.queryHash)) {
9186 __privateGet(this, _queries).set(query.queryHash, query);
9187 this.notify({
9188 type: "added",
9189 query
9190 });
9191 }
9192 }
9193 remove(query) {
9194 const queryInMap = __privateGet(this, _queries).get(query.queryHash);
9195 if (queryInMap) {
9196 query.destroy();
9197 if (queryInMap === query) {
9198 __privateGet(this, _queries).delete(query.queryHash);
9199 }
9200 this.notify({ type: "removed", query });
9201 }
9202 }
9203 clear() {
9204 notifyManager.batch(() => {
9205 this.getAll().forEach((query) => {
9206 this.remove(query);
9207 });
9208 });
9209 }
9210 get(queryHash) {
9211 return __privateGet(this, _queries).get(queryHash);
9212 }
9213 getAll() {
9214 return [...__privateGet(this, _queries).values()];
9215 }
9216 find(filters) {
9217 const defaultedFilters = { exact: true, ...filters };
9218 return this.getAll().find(
9219 (query) => matchQuery(defaultedFilters, query)
9220 );
9221 }
9222 findAll(filters = {}) {
9223 const queries = this.getAll();
9224 return Object.keys(filters).length > 0 ? queries.filter((query) => matchQuery(filters, query)) : queries;
9225 }
9226 notify(event) {
9227 notifyManager.batch(() => {
9228 this.listeners.forEach((listener) => {
9229 listener(event);
9230 });
9231 });
9232 }
9233 onFocus() {
9234 notifyManager.batch(() => {
9235 this.getAll().forEach((query) => {
9236 query.onFocus();
9237 });
9238 });
9239 }
9240 onOnline() {
9241 notifyManager.batch(() => {
9242 this.getAll().forEach((query) => {
9243 query.onOnline();
9244 });
9245 });
9246 }
9247 }, _queries = new WeakMap(), _j);
9248 var QueryClient = (_k = class {
9249 constructor(config = {}) {
9250 __privateAdd(this, _queryCache);
9251 __privateAdd(this, _mutationCache2);
9252 __privateAdd(this, _defaultOptions2);
9253 __privateAdd(this, _queryDefaults);
9254 __privateAdd(this, _mutationDefaults);
9255 __privateAdd(this, _mountCount);
9256 __privateAdd(this, _unsubscribeFocus);
9257 __privateAdd(this, _unsubscribeOnline);
9258 __privateSet(this, _queryCache, config.queryCache || new QueryCache());
9259 __privateSet(this, _mutationCache2, config.mutationCache || new MutationCache());
9260 __privateSet(this, _defaultOptions2, config.defaultOptions || {});
9261 __privateSet(this, _queryDefaults, /* @__PURE__ */ new Map());
9262 __privateSet(this, _mutationDefaults, /* @__PURE__ */ new Map());
9263 __privateSet(this, _mountCount, 0);
9264 }
9265 mount() {
9266 __privateWrapper(this, _mountCount)._++;
9267 if (__privateGet(this, _mountCount) !== 1) return;
9268 __privateSet(this, _unsubscribeFocus, focusManager.subscribe(async (focused) => {
9269 if (focused) {
9270 await this.resumePausedMutations();
9271 __privateGet(this, _queryCache).onFocus();
9272 }
9273 }));
9274 __privateSet(this, _unsubscribeOnline, onlineManager.subscribe(async (online) => {
9275 if (online) {
9276 await this.resumePausedMutations();
9277 __privateGet(this, _queryCache).onOnline();
9278 }
9279 }));
9280 }
9281 unmount() {
9282 var _a2, _b2;
9283 __privateWrapper(this, _mountCount)._--;
9284 if (__privateGet(this, _mountCount) !== 0) return;
9285 (_a2 = __privateGet(this, _unsubscribeFocus)) == null ? void 0 : _a2.call(this);
9286 __privateSet(this, _unsubscribeFocus, void 0);
9287 (_b2 = __privateGet(this, _unsubscribeOnline)) == null ? void 0 : _b2.call(this);
9288 __privateSet(this, _unsubscribeOnline, void 0);
9289 }
9290 isFetching(filters) {
9291 return __privateGet(this, _queryCache).findAll({ ...filters, fetchStatus: "fetching" }).length;
9292 }
9293 isMutating(filters) {
9294 return __privateGet(this, _mutationCache2).findAll({ ...filters, status: "pending" }).length;
9295 }
9296 /**
9297 * Imperative (non-reactive) way to retrieve data for a QueryKey.
9298 * Should only be used in callbacks or functions where reading the latest data is necessary, e.g. for optimistic updates.
9299 *
9300 * Hint: Do not use this function inside a component, because it won't receive updates.
9301 * Use `useQuery` to create a `QueryObserver` that subscribes to changes.
9302 */
9303 getQueryData(queryKey) {
9304 var _a2;
9305 const options = this.defaultQueryOptions({ queryKey });
9306 return (_a2 = __privateGet(this, _queryCache).get(options.queryHash)) == null ? void 0 : _a2.state.data;
9307 }
9308 ensureQueryData(options) {
9309 const defaultedOptions = this.defaultQueryOptions(options);
9310 const query = __privateGet(this, _queryCache).build(this, defaultedOptions);
9311 const cachedData = query.state.data;
9312 if (cachedData === void 0) {
9313 return this.fetchQuery(options);
9314 }
9315 if (options.revalidateIfStale && query.isStaleByTime(resolveStaleTime(defaultedOptions.staleTime, query))) {
9316 void this.prefetchQuery(defaultedOptions);
9317 }
9318 return Promise.resolve(cachedData);
9319 }
9320 getQueriesData(filters) {
9321 return __privateGet(this, _queryCache).findAll(filters).map(({ queryKey, state }) => {
9322 const data = state.data;
9323 return [queryKey, data];
9324 });
9325 }
9326 setQueryData(queryKey, updater, options) {
9327 const defaultedOptions = this.defaultQueryOptions({ queryKey });
9328 const query = __privateGet(this, _queryCache).get(
9329 defaultedOptions.queryHash
9330 );
9331 const prevData = query == null ? void 0 : query.state.data;
9332 const data = functionalUpdate(updater, prevData);
9333 if (data === void 0) {
9334 return void 0;
9335 }
9336 return __privateGet(this, _queryCache).build(this, defaultedOptions).setData(data, { ...options, manual: true });
9337 }
9338 setQueriesData(filters, updater, options) {
9339 return notifyManager.batch(
9340 () => __privateGet(this, _queryCache).findAll(filters).map(({ queryKey }) => [
9341 queryKey,
9342 this.setQueryData(queryKey, updater, options)
9343 ])
9344 );
9345 }
9346 getQueryState(queryKey) {
9347 var _a2;
9348 const options = this.defaultQueryOptions({ queryKey });
9349 return (_a2 = __privateGet(this, _queryCache).get(
9350 options.queryHash
9351 )) == null ? void 0 : _a2.state;
9352 }
9353 removeQueries(filters) {
9354 const queryCache = __privateGet(this, _queryCache);
9355 notifyManager.batch(() => {
9356 queryCache.findAll(filters).forEach((query) => {
9357 queryCache.remove(query);
9358 });
9359 });
9360 }
9361 resetQueries(filters, options) {
9362 const queryCache = __privateGet(this, _queryCache);
9363 return notifyManager.batch(() => {
9364 queryCache.findAll(filters).forEach((query) => {
9365 query.reset();
9366 });
9367 return this.refetchQueries(
9368 {
9369 type: "active",
9370 ...filters
9371 },
9372 options
9373 );
9374 });
9375 }
9376 cancelQueries(filters, cancelOptions = {}) {
9377 const defaultedCancelOptions = { revert: true, ...cancelOptions };
9378 const promises = notifyManager.batch(
9379 () => __privateGet(this, _queryCache).findAll(filters).map((query) => query.cancel(defaultedCancelOptions))
9380 );
9381 return Promise.all(promises).then(noop).catch(noop);
9382 }
9383 invalidateQueries(filters, options = {}) {
9384 return notifyManager.batch(() => {
9385 __privateGet(this, _queryCache).findAll(filters).forEach((query) => {
9386 query.invalidate();
9387 });
9388 if ((filters == null ? void 0 : filters.refetchType) === "none") {
9389 return Promise.resolve();
9390 }
9391 return this.refetchQueries(
9392 {
9393 ...filters,
9394 type: (filters == null ? void 0 : filters.refetchType) ?? (filters == null ? void 0 : filters.type) ?? "active"
9395 },
9396 options
9397 );
9398 });
9399 }
9400 refetchQueries(filters, options = {}) {
9401 const fetchOptions = {
9402 ...options,
9403 cancelRefetch: options.cancelRefetch ?? true
9404 };
9405 const promises = notifyManager.batch(
9406 () => __privateGet(this, _queryCache).findAll(filters).filter((query) => !query.isDisabled() && !query.isStatic()).map((query) => {
9407 let promise = query.fetch(void 0, fetchOptions);
9408 if (!fetchOptions.throwOnError) {
9409 promise = promise.catch(noop);
9410 }
9411 return query.state.fetchStatus === "paused" ? Promise.resolve() : promise;
9412 })
9413 );
9414 return Promise.all(promises).then(noop);
9415 }
9416 fetchQuery(options) {
9417 const defaultedOptions = this.defaultQueryOptions(options);
9418 if (defaultedOptions.retry === void 0) {
9419 defaultedOptions.retry = false;
9420 }
9421 const query = __privateGet(this, _queryCache).build(this, defaultedOptions);
9422 return query.isStaleByTime(
9423 resolveStaleTime(defaultedOptions.staleTime, query)
9424 ) ? query.fetch(defaultedOptions) : Promise.resolve(query.state.data);
9425 }
9426 prefetchQuery(options) {
9427 return this.fetchQuery(options).then(noop).catch(noop);
9428 }
9429 fetchInfiniteQuery(options) {
9430 options.behavior = infiniteQueryBehavior(options.pages);
9431 return this.fetchQuery(options);
9432 }
9433 prefetchInfiniteQuery(options) {
9434 return this.fetchInfiniteQuery(options).then(noop).catch(noop);
9435 }
9436 ensureInfiniteQueryData(options) {
9437 options.behavior = infiniteQueryBehavior(options.pages);
9438 return this.ensureQueryData(options);
9439 }
9440 resumePausedMutations() {
9441 if (onlineManager.isOnline()) {
9442 return __privateGet(this, _mutationCache2).resumePausedMutations();
9443 }
9444 return Promise.resolve();
9445 }
9446 getQueryCache() {
9447 return __privateGet(this, _queryCache);
9448 }
9449 getMutationCache() {
9450 return __privateGet(this, _mutationCache2);
9451 }
9452 getDefaultOptions() {
9453 return __privateGet(this, _defaultOptions2);
9454 }
9455 setDefaultOptions(options) {
9456 __privateSet(this, _defaultOptions2, options);
9457 }
9458 setQueryDefaults(queryKey, options) {
9459 __privateGet(this, _queryDefaults).set(hashKey(queryKey), {
9460 queryKey,
9461 defaultOptions: options
9462 });
9463 }
9464 getQueryDefaults(queryKey) {
9465 const defaults = [...__privateGet(this, _queryDefaults).values()];
9466 const result = {};
9467 defaults.forEach((queryDefault) => {
9468 if (partialMatchKey(queryKey, queryDefault.queryKey)) {
9469 Object.assign(result, queryDefault.defaultOptions);
9470 }
9471 });
9472 return result;
9473 }
9474 setMutationDefaults(mutationKey, options) {
9475 __privateGet(this, _mutationDefaults).set(hashKey(mutationKey), {
9476 mutationKey,
9477 defaultOptions: options
9478 });
9479 }
9480 getMutationDefaults(mutationKey) {
9481 const defaults = [...__privateGet(this, _mutationDefaults).values()];
9482 const result = {};
9483 defaults.forEach((queryDefault) => {
9484 if (partialMatchKey(mutationKey, queryDefault.mutationKey)) {
9485 Object.assign(result, queryDefault.defaultOptions);
9486 }
9487 });
9488 return result;
9489 }
9490 defaultQueryOptions(options) {
9491 if (options._defaulted) {
9492 return options;
9493 }
9494 const defaultedOptions = {
9495 ...__privateGet(this, _defaultOptions2).queries,
9496 ...this.getQueryDefaults(options.queryKey),
9497 ...options,
9498 _defaulted: true
9499 };
9500 if (!defaultedOptions.queryHash) {
9501 defaultedOptions.queryHash = hashQueryKeyByOptions(
9502 defaultedOptions.queryKey,
9503 defaultedOptions
9504 );
9505 }
9506 if (defaultedOptions.refetchOnReconnect === void 0) {
9507 defaultedOptions.refetchOnReconnect = defaultedOptions.networkMode !== "always";
9508 }
9509 if (defaultedOptions.throwOnError === void 0) {
9510 defaultedOptions.throwOnError = !!defaultedOptions.suspense;
9511 }
9512 if (!defaultedOptions.networkMode && defaultedOptions.persister) {
9513 defaultedOptions.networkMode = "offlineFirst";
9514 }
9515 if (defaultedOptions.queryFn === skipToken) {
9516 defaultedOptions.enabled = false;
9517 }
9518 return defaultedOptions;
9519 }
9520 defaultMutationOptions(options) {
9521 if (options == null ? void 0 : options._defaulted) {
9522 return options;
9523 }
9524 return {
9525 ...__privateGet(this, _defaultOptions2).mutations,
9526 ...(options == null ? void 0 : options.mutationKey) && this.getMutationDefaults(options.mutationKey),
9527 ...options,
9528 _defaulted: true
9529 };
9530 }
9531 clear() {
9532 __privateGet(this, _queryCache).clear();
9533 __privateGet(this, _mutationCache2).clear();
9534 }
9535 }, _queryCache = new WeakMap(), _mutationCache2 = new WeakMap(), _defaultOptions2 = new WeakMap(), _queryDefaults = new WeakMap(), _mutationDefaults = new WeakMap(), _mountCount = new WeakMap(), _unsubscribeFocus = new WeakMap(), _unsubscribeOnline = new WeakMap(), _k);
9536 var QueryClientContext = reactExports.createContext(
9537 void 0
9538 );
9539 var useQueryClient = (queryClient) => {
9540 const client2 = reactExports.useContext(QueryClientContext);
9541 if (!client2) {
9542 throw new Error("No QueryClient set, use QueryClientProvider to set one");
9543 }
9544 return client2;
9545 };
9546 var QueryClientProvider = ({
9547 client: client2,
9548 children
9549 }) => {
9550 reactExports.useEffect(() => {
9551 client2.mount();
9552 return () => {
9553 client2.unmount();
9554 };
9555 }, [client2]);
9556 return /* @__PURE__ */ jsxRuntimeExports.jsx(QueryClientContext.Provider, { value: client2, children });
9557 };
9558 var IsRestoringContext = reactExports.createContext(false);
9559 var useIsRestoring = () => reactExports.useContext(IsRestoringContext);
9560 IsRestoringContext.Provider;
9561 function createValue() {
9562 let isReset = false;
9563 return {
9564 clearReset: () => {
9565 isReset = false;
9566 },
9567 reset: () => {
9568 isReset = true;
9569 },
9570 isReset: () => {
9571 return isReset;
9572 }
9573 };
9574 }
9575 var QueryErrorResetBoundaryContext = reactExports.createContext(createValue());
9576 var useQueryErrorResetBoundary = () => reactExports.useContext(QueryErrorResetBoundaryContext);
9577 var ensurePreventErrorBoundaryRetry = (options, errorResetBoundary, query) => {
9578 const throwOnError = (query == null ? void 0 : query.state.error) && typeof options.throwOnError === "function" ? shouldThrowError(options.throwOnError, [query.state.error, query]) : options.throwOnError;
9579 if (options.suspense || options.experimental_prefetchInRender || throwOnError) {
9580 if (!errorResetBoundary.isReset()) {
9581 options.retryOnMount = false;
9582 }
9583 }
9584 };
9585 var useClearResetErrorBoundary = (errorResetBoundary) => {
9586 reactExports.useEffect(() => {
9587 errorResetBoundary.clearReset();
9588 }, [errorResetBoundary]);
9589 };
9590 var getHasError = ({
9591 result,
9592 errorResetBoundary,
9593 throwOnError,
9594 query,
9595 suspense
9596 }) => {
9597 return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (suspense && result.data === void 0 || shouldThrowError(throwOnError, [result.error, query]));
9598 };
9599 var ensureSuspenseTimers = (defaultedOptions) => {
9600 if (defaultedOptions.suspense) {
9601 const MIN_SUSPENSE_TIME_MS = 1e3;
9602 const clamp = (value) => value === "static" ? value : Math.max(value ?? MIN_SUSPENSE_TIME_MS, MIN_SUSPENSE_TIME_MS);
9603 const originalStaleTime = defaultedOptions.staleTime;
9604 defaultedOptions.staleTime = typeof originalStaleTime === "function" ? (...args) => clamp(originalStaleTime(...args)) : clamp(originalStaleTime);
9605 if (typeof defaultedOptions.gcTime === "number") {
9606 defaultedOptions.gcTime = Math.max(
9607 defaultedOptions.gcTime,
9608 MIN_SUSPENSE_TIME_MS
9609 );
9610 }
9611 }
9612 };
9613 var willFetch = (result, isRestoring) => result.isLoading && result.isFetching && !isRestoring;
9614 var shouldSuspend = (defaultedOptions, result) => (defaultedOptions == null ? void 0 : defaultedOptions.suspense) && result.isPending;
9615 var fetchOptimistic = (defaultedOptions, observer, errorResetBoundary) => observer.fetchOptimistic(defaultedOptions).catch(() => {
9616 errorResetBoundary.clearReset();
9617 });
9618 function useBaseQuery(options, Observer, queryClient) {
9619 var _a2, _b2, _c2, _d2;
9620 const isRestoring = useIsRestoring();
9621 const errorResetBoundary = useQueryErrorResetBoundary();
9622 const client2 = useQueryClient();
9623 const defaultedOptions = client2.defaultQueryOptions(options);
9624 (_b2 = (_a2 = client2.getDefaultOptions().queries) == null ? void 0 : _a2._experimental_beforeQuery) == null ? void 0 : _b2.call(
9625 _a2,
9626 defaultedOptions
9627 );
9628 const query = client2.getQueryCache().get(defaultedOptions.queryHash);
9629 defaultedOptions._optimisticResults = isRestoring ? "isRestoring" : "optimistic";
9630 ensureSuspenseTimers(defaultedOptions);
9631 ensurePreventErrorBoundaryRetry(defaultedOptions, errorResetBoundary, query);
9632 useClearResetErrorBoundary(errorResetBoundary);
9633 const isNewCacheEntry = !client2.getQueryCache().get(defaultedOptions.queryHash);
9634 const [observer] = reactExports.useState(
9635 () => new Observer(
9636 client2,
9637 defaultedOptions
9638 )
9639 );
9640 const result = observer.getOptimisticResult(defaultedOptions);
9641 const shouldSubscribe = !isRestoring && options.subscribed !== false;
9642 reactExports.useSyncExternalStore(
9643 reactExports.useCallback(
9644 (onStoreChange) => {
9645 const unsubscribe = shouldSubscribe ? observer.subscribe(notifyManager.batchCalls(onStoreChange)) : noop;
9646 observer.updateResult();
9647 return unsubscribe;
9648 },
9649 [observer, shouldSubscribe]
9650 ),
9651 () => observer.getCurrentResult(),
9652 () => observer.getCurrentResult()
9653 );
9654 reactExports.useEffect(() => {
9655 observer.setOptions(defaultedOptions);
9656 }, [defaultedOptions, observer]);
9657 if (shouldSuspend(defaultedOptions, result)) {
9658 throw fetchOptimistic(defaultedOptions, observer, errorResetBoundary);
9659 }
9660 if (getHasError({
9661 result,
9662 errorResetBoundary,
9663 throwOnError: defaultedOptions.throwOnError,
9664 query,
9665 suspense: defaultedOptions.suspense
9666 })) {
9667 throw result.error;
9668 }
9669 (_d2 = (_c2 = client2.getDefaultOptions().queries) == null ? void 0 : _c2._experimental_afterQuery) == null ? void 0 : _d2.call(
9670 _c2,
9671 defaultedOptions,
9672 result
9673 );
9674 if (defaultedOptions.experimental_prefetchInRender && !isServer && willFetch(result, isRestoring)) {
9675 const promise = isNewCacheEntry ? (
9676 // Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
9677 fetchOptimistic(defaultedOptions, observer, errorResetBoundary)
9678 ) : (
9679 // subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
9680 query == null ? void 0 : query.promise
9681 );
9682 promise == null ? void 0 : promise.catch(noop).finally(() => {
9683 observer.updateResult();
9684 });
9685 }
9686 return !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result;
9687 }
9688 function useQuery(options, queryClient) {
9689 return useBaseQuery(options, QueryObserver);
9690 }
9691 function useMutation(options, queryClient) {
9692 const client2 = useQueryClient();
9693 const [observer] = reactExports.useState(
9694 () => new MutationObserver$1(
9695 client2,
9696 options
9697 )
9698 );
9699 reactExports.useEffect(() => {
9700 observer.setOptions(options);
9701 }, [observer, options]);
9702 const result = reactExports.useSyncExternalStore(
9703 reactExports.useCallback(
9704 (onStoreChange) => observer.subscribe(notifyManager.batchCalls(onStoreChange)),
9705 [observer]
9706 ),
9707 () => observer.getCurrentResult(),
9708 () => observer.getCurrentResult()
9709 );
9710 const mutate = reactExports.useCallback(
9711 (variables, mutateOptions) => {
9712 observer.mutate(variables, mutateOptions).catch(noop);
9713 },
9714 [observer]
9715 );
9716 if (result.error && shouldThrowError(observer.options.throwOnError, [result.error])) {
9717 throw result.error;
9718 }
9719 return { ...result, mutate, mutateAsync: result.mutate };
9720 }
9721 /**
9722 * @license lucide-react v0.294.0 - ISC
9723 *
9724 * This source code is licensed under the ISC license.
9725 * See the LICENSE file in the root directory of this source tree.
9726 */
9727 var defaultAttributes = {
9728 xmlns: "http://www.w3.org/2000/svg",
9729 width: 24,
9730 height: 24,
9731 viewBox: "0 0 24 24",
9732 fill: "none",
9733 stroke: "currentColor",
9734 strokeWidth: 2,
9735 strokeLinecap: "round",
9736 strokeLinejoin: "round"
9737 };
9738 /**
9739 * @license lucide-react v0.294.0 - ISC
9740 *
9741 * This source code is licensed under the ISC license.
9742 * See the LICENSE file in the root directory of this source tree.
9743 */
9744 const toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase().trim();
9745 const createLucideIcon = (iconName, iconNode) => {
9746 const Component = reactExports.forwardRef(
9747 ({ color = "currentColor", size = 24, strokeWidth = 2, absoluteStrokeWidth, className = "", children, ...rest }, ref) => reactExports.createElement(
9748 "svg",
9749 {
9750 ref,
9751 ...defaultAttributes,
9752 width: size,
9753 height: size,
9754 stroke: color,
9755 strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
9756 className: ["lucide", `lucide-${toKebabCase(iconName)}`, className].join(" "),
9757 ...rest
9758 },
9759 [
9760 ...iconNode.map(([tag, attrs]) => reactExports.createElement(tag, attrs)),
9761 ...Array.isArray(children) ? children : [children]
9762 ]
9763 )
9764 );
9765 Component.displayName = `${iconName}`;
9766 return Component;
9767 };
9768 /**
9769 * @license lucide-react v0.294.0 - ISC
9770 *
9771 * This source code is licensed under the ISC license.
9772 * See the LICENSE file in the root directory of this source tree.
9773 */
9774 const Activity = createLucideIcon("Activity", [
9775 ["path", { d: "M22 12h-4l-3 9L9 3l-3 9H2", key: "d5dnw9" }]
9776 ]);
9777 /**
9778 * @license lucide-react v0.294.0 - ISC
9779 *
9780 * This source code is licensed under the ISC license.
9781 * See the LICENSE file in the root directory of this source tree.
9782 */
9783 const AlertCircle = createLucideIcon("AlertCircle", [
9784 ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
9785 ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
9786 ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
9787 ]);
9788 /**
9789 * @license lucide-react v0.294.0 - ISC
9790 *
9791 * This source code is licensed under the ISC license.
9792 * See the LICENSE file in the root directory of this source tree.
9793 */
9794 const AlertTriangle = createLucideIcon("AlertTriangle", [
9795 [
9796 "path",
9797 {
9798 d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",
9799 key: "c3ski4"
9800 }
9801 ],
9802 ["path", { d: "M12 9v4", key: "juzpu7" }],
9803 ["path", { d: "M12 17h.01", key: "p32p05" }]
9804 ]);
9805 /**
9806 * @license lucide-react v0.294.0 - ISC
9807 *
9808 * This source code is licensed under the ISC license.
9809 * See the LICENSE file in the root directory of this source tree.
9810 */
9811 const AlignLeft = createLucideIcon("AlignLeft", [
9812 ["line", { x1: "21", x2: "3", y1: "6", y2: "6", key: "1fp77t" }],
9813 ["line", { x1: "15", x2: "3", y1: "12", y2: "12", key: "v6grx8" }],
9814 ["line", { x1: "17", x2: "3", y1: "18", y2: "18", key: "1awlsn" }]
9815 ]);
9816 /**
9817 * @license lucide-react v0.294.0 - ISC
9818 *
9819 * This source code is licensed under the ISC license.
9820 * See the LICENSE file in the root directory of this source tree.
9821 */
9822 const Archive = createLucideIcon("Archive", [
9823 ["rect", { width: "20", height: "5", x: "2", y: "3", rx: "1", key: "1wp1u1" }],
9824 ["path", { d: "M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8", key: "1s80jp" }],
9825 ["path", { d: "M10 12h4", key: "a56b0p" }]
9826 ]);
9827 /**
9828 * @license lucide-react v0.294.0 - ISC
9829 *
9830 * This source code is licensed under the ISC license.
9831 * See the LICENSE file in the root directory of this source tree.
9832 */
9833 const ArrowDown = createLucideIcon("ArrowDown", [
9834 ["path", { d: "M12 5v14", key: "s699le" }],
9835 ["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
9836 ]);
9837 /**
9838 * @license lucide-react v0.294.0 - ISC
9839 *
9840 * This source code is licensed under the ISC license.
9841 * See the LICENSE file in the root directory of this source tree.
9842 */
9843 const ArrowLeft = createLucideIcon("ArrowLeft", [
9844 ["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
9845 ["path", { d: "M19 12H5", key: "x3x0zl" }]
9846 ]);
9847 /**
9848 * @license lucide-react v0.294.0 - ISC
9849 *
9850 * This source code is licensed under the ISC license.
9851 * See the LICENSE file in the root directory of this source tree.
9852 */
9853 const ArrowRight = createLucideIcon("ArrowRight", [
9854 ["path", { d: "M5 12h14", key: "1ays0h" }],
9855 ["path", { d: "m12 5 7 7-7 7", key: "xquz4c" }]
9856 ]);
9857 /**
9858 * @license lucide-react v0.294.0 - ISC
9859 *
9860 * This source code is licensed under the ISC license.
9861 * See the LICENSE file in the root directory of this source tree.
9862 */
9863 const ArrowUpDown = createLucideIcon("ArrowUpDown", [
9864 ["path", { d: "m21 16-4 4-4-4", key: "f6ql7i" }],
9865 ["path", { d: "M17 20V4", key: "1ejh1v" }],
9866 ["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
9867 ["path", { d: "M7 4v16", key: "1glfcx" }]
9868 ]);
9869 /**
9870 * @license lucide-react v0.294.0 - ISC
9871 *
9872 * This source code is licensed under the ISC license.
9873 * See the LICENSE file in the root directory of this source tree.
9874 */
9875 const ArrowUpRight = createLucideIcon("ArrowUpRight", [
9876 ["path", { d: "M7 7h10v10", key: "1tivn9" }],
9877 ["path", { d: "M7 17 17 7", key: "1vkiza" }]
9878 ]);
9879 /**
9880 * @license lucide-react v0.294.0 - ISC
9881 *
9882 * This source code is licensed under the ISC license.
9883 * See the LICENSE file in the root directory of this source tree.
9884 */
9885 const ArrowUp = createLucideIcon("ArrowUp", [
9886 ["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }],
9887 ["path", { d: "M12 19V5", key: "x0mq9r" }]
9888 ]);
9889 /**
9890 * @license lucide-react v0.294.0 - ISC
9891 *
9892 * This source code is licensed under the ISC license.
9893 * See the LICENSE file in the root directory of this source tree.
9894 */
9895 const Award = createLucideIcon("Award", [
9896 ["circle", { cx: "12", cy: "8", r: "6", key: "1vp47v" }],
9897 ["path", { d: "M15.477 12.89 17 22l-5-3-5 3 1.523-9.11", key: "em7aur" }]
9898 ]);
9899 /**
9900 * @license lucide-react v0.294.0 - ISC
9901 *
9902 * This source code is licensed under the ISC license.
9903 * See the LICENSE file in the root directory of this source tree.
9904 */
9905 const BadgePercent = createLucideIcon("BadgePercent", [
9906 [
9907 "path",
9908 {
9909 d: "M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",
9910 key: "3c2336"
9911 }
9912 ],
9913 ["path", { d: "m15 9-6 6", key: "1uzhvr" }],
9914 ["path", { d: "M9 9h.01", key: "1q5me6" }],
9915 ["path", { d: "M15 15h.01", key: "lqbp3k" }]
9916 ]);
9917 /**
9918 * @license lucide-react v0.294.0 - ISC
9919 *
9920 * This source code is licensed under the ISC license.
9921 * See the LICENSE file in the root directory of this source tree.
9922 */
9923 const Ban = createLucideIcon("Ban", [
9924 ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
9925 ["path", { d: "m4.9 4.9 14.2 14.2", key: "1m5liu" }]
9926 ]);
9927 /**
9928 * @license lucide-react v0.294.0 - ISC
9929 *
9930 * This source code is licensed under the ISC license.
9931 * See the LICENSE file in the root directory of this source tree.
9932 */
9933 const BarChart3 = createLucideIcon("BarChart3", [
9934 ["path", { d: "M3 3v18h18", key: "1s2lah" }],
9935 ["path", { d: "M18 17V9", key: "2bz60n" }],
9936 ["path", { d: "M13 17V5", key: "1frdt8" }],
9937 ["path", { d: "M8 17v-3", key: "17ska0" }]
9938 ]);
9939 /**
9940 * @license lucide-react v0.294.0 - ISC
9941 *
9942 * This source code is licensed under the ISC license.
9943 * See the LICENSE file in the root directory of this source tree.
9944 */
9945 const BarChart = createLucideIcon("BarChart", [
9946 ["line", { x1: "12", x2: "12", y1: "20", y2: "10", key: "1vz5eb" }],
9947 ["line", { x1: "18", x2: "18", y1: "20", y2: "4", key: "cun8e5" }],
9948 ["line", { x1: "6", x2: "6", y1: "20", y2: "16", key: "hq0ia6" }]
9949 ]);
9950 /**
9951 * @license lucide-react v0.294.0 - ISC
9952 *
9953 * This source code is licensed under the ISC license.
9954 * See the LICENSE file in the root directory of this source tree.
9955 */
9956 const Bell = createLucideIcon("Bell", [
9957 ["path", { d: "M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9", key: "1qo2s2" }],
9958 ["path", { d: "M10.3 21a1.94 1.94 0 0 0 3.4 0", key: "qgo35s" }]
9959 ]);
9960 /**
9961 * @license lucide-react v0.294.0 - ISC
9962 *
9963 * This source code is licensed under the ISC license.
9964 * See the LICENSE file in the root directory of this source tree.
9965 */
9966 const BookOpen = createLucideIcon("BookOpen", [
9967 ["path", { d: "M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z", key: "vv98re" }],
9968 ["path", { d: "M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z", key: "1cyq3y" }]
9969 ]);
9970 /**
9971 * @license lucide-react v0.294.0 - ISC
9972 *
9973 * This source code is licensed under the ISC license.
9974 * See the LICENSE file in the root directory of this source tree.
9975 */
9976 const Box = createLucideIcon("Box", [
9977 [
9978 "path",
9979 {
9980 d: "M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",
9981 key: "hh9hay"
9982 }
9983 ],
9984 ["path", { d: "m3.3 7 8.7 5 8.7-5", key: "g66t2b" }],
9985 ["path", { d: "M12 22V12", key: "d0xqtd" }]
9986 ]);
9987 /**
9988 * @license lucide-react v0.294.0 - ISC
9989 *
9990 * This source code is licensed under the ISC license.
9991 * See the LICENSE file in the root directory of this source tree.
9992 */
9993 const Bug = createLucideIcon("Bug", [
9994 ["path", { d: "m8 2 1.88 1.88", key: "fmnt4t" }],
9995 ["path", { d: "M14.12 3.88 16 2", key: "qol33r" }],
9996 ["path", { d: "M9 7.13v-1a3.003 3.003 0 1 1 6 0v1", key: "d7y7pr" }],
9997 [
9998 "path",
9999 {
10000 d: "M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",
10001 key: "xs1cw7"
10002 }
10003 ],
10004 ["path", { d: "M12 20v-9", key: "1qisl0" }],
10005 ["path", { d: "M6.53 9C4.6 8.8 3 7.1 3 5", key: "32zzws" }],
10006 ["path", { d: "M6 13H2", key: "82j7cp" }],
10007 ["path", { d: "M3 21c0-2.1 1.7-3.9 3.8-4", key: "4p0ekp" }],
10008 ["path", { d: "M20.97 5c0 2.1-1.6 3.8-3.5 4", key: "18gb23" }],
10009 ["path", { d: "M22 13h-4", key: "1jl80f" }],
10010 ["path", { d: "M17.2 17c2.1.1 3.8 1.9 3.8 4", key: "k3fwyw" }]
10011 ]);
10012 /**
10013 * @license lucide-react v0.294.0 - ISC
10014 *
10015 * This source code is licensed under the ISC license.
10016 * See the LICENSE file in the root directory of this source tree.
10017 */
10018 const Building2 = createLucideIcon("Building2", [
10019 ["path", { d: "M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z", key: "1b4qmf" }],
10020 ["path", { d: "M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2", key: "i71pzd" }],
10021 ["path", { d: "M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2", key: "10jefs" }],
10022 ["path", { d: "M10 6h4", key: "1itunk" }],
10023 ["path", { d: "M10 10h4", key: "tcdvrf" }],
10024 ["path", { d: "M10 14h4", key: "kelpxr" }],
10025 ["path", { d: "M10 18h4", key: "1ulq68" }]
10026 ]);
10027 /**
10028 * @license lucide-react v0.294.0 - ISC
10029 *
10030 * This source code is licensed under the ISC license.
10031 * See the LICENSE file in the root directory of this source tree.
10032 */
10033 const CalendarDays = createLucideIcon("CalendarDays", [
10034 ["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", ry: "2", key: "eu3xkr" }],
10035 ["line", { x1: "16", x2: "16", y1: "2", y2: "6", key: "m3sa8f" }],
10036 ["line", { x1: "8", x2: "8", y1: "2", y2: "6", key: "18kwsl" }],
10037 ["line", { x1: "3", x2: "21", y1: "10", y2: "10", key: "xt86sb" }],
10038 ["path", { d: "M8 14h.01", key: "6423bh" }],
10039 ["path", { d: "M12 14h.01", key: "1etili" }],
10040 ["path", { d: "M16 14h.01", key: "1gbofw" }],
10041 ["path", { d: "M8 18h.01", key: "lrp35t" }],
10042 ["path", { d: "M12 18h.01", key: "mhygvu" }],
10043 ["path", { d: "M16 18h.01", key: "kzsmim" }]
10044 ]);
10045 /**
10046 * @license lucide-react v0.294.0 - ISC
10047 *
10048 * This source code is licensed under the ISC license.
10049 * See the LICENSE file in the root directory of this source tree.
10050 */
10051 const Calendar = createLucideIcon("Calendar", [
10052 ["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", ry: "2", key: "eu3xkr" }],
10053 ["line", { x1: "16", x2: "16", y1: "2", y2: "6", key: "m3sa8f" }],
10054 ["line", { x1: "8", x2: "8", y1: "2", y2: "6", key: "18kwsl" }],
10055 ["line", { x1: "3", x2: "21", y1: "10", y2: "10", key: "xt86sb" }]
10056 ]);
10057 /**
10058 * @license lucide-react v0.294.0 - ISC
10059 *
10060 * This source code is licensed under the ISC license.
10061 * See the LICENSE file in the root directory of this source tree.
10062 */
10063 const Camera = createLucideIcon("Camera", [
10064 [
10065 "path",
10066 {
10067 d: "M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",
10068 key: "1tc9qg"
10069 }
10070 ],
10071 ["circle", { cx: "12", cy: "13", r: "3", key: "1vg3eu" }]
10072 ]);
10073 /**
10074 * @license lucide-react v0.294.0 - ISC
10075 *
10076 * This source code is licensed under the ISC license.
10077 * See the LICENSE file in the root directory of this source tree.
10078 */
10079 const Car = createLucideIcon("Car", [
10080 [
10081 "path",
10082 {
10083 d: "M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",
10084 key: "5owen"
10085 }
10086 ],
10087 ["circle", { cx: "7", cy: "17", r: "2", key: "u2ysq9" }],
10088 ["path", { d: "M9 17h6", key: "r8uit2" }],
10089 ["circle", { cx: "17", cy: "17", r: "2", key: "axvx0g" }]
10090 ]);
10091 /**
10092 * @license lucide-react v0.294.0 - ISC
10093 *
10094 * This source code is licensed under the ISC license.
10095 * See the LICENSE file in the root directory of this source tree.
10096 */
10097 const CheckCircle2 = createLucideIcon("CheckCircle2", [
10098 ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
10099 ["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
10100 ]);
10101 /**
10102 * @license lucide-react v0.294.0 - ISC
10103 *
10104 * This source code is licensed under the ISC license.
10105 * See the LICENSE file in the root directory of this source tree.
10106 */
10107 const CheckCircle = createLucideIcon("CheckCircle", [
10108 ["path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14", key: "g774vq" }],
10109 ["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
10110 ]);
10111 /**
10112 * @license lucide-react v0.294.0 - ISC
10113 *
10114 * This source code is licensed under the ISC license.
10115 * See the LICENSE file in the root directory of this source tree.
10116 */
10117 const CheckSquare = createLucideIcon("CheckSquare", [
10118 ["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }],
10119 ["path", { d: "M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11", key: "1jnkn4" }]
10120 ]);
10121 /**
10122 * @license lucide-react v0.294.0 - ISC
10123 *
10124 * This source code is licensed under the ISC license.
10125 * See the LICENSE file in the root directory of this source tree.
10126 */
10127 const Check = createLucideIcon("Check", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]);
10128 /**
10129 * @license lucide-react v0.294.0 - ISC
10130 *
10131 * This source code is licensed under the ISC license.
10132 * See the LICENSE file in the root directory of this source tree.
10133 */
10134 const ChevronDown = createLucideIcon("ChevronDown", [
10135 ["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]
10136 ]);
10137 /**
10138 * @license lucide-react v0.294.0 - ISC
10139 *
10140 * This source code is licensed under the ISC license.
10141 * See the LICENSE file in the root directory of this source tree.
10142 */
10143 const ChevronLeft = createLucideIcon("ChevronLeft", [
10144 ["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]
10145 ]);
10146 /**
10147 * @license lucide-react v0.294.0 - ISC
10148 *
10149 * This source code is licensed under the ISC license.
10150 * See the LICENSE file in the root directory of this source tree.
10151 */
10152 const ChevronRight = createLucideIcon("ChevronRight", [
10153 ["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
10154 ]);
10155 /**
10156 * @license lucide-react v0.294.0 - ISC
10157 *
10158 * This source code is licensed under the ISC license.
10159 * See the LICENSE file in the root directory of this source tree.
10160 */
10161 const ChevronUp = createLucideIcon("ChevronUp", [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]]);
10162 /**
10163 * @license lucide-react v0.294.0 - ISC
10164 *
10165 * This source code is licensed under the ISC license.
10166 * See the LICENSE file in the root directory of this source tree.
10167 */
10168 const CircleDollarSign = createLucideIcon("CircleDollarSign", [
10169 ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
10170 ["path", { d: "M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8", key: "1h4pet" }],
10171 ["path", { d: "M12 18V6", key: "zqpxq5" }]
10172 ]);
10173 /**
10174 * @license lucide-react v0.294.0 - ISC
10175 *
10176 * This source code is licensed under the ISC license.
10177 * See the LICENSE file in the root directory of this source tree.
10178 */
10179 const CircleUser = createLucideIcon("CircleUser", [
10180 ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
10181 ["circle", { cx: "12", cy: "10", r: "3", key: "ilqhr7" }],
10182 ["path", { d: "M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662", key: "154egf" }]
10183 ]);
10184 /**
10185 * @license lucide-react v0.294.0 - ISC
10186 *
10187 * This source code is licensed under the ISC license.
10188 * See the LICENSE file in the root directory of this source tree.
10189 */
10190 const ClipboardCheck = createLucideIcon("ClipboardCheck", [
10191 ["rect", { width: "8", height: "4", x: "8", y: "2", rx: "1", ry: "1", key: "tgr4d6" }],
10192 [
10193 "path",
10194 {
10195 d: "M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",
10196 key: "116196"
10197 }
10198 ],
10199 ["path", { d: "m9 14 2 2 4-4", key: "df797q" }]
10200 ]);
10201 /**
10202 * @license lucide-react v0.294.0 - ISC
10203 *
10204 * This source code is licensed under the ISC license.
10205 * See the LICENSE file in the root directory of this source tree.
10206 */
10207 const ClipboardCopy = createLucideIcon("ClipboardCopy", [
10208 ["rect", { width: "8", height: "4", x: "8", y: "2", rx: "1", ry: "1", key: "tgr4d6" }],
10209 ["path", { d: "M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2", key: "4jdomd" }],
10210 ["path", { d: "M16 4h2a2 2 0 0 1 2 2v4", key: "3hqy98" }],
10211 ["path", { d: "M21 14H11", key: "1bme5i" }],
10212 ["path", { d: "m15 10-4 4 4 4", key: "5dvupr" }]
10213 ]);
10214 /**
10215 * @license lucide-react v0.294.0 - ISC
10216 *
10217 * This source code is licensed under the ISC license.
10218 * See the LICENSE file in the root directory of this source tree.
10219 */
10220 const ClipboardList = createLucideIcon("ClipboardList", [
10221 ["rect", { width: "8", height: "4", x: "8", y: "2", rx: "1", ry: "1", key: "tgr4d6" }],
10222 [
10223 "path",
10224 {
10225 d: "M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",
10226 key: "116196"
10227 }
10228 ],
10229 ["path", { d: "M12 11h4", key: "1jrz19" }],
10230 ["path", { d: "M12 16h4", key: "n85exb" }],
10231 ["path", { d: "M8 11h.01", key: "1dfujw" }],
10232 ["path", { d: "M8 16h.01", key: "18s6g9" }]
10233 ]);
10234 /**
10235 * @license lucide-react v0.294.0 - ISC
10236 *
10237 * This source code is licensed under the ISC license.
10238 * See the LICENSE file in the root directory of this source tree.
10239 */
10240 const Clock = createLucideIcon("Clock", [
10241 ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
10242 ["polyline", { points: "12 6 12 12 16 14", key: "68esgv" }]
10243 ]);
10244 /**
10245 * @license lucide-react v0.294.0 - ISC
10246 *
10247 * This source code is licensed under the ISC license.
10248 * See the LICENSE file in the root directory of this source tree.
10249 */
10250 const Code = createLucideIcon("Code", [
10251 ["polyline", { points: "16 18 22 12 16 6", key: "z7tu5w" }],
10252 ["polyline", { points: "8 6 2 12 8 18", key: "1eg1df" }]
10253 ]);
10254 /**
10255 * @license lucide-react v0.294.0 - ISC
10256 *
10257 * This source code is licensed under the ISC license.
10258 * See the LICENSE file in the root directory of this source tree.
10259 */
10260 const Columns = createLucideIcon("Columns", [
10261 ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
10262 ["line", { x1: "12", x2: "12", y1: "3", y2: "21", key: "1efggb" }]
10263 ]);
10264 /**
10265 * @license lucide-react v0.294.0 - ISC
10266 *
10267 * This source code is licensed under the ISC license.
10268 * See the LICENSE file in the root directory of this source tree.
10269 */
10270 const Copy = createLucideIcon("Copy", [
10271 ["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
10272 ["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
10273 ]);
10274 /**
10275 * @license lucide-react v0.294.0 - ISC
10276 *
10277 * This source code is licensed under the ISC license.
10278 * See the LICENSE file in the root directory of this source tree.
10279 */
10280 const CreditCard = createLucideIcon("CreditCard", [
10281 ["rect", { width: "20", height: "14", x: "2", y: "5", rx: "2", key: "ynyp8z" }],
10282 ["line", { x1: "2", x2: "22", y1: "10", y2: "10", key: "1b3vmo" }]
10283 ]);
10284 /**
10285 * @license lucide-react v0.294.0 - ISC
10286 *
10287 * This source code is licensed under the ISC license.
10288 * See the LICENSE file in the root directory of this source tree.
10289 */
10290 const Crown = createLucideIcon("Crown", [
10291 ["path", { d: "m2 4 3 12h14l3-12-6 7-4-7-4 7-6-7zm3 16h14", key: "zkxr6b" }]
10292 ]);
10293 /**
10294 * @license lucide-react v0.294.0 - ISC
10295 *
10296 * This source code is licensed under the ISC license.
10297 * See the LICENSE file in the root directory of this source tree.
10298 */
10299 const Database = createLucideIcon("Database", [
10300 ["ellipse", { cx: "12", cy: "5", rx: "9", ry: "3", key: "msslwz" }],
10301 ["path", { d: "M3 5V19A9 3 0 0 0 21 19V5", key: "1wlel7" }],
10302 ["path", { d: "M3 12A9 3 0 0 0 21 12", key: "mv7ke4" }]
10303 ]);
10304 /**
10305 * @license lucide-react v0.294.0 - ISC
10306 *
10307 * This source code is licensed under the ISC license.
10308 * See the LICENSE file in the root directory of this source tree.
10309 */
10310 const DollarSign = createLucideIcon("DollarSign", [
10311 ["line", { x1: "12", x2: "12", y1: "2", y2: "22", key: "7eqyqh" }],
10312 ["path", { d: "M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6", key: "1b0p4s" }]
10313 ]);
10314 /**
10315 * @license lucide-react v0.294.0 - ISC
10316 *
10317 * This source code is licensed under the ISC license.
10318 * See the LICENSE file in the root directory of this source tree.
10319 */
10320 const Download = createLucideIcon("Download", [
10321 ["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
10322 ["polyline", { points: "7 10 12 15 17 10", key: "2ggqvy" }],
10323 ["line", { x1: "12", x2: "12", y1: "15", y2: "3", key: "1vk2je" }]
10324 ]);
10325 /**
10326 * @license lucide-react v0.294.0 - ISC
10327 *
10328 * This source code is licensed under the ISC license.
10329 * See the LICENSE file in the root directory of this source tree.
10330 */
10331 const ExternalLink = createLucideIcon("ExternalLink", [
10332 ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }],
10333 ["polyline", { points: "15 3 21 3 21 9", key: "mznyad" }],
10334 ["line", { x1: "10", x2: "21", y1: "14", y2: "3", key: "18c3s4" }]
10335 ]);
10336 /**
10337 * @license lucide-react v0.294.0 - ISC
10338 *
10339 * This source code is licensed under the ISC license.
10340 * See the LICENSE file in the root directory of this source tree.
10341 */
10342 const EyeOff = createLucideIcon("EyeOff", [
10343 ["path", { d: "M9.88 9.88a3 3 0 1 0 4.24 4.24", key: "1jxqfv" }],
10344 [
10345 "path",
10346 {
10347 d: "M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68",
10348 key: "9wicm4"
10349 }
10350 ],
10351 [
10352 "path",
10353 { d: "M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61", key: "1jreej" }
10354 ],
10355 ["line", { x1: "2", x2: "22", y1: "2", y2: "22", key: "a6p6uj" }]
10356 ]);
10357 /**
10358 * @license lucide-react v0.294.0 - ISC
10359 *
10360 * This source code is licensed under the ISC license.
10361 * See the LICENSE file in the root directory of this source tree.
10362 */
10363 const Eye = createLucideIcon("Eye", [
10364 ["path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z", key: "rwhkz3" }],
10365 ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
10366 ]);
10367 /**
10368 * @license lucide-react v0.294.0 - ISC
10369 *
10370 * This source code is licensed under the ISC license.
10371 * See the LICENSE file in the root directory of this source tree.
10372 */
10373 const FileSignature = createLucideIcon("FileSignature", [
10374 [
10375 "path",
10376 { d: "M20 19.5v.5a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8.5L18 5.5", key: "kd5d3" }
10377 ],
10378 ["path", { d: "M8 18h1", key: "13wk12" }],
10379 [
10380 "path",
10381 { d: "M18.42 9.61a2.1 2.1 0 1 1 2.97 2.97L16.95 17 13 18l.99-3.95 4.43-4.44Z", key: "johvi5" }
10382 ]
10383 ]);
10384 /**
10385 * @license lucide-react v0.294.0 - ISC
10386 *
10387 * This source code is licensed under the ISC license.
10388 * See the LICENSE file in the root directory of this source tree.
10389 */
10390 const FileText = createLucideIcon("FileText", [
10391 [
10392 "path",
10393 { d: "M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z", key: "1nnpy2" }
10394 ],
10395 ["polyline", { points: "14 2 14 8 20 8", key: "1ew0cm" }],
10396 ["line", { x1: "16", x2: "8", y1: "13", y2: "13", key: "14keom" }],
10397 ["line", { x1: "16", x2: "8", y1: "17", y2: "17", key: "17nazh" }],
10398 ["line", { x1: "10", x2: "8", y1: "9", y2: "9", key: "1a5vjj" }]
10399 ]);
10400 /**
10401 * @license lucide-react v0.294.0 - ISC
10402 *
10403 * This source code is licensed under the ISC license.
10404 * See the LICENSE file in the root directory of this source tree.
10405 */
10406 const Filter = createLucideIcon("Filter", [
10407 ["polygon", { points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3", key: "1yg77f" }]
10408 ]);
10409 /**
10410 * @license lucide-react v0.294.0 - ISC
10411 *
10412 * This source code is licensed under the ISC license.
10413 * See the LICENSE file in the root directory of this source tree.
10414 */
10415 const FolderTree = createLucideIcon("FolderTree", [
10416 [
10417 "path",
10418 {
10419 d: "M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",
10420 key: "hod4my"
10421 }
10422 ],
10423 [
10424 "path",
10425 {
10426 d: "M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",
10427 key: "w4yl2u"
10428 }
10429 ],
10430 ["path", { d: "M3 5a2 2 0 0 0 2 2h3", key: "f2jnh7" }],
10431 ["path", { d: "M3 3v13a2 2 0 0 0 2 2h3", key: "k8epm1" }]
10432 ]);
10433 /**
10434 * @license lucide-react v0.294.0 - ISC
10435 *
10436 * This source code is licensed under the ISC license.
10437 * See the LICENSE file in the root directory of this source tree.
10438 */
10439 const Folder = createLucideIcon("Folder", [
10440 [
10441 "path",
10442 {
10443 d: "M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",
10444 key: "1kt360"
10445 }
10446 ]
10447 ]);
10448 /**
10449 * @license lucide-react v0.294.0 - ISC
10450 *
10451 * This source code is licensed under the ISC license.
10452 * See the LICENSE file in the root directory of this source tree.
10453 */
10454 const Gift = createLucideIcon("Gift", [
10455 ["rect", { x: "3", y: "8", width: "18", height: "4", rx: "1", key: "bkv52" }],
10456 ["path", { d: "M12 8v13", key: "1c76mn" }],
10457 ["path", { d: "M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7", key: "6wjy6b" }],
10458 [
10459 "path",
10460 {
10461 d: "M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",
10462 key: "1ihvrl"
10463 }
10464 ]
10465 ]);
10466 /**
10467 * @license lucide-react v0.294.0 - ISC
10468 *
10469 * This source code is licensed under the ISC license.
10470 * See the LICENSE file in the root directory of this source tree.
10471 */
10472 const GitBranch = createLucideIcon("GitBranch", [
10473 ["line", { x1: "6", x2: "6", y1: "3", y2: "15", key: "17qcm7" }],
10474 ["circle", { cx: "18", cy: "6", r: "3", key: "1h7g24" }],
10475 ["circle", { cx: "6", cy: "18", r: "3", key: "fqmcym" }],
10476 ["path", { d: "M18 9a9 9 0 0 1-9 9", key: "n2h4wq" }]
10477 ]);
10478 /**
10479 * @license lucide-react v0.294.0 - ISC
10480 *
10481 * This source code is licensed under the ISC license.
10482 * See the LICENSE file in the root directory of this source tree.
10483 */
10484 const Globe = createLucideIcon("Globe", [
10485 ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
10486 ["path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20", key: "13o1zl" }],
10487 ["path", { d: "M2 12h20", key: "9i4pu4" }]
10488 ]);
10489 /**
10490 * @license lucide-react v0.294.0 - ISC
10491 *
10492 * This source code is licensed under the ISC license.
10493 * See the LICENSE file in the root directory of this source tree.
10494 */
10495 const GripVertical = createLucideIcon("GripVertical", [
10496 ["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }],
10497 ["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }],
10498 ["circle", { cx: "9", cy: "19", r: "1", key: "fkjjf6" }],
10499 ["circle", { cx: "15", cy: "12", r: "1", key: "1tmaij" }],
10500 ["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
10501 ["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
10502 ]);
10503 /**
10504 * @license lucide-react v0.294.0 - ISC
10505 *
10506 * This source code is licensed under the ISC license.
10507 * See the LICENSE file in the root directory of this source tree.
10508 */
10509 const Hash$2 = createLucideIcon("Hash", [
10510 ["line", { x1: "4", x2: "20", y1: "9", y2: "9", key: "4lhtct" }],
10511 ["line", { x1: "4", x2: "20", y1: "15", y2: "15", key: "vyu0kd" }],
10512 ["line", { x1: "10", x2: "8", y1: "3", y2: "21", key: "1ggp8o" }],
10513 ["line", { x1: "16", x2: "14", y1: "3", y2: "21", key: "weycgp" }]
10514 ]);
10515 /**
10516 * @license lucide-react v0.294.0 - ISC
10517 *
10518 * This source code is licensed under the ISC license.
10519 * See the LICENSE file in the root directory of this source tree.
10520 */
10521 const Heart = createLucideIcon("Heart", [
10522 [
10523 "path",
10524 {
10525 d: "M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",
10526 key: "c3ymky"
10527 }
10528 ]
10529 ]);
10530 /**
10531 * @license lucide-react v0.294.0 - ISC
10532 *
10533 * This source code is licensed under the ISC license.
10534 * See the LICENSE file in the root directory of this source tree.
10535 */
10536 const HelpCircle = createLucideIcon("HelpCircle", [
10537 ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
10538 ["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", key: "1u773s" }],
10539 ["path", { d: "M12 17h.01", key: "p32p05" }]
10540 ]);
10541 /**
10542 * @license lucide-react v0.294.0 - ISC
10543 *
10544 * This source code is licensed under the ISC license.
10545 * See the LICENSE file in the root directory of this source tree.
10546 */
10547 const History = createLucideIcon("History", [
10548 ["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
10549 ["path", { d: "M3 3v5h5", key: "1xhq8a" }],
10550 ["path", { d: "M12 7v5l4 2", key: "1fdv2h" }]
10551 ]);
10552 /**
10553 * @license lucide-react v0.294.0 - ISC
10554 *
10555 * This source code is licensed under the ISC license.
10556 * See the LICENSE file in the root directory of this source tree.
10557 */
10558 const Home = createLucideIcon("Home", [
10559 ["path", { d: "m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z", key: "y5dka4" }],
10560 ["polyline", { points: "9 22 9 12 15 12 15 22", key: "e2us08" }]
10561 ]);
10562 /**
10563 * @license lucide-react v0.294.0 - ISC
10564 *
10565 * This source code is licensed under the ISC license.
10566 * See the LICENSE file in the root directory of this source tree.
10567 */
10568 const Hotel = createLucideIcon("Hotel", [
10569 [
10570 "path",
10571 {
10572 d: "M18 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2Z",
10573 key: "p9z69c"
10574 }
10575 ],
10576 ["path", { d: "m9 16 .348-.24c1.465-1.013 3.84-1.013 5.304 0L15 16", key: "1bvcvh" }],
10577 ["path", { d: "M8 7h.01", key: "1vti4s" }],
10578 ["path", { d: "M16 7h.01", key: "1kdx03" }],
10579 ["path", { d: "M12 7h.01", key: "1ivr5q" }],
10580 ["path", { d: "M12 11h.01", key: "z322tv" }],
10581 ["path", { d: "M16 11h.01", key: "xkw8gn" }],
10582 ["path", { d: "M8 11h.01", key: "1dfujw" }],
10583 ["path", { d: "M10 22v-6.5m4 0V22", key: "16gs4s" }]
10584 ]);
10585 /**
10586 * @license lucide-react v0.294.0 - ISC
10587 *
10588 * This source code is licensed under the ISC license.
10589 * See the LICENSE file in the root directory of this source tree.
10590 */
10591 const Image = createLucideIcon("Image", [
10592 ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
10593 ["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }],
10594 ["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", key: "1xmnt7" }]
10595 ]);
10596 /**
10597 * @license lucide-react v0.294.0 - ISC
10598 *
10599 * This source code is licensed under the ISC license.
10600 * See the LICENSE file in the root directory of this source tree.
10601 */
10602 const Inbox = createLucideIcon("Inbox", [
10603 ["polyline", { points: "22 12 16 12 14 15 10 15 8 12 2 12", key: "o97t9d" }],
10604 [
10605 "path",
10606 {
10607 d: "M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",
10608 key: "oot6mr"
10609 }
10610 ]
10611 ]);
10612 /**
10613 * @license lucide-react v0.294.0 - ISC
10614 *
10615 * This source code is licensed under the ISC license.
10616 * See the LICENSE file in the root directory of this source tree.
10617 */
10618 const Info = createLucideIcon("Info", [
10619 ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
10620 ["path", { d: "M12 16v-4", key: "1dtifu" }],
10621 ["path", { d: "M12 8h.01", key: "e9boi3" }]
10622 ]);
10623 /**
10624 * @license lucide-react v0.294.0 - ISC
10625 *
10626 * This source code is licensed under the ISC license.
10627 * See the LICENSE file in the root directory of this source tree.
10628 */
10629 const KeyRound = createLucideIcon("KeyRound", [
10630 ["path", { d: "M2 18v3c0 .6.4 1 1 1h4v-3h3v-3h2l1.4-1.4a6.5 6.5 0 1 0-4-4Z", key: "167ctg" }],
10631 ["circle", { cx: "16.5", cy: "7.5", r: ".5", key: "1kog09" }]
10632 ]);
10633 /**
10634 * @license lucide-react v0.294.0 - ISC
10635 *
10636 * This source code is licensed under the ISC license.
10637 * See the LICENSE file in the root directory of this source tree.
10638 */
10639 const Key = createLucideIcon("Key", [
10640 ["circle", { cx: "7.5", cy: "15.5", r: "5.5", key: "yqb3hr" }],
10641 ["path", { d: "m21 2-9.6 9.6", key: "1j0ho8" }],
10642 ["path", { d: "m15.5 7.5 3 3L22 7l-3-3", key: "1rn1fs" }]
10643 ]);
10644 /**
10645 * @license lucide-react v0.294.0 - ISC
10646 *
10647 * This source code is licensed under the ISC license.
10648 * See the LICENSE file in the root directory of this source tree.
10649 */
10650 const Layers = createLucideIcon("Layers", [
10651 [
10652 "path",
10653 {
10654 d: "m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",
10655 key: "8b97xw"
10656 }
10657 ],
10658 ["path", { d: "m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65", key: "dd6zsq" }],
10659 ["path", { d: "m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65", key: "ep9fru" }]
10660 ]);
10661 /**
10662 * @license lucide-react v0.294.0 - ISC
10663 *
10664 * This source code is licensed under the ISC license.
10665 * See the LICENSE file in the root directory of this source tree.
10666 */
10667 const LayoutDashboard = createLucideIcon("LayoutDashboard", [
10668 ["rect", { width: "7", height: "9", x: "3", y: "3", rx: "1", key: "10lvy0" }],
10669 ["rect", { width: "7", height: "5", x: "14", y: "3", rx: "1", key: "16une8" }],
10670 ["rect", { width: "7", height: "9", x: "14", y: "12", rx: "1", key: "1hutg5" }],
10671 ["rect", { width: "7", height: "5", x: "3", y: "16", rx: "1", key: "ldoo1y" }]
10672 ]);
10673 /**
10674 * @license lucide-react v0.294.0 - ISC
10675 *
10676 * This source code is licensed under the ISC license.
10677 * See the LICENSE file in the root directory of this source tree.
10678 */
10679 const Layout = createLucideIcon("Layout", [
10680 ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
10681 ["line", { x1: "3", x2: "21", y1: "9", y2: "9", key: "1vqk6q" }],
10682 ["line", { x1: "9", x2: "9", y1: "21", y2: "9", key: "wpwpyp" }]
10683 ]);
10684 /**
10685 * @license lucide-react v0.294.0 - ISC
10686 *
10687 * This source code is licensed under the ISC license.
10688 * See the LICENSE file in the root directory of this source tree.
10689 */
10690 const LifeBuoy = createLucideIcon("LifeBuoy", [
10691 ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
10692 ["path", { d: "m4.93 4.93 4.24 4.24", key: "1ymg45" }],
10693 ["path", { d: "m14.83 9.17 4.24-4.24", key: "1cb5xl" }],
10694 ["path", { d: "m14.83 14.83 4.24 4.24", key: "q42g0n" }],
10695 ["path", { d: "m9.17 14.83-4.24 4.24", key: "bqpfvv" }],
10696 ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }]
10697 ]);
10698 /**
10699 * @license lucide-react v0.294.0 - ISC
10700 *
10701 * This source code is licensed under the ISC license.
10702 * See the LICENSE file in the root directory of this source tree.
10703 */
10704 const Lightbulb = createLucideIcon("Lightbulb", [
10705 [
10706 "path",
10707 {
10708 d: "M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",
10709 key: "1gvzjb"
10710 }
10711 ],
10712 ["path", { d: "M9 18h6", key: "x1upvd" }],
10713 ["path", { d: "M10 22h4", key: "ceow96" }]
10714 ]);
10715 /**
10716 * @license lucide-react v0.294.0 - ISC
10717 *
10718 * This source code is licensed under the ISC license.
10719 * See the LICENSE file in the root directory of this source tree.
10720 */
10721 const Link = createLucideIcon("Link", [
10722 ["path", { d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71", key: "1cjeqo" }],
10723 ["path", { d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71", key: "19qd67" }]
10724 ]);
10725 /**
10726 * @license lucide-react v0.294.0 - ISC
10727 *
10728 * This source code is licensed under the ISC license.
10729 * See the LICENSE file in the root directory of this source tree.
10730 */
10731 const List = createLucideIcon("List", [
10732 ["line", { x1: "8", x2: "21", y1: "6", y2: "6", key: "7ey8pc" }],
10733 ["line", { x1: "8", x2: "21", y1: "12", y2: "12", key: "rjfblc" }],
10734 ["line", { x1: "8", x2: "21", y1: "18", y2: "18", key: "c3b1m8" }],
10735 ["line", { x1: "3", x2: "3.01", y1: "6", y2: "6", key: "1g7gq3" }],
10736 ["line", { x1: "3", x2: "3.01", y1: "12", y2: "12", key: "1pjlvk" }],
10737 ["line", { x1: "3", x2: "3.01", y1: "18", y2: "18", key: "28t2mc" }]
10738 ]);
10739 /**
10740 * @license lucide-react v0.294.0 - ISC
10741 *
10742 * This source code is licensed under the ISC license.
10743 * See the LICENSE file in the root directory of this source tree.
10744 */
10745 const Loader2 = createLucideIcon("Loader2", [
10746 ["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]
10747 ]);
10748 /**
10749 * @license lucide-react v0.294.0 - ISC
10750 *
10751 * This source code is licensed under the ISC license.
10752 * See the LICENSE file in the root directory of this source tree.
10753 */
10754 const Lock = createLucideIcon("Lock", [
10755 ["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
10756 ["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }]
10757 ]);
10758 /**
10759 * @license lucide-react v0.294.0 - ISC
10760 *
10761 * This source code is licensed under the ISC license.
10762 * See the LICENSE file in the root directory of this source tree.
10763 */
10764 const LogOut = createLucideIcon("LogOut", [
10765 ["path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", key: "1uf3rs" }],
10766 ["polyline", { points: "16 17 21 12 16 7", key: "1gabdz" }],
10767 ["line", { x1: "21", x2: "9", y1: "12", y2: "12", key: "1uyos4" }]
10768 ]);
10769 /**
10770 * @license lucide-react v0.294.0 - ISC
10771 *
10772 * This source code is licensed under the ISC license.
10773 * See the LICENSE file in the root directory of this source tree.
10774 */
10775 const Mail = createLucideIcon("Mail", [
10776 ["rect", { width: "20", height: "16", x: "2", y: "4", rx: "2", key: "18n3k1" }],
10777 ["path", { d: "m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7", key: "1ocrg3" }]
10778 ]);
10779 /**
10780 * @license lucide-react v0.294.0 - ISC
10781 *
10782 * This source code is licensed under the ISC license.
10783 * See the LICENSE file in the root directory of this source tree.
10784 */
10785 const MapPin = createLucideIcon("MapPin", [
10786 ["path", { d: "M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z", key: "2oe9fu" }],
10787 ["circle", { cx: "12", cy: "10", r: "3", key: "ilqhr7" }]
10788 ]);
10789 /**
10790 * @license lucide-react v0.294.0 - ISC
10791 *
10792 * This source code is licensed under the ISC license.
10793 * See the LICENSE file in the root directory of this source tree.
10794 */
10795 const Maximize2 = createLucideIcon("Maximize2", [
10796 ["polyline", { points: "15 3 21 3 21 9", key: "mznyad" }],
10797 ["polyline", { points: "9 21 3 21 3 15", key: "1avn1i" }],
10798 ["line", { x1: "21", x2: "14", y1: "3", y2: "10", key: "ota7mn" }],
10799 ["line", { x1: "3", x2: "10", y1: "21", y2: "14", key: "1atl0r" }]
10800 ]);
10801 /**
10802 * @license lucide-react v0.294.0 - ISC
10803 *
10804 * This source code is licensed under the ISC license.
10805 * See the LICENSE file in the root directory of this source tree.
10806 */
10807 const Megaphone = createLucideIcon("Megaphone", [
10808 ["path", { d: "m3 11 18-5v12L3 14v-3z", key: "n962bs" }],
10809 ["path", { d: "M11.6 16.8a3 3 0 1 1-5.8-1.6", key: "1yl0tm" }]
10810 ]);
10811 /**
10812 * @license lucide-react v0.294.0 - ISC
10813 *
10814 * This source code is licensed under the ISC license.
10815 * See the LICENSE file in the root directory of this source tree.
10816 */
10817 const MessageCircle = createLucideIcon("MessageCircle", [
10818 ["path", { d: "m3 21 1.9-5.7a8.5 8.5 0 1 1 3.8 3.8z", key: "v2veuj" }]
10819 ]);
10820 /**
10821 * @license lucide-react v0.294.0 - ISC
10822 *
10823 * This source code is licensed under the ISC license.
10824 * See the LICENSE file in the root directory of this source tree.
10825 */
10826 const MessageSquare = createLucideIcon("MessageSquare", [
10827 ["path", { d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z", key: "1lielz" }]
10828 ]);
10829 /**
10830 * @license lucide-react v0.294.0 - ISC
10831 *
10832 * This source code is licensed under the ISC license.
10833 * See the LICENSE file in the root directory of this source tree.
10834 */
10835 const Moon = createLucideIcon("Moon", [
10836 ["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z", key: "a7tn18" }]
10837 ]);
10838 /**
10839 * @license lucide-react v0.294.0 - ISC
10840 *
10841 * This source code is licensed under the ISC license.
10842 * See the LICENSE file in the root directory of this source tree.
10843 */
10844 const MoreVertical = createLucideIcon("MoreVertical", [
10845 ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
10846 ["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }],
10847 ["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }]
10848 ]);
10849 /**
10850 * @license lucide-react v0.294.0 - ISC
10851 *
10852 * This source code is licensed under the ISC license.
10853 * See the LICENSE file in the root directory of this source tree.
10854 */
10855 const Mountain = createLucideIcon("Mountain", [
10856 ["path", { d: "m8 3 4 8 5-5 5 15H2L8 3z", key: "otkl63" }]
10857 ]);
10858 /**
10859 * @license lucide-react v0.294.0 - ISC
10860 *
10861 * This source code is licensed under the ISC license.
10862 * See the LICENSE file in the root directory of this source tree.
10863 */
10864 const Network = createLucideIcon("Network", [
10865 ["rect", { x: "16", y: "16", width: "6", height: "6", rx: "1", key: "4q2zg0" }],
10866 ["rect", { x: "2", y: "16", width: "6", height: "6", rx: "1", key: "8cvhb9" }],
10867 ["rect", { x: "9", y: "2", width: "6", height: "6", rx: "1", key: "1egb70" }],
10868 ["path", { d: "M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3", key: "1jsf9p" }],
10869 ["path", { d: "M12 12V8", key: "2874zd" }]
10870 ]);
10871 /**
10872 * @license lucide-react v0.294.0 - ISC
10873 *
10874 * This source code is licensed under the ISC license.
10875 * See the LICENSE file in the root directory of this source tree.
10876 */
10877 const Package = createLucideIcon("Package", [
10878 ["path", { d: "m7.5 4.27 9 5.15", key: "1c824w" }],
10879 [
10880 "path",
10881 {
10882 d: "M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",
10883 key: "hh9hay"
10884 }
10885 ],
10886 ["path", { d: "m3.3 7 8.7 5 8.7-5", key: "g66t2b" }],
10887 ["path", { d: "M12 22V12", key: "d0xqtd" }]
10888 ]);
10889 /**
10890 * @license lucide-react v0.294.0 - ISC
10891 *
10892 * This source code is licensed under the ISC license.
10893 * See the LICENSE file in the root directory of this source tree.
10894 */
10895 const Palette = createLucideIcon("Palette", [
10896 ["circle", { cx: "13.5", cy: "6.5", r: ".5", key: "1xcu5" }],
10897 ["circle", { cx: "17.5", cy: "10.5", r: ".5", key: "736e4u" }],
10898 ["circle", { cx: "8.5", cy: "7.5", r: ".5", key: "clrty" }],
10899 ["circle", { cx: "6.5", cy: "12.5", r: ".5", key: "1s4xz9" }],
10900 [
10901 "path",
10902 {
10903 d: "M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",
10904 key: "12rzf8"
10905 }
10906 ]
10907 ]);
10908 /**
10909 * @license lucide-react v0.294.0 - ISC
10910 *
10911 * This source code is licensed under the ISC license.
10912 * See the LICENSE file in the root directory of this source tree.
10913 */
10914 const PanelLeft = createLucideIcon("PanelLeft", [
10915 ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
10916 ["line", { x1: "9", x2: "9", y1: "3", y2: "21", key: "13tij5" }]
10917 ]);
10918 /**
10919 * @license lucide-react v0.294.0 - ISC
10920 *
10921 * This source code is licensed under the ISC license.
10922 * See the LICENSE file in the root directory of this source tree.
10923 */
10924 const PauseCircle = createLucideIcon("PauseCircle", [
10925 ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
10926 ["line", { x1: "10", x2: "10", y1: "15", y2: "9", key: "c1nkhi" }],
10927 ["line", { x1: "14", x2: "14", y1: "15", y2: "9", key: "h65svq" }]
10928 ]);
10929 /**
10930 * @license lucide-react v0.294.0 - ISC
10931 *
10932 * This source code is licensed under the ISC license.
10933 * See the LICENSE file in the root directory of this source tree.
10934 */
10935 const Pause = createLucideIcon("Pause", [
10936 ["rect", { width: "4", height: "16", x: "6", y: "4", key: "iffhe4" }],
10937 ["rect", { width: "4", height: "16", x: "14", y: "4", key: "sjin7j" }]
10938 ]);
10939 /**
10940 * @license lucide-react v0.294.0 - ISC
10941 *
10942 * This source code is licensed under the ISC license.
10943 * See the LICENSE file in the root directory of this source tree.
10944 */
10945 const PenSquare = createLucideIcon("PenSquare", [
10946 ["path", { d: "M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7", key: "1qinfi" }],
10947 ["path", { d: "M18.5 2.5a2.12 2.12 0 0 1 3 3L12 15l-4 1 1-4Z", key: "w2jsv5" }]
10948 ]);
10949 /**
10950 * @license lucide-react v0.294.0 - ISC
10951 *
10952 * This source code is licensed under the ISC license.
10953 * See the LICENSE file in the root directory of this source tree.
10954 */
10955 const PenTool = createLucideIcon("PenTool", [
10956 ["path", { d: "m12 19 7-7 3 3-7 7-3-3z", key: "rklqx2" }],
10957 ["path", { d: "m18 13-1.5-7.5L2 2l3.5 14.5L13 18l5-5z", key: "1et58u" }],
10958 ["path", { d: "m2 2 7.586 7.586", key: "etlp93" }],
10959 ["circle", { cx: "11", cy: "11", r: "2", key: "xmgehs" }]
10960 ]);
10961 /**
10962 * @license lucide-react v0.294.0 - ISC
10963 *
10964 * This source code is licensed under the ISC license.
10965 * See the LICENSE file in the root directory of this source tree.
10966 */
10967 const Pen = createLucideIcon("Pen", [
10968 ["path", { d: "M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z", key: "5qss01" }]
10969 ]);
10970 /**
10971 * @license lucide-react v0.294.0 - ISC
10972 *
10973 * This source code is licensed under the ISC license.
10974 * See the LICENSE file in the root directory of this source tree.
10975 */
10976 const Pencil = createLucideIcon("Pencil", [
10977 ["path", { d: "M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z", key: "5qss01" }],
10978 ["path", { d: "m15 5 4 4", key: "1mk7zo" }]
10979 ]);
10980 /**
10981 * @license lucide-react v0.294.0 - ISC
10982 *
10983 * This source code is licensed under the ISC license.
10984 * See the LICENSE file in the root directory of this source tree.
10985 */
10986 const Percent = createLucideIcon("Percent", [
10987 ["line", { x1: "19", x2: "5", y1: "5", y2: "19", key: "1x9vlm" }],
10988 ["circle", { cx: "6.5", cy: "6.5", r: "2.5", key: "4mh3h7" }],
10989 ["circle", { cx: "17.5", cy: "17.5", r: "2.5", key: "1mdrzq" }]
10990 ]);
10991 /**
10992 * @license lucide-react v0.294.0 - ISC
10993 *
10994 * This source code is licensed under the ISC license.
10995 * See the LICENSE file in the root directory of this source tree.
10996 */
10997 const Phone = createLucideIcon("Phone", [
10998 [
10999 "path",
11000 {
11001 d: "M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",
11002 key: "foiqr5"
11003 }
11004 ]
11005 ]);
11006 /**
11007 * @license lucide-react v0.294.0 - ISC
11008 *
11009 * This source code is licensed under the ISC license.
11010 * See the LICENSE file in the root directory of this source tree.
11011 */
11012 const Plane = createLucideIcon("Plane", [
11013 [
11014 "path",
11015 {
11016 d: "M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z",
11017 key: "1v9wt8"
11018 }
11019 ]
11020 ]);
11021 /**
11022 * @license lucide-react v0.294.0 - ISC
11023 *
11024 * This source code is licensed under the ISC license.
11025 * See the LICENSE file in the root directory of this source tree.
11026 */
11027 const Play = createLucideIcon("Play", [
11028 ["polygon", { points: "5 3 19 12 5 21 5 3", key: "191637" }]
11029 ]);
11030 /**
11031 * @license lucide-react v0.294.0 - ISC
11032 *
11033 * This source code is licensed under the ISC license.
11034 * See the LICENSE file in the root directory of this source tree.
11035 */
11036 const Plug = createLucideIcon("Plug", [
11037 ["path", { d: "M12 22v-5", key: "1ega77" }],
11038 ["path", { d: "M9 8V2", key: "14iosj" }],
11039 ["path", { d: "M15 8V2", key: "18g5xt" }],
11040 ["path", { d: "M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z", key: "osxo6l" }]
11041 ]);
11042 /**
11043 * @license lucide-react v0.294.0 - ISC
11044 *
11045 * This source code is licensed under the ISC license.
11046 * See the LICENSE file in the root directory of this source tree.
11047 */
11048 const Plus = createLucideIcon("Plus", [
11049 ["path", { d: "M5 12h14", key: "1ays0h" }],
11050 ["path", { d: "M12 5v14", key: "s699le" }]
11051 ]);
11052 /**
11053 * @license lucide-react v0.294.0 - ISC
11054 *
11055 * This source code is licensed under the ISC license.
11056 * See the LICENSE file in the root directory of this source tree.
11057 */
11058 const PowerOff = createLucideIcon("PowerOff", [
11059 ["path", { d: "M18.36 6.64A9 9 0 0 1 20.77 15", key: "dxknvb" }],
11060 ["path", { d: "M6.16 6.16a9 9 0 1 0 12.68 12.68", key: "1x7qb5" }],
11061 ["path", { d: "M12 2v4", key: "3427ic" }],
11062 ["path", { d: "m2 2 20 20", key: "1ooewy" }]
11063 ]);
11064 /**
11065 * @license lucide-react v0.294.0 - ISC
11066 *
11067 * This source code is licensed under the ISC license.
11068 * See the LICENSE file in the root directory of this source tree.
11069 */
11070 const Power = createLucideIcon("Power", [
11071 ["path", { d: "M12 2v10", key: "mnfbl" }],
11072 ["path", { d: "M18.4 6.6a9 9 0 1 1-12.77.04", key: "obofu9" }]
11073 ]);
11074 /**
11075 * @license lucide-react v0.294.0 - ISC
11076 *
11077 * This source code is licensed under the ISC license.
11078 * See the LICENSE file in the root directory of this source tree.
11079 */
11080 const Puzzle = createLucideIcon("Puzzle", [
11081 [
11082 "path",
11083 {
11084 d: "M19.439 7.85c-.049.322.059.648.289.878l1.568 1.568c.47.47.706 1.087.706 1.704s-.235 1.233-.706 1.704l-1.611 1.611a.98.98 0 0 1-.837.276c-.47-.07-.802-.48-.968-.925a2.501 2.501 0 1 0-3.214 3.214c.446.166.855.497.925.968a.979.979 0 0 1-.276.837l-1.61 1.61a2.404 2.404 0 0 1-1.705.707 2.402 2.402 0 0 1-1.704-.706l-1.568-1.568a1.026 1.026 0 0 0-.877-.29c-.493.074-.84.504-1.02.968a2.5 2.5 0 1 1-3.237-3.237c.464-.18.894-.527.967-1.02a1.026 1.026 0 0 0-.289-.877l-1.568-1.568A2.402 2.402 0 0 1 1.998 12c0-.617.236-1.234.706-1.704L4.23 8.77c.24-.24.581-.353.917-.303.515.077.877.528 1.073 1.01a2.5 2.5 0 1 0 3.259-3.259c-.482-.196-.933-.558-1.01-1.073-.05-.336.062-.676.303-.917l1.525-1.525A2.402 2.402 0 0 1 12 1.998c.617 0 1.234.236 1.704.706l1.568 1.568c.23.23.556.338.877.29.493-.074.84-.504 1.02-.968a2.5 2.5 0 1 1 3.237 3.237c-.464.18-.894.527-.967 1.02Z",
11085 key: "i0oyt7"
11086 }
11087 ]
11088 ]);
11089 /**
11090 * @license lucide-react v0.294.0 - ISC
11091 *
11092 * This source code is licensed under the ISC license.
11093 * See the LICENSE file in the root directory of this source tree.
11094 */
11095 const Receipt = createLucideIcon("Receipt", [
11096 [
11097 "path",
11098 {
11099 d: "M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1-2-1Z",
11100 key: "wqdwcb"
11101 }
11102 ],
11103 ["path", { d: "M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8", key: "1h4pet" }],
11104 ["path", { d: "M12 17V7", key: "pyj7ub" }]
11105 ]);
11106 /**
11107 * @license lucide-react v0.294.0 - ISC
11108 *
11109 * This source code is licensed under the ISC license.
11110 * See the LICENSE file in the root directory of this source tree.
11111 */
11112 const RefreshCw = createLucideIcon("RefreshCw", [
11113 ["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
11114 ["path", { d: "M21 3v5h-5", key: "1q7to0" }],
11115 ["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
11116 ["path", { d: "M8 16H3v5", key: "1cv678" }]
11117 ]);
11118 /**
11119 * @license lucide-react v0.294.0 - ISC
11120 *
11121 * This source code is licensed under the ISC license.
11122 * See the LICENSE file in the root directory of this source tree.
11123 */
11124 const Replace = createLucideIcon("Replace", [
11125 ["path", { d: "M14 4c0-1.1.9-2 2-2", key: "1mvvbw" }],
11126 ["path", { d: "M20 2c1.1 0 2 .9 2 2", key: "1mj6oe" }],
11127 ["path", { d: "M22 8c0 1.1-.9 2-2 2", key: "v1wql3" }],
11128 ["path", { d: "M16 10c-1.1 0-2-.9-2-2", key: "821ux0" }],
11129 ["path", { d: "m3 7 3 3 3-3", key: "x25e72" }],
11130 ["path", { d: "M6 10V5c0-1.7 1.3-3 3-3h1", key: "13af7h" }],
11131 ["rect", { width: "8", height: "8", x: "2", y: "14", rx: "2", key: "17ihk4" }]
11132 ]);
11133 /**
11134 * @license lucide-react v0.294.0 - ISC
11135 *
11136 * This source code is licensed under the ISC license.
11137 * See the LICENSE file in the root directory of this source tree.
11138 */
11139 const RotateCcw = createLucideIcon("RotateCcw", [
11140 ["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
11141 ["path", { d: "M3 3v5h5", key: "1xhq8a" }]
11142 ]);
11143 /**
11144 * @license lucide-react v0.294.0 - ISC
11145 *
11146 * This source code is licensed under the ISC license.
11147 * See the LICENSE file in the root directory of this source tree.
11148 */
11149 const Route = createLucideIcon("Route", [
11150 ["circle", { cx: "6", cy: "19", r: "3", key: "1kj8tv" }],
11151 ["path", { d: "M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15", key: "1d8sl" }],
11152 ["circle", { cx: "18", cy: "5", r: "3", key: "gq8acd" }]
11153 ]);
11154 /**
11155 * @license lucide-react v0.294.0 - ISC
11156 *
11157 * This source code is licensed under the ISC license.
11158 * See the LICENSE file in the root directory of this source tree.
11159 */
11160 const Save = createLucideIcon("Save", [
11161 ["path", { d: "M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z", key: "1owoqh" }],
11162 ["polyline", { points: "17 21 17 13 7 13 7 21", key: "1md35c" }],
11163 ["polyline", { points: "7 3 7 8 15 8", key: "8nz8an" }]
11164 ]);
11165 /**
11166 * @license lucide-react v0.294.0 - ISC
11167 *
11168 * This source code is licensed under the ISC license.
11169 * See the LICENSE file in the root directory of this source tree.
11170 */
11171 const Scissors = createLucideIcon("Scissors", [
11172 ["circle", { cx: "6", cy: "6", r: "3", key: "1lh9wr" }],
11173 ["path", { d: "M8.12 8.12 12 12", key: "1alkpv" }],
11174 ["path", { d: "M20 4 8.12 15.88", key: "xgtan2" }],
11175 ["circle", { cx: "6", cy: "18", r: "3", key: "fqmcym" }],
11176 ["path", { d: "M14.8 14.8 20 20", key: "ptml3r" }]
11177 ]);
11178 /**
11179 * @license lucide-react v0.294.0 - ISC
11180 *
11181 * This source code is licensed under the ISC license.
11182 * See the LICENSE file in the root directory of this source tree.
11183 */
11184 const Search = createLucideIcon("Search", [
11185 ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
11186 ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
11187 ]);
11188 /**
11189 * @license lucide-react v0.294.0 - ISC
11190 *
11191 * This source code is licensed under the ISC license.
11192 * See the LICENSE file in the root directory of this source tree.
11193 */
11194 const Send = createLucideIcon("Send", [
11195 ["path", { d: "m22 2-7 20-4-9-9-4Z", key: "1q3vgg" }],
11196 ["path", { d: "M22 2 11 13", key: "nzbqef" }]
11197 ]);
11198 /**
11199 * @license lucide-react v0.294.0 - ISC
11200 *
11201 * This source code is licensed under the ISC license.
11202 * See the LICENSE file in the root directory of this source tree.
11203 */
11204 const Server = createLucideIcon("Server", [
11205 ["rect", { width: "20", height: "8", x: "2", y: "2", rx: "2", ry: "2", key: "ngkwjq" }],
11206 ["rect", { width: "20", height: "8", x: "2", y: "14", rx: "2", ry: "2", key: "iecqi9" }],
11207 ["line", { x1: "6", x2: "6.01", y1: "6", y2: "6", key: "16zg32" }],
11208 ["line", { x1: "6", x2: "6.01", y1: "18", y2: "18", key: "nzw8ys" }]
11209 ]);
11210 /**
11211 * @license lucide-react v0.294.0 - ISC
11212 *
11213 * This source code is licensed under the ISC license.
11214 * See the LICENSE file in the root directory of this source tree.
11215 */
11216 const Settings2 = createLucideIcon("Settings2", [
11217 ["path", { d: "M20 7h-9", key: "3s1dr2" }],
11218 ["path", { d: "M14 17H5", key: "gfn3mx" }],
11219 ["circle", { cx: "17", cy: "17", r: "3", key: "18b49y" }],
11220 ["circle", { cx: "7", cy: "7", r: "3", key: "dfmy0x" }]
11221 ]);
11222 /**
11223 * @license lucide-react v0.294.0 - ISC
11224 *
11225 * This source code is licensed under the ISC license.
11226 * See the LICENSE file in the root directory of this source tree.
11227 */
11228 const Settings = createLucideIcon("Settings", [
11229 [
11230 "path",
11231 {
11232 d: "M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",
11233 key: "1qme2f"
11234 }
11235 ],
11236 ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
11237 ]);
11238 /**
11239 * @license lucide-react v0.294.0 - ISC
11240 *
11241 * This source code is licensed under the ISC license.
11242 * See the LICENSE file in the root directory of this source tree.
11243 */
11244 const ShieldCheck = createLucideIcon("ShieldCheck", [
11245 ["path", { d: "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10", key: "1irkt0" }],
11246 ["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
11247 ]);
11248 /**
11249 * @license lucide-react v0.294.0 - ISC
11250 *
11251 * This source code is licensed under the ISC license.
11252 * See the LICENSE file in the root directory of this source tree.
11253 */
11254 const ShieldOff = createLucideIcon("ShieldOff", [
11255 ["path", { d: "M19.7 14a6.9 6.9 0 0 0 .3-2V5l-8-3-3.2 1.2", key: "342pvf" }],
11256 ["path", { d: "m2 2 20 20", key: "1ooewy" }],
11257 ["path", { d: "M4.7 4.7 4 5v7c0 6 8 10 8 10a20.3 20.3 0 0 0 5.62-4.38", key: "p0ycf4" }]
11258 ]);
11259 /**
11260 * @license lucide-react v0.294.0 - ISC
11261 *
11262 * This source code is licensed under the ISC license.
11263 * See the LICENSE file in the root directory of this source tree.
11264 */
11265 const ShieldX = createLucideIcon("ShieldX", [
11266 ["path", { d: "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10", key: "1irkt0" }],
11267 ["path", { d: "m14.5 9-5 5", key: "1m49dw" }],
11268 ["path", { d: "m9.5 9 5 5", key: "wyx7zg" }]
11269 ]);
11270 /**
11271 * @license lucide-react v0.294.0 - ISC
11272 *
11273 * This source code is licensed under the ISC license.
11274 * See the LICENSE file in the root directory of this source tree.
11275 */
11276 const Shield = createLucideIcon("Shield", [
11277 ["path", { d: "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10", key: "1irkt0" }]
11278 ]);
11279 /**
11280 * @license lucide-react v0.294.0 - ISC
11281 *
11282 * This source code is licensed under the ISC license.
11283 * See the LICENSE file in the root directory of this source tree.
11284 */
11285 const SlidersHorizontal = createLucideIcon("SlidersHorizontal", [
11286 ["line", { x1: "21", x2: "14", y1: "4", y2: "4", key: "obuewd" }],
11287 ["line", { x1: "10", x2: "3", y1: "4", y2: "4", key: "1q6298" }],
11288 ["line", { x1: "21", x2: "12", y1: "12", y2: "12", key: "1iu8h1" }],
11289 ["line", { x1: "8", x2: "3", y1: "12", y2: "12", key: "ntss68" }],
11290 ["line", { x1: "21", x2: "16", y1: "20", y2: "20", key: "14d8ph" }],
11291 ["line", { x1: "12", x2: "3", y1: "20", y2: "20", key: "m0wm8r" }],
11292 ["line", { x1: "14", x2: "14", y1: "2", y2: "6", key: "14e1ph" }],
11293 ["line", { x1: "8", x2: "8", y1: "10", y2: "14", key: "1i6ji0" }],
11294 ["line", { x1: "16", x2: "16", y1: "18", y2: "22", key: "1lctlv" }]
11295 ]);
11296 /**
11297 * @license lucide-react v0.294.0 - ISC
11298 *
11299 * This source code is licensed under the ISC license.
11300 * See the LICENSE file in the root directory of this source tree.
11301 */
11302 const Sparkles = createLucideIcon("Sparkles", [
11303 [
11304 "path",
11305 {
11306 d: "m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",
11307 key: "17u4zn"
11308 }
11309 ],
11310 ["path", { d: "M5 3v4", key: "bklmnn" }],
11311 ["path", { d: "M19 17v4", key: "iiml17" }],
11312 ["path", { d: "M3 5h4", key: "nem4j1" }],
11313 ["path", { d: "M17 19h4", key: "lbex7p" }]
11314 ]);
11315 /**
11316 * @license lucide-react v0.294.0 - ISC
11317 *
11318 * This source code is licensed under the ISC license.
11319 * See the LICENSE file in the root directory of this source tree.
11320 */
11321 const Star = createLucideIcon("Star", [
11322 [
11323 "polygon",
11324 {
11325 points: "12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",
11326 key: "8f66p6"
11327 }
11328 ]
11329 ]);
11330 /**
11331 * @license lucide-react v0.294.0 - ISC
11332 *
11333 * This source code is licensed under the ISC license.
11334 * See the LICENSE file in the root directory of this source tree.
11335 */
11336 const Sun = createLucideIcon("Sun", [
11337 ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
11338 ["path", { d: "M12 2v2", key: "tus03m" }],
11339 ["path", { d: "M12 20v2", key: "1lh1kg" }],
11340 ["path", { d: "m4.93 4.93 1.41 1.41", key: "149t6j" }],
11341 ["path", { d: "m17.66 17.66 1.41 1.41", key: "ptbguv" }],
11342 ["path", { d: "M2 12h2", key: "1t8f8n" }],
11343 ["path", { d: "M20 12h2", key: "1q8mjw" }],
11344 ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
11345 ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
11346 ]);
11347 /**
11348 * @license lucide-react v0.294.0 - ISC
11349 *
11350 * This source code is licensed under the ISC license.
11351 * See the LICENSE file in the root directory of this source tree.
11352 */
11353 const Tag = createLucideIcon("Tag", [
11354 [
11355 "path",
11356 {
11357 d: "M12 2H2v10l9.29 9.29c.94.94 2.48.94 3.42 0l6.58-6.58c.94-.94.94-2.48 0-3.42L12 2Z",
11358 key: "14b2ls"
11359 }
11360 ],
11361 ["path", { d: "M7 7h.01", key: "7u93v4" }]
11362 ]);
11363 /**
11364 * @license lucide-react v0.294.0 - ISC
11365 *
11366 * This source code is licensed under the ISC license.
11367 * See the LICENSE file in the root directory of this source tree.
11368 */
11369 const Target = createLucideIcon("Target", [
11370 ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
11371 ["circle", { cx: "12", cy: "12", r: "6", key: "1vlfrh" }],
11372 ["circle", { cx: "12", cy: "12", r: "2", key: "1c9p78" }]
11373 ]);
11374 /**
11375 * @license lucide-react v0.294.0 - ISC
11376 *
11377 * This source code is licensed under the ISC license.
11378 * See the LICENSE file in the root directory of this source tree.
11379 */
11380 const Trash2 = createLucideIcon("Trash2", [
11381 ["path", { d: "M3 6h18", key: "d0wm0j" }],
11382 ["path", { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6", key: "4alrt4" }],
11383 ["path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2", key: "v07s0e" }],
11384 ["line", { x1: "10", x2: "10", y1: "11", y2: "17", key: "1uufr5" }],
11385 ["line", { x1: "14", x2: "14", y1: "11", y2: "17", key: "xtxkd" }]
11386 ]);
11387 /**
11388 * @license lucide-react v0.294.0 - ISC
11389 *
11390 * This source code is licensed under the ISC license.
11391 * See the LICENSE file in the root directory of this source tree.
11392 */
11393 const TrendingUp = createLucideIcon("TrendingUp", [
11394 ["polyline", { points: "22 7 13.5 15.5 8.5 10.5 2 17", key: "126l90" }],
11395 ["polyline", { points: "16 7 22 7 22 13", key: "kwv8wd" }]
11396 ]);
11397 /**
11398 * @license lucide-react v0.294.0 - ISC
11399 *
11400 * This source code is licensed under the ISC license.
11401 * See the LICENSE file in the root directory of this source tree.
11402 */
11403 const Type = createLucideIcon("Type", [
11404 ["polyline", { points: "4 7 4 4 20 4 20 7", key: "1nosan" }],
11405 ["line", { x1: "9", x2: "15", y1: "20", y2: "20", key: "swin9y" }],
11406 ["line", { x1: "12", x2: "12", y1: "4", y2: "20", key: "1tx1rr" }]
11407 ]);
11408 /**
11409 * @license lucide-react v0.294.0 - ISC
11410 *
11411 * This source code is licensed under the ISC license.
11412 * See the LICENSE file in the root directory of this source tree.
11413 */
11414 const Undo2 = createLucideIcon("Undo2", [
11415 ["path", { d: "M9 14 4 9l5-5", key: "102s5s" }],
11416 ["path", { d: "M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5v0a5.5 5.5 0 0 1-5.5 5.5H11", key: "llx8ln" }]
11417 ]);
11418 /**
11419 * @license lucide-react v0.294.0 - ISC
11420 *
11421 * This source code is licensed under the ISC license.
11422 * See the LICENSE file in the root directory of this source tree.
11423 */
11424 const Unlock = createLucideIcon("Unlock", [
11425 ["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
11426 ["path", { d: "M7 11V7a5 5 0 0 1 9.9-1", key: "1mm8w8" }]
11427 ]);
11428 /**
11429 * @license lucide-react v0.294.0 - ISC
11430 *
11431 * This source code is licensed under the ISC license.
11432 * See the LICENSE file in the root directory of this source tree.
11433 */
11434 const Upload = createLucideIcon("Upload", [
11435 ["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
11436 ["polyline", { points: "17 8 12 3 7 8", key: "t8dd8p" }],
11437 ["line", { x1: "12", x2: "12", y1: "3", y2: "15", key: "widbto" }]
11438 ]);
11439 /**
11440 * @license lucide-react v0.294.0 - ISC
11441 *
11442 * This source code is licensed under the ISC license.
11443 * See the LICENSE file in the root directory of this source tree.
11444 */
11445 const UserCheck = createLucideIcon("UserCheck", [
11446 ["path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2", key: "1yyitq" }],
11447 ["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }],
11448 ["polyline", { points: "16 11 18 13 22 9", key: "1pwet4" }]
11449 ]);
11450 /**
11451 * @license lucide-react v0.294.0 - ISC
11452 *
11453 * This source code is licensed under the ISC license.
11454 * See the LICENSE file in the root directory of this source tree.
11455 */
11456 const UserPlus = createLucideIcon("UserPlus", [
11457 ["path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2", key: "1yyitq" }],
11458 ["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }],
11459 ["line", { x1: "19", x2: "19", y1: "8", y2: "14", key: "1bvyxn" }],
11460 ["line", { x1: "22", x2: "16", y1: "11", y2: "11", key: "1shjgl" }]
11461 ]);
11462 /**
11463 * @license lucide-react v0.294.0 - ISC
11464 *
11465 * This source code is licensed under the ISC license.
11466 * See the LICENSE file in the root directory of this source tree.
11467 */
11468 const User = createLucideIcon("User", [
11469 ["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
11470 ["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
11471 ]);
11472 /**
11473 * @license lucide-react v0.294.0 - ISC
11474 *
11475 * This source code is licensed under the ISC license.
11476 * See the LICENSE file in the root directory of this source tree.
11477 */
11478 const Users = createLucideIcon("Users", [
11479 ["path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2", key: "1yyitq" }],
11480 ["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }],
11481 ["path", { d: "M22 21v-2a4 4 0 0 0-3-3.87", key: "kshegd" }],
11482 ["path", { d: "M16 3.13a4 4 0 0 1 0 7.75", key: "1da9ce" }]
11483 ]);
11484 /**
11485 * @license lucide-react v0.294.0 - ISC
11486 *
11487 * This source code is licensed under the ISC license.
11488 * See the LICENSE file in the root directory of this source tree.
11489 */
11490 const UtensilsCrossed = createLucideIcon("UtensilsCrossed", [
11491 ["path", { d: "m16 2-2.3 2.3a3 3 0 0 0 0 4.2l1.8 1.8a3 3 0 0 0 4.2 0L22 8", key: "n7qcjb" }],
11492 [
11493 "path",
11494 { d: "M15 15 3.3 3.3a4.2 4.2 0 0 0 0 6l7.3 7.3c.7.7 2 .7 2.8 0L15 15Zm0 0 7 7", key: "d0u48b" }
11495 ],
11496 ["path", { d: "m2.1 21.8 6.4-6.3", key: "yn04lh" }],
11497 ["path", { d: "m19 5-7 7", key: "194lzd" }]
11498 ]);
11499 /**
11500 * @license lucide-react v0.294.0 - ISC
11501 *
11502 * This source code is licensed under the ISC license.
11503 * See the LICENSE file in the root directory of this source tree.
11504 */
11505 const Video = createLucideIcon("Video", [
11506 ["path", { d: "m22 8-6 4 6 4V8Z", key: "50v9me" }],
11507 ["rect", { width: "14", height: "12", x: "2", y: "6", rx: "2", ry: "2", key: "1rqjg6" }]
11508 ]);
11509 /**
11510 * @license lucide-react v0.294.0 - ISC
11511 *
11512 * This source code is licensed under the ISC license.
11513 * See the LICENSE file in the root directory of this source tree.
11514 */
11515 const Wand2 = createLucideIcon("Wand2", [
11516 [
11517 "path",
11518 {
11519 d: "m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72Z",
11520 key: "1bcowg"
11521 }
11522 ],
11523 ["path", { d: "m14 7 3 3", key: "1r5n42" }],
11524 ["path", { d: "M5 6v4", key: "ilb8ba" }],
11525 ["path", { d: "M19 14v4", key: "blhpug" }],
11526 ["path", { d: "M10 2v2", key: "7u0qdc" }],
11527 ["path", { d: "M7 8H3", key: "zfb6yr" }],
11528 ["path", { d: "M21 16h-4", key: "1cnmox" }],
11529 ["path", { d: "M11 3H9", key: "1obp7u" }]
11530 ]);
11531 /**
11532 * @license lucide-react v0.294.0 - ISC
11533 *
11534 * This source code is licensed under the ISC license.
11535 * See the LICENSE file in the root directory of this source tree.
11536 */
11537 const Webhook = createLucideIcon("Webhook", [
11538 [
11539 "path",
11540 {
11541 d: "M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2",
11542 key: "q3hayz"
11543 }
11544 ],
11545 ["path", { d: "m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06", key: "1go1hn" }],
11546 ["path", { d: "m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8", key: "qlwsc0" }]
11547 ]);
11548 /**
11549 * @license lucide-react v0.294.0 - ISC
11550 *
11551 * This source code is licensed under the ISC license.
11552 * See the LICENSE file in the root directory of this source tree.
11553 */
11554 const Wrench = createLucideIcon("Wrench", [
11555 [
11556 "path",
11557 {
11558 d: "M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",
11559 key: "cbrjhi"
11560 }
11561 ]
11562 ]);
11563 /**
11564 * @license lucide-react v0.294.0 - ISC
11565 *
11566 * This source code is licensed under the ISC license.
11567 * See the LICENSE file in the root directory of this source tree.
11568 */
11569 const XCircle = createLucideIcon("XCircle", [
11570 ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
11571 ["path", { d: "m15 9-6 6", key: "1uzhvr" }],
11572 ["path", { d: "m9 9 6 6", key: "z0biqf" }]
11573 ]);
11574 /**
11575 * @license lucide-react v0.294.0 - ISC
11576 *
11577 * This source code is licensed under the ISC license.
11578 * See the LICENSE file in the root directory of this source tree.
11579 */
11580 const X = createLucideIcon("X", [
11581 ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
11582 ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
11583 ]);
11584 /**
11585 * @license lucide-react v0.294.0 - ISC
11586 *
11587 * This source code is licensed under the ISC license.
11588 * See the LICENSE file in the root directory of this source tree.
11589 */
11590 const Zap = createLucideIcon("Zap", [
11591 ["polygon", { points: "13 2 3 14 12 14 11 22 21 10 12 10 13 2", key: "45s27k" }]
11592 ]);
11593 var isArray$3 = Array.isArray;
11594 var isArray_1 = isArray$3;
11595 var freeGlobal$1 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
11596 var _freeGlobal = freeGlobal$1;
11597 var freeGlobal = _freeGlobal;
11598 var freeSelf = typeof self == "object" && self && self.Object === Object && self;
11599 var root$8 = freeGlobal || freeSelf || Function("return this")();
11600 var _root = root$8;
11601 var root$7 = _root;
11602 var Symbol$4 = root$7.Symbol;
11603 var _Symbol = Symbol$4;
11604 var Symbol$3 = _Symbol;
11605 var objectProto$b = Object.prototype;
11606 var hasOwnProperty$9 = objectProto$b.hasOwnProperty;
11607 var nativeObjectToString$1 = objectProto$b.toString;
11608 var symToStringTag$1 = Symbol$3 ? Symbol$3.toStringTag : void 0;
11609 function getRawTag$1(value) {
11610 var isOwn = hasOwnProperty$9.call(value, symToStringTag$1), tag = value[symToStringTag$1];
11611 try {
11612 value[symToStringTag$1] = void 0;
11613 var unmasked = true;
11614 } catch (e2) {
11615 }
11616 var result = nativeObjectToString$1.call(value);
11617 if (unmasked) {
11618 if (isOwn) {
11619 value[symToStringTag$1] = tag;
11620 } else {
11621 delete value[symToStringTag$1];
11622 }
11623 }
11624 return result;
11625 }
11626 var _getRawTag = getRawTag$1;
11627 var objectProto$a = Object.prototype;
11628 var nativeObjectToString = objectProto$a.toString;
11629 function objectToString$1(value) {
11630 return nativeObjectToString.call(value);
11631 }
11632 var _objectToString = objectToString$1;
11633 var Symbol$2 = _Symbol, getRawTag = _getRawTag, objectToString = _objectToString;
11634 var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
11635 var symToStringTag = Symbol$2 ? Symbol$2.toStringTag : void 0;
11636 function baseGetTag$4(value) {
11637 if (value == null) {
11638 return value === void 0 ? undefinedTag : nullTag;
11639 }
11640 return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
11641 }
11642 var _baseGetTag = baseGetTag$4;
11643 function isObjectLike$4(value) {
11644 return value != null && typeof value == "object";
11645 }
11646 var isObjectLike_1 = isObjectLike$4;
11647 function isObject$2(value) {
11648 var type = typeof value;
11649 return value != null && (type == "object" || type == "function");
11650 }
11651 var isObject_1 = isObject$2;
11652 const isObject$3 = /* @__PURE__ */ getDefaultExportFromCjs(isObject_1);
11653 var baseGetTag$3 = _baseGetTag, isObject$1 = isObject_1;
11654 var asyncTag = "[object AsyncFunction]", funcTag$1 = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
11655 function isFunction$2(value) {
11656 if (!isObject$1(value)) {
11657 return false;
11658 }
11659 var tag = baseGetTag$3(value);
11660 return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
11661 }
11662 var isFunction_1 = isFunction$2;
11663 const isFunction$3 = /* @__PURE__ */ getDefaultExportFromCjs(isFunction_1);
11664 var root$6 = _root;
11665 var coreJsData$1 = root$6["__core-js_shared__"];
11666 var _coreJsData = coreJsData$1;
11667 var coreJsData = _coreJsData;
11668 var maskSrcKey = function() {
11669 var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
11670 return uid ? "Symbol(src)_1." + uid : "";
11671 }();
11672 function isMasked$1(func) {
11673 return !!maskSrcKey && maskSrcKey in func;
11674 }
11675 var _isMasked = isMasked$1;
11676 var funcProto$1 = Function.prototype;
11677 var funcToString$1 = funcProto$1.toString;
11678 function toSource$2(func) {
11679 if (func != null) {
11680 try {
11681 return funcToString$1.call(func);
11682 } catch (e2) {
11683 }
11684 try {
11685 return func + "";
11686 } catch (e2) {
11687 }
11688 }
11689 return "";
11690 }
11691 var _toSource = toSource$2;
11692 var isFunction$1 = isFunction_1, isMasked = _isMasked, isObject = isObject_1, toSource$1 = _toSource;
11693 var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
11694 var reIsHostCtor = /^\[object .+?Constructor\]$/;
11695 var funcProto = Function.prototype, objectProto$9 = Object.prototype;
11696 var funcToString = funcProto.toString;
11697 var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
11698 var reIsNative = RegExp(
11699 "^" + funcToString.call(hasOwnProperty$8).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
11700 );
11701 function baseIsNative$1(value) {
11702 if (!isObject(value) || isMasked(value)) {
11703 return false;
11704 }
11705 var pattern = isFunction$1(value) ? reIsNative : reIsHostCtor;
11706 return pattern.test(toSource$1(value));
11707 }
11708 var _baseIsNative = baseIsNative$1;
11709 function getValue$1(object, key) {
11710 return object == null ? void 0 : object[key];
11711 }
11712 var _getValue = getValue$1;
11713 var baseIsNative = _baseIsNative, getValue = _getValue;
11714 function getNative$6(object, key) {
11715 var value = getValue(object, key);
11716 return baseIsNative(value) ? value : void 0;
11717 }
11718 var _getNative = getNative$6;
11719 var getNative$5 = _getNative;
11720 var nativeCreate$4 = getNative$5(Object, "create");
11721 var _nativeCreate = nativeCreate$4;
11722 var nativeCreate$3 = _nativeCreate;
11723 function hashClear$1() {
11724 this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {};
11725 this.size = 0;
11726 }
11727 var _hashClear = hashClear$1;
11728 function hashDelete$1(key) {
11729 var result = this.has(key) && delete this.__data__[key];
11730 this.size -= result ? 1 : 0;
11731 return result;
11732 }
11733 var _hashDelete = hashDelete$1;
11734 var nativeCreate$2 = _nativeCreate;
11735 var HASH_UNDEFINED$2 = "__lodash_hash_undefined__";
11736 var objectProto$8 = Object.prototype;
11737 var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
11738 function hashGet$1(key) {
11739 var data = this.__data__;
11740 if (nativeCreate$2) {
11741 var result = data[key];
11742 return result === HASH_UNDEFINED$2 ? void 0 : result;
11743 }
11744 return hasOwnProperty$7.call(data, key) ? data[key] : void 0;
11745 }
11746 var _hashGet = hashGet$1;
11747 var nativeCreate$1 = _nativeCreate;
11748 var objectProto$7 = Object.prototype;
11749 var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
11750 function hashHas$1(key) {
11751 var data = this.__data__;
11752 return nativeCreate$1 ? data[key] !== void 0 : hasOwnProperty$6.call(data, key);
11753 }
11754 var _hashHas = hashHas$1;
11755 var nativeCreate = _nativeCreate;
11756 var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
11757 function hashSet$1(key, value) {
11758 var data = this.__data__;
11759 this.size += this.has(key) ? 0 : 1;
11760 data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED$1 : value;
11761 return this;
11762 }
11763 var _hashSet = hashSet$1;
11764 var hashClear = _hashClear, hashDelete = _hashDelete, hashGet = _hashGet, hashHas = _hashHas, hashSet = _hashSet;
11765 function Hash$1(entries) {
11766 var index = -1, length = entries == null ? 0 : entries.length;
11767 this.clear();
11768 while (++index < length) {
11769 var entry = entries[index];
11770 this.set(entry[0], entry[1]);
11771 }
11772 }
11773 Hash$1.prototype.clear = hashClear;
11774 Hash$1.prototype["delete"] = hashDelete;
11775 Hash$1.prototype.get = hashGet;
11776 Hash$1.prototype.has = hashHas;
11777 Hash$1.prototype.set = hashSet;
11778 var _Hash = Hash$1;
11779 function listCacheClear$1() {
11780 this.__data__ = [];
11781 this.size = 0;
11782 }
11783 var _listCacheClear = listCacheClear$1;
11784 function eq$2(value, other) {
11785 return value === other || value !== value && other !== other;
11786 }
11787 var eq_1 = eq$2;
11788 var eq$1 = eq_1;
11789 function assocIndexOf$4(array, key) {
11790 var length = array.length;
11791 while (length--) {
11792 if (eq$1(array[length][0], key)) {
11793 return length;
11794 }
11795 }
11796 return -1;
11797 }
11798 var _assocIndexOf = assocIndexOf$4;
11799 var assocIndexOf$3 = _assocIndexOf;
11800 var arrayProto = Array.prototype;
11801 var splice = arrayProto.splice;
11802 function listCacheDelete$1(key) {
11803 var data = this.__data__, index = assocIndexOf$3(data, key);
11804 if (index < 0) {
11805 return false;
11806 }
11807 var lastIndex = data.length - 1;
11808 if (index == lastIndex) {
11809 data.pop();
11810 } else {
11811 splice.call(data, index, 1);
11812 }
11813 --this.size;
11814 return true;
11815 }
11816 var _listCacheDelete = listCacheDelete$1;
11817 var assocIndexOf$2 = _assocIndexOf;
11818 function listCacheGet$1(key) {
11819 var data = this.__data__, index = assocIndexOf$2(data, key);
11820 return index < 0 ? void 0 : data[index][1];
11821 }
11822 var _listCacheGet = listCacheGet$1;
11823 var assocIndexOf$1 = _assocIndexOf;
11824 function listCacheHas$1(key) {
11825 return assocIndexOf$1(this.__data__, key) > -1;
11826 }
11827 var _listCacheHas = listCacheHas$1;
11828 var assocIndexOf = _assocIndexOf;
11829 function listCacheSet$1(key, value) {
11830 var data = this.__data__, index = assocIndexOf(data, key);
11831 if (index < 0) {
11832 ++this.size;
11833 data.push([key, value]);
11834 } else {
11835 data[index][1] = value;
11836 }
11837 return this;
11838 }
11839 var _listCacheSet = listCacheSet$1;
11840 var listCacheClear = _listCacheClear, listCacheDelete = _listCacheDelete, listCacheGet = _listCacheGet, listCacheHas = _listCacheHas, listCacheSet = _listCacheSet;
11841 function ListCache$4(entries) {
11842 var index = -1, length = entries == null ? 0 : entries.length;
11843 this.clear();
11844 while (++index < length) {
11845 var entry = entries[index];
11846 this.set(entry[0], entry[1]);
11847 }
11848 }
11849 ListCache$4.prototype.clear = listCacheClear;
11850 ListCache$4.prototype["delete"] = listCacheDelete;
11851 ListCache$4.prototype.get = listCacheGet;
11852 ListCache$4.prototype.has = listCacheHas;
11853 ListCache$4.prototype.set = listCacheSet;
11854 var _ListCache = ListCache$4;
11855 var getNative$4 = _getNative, root$5 = _root;
11856 var Map$4 = getNative$4(root$5, "Map");
11857 var _Map = Map$4;
11858 var Hash = _Hash, ListCache$3 = _ListCache, Map$3 = _Map;
11859 function mapCacheClear$1() {
11860 this.size = 0;
11861 this.__data__ = {
11862 "hash": new Hash(),
11863 "map": new (Map$3 || ListCache$3)(),
11864 "string": new Hash()
11865 };
11866 }
11867 var _mapCacheClear = mapCacheClear$1;
11868 function isKeyable$1(value) {
11869 var type = typeof value;
11870 return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
11871 }
11872 var _isKeyable = isKeyable$1;
11873 var isKeyable = _isKeyable;
11874 function getMapData$4(map, key) {
11875 var data = map.__data__;
11876 return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
11877 }
11878 var _getMapData = getMapData$4;
11879 var getMapData$3 = _getMapData;
11880 function mapCacheDelete$1(key) {
11881 var result = getMapData$3(this, key)["delete"](key);
11882 this.size -= result ? 1 : 0;
11883 return result;
11884 }
11885 var _mapCacheDelete = mapCacheDelete$1;
11886 var getMapData$2 = _getMapData;
11887 function mapCacheGet$1(key) {
11888 return getMapData$2(this, key).get(key);
11889 }
11890 var _mapCacheGet = mapCacheGet$1;
11891 var getMapData$1 = _getMapData;
11892 function mapCacheHas$1(key) {
11893 return getMapData$1(this, key).has(key);
11894 }
11895 var _mapCacheHas = mapCacheHas$1;
11896 var getMapData = _getMapData;
11897 function mapCacheSet$1(key, value) {
11898 var data = getMapData(this, key), size = data.size;
11899 data.set(key, value);
11900 this.size += data.size == size ? 0 : 1;
11901 return this;
11902 }
11903 var _mapCacheSet = mapCacheSet$1;
11904 var mapCacheClear = _mapCacheClear, mapCacheDelete = _mapCacheDelete, mapCacheGet = _mapCacheGet, mapCacheHas = _mapCacheHas, mapCacheSet = _mapCacheSet;
11905 function MapCache$2(entries) {
11906 var index = -1, length = entries == null ? 0 : entries.length;
11907 this.clear();
11908 while (++index < length) {
11909 var entry = entries[index];
11910 this.set(entry[0], entry[1]);
11911 }
11912 }
11913 MapCache$2.prototype.clear = mapCacheClear;
11914 MapCache$2.prototype["delete"] = mapCacheDelete;
11915 MapCache$2.prototype.get = mapCacheGet;
11916 MapCache$2.prototype.has = mapCacheHas;
11917 MapCache$2.prototype.set = mapCacheSet;
11918 var _MapCache = MapCache$2;
11919 var reactIs = { exports: {} };
11920 var reactIs_production_min = {};
11921 /**
11922 * @license React
11923 * react-is.production.min.js
11924 *
11925 * Copyright (c) Facebook, Inc. and its affiliates.
11926 *
11927 * This source code is licensed under the MIT license found in the
11928 * LICENSE file in the root directory of this source tree.
11929 */
11930 var b = Symbol.for("react.element"), c = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), e = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), h = Symbol.for("react.context"), k = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), n = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), t = Symbol.for("react.offscreen"), u;
11931 u = Symbol.for("react.module.reference");
11932 function v(a) {
11933 if ("object" === typeof a && null !== a) {
11934 var r2 = a.$$typeof;
11935 switch (r2) {
11936 case b:
11937 switch (a = a.type, a) {
11938 case d:
11939 case f:
11940 case e:
11941 case m:
11942 case n:
11943 return a;
11944 default:
11945 switch (a = a && a.$$typeof, a) {
11946 case k:
11947 case h:
11948 case l:
11949 case q:
11950 case p:
11951 case g:
11952 return a;
11953 default:
11954 return r2;
11955 }
11956 }
11957 case c:
11958 return r2;
11959 }
11960 }
11961 }
11962 reactIs_production_min.ContextConsumer = h;
11963 reactIs_production_min.ContextProvider = g;
11964 reactIs_production_min.Element = b;
11965 reactIs_production_min.ForwardRef = l;
11966 reactIs_production_min.Fragment = d;
11967 reactIs_production_min.Lazy = q;
11968 reactIs_production_min.Memo = p;
11969 reactIs_production_min.Portal = c;
11970 reactIs_production_min.Profiler = f;
11971 reactIs_production_min.StrictMode = e;
11972 reactIs_production_min.Suspense = m;
11973 reactIs_production_min.SuspenseList = n;
11974 reactIs_production_min.isAsyncMode = function() {
11975 return false;
11976 };
11977 reactIs_production_min.isConcurrentMode = function() {
11978 return false;
11979 };
11980 reactIs_production_min.isContextConsumer = function(a) {
11981 return v(a) === h;
11982 };
11983 reactIs_production_min.isContextProvider = function(a) {
11984 return v(a) === g;
11985 };
11986 reactIs_production_min.isElement = function(a) {
11987 return "object" === typeof a && null !== a && a.$$typeof === b;
11988 };
11989 reactIs_production_min.isForwardRef = function(a) {
11990 return v(a) === l;
11991 };
11992 reactIs_production_min.isFragment = function(a) {
11993 return v(a) === d;
11994 };
11995 reactIs_production_min.isLazy = function(a) {
11996 return v(a) === q;
11997 };
11998 reactIs_production_min.isMemo = function(a) {
11999 return v(a) === p;
12000 };
12001 reactIs_production_min.isPortal = function(a) {
12002 return v(a) === c;
12003 };
12004 reactIs_production_min.isProfiler = function(a) {
12005 return v(a) === f;
12006 };
12007 reactIs_production_min.isStrictMode = function(a) {
12008 return v(a) === e;
12009 };
12010 reactIs_production_min.isSuspense = function(a) {
12011 return v(a) === m;
12012 };
12013 reactIs_production_min.isSuspenseList = function(a) {
12014 return v(a) === n;
12015 };
12016 reactIs_production_min.isValidElementType = function(a) {
12017 return "string" === typeof a || "function" === typeof a || a === d || a === f || a === e || a === m || a === n || a === t || "object" === typeof a && null !== a && (a.$$typeof === q || a.$$typeof === p || a.$$typeof === g || a.$$typeof === h || a.$$typeof === l || a.$$typeof === u || void 0 !== a.getModuleId) ? true : false;
12018 };
12019 reactIs_production_min.typeOf = v;
12020 {
12021 reactIs.exports = reactIs_production_min;
12022 }
12023 var reactIsExports = reactIs.exports;
12024 var ListCache$2 = _ListCache;
12025 function stackClear$1() {
12026 this.__data__ = new ListCache$2();
12027 this.size = 0;
12028 }
12029 var _stackClear = stackClear$1;
12030 function stackDelete$1(key) {
12031 var data = this.__data__, result = data["delete"](key);
12032 this.size = data.size;
12033 return result;
12034 }
12035 var _stackDelete = stackDelete$1;
12036 function stackGet$1(key) {
12037 return this.__data__.get(key);
12038 }
12039 var _stackGet = stackGet$1;
12040 function stackHas$1(key) {
12041 return this.__data__.has(key);
12042 }
12043 var _stackHas = stackHas$1;
12044 var ListCache$1 = _ListCache, Map$2 = _Map, MapCache$1 = _MapCache;
12045 var LARGE_ARRAY_SIZE = 200;
12046 function stackSet$1(key, value) {
12047 var data = this.__data__;
12048 if (data instanceof ListCache$1) {
12049 var pairs = data.__data__;
12050 if (!Map$2 || pairs.length < LARGE_ARRAY_SIZE - 1) {
12051 pairs.push([key, value]);
12052 this.size = ++data.size;
12053 return this;
12054 }
12055 data = this.__data__ = new MapCache$1(pairs);
12056 }
12057 data.set(key, value);
12058 this.size = data.size;
12059 return this;
12060 }
12061 var _stackSet = stackSet$1;
12062 var ListCache = _ListCache, stackClear = _stackClear, stackDelete = _stackDelete, stackGet = _stackGet, stackHas = _stackHas, stackSet = _stackSet;
12063 function Stack$1(entries) {
12064 var data = this.__data__ = new ListCache(entries);
12065 this.size = data.size;
12066 }
12067 Stack$1.prototype.clear = stackClear;
12068 Stack$1.prototype["delete"] = stackDelete;
12069 Stack$1.prototype.get = stackGet;
12070 Stack$1.prototype.has = stackHas;
12071 Stack$1.prototype.set = stackSet;
12072 var _Stack = Stack$1;
12073 var HASH_UNDEFINED = "__lodash_hash_undefined__";
12074 function setCacheAdd$1(value) {
12075 this.__data__.set(value, HASH_UNDEFINED);
12076 return this;
12077 }
12078 var _setCacheAdd = setCacheAdd$1;
12079 function setCacheHas$1(value) {
12080 return this.__data__.has(value);
12081 }
12082 var _setCacheHas = setCacheHas$1;
12083 var MapCache = _MapCache, setCacheAdd = _setCacheAdd, setCacheHas = _setCacheHas;
12084 function SetCache$1(values) {
12085 var index = -1, length = values == null ? 0 : values.length;
12086 this.__data__ = new MapCache();
12087 while (++index < length) {
12088 this.add(values[index]);
12089 }
12090 }
12091 SetCache$1.prototype.add = SetCache$1.prototype.push = setCacheAdd;
12092 SetCache$1.prototype.has = setCacheHas;
12093 var _SetCache = SetCache$1;
12094 function arraySome$1(array, predicate) {
12095 var index = -1, length = array == null ? 0 : array.length;
12096 while (++index < length) {
12097 if (predicate(array[index], index, array)) {
12098 return true;
12099 }
12100 }
12101 return false;
12102 }
12103 var _arraySome = arraySome$1;
12104 function cacheHas$1(cache, key) {
12105 return cache.has(key);
12106 }
12107 var _cacheHas = cacheHas$1;
12108 var SetCache = _SetCache, arraySome = _arraySome, cacheHas = _cacheHas;
12109 var COMPARE_PARTIAL_FLAG$3 = 1, COMPARE_UNORDERED_FLAG$1 = 2;
12110 function equalArrays$2(array, other, bitmask, customizer, equalFunc, stack) {
12111 var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3, arrLength = array.length, othLength = other.length;
12112 if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
12113 return false;
12114 }
12115 var arrStacked = stack.get(array);
12116 var othStacked = stack.get(other);
12117 if (arrStacked && othStacked) {
12118 return arrStacked == other && othStacked == array;
12119 }
12120 var index = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG$1 ? new SetCache() : void 0;
12121 stack.set(array, other);
12122 stack.set(other, array);
12123 while (++index < arrLength) {
12124 var arrValue = array[index], othValue = other[index];
12125 if (customizer) {
12126 var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
12127 }
12128 if (compared !== void 0) {
12129 if (compared) {
12130 continue;
12131 }
12132 result = false;
12133 break;
12134 }
12135 if (seen) {
12136 if (!arraySome(other, function(othValue2, othIndex) {
12137 if (!cacheHas(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) {
12138 return seen.push(othIndex);
12139 }
12140 })) {
12141 result = false;
12142 break;
12143 }
12144 } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
12145 result = false;
12146 break;
12147 }
12148 }
12149 stack["delete"](array);
12150 stack["delete"](other);
12151 return result;
12152 }
12153 var _equalArrays = equalArrays$2;
12154 var root$4 = _root;
12155 var Uint8Array$2 = root$4.Uint8Array;
12156 var _Uint8Array = Uint8Array$2;
12157 function mapToArray$1(map) {
12158 var index = -1, result = Array(map.size);
12159 map.forEach(function(value, key) {
12160 result[++index] = [key, value];
12161 });
12162 return result;
12163 }
12164 var _mapToArray = mapToArray$1;
12165 function setToArray$1(set) {
12166 var index = -1, result = Array(set.size);
12167 set.forEach(function(value) {
12168 result[++index] = value;
12169 });
12170 return result;
12171 }
12172 var _setToArray = setToArray$1;
12173 var Symbol$1 = _Symbol, Uint8Array$1 = _Uint8Array, eq = eq_1, equalArrays$1 = _equalArrays, mapToArray = _mapToArray, setToArray = _setToArray;
12174 var COMPARE_PARTIAL_FLAG$2 = 1, COMPARE_UNORDERED_FLAG = 2;
12175 var boolTag$1 = "[object Boolean]", dateTag$1 = "[object Date]", errorTag$1 = "[object Error]", mapTag$2 = "[object Map]", numberTag$1 = "[object Number]", regexpTag$1 = "[object RegExp]", setTag$2 = "[object Set]", stringTag$1 = "[object String]", symbolTag = "[object Symbol]";
12176 var arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$2 = "[object DataView]";
12177 var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
12178 function equalByTag$1(object, other, tag, bitmask, customizer, equalFunc, stack) {
12179 switch (tag) {
12180 case dataViewTag$2:
12181 if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) {
12182 return false;
12183 }
12184 object = object.buffer;
12185 other = other.buffer;
12186 case arrayBufferTag$1:
12187 if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array$1(object), new Uint8Array$1(other))) {
12188 return false;
12189 }
12190 return true;
12191 case boolTag$1:
12192 case dateTag$1:
12193 case numberTag$1:
12194 return eq(+object, +other);
12195 case errorTag$1:
12196 return object.name == other.name && object.message == other.message;
12197 case regexpTag$1:
12198 case stringTag$1:
12199 return object == other + "";
12200 case mapTag$2:
12201 var convert = mapToArray;
12202 case setTag$2:
12203 var isPartial = bitmask & COMPARE_PARTIAL_FLAG$2;
12204 convert || (convert = setToArray);
12205 if (object.size != other.size && !isPartial) {
12206 return false;
12207 }
12208 var stacked = stack.get(object);
12209 if (stacked) {
12210 return stacked == other;
12211 }
12212 bitmask |= COMPARE_UNORDERED_FLAG;
12213 stack.set(object, other);
12214 var result = equalArrays$1(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
12215 stack["delete"](object);
12216 return result;
12217 case symbolTag:
12218 if (symbolValueOf) {
12219 return symbolValueOf.call(object) == symbolValueOf.call(other);
12220 }
12221 }
12222 return false;
12223 }
12224 var _equalByTag = equalByTag$1;
12225 function arrayPush$1(array, values) {
12226 var index = -1, length = values.length, offset = array.length;
12227 while (++index < length) {
12228 array[offset + index] = values[index];
12229 }
12230 return array;
12231 }
12232 var _arrayPush = arrayPush$1;
12233 var arrayPush = _arrayPush, isArray$2 = isArray_1;
12234 function baseGetAllKeys$1(object, keysFunc, symbolsFunc) {
12235 var result = keysFunc(object);
12236 return isArray$2(object) ? result : arrayPush(result, symbolsFunc(object));
12237 }
12238 var _baseGetAllKeys = baseGetAllKeys$1;
12239 function arrayFilter$1(array, predicate) {
12240 var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
12241 while (++index < length) {
12242 var value = array[index];
12243 if (predicate(value, index, array)) {
12244 result[resIndex++] = value;
12245 }
12246 }
12247 return result;
12248 }
12249 var _arrayFilter = arrayFilter$1;
12250 function stubArray$1() {
12251 return [];
12252 }
12253 var stubArray_1 = stubArray$1;
12254 var arrayFilter = _arrayFilter, stubArray = stubArray_1;
12255 var objectProto$6 = Object.prototype;
12256 var propertyIsEnumerable$1 = objectProto$6.propertyIsEnumerable;
12257 var nativeGetSymbols = Object.getOwnPropertySymbols;
12258 var getSymbols$1 = !nativeGetSymbols ? stubArray : function(object) {
12259 if (object == null) {
12260 return [];
12261 }
12262 object = Object(object);
12263 return arrayFilter(nativeGetSymbols(object), function(symbol) {
12264 return propertyIsEnumerable$1.call(object, symbol);
12265 });
12266 };
12267 var _getSymbols = getSymbols$1;
12268 function baseTimes$1(n2, iteratee) {
12269 var index = -1, result = Array(n2);
12270 while (++index < n2) {
12271 result[index] = iteratee(index);
12272 }
12273 return result;
12274 }
12275 var _baseTimes = baseTimes$1;
12276 var baseGetTag$2 = _baseGetTag, isObjectLike$3 = isObjectLike_1;
12277 var argsTag$2 = "[object Arguments]";
12278 function baseIsArguments$1(value) {
12279 return isObjectLike$3(value) && baseGetTag$2(value) == argsTag$2;
12280 }
12281 var _baseIsArguments = baseIsArguments$1;
12282 var baseIsArguments = _baseIsArguments, isObjectLike$2 = isObjectLike_1;
12283 var objectProto$5 = Object.prototype;
12284 var hasOwnProperty$5 = objectProto$5.hasOwnProperty;
12285 var propertyIsEnumerable = objectProto$5.propertyIsEnumerable;
12286 var isArguments$1 = baseIsArguments(/* @__PURE__ */ function() {
12287 return arguments;
12288 }()) ? baseIsArguments : function(value) {
12289 return isObjectLike$2(value) && hasOwnProperty$5.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
12290 };
12291 var isArguments_1 = isArguments$1;
12292 var isBuffer$2 = { exports: {} };
12293 function stubFalse() {
12294 return false;
12295 }
12296 var stubFalse_1 = stubFalse;
12297 isBuffer$2.exports;
12298 (function(module, exports$1) {
12299 var root2 = _root, stubFalse2 = stubFalse_1;
12300 var freeExports = exports$1 && !exports$1.nodeType && exports$1;
12301 var freeModule = freeExports && true && module && !module.nodeType && module;
12302 var moduleExports = freeModule && freeModule.exports === freeExports;
12303 var Buffer2 = moduleExports ? root2.Buffer : void 0;
12304 var nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0;
12305 var isBuffer2 = nativeIsBuffer || stubFalse2;
12306 module.exports = isBuffer2;
12307 })(isBuffer$2, isBuffer$2.exports);
12308 var isBufferExports = isBuffer$2.exports;
12309 var MAX_SAFE_INTEGER$1 = 9007199254740991;
12310 var reIsUint = /^(?:0|[1-9]\d*)$/;
12311 function isIndex$1(value, length) {
12312 var type = typeof value;
12313 length = length == null ? MAX_SAFE_INTEGER$1 : length;
12314 return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
12315 }
12316 var _isIndex = isIndex$1;
12317 var MAX_SAFE_INTEGER = 9007199254740991;
12318 function isLength$2(value) {
12319 return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
12320 }
12321 var isLength_1 = isLength$2;
12322 var baseGetTag$1 = _baseGetTag, isLength$1 = isLength_1, isObjectLike$1 = isObjectLike_1;
12323 var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", mapTag$1 = "[object Map]", numberTag = "[object Number]", objectTag$2 = "[object Object]", regexpTag = "[object RegExp]", setTag$1 = "[object Set]", stringTag = "[object String]", weakMapTag$1 = "[object WeakMap]";
12324 var arrayBufferTag = "[object ArrayBuffer]", dataViewTag$1 = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
12325 var typedArrayTags = {};
12326 typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
12327 typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag$1] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag$1] = typedArrayTags[numberTag] = typedArrayTags[objectTag$2] = typedArrayTags[regexpTag] = typedArrayTags[setTag$1] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag$1] = false;
12328 function baseIsTypedArray$1(value) {
12329 return isObjectLike$1(value) && isLength$1(value.length) && !!typedArrayTags[baseGetTag$1(value)];
12330 }
12331 var _baseIsTypedArray = baseIsTypedArray$1;
12332 function baseUnary$1(func) {
12333 return function(value) {
12334 return func(value);
12335 };
12336 }
12337 var _baseUnary = baseUnary$1;
12338 var _nodeUtil = { exports: {} };
12339 _nodeUtil.exports;
12340 (function(module, exports$1) {
12341 var freeGlobal2 = _freeGlobal;
12342 var freeExports = exports$1 && !exports$1.nodeType && exports$1;
12343 var freeModule = freeExports && true && module && !module.nodeType && module;
12344 var moduleExports = freeModule && freeModule.exports === freeExports;
12345 var freeProcess = moduleExports && freeGlobal2.process;
12346 var nodeUtil2 = function() {
12347 try {
12348 var types = freeModule && freeModule.require && freeModule.require("util").types;
12349 if (types) {
12350 return types;
12351 }
12352 return freeProcess && freeProcess.binding && freeProcess.binding("util");
12353 } catch (e2) {
12354 }
12355 }();
12356 module.exports = nodeUtil2;
12357 })(_nodeUtil, _nodeUtil.exports);
12358 var _nodeUtilExports = _nodeUtil.exports;
12359 var baseIsTypedArray = _baseIsTypedArray, baseUnary = _baseUnary, nodeUtil = _nodeUtilExports;
12360 var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
12361 var isTypedArray$2 = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
12362 var isTypedArray_1 = isTypedArray$2;
12363 var baseTimes = _baseTimes, isArguments = isArguments_1, isArray$1 = isArray_1, isBuffer$1 = isBufferExports, isIndex = _isIndex, isTypedArray$1 = isTypedArray_1;
12364 var objectProto$4 = Object.prototype;
12365 var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
12366 function arrayLikeKeys$1(value, inherited) {
12367 var isArr = isArray$1(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer$1(value), isType = !isArr && !isArg && !isBuff && isTypedArray$1(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
12368 for (var key in value) {
12369 if ((inherited || hasOwnProperty$4.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
12370 (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
12371 isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
12372 isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
12373 isIndex(key, length)))) {
12374 result.push(key);
12375 }
12376 }
12377 return result;
12378 }
12379 var _arrayLikeKeys = arrayLikeKeys$1;
12380 var objectProto$3 = Object.prototype;
12381 function isPrototype$1(value) {
12382 var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$3;
12383 return value === proto;
12384 }
12385 var _isPrototype = isPrototype$1;
12386 function overArg$1(func, transform) {
12387 return function(arg) {
12388 return func(transform(arg));
12389 };
12390 }
12391 var _overArg = overArg$1;
12392 var overArg = _overArg;
12393 var nativeKeys$1 = overArg(Object.keys, Object);
12394 var _nativeKeys = nativeKeys$1;
12395 var isPrototype = _isPrototype, nativeKeys = _nativeKeys;
12396 var objectProto$2 = Object.prototype;
12397 var hasOwnProperty$3 = objectProto$2.hasOwnProperty;
12398 function baseKeys$1(object) {
12399 if (!isPrototype(object)) {
12400 return nativeKeys(object);
12401 }
12402 var result = [];
12403 for (var key in Object(object)) {
12404 if (hasOwnProperty$3.call(object, key) && key != "constructor") {
12405 result.push(key);
12406 }
12407 }
12408 return result;
12409 }
12410 var _baseKeys = baseKeys$1;
12411 var isFunction = isFunction_1, isLength = isLength_1;
12412 function isArrayLike$1(value) {
12413 return value != null && isLength(value.length) && !isFunction(value);
12414 }
12415 var isArrayLike_1 = isArrayLike$1;
12416 var arrayLikeKeys = _arrayLikeKeys, baseKeys = _baseKeys, isArrayLike = isArrayLike_1;
12417 function keys$2(object) {
12418 return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
12419 }
12420 var keys_1 = keys$2;
12421 var baseGetAllKeys = _baseGetAllKeys, getSymbols = _getSymbols, keys$1 = keys_1;
12422 function getAllKeys$1(object) {
12423 return baseGetAllKeys(object, keys$1, getSymbols);
12424 }
12425 var _getAllKeys = getAllKeys$1;
12426 var getAllKeys = _getAllKeys;
12427 var COMPARE_PARTIAL_FLAG$1 = 1;
12428 var objectProto$1 = Object.prototype;
12429 var hasOwnProperty$2 = objectProto$1.hasOwnProperty;
12430 function equalObjects$1(object, other, bitmask, customizer, equalFunc, stack) {
12431 var isPartial = bitmask & COMPARE_PARTIAL_FLAG$1, objProps = getAllKeys(object), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length;
12432 if (objLength != othLength && !isPartial) {
12433 return false;
12434 }
12435 var index = objLength;
12436 while (index--) {
12437 var key = objProps[index];
12438 if (!(isPartial ? key in other : hasOwnProperty$2.call(other, key))) {
12439 return false;
12440 }
12441 }
12442 var objStacked = stack.get(object);
12443 var othStacked = stack.get(other);
12444 if (objStacked && othStacked) {
12445 return objStacked == other && othStacked == object;
12446 }
12447 var result = true;
12448 stack.set(object, other);
12449 stack.set(other, object);
12450 var skipCtor = isPartial;
12451 while (++index < objLength) {
12452 key = objProps[index];
12453 var objValue = object[key], othValue = other[key];
12454 if (customizer) {
12455 var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
12456 }
12457 if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
12458 result = false;
12459 break;
12460 }
12461 skipCtor || (skipCtor = key == "constructor");
12462 }
12463 if (result && !skipCtor) {
12464 var objCtor = object.constructor, othCtor = other.constructor;
12465 if (objCtor != othCtor && ("constructor" in object && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) {
12466 result = false;
12467 }
12468 }
12469 stack["delete"](object);
12470 stack["delete"](other);
12471 return result;
12472 }
12473 var _equalObjects = equalObjects$1;
12474 var getNative$3 = _getNative, root$3 = _root;
12475 var DataView$1 = getNative$3(root$3, "DataView");
12476 var _DataView = DataView$1;
12477 var getNative$2 = _getNative, root$2 = _root;
12478 var Promise$2 = getNative$2(root$2, "Promise");
12479 var _Promise = Promise$2;
12480 var getNative$1 = _getNative, root$1 = _root;
12481 var Set$2 = getNative$1(root$1, "Set");
12482 var _Set = Set$2;
12483 var getNative = _getNative, root = _root;
12484 var WeakMap$2 = getNative(root, "WeakMap");
12485 var _WeakMap = WeakMap$2;
12486 var DataView = _DataView, Map$1 = _Map, Promise$1 = _Promise, Set$1 = _Set, WeakMap$1 = _WeakMap, baseGetTag = _baseGetTag, toSource = _toSource;
12487 var mapTag = "[object Map]", objectTag$1 = "[object Object]", promiseTag = "[object Promise]", setTag = "[object Set]", weakMapTag = "[object WeakMap]";
12488 var dataViewTag = "[object DataView]";
12489 var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map$1), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set$1), weakMapCtorString = toSource(WeakMap$1);
12490 var getTag$1 = baseGetTag;
12491 if (DataView && getTag$1(new DataView(new ArrayBuffer(1))) != dataViewTag || Map$1 && getTag$1(new Map$1()) != mapTag || Promise$1 && getTag$1(Promise$1.resolve()) != promiseTag || Set$1 && getTag$1(new Set$1()) != setTag || WeakMap$1 && getTag$1(new WeakMap$1()) != weakMapTag) {
12492 getTag$1 = function(value) {
12493 var result = baseGetTag(value), Ctor = result == objectTag$1 ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
12494 if (ctorString) {
12495 switch (ctorString) {
12496 case dataViewCtorString:
12497 return dataViewTag;
12498 case mapCtorString:
12499 return mapTag;
12500 case promiseCtorString:
12501 return promiseTag;
12502 case setCtorString:
12503 return setTag;
12504 case weakMapCtorString:
12505 return weakMapTag;
12506 }
12507 }
12508 return result;
12509 };
12510 }
12511 var _getTag = getTag$1;
12512 var Stack = _Stack, equalArrays = _equalArrays, equalByTag = _equalByTag, equalObjects = _equalObjects, getTag = _getTag, isArray = isArray_1, isBuffer = isBufferExports, isTypedArray = isTypedArray_1;
12513 var COMPARE_PARTIAL_FLAG = 1;
12514 var argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]";
12515 var objectProto = Object.prototype;
12516 var hasOwnProperty$1 = objectProto.hasOwnProperty;
12517 function baseIsEqualDeep$1(object, other, bitmask, customizer, equalFunc, stack) {
12518 var objIsArr = isArray(object), othIsArr = isArray(other), objTag = objIsArr ? arrayTag : getTag(object), othTag = othIsArr ? arrayTag : getTag(other);
12519 objTag = objTag == argsTag ? objectTag : objTag;
12520 othTag = othTag == argsTag ? objectTag : othTag;
12521 var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag;
12522 if (isSameTag && isBuffer(object)) {
12523 if (!isBuffer(other)) {
12524 return false;
12525 }
12526 objIsArr = true;
12527 objIsObj = false;
12528 }
12529 if (isSameTag && !objIsObj) {
12530 stack || (stack = new Stack());
12531 return objIsArr || isTypedArray(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
12532 }
12533 if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
12534 var objIsWrapped = objIsObj && hasOwnProperty$1.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty$1.call(other, "__wrapped__");
12535 if (objIsWrapped || othIsWrapped) {
12536 var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
12537 stack || (stack = new Stack());
12538 return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
12539 }
12540 }
12541 if (!isSameTag) {
12542 return false;
12543 }
12544 stack || (stack = new Stack());
12545 return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
12546 }
12547 var _baseIsEqualDeep = baseIsEqualDeep$1;
12548 var baseIsEqualDeep = _baseIsEqualDeep, isObjectLike = isObjectLike_1;
12549 function baseIsEqual$1(value, other, bitmask, customizer, stack) {
12550 if (value === other) {
12551 return true;
12552 }
12553 if (value == null || other == null || !isObjectLike(value) && !isObjectLike(other)) {
12554 return value !== value && other !== other;
12555 }
12556 return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual$1, stack);
12557 }
12558 var _baseIsEqual = baseIsEqual$1;
12559 var baseIsEqual = _baseIsEqual;
12560 function isEqual(value, other) {
12561 return baseIsEqual(value, other);
12562 }
12563 var isEqual_1$1 = isEqual;
12564 const isEqual$1 = /* @__PURE__ */ getDefaultExportFromCjs(isEqual_1$1);
12565 var propTypes = { exports: {} };
12566 var ReactPropTypesSecret$1 = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
12567 var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
12568 var ReactPropTypesSecret = ReactPropTypesSecret_1;
12569 function emptyFunction() {
12570 }
12571 function emptyFunctionWithReset() {
12572 }
12573 emptyFunctionWithReset.resetWarningCache = emptyFunction;
12574 var factoryWithThrowingShims = function() {
12575 function shim(props, propName, componentName, location, propFullName, secret) {
12576 if (secret === ReactPropTypesSecret) {
12577 return;
12578 }
12579 var err = new Error(
12580 "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
12581 );
12582 err.name = "Invariant Violation";
12583 throw err;
12584 }
12585 shim.isRequired = shim;
12586 function getShim() {
12587 return shim;
12588 }
12589 var ReactPropTypes = {
12590 array: shim,
12591 bigint: shim,
12592 bool: shim,
12593 func: shim,
12594 number: shim,
12595 object: shim,
12596 string: shim,
12597 symbol: shim,
12598 any: shim,
12599 arrayOf: getShim,
12600 element: shim,
12601 elementType: shim,
12602 instanceOf: getShim,
12603 node: shim,
12604 objectOf: getShim,
12605 oneOf: getShim,
12606 oneOfType: getShim,
12607 shape: getShim,
12608 exact: getShim,
12609 checkPropTypes: emptyFunctionWithReset,
12610 resetWarningCache: emptyFunction
12611 };
12612 ReactPropTypes.PropTypes = ReactPropTypes;
12613 return ReactPropTypes;
12614 };
12615 {
12616 propTypes.exports = factoryWithThrowingShims();
12617 }
12618 var propTypesExports = propTypes.exports;
12619 const PropTypes = /* @__PURE__ */ getDefaultExportFromCjs(propTypesExports);
12620 const { getOwnPropertyNames, getOwnPropertySymbols } = Object;
12621 const { hasOwnProperty } = Object.prototype;
12622 function combineComparators(comparatorA, comparatorB) {
12623 return function isEqual2(a, b2, state) {
12624 return comparatorA(a, b2, state) && comparatorB(a, b2, state);
12625 };
12626 }
12627 function createIsCircular(areItemsEqual) {
12628 return function isCircular(a, b2, state) {
12629 if (!a || !b2 || typeof a !== "object" || typeof b2 !== "object") {
12630 return areItemsEqual(a, b2, state);
12631 }
12632 const { cache } = state;
12633 const cachedA = cache.get(a);
12634 const cachedB = cache.get(b2);
12635 if (cachedA && cachedB) {
12636 return cachedA === b2 && cachedB === a;
12637 }
12638 cache.set(a, b2);
12639 cache.set(b2, a);
12640 const result = areItemsEqual(a, b2, state);
12641 cache.delete(a);
12642 cache.delete(b2);
12643 return result;
12644 };
12645 }
12646 function getShortTag(value) {
12647 return value != null ? value[Symbol.toStringTag] : void 0;
12648 }
12649 function getStrictProperties(object) {
12650 return getOwnPropertyNames(object).concat(getOwnPropertySymbols(object));
12651 }
12652 const hasOwn = (
12653 // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
12654 Object.hasOwn || ((object, property) => hasOwnProperty.call(object, property))
12655 );
12656 function sameValueZeroEqual(a, b2) {
12657 return a === b2 || !a && !b2 && a !== a && b2 !== b2;
12658 }
12659 const PREACT_VNODE = "__v";
12660 const PREACT_OWNER = "__o";
12661 const REACT_OWNER = "_owner";
12662 const { getOwnPropertyDescriptor, keys } = Object;
12663 function areArrayBuffersEqual(a, b2) {
12664 return a.byteLength === b2.byteLength && areTypedArraysEqual(new Uint8Array(a), new Uint8Array(b2));
12665 }
12666 function areArraysEqual(a, b2, state) {
12667 let index = a.length;
12668 if (b2.length !== index) {
12669 return false;
12670 }
12671 while (index-- > 0) {
12672 if (!state.equals(a[index], b2[index], index, index, a, b2, state)) {
12673 return false;
12674 }
12675 }
12676 return true;
12677 }
12678 function areDataViewsEqual(a, b2) {
12679 return a.byteLength === b2.byteLength && areTypedArraysEqual(new Uint8Array(a.buffer, a.byteOffset, a.byteLength), new Uint8Array(b2.buffer, b2.byteOffset, b2.byteLength));
12680 }
12681 function areDatesEqual(a, b2) {
12682 return sameValueZeroEqual(a.getTime(), b2.getTime());
12683 }
12684 function areErrorsEqual(a, b2) {
12685 return a.name === b2.name && a.message === b2.message && a.cause === b2.cause && a.stack === b2.stack;
12686 }
12687 function areFunctionsEqual(a, b2) {
12688 return a === b2;
12689 }
12690 function areMapsEqual(a, b2, state) {
12691 const size = a.size;
12692 if (size !== b2.size) {
12693 return false;
12694 }
12695 if (!size) {
12696 return true;
12697 }
12698 const matchedIndices = new Array(size);
12699 const aIterable = a.entries();
12700 let aResult;
12701 let bResult;
12702 let index = 0;
12703 while (aResult = aIterable.next()) {
12704 if (aResult.done) {
12705 break;
12706 }
12707 const bIterable = b2.entries();
12708 let hasMatch = false;
12709 let matchIndex = 0;
12710 while (bResult = bIterable.next()) {
12711 if (bResult.done) {
12712 break;
12713 }
12714 if (matchedIndices[matchIndex]) {
12715 matchIndex++;
12716 continue;
12717 }
12718 const aEntry = aResult.value;
12719 const bEntry = bResult.value;
12720 if (state.equals(aEntry[0], bEntry[0], index, matchIndex, a, b2, state) && state.equals(aEntry[1], bEntry[1], aEntry[0], bEntry[0], a, b2, state)) {
12721 hasMatch = matchedIndices[matchIndex] = true;
12722 break;
12723 }
12724 matchIndex++;
12725 }
12726 if (!hasMatch) {
12727 return false;
12728 }
12729 index++;
12730 }
12731 return true;
12732 }
12733 const areNumbersEqual = sameValueZeroEqual;
12734 function areObjectsEqual(a, b2, state) {
12735 const properties = keys(a);
12736 let index = properties.length;
12737 if (keys(b2).length !== index) {
12738 return false;
12739 }
12740 while (index-- > 0) {
12741 if (!isPropertyEqual(a, b2, state, properties[index])) {
12742 return false;
12743 }
12744 }
12745 return true;
12746 }
12747 function areObjectsEqualStrict(a, b2, state) {
12748 const properties = getStrictProperties(a);
12749 let index = properties.length;
12750 if (getStrictProperties(b2).length !== index) {
12751 return false;
12752 }
12753 let property;
12754 let descriptorA;
12755 let descriptorB;
12756 while (index-- > 0) {
12757 property = properties[index];
12758 if (!isPropertyEqual(a, b2, state, property)) {
12759 return false;
12760 }
12761 descriptorA = getOwnPropertyDescriptor(a, property);
12762 descriptorB = getOwnPropertyDescriptor(b2, property);
12763 if ((descriptorA || descriptorB) && (!descriptorA || !descriptorB || descriptorA.configurable !== descriptorB.configurable || descriptorA.enumerable !== descriptorB.enumerable || descriptorA.writable !== descriptorB.writable)) {
12764 return false;
12765 }
12766 }
12767 return true;
12768 }
12769 function arePrimitiveWrappersEqual(a, b2) {
12770 return sameValueZeroEqual(a.valueOf(), b2.valueOf());
12771 }
12772 function areRegExpsEqual(a, b2) {
12773 return a.source === b2.source && a.flags === b2.flags;
12774 }
12775 function areSetsEqual(a, b2, state) {
12776 const size = a.size;
12777 if (size !== b2.size) {
12778 return false;
12779 }
12780 if (!size) {
12781 return true;
12782 }
12783 const matchedIndices = new Array(size);
12784 const aIterable = a.values();
12785 let aResult;
12786 let bResult;
12787 while (aResult = aIterable.next()) {
12788 if (aResult.done) {
12789 break;
12790 }
12791 const bIterable = b2.values();
12792 let hasMatch = false;
12793 let matchIndex = 0;
12794 while (bResult = bIterable.next()) {
12795 if (bResult.done) {
12796 break;
12797 }
12798 if (!matchedIndices[matchIndex] && state.equals(aResult.value, bResult.value, aResult.value, bResult.value, a, b2, state)) {
12799 hasMatch = matchedIndices[matchIndex] = true;
12800 break;
12801 }
12802 matchIndex++;
12803 }
12804 if (!hasMatch) {
12805 return false;
12806 }
12807 }
12808 return true;
12809 }
12810 function areTypedArraysEqual(a, b2) {
12811 let index = a.byteLength;
12812 if (b2.byteLength !== index || a.byteOffset !== b2.byteOffset) {
12813 return false;
12814 }
12815 while (index-- > 0) {
12816 if (a[index] !== b2[index]) {
12817 return false;
12818 }
12819 }
12820 return true;
12821 }
12822 function areUrlsEqual(a, b2) {
12823 return a.hostname === b2.hostname && a.pathname === b2.pathname && a.protocol === b2.protocol && a.port === b2.port && a.hash === b2.hash && a.username === b2.username && a.password === b2.password;
12824 }
12825 function isPropertyEqual(a, b2, state, property) {
12826 if ((property === REACT_OWNER || property === PREACT_OWNER || property === PREACT_VNODE) && (a.$$typeof || b2.$$typeof)) {
12827 return true;
12828 }
12829 return hasOwn(b2, property) && state.equals(a[property], b2[property], property, property, a, b2, state);
12830 }
12831 const ARRAY_BUFFER_TAG = "[object ArrayBuffer]";
12832 const ARGUMENTS_TAG = "[object Arguments]";
12833 const BOOLEAN_TAG = "[object Boolean]";
12834 const DATA_VIEW_TAG = "[object DataView]";
12835 const DATE_TAG = "[object Date]";
12836 const ERROR_TAG = "[object Error]";
12837 const MAP_TAG = "[object Map]";
12838 const NUMBER_TAG = "[object Number]";
12839 const OBJECT_TAG = "[object Object]";
12840 const REG_EXP_TAG = "[object RegExp]";
12841 const SET_TAG = "[object Set]";
12842 const STRING_TAG = "[object String]";
12843 const TYPED_ARRAY_TAGS = {
12844 "[object Int8Array]": true,
12845 "[object Uint8Array]": true,
12846 "[object Uint8ClampedArray]": true,
12847 "[object Int16Array]": true,
12848 "[object Uint16Array]": true,
12849 "[object Int32Array]": true,
12850 "[object Uint32Array]": true,
12851 "[object Float16Array]": true,
12852 "[object Float32Array]": true,
12853 "[object Float64Array]": true,
12854 "[object BigInt64Array]": true,
12855 "[object BigUint64Array]": true
12856 };
12857 const URL_TAG = "[object URL]";
12858 const toString = Object.prototype.toString;
12859 function createEqualityComparator({ areArrayBuffersEqual: areArrayBuffersEqual2, areArraysEqual: areArraysEqual2, areDataViewsEqual: areDataViewsEqual2, areDatesEqual: areDatesEqual2, areErrorsEqual: areErrorsEqual2, areFunctionsEqual: areFunctionsEqual2, areMapsEqual: areMapsEqual2, areNumbersEqual: areNumbersEqual2, areObjectsEqual: areObjectsEqual2, arePrimitiveWrappersEqual: arePrimitiveWrappersEqual2, areRegExpsEqual: areRegExpsEqual2, areSetsEqual: areSetsEqual2, areTypedArraysEqual: areTypedArraysEqual2, areUrlsEqual: areUrlsEqual2, unknownTagComparators }) {
12860 return function comparator(a, b2, state) {
12861 if (a === b2) {
12862 return true;
12863 }
12864 if (a == null || b2 == null) {
12865 return false;
12866 }
12867 const type = typeof a;
12868 if (type !== typeof b2) {
12869 return false;
12870 }
12871 if (type !== "object") {
12872 if (type === "number") {
12873 return areNumbersEqual2(a, b2, state);
12874 }
12875 if (type === "function") {
12876 return areFunctionsEqual2(a, b2, state);
12877 }
12878 return false;
12879 }
12880 const constructor = a.constructor;
12881 if (constructor !== b2.constructor) {
12882 return false;
12883 }
12884 if (constructor === Object) {
12885 return areObjectsEqual2(a, b2, state);
12886 }
12887 if (Array.isArray(a)) {
12888 return areArraysEqual2(a, b2, state);
12889 }
12890 if (constructor === Date) {
12891 return areDatesEqual2(a, b2, state);
12892 }
12893 if (constructor === RegExp) {
12894 return areRegExpsEqual2(a, b2, state);
12895 }
12896 if (constructor === Map) {
12897 return areMapsEqual2(a, b2, state);
12898 }
12899 if (constructor === Set) {
12900 return areSetsEqual2(a, b2, state);
12901 }
12902 const tag = toString.call(a);
12903 if (tag === DATE_TAG) {
12904 return areDatesEqual2(a, b2, state);
12905 }
12906 if (tag === REG_EXP_TAG) {
12907 return areRegExpsEqual2(a, b2, state);
12908 }
12909 if (tag === MAP_TAG) {
12910 return areMapsEqual2(a, b2, state);
12911 }
12912 if (tag === SET_TAG) {
12913 return areSetsEqual2(a, b2, state);
12914 }
12915 if (tag === OBJECT_TAG) {
12916 return typeof a.then !== "function" && typeof b2.then !== "function" && areObjectsEqual2(a, b2, state);
12917 }
12918 if (tag === URL_TAG) {
12919 return areUrlsEqual2(a, b2, state);
12920 }
12921 if (tag === ERROR_TAG) {
12922 return areErrorsEqual2(a, b2, state);
12923 }
12924 if (tag === ARGUMENTS_TAG) {
12925 return areObjectsEqual2(a, b2, state);
12926 }
12927 if (TYPED_ARRAY_TAGS[tag]) {
12928 return areTypedArraysEqual2(a, b2, state);
12929 }
12930 if (tag === ARRAY_BUFFER_TAG) {
12931 return areArrayBuffersEqual2(a, b2, state);
12932 }
12933 if (tag === DATA_VIEW_TAG) {
12934 return areDataViewsEqual2(a, b2, state);
12935 }
12936 if (tag === BOOLEAN_TAG || tag === NUMBER_TAG || tag === STRING_TAG) {
12937 return arePrimitiveWrappersEqual2(a, b2, state);
12938 }
12939 if (unknownTagComparators) {
12940 let unknownTagComparator = unknownTagComparators[tag];
12941 if (!unknownTagComparator) {
12942 const shortTag = getShortTag(a);
12943 if (shortTag) {
12944 unknownTagComparator = unknownTagComparators[shortTag];
12945 }
12946 }
12947 if (unknownTagComparator) {
12948 return unknownTagComparator(a, b2, state);
12949 }
12950 }
12951 return false;
12952 };
12953 }
12954 function createEqualityComparatorConfig({ circular, createCustomConfig, strict }) {
12955 let config = {
12956 areArrayBuffersEqual,
12957 areArraysEqual: strict ? areObjectsEqualStrict : areArraysEqual,
12958 areDataViewsEqual,
12959 areDatesEqual,
12960 areErrorsEqual,
12961 areFunctionsEqual,
12962 areMapsEqual: strict ? combineComparators(areMapsEqual, areObjectsEqualStrict) : areMapsEqual,
12963 areNumbersEqual,
12964 areObjectsEqual: strict ? areObjectsEqualStrict : areObjectsEqual,
12965 arePrimitiveWrappersEqual,
12966 areRegExpsEqual,
12967 areSetsEqual: strict ? combineComparators(areSetsEqual, areObjectsEqualStrict) : areSetsEqual,
12968 areTypedArraysEqual: strict ? combineComparators(areTypedArraysEqual, areObjectsEqualStrict) : areTypedArraysEqual,
12969 areUrlsEqual,
12970 unknownTagComparators: void 0
12971 };
12972 if (createCustomConfig) {
12973 config = Object.assign({}, config, createCustomConfig(config));
12974 }
12975 if (circular) {
12976 const areArraysEqual2 = createIsCircular(config.areArraysEqual);
12977 const areMapsEqual2 = createIsCircular(config.areMapsEqual);
12978 const areObjectsEqual2 = createIsCircular(config.areObjectsEqual);
12979 const areSetsEqual2 = createIsCircular(config.areSetsEqual);
12980 config = Object.assign({}, config, {
12981 areArraysEqual: areArraysEqual2,
12982 areMapsEqual: areMapsEqual2,
12983 areObjectsEqual: areObjectsEqual2,
12984 areSetsEqual: areSetsEqual2
12985 });
12986 }
12987 return config;
12988 }
12989 function createInternalEqualityComparator(compare) {
12990 return function(a, b2, _indexOrKeyA, _indexOrKeyB, _parentA, _parentB, state) {
12991 return compare(a, b2, state);
12992 };
12993 }
12994 function createIsEqual({ circular, comparator, createState, equals, strict }) {
12995 if (createState) {
12996 return function isEqual2(a, b2) {
12997 const { cache = circular ? /* @__PURE__ */ new WeakMap() : void 0, meta } = createState();
12998 return comparator(a, b2, {
12999 cache,
13000 equals,
13001 meta,
13002 strict
13003 });
13004 };
13005 }
13006 if (circular) {
13007 return function isEqual2(a, b2) {
13008 return comparator(a, b2, {
13009 cache: /* @__PURE__ */ new WeakMap(),
13010 equals,
13011 meta: void 0,
13012 strict
13013 });
13014 };
13015 }
13016 const state = {
13017 cache: void 0,
13018 equals,
13019 meta: void 0,
13020 strict
13021 };
13022 return function isEqual2(a, b2) {
13023 return comparator(a, b2, state);
13024 };
13025 }
13026 const deepEqual = createCustomEqual();
13027 createCustomEqual({ strict: true });
13028 createCustomEqual({ circular: true });
13029 createCustomEqual({
13030 circular: true,
13031 strict: true
13032 });
13033 createCustomEqual({
13034 createInternalComparator: () => sameValueZeroEqual
13035 });
13036 createCustomEqual({
13037 strict: true,
13038 createInternalComparator: () => sameValueZeroEqual
13039 });
13040 createCustomEqual({
13041 circular: true,
13042 createInternalComparator: () => sameValueZeroEqual
13043 });
13044 createCustomEqual({
13045 circular: true,
13046 createInternalComparator: () => sameValueZeroEqual,
13047 strict: true
13048 });
13049 function createCustomEqual(options = {}) {
13050 const { circular = false, createInternalComparator: createCustomInternalComparator, createState, strict = false } = options;
13051 const config = createEqualityComparatorConfig(options);
13052 const comparator = createEqualityComparator(config);
13053 const equals = createCustomInternalComparator ? createCustomInternalComparator(comparator) : createInternalEqualityComparator(comparator);
13054 return createIsEqual({ circular, comparator, createState, equals, strict });
13055 }
13056 function safeRequestAnimationFrame(callback) {
13057 if (typeof requestAnimationFrame !== "undefined") requestAnimationFrame(callback);
13058 }
13059 function setRafTimeout(callback) {
13060 var timeout = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
13061 var currTime = -1;
13062 var shouldUpdate = function shouldUpdate2(now) {
13063 if (currTime < 0) {
13064 currTime = now;
13065 }
13066 if (now - currTime > timeout) {
13067 callback(now);
13068 currTime = -1;
13069 } else {
13070 safeRequestAnimationFrame(shouldUpdate2);
13071 }
13072 };
13073 requestAnimationFrame(shouldUpdate);
13074 }
13075 function _typeof$3(o) {
13076 "@babel/helpers - typeof";
13077 return _typeof$3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
13078 return typeof o2;
13079 } : function(o2) {
13080 return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
13081 }, _typeof$3(o);
13082 }
13083 function _toArray(arr) {
13084 return _arrayWithHoles$2(arr) || _iterableToArray$3(arr) || _unsupportedIterableToArray$3(arr) || _nonIterableRest$2();
13085 }
13086 function _nonIterableRest$2() {
13087 throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
13088 }
13089 function _unsupportedIterableToArray$3(o, minLen) {
13090 if (!o) return;
13091 if (typeof o === "string") return _arrayLikeToArray$3(o, minLen);
13092 var n2 = Object.prototype.toString.call(o).slice(8, -1);
13093 if (n2 === "Object" && o.constructor) n2 = o.constructor.name;
13094 if (n2 === "Map" || n2 === "Set") return Array.from(o);
13095 if (n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2)) return _arrayLikeToArray$3(o, minLen);
13096 }
13097 function _arrayLikeToArray$3(arr, len) {
13098 if (len == null || len > arr.length) len = arr.length;
13099 for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
13100 return arr2;
13101 }
13102 function _iterableToArray$3(iter) {
13103 if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
13104 }
13105 function _arrayWithHoles$2(arr) {
13106 if (Array.isArray(arr)) return arr;
13107 }
13108 function createAnimateManager() {
13109 var currStyle = {};
13110 var handleChange = function handleChange2() {
13111 return null;
13112 };
13113 var shouldStop = false;
13114 var setStyle = function setStyle2(_style) {
13115 if (shouldStop) {
13116 return;
13117 }
13118 if (Array.isArray(_style)) {
13119 if (!_style.length) {
13120 return;
13121 }
13122 var styles = _style;
13123 var _styles = _toArray(styles), curr = _styles[0], restStyles = _styles.slice(1);
13124 if (typeof curr === "number") {
13125 setRafTimeout(setStyle2.bind(null, restStyles), curr);
13126 return;
13127 }
13128 setStyle2(curr);
13129 setRafTimeout(setStyle2.bind(null, restStyles));
13130 return;
13131 }
13132 if (_typeof$3(_style) === "object") {
13133 currStyle = _style;
13134 handleChange(currStyle);
13135 }
13136 if (typeof _style === "function") {
13137 _style();
13138 }
13139 };
13140 return {
13141 stop: function stop() {
13142 shouldStop = true;
13143 },
13144 start: function start(style) {
13145 shouldStop = false;
13146 setStyle(style);
13147 },
13148 subscribe: function subscribe(_handleChange) {
13149 handleChange = _handleChange;
13150 return function() {
13151 handleChange = function handleChange2() {
13152 return null;
13153 };
13154 };
13155 }
13156 };
13157 }
13158 function _typeof$2(o) {
13159 "@babel/helpers - typeof";
13160 return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
13161 return typeof o2;
13162 } : function(o2) {
13163 return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
13164 }, _typeof$2(o);
13165 }
13166 function ownKeys$2(e2, r2) {
13167 var t2 = Object.keys(e2);
13168 if (Object.getOwnPropertySymbols) {
13169 var o = Object.getOwnPropertySymbols(e2);
13170 r2 && (o = o.filter(function(r22) {
13171 return Object.getOwnPropertyDescriptor(e2, r22).enumerable;
13172 })), t2.push.apply(t2, o);
13173 }
13174 return t2;
13175 }
13176 function _objectSpread$2(e2) {
13177 for (var r2 = 1; r2 < arguments.length; r2++) {
13178 var t2 = null != arguments[r2] ? arguments[r2] : {};
13179 r2 % 2 ? ownKeys$2(Object(t2), true).forEach(function(r22) {
13180 _defineProperty$2(e2, r22, t2[r22]);
13181 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(t2)) : ownKeys$2(Object(t2)).forEach(function(r22) {
13182 Object.defineProperty(e2, r22, Object.getOwnPropertyDescriptor(t2, r22));
13183 });
13184 }
13185 return e2;
13186 }
13187 function _defineProperty$2(obj, key, value) {
13188 key = _toPropertyKey$2(key);
13189 if (key in obj) {
13190 Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
13191 } else {
13192 obj[key] = value;
13193 }
13194 return obj;
13195 }
13196 function _toPropertyKey$2(arg) {
13197 var key = _toPrimitive$2(arg, "string");
13198 return _typeof$2(key) === "symbol" ? key : String(key);
13199 }
13200 function _toPrimitive$2(input, hint) {
13201 if (_typeof$2(input) !== "object" || input === null) return input;
13202 var prim = input[Symbol.toPrimitive];
13203 if (prim !== void 0) {
13204 var res = prim.call(input, hint);
13205 if (_typeof$2(res) !== "object") return res;
13206 throw new TypeError("@@toPrimitive must return a primitive value.");
13207 }
13208 return (hint === "string" ? String : Number)(input);
13209 }
13210 var getIntersectionKeys = function getIntersectionKeys2(preObj, nextObj) {
13211 return [Object.keys(preObj), Object.keys(nextObj)].reduce(function(a, b2) {
13212 return a.filter(function(c2) {
13213 return b2.includes(c2);
13214 });
13215 });
13216 };
13217 var identity = function identity2(param) {
13218 return param;
13219 };
13220 var getDashCase = function getDashCase2(name) {
13221 return name.replace(/([A-Z])/g, function(v2) {
13222 return "-".concat(v2.toLowerCase());
13223 });
13224 };
13225 var mapObject = function mapObject2(fn, obj) {
13226 return Object.keys(obj).reduce(function(res, key) {
13227 return _objectSpread$2(_objectSpread$2({}, res), {}, _defineProperty$2({}, key, fn(key, obj[key])));
13228 }, {});
13229 };
13230 var getTransitionVal = function getTransitionVal2(props, duration, easing) {
13231 return props.map(function(prop) {
13232 return "".concat(getDashCase(prop), " ").concat(duration, "ms ").concat(easing);
13233 }).join(",");
13234 };
13235 function _slicedToArray$1(arr, i) {
13236 return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _unsupportedIterableToArray$2(arr, i) || _nonIterableRest$1();
13237 }
13238 function _nonIterableRest$1() {
13239 throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
13240 }
13241 function _iterableToArrayLimit$1(r2, l2) {
13242 var t2 = null == r2 ? null : "undefined" != typeof Symbol && r2[Symbol.iterator] || r2["@@iterator"];
13243 if (null != t2) {
13244 var e2, n2, i, u2, a = [], f2 = true, o = false;
13245 try {
13246 if (i = (t2 = t2.call(r2)).next, 0 === l2) ;
13247 else for (; !(f2 = (e2 = i.call(t2)).done) && (a.push(e2.value), a.length !== l2); f2 = true) ;
13248 } catch (r3) {
13249 o = true, n2 = r3;
13250 } finally {
13251 try {
13252 if (!f2 && null != t2.return && (u2 = t2.return(), Object(u2) !== u2)) return;
13253 } finally {
13254 if (o) throw n2;
13255 }
13256 }
13257 return a;
13258 }
13259 }
13260 function _arrayWithHoles$1(arr) {
13261 if (Array.isArray(arr)) return arr;
13262 }
13263 function _toConsumableArray$2(arr) {
13264 return _arrayWithoutHoles$2(arr) || _iterableToArray$2(arr) || _unsupportedIterableToArray$2(arr) || _nonIterableSpread$2();
13265 }
13266 function _nonIterableSpread$2() {
13267 throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
13268 }
13269 function _unsupportedIterableToArray$2(o, minLen) {
13270 if (!o) return;
13271 if (typeof o === "string") return _arrayLikeToArray$2(o, minLen);
13272 var n2 = Object.prototype.toString.call(o).slice(8, -1);
13273 if (n2 === "Object" && o.constructor) n2 = o.constructor.name;
13274 if (n2 === "Map" || n2 === "Set") return Array.from(o);
13275 if (n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2)) return _arrayLikeToArray$2(o, minLen);
13276 }
13277 function _iterableToArray$2(iter) {
13278 if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
13279 }
13280 function _arrayWithoutHoles$2(arr) {
13281 if (Array.isArray(arr)) return _arrayLikeToArray$2(arr);
13282 }
13283 function _arrayLikeToArray$2(arr, len) {
13284 if (len == null || len > arr.length) len = arr.length;
13285 for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
13286 return arr2;
13287 }
13288 var ACCURACY = 1e-4;
13289 var cubicBezierFactor = function cubicBezierFactor2(c1, c2) {
13290 return [0, 3 * c1, 3 * c2 - 6 * c1, 3 * c1 - 3 * c2 + 1];
13291 };
13292 var multyTime = function multyTime2(params, t2) {
13293 return params.map(function(param, i) {
13294 return param * Math.pow(t2, i);
13295 }).reduce(function(pre, curr) {
13296 return pre + curr;
13297 });
13298 };
13299 var cubicBezier = function cubicBezier2(c1, c2) {
13300 return function(t2) {
13301 var params = cubicBezierFactor(c1, c2);
13302 return multyTime(params, t2);
13303 };
13304 };
13305 var derivativeCubicBezier = function derivativeCubicBezier2(c1, c2) {
13306 return function(t2) {
13307 var params = cubicBezierFactor(c1, c2);
13308 var newParams = [].concat(_toConsumableArray$2(params.map(function(param, i) {
13309 return param * i;
13310 }).slice(1)), [0]);
13311 return multyTime(newParams, t2);
13312 };
13313 };
13314 var configBezier = function configBezier2() {
13315 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
13316 args[_key] = arguments[_key];
13317 }
13318 var x1 = args[0], y1 = args[1], x2 = args[2], y2 = args[3];
13319 if (args.length === 1) {
13320 switch (args[0]) {
13321 case "linear":
13322 x1 = 0;
13323 y1 = 0;
13324 x2 = 1;
13325 y2 = 1;
13326 break;
13327 case "ease":
13328 x1 = 0.25;
13329 y1 = 0.1;
13330 x2 = 0.25;
13331 y2 = 1;
13332 break;
13333 case "ease-in":
13334 x1 = 0.42;
13335 y1 = 0;
13336 x2 = 1;
13337 y2 = 1;
13338 break;
13339 case "ease-out":
13340 x1 = 0.42;
13341 y1 = 0;
13342 x2 = 0.58;
13343 y2 = 1;
13344 break;
13345 case "ease-in-out":
13346 x1 = 0;
13347 y1 = 0;
13348 x2 = 0.58;
13349 y2 = 1;
13350 break;
13351 default: {
13352 var easing = args[0].split("(");
13353 if (easing[0] === "cubic-bezier" && easing[1].split(")")[0].split(",").length === 4) {
13354 var _easing$1$split$0$spl = easing[1].split(")")[0].split(",").map(function(x3) {
13355 return parseFloat(x3);
13356 });
13357 var _easing$1$split$0$spl2 = _slicedToArray$1(_easing$1$split$0$spl, 4);
13358 x1 = _easing$1$split$0$spl2[0];
13359 y1 = _easing$1$split$0$spl2[1];
13360 x2 = _easing$1$split$0$spl2[2];
13361 y2 = _easing$1$split$0$spl2[3];
13362 }
13363 }
13364 }
13365 }
13366 var curveX = cubicBezier(x1, x2);
13367 var curveY = cubicBezier(y1, y2);
13368 var derCurveX = derivativeCubicBezier(x1, x2);
13369 var rangeValue = function rangeValue2(value) {
13370 if (value > 1) {
13371 return 1;
13372 }
13373 if (value < 0) {
13374 return 0;
13375 }
13376 return value;
13377 };
13378 var bezier = function bezier2(_t) {
13379 var t2 = _t > 1 ? 1 : _t;
13380 var x3 = t2;
13381 for (var i = 0; i < 8; ++i) {
13382 var evalT = curveX(x3) - t2;
13383 var derVal = derCurveX(x3);
13384 if (Math.abs(evalT - t2) < ACCURACY || derVal < ACCURACY) {
13385 return curveY(x3);
13386 }
13387 x3 = rangeValue(x3 - evalT / derVal);
13388 }
13389 return curveY(x3);
13390 };
13391 bezier.isStepper = false;
13392 return bezier;
13393 };
13394 var configSpring = function configSpring2() {
13395 var config = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
13396 var _config$stiff = config.stiff, stiff = _config$stiff === void 0 ? 100 : _config$stiff, _config$damping = config.damping, damping = _config$damping === void 0 ? 8 : _config$damping, _config$dt = config.dt, dt = _config$dt === void 0 ? 17 : _config$dt;
13397 var stepper = function stepper2(currX, destX, currV) {
13398 var FSpring = -(currX - destX) * stiff;
13399 var FDamping = currV * damping;
13400 var newV = currV + (FSpring - FDamping) * dt / 1e3;
13401 var newX = currV * dt / 1e3 + currX;
13402 if (Math.abs(newX - destX) < ACCURACY && Math.abs(newV) < ACCURACY) {
13403 return [destX, 0];
13404 }
13405 return [newX, newV];
13406 };
13407 stepper.isStepper = true;
13408 stepper.dt = dt;
13409 return stepper;
13410 };
13411 var configEasing = function configEasing2() {
13412 for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
13413 args[_key2] = arguments[_key2];
13414 }
13415 var easing = args[0];
13416 if (typeof easing === "string") {
13417 switch (easing) {
13418 case "ease":
13419 case "ease-in-out":
13420 case "ease-out":
13421 case "ease-in":
13422 case "linear":
13423 return configBezier(easing);
13424 case "spring":
13425 return configSpring();
13426 default:
13427 if (easing.split("(")[0] === "cubic-bezier") {
13428 return configBezier(easing);
13429 }
13430 }
13431 }
13432 if (typeof easing === "function") {
13433 return easing;
13434 }
13435 return null;
13436 };
13437 function _typeof$1(o) {
13438 "@babel/helpers - typeof";
13439 return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
13440 return typeof o2;
13441 } : function(o2) {
13442 return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
13443 }, _typeof$1(o);
13444 }
13445 function _toConsumableArray$1(arr) {
13446 return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$1(arr) || _nonIterableSpread$1();
13447 }
13448 function _nonIterableSpread$1() {
13449 throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
13450 }
13451 function _iterableToArray$1(iter) {
13452 if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
13453 }
13454 function _arrayWithoutHoles$1(arr) {
13455 if (Array.isArray(arr)) return _arrayLikeToArray$1(arr);
13456 }
13457 function ownKeys$1(e2, r2) {
13458 var t2 = Object.keys(e2);
13459 if (Object.getOwnPropertySymbols) {
13460 var o = Object.getOwnPropertySymbols(e2);
13461 r2 && (o = o.filter(function(r3) {
13462 return Object.getOwnPropertyDescriptor(e2, r3).enumerable;
13463 })), t2.push.apply(t2, o);
13464 }
13465 return t2;
13466 }
13467 function _objectSpread$1(e2) {
13468 for (var r2 = 1; r2 < arguments.length; r2++) {
13469 var t2 = null != arguments[r2] ? arguments[r2] : {};
13470 r2 % 2 ? ownKeys$1(Object(t2), true).forEach(function(r3) {
13471 _defineProperty$1(e2, r3, t2[r3]);
13472 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(t2)) : ownKeys$1(Object(t2)).forEach(function(r3) {
13473 Object.defineProperty(e2, r3, Object.getOwnPropertyDescriptor(t2, r3));
13474 });
13475 }
13476 return e2;
13477 }
13478 function _defineProperty$1(obj, key, value) {
13479 key = _toPropertyKey$1(key);
13480 if (key in obj) {
13481 Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
13482 } else {
13483 obj[key] = value;
13484 }
13485 return obj;
13486 }
13487 function _toPropertyKey$1(arg) {
13488 var key = _toPrimitive$1(arg, "string");
13489 return _typeof$1(key) === "symbol" ? key : String(key);
13490 }
13491 function _toPrimitive$1(input, hint) {
13492 if (_typeof$1(input) !== "object" || input === null) return input;
13493 var prim = input[Symbol.toPrimitive];
13494 if (prim !== void 0) {
13495 var res = prim.call(input, hint);
13496 if (_typeof$1(res) !== "object") return res;
13497 throw new TypeError("@@toPrimitive must return a primitive value.");
13498 }
13499 return (hint === "string" ? String : Number)(input);
13500 }
13501 function _slicedToArray(arr, i) {
13502 return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$1(arr, i) || _nonIterableRest();
13503 }
13504 function _nonIterableRest() {
13505 throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
13506 }
13507 function _unsupportedIterableToArray$1(o, minLen) {
13508 if (!o) return;
13509 if (typeof o === "string") return _arrayLikeToArray$1(o, minLen);
13510 var n2 = Object.prototype.toString.call(o).slice(8, -1);
13511 if (n2 === "Object" && o.constructor) n2 = o.constructor.name;
13512 if (n2 === "Map" || n2 === "Set") return Array.from(o);
13513 if (n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2)) return _arrayLikeToArray$1(o, minLen);
13514 }
13515 function _arrayLikeToArray$1(arr, len) {
13516 if (len == null || len > arr.length) len = arr.length;
13517 for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
13518 return arr2;
13519 }
13520 function _iterableToArrayLimit(r2, l2) {
13521 var t2 = null == r2 ? null : "undefined" != typeof Symbol && r2[Symbol.iterator] || r2["@@iterator"];
13522 if (null != t2) {
13523 var e2, n2, i, u2, a = [], f2 = true, o = false;
13524 try {
13525 if (i = (t2 = t2.call(r2)).next, 0 === l2) ;
13526 else for (; !(f2 = (e2 = i.call(t2)).done) && (a.push(e2.value), a.length !== l2); f2 = true) ;
13527 } catch (r3) {
13528 o = true, n2 = r3;
13529 } finally {
13530 try {
13531 if (!f2 && null != t2.return && (u2 = t2.return(), Object(u2) !== u2)) return;
13532 } finally {
13533 if (o) throw n2;
13534 }
13535 }
13536 return a;
13537 }
13538 }
13539 function _arrayWithHoles(arr) {
13540 if (Array.isArray(arr)) return arr;
13541 }
13542 var alpha = function alpha2(begin, end, k2) {
13543 return begin + (end - begin) * k2;
13544 };
13545 var needContinue = function needContinue2(_ref) {
13546 var from = _ref.from, to = _ref.to;
13547 return from !== to;
13548 };
13549 var calStepperVals = function calStepperVals2(easing, preVals, steps) {
13550 var nextStepVals = mapObject(function(key, val) {
13551 if (needContinue(val)) {
13552 var _easing = easing(val.from, val.to, val.velocity), _easing2 = _slicedToArray(_easing, 2), newX = _easing2[0], newV = _easing2[1];
13553 return _objectSpread$1(_objectSpread$1({}, val), {}, {
13554 from: newX,
13555 velocity: newV
13556 });
13557 }
13558 return val;
13559 }, preVals);
13560 if (steps < 1) {
13561 return mapObject(function(key, val) {
13562 if (needContinue(val)) {
13563 return _objectSpread$1(_objectSpread$1({}, val), {}, {
13564 velocity: alpha(val.velocity, nextStepVals[key].velocity, steps),
13565 from: alpha(val.from, nextStepVals[key].from, steps)
13566 });
13567 }
13568 return val;
13569 }, preVals);
13570 }
13571 return calStepperVals2(easing, nextStepVals, steps - 1);
13572 };
13573 const configUpdate = function(from, to, easing, duration, render) {
13574 var interKeys = getIntersectionKeys(from, to);
13575 var timingStyle = interKeys.reduce(function(res, key) {
13576 return _objectSpread$1(_objectSpread$1({}, res), {}, _defineProperty$1({}, key, [from[key], to[key]]));
13577 }, {});
13578 var stepperStyle = interKeys.reduce(function(res, key) {
13579 return _objectSpread$1(_objectSpread$1({}, res), {}, _defineProperty$1({}, key, {
13580 from: from[key],
13581 velocity: 0,
13582 to: to[key]
13583 }));
13584 }, {});
13585 var cafId = -1;
13586 var preTime;
13587 var beginTime;
13588 var update = function update2() {
13589 return null;
13590 };
13591 var getCurrStyle = function getCurrStyle2() {
13592 return mapObject(function(key, val) {
13593 return val.from;
13594 }, stepperStyle);
13595 };
13596 var shouldStopAnimation = function shouldStopAnimation2() {
13597 return !Object.values(stepperStyle).filter(needContinue).length;
13598 };
13599 var stepperUpdate = function stepperUpdate2(now) {
13600 if (!preTime) {
13601 preTime = now;
13602 }
13603 var deltaTime = now - preTime;
13604 var steps = deltaTime / easing.dt;
13605 stepperStyle = calStepperVals(easing, stepperStyle, steps);
13606 render(_objectSpread$1(_objectSpread$1(_objectSpread$1({}, from), to), getCurrStyle()));
13607 preTime = now;
13608 if (!shouldStopAnimation()) {
13609 cafId = requestAnimationFrame(update);
13610 }
13611 };
13612 var timingUpdate = function timingUpdate2(now) {
13613 if (!beginTime) {
13614 beginTime = now;
13615 }
13616 var t2 = (now - beginTime) / duration;
13617 var currStyle = mapObject(function(key, val) {
13618 return alpha.apply(void 0, _toConsumableArray$1(val).concat([easing(t2)]));
13619 }, timingStyle);
13620 render(_objectSpread$1(_objectSpread$1(_objectSpread$1({}, from), to), currStyle));
13621 if (t2 < 1) {
13622 cafId = requestAnimationFrame(update);
13623 } else {
13624 var finalStyle = mapObject(function(key, val) {
13625 return alpha.apply(void 0, _toConsumableArray$1(val).concat([easing(1)]));
13626 }, timingStyle);
13627 render(_objectSpread$1(_objectSpread$1(_objectSpread$1({}, from), to), finalStyle));
13628 }
13629 };
13630 update = easing.isStepper ? stepperUpdate : timingUpdate;
13631 return function() {
13632 requestAnimationFrame(update);
13633 return function() {
13634 cancelAnimationFrame(cafId);
13635 };
13636 };
13637 };
13638 function _typeof(o) {
13639 "@babel/helpers - typeof";
13640 return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
13641 return typeof o2;
13642 } : function(o2) {
13643 return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
13644 }, _typeof(o);
13645 }
13646 var _excluded = ["children", "begin", "duration", "attributeName", "easing", "isActive", "steps", "from", "to", "canBegin", "onAnimationEnd", "shouldReAnimate", "onAnimationReStart"];
13647 function _objectWithoutProperties(source, excluded) {
13648 if (source == null) return {};
13649 var target = _objectWithoutPropertiesLoose(source, excluded);
13650 var key, i;
13651 if (Object.getOwnPropertySymbols) {
13652 var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
13653 for (i = 0; i < sourceSymbolKeys.length; i++) {
13654 key = sourceSymbolKeys[i];
13655 if (excluded.indexOf(key) >= 0) continue;
13656 if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
13657 target[key] = source[key];
13658 }
13659 }
13660 return target;
13661 }
13662 function _objectWithoutPropertiesLoose(source, excluded) {
13663 if (source == null) return {};
13664 var target = {};
13665 var sourceKeys = Object.keys(source);
13666 var key, i;
13667 for (i = 0; i < sourceKeys.length; i++) {
13668 key = sourceKeys[i];
13669 if (excluded.indexOf(key) >= 0) continue;
13670 target[key] = source[key];
13671 }
13672 return target;
13673 }
13674 function _toConsumableArray(arr) {
13675 return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
13676 }
13677 function _nonIterableSpread() {
13678 throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
13679 }
13680 function _unsupportedIterableToArray(o, minLen) {
13681 if (!o) return;
13682 if (typeof o === "string") return _arrayLikeToArray(o, minLen);
13683 var n2 = Object.prototype.toString.call(o).slice(8, -1);
13684 if (n2 === "Object" && o.constructor) n2 = o.constructor.name;
13685 if (n2 === "Map" || n2 === "Set") return Array.from(o);
13686 if (n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2)) return _arrayLikeToArray(o, minLen);
13687 }
13688 function _iterableToArray(iter) {
13689 if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
13690 }
13691 function _arrayWithoutHoles(arr) {
13692 if (Array.isArray(arr)) return _arrayLikeToArray(arr);
13693 }
13694 function _arrayLikeToArray(arr, len) {
13695 if (len == null || len > arr.length) len = arr.length;
13696 for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
13697 return arr2;
13698 }
13699 function ownKeys(e2, r2) {
13700 var t2 = Object.keys(e2);
13701 if (Object.getOwnPropertySymbols) {
13702 var o = Object.getOwnPropertySymbols(e2);
13703 r2 && (o = o.filter(function(r3) {
13704 return Object.getOwnPropertyDescriptor(e2, r3).enumerable;
13705 })), t2.push.apply(t2, o);
13706 }
13707 return t2;
13708 }
13709 function _objectSpread(e2) {
13710 for (var r2 = 1; r2 < arguments.length; r2++) {
13711 var t2 = null != arguments[r2] ? arguments[r2] : {};
13712 r2 % 2 ? ownKeys(Object(t2), true).forEach(function(r3) {
13713 _defineProperty(e2, r3, t2[r3]);
13714 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(t2)) : ownKeys(Object(t2)).forEach(function(r3) {
13715 Object.defineProperty(e2, r3, Object.getOwnPropertyDescriptor(t2, r3));
13716 });
13717 }
13718 return e2;
13719 }
13720 function _defineProperty(obj, key, value) {
13721 key = _toPropertyKey(key);
13722 if (key in obj) {
13723 Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
13724 } else {
13725 obj[key] = value;
13726 }
13727 return obj;
13728 }
13729 function _classCallCheck(instance, Constructor) {
13730 if (!(instance instanceof Constructor)) {
13731 throw new TypeError("Cannot call a class as a function");
13732 }
13733 }
13734 function _defineProperties(target, props) {
13735 for (var i = 0; i < props.length; i++) {
13736 var descriptor = props[i];
13737 descriptor.enumerable = descriptor.enumerable || false;
13738 descriptor.configurable = true;
13739 if ("value" in descriptor) descriptor.writable = true;
13740 Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
13741 }
13742 }
13743 function _createClass(Constructor, protoProps, staticProps) {
13744 if (protoProps) _defineProperties(Constructor.prototype, protoProps);
13745 Object.defineProperty(Constructor, "prototype", { writable: false });
13746 return Constructor;
13747 }
13748 function _toPropertyKey(arg) {
13749 var key = _toPrimitive(arg, "string");
13750 return _typeof(key) === "symbol" ? key : String(key);
13751 }
13752 function _toPrimitive(input, hint) {
13753 if (_typeof(input) !== "object" || input === null) return input;
13754 var prim = input[Symbol.toPrimitive];
13755 if (prim !== void 0) {
13756 var res = prim.call(input, hint);
13757 if (_typeof(res) !== "object") return res;
13758 throw new TypeError("@@toPrimitive must return a primitive value.");
13759 }
13760 return (hint === "string" ? String : Number)(input);
13761 }
13762 function _inherits(subClass, superClass) {
13763 if (typeof superClass !== "function" && superClass !== null) {
13764 throw new TypeError("Super expression must either be null or a function");
13765 }
13766 subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });
13767 Object.defineProperty(subClass, "prototype", { writable: false });
13768 if (superClass) _setPrototypeOf(subClass, superClass);
13769 }
13770 function _setPrototypeOf(o, p2) {
13771 _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p3) {
13772 o2.__proto__ = p3;
13773 return o2;
13774 };
13775 return _setPrototypeOf(o, p2);
13776 }
13777 function _createSuper(Derived) {
13778 var hasNativeReflectConstruct = _isNativeReflectConstruct();
13779 return function _createSuperInternal() {
13780 var Super = _getPrototypeOf(Derived), result;
13781 if (hasNativeReflectConstruct) {
13782 var NewTarget = _getPrototypeOf(this).constructor;
13783 result = Reflect.construct(Super, arguments, NewTarget);
13784 } else {
13785 result = Super.apply(this, arguments);
13786 }
13787 return _possibleConstructorReturn(this, result);
13788 };
13789 }
13790 function _possibleConstructorReturn(self2, call) {
13791 if (call && (_typeof(call) === "object" || typeof call === "function")) {
13792 return call;
13793 } else if (call !== void 0) {
13794 throw new TypeError("Derived constructors may only return object or undefined");
13795 }
13796 return _assertThisInitialized(self2);
13797 }
13798 function _assertThisInitialized(self2) {
13799 if (self2 === void 0) {
13800 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
13801 }
13802 return self2;
13803 }
13804 function _isNativeReflectConstruct() {
13805 if (typeof Reflect === "undefined" || !Reflect.construct) return false;
13806 if (Reflect.construct.sham) return false;
13807 if (typeof Proxy === "function") return true;
13808 try {
13809 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
13810 }));
13811 return true;
13812 } catch (e2) {
13813 return false;
13814 }
13815 }
13816 function _getPrototypeOf(o) {
13817 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o2) {
13818 return o2.__proto__ || Object.getPrototypeOf(o2);
13819 };
13820 return _getPrototypeOf(o);
13821 }
13822 var Animate = /* @__PURE__ */ function(_PureComponent) {
13823 _inherits(Animate2, _PureComponent);
13824 var _super = _createSuper(Animate2);
13825 function Animate2(props, context) {
13826 var _this;
13827 _classCallCheck(this, Animate2);
13828 _this = _super.call(this, props, context);
13829 var _this$props = _this.props, isActive = _this$props.isActive, attributeName = _this$props.attributeName, from = _this$props.from, to = _this$props.to, steps = _this$props.steps, children = _this$props.children, duration = _this$props.duration;
13830 _this.handleStyleChange = _this.handleStyleChange.bind(_assertThisInitialized(_this));
13831 _this.changeStyle = _this.changeStyle.bind(_assertThisInitialized(_this));
13832 if (!isActive || duration <= 0) {
13833 _this.state = {
13834 style: {}
13835 };
13836 if (typeof children === "function") {
13837 _this.state = {
13838 style: to
13839 };
13840 }
13841 return _possibleConstructorReturn(_this);
13842 }
13843 if (steps && steps.length) {
13844 _this.state = {
13845 style: steps[0].style
13846 };
13847 } else if (from) {
13848 if (typeof children === "function") {
13849 _this.state = {
13850 style: from
13851 };
13852 return _possibleConstructorReturn(_this);
13853 }
13854 _this.state = {
13855 style: attributeName ? _defineProperty({}, attributeName, from) : from
13856 };
13857 } else {
13858 _this.state = {
13859 style: {}
13860 };
13861 }
13862 return _this;
13863 }
13864 _createClass(Animate2, [{
13865 key: "componentDidMount",
13866 value: function componentDidMount() {
13867 var _this$props2 = this.props, isActive = _this$props2.isActive, canBegin = _this$props2.canBegin;
13868 this.mounted = true;
13869 if (!isActive || !canBegin) {
13870 return;
13871 }
13872 this.runAnimation(this.props);
13873 }
13874 }, {
13875 key: "componentDidUpdate",
13876 value: function componentDidUpdate(prevProps) {
13877 var _this$props3 = this.props, isActive = _this$props3.isActive, canBegin = _this$props3.canBegin, attributeName = _this$props3.attributeName, shouldReAnimate = _this$props3.shouldReAnimate, to = _this$props3.to, currentFrom = _this$props3.from;
13878 var style = this.state.style;
13879 if (!canBegin) {
13880 return;
13881 }
13882 if (!isActive) {
13883 var newState = {
13884 style: attributeName ? _defineProperty({}, attributeName, to) : to
13885 };
13886 if (this.state && style) {
13887 if (attributeName && style[attributeName] !== to || !attributeName && style !== to) {
13888 this.setState(newState);
13889 }
13890 }
13891 return;
13892 }
13893 if (deepEqual(prevProps.to, to) && prevProps.canBegin && prevProps.isActive) {
13894 return;
13895 }
13896 var isTriggered = !prevProps.canBegin || !prevProps.isActive;
13897 if (this.manager) {
13898 this.manager.stop();
13899 }
13900 if (this.stopJSAnimation) {
13901 this.stopJSAnimation();
13902 }
13903 var from = isTriggered || shouldReAnimate ? currentFrom : prevProps.to;
13904 if (this.state && style) {
13905 var _newState = {
13906 style: attributeName ? _defineProperty({}, attributeName, from) : from
13907 };
13908 if (attributeName && style[attributeName] !== from || !attributeName && style !== from) {
13909 this.setState(_newState);
13910 }
13911 }
13912 this.runAnimation(_objectSpread(_objectSpread({}, this.props), {}, {
13913 from,
13914 begin: 0
13915 }));
13916 }
13917 }, {
13918 key: "componentWillUnmount",
13919 value: function componentWillUnmount() {
13920 this.mounted = false;
13921 var onAnimationEnd2 = this.props.onAnimationEnd;
13922 if (this.unSubscribe) {
13923 this.unSubscribe();
13924 }
13925 if (this.manager) {
13926 this.manager.stop();
13927 this.manager = null;
13928 }
13929 if (this.stopJSAnimation) {
13930 this.stopJSAnimation();
13931 }
13932 if (onAnimationEnd2) {
13933 onAnimationEnd2();
13934 }
13935 }
13936 }, {
13937 key: "handleStyleChange",
13938 value: function handleStyleChange(style) {
13939 this.changeStyle(style);
13940 }
13941 }, {
13942 key: "changeStyle",
13943 value: function changeStyle(style) {
13944 if (this.mounted) {
13945 this.setState({
13946 style
13947 });
13948 }
13949 }
13950 }, {
13951 key: "runJSAnimation",
13952 value: function runJSAnimation(props) {
13953 var _this2 = this;
13954 var from = props.from, to = props.to, duration = props.duration, easing = props.easing, begin = props.begin, onAnimationEnd2 = props.onAnimationEnd, onAnimationStart2 = props.onAnimationStart;
13955 var startAnimation = configUpdate(from, to, configEasing(easing), duration, this.changeStyle);
13956 var finalStartAnimation = function finalStartAnimation2() {
13957 _this2.stopJSAnimation = startAnimation();
13958 };
13959 this.manager.start([onAnimationStart2, begin, finalStartAnimation, duration, onAnimationEnd2]);
13960 }
13961 }, {
13962 key: "runStepAnimation",
13963 value: function runStepAnimation(props) {
13964 var _this3 = this;
13965 var steps = props.steps, begin = props.begin, onAnimationStart2 = props.onAnimationStart;
13966 var _steps$ = steps[0], initialStyle = _steps$.style, _steps$$duration = _steps$.duration, initialTime = _steps$$duration === void 0 ? 0 : _steps$$duration;
13967 var addStyle = function addStyle2(sequence, nextItem, index) {
13968 if (index === 0) {
13969 return sequence;
13970 }
13971 var duration = nextItem.duration, _nextItem$easing = nextItem.easing, easing = _nextItem$easing === void 0 ? "ease" : _nextItem$easing, style = nextItem.style, nextProperties = nextItem.properties, onAnimationEnd2 = nextItem.onAnimationEnd;
13972 var preItem = index > 0 ? steps[index - 1] : nextItem;
13973 var properties = nextProperties || Object.keys(style);
13974 if (typeof easing === "function" || easing === "spring") {
13975 return [].concat(_toConsumableArray(sequence), [_this3.runJSAnimation.bind(_this3, {
13976 from: preItem.style,
13977 to: style,
13978 duration,
13979 easing
13980 }), duration]);
13981 }
13982 var transition = getTransitionVal(properties, duration, easing);
13983 var newStyle = _objectSpread(_objectSpread(_objectSpread({}, preItem.style), style), {}, {
13984 transition
13985 });
13986 return [].concat(_toConsumableArray(sequence), [newStyle, duration, onAnimationEnd2]).filter(identity);
13987 };
13988 return this.manager.start([onAnimationStart2].concat(_toConsumableArray(steps.reduce(addStyle, [initialStyle, Math.max(initialTime, begin)])), [props.onAnimationEnd]));
13989 }
13990 }, {
13991 key: "runAnimation",
13992 value: function runAnimation(props) {
13993 if (!this.manager) {
13994 this.manager = createAnimateManager();
13995 }
13996 var begin = props.begin, duration = props.duration, attributeName = props.attributeName, propsTo = props.to, easing = props.easing, onAnimationStart2 = props.onAnimationStart, onAnimationEnd2 = props.onAnimationEnd, steps = props.steps, children = props.children;
13997 var manager = this.manager;
13998 this.unSubscribe = manager.subscribe(this.handleStyleChange);
13999 if (typeof easing === "function" || typeof children === "function" || easing === "spring") {
14000 this.runJSAnimation(props);
14001 return;
14002 }
14003 if (steps.length > 1) {
14004 this.runStepAnimation(props);
14005 return;
14006 }
14007 var to = attributeName ? _defineProperty({}, attributeName, propsTo) : propsTo;
14008 var transition = getTransitionVal(Object.keys(to), duration, easing);
14009 manager.start([onAnimationStart2, begin, _objectSpread(_objectSpread({}, to), {}, {
14010 transition
14011 }), duration, onAnimationEnd2]);
14012 }
14013 }, {
14014 key: "render",
14015 value: function render() {
14016 var _this$props4 = this.props, children = _this$props4.children;
14017 _this$props4.begin;
14018 var duration = _this$props4.duration;
14019 _this$props4.attributeName;
14020 _this$props4.easing;
14021 var isActive = _this$props4.isActive;
14022 _this$props4.steps;
14023 _this$props4.from;
14024 _this$props4.to;
14025 _this$props4.canBegin;
14026 _this$props4.onAnimationEnd;
14027 _this$props4.shouldReAnimate;
14028 _this$props4.onAnimationReStart;
14029 var others = _objectWithoutProperties(_this$props4, _excluded);
14030 var count = reactExports.Children.count(children);
14031 var stateStyle = this.state.style;
14032 if (typeof children === "function") {
14033 return children(stateStyle);
14034 }
14035 if (!isActive || count === 0 || duration <= 0) {
14036 return children;
14037 }
14038 var cloneContainer = function cloneContainer2(container) {
14039 var _container$props = container.props, _container$props$styl = _container$props.style, style = _container$props$styl === void 0 ? {} : _container$props$styl, className = _container$props.className;
14040 var res = /* @__PURE__ */ reactExports.cloneElement(container, _objectSpread(_objectSpread({}, others), {}, {
14041 style: _objectSpread(_objectSpread({}, style), stateStyle),
14042 className
14043 }));
14044 return res;
14045 };
14046 if (count === 1) {
14047 return cloneContainer(reactExports.Children.only(children));
14048 }
14049 return /* @__PURE__ */ React.createElement("div", null, reactExports.Children.map(children, function(child) {
14050 return cloneContainer(child);
14051 }));
14052 }
14053 }]);
14054 return Animate2;
14055 }(reactExports.PureComponent);
14056 Animate.displayName = "Animate";
14057 Animate.defaultProps = {
14058 begin: 0,
14059 duration: 1e3,
14060 from: "",
14061 to: "",
14062 attributeName: "",
14063 easing: "ease",
14064 isActive: true,
14065 canBegin: true,
14066 steps: [],
14067 onAnimationEnd: function onAnimationEnd() {
14068 },
14069 onAnimationStart: function onAnimationStart() {
14070 }
14071 };
14072 Animate.propTypes = {
14073 from: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
14074 to: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
14075 attributeName: PropTypes.string,
14076 // animation duration
14077 duration: PropTypes.number,
14078 begin: PropTypes.number,
14079 easing: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
14080 steps: PropTypes.arrayOf(PropTypes.shape({
14081 duration: PropTypes.number.isRequired,
14082 style: PropTypes.object.isRequired,
14083 easing: PropTypes.oneOfType([PropTypes.oneOf(["ease", "ease-in", "ease-out", "ease-in-out", "linear"]), PropTypes.func]),
14084 // transition css properties(dash case), optional
14085 properties: PropTypes.arrayOf("string"),
14086 onAnimationEnd: PropTypes.func
14087 })),
14088 children: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),
14089 isActive: PropTypes.bool,
14090 canBegin: PropTypes.bool,
14091 onAnimationEnd: PropTypes.func,
14092 // decide if it should reanimate with initial from style when props change
14093 shouldReAnimate: PropTypes.bool,
14094 onAnimationStart: PropTypes.func,
14095 onAnimationReStart: PropTypes.func
14096 };
14097 var quill = { exports: {} };
14098 /*!
14099 * Quill Editor v1.3.7
14100 * https://quilljs.com/
14101 * Copyright (c) 2014, Jason Chen
14102 * Copyright (c) 2013, salesforce.com
14103 */
14104 (function(module, exports$1) {
14105 (function webpackUniversalModuleDefinition(root2, factory) {
14106 module.exports = factory();
14107 })(typeof self !== "undefined" ? self : commonjsGlobal, function() {
14108 return (
14109 /******/
14110 function(modules) {
14111 var installedModules = {};
14112 function __webpack_require__(moduleId) {
14113 if (installedModules[moduleId]) {
14114 return installedModules[moduleId].exports;
14115 }
14116 var module2 = installedModules[moduleId] = {
14117 /******/
14118 i: moduleId,
14119 /******/
14120 l: false,
14121 /******/
14122 exports: {}
14123 /******/
14124 };
14125 modules[moduleId].call(module2.exports, module2, module2.exports, __webpack_require__);
14126 module2.l = true;
14127 return module2.exports;
14128 }
14129 __webpack_require__.m = modules;
14130 __webpack_require__.c = installedModules;
14131 __webpack_require__.d = function(exports$12, name, getter) {
14132 if (!__webpack_require__.o(exports$12, name)) {
14133 Object.defineProperty(exports$12, name, {
14134 /******/
14135 configurable: false,
14136 /******/
14137 enumerable: true,
14138 /******/
14139 get: getter
14140 /******/
14141 });
14142 }
14143 };
14144 __webpack_require__.n = function(module2) {
14145 var getter = module2 && module2.__esModule ? (
14146 /******/
14147 function getDefault() {
14148 return module2["default"];
14149 }
14150 ) : (
14151 /******/
14152 function getModuleExports() {
14153 return module2;
14154 }
14155 );
14156 __webpack_require__.d(getter, "a", getter);
14157 return getter;
14158 };
14159 __webpack_require__.o = function(object, property) {
14160 return Object.prototype.hasOwnProperty.call(object, property);
14161 };
14162 __webpack_require__.p = "";
14163 return __webpack_require__(__webpack_require__.s = 109);
14164 }([
14165 /* 0 */
14166 /***/
14167 function(module2, exports$12, __webpack_require__) {
14168 Object.defineProperty(exports$12, "__esModule", { value: true });
14169 var container_1 = __webpack_require__(17);
14170 var format_1 = __webpack_require__(18);
14171 var leaf_1 = __webpack_require__(19);
14172 var scroll_1 = __webpack_require__(45);
14173 var inline_1 = __webpack_require__(46);
14174 var block_1 = __webpack_require__(47);
14175 var embed_1 = __webpack_require__(48);
14176 var text_1 = __webpack_require__(49);
14177 var attributor_1 = __webpack_require__(12);
14178 var class_1 = __webpack_require__(32);
14179 var style_1 = __webpack_require__(33);
14180 var store_1 = __webpack_require__(31);
14181 var Registry = __webpack_require__(1);
14182 var Parchment = {
14183 Scope: Registry.Scope,
14184 create: Registry.create,
14185 find: Registry.find,
14186 query: Registry.query,
14187 register: Registry.register,
14188 Container: container_1.default,
14189 Format: format_1.default,
14190 Leaf: leaf_1.default,
14191 Embed: embed_1.default,
14192 Scroll: scroll_1.default,
14193 Block: block_1.default,
14194 Inline: inline_1.default,
14195 Text: text_1.default,
14196 Attributor: {
14197 Attribute: attributor_1.default,
14198 Class: class_1.default,
14199 Style: style_1.default,
14200 Store: store_1.default
14201 }
14202 };
14203 exports$12.default = Parchment;
14204 },
14205 /* 1 */
14206 /***/
14207 function(module2, exports$12, __webpack_require__) {
14208 var __extends2 = this && this.__extends || function() {
14209 var extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
14210 d2.__proto__ = b2;
14211 } || function(d2, b2) {
14212 for (var p2 in b2) if (b2.hasOwnProperty(p2)) d2[p2] = b2[p2];
14213 };
14214 return function(d2, b2) {
14215 extendStatics(d2, b2);
14216 function __() {
14217 this.constructor = d2;
14218 }
14219 d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
14220 };
14221 }();
14222 Object.defineProperty(exports$12, "__esModule", { value: true });
14223 var ParchmentError = (
14224 /** @class */
14225 function(_super) {
14226 __extends2(ParchmentError2, _super);
14227 function ParchmentError2(message) {
14228 var _this = this;
14229 message = "[Parchment] " + message;
14230 _this = _super.call(this, message) || this;
14231 _this.message = message;
14232 _this.name = _this.constructor.name;
14233 return _this;
14234 }
14235 return ParchmentError2;
14236 }(Error)
14237 );
14238 exports$12.ParchmentError = ParchmentError;
14239 var attributes = {};
14240 var classes = {};
14241 var tags = {};
14242 var types = {};
14243 exports$12.DATA_KEY = "__blot";
14244 var Scope;
14245 (function(Scope2) {
14246 Scope2[Scope2["TYPE"] = 3] = "TYPE";
14247 Scope2[Scope2["LEVEL"] = 12] = "LEVEL";
14248 Scope2[Scope2["ATTRIBUTE"] = 13] = "ATTRIBUTE";
14249 Scope2[Scope2["BLOT"] = 14] = "BLOT";
14250 Scope2[Scope2["INLINE"] = 7] = "INLINE";
14251 Scope2[Scope2["BLOCK"] = 11] = "BLOCK";
14252 Scope2[Scope2["BLOCK_BLOT"] = 10] = "BLOCK_BLOT";
14253 Scope2[Scope2["INLINE_BLOT"] = 6] = "INLINE_BLOT";
14254 Scope2[Scope2["BLOCK_ATTRIBUTE"] = 9] = "BLOCK_ATTRIBUTE";
14255 Scope2[Scope2["INLINE_ATTRIBUTE"] = 5] = "INLINE_ATTRIBUTE";
14256 Scope2[Scope2["ANY"] = 15] = "ANY";
14257 })(Scope = exports$12.Scope || (exports$12.Scope = {}));
14258 function create(input, value) {
14259 var match = query(input);
14260 if (match == null) {
14261 throw new ParchmentError("Unable to create " + input + " blot");
14262 }
14263 var BlotClass = match;
14264 var node = (
14265 // @ts-ignore
14266 input instanceof Node || input["nodeType"] === Node.TEXT_NODE ? input : BlotClass.create(value)
14267 );
14268 return new BlotClass(node, value);
14269 }
14270 exports$12.create = create;
14271 function find(node, bubble) {
14272 if (bubble === void 0) {
14273 bubble = false;
14274 }
14275 if (node == null)
14276 return null;
14277 if (node[exports$12.DATA_KEY] != null)
14278 return node[exports$12.DATA_KEY].blot;
14279 if (bubble)
14280 return find(node.parentNode, bubble);
14281 return null;
14282 }
14283 exports$12.find = find;
14284 function query(query2, scope) {
14285 if (scope === void 0) {
14286 scope = Scope.ANY;
14287 }
14288 var match;
14289 if (typeof query2 === "string") {
14290 match = types[query2] || attributes[query2];
14291 } else if (query2 instanceof Text || query2["nodeType"] === Node.TEXT_NODE) {
14292 match = types["text"];
14293 } else if (typeof query2 === "number") {
14294 if (query2 & Scope.LEVEL & Scope.BLOCK) {
14295 match = types["block"];
14296 } else if (query2 & Scope.LEVEL & Scope.INLINE) {
14297 match = types["inline"];
14298 }
14299 } else if (query2 instanceof HTMLElement) {
14300 var names = (query2.getAttribute("class") || "").split(/\s+/);
14301 for (var i in names) {
14302 match = classes[names[i]];
14303 if (match)
14304 break;
14305 }
14306 match = match || tags[query2.tagName];
14307 }
14308 if (match == null)
14309 return null;
14310 if (scope & Scope.LEVEL & match.scope && scope & Scope.TYPE & match.scope)
14311 return match;
14312 return null;
14313 }
14314 exports$12.query = query;
14315 function register() {
14316 var Definitions = [];
14317 for (var _i2 = 0; _i2 < arguments.length; _i2++) {
14318 Definitions[_i2] = arguments[_i2];
14319 }
14320 if (Definitions.length > 1) {
14321 return Definitions.map(function(d2) {
14322 return register(d2);
14323 });
14324 }
14325 var Definition = Definitions[0];
14326 if (typeof Definition.blotName !== "string" && typeof Definition.attrName !== "string") {
14327 throw new ParchmentError("Invalid definition");
14328 } else if (Definition.blotName === "abstract") {
14329 throw new ParchmentError("Cannot register abstract class");
14330 }
14331 types[Definition.blotName || Definition.attrName] = Definition;
14332 if (typeof Definition.keyName === "string") {
14333 attributes[Definition.keyName] = Definition;
14334 } else {
14335 if (Definition.className != null) {
14336 classes[Definition.className] = Definition;
14337 }
14338 if (Definition.tagName != null) {
14339 if (Array.isArray(Definition.tagName)) {
14340 Definition.tagName = Definition.tagName.map(function(tagName) {
14341 return tagName.toUpperCase();
14342 });
14343 } else {
14344 Definition.tagName = Definition.tagName.toUpperCase();
14345 }
14346 var tagNames = Array.isArray(Definition.tagName) ? Definition.tagName : [Definition.tagName];
14347 tagNames.forEach(function(tag) {
14348 if (tags[tag] == null || Definition.className == null) {
14349 tags[tag] = Definition;
14350 }
14351 });
14352 }
14353 }
14354 return Definition;
14355 }
14356 exports$12.register = register;
14357 },
14358 /* 2 */
14359 /***/
14360 function(module2, exports$12, __webpack_require__) {
14361 var diff = __webpack_require__(51);
14362 var equal = __webpack_require__(11);
14363 var extend = __webpack_require__(3);
14364 var op = __webpack_require__(20);
14365 var NULL_CHARACTER = String.fromCharCode(0);
14366 var Delta = function(ops) {
14367 if (Array.isArray(ops)) {
14368 this.ops = ops;
14369 } else if (ops != null && Array.isArray(ops.ops)) {
14370 this.ops = ops.ops;
14371 } else {
14372 this.ops = [];
14373 }
14374 };
14375 Delta.prototype.insert = function(text, attributes) {
14376 var newOp = {};
14377 if (text.length === 0) return this;
14378 newOp.insert = text;
14379 if (attributes != null && typeof attributes === "object" && Object.keys(attributes).length > 0) {
14380 newOp.attributes = attributes;
14381 }
14382 return this.push(newOp);
14383 };
14384 Delta.prototype["delete"] = function(length) {
14385 if (length <= 0) return this;
14386 return this.push({ "delete": length });
14387 };
14388 Delta.prototype.retain = function(length, attributes) {
14389 if (length <= 0) return this;
14390 var newOp = { retain: length };
14391 if (attributes != null && typeof attributes === "object" && Object.keys(attributes).length > 0) {
14392 newOp.attributes = attributes;
14393 }
14394 return this.push(newOp);
14395 };
14396 Delta.prototype.push = function(newOp) {
14397 var index = this.ops.length;
14398 var lastOp = this.ops[index - 1];
14399 newOp = extend(true, {}, newOp);
14400 if (typeof lastOp === "object") {
14401 if (typeof newOp["delete"] === "number" && typeof lastOp["delete"] === "number") {
14402 this.ops[index - 1] = { "delete": lastOp["delete"] + newOp["delete"] };
14403 return this;
14404 }
14405 if (typeof lastOp["delete"] === "number" && newOp.insert != null) {
14406 index -= 1;
14407 lastOp = this.ops[index - 1];
14408 if (typeof lastOp !== "object") {
14409 this.ops.unshift(newOp);
14410 return this;
14411 }
14412 }
14413 if (equal(newOp.attributes, lastOp.attributes)) {
14414 if (typeof newOp.insert === "string" && typeof lastOp.insert === "string") {
14415 this.ops[index - 1] = { insert: lastOp.insert + newOp.insert };
14416 if (typeof newOp.attributes === "object") this.ops[index - 1].attributes = newOp.attributes;
14417 return this;
14418 } else if (typeof newOp.retain === "number" && typeof lastOp.retain === "number") {
14419 this.ops[index - 1] = { retain: lastOp.retain + newOp.retain };
14420 if (typeof newOp.attributes === "object") this.ops[index - 1].attributes = newOp.attributes;
14421 return this;
14422 }
14423 }
14424 }
14425 if (index === this.ops.length) {
14426 this.ops.push(newOp);
14427 } else {
14428 this.ops.splice(index, 0, newOp);
14429 }
14430 return this;
14431 };
14432 Delta.prototype.chop = function() {
14433 var lastOp = this.ops[this.ops.length - 1];
14434 if (lastOp && lastOp.retain && !lastOp.attributes) {
14435 this.ops.pop();
14436 }
14437 return this;
14438 };
14439 Delta.prototype.filter = function(predicate) {
14440 return this.ops.filter(predicate);
14441 };
14442 Delta.prototype.forEach = function(predicate) {
14443 this.ops.forEach(predicate);
14444 };
14445 Delta.prototype.map = function(predicate) {
14446 return this.ops.map(predicate);
14447 };
14448 Delta.prototype.partition = function(predicate) {
14449 var passed = [], failed = [];
14450 this.forEach(function(op2) {
14451 var target = predicate(op2) ? passed : failed;
14452 target.push(op2);
14453 });
14454 return [passed, failed];
14455 };
14456 Delta.prototype.reduce = function(predicate, initial) {
14457 return this.ops.reduce(predicate, initial);
14458 };
14459 Delta.prototype.changeLength = function() {
14460 return this.reduce(function(length, elem) {
14461 if (elem.insert) {
14462 return length + op.length(elem);
14463 } else if (elem.delete) {
14464 return length - elem.delete;
14465 }
14466 return length;
14467 }, 0);
14468 };
14469 Delta.prototype.length = function() {
14470 return this.reduce(function(length, elem) {
14471 return length + op.length(elem);
14472 }, 0);
14473 };
14474 Delta.prototype.slice = function(start, end) {
14475 start = start || 0;
14476 if (typeof end !== "number") end = Infinity;
14477 var ops = [];
14478 var iter = op.iterator(this.ops);
14479 var index = 0;
14480 while (index < end && iter.hasNext()) {
14481 var nextOp;
14482 if (index < start) {
14483 nextOp = iter.next(start - index);
14484 } else {
14485 nextOp = iter.next(end - index);
14486 ops.push(nextOp);
14487 }
14488 index += op.length(nextOp);
14489 }
14490 return new Delta(ops);
14491 };
14492 Delta.prototype.compose = function(other) {
14493 var thisIter = op.iterator(this.ops);
14494 var otherIter = op.iterator(other.ops);
14495 var ops = [];
14496 var firstOther = otherIter.peek();
14497 if (firstOther != null && typeof firstOther.retain === "number" && firstOther.attributes == null) {
14498 var firstLeft = firstOther.retain;
14499 while (thisIter.peekType() === "insert" && thisIter.peekLength() <= firstLeft) {
14500 firstLeft -= thisIter.peekLength();
14501 ops.push(thisIter.next());
14502 }
14503 if (firstOther.retain - firstLeft > 0) {
14504 otherIter.next(firstOther.retain - firstLeft);
14505 }
14506 }
14507 var delta = new Delta(ops);
14508 while (thisIter.hasNext() || otherIter.hasNext()) {
14509 if (otherIter.peekType() === "insert") {
14510 delta.push(otherIter.next());
14511 } else if (thisIter.peekType() === "delete") {
14512 delta.push(thisIter.next());
14513 } else {
14514 var length = Math.min(thisIter.peekLength(), otherIter.peekLength());
14515 var thisOp = thisIter.next(length);
14516 var otherOp = otherIter.next(length);
14517 if (typeof otherOp.retain === "number") {
14518 var newOp = {};
14519 if (typeof thisOp.retain === "number") {
14520 newOp.retain = length;
14521 } else {
14522 newOp.insert = thisOp.insert;
14523 }
14524 var attributes = op.attributes.compose(thisOp.attributes, otherOp.attributes, typeof thisOp.retain === "number");
14525 if (attributes) newOp.attributes = attributes;
14526 delta.push(newOp);
14527 if (!otherIter.hasNext() && equal(delta.ops[delta.ops.length - 1], newOp)) {
14528 var rest = new Delta(thisIter.rest());
14529 return delta.concat(rest).chop();
14530 }
14531 } else if (typeof otherOp["delete"] === "number" && typeof thisOp.retain === "number") {
14532 delta.push(otherOp);
14533 }
14534 }
14535 }
14536 return delta.chop();
14537 };
14538 Delta.prototype.concat = function(other) {
14539 var delta = new Delta(this.ops.slice());
14540 if (other.ops.length > 0) {
14541 delta.push(other.ops[0]);
14542 delta.ops = delta.ops.concat(other.ops.slice(1));
14543 }
14544 return delta;
14545 };
14546 Delta.prototype.diff = function(other, index) {
14547 if (this.ops === other.ops) {
14548 return new Delta();
14549 }
14550 var strings = [this, other].map(function(delta2) {
14551 return delta2.map(function(op2) {
14552 if (op2.insert != null) {
14553 return typeof op2.insert === "string" ? op2.insert : NULL_CHARACTER;
14554 }
14555 var prep = delta2 === other ? "on" : "with";
14556 throw new Error("diff() called " + prep + " non-document");
14557 }).join("");
14558 });
14559 var delta = new Delta();
14560 var diffResult = diff(strings[0], strings[1], index);
14561 var thisIter = op.iterator(this.ops);
14562 var otherIter = op.iterator(other.ops);
14563 diffResult.forEach(function(component) {
14564 var length = component[1].length;
14565 while (length > 0) {
14566 var opLength = 0;
14567 switch (component[0]) {
14568 case diff.INSERT:
14569 opLength = Math.min(otherIter.peekLength(), length);
14570 delta.push(otherIter.next(opLength));
14571 break;
14572 case diff.DELETE:
14573 opLength = Math.min(length, thisIter.peekLength());
14574 thisIter.next(opLength);
14575 delta["delete"](opLength);
14576 break;
14577 case diff.EQUAL:
14578 opLength = Math.min(thisIter.peekLength(), otherIter.peekLength(), length);
14579 var thisOp = thisIter.next(opLength);
14580 var otherOp = otherIter.next(opLength);
14581 if (equal(thisOp.insert, otherOp.insert)) {
14582 delta.retain(opLength, op.attributes.diff(thisOp.attributes, otherOp.attributes));
14583 } else {
14584 delta.push(otherOp)["delete"](opLength);
14585 }
14586 break;
14587 }
14588 length -= opLength;
14589 }
14590 });
14591 return delta.chop();
14592 };
14593 Delta.prototype.eachLine = function(predicate, newline) {
14594 newline = newline || "\n";
14595 var iter = op.iterator(this.ops);
14596 var line = new Delta();
14597 var i = 0;
14598 while (iter.hasNext()) {
14599 if (iter.peekType() !== "insert") return;
14600 var thisOp = iter.peek();
14601 var start = op.length(thisOp) - iter.peekLength();
14602 var index = typeof thisOp.insert === "string" ? thisOp.insert.indexOf(newline, start) - start : -1;
14603 if (index < 0) {
14604 line.push(iter.next());
14605 } else if (index > 0) {
14606 line.push(iter.next(index));
14607 } else {
14608 if (predicate(line, iter.next(1).attributes || {}, i) === false) {
14609 return;
14610 }
14611 i += 1;
14612 line = new Delta();
14613 }
14614 }
14615 if (line.length() > 0) {
14616 predicate(line, {}, i);
14617 }
14618 };
14619 Delta.prototype.transform = function(other, priority) {
14620 priority = !!priority;
14621 if (typeof other === "number") {
14622 return this.transformPosition(other, priority);
14623 }
14624 var thisIter = op.iterator(this.ops);
14625 var otherIter = op.iterator(other.ops);
14626 var delta = new Delta();
14627 while (thisIter.hasNext() || otherIter.hasNext()) {
14628 if (thisIter.peekType() === "insert" && (priority || otherIter.peekType() !== "insert")) {
14629 delta.retain(op.length(thisIter.next()));
14630 } else if (otherIter.peekType() === "insert") {
14631 delta.push(otherIter.next());
14632 } else {
14633 var length = Math.min(thisIter.peekLength(), otherIter.peekLength());
14634 var thisOp = thisIter.next(length);
14635 var otherOp = otherIter.next(length);
14636 if (thisOp["delete"]) {
14637 continue;
14638 } else if (otherOp["delete"]) {
14639 delta.push(otherOp);
14640 } else {
14641 delta.retain(length, op.attributes.transform(thisOp.attributes, otherOp.attributes, priority));
14642 }
14643 }
14644 }
14645 return delta.chop();
14646 };
14647 Delta.prototype.transformPosition = function(index, priority) {
14648 priority = !!priority;
14649 var thisIter = op.iterator(this.ops);
14650 var offset = 0;
14651 while (thisIter.hasNext() && offset <= index) {
14652 var length = thisIter.peekLength();
14653 var nextType = thisIter.peekType();
14654 thisIter.next();
14655 if (nextType === "delete") {
14656 index -= Math.min(length, index - offset);
14657 continue;
14658 } else if (nextType === "insert" && (offset < index || !priority)) {
14659 index += length;
14660 }
14661 offset += length;
14662 }
14663 return index;
14664 };
14665 module2.exports = Delta;
14666 },
14667 /* 3 */
14668 /***/
14669 function(module2, exports$12) {
14670 var hasOwn2 = Object.prototype.hasOwnProperty;
14671 var toStr = Object.prototype.toString;
14672 var defineProperty = Object.defineProperty;
14673 var gOPD = Object.getOwnPropertyDescriptor;
14674 var isArray2 = function isArray3(arr) {
14675 if (typeof Array.isArray === "function") {
14676 return Array.isArray(arr);
14677 }
14678 return toStr.call(arr) === "[object Array]";
14679 };
14680 var isPlainObject2 = function isPlainObject3(obj) {
14681 if (!obj || toStr.call(obj) !== "[object Object]") {
14682 return false;
14683 }
14684 var hasOwnConstructor = hasOwn2.call(obj, "constructor");
14685 var hasIsPrototypeOf = obj.constructor && obj.constructor.prototype && hasOwn2.call(obj.constructor.prototype, "isPrototypeOf");
14686 if (obj.constructor && !hasOwnConstructor && !hasIsPrototypeOf) {
14687 return false;
14688 }
14689 var key;
14690 for (key in obj) {
14691 }
14692 return typeof key === "undefined" || hasOwn2.call(obj, key);
14693 };
14694 var setProperty = function setProperty2(target, options) {
14695 if (defineProperty && options.name === "__proto__") {
14696 defineProperty(target, options.name, {
14697 enumerable: true,
14698 configurable: true,
14699 value: options.newValue,
14700 writable: true
14701 });
14702 } else {
14703 target[options.name] = options.newValue;
14704 }
14705 };
14706 var getProperty = function getProperty2(obj, name) {
14707 if (name === "__proto__") {
14708 if (!hasOwn2.call(obj, name)) {
14709 return void 0;
14710 } else if (gOPD) {
14711 return gOPD(obj, name).value;
14712 }
14713 }
14714 return obj[name];
14715 };
14716 module2.exports = function extend() {
14717 var options, name, src, copy, copyIsArray, clone;
14718 var target = arguments[0];
14719 var i = 1;
14720 var length = arguments.length;
14721 var deep = false;
14722 if (typeof target === "boolean") {
14723 deep = target;
14724 target = arguments[1] || {};
14725 i = 2;
14726 }
14727 if (target == null || typeof target !== "object" && typeof target !== "function") {
14728 target = {};
14729 }
14730 for (; i < length; ++i) {
14731 options = arguments[i];
14732 if (options != null) {
14733 for (name in options) {
14734 src = getProperty(target, name);
14735 copy = getProperty(options, name);
14736 if (target !== copy) {
14737 if (deep && copy && (isPlainObject2(copy) || (copyIsArray = isArray2(copy)))) {
14738 if (copyIsArray) {
14739 copyIsArray = false;
14740 clone = src && isArray2(src) ? src : [];
14741 } else {
14742 clone = src && isPlainObject2(src) ? src : {};
14743 }
14744 setProperty(target, { name, newValue: extend(deep, clone, copy) });
14745 } else if (typeof copy !== "undefined") {
14746 setProperty(target, { name, newValue: copy });
14747 }
14748 }
14749 }
14750 }
14751 }
14752 return target;
14753 };
14754 },
14755 /* 4 */
14756 /***/
14757 function(module2, exports$12, __webpack_require__) {
14758 Object.defineProperty(exports$12, "__esModule", {
14759 value: true
14760 });
14761 exports$12.default = exports$12.BlockEmbed = exports$12.bubbleFormats = void 0;
14762 var _createClass2 = /* @__PURE__ */ function() {
14763 function defineProperties(target, props) {
14764 for (var i = 0; i < props.length; i++) {
14765 var descriptor = props[i];
14766 descriptor.enumerable = descriptor.enumerable || false;
14767 descriptor.configurable = true;
14768 if ("value" in descriptor) descriptor.writable = true;
14769 Object.defineProperty(target, descriptor.key, descriptor);
14770 }
14771 }
14772 return function(Constructor, protoProps, staticProps) {
14773 if (protoProps) defineProperties(Constructor.prototype, protoProps);
14774 if (staticProps) defineProperties(Constructor, staticProps);
14775 return Constructor;
14776 };
14777 }();
14778 var _get = function get(object, property, receiver) {
14779 if (object === null) object = Function.prototype;
14780 var desc = Object.getOwnPropertyDescriptor(object, property);
14781 if (desc === void 0) {
14782 var parent = Object.getPrototypeOf(object);
14783 if (parent === null) {
14784 return void 0;
14785 } else {
14786 return get(parent, property, receiver);
14787 }
14788 } else if ("value" in desc) {
14789 return desc.value;
14790 } else {
14791 var getter = desc.get;
14792 if (getter === void 0) {
14793 return void 0;
14794 }
14795 return getter.call(receiver);
14796 }
14797 };
14798 var _extend = __webpack_require__(3);
14799 var _extend2 = _interopRequireDefault(_extend);
14800 var _quillDelta = __webpack_require__(2);
14801 var _quillDelta2 = _interopRequireDefault(_quillDelta);
14802 var _parchment = __webpack_require__(0);
14803 var _parchment2 = _interopRequireDefault(_parchment);
14804 var _break = __webpack_require__(16);
14805 var _break2 = _interopRequireDefault(_break);
14806 var _inline = __webpack_require__(6);
14807 var _inline2 = _interopRequireDefault(_inline);
14808 var _text = __webpack_require__(7);
14809 var _text2 = _interopRequireDefault(_text);
14810 function _interopRequireDefault(obj) {
14811 return obj && obj.__esModule ? obj : { default: obj };
14812 }
14813 function _classCallCheck2(instance, Constructor) {
14814 if (!(instance instanceof Constructor)) {
14815 throw new TypeError("Cannot call a class as a function");
14816 }
14817 }
14818 function _possibleConstructorReturn2(self2, call) {
14819 if (!self2) {
14820 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
14821 }
14822 return call && (typeof call === "object" || typeof call === "function") ? call : self2;
14823 }
14824 function _inherits2(subClass, superClass) {
14825 if (typeof superClass !== "function" && superClass !== null) {
14826 throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
14827 }
14828 subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
14829 if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
14830 }
14831 var NEWLINE_LENGTH = 1;
14832 var BlockEmbed = function(_Parchment$Embed) {
14833 _inherits2(BlockEmbed2, _Parchment$Embed);
14834 function BlockEmbed2() {
14835 _classCallCheck2(this, BlockEmbed2);
14836 return _possibleConstructorReturn2(this, (BlockEmbed2.__proto__ || Object.getPrototypeOf(BlockEmbed2)).apply(this, arguments));
14837 }
14838 _createClass2(BlockEmbed2, [{
14839 key: "attach",
14840 value: function attach() {
14841 _get(BlockEmbed2.prototype.__proto__ || Object.getPrototypeOf(BlockEmbed2.prototype), "attach", this).call(this);
14842 this.attributes = new _parchment2.default.Attributor.Store(this.domNode);
14843 }
14844 }, {
14845 key: "delta",
14846 value: function delta() {
14847 return new _quillDelta2.default().insert(this.value(), (0, _extend2.default)(this.formats(), this.attributes.values()));
14848 }
14849 }, {
14850 key: "format",
14851 value: function format(name, value) {
14852 var attribute = _parchment2.default.query(name, _parchment2.default.Scope.BLOCK_ATTRIBUTE);
14853 if (attribute != null) {
14854 this.attributes.attribute(attribute, value);
14855 }
14856 }
14857 }, {
14858 key: "formatAt",
14859 value: function formatAt(index, length, name, value) {
14860 this.format(name, value);
14861 }
14862 }, {
14863 key: "insertAt",
14864 value: function insertAt(index, value, def) {
14865 if (typeof value === "string" && value.endsWith("\n")) {
14866 var block = _parchment2.default.create(Block.blotName);
14867 this.parent.insertBefore(block, index === 0 ? this : this.next);
14868 block.insertAt(0, value.slice(0, -1));
14869 } else {
14870 _get(BlockEmbed2.prototype.__proto__ || Object.getPrototypeOf(BlockEmbed2.prototype), "insertAt", this).call(this, index, value, def);
14871 }
14872 }
14873 }]);
14874 return BlockEmbed2;
14875 }(_parchment2.default.Embed);
14876 BlockEmbed.scope = _parchment2.default.Scope.BLOCK_BLOT;
14877 var Block = function(_Parchment$Block) {
14878 _inherits2(Block2, _Parchment$Block);
14879 function Block2(domNode) {
14880 _classCallCheck2(this, Block2);
14881 var _this2 = _possibleConstructorReturn2(this, (Block2.__proto__ || Object.getPrototypeOf(Block2)).call(this, domNode));
14882 _this2.cache = {};
14883 return _this2;
14884 }
14885 _createClass2(Block2, [{
14886 key: "delta",
14887 value: function delta() {
14888 if (this.cache.delta == null) {
14889 this.cache.delta = this.descendants(_parchment2.default.Leaf).reduce(function(delta2, leaf) {
14890 if (leaf.length() === 0) {
14891 return delta2;
14892 } else {
14893 return delta2.insert(leaf.value(), bubbleFormats(leaf));
14894 }
14895 }, new _quillDelta2.default()).insert("\n", bubbleFormats(this));
14896 }
14897 return this.cache.delta;
14898 }
14899 }, {
14900 key: "deleteAt",
14901 value: function deleteAt(index, length) {
14902 _get(Block2.prototype.__proto__ || Object.getPrototypeOf(Block2.prototype), "deleteAt", this).call(this, index, length);
14903 this.cache = {};
14904 }
14905 }, {
14906 key: "formatAt",
14907 value: function formatAt(index, length, name, value) {
14908 if (length <= 0) return;
14909 if (_parchment2.default.query(name, _parchment2.default.Scope.BLOCK)) {
14910 if (index + length === this.length()) {
14911 this.format(name, value);
14912 }
14913 } else {
14914 _get(Block2.prototype.__proto__ || Object.getPrototypeOf(Block2.prototype), "formatAt", this).call(this, index, Math.min(length, this.length() - index - 1), name, value);
14915 }
14916 this.cache = {};
14917 }
14918 }, {
14919 key: "insertAt",
14920 value: function insertAt(index, value, def) {
14921 if (def != null) return _get(Block2.prototype.__proto__ || Object.getPrototypeOf(Block2.prototype), "insertAt", this).call(this, index, value, def);
14922 if (value.length === 0) return;
14923 var lines = value.split("\n");
14924 var text = lines.shift();
14925 if (text.length > 0) {
14926 if (index < this.length() - 1 || this.children.tail == null) {
14927 _get(Block2.prototype.__proto__ || Object.getPrototypeOf(Block2.prototype), "insertAt", this).call(this, Math.min(index, this.length() - 1), text);
14928 } else {
14929 this.children.tail.insertAt(this.children.tail.length(), text);
14930 }
14931 this.cache = {};
14932 }
14933 var block = this;
14934 lines.reduce(function(index2, line) {
14935 block = block.split(index2, true);
14936 block.insertAt(0, line);
14937 return line.length;
14938 }, index + text.length);
14939 }
14940 }, {
14941 key: "insertBefore",
14942 value: function insertBefore(blot, ref) {
14943 var head = this.children.head;
14944 _get(Block2.prototype.__proto__ || Object.getPrototypeOf(Block2.prototype), "insertBefore", this).call(this, blot, ref);
14945 if (head instanceof _break2.default) {
14946 head.remove();
14947 }
14948 this.cache = {};
14949 }
14950 }, {
14951 key: "length",
14952 value: function length() {
14953 if (this.cache.length == null) {
14954 this.cache.length = _get(Block2.prototype.__proto__ || Object.getPrototypeOf(Block2.prototype), "length", this).call(this) + NEWLINE_LENGTH;
14955 }
14956 return this.cache.length;
14957 }
14958 }, {
14959 key: "moveChildren",
14960 value: function moveChildren(target, ref) {
14961 _get(Block2.prototype.__proto__ || Object.getPrototypeOf(Block2.prototype), "moveChildren", this).call(this, target, ref);
14962 this.cache = {};
14963 }
14964 }, {
14965 key: "optimize",
14966 value: function optimize(context) {
14967 _get(Block2.prototype.__proto__ || Object.getPrototypeOf(Block2.prototype), "optimize", this).call(this, context);
14968 this.cache = {};
14969 }
14970 }, {
14971 key: "path",
14972 value: function path(index) {
14973 return _get(Block2.prototype.__proto__ || Object.getPrototypeOf(Block2.prototype), "path", this).call(this, index, true);
14974 }
14975 }, {
14976 key: "removeChild",
14977 value: function removeChild(child) {
14978 _get(Block2.prototype.__proto__ || Object.getPrototypeOf(Block2.prototype), "removeChild", this).call(this, child);
14979 this.cache = {};
14980 }
14981 }, {
14982 key: "split",
14983 value: function split(index) {
14984 var force = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
14985 if (force && (index === 0 || index >= this.length() - NEWLINE_LENGTH)) {
14986 var clone = this.clone();
14987 if (index === 0) {
14988 this.parent.insertBefore(clone, this);
14989 return this;
14990 } else {
14991 this.parent.insertBefore(clone, this.next);
14992 return clone;
14993 }
14994 } else {
14995 var next = _get(Block2.prototype.__proto__ || Object.getPrototypeOf(Block2.prototype), "split", this).call(this, index, force);
14996 this.cache = {};
14997 return next;
14998 }
14999 }
15000 }]);
15001 return Block2;
15002 }(_parchment2.default.Block);
15003 Block.blotName = "block";
15004 Block.tagName = "P";
15005 Block.defaultChild = "break";
15006 Block.allowedChildren = [_inline2.default, _parchment2.default.Embed, _text2.default];
15007 function bubbleFormats(blot) {
15008 var formats = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
15009 if (blot == null) return formats;
15010 if (typeof blot.formats === "function") {
15011 formats = (0, _extend2.default)(formats, blot.formats());
15012 }
15013 if (blot.parent == null || blot.parent.blotName == "scroll" || blot.parent.statics.scope !== blot.statics.scope) {
15014 return formats;
15015 }
15016 return bubbleFormats(blot.parent, formats);
15017 }
15018 exports$12.bubbleFormats = bubbleFormats;
15019 exports$12.BlockEmbed = BlockEmbed;
15020 exports$12.default = Block;
15021 },
15022 /* 5 */
15023 /***/
15024 function(module2, exports$12, __webpack_require__) {
15025 Object.defineProperty(exports$12, "__esModule", {
15026 value: true
15027 });
15028 exports$12.default = exports$12.overload = exports$12.expandConfig = void 0;
15029 var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
15030 return typeof obj;
15031 } : function(obj) {
15032 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
15033 };
15034 var _slicedToArray2 = /* @__PURE__ */ function() {
15035 function sliceIterator(arr, i) {
15036 var _arr = [];
15037 var _n = true;
15038 var _d2 = false;
15039 var _e2 = void 0;
15040 try {
15041 for (var _i2 = arr[Symbol.iterator](), _s; !(_n = (_s = _i2.next()).done); _n = true) {
15042 _arr.push(_s.value);
15043 if (i && _arr.length === i) break;
15044 }
15045 } catch (err) {
15046 _d2 = true;
15047 _e2 = err;
15048 } finally {
15049 try {
15050 if (!_n && _i2["return"]) _i2["return"]();
15051 } finally {
15052 if (_d2) throw _e2;
15053 }
15054 }
15055 return _arr;
15056 }
15057 return function(arr, i) {
15058 if (Array.isArray(arr)) {
15059 return arr;
15060 } else if (Symbol.iterator in Object(arr)) {
15061 return sliceIterator(arr, i);
15062 } else {
15063 throw new TypeError("Invalid attempt to destructure non-iterable instance");
15064 }
15065 };
15066 }();
15067 var _createClass2 = /* @__PURE__ */ function() {
15068 function defineProperties(target, props) {
15069 for (var i = 0; i < props.length; i++) {
15070 var descriptor = props[i];
15071 descriptor.enumerable = descriptor.enumerable || false;
15072 descriptor.configurable = true;
15073 if ("value" in descriptor) descriptor.writable = true;
15074 Object.defineProperty(target, descriptor.key, descriptor);
15075 }
15076 }
15077 return function(Constructor, protoProps, staticProps) {
15078 if (protoProps) defineProperties(Constructor.prototype, protoProps);
15079 if (staticProps) defineProperties(Constructor, staticProps);
15080 return Constructor;
15081 };
15082 }();
15083 __webpack_require__(50);
15084 var _quillDelta = __webpack_require__(2);
15085 var _quillDelta2 = _interopRequireDefault(_quillDelta);
15086 var _editor = __webpack_require__(14);
15087 var _editor2 = _interopRequireDefault(_editor);
15088 var _emitter3 = __webpack_require__(8);
15089 var _emitter4 = _interopRequireDefault(_emitter3);
15090 var _module = __webpack_require__(9);
15091 var _module2 = _interopRequireDefault(_module);
15092 var _parchment = __webpack_require__(0);
15093 var _parchment2 = _interopRequireDefault(_parchment);
15094 var _selection = __webpack_require__(15);
15095 var _selection2 = _interopRequireDefault(_selection);
15096 var _extend = __webpack_require__(3);
15097 var _extend2 = _interopRequireDefault(_extend);
15098 var _logger = __webpack_require__(10);
15099 var _logger2 = _interopRequireDefault(_logger);
15100 var _theme = __webpack_require__(34);
15101 var _theme2 = _interopRequireDefault(_theme);
15102 function _interopRequireDefault(obj) {
15103 return obj && obj.__esModule ? obj : { default: obj };
15104 }
15105 function _defineProperty2(obj, key, value) {
15106 if (key in obj) {
15107 Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
15108 } else {
15109 obj[key] = value;
15110 }
15111 return obj;
15112 }
15113 function _classCallCheck2(instance, Constructor) {
15114 if (!(instance instanceof Constructor)) {
15115 throw new TypeError("Cannot call a class as a function");
15116 }
15117 }
15118 var debug = (0, _logger2.default)("quill");
15119 var Quill = function() {
15120 _createClass2(Quill2, null, [{
15121 key: "debug",
15122 value: function debug2(limit) {
15123 if (limit === true) {
15124 limit = "log";
15125 }
15126 _logger2.default.level(limit);
15127 }
15128 }, {
15129 key: "find",
15130 value: function find(node) {
15131 return node.__quill || _parchment2.default.find(node);
15132 }
15133 }, {
15134 key: "import",
15135 value: function _import(name) {
15136 if (this.imports[name] == null) {
15137 debug.error("Cannot import " + name + ". Are you sure it was registered?");
15138 }
15139 return this.imports[name];
15140 }
15141 }, {
15142 key: "register",
15143 value: function register(path, target) {
15144 var _this = this;
15145 var overwrite = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
15146 if (typeof path !== "string") {
15147 var name = path.attrName || path.blotName;
15148 if (typeof name === "string") {
15149 this.register("formats/" + name, path, target);
15150 } else {
15151 Object.keys(path).forEach(function(key) {
15152 _this.register(key, path[key], target);
15153 });
15154 }
15155 } else {
15156 if (this.imports[path] != null && !overwrite) {
15157 debug.warn("Overwriting " + path + " with", target);
15158 }
15159 this.imports[path] = target;
15160 if ((path.startsWith("blots/") || path.startsWith("formats/")) && target.blotName !== "abstract") {
15161 _parchment2.default.register(target);
15162 } else if (path.startsWith("modules") && typeof target.register === "function") {
15163 target.register();
15164 }
15165 }
15166 }
15167 }]);
15168 function Quill2(container) {
15169 var _this2 = this;
15170 var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
15171 _classCallCheck2(this, Quill2);
15172 this.options = expandConfig(container, options);
15173 this.container = this.options.container;
15174 if (this.container == null) {
15175 return debug.error("Invalid Quill container", container);
15176 }
15177 if (this.options.debug) {
15178 Quill2.debug(this.options.debug);
15179 }
15180 var html = this.container.innerHTML.trim();
15181 this.container.classList.add("ql-container");
15182 this.container.innerHTML = "";
15183 this.container.__quill = this;
15184 this.root = this.addContainer("ql-editor");
15185 this.root.classList.add("ql-blank");
15186 this.root.setAttribute("data-gramm", false);
15187 this.scrollingContainer = this.options.scrollingContainer || this.root;
15188 this.emitter = new _emitter4.default();
15189 this.scroll = _parchment2.default.create(this.root, {
15190 emitter: this.emitter,
15191 whitelist: this.options.formats
15192 });
15193 this.editor = new _editor2.default(this.scroll);
15194 this.selection = new _selection2.default(this.scroll, this.emitter);
15195 this.theme = new this.options.theme(this, this.options);
15196 this.keyboard = this.theme.addModule("keyboard");
15197 this.clipboard = this.theme.addModule("clipboard");
15198 this.history = this.theme.addModule("history");
15199 this.theme.init();
15200 this.emitter.on(_emitter4.default.events.EDITOR_CHANGE, function(type) {
15201 if (type === _emitter4.default.events.TEXT_CHANGE) {
15202 _this2.root.classList.toggle("ql-blank", _this2.editor.isBlank());
15203 }
15204 });
15205 this.emitter.on(_emitter4.default.events.SCROLL_UPDATE, function(source, mutations) {
15206 var range = _this2.selection.lastRange;
15207 var index = range && range.length === 0 ? range.index : void 0;
15208 modify.call(_this2, function() {
15209 return _this2.editor.update(null, mutations, index);
15210 }, source);
15211 });
15212 var contents = this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">` + html + "<p><br></p></div>");
15213 this.setContents(contents);
15214 this.history.clear();
15215 if (this.options.placeholder) {
15216 this.root.setAttribute("data-placeholder", this.options.placeholder);
15217 }
15218 if (this.options.readOnly) {
15219 this.disable();
15220 }
15221 }
15222 _createClass2(Quill2, [{
15223 key: "addContainer",
15224 value: function addContainer(container) {
15225 var refNode = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
15226 if (typeof container === "string") {
15227 var className = container;
15228 container = document.createElement("div");
15229 container.classList.add(className);
15230 }
15231 this.container.insertBefore(container, refNode);
15232 return container;
15233 }
15234 }, {
15235 key: "blur",
15236 value: function blur() {
15237 this.selection.setRange(null);
15238 }
15239 }, {
15240 key: "deleteText",
15241 value: function deleteText(index, length, source) {
15242 var _this3 = this;
15243 var _overload = overload(index, length, source);
15244 var _overload2 = _slicedToArray2(_overload, 4);
15245 index = _overload2[0];
15246 length = _overload2[1];
15247 source = _overload2[3];
15248 return modify.call(this, function() {
15249 return _this3.editor.deleteText(index, length);
15250 }, source, index, -1 * length);
15251 }
15252 }, {
15253 key: "disable",
15254 value: function disable() {
15255 this.enable(false);
15256 }
15257 }, {
15258 key: "enable",
15259 value: function enable() {
15260 var enabled = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : true;
15261 this.scroll.enable(enabled);
15262 this.container.classList.toggle("ql-disabled", !enabled);
15263 }
15264 }, {
15265 key: "focus",
15266 value: function focus() {
15267 var scrollTop = this.scrollingContainer.scrollTop;
15268 this.selection.focus();
15269 this.scrollingContainer.scrollTop = scrollTop;
15270 this.scrollIntoView();
15271 }
15272 }, {
15273 key: "format",
15274 value: function format(name, value) {
15275 var _this4 = this;
15276 var source = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : _emitter4.default.sources.API;
15277 return modify.call(this, function() {
15278 var range = _this4.getSelection(true);
15279 var change = new _quillDelta2.default();
15280 if (range == null) {
15281 return change;
15282 } else if (_parchment2.default.query(name, _parchment2.default.Scope.BLOCK)) {
15283 change = _this4.editor.formatLine(range.index, range.length, _defineProperty2({}, name, value));
15284 } else if (range.length === 0) {
15285 _this4.selection.format(name, value);
15286 return change;
15287 } else {
15288 change = _this4.editor.formatText(range.index, range.length, _defineProperty2({}, name, value));
15289 }
15290 _this4.setSelection(range, _emitter4.default.sources.SILENT);
15291 return change;
15292 }, source);
15293 }
15294 }, {
15295 key: "formatLine",
15296 value: function formatLine(index, length, name, value, source) {
15297 var _this5 = this;
15298 var formats = void 0;
15299 var _overload3 = overload(index, length, name, value, source);
15300 var _overload4 = _slicedToArray2(_overload3, 4);
15301 index = _overload4[0];
15302 length = _overload4[1];
15303 formats = _overload4[2];
15304 source = _overload4[3];
15305 return modify.call(this, function() {
15306 return _this5.editor.formatLine(index, length, formats);
15307 }, source, index, 0);
15308 }
15309 }, {
15310 key: "formatText",
15311 value: function formatText(index, length, name, value, source) {
15312 var _this6 = this;
15313 var formats = void 0;
15314 var _overload5 = overload(index, length, name, value, source);
15315 var _overload6 = _slicedToArray2(_overload5, 4);
15316 index = _overload6[0];
15317 length = _overload6[1];
15318 formats = _overload6[2];
15319 source = _overload6[3];
15320 return modify.call(this, function() {
15321 return _this6.editor.formatText(index, length, formats);
15322 }, source, index, 0);
15323 }
15324 }, {
15325 key: "getBounds",
15326 value: function getBounds(index) {
15327 var length = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
15328 var bounds = void 0;
15329 if (typeof index === "number") {
15330 bounds = this.selection.getBounds(index, length);
15331 } else {
15332 bounds = this.selection.getBounds(index.index, index.length);
15333 }
15334 var containerBounds = this.container.getBoundingClientRect();
15335 return {
15336 bottom: bounds.bottom - containerBounds.top,
15337 height: bounds.height,
15338 left: bounds.left - containerBounds.left,
15339 right: bounds.right - containerBounds.left,
15340 top: bounds.top - containerBounds.top,
15341 width: bounds.width
15342 };
15343 }
15344 }, {
15345 key: "getContents",
15346 value: function getContents() {
15347 var index = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
15348 var length = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - index;
15349 var _overload7 = overload(index, length);
15350 var _overload8 = _slicedToArray2(_overload7, 2);
15351 index = _overload8[0];
15352 length = _overload8[1];
15353 return this.editor.getContents(index, length);
15354 }
15355 }, {
15356 key: "getFormat",
15357 value: function getFormat() {
15358 var index = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.getSelection(true);
15359 var length = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
15360 if (typeof index === "number") {
15361 return this.editor.getFormat(index, length);
15362 } else {
15363 return this.editor.getFormat(index.index, index.length);
15364 }
15365 }
15366 }, {
15367 key: "getIndex",
15368 value: function getIndex(blot) {
15369 return blot.offset(this.scroll);
15370 }
15371 }, {
15372 key: "getLength",
15373 value: function getLength() {
15374 return this.scroll.length();
15375 }
15376 }, {
15377 key: "getLeaf",
15378 value: function getLeaf(index) {
15379 return this.scroll.leaf(index);
15380 }
15381 }, {
15382 key: "getLine",
15383 value: function getLine(index) {
15384 return this.scroll.line(index);
15385 }
15386 }, {
15387 key: "getLines",
15388 value: function getLines() {
15389 var index = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
15390 var length = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE;
15391 if (typeof index !== "number") {
15392 return this.scroll.lines(index.index, index.length);
15393 } else {
15394 return this.scroll.lines(index, length);
15395 }
15396 }
15397 }, {
15398 key: "getModule",
15399 value: function getModule(name) {
15400 return this.theme.modules[name];
15401 }
15402 }, {
15403 key: "getSelection",
15404 value: function getSelection() {
15405 var focus = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false;
15406 if (focus) this.focus();
15407 this.update();
15408 return this.selection.getRange()[0];
15409 }
15410 }, {
15411 key: "getText",
15412 value: function getText() {
15413 var index = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
15414 var length = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - index;
15415 var _overload9 = overload(index, length);
15416 var _overload10 = _slicedToArray2(_overload9, 2);
15417 index = _overload10[0];
15418 length = _overload10[1];
15419 return this.editor.getText(index, length);
15420 }
15421 }, {
15422 key: "hasFocus",
15423 value: function hasFocus() {
15424 return this.selection.hasFocus();
15425 }
15426 }, {
15427 key: "insertEmbed",
15428 value: function insertEmbed(index, embed, value) {
15429 var _this7 = this;
15430 var source = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : Quill2.sources.API;
15431 return modify.call(this, function() {
15432 return _this7.editor.insertEmbed(index, embed, value);
15433 }, source, index);
15434 }
15435 }, {
15436 key: "insertText",
15437 value: function insertText(index, text, name, value, source) {
15438 var _this8 = this;
15439 var formats = void 0;
15440 var _overload11 = overload(index, 0, name, value, source);
15441 var _overload12 = _slicedToArray2(_overload11, 4);
15442 index = _overload12[0];
15443 formats = _overload12[2];
15444 source = _overload12[3];
15445 return modify.call(this, function() {
15446 return _this8.editor.insertText(index, text, formats);
15447 }, source, index, text.length);
15448 }
15449 }, {
15450 key: "isEnabled",
15451 value: function isEnabled() {
15452 return !this.container.classList.contains("ql-disabled");
15453 }
15454 }, {
15455 key: "off",
15456 value: function off() {
15457 return this.emitter.off.apply(this.emitter, arguments);
15458 }
15459 }, {
15460 key: "on",
15461 value: function on() {
15462 return this.emitter.on.apply(this.emitter, arguments);
15463 }
15464 }, {
15465 key: "once",
15466 value: function once() {
15467 return this.emitter.once.apply(this.emitter, arguments);
15468 }
15469 }, {
15470 key: "pasteHTML",
15471 value: function pasteHTML(index, html, source) {
15472 this.clipboard.dangerouslyPasteHTML(index, html, source);
15473 }
15474 }, {
15475 key: "removeFormat",
15476 value: function removeFormat(index, length, source) {
15477 var _this9 = this;
15478 var _overload13 = overload(index, length, source);
15479 var _overload14 = _slicedToArray2(_overload13, 4);
15480 index = _overload14[0];
15481 length = _overload14[1];
15482 source = _overload14[3];
15483 return modify.call(this, function() {
15484 return _this9.editor.removeFormat(index, length);
15485 }, source, index);
15486 }
15487 }, {
15488 key: "scrollIntoView",
15489 value: function scrollIntoView() {
15490 this.selection.scrollIntoView(this.scrollingContainer);
15491 }
15492 }, {
15493 key: "setContents",
15494 value: function setContents(delta) {
15495 var _this10 = this;
15496 var source = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : _emitter4.default.sources.API;
15497 return modify.call(this, function() {
15498 delta = new _quillDelta2.default(delta);
15499 var length = _this10.getLength();
15500 var deleted = _this10.editor.deleteText(0, length);
15501 var applied = _this10.editor.applyDelta(delta);
15502 var lastOp = applied.ops[applied.ops.length - 1];
15503 if (lastOp != null && typeof lastOp.insert === "string" && lastOp.insert[lastOp.insert.length - 1] === "\n") {
15504 _this10.editor.deleteText(_this10.getLength() - 1, 1);
15505 applied.delete(1);
15506 }
15507 var ret = deleted.compose(applied);
15508 return ret;
15509 }, source);
15510 }
15511 }, {
15512 key: "setSelection",
15513 value: function setSelection(index, length, source) {
15514 if (index == null) {
15515 this.selection.setRange(null, length || Quill2.sources.API);
15516 } else {
15517 var _overload15 = overload(index, length, source);
15518 var _overload16 = _slicedToArray2(_overload15, 4);
15519 index = _overload16[0];
15520 length = _overload16[1];
15521 source = _overload16[3];
15522 this.selection.setRange(new _selection.Range(index, length), source);
15523 if (source !== _emitter4.default.sources.SILENT) {
15524 this.selection.scrollIntoView(this.scrollingContainer);
15525 }
15526 }
15527 }
15528 }, {
15529 key: "setText",
15530 value: function setText(text) {
15531 var source = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : _emitter4.default.sources.API;
15532 var delta = new _quillDelta2.default().insert(text);
15533 return this.setContents(delta, source);
15534 }
15535 }, {
15536 key: "update",
15537 value: function update() {
15538 var source = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : _emitter4.default.sources.USER;
15539 var change = this.scroll.update(source);
15540 this.selection.update(source);
15541 return change;
15542 }
15543 }, {
15544 key: "updateContents",
15545 value: function updateContents(delta) {
15546 var _this11 = this;
15547 var source = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : _emitter4.default.sources.API;
15548 return modify.call(this, function() {
15549 delta = new _quillDelta2.default(delta);
15550 return _this11.editor.applyDelta(delta, source);
15551 }, source, true);
15552 }
15553 }]);
15554 return Quill2;
15555 }();
15556 Quill.DEFAULTS = {
15557 bounds: null,
15558 formats: null,
15559 modules: {},
15560 placeholder: "",
15561 readOnly: false,
15562 scrollingContainer: null,
15563 strict: true,
15564 theme: "default"
15565 };
15566 Quill.events = _emitter4.default.events;
15567 Quill.sources = _emitter4.default.sources;
15568 Quill.version = "1.3.7";
15569 Quill.imports = {
15570 "delta": _quillDelta2.default,
15571 "parchment": _parchment2.default,
15572 "core/module": _module2.default,
15573 "core/theme": _theme2.default
15574 };
15575 function expandConfig(container, userConfig) {
15576 userConfig = (0, _extend2.default)(true, {
15577 container,
15578 modules: {
15579 clipboard: true,
15580 keyboard: true,
15581 history: true
15582 }
15583 }, userConfig);
15584 if (!userConfig.theme || userConfig.theme === Quill.DEFAULTS.theme) {
15585 userConfig.theme = _theme2.default;
15586 } else {
15587 userConfig.theme = Quill.import("themes/" + userConfig.theme);
15588 if (userConfig.theme == null) {
15589 throw new Error("Invalid theme " + userConfig.theme + ". Did you register it?");
15590 }
15591 }
15592 var themeConfig = (0, _extend2.default)(true, {}, userConfig.theme.DEFAULTS);
15593 [themeConfig, userConfig].forEach(function(config) {
15594 config.modules = config.modules || {};
15595 Object.keys(config.modules).forEach(function(module3) {
15596 if (config.modules[module3] === true) {
15597 config.modules[module3] = {};
15598 }
15599 });
15600 });
15601 var moduleNames = Object.keys(themeConfig.modules).concat(Object.keys(userConfig.modules));
15602 var moduleConfig = moduleNames.reduce(function(config, name) {
15603 var moduleClass = Quill.import("modules/" + name);
15604 if (moduleClass == null) {
15605 debug.error("Cannot load " + name + " module. Are you sure you registered it?");
15606 } else {
15607 config[name] = moduleClass.DEFAULTS || {};
15608 }
15609 return config;
15610 }, {});
15611 if (userConfig.modules != null && userConfig.modules.toolbar && userConfig.modules.toolbar.constructor !== Object) {
15612 userConfig.modules.toolbar = {
15613 container: userConfig.modules.toolbar
15614 };
15615 }
15616 userConfig = (0, _extend2.default)(true, {}, Quill.DEFAULTS, { modules: moduleConfig }, themeConfig, userConfig);
15617 ["bounds", "container", "scrollingContainer"].forEach(function(key) {
15618 if (typeof userConfig[key] === "string") {
15619 userConfig[key] = document.querySelector(userConfig[key]);
15620 }
15621 });
15622 userConfig.modules = Object.keys(userConfig.modules).reduce(function(config, name) {
15623 if (userConfig.modules[name]) {
15624 config[name] = userConfig.modules[name];
15625 }
15626 return config;
15627 }, {});
15628 return userConfig;
15629 }
15630 function modify(modifier, source, index, shift) {
15631 if (this.options.strict && !this.isEnabled() && source === _emitter4.default.sources.USER) {
15632 return new _quillDelta2.default();
15633 }
15634 var range = index == null ? null : this.getSelection();
15635 var oldDelta = this.editor.delta;
15636 var change = modifier();
15637 if (range != null) {
15638 if (index === true) index = range.index;
15639 if (shift == null) {
15640 range = shiftRange(range, change, source);
15641 } else if (shift !== 0) {
15642 range = shiftRange(range, index, shift, source);
15643 }
15644 this.setSelection(range, _emitter4.default.sources.SILENT);
15645 }
15646 if (change.length() > 0) {
15647 var _emitter;
15648 var args = [_emitter4.default.events.TEXT_CHANGE, change, oldDelta, source];
15649 (_emitter = this.emitter).emit.apply(_emitter, [_emitter4.default.events.EDITOR_CHANGE].concat(args));
15650 if (source !== _emitter4.default.sources.SILENT) {
15651 var _emitter2;
15652 (_emitter2 = this.emitter).emit.apply(_emitter2, args);
15653 }
15654 }
15655 return change;
15656 }
15657 function overload(index, length, name, value, source) {
15658 var formats = {};
15659 if (typeof index.index === "number" && typeof index.length === "number") {
15660 if (typeof length !== "number") {
15661 source = value, value = name, name = length, length = index.length, index = index.index;
15662 } else {
15663 length = index.length, index = index.index;
15664 }
15665 } else if (typeof length !== "number") {
15666 source = value, value = name, name = length, length = 0;
15667 }
15668 if ((typeof name === "undefined" ? "undefined" : _typeof2(name)) === "object") {
15669 formats = name;
15670 source = value;
15671 } else if (typeof name === "string") {
15672 if (value != null) {
15673 formats[name] = value;
15674 } else {
15675 source = name;
15676 }
15677 }
15678 source = source || _emitter4.default.sources.API;
15679 return [index, length, formats, source];
15680 }
15681 function shiftRange(range, index, length, source) {
15682 if (range == null) return null;
15683 var start = void 0, end = void 0;
15684 if (index instanceof _quillDelta2.default) {
15685 var _map = [range.index, range.index + range.length].map(function(pos) {
15686 return index.transformPosition(pos, source !== _emitter4.default.sources.USER);
15687 });
15688 var _map2 = _slicedToArray2(_map, 2);
15689 start = _map2[0];
15690 end = _map2[1];
15691 } else {
15692 var _map3 = [range.index, range.index + range.length].map(function(pos) {
15693 if (pos < index || pos === index && source === _emitter4.default.sources.USER) return pos;
15694 if (length >= 0) {
15695 return pos + length;
15696 } else {
15697 return Math.max(index, pos + length);
15698 }
15699 });
15700 var _map4 = _slicedToArray2(_map3, 2);
15701 start = _map4[0];
15702 end = _map4[1];
15703 }
15704 return new _selection.Range(start, end - start);
15705 }
15706 exports$12.expandConfig = expandConfig;
15707 exports$12.overload = overload;
15708 exports$12.default = Quill;
15709 },
15710 /* 6 */
15711 /***/
15712 function(module2, exports$12, __webpack_require__) {
15713 Object.defineProperty(exports$12, "__esModule", {
15714 value: true
15715 });
15716 var _createClass2 = /* @__PURE__ */ function() {
15717 function defineProperties(target, props) {
15718 for (var i = 0; i < props.length; i++) {
15719 var descriptor = props[i];
15720 descriptor.enumerable = descriptor.enumerable || false;
15721 descriptor.configurable = true;
15722 if ("value" in descriptor) descriptor.writable = true;
15723 Object.defineProperty(target, descriptor.key, descriptor);
15724 }
15725 }
15726 return function(Constructor, protoProps, staticProps) {
15727 if (protoProps) defineProperties(Constructor.prototype, protoProps);
15728 if (staticProps) defineProperties(Constructor, staticProps);
15729 return Constructor;
15730 };
15731 }();
15732 var _get = function get(object, property, receiver) {
15733 if (object === null) object = Function.prototype;
15734 var desc = Object.getOwnPropertyDescriptor(object, property);
15735 if (desc === void 0) {
15736 var parent = Object.getPrototypeOf(object);
15737 if (parent === null) {
15738 return void 0;
15739 } else {
15740 return get(parent, property, receiver);
15741 }
15742 } else if ("value" in desc) {
15743 return desc.value;
15744 } else {
15745 var getter = desc.get;
15746 if (getter === void 0) {
15747 return void 0;
15748 }
15749 return getter.call(receiver);
15750 }
15751 };
15752 var _text = __webpack_require__(7);
15753 var _text2 = _interopRequireDefault(_text);
15754 var _parchment = __webpack_require__(0);
15755 var _parchment2 = _interopRequireDefault(_parchment);
15756 function _interopRequireDefault(obj) {
15757 return obj && obj.__esModule ? obj : { default: obj };
15758 }
15759 function _classCallCheck2(instance, Constructor) {
15760 if (!(instance instanceof Constructor)) {
15761 throw new TypeError("Cannot call a class as a function");
15762 }
15763 }
15764 function _possibleConstructorReturn2(self2, call) {
15765 if (!self2) {
15766 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
15767 }
15768 return call && (typeof call === "object" || typeof call === "function") ? call : self2;
15769 }
15770 function _inherits2(subClass, superClass) {
15771 if (typeof superClass !== "function" && superClass !== null) {
15772 throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
15773 }
15774 subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
15775 if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
15776 }
15777 var Inline = function(_Parchment$Inline) {
15778 _inherits2(Inline2, _Parchment$Inline);
15779 function Inline2() {
15780 _classCallCheck2(this, Inline2);
15781 return _possibleConstructorReturn2(this, (Inline2.__proto__ || Object.getPrototypeOf(Inline2)).apply(this, arguments));
15782 }
15783 _createClass2(Inline2, [{
15784 key: "formatAt",
15785 value: function formatAt(index, length, name, value) {
15786 if (Inline2.compare(this.statics.blotName, name) < 0 && _parchment2.default.query(name, _parchment2.default.Scope.BLOT)) {
15787 var blot = this.isolate(index, length);
15788 if (value) {
15789 blot.wrap(name, value);
15790 }
15791 } else {
15792 _get(Inline2.prototype.__proto__ || Object.getPrototypeOf(Inline2.prototype), "formatAt", this).call(this, index, length, name, value);
15793 }
15794 }
15795 }, {
15796 key: "optimize",
15797 value: function optimize(context) {
15798 _get(Inline2.prototype.__proto__ || Object.getPrototypeOf(Inline2.prototype), "optimize", this).call(this, context);
15799 if (this.parent instanceof Inline2 && Inline2.compare(this.statics.blotName, this.parent.statics.blotName) > 0) {
15800 var parent = this.parent.isolate(this.offset(), this.length());
15801 this.moveChildren(parent);
15802 parent.wrap(this);
15803 }
15804 }
15805 }], [{
15806 key: "compare",
15807 value: function compare(self2, other) {
15808 var selfIndex = Inline2.order.indexOf(self2);
15809 var otherIndex = Inline2.order.indexOf(other);
15810 if (selfIndex >= 0 || otherIndex >= 0) {
15811 return selfIndex - otherIndex;
15812 } else if (self2 === other) {
15813 return 0;
15814 } else if (self2 < other) {
15815 return -1;
15816 } else {
15817 return 1;
15818 }
15819 }
15820 }]);
15821 return Inline2;
15822 }(_parchment2.default.Inline);
15823 Inline.allowedChildren = [Inline, _parchment2.default.Embed, _text2.default];
15824 Inline.order = [
15825 "cursor",
15826 "inline",
15827 // Must be lower
15828 "underline",
15829 "strike",
15830 "italic",
15831 "bold",
15832 "script",
15833 "link",
15834 "code"
15835 // Must be higher
15836 ];
15837 exports$12.default = Inline;
15838 },
15839 /* 7 */
15840 /***/
15841 function(module2, exports$12, __webpack_require__) {
15842 Object.defineProperty(exports$12, "__esModule", {
15843 value: true
15844 });
15845 var _parchment = __webpack_require__(0);
15846 var _parchment2 = _interopRequireDefault(_parchment);
15847 function _interopRequireDefault(obj) {
15848 return obj && obj.__esModule ? obj : { default: obj };
15849 }
15850 function _classCallCheck2(instance, Constructor) {
15851 if (!(instance instanceof Constructor)) {
15852 throw new TypeError("Cannot call a class as a function");
15853 }
15854 }
15855 function _possibleConstructorReturn2(self2, call) {
15856 if (!self2) {
15857 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
15858 }
15859 return call && (typeof call === "object" || typeof call === "function") ? call : self2;
15860 }
15861 function _inherits2(subClass, superClass) {
15862 if (typeof superClass !== "function" && superClass !== null) {
15863 throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
15864 }
15865 subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
15866 if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
15867 }
15868 var TextBlot = function(_Parchment$Text) {
15869 _inherits2(TextBlot2, _Parchment$Text);
15870 function TextBlot2() {
15871 _classCallCheck2(this, TextBlot2);
15872 return _possibleConstructorReturn2(this, (TextBlot2.__proto__ || Object.getPrototypeOf(TextBlot2)).apply(this, arguments));
15873 }
15874 return TextBlot2;
15875 }(_parchment2.default.Text);
15876 exports$12.default = TextBlot;
15877 },
15878 /* 8 */
15879 /***/
15880 function(module2, exports$12, __webpack_require__) {
15881 Object.defineProperty(exports$12, "__esModule", {
15882 value: true
15883 });
15884 var _createClass2 = /* @__PURE__ */ function() {
15885 function defineProperties(target, props) {
15886 for (var i = 0; i < props.length; i++) {
15887 var descriptor = props[i];
15888 descriptor.enumerable = descriptor.enumerable || false;
15889 descriptor.configurable = true;
15890 if ("value" in descriptor) descriptor.writable = true;
15891 Object.defineProperty(target, descriptor.key, descriptor);
15892 }
15893 }
15894 return function(Constructor, protoProps, staticProps) {
15895 if (protoProps) defineProperties(Constructor.prototype, protoProps);
15896 if (staticProps) defineProperties(Constructor, staticProps);
15897 return Constructor;
15898 };
15899 }();
15900 var _get = function get(object, property, receiver) {
15901 if (object === null) object = Function.prototype;
15902 var desc = Object.getOwnPropertyDescriptor(object, property);
15903 if (desc === void 0) {
15904 var parent = Object.getPrototypeOf(object);
15905 if (parent === null) {
15906 return void 0;
15907 } else {
15908 return get(parent, property, receiver);
15909 }
15910 } else if ("value" in desc) {
15911 return desc.value;
15912 } else {
15913 var getter = desc.get;
15914 if (getter === void 0) {
15915 return void 0;
15916 }
15917 return getter.call(receiver);
15918 }
15919 };
15920 var _eventemitter = __webpack_require__(54);
15921 var _eventemitter2 = _interopRequireDefault(_eventemitter);
15922 var _logger = __webpack_require__(10);
15923 var _logger2 = _interopRequireDefault(_logger);
15924 function _interopRequireDefault(obj) {
15925 return obj && obj.__esModule ? obj : { default: obj };
15926 }
15927 function _classCallCheck2(instance, Constructor) {
15928 if (!(instance instanceof Constructor)) {
15929 throw new TypeError("Cannot call a class as a function");
15930 }
15931 }
15932 function _possibleConstructorReturn2(self2, call) {
15933 if (!self2) {
15934 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
15935 }
15936 return call && (typeof call === "object" || typeof call === "function") ? call : self2;
15937 }
15938 function _inherits2(subClass, superClass) {
15939 if (typeof superClass !== "function" && superClass !== null) {
15940 throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
15941 }
15942 subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
15943 if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
15944 }
15945 var debug = (0, _logger2.default)("quill:events");
15946 var EVENTS = ["selectionchange", "mousedown", "mouseup", "click"];
15947 EVENTS.forEach(function(eventName) {
15948 document.addEventListener(eventName, function() {
15949 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
15950 args[_key] = arguments[_key];
15951 }
15952 [].slice.call(document.querySelectorAll(".ql-container")).forEach(function(node) {
15953 if (node.__quill && node.__quill.emitter) {
15954 var _node$__quill$emitter;
15955 (_node$__quill$emitter = node.__quill.emitter).handleDOM.apply(_node$__quill$emitter, args);
15956 }
15957 });
15958 });
15959 });
15960 var Emitter = function(_EventEmitter) {
15961 _inherits2(Emitter2, _EventEmitter);
15962 function Emitter2() {
15963 _classCallCheck2(this, Emitter2);
15964 var _this = _possibleConstructorReturn2(this, (Emitter2.__proto__ || Object.getPrototypeOf(Emitter2)).call(this));
15965 _this.listeners = {};
15966 _this.on("error", debug.error);
15967 return _this;
15968 }
15969 _createClass2(Emitter2, [{
15970 key: "emit",
15971 value: function emit() {
15972 debug.log.apply(debug, arguments);
15973 _get(Emitter2.prototype.__proto__ || Object.getPrototypeOf(Emitter2.prototype), "emit", this).apply(this, arguments);
15974 }
15975 }, {
15976 key: "handleDOM",
15977 value: function handleDOM(event) {
15978 for (var _len2 = arguments.length, args = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
15979 args[_key2 - 1] = arguments[_key2];
15980 }
15981 (this.listeners[event.type] || []).forEach(function(_ref) {
15982 var node = _ref.node, handler = _ref.handler;
15983 if (event.target === node || node.contains(event.target)) {
15984 handler.apply(void 0, [event].concat(args));
15985 }
15986 });
15987 }
15988 }, {
15989 key: "listenDOM",
15990 value: function listenDOM(eventName, node, handler) {
15991 if (!this.listeners[eventName]) {
15992 this.listeners[eventName] = [];
15993 }
15994 this.listeners[eventName].push({ node, handler });
15995 }
15996 }]);
15997 return Emitter2;
15998 }(_eventemitter2.default);
15999 Emitter.events = {
16000 EDITOR_CHANGE: "editor-change",
16001 SCROLL_BEFORE_UPDATE: "scroll-before-update",
16002 SCROLL_OPTIMIZE: "scroll-optimize",
16003 SCROLL_UPDATE: "scroll-update",
16004 SELECTION_CHANGE: "selection-change",
16005 TEXT_CHANGE: "text-change"
16006 };
16007 Emitter.sources = {
16008 API: "api",
16009 SILENT: "silent",
16010 USER: "user"
16011 };
16012 exports$12.default = Emitter;
16013 },
16014 /* 9 */
16015 /***/
16016 function(module2, exports$12, __webpack_require__) {
16017 Object.defineProperty(exports$12, "__esModule", {
16018 value: true
16019 });
16020 function _classCallCheck2(instance, Constructor) {
16021 if (!(instance instanceof Constructor)) {
16022 throw new TypeError("Cannot call a class as a function");
16023 }
16024 }
16025 var Module = function Module2(quill2) {
16026 var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
16027 _classCallCheck2(this, Module2);
16028 this.quill = quill2;
16029 this.options = options;
16030 };
16031 Module.DEFAULTS = {};
16032 exports$12.default = Module;
16033 },
16034 /* 10 */
16035 /***/
16036 function(module2, exports$12, __webpack_require__) {
16037 Object.defineProperty(exports$12, "__esModule", {
16038 value: true
16039 });
16040 var levels = ["error", "warn", "log", "info"];
16041 var level = "warn";
16042 function debug(method) {
16043 if (levels.indexOf(method) <= levels.indexOf(level)) {
16044 var _console;
16045 for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
16046 args[_key - 1] = arguments[_key];
16047 }
16048 (_console = console)[method].apply(_console, args);
16049 }
16050 }
16051 function namespace(ns) {
16052 return levels.reduce(function(logger, method) {
16053 logger[method] = debug.bind(console, method, ns);
16054 return logger;
16055 }, {});
16056 }
16057 debug.level = namespace.level = function(newLevel) {
16058 level = newLevel;
16059 };
16060 exports$12.default = namespace;
16061 },
16062 /* 11 */
16063 /***/
16064 function(module2, exports$12, __webpack_require__) {
16065 var pSlice = Array.prototype.slice;
16066 var objectKeys = __webpack_require__(52);
16067 var isArguments2 = __webpack_require__(53);
16068 var deepEqual2 = module2.exports = function(actual, expected, opts) {
16069 if (!opts) opts = {};
16070 if (actual === expected) {
16071 return true;
16072 } else if (actual instanceof Date && expected instanceof Date) {
16073 return actual.getTime() === expected.getTime();
16074 } else if (!actual || !expected || typeof actual != "object" && typeof expected != "object") {
16075 return opts.strict ? actual === expected : actual == expected;
16076 } else {
16077 return objEquiv(actual, expected, opts);
16078 }
16079 };
16080 function isUndefinedOrNull(value) {
16081 return value === null || value === void 0;
16082 }
16083 function isBuffer2(x2) {
16084 if (!x2 || typeof x2 !== "object" || typeof x2.length !== "number") return false;
16085 if (typeof x2.copy !== "function" || typeof x2.slice !== "function") {
16086 return false;
16087 }
16088 if (x2.length > 0 && typeof x2[0] !== "number") return false;
16089 return true;
16090 }
16091 function objEquiv(a, b2, opts) {
16092 var i, key;
16093 if (isUndefinedOrNull(a) || isUndefinedOrNull(b2))
16094 return false;
16095 if (a.prototype !== b2.prototype) return false;
16096 if (isArguments2(a)) {
16097 if (!isArguments2(b2)) {
16098 return false;
16099 }
16100 a = pSlice.call(a);
16101 b2 = pSlice.call(b2);
16102 return deepEqual2(a, b2, opts);
16103 }
16104 if (isBuffer2(a)) {
16105 if (!isBuffer2(b2)) {
16106 return false;
16107 }
16108 if (a.length !== b2.length) return false;
16109 for (i = 0; i < a.length; i++) {
16110 if (a[i] !== b2[i]) return false;
16111 }
16112 return true;
16113 }
16114 try {
16115 var ka2 = objectKeys(a), kb2 = objectKeys(b2);
16116 } catch (e2) {
16117 return false;
16118 }
16119 if (ka2.length != kb2.length)
16120 return false;
16121 ka2.sort();
16122 kb2.sort();
16123 for (i = ka2.length - 1; i >= 0; i--) {
16124 if (ka2[i] != kb2[i])
16125 return false;
16126 }
16127 for (i = ka2.length - 1; i >= 0; i--) {
16128 key = ka2[i];
16129 if (!deepEqual2(a[key], b2[key], opts)) return false;
16130 }
16131 return typeof a === typeof b2;
16132 }
16133 },
16134 /* 12 */
16135 /***/
16136 function(module2, exports$12, __webpack_require__) {
16137 Object.defineProperty(exports$12, "__esModule", { value: true });
16138 var Registry = __webpack_require__(1);
16139 var Attributor = (
16140 /** @class */
16141 function() {
16142 function Attributor2(attrName, keyName, options) {
16143 if (options === void 0) {
16144 options = {};
16145 }
16146 this.attrName = attrName;
16147 this.keyName = keyName;
16148 var attributeBit = Registry.Scope.TYPE & Registry.Scope.ATTRIBUTE;
16149 if (options.scope != null) {
16150 this.scope = options.scope & Registry.Scope.LEVEL | attributeBit;
16151 } else {
16152 this.scope = Registry.Scope.ATTRIBUTE;
16153 }
16154 if (options.whitelist != null)
16155 this.whitelist = options.whitelist;
16156 }
16157 Attributor2.keys = function(node) {
16158 return [].map.call(node.attributes, function(item) {
16159 return item.name;
16160 });
16161 };
16162 Attributor2.prototype.add = function(node, value) {
16163 if (!this.canAdd(node, value))
16164 return false;
16165 node.setAttribute(this.keyName, value);
16166 return true;
16167 };
16168 Attributor2.prototype.canAdd = function(node, value) {
16169 var match = Registry.query(node, Registry.Scope.BLOT & (this.scope | Registry.Scope.TYPE));
16170 if (match == null)
16171 return false;
16172 if (this.whitelist == null)
16173 return true;
16174 if (typeof value === "string") {
16175 return this.whitelist.indexOf(value.replace(/["']/g, "")) > -1;
16176 } else {
16177 return this.whitelist.indexOf(value) > -1;
16178 }
16179 };
16180 Attributor2.prototype.remove = function(node) {
16181 node.removeAttribute(this.keyName);
16182 };
16183 Attributor2.prototype.value = function(node) {
16184 var value = node.getAttribute(this.keyName);
16185 if (this.canAdd(node, value) && value) {
16186 return value;
16187 }
16188 return "";
16189 };
16190 return Attributor2;
16191 }()
16192 );
16193 exports$12.default = Attributor;
16194 },
16195 /* 13 */
16196 /***/
16197 function(module2, exports$12, __webpack_require__) {
16198 Object.defineProperty(exports$12, "__esModule", {
16199 value: true
16200 });
16201 exports$12.default = exports$12.Code = void 0;
16202 var _slicedToArray2 = /* @__PURE__ */ function() {
16203 function sliceIterator(arr, i) {
16204 var _arr = [];
16205 var _n = true;
16206 var _d2 = false;
16207 var _e2 = void 0;
16208 try {
16209 for (var _i2 = arr[Symbol.iterator](), _s; !(_n = (_s = _i2.next()).done); _n = true) {
16210 _arr.push(_s.value);
16211 if (i && _arr.length === i) break;
16212 }
16213 } catch (err) {
16214 _d2 = true;
16215 _e2 = err;
16216 } finally {
16217 try {
16218 if (!_n && _i2["return"]) _i2["return"]();
16219 } finally {
16220 if (_d2) throw _e2;
16221 }
16222 }
16223 return _arr;
16224 }
16225 return function(arr, i) {
16226 if (Array.isArray(arr)) {
16227 return arr;
16228 } else if (Symbol.iterator in Object(arr)) {
16229 return sliceIterator(arr, i);
16230 } else {
16231 throw new TypeError("Invalid attempt to destructure non-iterable instance");
16232 }
16233 };
16234 }();
16235 var _createClass2 = /* @__PURE__ */ function() {
16236 function defineProperties(target, props) {
16237 for (var i = 0; i < props.length; i++) {
16238 var descriptor = props[i];
16239 descriptor.enumerable = descriptor.enumerable || false;
16240 descriptor.configurable = true;
16241 if ("value" in descriptor) descriptor.writable = true;
16242 Object.defineProperty(target, descriptor.key, descriptor);
16243 }
16244 }
16245 return function(Constructor, protoProps, staticProps) {
16246 if (protoProps) defineProperties(Constructor.prototype, protoProps);
16247 if (staticProps) defineProperties(Constructor, staticProps);
16248 return Constructor;
16249 };
16250 }();
16251 var _get = function get(object, property, receiver) {
16252 if (object === null) object = Function.prototype;
16253 var desc = Object.getOwnPropertyDescriptor(object, property);
16254 if (desc === void 0) {
16255 var parent = Object.getPrototypeOf(object);
16256 if (parent === null) {
16257 return void 0;
16258 } else {
16259 return get(parent, property, receiver);
16260 }
16261 } else if ("value" in desc) {
16262 return desc.value;
16263 } else {
16264 var getter = desc.get;
16265 if (getter === void 0) {
16266 return void 0;
16267 }
16268 return getter.call(receiver);
16269 }
16270 };
16271 var _quillDelta = __webpack_require__(2);
16272 var _quillDelta2 = _interopRequireDefault(_quillDelta);
16273 var _parchment = __webpack_require__(0);
16274 var _parchment2 = _interopRequireDefault(_parchment);
16275 var _block = __webpack_require__(4);
16276 var _block2 = _interopRequireDefault(_block);
16277 var _inline = __webpack_require__(6);
16278 var _inline2 = _interopRequireDefault(_inline);
16279 var _text = __webpack_require__(7);
16280 var _text2 = _interopRequireDefault(_text);
16281 function _interopRequireDefault(obj) {
16282 return obj && obj.__esModule ? obj : { default: obj };
16283 }
16284 function _classCallCheck2(instance, Constructor) {
16285 if (!(instance instanceof Constructor)) {
16286 throw new TypeError("Cannot call a class as a function");
16287 }
16288 }
16289 function _possibleConstructorReturn2(self2, call) {
16290 if (!self2) {
16291 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
16292 }
16293 return call && (typeof call === "object" || typeof call === "function") ? call : self2;
16294 }
16295 function _inherits2(subClass, superClass) {
16296 if (typeof superClass !== "function" && superClass !== null) {
16297 throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
16298 }
16299 subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
16300 if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
16301 }
16302 var Code2 = function(_Inline) {
16303 _inherits2(Code3, _Inline);
16304 function Code3() {
16305 _classCallCheck2(this, Code3);
16306 return _possibleConstructorReturn2(this, (Code3.__proto__ || Object.getPrototypeOf(Code3)).apply(this, arguments));
16307 }
16308 return Code3;
16309 }(_inline2.default);
16310 Code2.blotName = "code";
16311 Code2.tagName = "CODE";
16312 var CodeBlock = function(_Block) {
16313 _inherits2(CodeBlock2, _Block);
16314 function CodeBlock2() {
16315 _classCallCheck2(this, CodeBlock2);
16316 return _possibleConstructorReturn2(this, (CodeBlock2.__proto__ || Object.getPrototypeOf(CodeBlock2)).apply(this, arguments));
16317 }
16318 _createClass2(CodeBlock2, [{
16319 key: "delta",
16320 value: function delta() {
16321 var _this3 = this;
16322 var text = this.domNode.textContent;
16323 if (text.endsWith("\n")) {
16324 text = text.slice(0, -1);
16325 }
16326 return text.split("\n").reduce(function(delta2, frag) {
16327 return delta2.insert(frag).insert("\n", _this3.formats());
16328 }, new _quillDelta2.default());
16329 }
16330 }, {
16331 key: "format",
16332 value: function format(name, value) {
16333 if (name === this.statics.blotName && value) return;
16334 var _descendant = this.descendant(_text2.default, this.length() - 1), _descendant2 = _slicedToArray2(_descendant, 1), text = _descendant2[0];
16335 if (text != null) {
16336 text.deleteAt(text.length() - 1, 1);
16337 }
16338 _get(CodeBlock2.prototype.__proto__ || Object.getPrototypeOf(CodeBlock2.prototype), "format", this).call(this, name, value);
16339 }
16340 }, {
16341 key: "formatAt",
16342 value: function formatAt(index, length, name, value) {
16343 if (length === 0) return;
16344 if (_parchment2.default.query(name, _parchment2.default.Scope.BLOCK) == null || name === this.statics.blotName && value === this.statics.formats(this.domNode)) {
16345 return;
16346 }
16347 var nextNewline = this.newlineIndex(index);
16348 if (nextNewline < 0 || nextNewline >= index + length) return;
16349 var prevNewline = this.newlineIndex(index, true) + 1;
16350 var isolateLength = nextNewline - prevNewline + 1;
16351 var blot = this.isolate(prevNewline, isolateLength);
16352 var next = blot.next;
16353 blot.format(name, value);
16354 if (next instanceof CodeBlock2) {
16355 next.formatAt(0, index - prevNewline + length - isolateLength, name, value);
16356 }
16357 }
16358 }, {
16359 key: "insertAt",
16360 value: function insertAt(index, value, def) {
16361 if (def != null) return;
16362 var _descendant3 = this.descendant(_text2.default, index), _descendant4 = _slicedToArray2(_descendant3, 2), text = _descendant4[0], offset = _descendant4[1];
16363 text.insertAt(offset, value);
16364 }
16365 }, {
16366 key: "length",
16367 value: function length() {
16368 var length2 = this.domNode.textContent.length;
16369 if (!this.domNode.textContent.endsWith("\n")) {
16370 return length2 + 1;
16371 }
16372 return length2;
16373 }
16374 }, {
16375 key: "newlineIndex",
16376 value: function newlineIndex(searchIndex) {
16377 var reverse = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
16378 if (!reverse) {
16379 var offset = this.domNode.textContent.slice(searchIndex).indexOf("\n");
16380 return offset > -1 ? searchIndex + offset : -1;
16381 } else {
16382 return this.domNode.textContent.slice(0, searchIndex).lastIndexOf("\n");
16383 }
16384 }
16385 }, {
16386 key: "optimize",
16387 value: function optimize(context) {
16388 if (!this.domNode.textContent.endsWith("\n")) {
16389 this.appendChild(_parchment2.default.create("text", "\n"));
16390 }
16391 _get(CodeBlock2.prototype.__proto__ || Object.getPrototypeOf(CodeBlock2.prototype), "optimize", this).call(this, context);
16392 var next = this.next;
16393 if (next != null && next.prev === this && next.statics.blotName === this.statics.blotName && this.statics.formats(this.domNode) === next.statics.formats(next.domNode)) {
16394 next.optimize(context);
16395 next.moveChildren(this);
16396 next.remove();
16397 }
16398 }
16399 }, {
16400 key: "replace",
16401 value: function replace(target) {
16402 _get(CodeBlock2.prototype.__proto__ || Object.getPrototypeOf(CodeBlock2.prototype), "replace", this).call(this, target);
16403 [].slice.call(this.domNode.querySelectorAll("*")).forEach(function(node) {
16404 var blot = _parchment2.default.find(node);
16405 if (blot == null) {
16406 node.parentNode.removeChild(node);
16407 } else if (blot instanceof _parchment2.default.Embed) {
16408 blot.remove();
16409 } else {
16410 blot.unwrap();
16411 }
16412 });
16413 }
16414 }], [{
16415 key: "create",
16416 value: function create(value) {
16417 var domNode = _get(CodeBlock2.__proto__ || Object.getPrototypeOf(CodeBlock2), "create", this).call(this, value);
16418 domNode.setAttribute("spellcheck", false);
16419 return domNode;
16420 }
16421 }, {
16422 key: "formats",
16423 value: function formats() {
16424 return true;
16425 }
16426 }]);
16427 return CodeBlock2;
16428 }(_block2.default);
16429 CodeBlock.blotName = "code-block";
16430 CodeBlock.tagName = "PRE";
16431 CodeBlock.TAB = " ";
16432 exports$12.Code = Code2;
16433 exports$12.default = CodeBlock;
16434 },
16435 /* 14 */
16436 /***/
16437 function(module2, exports$12, __webpack_require__) {
16438 Object.defineProperty(exports$12, "__esModule", {
16439 value: true
16440 });
16441 var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
16442 return typeof obj;
16443 } : function(obj) {
16444 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
16445 };
16446 var _slicedToArray2 = /* @__PURE__ */ function() {
16447 function sliceIterator(arr, i) {
16448 var _arr = [];
16449 var _n = true;
16450 var _d2 = false;
16451 var _e2 = void 0;
16452 try {
16453 for (var _i2 = arr[Symbol.iterator](), _s; !(_n = (_s = _i2.next()).done); _n = true) {
16454 _arr.push(_s.value);
16455 if (i && _arr.length === i) break;
16456 }
16457 } catch (err) {
16458 _d2 = true;
16459 _e2 = err;
16460 } finally {
16461 try {
16462 if (!_n && _i2["return"]) _i2["return"]();
16463 } finally {
16464 if (_d2) throw _e2;
16465 }
16466 }
16467 return _arr;
16468 }
16469 return function(arr, i) {
16470 if (Array.isArray(arr)) {
16471 return arr;
16472 } else if (Symbol.iterator in Object(arr)) {
16473 return sliceIterator(arr, i);
16474 } else {
16475 throw new TypeError("Invalid attempt to destructure non-iterable instance");
16476 }
16477 };
16478 }();
16479 var _createClass2 = /* @__PURE__ */ function() {
16480 function defineProperties(target, props) {
16481 for (var i = 0; i < props.length; i++) {
16482 var descriptor = props[i];
16483 descriptor.enumerable = descriptor.enumerable || false;
16484 descriptor.configurable = true;
16485 if ("value" in descriptor) descriptor.writable = true;
16486 Object.defineProperty(target, descriptor.key, descriptor);
16487 }
16488 }
16489 return function(Constructor, protoProps, staticProps) {
16490 if (protoProps) defineProperties(Constructor.prototype, protoProps);
16491 if (staticProps) defineProperties(Constructor, staticProps);
16492 return Constructor;
16493 };
16494 }();
16495 var _quillDelta = __webpack_require__(2);
16496 var _quillDelta2 = _interopRequireDefault(_quillDelta);
16497 var _op = __webpack_require__(20);
16498 var _op2 = _interopRequireDefault(_op);
16499 var _parchment = __webpack_require__(0);
16500 var _parchment2 = _interopRequireDefault(_parchment);
16501 var _code = __webpack_require__(13);
16502 var _code2 = _interopRequireDefault(_code);
16503 var _cursor = __webpack_require__(24);
16504 var _cursor2 = _interopRequireDefault(_cursor);
16505 var _block = __webpack_require__(4);
16506 var _block2 = _interopRequireDefault(_block);
16507 var _break = __webpack_require__(16);
16508 var _break2 = _interopRequireDefault(_break);
16509 var _clone = __webpack_require__(21);
16510 var _clone2 = _interopRequireDefault(_clone);
16511 var _deepEqual = __webpack_require__(11);
16512 var _deepEqual2 = _interopRequireDefault(_deepEqual);
16513 var _extend = __webpack_require__(3);
16514 var _extend2 = _interopRequireDefault(_extend);
16515 function _interopRequireDefault(obj) {
16516 return obj && obj.__esModule ? obj : { default: obj };
16517 }
16518 function _defineProperty2(obj, key, value) {
16519 if (key in obj) {
16520 Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
16521 } else {
16522 obj[key] = value;
16523 }
16524 return obj;
16525 }
16526 function _classCallCheck2(instance, Constructor) {
16527 if (!(instance instanceof Constructor)) {
16528 throw new TypeError("Cannot call a class as a function");
16529 }
16530 }
16531 var ASCII = /^[ -~]*$/;
16532 var Editor = function() {
16533 function Editor2(scroll) {
16534 _classCallCheck2(this, Editor2);
16535 this.scroll = scroll;
16536 this.delta = this.getDelta();
16537 }
16538 _createClass2(Editor2, [{
16539 key: "applyDelta",
16540 value: function applyDelta(delta) {
16541 var _this = this;
16542 var consumeNextNewline = false;
16543 this.scroll.update();
16544 var scrollLength = this.scroll.length();
16545 this.scroll.batchStart();
16546 delta = normalizeDelta(delta);
16547 delta.reduce(function(index, op) {
16548 var length = op.retain || op.delete || op.insert.length || 1;
16549 var attributes = op.attributes || {};
16550 if (op.insert != null) {
16551 if (typeof op.insert === "string") {
16552 var text = op.insert;
16553 if (text.endsWith("\n") && consumeNextNewline) {
16554 consumeNextNewline = false;
16555 text = text.slice(0, -1);
16556 }
16557 if (index >= scrollLength && !text.endsWith("\n")) {
16558 consumeNextNewline = true;
16559 }
16560 _this.scroll.insertAt(index, text);
16561 var _scroll$line = _this.scroll.line(index), _scroll$line2 = _slicedToArray2(_scroll$line, 2), line = _scroll$line2[0], offset = _scroll$line2[1];
16562 var formats = (0, _extend2.default)({}, (0, _block.bubbleFormats)(line));
16563 if (line instanceof _block2.default) {
16564 var _line$descendant = line.descendant(_parchment2.default.Leaf, offset), _line$descendant2 = _slicedToArray2(_line$descendant, 1), leaf = _line$descendant2[0];
16565 formats = (0, _extend2.default)(formats, (0, _block.bubbleFormats)(leaf));
16566 }
16567 attributes = _op2.default.attributes.diff(formats, attributes) || {};
16568 } else if (_typeof2(op.insert) === "object") {
16569 var key = Object.keys(op.insert)[0];
16570 if (key == null) return index;
16571 _this.scroll.insertAt(index, key, op.insert[key]);
16572 }
16573 scrollLength += length;
16574 }
16575 Object.keys(attributes).forEach(function(name) {
16576 _this.scroll.formatAt(index, length, name, attributes[name]);
16577 });
16578 return index + length;
16579 }, 0);
16580 delta.reduce(function(index, op) {
16581 if (typeof op.delete === "number") {
16582 _this.scroll.deleteAt(index, op.delete);
16583 return index;
16584 }
16585 return index + (op.retain || op.insert.length || 1);
16586 }, 0);
16587 this.scroll.batchEnd();
16588 return this.update(delta);
16589 }
16590 }, {
16591 key: "deleteText",
16592 value: function deleteText(index, length) {
16593 this.scroll.deleteAt(index, length);
16594 return this.update(new _quillDelta2.default().retain(index).delete(length));
16595 }
16596 }, {
16597 key: "formatLine",
16598 value: function formatLine(index, length) {
16599 var _this2 = this;
16600 var formats = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
16601 this.scroll.update();
16602 Object.keys(formats).forEach(function(format) {
16603 if (_this2.scroll.whitelist != null && !_this2.scroll.whitelist[format]) return;
16604 var lines = _this2.scroll.lines(index, Math.max(length, 1));
16605 var lengthRemaining = length;
16606 lines.forEach(function(line) {
16607 var lineLength = line.length();
16608 if (!(line instanceof _code2.default)) {
16609 line.format(format, formats[format]);
16610 } else {
16611 var codeIndex = index - line.offset(_this2.scroll);
16612 var codeLength = line.newlineIndex(codeIndex + lengthRemaining) - codeIndex + 1;
16613 line.formatAt(codeIndex, codeLength, format, formats[format]);
16614 }
16615 lengthRemaining -= lineLength;
16616 });
16617 });
16618 this.scroll.optimize();
16619 return this.update(new _quillDelta2.default().retain(index).retain(length, (0, _clone2.default)(formats)));
16620 }
16621 }, {
16622 key: "formatText",
16623 value: function formatText(index, length) {
16624 var _this3 = this;
16625 var formats = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
16626 Object.keys(formats).forEach(function(format) {
16627 _this3.scroll.formatAt(index, length, format, formats[format]);
16628 });
16629 return this.update(new _quillDelta2.default().retain(index).retain(length, (0, _clone2.default)(formats)));
16630 }
16631 }, {
16632 key: "getContents",
16633 value: function getContents(index, length) {
16634 return this.delta.slice(index, index + length);
16635 }
16636 }, {
16637 key: "getDelta",
16638 value: function getDelta() {
16639 return this.scroll.lines().reduce(function(delta, line) {
16640 return delta.concat(line.delta());
16641 }, new _quillDelta2.default());
16642 }
16643 }, {
16644 key: "getFormat",
16645 value: function getFormat(index) {
16646 var length = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
16647 var lines = [], leaves = [];
16648 if (length === 0) {
16649 this.scroll.path(index).forEach(function(path) {
16650 var _path = _slicedToArray2(path, 1), blot = _path[0];
16651 if (blot instanceof _block2.default) {
16652 lines.push(blot);
16653 } else if (blot instanceof _parchment2.default.Leaf) {
16654 leaves.push(blot);
16655 }
16656 });
16657 } else {
16658 lines = this.scroll.lines(index, length);
16659 leaves = this.scroll.descendants(_parchment2.default.Leaf, index, length);
16660 }
16661 var formatsArr = [lines, leaves].map(function(blots) {
16662 if (blots.length === 0) return {};
16663 var formats = (0, _block.bubbleFormats)(blots.shift());
16664 while (Object.keys(formats).length > 0) {
16665 var blot = blots.shift();
16666 if (blot == null) return formats;
16667 formats = combineFormats((0, _block.bubbleFormats)(blot), formats);
16668 }
16669 return formats;
16670 });
16671 return _extend2.default.apply(_extend2.default, formatsArr);
16672 }
16673 }, {
16674 key: "getText",
16675 value: function getText(index, length) {
16676 return this.getContents(index, length).filter(function(op) {
16677 return typeof op.insert === "string";
16678 }).map(function(op) {
16679 return op.insert;
16680 }).join("");
16681 }
16682 }, {
16683 key: "insertEmbed",
16684 value: function insertEmbed(index, embed, value) {
16685 this.scroll.insertAt(index, embed, value);
16686 return this.update(new _quillDelta2.default().retain(index).insert(_defineProperty2({}, embed, value)));
16687 }
16688 }, {
16689 key: "insertText",
16690 value: function insertText(index, text) {
16691 var _this4 = this;
16692 var formats = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
16693 text = text.replace(/\r\n/g, "\n").replace(/\r/g, "\n");
16694 this.scroll.insertAt(index, text);
16695 Object.keys(formats).forEach(function(format) {
16696 _this4.scroll.formatAt(index, text.length, format, formats[format]);
16697 });
16698 return this.update(new _quillDelta2.default().retain(index).insert(text, (0, _clone2.default)(formats)));
16699 }
16700 }, {
16701 key: "isBlank",
16702 value: function isBlank() {
16703 if (this.scroll.children.length == 0) return true;
16704 if (this.scroll.children.length > 1) return false;
16705 var block = this.scroll.children.head;
16706 if (block.statics.blotName !== _block2.default.blotName) return false;
16707 if (block.children.length > 1) return false;
16708 return block.children.head instanceof _break2.default;
16709 }
16710 }, {
16711 key: "removeFormat",
16712 value: function removeFormat(index, length) {
16713 var text = this.getText(index, length);
16714 var _scroll$line3 = this.scroll.line(index + length), _scroll$line4 = _slicedToArray2(_scroll$line3, 2), line = _scroll$line4[0], offset = _scroll$line4[1];
16715 var suffixLength = 0, suffix = new _quillDelta2.default();
16716 if (line != null) {
16717 if (!(line instanceof _code2.default)) {
16718 suffixLength = line.length() - offset;
16719 } else {
16720 suffixLength = line.newlineIndex(offset) - offset + 1;
16721 }
16722 suffix = line.delta().slice(offset, offset + suffixLength - 1).insert("\n");
16723 }
16724 var contents = this.getContents(index, length + suffixLength);
16725 var diff = contents.diff(new _quillDelta2.default().insert(text).concat(suffix));
16726 var delta = new _quillDelta2.default().retain(index).concat(diff);
16727 return this.applyDelta(delta);
16728 }
16729 }, {
16730 key: "update",
16731 value: function update(change) {
16732 var mutations = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
16733 var cursorIndex = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : void 0;
16734 var oldDelta = this.delta;
16735 if (mutations.length === 1 && mutations[0].type === "characterData" && mutations[0].target.data.match(ASCII) && _parchment2.default.find(mutations[0].target)) {
16736 var textBlot = _parchment2.default.find(mutations[0].target);
16737 var formats = (0, _block.bubbleFormats)(textBlot);
16738 var index = textBlot.offset(this.scroll);
16739 var oldValue = mutations[0].oldValue.replace(_cursor2.default.CONTENTS, "");
16740 var oldText = new _quillDelta2.default().insert(oldValue);
16741 var newText = new _quillDelta2.default().insert(textBlot.value());
16742 var diffDelta = new _quillDelta2.default().retain(index).concat(oldText.diff(newText, cursorIndex));
16743 change = diffDelta.reduce(function(delta, op) {
16744 if (op.insert) {
16745 return delta.insert(op.insert, formats);
16746 } else {
16747 return delta.push(op);
16748 }
16749 }, new _quillDelta2.default());
16750 this.delta = oldDelta.compose(change);
16751 } else {
16752 this.delta = this.getDelta();
16753 if (!change || !(0, _deepEqual2.default)(oldDelta.compose(change), this.delta)) {
16754 change = oldDelta.diff(this.delta, cursorIndex);
16755 }
16756 }
16757 return change;
16758 }
16759 }]);
16760 return Editor2;
16761 }();
16762 function combineFormats(formats, combined) {
16763 return Object.keys(combined).reduce(function(merged, name) {
16764 if (formats[name] == null) return merged;
16765 if (combined[name] === formats[name]) {
16766 merged[name] = combined[name];
16767 } else if (Array.isArray(combined[name])) {
16768 if (combined[name].indexOf(formats[name]) < 0) {
16769 merged[name] = combined[name].concat([formats[name]]);
16770 }
16771 } else {
16772 merged[name] = [combined[name], formats[name]];
16773 }
16774 return merged;
16775 }, {});
16776 }
16777 function normalizeDelta(delta) {
16778 return delta.reduce(function(delta2, op) {
16779 if (op.insert === 1) {
16780 var attributes = (0, _clone2.default)(op.attributes);
16781 delete attributes["image"];
16782 return delta2.insert({ image: op.attributes.image }, attributes);
16783 }
16784 if (op.attributes != null && (op.attributes.list === true || op.attributes.bullet === true)) {
16785 op = (0, _clone2.default)(op);
16786 if (op.attributes.list) {
16787 op.attributes.list = "ordered";
16788 } else {
16789 op.attributes.list = "bullet";
16790 delete op.attributes.bullet;
16791 }
16792 }
16793 if (typeof op.insert === "string") {
16794 var text = op.insert.replace(/\r\n/g, "\n").replace(/\r/g, "\n");
16795 return delta2.insert(text, op.attributes);
16796 }
16797 return delta2.push(op);
16798 }, new _quillDelta2.default());
16799 }
16800 exports$12.default = Editor;
16801 },
16802 /* 15 */
16803 /***/
16804 function(module2, exports$12, __webpack_require__) {
16805 Object.defineProperty(exports$12, "__esModule", {
16806 value: true
16807 });
16808 exports$12.default = exports$12.Range = void 0;
16809 var _slicedToArray2 = /* @__PURE__ */ function() {
16810 function sliceIterator(arr, i) {
16811 var _arr = [];
16812 var _n = true;
16813 var _d2 = false;
16814 var _e2 = void 0;
16815 try {
16816 for (var _i2 = arr[Symbol.iterator](), _s; !(_n = (_s = _i2.next()).done); _n = true) {
16817 _arr.push(_s.value);
16818 if (i && _arr.length === i) break;
16819 }
16820 } catch (err) {
16821 _d2 = true;
16822 _e2 = err;
16823 } finally {
16824 try {
16825 if (!_n && _i2["return"]) _i2["return"]();
16826 } finally {
16827 if (_d2) throw _e2;
16828 }
16829 }
16830 return _arr;
16831 }
16832 return function(arr, i) {
16833 if (Array.isArray(arr)) {
16834 return arr;
16835 } else if (Symbol.iterator in Object(arr)) {
16836 return sliceIterator(arr, i);
16837 } else {
16838 throw new TypeError("Invalid attempt to destructure non-iterable instance");
16839 }
16840 };
16841 }();
16842 var _createClass2 = /* @__PURE__ */ function() {
16843 function defineProperties(target, props) {
16844 for (var i = 0; i < props.length; i++) {
16845 var descriptor = props[i];
16846 descriptor.enumerable = descriptor.enumerable || false;
16847 descriptor.configurable = true;
16848 if ("value" in descriptor) descriptor.writable = true;
16849 Object.defineProperty(target, descriptor.key, descriptor);
16850 }
16851 }
16852 return function(Constructor, protoProps, staticProps) {
16853 if (protoProps) defineProperties(Constructor.prototype, protoProps);
16854 if (staticProps) defineProperties(Constructor, staticProps);
16855 return Constructor;
16856 };
16857 }();
16858 var _parchment = __webpack_require__(0);
16859 var _parchment2 = _interopRequireDefault(_parchment);
16860 var _clone = __webpack_require__(21);
16861 var _clone2 = _interopRequireDefault(_clone);
16862 var _deepEqual = __webpack_require__(11);
16863 var _deepEqual2 = _interopRequireDefault(_deepEqual);
16864 var _emitter3 = __webpack_require__(8);
16865 var _emitter4 = _interopRequireDefault(_emitter3);
16866 var _logger = __webpack_require__(10);
16867 var _logger2 = _interopRequireDefault(_logger);
16868 function _interopRequireDefault(obj) {
16869 return obj && obj.__esModule ? obj : { default: obj };
16870 }
16871 function _toConsumableArray2(arr) {
16872 if (Array.isArray(arr)) {
16873 for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {
16874 arr2[i] = arr[i];
16875 }
16876 return arr2;
16877 } else {
16878 return Array.from(arr);
16879 }
16880 }
16881 function _classCallCheck2(instance, Constructor) {
16882 if (!(instance instanceof Constructor)) {
16883 throw new TypeError("Cannot call a class as a function");
16884 }
16885 }
16886 var debug = (0, _logger2.default)("quill:selection");
16887 var Range = function Range2(index) {
16888 var length = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
16889 _classCallCheck2(this, Range2);
16890 this.index = index;
16891 this.length = length;
16892 };
16893 var Selection = function() {
16894 function Selection2(scroll, emitter) {
16895 var _this = this;
16896 _classCallCheck2(this, Selection2);
16897 this.emitter = emitter;
16898 this.scroll = scroll;
16899 this.composing = false;
16900 this.mouseDown = false;
16901 this.root = this.scroll.domNode;
16902 this.cursor = _parchment2.default.create("cursor", this);
16903 this.lastRange = this.savedRange = new Range(0, 0);
16904 this.handleComposition();
16905 this.handleDragging();
16906 this.emitter.listenDOM("selectionchange", document, function() {
16907 if (!_this.mouseDown) {
16908 setTimeout(_this.update.bind(_this, _emitter4.default.sources.USER), 1);
16909 }
16910 });
16911 this.emitter.on(_emitter4.default.events.EDITOR_CHANGE, function(type, delta) {
16912 if (type === _emitter4.default.events.TEXT_CHANGE && delta.length() > 0) {
16913 _this.update(_emitter4.default.sources.SILENT);
16914 }
16915 });
16916 this.emitter.on(_emitter4.default.events.SCROLL_BEFORE_UPDATE, function() {
16917 if (!_this.hasFocus()) return;
16918 var native = _this.getNativeRange();
16919 if (native == null) return;
16920 if (native.start.node === _this.cursor.textNode) return;
16921 _this.emitter.once(_emitter4.default.events.SCROLL_UPDATE, function() {
16922 try {
16923 _this.setNativeRange(native.start.node, native.start.offset, native.end.node, native.end.offset);
16924 } catch (ignored) {
16925 }
16926 });
16927 });
16928 this.emitter.on(_emitter4.default.events.SCROLL_OPTIMIZE, function(mutations, context) {
16929 if (context.range) {
16930 var _context$range = context.range, startNode = _context$range.startNode, startOffset = _context$range.startOffset, endNode = _context$range.endNode, endOffset = _context$range.endOffset;
16931 _this.setNativeRange(startNode, startOffset, endNode, endOffset);
16932 }
16933 });
16934 this.update(_emitter4.default.sources.SILENT);
16935 }
16936 _createClass2(Selection2, [{
16937 key: "handleComposition",
16938 value: function handleComposition() {
16939 var _this2 = this;
16940 this.root.addEventListener("compositionstart", function() {
16941 _this2.composing = true;
16942 });
16943 this.root.addEventListener("compositionend", function() {
16944 _this2.composing = false;
16945 if (_this2.cursor.parent) {
16946 var range = _this2.cursor.restore();
16947 if (!range) return;
16948 setTimeout(function() {
16949 _this2.setNativeRange(range.startNode, range.startOffset, range.endNode, range.endOffset);
16950 }, 1);
16951 }
16952 });
16953 }
16954 }, {
16955 key: "handleDragging",
16956 value: function handleDragging() {
16957 var _this3 = this;
16958 this.emitter.listenDOM("mousedown", document.body, function() {
16959 _this3.mouseDown = true;
16960 });
16961 this.emitter.listenDOM("mouseup", document.body, function() {
16962 _this3.mouseDown = false;
16963 _this3.update(_emitter4.default.sources.USER);
16964 });
16965 }
16966 }, {
16967 key: "focus",
16968 value: function focus() {
16969 if (this.hasFocus()) return;
16970 this.root.focus();
16971 this.setRange(this.savedRange);
16972 }
16973 }, {
16974 key: "format",
16975 value: function format(_format, value) {
16976 if (this.scroll.whitelist != null && !this.scroll.whitelist[_format]) return;
16977 this.scroll.update();
16978 var nativeRange = this.getNativeRange();
16979 if (nativeRange == null || !nativeRange.native.collapsed || _parchment2.default.query(_format, _parchment2.default.Scope.BLOCK)) return;
16980 if (nativeRange.start.node !== this.cursor.textNode) {
16981 var blot = _parchment2.default.find(nativeRange.start.node, false);
16982 if (blot == null) return;
16983 if (blot instanceof _parchment2.default.Leaf) {
16984 var after = blot.split(nativeRange.start.offset);
16985 blot.parent.insertBefore(this.cursor, after);
16986 } else {
16987 blot.insertBefore(this.cursor, nativeRange.start.node);
16988 }
16989 this.cursor.attach();
16990 }
16991 this.cursor.format(_format, value);
16992 this.scroll.optimize();
16993 this.setNativeRange(this.cursor.textNode, this.cursor.textNode.data.length);
16994 this.update();
16995 }
16996 }, {
16997 key: "getBounds",
16998 value: function getBounds(index) {
16999 var length = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
17000 var scrollLength = this.scroll.length();
17001 index = Math.min(index, scrollLength - 1);
17002 length = Math.min(index + length, scrollLength - 1) - index;
17003 var node = void 0, _scroll$leaf = this.scroll.leaf(index), _scroll$leaf2 = _slicedToArray2(_scroll$leaf, 2), leaf = _scroll$leaf2[0], offset = _scroll$leaf2[1];
17004 if (leaf == null) return null;
17005 var _leaf$position = leaf.position(offset, true);
17006 var _leaf$position2 = _slicedToArray2(_leaf$position, 2);
17007 node = _leaf$position2[0];
17008 offset = _leaf$position2[1];
17009 var range = document.createRange();
17010 if (length > 0) {
17011 range.setStart(node, offset);
17012 var _scroll$leaf3 = this.scroll.leaf(index + length);
17013 var _scroll$leaf4 = _slicedToArray2(_scroll$leaf3, 2);
17014 leaf = _scroll$leaf4[0];
17015 offset = _scroll$leaf4[1];
17016 if (leaf == null) return null;
17017 var _leaf$position3 = leaf.position(offset, true);
17018 var _leaf$position4 = _slicedToArray2(_leaf$position3, 2);
17019 node = _leaf$position4[0];
17020 offset = _leaf$position4[1];
17021 range.setEnd(node, offset);
17022 return range.getBoundingClientRect();
17023 } else {
17024 var side = "left";
17025 var rect = void 0;
17026 if (node instanceof Text) {
17027 if (offset < node.data.length) {
17028 range.setStart(node, offset);
17029 range.setEnd(node, offset + 1);
17030 } else {
17031 range.setStart(node, offset - 1);
17032 range.setEnd(node, offset);
17033 side = "right";
17034 }
17035 rect = range.getBoundingClientRect();
17036 } else {
17037 rect = leaf.domNode.getBoundingClientRect();
17038 if (offset > 0) side = "right";
17039 }
17040 return {
17041 bottom: rect.top + rect.height,
17042 height: rect.height,
17043 left: rect[side],
17044 right: rect[side],
17045 top: rect.top,
17046 width: 0
17047 };
17048 }
17049 }
17050 }, {
17051 key: "getNativeRange",
17052 value: function getNativeRange() {
17053 var selection = document.getSelection();
17054 if (selection == null || selection.rangeCount <= 0) return null;
17055 var nativeRange = selection.getRangeAt(0);
17056 if (nativeRange == null) return null;
17057 var range = this.normalizeNative(nativeRange);
17058 debug.info("getNativeRange", range);
17059 return range;
17060 }
17061 }, {
17062 key: "getRange",
17063 value: function getRange() {
17064 var normalized = this.getNativeRange();
17065 if (normalized == null) return [null, null];
17066 var range = this.normalizedToRange(normalized);
17067 return [range, normalized];
17068 }
17069 }, {
17070 key: "hasFocus",
17071 value: function hasFocus() {
17072 return document.activeElement === this.root;
17073 }
17074 }, {
17075 key: "normalizedToRange",
17076 value: function normalizedToRange(range) {
17077 var _this4 = this;
17078 var positions = [[range.start.node, range.start.offset]];
17079 if (!range.native.collapsed) {
17080 positions.push([range.end.node, range.end.offset]);
17081 }
17082 var indexes = positions.map(function(position) {
17083 var _position = _slicedToArray2(position, 2), node = _position[0], offset = _position[1];
17084 var blot = _parchment2.default.find(node, true);
17085 var index = blot.offset(_this4.scroll);
17086 if (offset === 0) {
17087 return index;
17088 } else if (blot instanceof _parchment2.default.Container) {
17089 return index + blot.length();
17090 } else {
17091 return index + blot.index(node, offset);
17092 }
17093 });
17094 var end = Math.min(Math.max.apply(Math, _toConsumableArray2(indexes)), this.scroll.length() - 1);
17095 var start = Math.min.apply(Math, [end].concat(_toConsumableArray2(indexes)));
17096 return new Range(start, end - start);
17097 }
17098 }, {
17099 key: "normalizeNative",
17100 value: function normalizeNative(nativeRange) {
17101 if (!contains(this.root, nativeRange.startContainer) || !nativeRange.collapsed && !contains(this.root, nativeRange.endContainer)) {
17102 return null;
17103 }
17104 var range = {
17105 start: { node: nativeRange.startContainer, offset: nativeRange.startOffset },
17106 end: { node: nativeRange.endContainer, offset: nativeRange.endOffset },
17107 native: nativeRange
17108 };
17109 [range.start, range.end].forEach(function(position) {
17110 var node = position.node, offset = position.offset;
17111 while (!(node instanceof Text) && node.childNodes.length > 0) {
17112 if (node.childNodes.length > offset) {
17113 node = node.childNodes[offset];
17114 offset = 0;
17115 } else if (node.childNodes.length === offset) {
17116 node = node.lastChild;
17117 offset = node instanceof Text ? node.data.length : node.childNodes.length + 1;
17118 } else {
17119 break;
17120 }
17121 }
17122 position.node = node, position.offset = offset;
17123 });
17124 return range;
17125 }
17126 }, {
17127 key: "rangeToNative",
17128 value: function rangeToNative(range) {
17129 var _this5 = this;
17130 var indexes = range.collapsed ? [range.index] : [range.index, range.index + range.length];
17131 var args = [];
17132 var scrollLength = this.scroll.length();
17133 indexes.forEach(function(index, i) {
17134 index = Math.min(scrollLength - 1, index);
17135 var node = void 0, _scroll$leaf5 = _this5.scroll.leaf(index), _scroll$leaf6 = _slicedToArray2(_scroll$leaf5, 2), leaf = _scroll$leaf6[0], offset = _scroll$leaf6[1];
17136 var _leaf$position5 = leaf.position(offset, i !== 0);
17137 var _leaf$position6 = _slicedToArray2(_leaf$position5, 2);
17138 node = _leaf$position6[0];
17139 offset = _leaf$position6[1];
17140 args.push(node, offset);
17141 });
17142 if (args.length < 2) {
17143 args = args.concat(args);
17144 }
17145 return args;
17146 }
17147 }, {
17148 key: "scrollIntoView",
17149 value: function scrollIntoView(scrollingContainer) {
17150 var range = this.lastRange;
17151 if (range == null) return;
17152 var bounds = this.getBounds(range.index, range.length);
17153 if (bounds == null) return;
17154 var limit = this.scroll.length() - 1;
17155 var _scroll$line = this.scroll.line(Math.min(range.index, limit)), _scroll$line2 = _slicedToArray2(_scroll$line, 1), first = _scroll$line2[0];
17156 var last = first;
17157 if (range.length > 0) {
17158 var _scroll$line3 = this.scroll.line(Math.min(range.index + range.length, limit));
17159 var _scroll$line4 = _slicedToArray2(_scroll$line3, 1);
17160 last = _scroll$line4[0];
17161 }
17162 if (first == null || last == null) return;
17163 var scrollBounds = scrollingContainer.getBoundingClientRect();
17164 if (bounds.top < scrollBounds.top) {
17165 scrollingContainer.scrollTop -= scrollBounds.top - bounds.top;
17166 } else if (bounds.bottom > scrollBounds.bottom) {
17167 scrollingContainer.scrollTop += bounds.bottom - scrollBounds.bottom;
17168 }
17169 }
17170 }, {
17171 key: "setNativeRange",
17172 value: function setNativeRange(startNode, startOffset) {
17173 var endNode = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : startNode;
17174 var endOffset = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : startOffset;
17175 var force = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false;
17176 debug.info("setNativeRange", startNode, startOffset, endNode, endOffset);
17177 if (startNode != null && (this.root.parentNode == null || startNode.parentNode == null || endNode.parentNode == null)) {
17178 return;
17179 }
17180 var selection = document.getSelection();
17181 if (selection == null) return;
17182 if (startNode != null) {
17183 if (!this.hasFocus()) this.root.focus();
17184 var native = (this.getNativeRange() || {}).native;
17185 if (native == null || force || startNode !== native.startContainer || startOffset !== native.startOffset || endNode !== native.endContainer || endOffset !== native.endOffset) {
17186 if (startNode.tagName == "BR") {
17187 startOffset = [].indexOf.call(startNode.parentNode.childNodes, startNode);
17188 startNode = startNode.parentNode;
17189 }
17190 if (endNode.tagName == "BR") {
17191 endOffset = [].indexOf.call(endNode.parentNode.childNodes, endNode);
17192 endNode = endNode.parentNode;
17193 }
17194 var range = document.createRange();
17195 range.setStart(startNode, startOffset);
17196 range.setEnd(endNode, endOffset);
17197 selection.removeAllRanges();
17198 selection.addRange(range);
17199 }
17200 } else {
17201 selection.removeAllRanges();
17202 this.root.blur();
17203 document.body.focus();
17204 }
17205 }
17206 }, {
17207 key: "setRange",
17208 value: function setRange(range) {
17209 var force = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
17210 var source = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : _emitter4.default.sources.API;
17211 if (typeof force === "string") {
17212 source = force;
17213 force = false;
17214 }
17215 debug.info("setRange", range);
17216 if (range != null) {
17217 var args = this.rangeToNative(range);
17218 this.setNativeRange.apply(this, _toConsumableArray2(args).concat([force]));
17219 } else {
17220 this.setNativeRange(null);
17221 }
17222 this.update(source);
17223 }
17224 }, {
17225 key: "update",
17226 value: function update() {
17227 var source = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : _emitter4.default.sources.USER;
17228 var oldRange = this.lastRange;
17229 var _getRange = this.getRange(), _getRange2 = _slicedToArray2(_getRange, 2), lastRange = _getRange2[0], nativeRange = _getRange2[1];
17230 this.lastRange = lastRange;
17231 if (this.lastRange != null) {
17232 this.savedRange = this.lastRange;
17233 }
17234 if (!(0, _deepEqual2.default)(oldRange, this.lastRange)) {
17235 var _emitter;
17236 if (!this.composing && nativeRange != null && nativeRange.native.collapsed && nativeRange.start.node !== this.cursor.textNode) {
17237 this.cursor.restore();
17238 }
17239 var args = [_emitter4.default.events.SELECTION_CHANGE, (0, _clone2.default)(this.lastRange), (0, _clone2.default)(oldRange), source];
17240 (_emitter = this.emitter).emit.apply(_emitter, [_emitter4.default.events.EDITOR_CHANGE].concat(args));
17241 if (source !== _emitter4.default.sources.SILENT) {
17242 var _emitter2;
17243 (_emitter2 = this.emitter).emit.apply(_emitter2, args);
17244 }
17245 }
17246 }
17247 }]);
17248 return Selection2;
17249 }();
17250 function contains(parent, descendant) {
17251 try {
17252 descendant.parentNode;
17253 } catch (e2) {
17254 return false;
17255 }
17256 if (descendant instanceof Text) {
17257 descendant = descendant.parentNode;
17258 }
17259 return parent.contains(descendant);
17260 }
17261 exports$12.Range = Range;
17262 exports$12.default = Selection;
17263 },
17264 /* 16 */
17265 /***/
17266 function(module2, exports$12, __webpack_require__) {
17267 Object.defineProperty(exports$12, "__esModule", {
17268 value: true
17269 });
17270 var _createClass2 = /* @__PURE__ */ function() {
17271 function defineProperties(target, props) {
17272 for (var i = 0; i < props.length; i++) {
17273 var descriptor = props[i];
17274 descriptor.enumerable = descriptor.enumerable || false;
17275 descriptor.configurable = true;
17276 if ("value" in descriptor) descriptor.writable = true;
17277 Object.defineProperty(target, descriptor.key, descriptor);
17278 }
17279 }
17280 return function(Constructor, protoProps, staticProps) {
17281 if (protoProps) defineProperties(Constructor.prototype, protoProps);
17282 if (staticProps) defineProperties(Constructor, staticProps);
17283 return Constructor;
17284 };
17285 }();
17286 var _get = function get(object, property, receiver) {
17287 if (object === null) object = Function.prototype;
17288 var desc = Object.getOwnPropertyDescriptor(object, property);
17289 if (desc === void 0) {
17290 var parent = Object.getPrototypeOf(object);
17291 if (parent === null) {
17292 return void 0;
17293 } else {
17294 return get(parent, property, receiver);
17295 }
17296 } else if ("value" in desc) {
17297 return desc.value;
17298 } else {
17299 var getter = desc.get;
17300 if (getter === void 0) {
17301 return void 0;
17302 }
17303 return getter.call(receiver);
17304 }
17305 };
17306 var _parchment = __webpack_require__(0);
17307 var _parchment2 = _interopRequireDefault(_parchment);
17308 function _interopRequireDefault(obj) {
17309 return obj && obj.__esModule ? obj : { default: obj };
17310 }
17311 function _classCallCheck2(instance, Constructor) {
17312 if (!(instance instanceof Constructor)) {
17313 throw new TypeError("Cannot call a class as a function");
17314 }
17315 }
17316 function _possibleConstructorReturn2(self2, call) {
17317 if (!self2) {
17318 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
17319 }
17320 return call && (typeof call === "object" || typeof call === "function") ? call : self2;
17321 }
17322 function _inherits2(subClass, superClass) {
17323 if (typeof superClass !== "function" && superClass !== null) {
17324 throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
17325 }
17326 subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
17327 if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
17328 }
17329 var Break = function(_Parchment$Embed) {
17330 _inherits2(Break2, _Parchment$Embed);
17331 function Break2() {
17332 _classCallCheck2(this, Break2);
17333 return _possibleConstructorReturn2(this, (Break2.__proto__ || Object.getPrototypeOf(Break2)).apply(this, arguments));
17334 }
17335 _createClass2(Break2, [{
17336 key: "insertInto",
17337 value: function insertInto(parent, ref) {
17338 if (parent.children.length === 0) {
17339 _get(Break2.prototype.__proto__ || Object.getPrototypeOf(Break2.prototype), "insertInto", this).call(this, parent, ref);
17340 } else {
17341 this.remove();
17342 }
17343 }
17344 }, {
17345 key: "length",
17346 value: function length() {
17347 return 0;
17348 }
17349 }, {
17350 key: "value",
17351 value: function value() {
17352 return "";
17353 }
17354 }], [{
17355 key: "value",
17356 value: function value() {
17357 return void 0;
17358 }
17359 }]);
17360 return Break2;
17361 }(_parchment2.default.Embed);
17362 Break.blotName = "break";
17363 Break.tagName = "BR";
17364 exports$12.default = Break;
17365 },
17366 /* 17 */
17367 /***/
17368 function(module2, exports$12, __webpack_require__) {
17369 var __extends2 = this && this.__extends || function() {
17370 var extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
17371 d2.__proto__ = b2;
17372 } || function(d2, b2) {
17373 for (var p2 in b2) if (b2.hasOwnProperty(p2)) d2[p2] = b2[p2];
17374 };
17375 return function(d2, b2) {
17376 extendStatics(d2, b2);
17377 function __() {
17378 this.constructor = d2;
17379 }
17380 d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
17381 };
17382 }();
17383 Object.defineProperty(exports$12, "__esModule", { value: true });
17384 var linked_list_1 = __webpack_require__(44);
17385 var shadow_1 = __webpack_require__(30);
17386 var Registry = __webpack_require__(1);
17387 var ContainerBlot = (
17388 /** @class */
17389 function(_super) {
17390 __extends2(ContainerBlot2, _super);
17391 function ContainerBlot2(domNode) {
17392 var _this = _super.call(this, domNode) || this;
17393 _this.build();
17394 return _this;
17395 }
17396 ContainerBlot2.prototype.appendChild = function(other) {
17397 this.insertBefore(other);
17398 };
17399 ContainerBlot2.prototype.attach = function() {
17400 _super.prototype.attach.call(this);
17401 this.children.forEach(function(child) {
17402 child.attach();
17403 });
17404 };
17405 ContainerBlot2.prototype.build = function() {
17406 var _this = this;
17407 this.children = new linked_list_1.default();
17408 [].slice.call(this.domNode.childNodes).reverse().forEach(function(node) {
17409 try {
17410 var child = makeBlot(node);
17411 _this.insertBefore(child, _this.children.head || void 0);
17412 } catch (err) {
17413 if (err instanceof Registry.ParchmentError)
17414 return;
17415 else
17416 throw err;
17417 }
17418 });
17419 };
17420 ContainerBlot2.prototype.deleteAt = function(index, length) {
17421 if (index === 0 && length === this.length()) {
17422 return this.remove();
17423 }
17424 this.children.forEachAt(index, length, function(child, offset, length2) {
17425 child.deleteAt(offset, length2);
17426 });
17427 };
17428 ContainerBlot2.prototype.descendant = function(criteria, index) {
17429 var _a2 = this.children.find(index), child = _a2[0], offset = _a2[1];
17430 if (criteria.blotName == null && criteria(child) || criteria.blotName != null && child instanceof criteria) {
17431 return [child, offset];
17432 } else if (child instanceof ContainerBlot2) {
17433 return child.descendant(criteria, offset);
17434 } else {
17435 return [null, -1];
17436 }
17437 };
17438 ContainerBlot2.prototype.descendants = function(criteria, index, length) {
17439 if (index === void 0) {
17440 index = 0;
17441 }
17442 if (length === void 0) {
17443 length = Number.MAX_VALUE;
17444 }
17445 var descendants = [];
17446 var lengthLeft = length;
17447 this.children.forEachAt(index, length, function(child, index2, length2) {
17448 if (criteria.blotName == null && criteria(child) || criteria.blotName != null && child instanceof criteria) {
17449 descendants.push(child);
17450 }
17451 if (child instanceof ContainerBlot2) {
17452 descendants = descendants.concat(child.descendants(criteria, index2, lengthLeft));
17453 }
17454 lengthLeft -= length2;
17455 });
17456 return descendants;
17457 };
17458 ContainerBlot2.prototype.detach = function() {
17459 this.children.forEach(function(child) {
17460 child.detach();
17461 });
17462 _super.prototype.detach.call(this);
17463 };
17464 ContainerBlot2.prototype.formatAt = function(index, length, name, value) {
17465 this.children.forEachAt(index, length, function(child, offset, length2) {
17466 child.formatAt(offset, length2, name, value);
17467 });
17468 };
17469 ContainerBlot2.prototype.insertAt = function(index, value, def) {
17470 var _a2 = this.children.find(index), child = _a2[0], offset = _a2[1];
17471 if (child) {
17472 child.insertAt(offset, value, def);
17473 } else {
17474 var blot = def == null ? Registry.create("text", value) : Registry.create(value, def);
17475 this.appendChild(blot);
17476 }
17477 };
17478 ContainerBlot2.prototype.insertBefore = function(childBlot, refBlot) {
17479 if (this.statics.allowedChildren != null && !this.statics.allowedChildren.some(function(child) {
17480 return childBlot instanceof child;
17481 })) {
17482 throw new Registry.ParchmentError("Cannot insert " + childBlot.statics.blotName + " into " + this.statics.blotName);
17483 }
17484 childBlot.insertInto(this, refBlot);
17485 };
17486 ContainerBlot2.prototype.length = function() {
17487 return this.children.reduce(function(memo, child) {
17488 return memo + child.length();
17489 }, 0);
17490 };
17491 ContainerBlot2.prototype.moveChildren = function(targetParent, refNode) {
17492 this.children.forEach(function(child) {
17493 targetParent.insertBefore(child, refNode);
17494 });
17495 };
17496 ContainerBlot2.prototype.optimize = function(context) {
17497 _super.prototype.optimize.call(this, context);
17498 if (this.children.length === 0) {
17499 if (this.statics.defaultChild != null) {
17500 var child = Registry.create(this.statics.defaultChild);
17501 this.appendChild(child);
17502 child.optimize(context);
17503 } else {
17504 this.remove();
17505 }
17506 }
17507 };
17508 ContainerBlot2.prototype.path = function(index, inclusive) {
17509 if (inclusive === void 0) {
17510 inclusive = false;
17511 }
17512 var _a2 = this.children.find(index, inclusive), child = _a2[0], offset = _a2[1];
17513 var position = [[this, index]];
17514 if (child instanceof ContainerBlot2) {
17515 return position.concat(child.path(offset, inclusive));
17516 } else if (child != null) {
17517 position.push([child, offset]);
17518 }
17519 return position;
17520 };
17521 ContainerBlot2.prototype.removeChild = function(child) {
17522 this.children.remove(child);
17523 };
17524 ContainerBlot2.prototype.replace = function(target) {
17525 if (target instanceof ContainerBlot2) {
17526 target.moveChildren(this);
17527 }
17528 _super.prototype.replace.call(this, target);
17529 };
17530 ContainerBlot2.prototype.split = function(index, force) {
17531 if (force === void 0) {
17532 force = false;
17533 }
17534 if (!force) {
17535 if (index === 0)
17536 return this;
17537 if (index === this.length())
17538 return this.next;
17539 }
17540 var after = this.clone();
17541 this.parent.insertBefore(after, this.next);
17542 this.children.forEachAt(index, this.length(), function(child, offset, length) {
17543 child = child.split(offset, force);
17544 after.appendChild(child);
17545 });
17546 return after;
17547 };
17548 ContainerBlot2.prototype.unwrap = function() {
17549 this.moveChildren(this.parent, this.next);
17550 this.remove();
17551 };
17552 ContainerBlot2.prototype.update = function(mutations, context) {
17553 var _this = this;
17554 var addedNodes = [];
17555 var removedNodes = [];
17556 mutations.forEach(function(mutation) {
17557 if (mutation.target === _this.domNode && mutation.type === "childList") {
17558 addedNodes.push.apply(addedNodes, mutation.addedNodes);
17559 removedNodes.push.apply(removedNodes, mutation.removedNodes);
17560 }
17561 });
17562 removedNodes.forEach(function(node) {
17563 if (node.parentNode != null && // @ts-ignore
17564 node.tagName !== "IFRAME" && document.body.compareDocumentPosition(node) & Node.DOCUMENT_POSITION_CONTAINED_BY) {
17565 return;
17566 }
17567 var blot = Registry.find(node);
17568 if (blot == null)
17569 return;
17570 if (blot.domNode.parentNode == null || blot.domNode.parentNode === _this.domNode) {
17571 blot.detach();
17572 }
17573 });
17574 addedNodes.filter(function(node) {
17575 return node.parentNode == _this.domNode;
17576 }).sort(function(a, b2) {
17577 if (a === b2)
17578 return 0;
17579 if (a.compareDocumentPosition(b2) & Node.DOCUMENT_POSITION_FOLLOWING) {
17580 return 1;
17581 }
17582 return -1;
17583 }).forEach(function(node) {
17584 var refBlot = null;
17585 if (node.nextSibling != null) {
17586 refBlot = Registry.find(node.nextSibling);
17587 }
17588 var blot = makeBlot(node);
17589 if (blot.next != refBlot || blot.next == null) {
17590 if (blot.parent != null) {
17591 blot.parent.removeChild(_this);
17592 }
17593 _this.insertBefore(blot, refBlot || void 0);
17594 }
17595 });
17596 };
17597 return ContainerBlot2;
17598 }(shadow_1.default)
17599 );
17600 function makeBlot(node) {
17601 var blot = Registry.find(node);
17602 if (blot == null) {
17603 try {
17604 blot = Registry.create(node);
17605 } catch (e2) {
17606 blot = Registry.create(Registry.Scope.INLINE);
17607 [].slice.call(node.childNodes).forEach(function(child) {
17608 blot.domNode.appendChild(child);
17609 });
17610 if (node.parentNode) {
17611 node.parentNode.replaceChild(blot.domNode, node);
17612 }
17613 blot.attach();
17614 }
17615 }
17616 return blot;
17617 }
17618 exports$12.default = ContainerBlot;
17619 },
17620 /* 18 */
17621 /***/
17622 function(module2, exports$12, __webpack_require__) {
17623 var __extends2 = this && this.__extends || function() {
17624 var extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
17625 d2.__proto__ = b2;
17626 } || function(d2, b2) {
17627 for (var p2 in b2) if (b2.hasOwnProperty(p2)) d2[p2] = b2[p2];
17628 };
17629 return function(d2, b2) {
17630 extendStatics(d2, b2);
17631 function __() {
17632 this.constructor = d2;
17633 }
17634 d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
17635 };
17636 }();
17637 Object.defineProperty(exports$12, "__esModule", { value: true });
17638 var attributor_1 = __webpack_require__(12);
17639 var store_1 = __webpack_require__(31);
17640 var container_1 = __webpack_require__(17);
17641 var Registry = __webpack_require__(1);
17642 var FormatBlot = (
17643 /** @class */
17644 function(_super) {
17645 __extends2(FormatBlot2, _super);
17646 function FormatBlot2(domNode) {
17647 var _this = _super.call(this, domNode) || this;
17648 _this.attributes = new store_1.default(_this.domNode);
17649 return _this;
17650 }
17651 FormatBlot2.formats = function(domNode) {
17652 if (typeof this.tagName === "string") {
17653 return true;
17654 } else if (Array.isArray(this.tagName)) {
17655 return domNode.tagName.toLowerCase();
17656 }
17657 return void 0;
17658 };
17659 FormatBlot2.prototype.format = function(name, value) {
17660 var format = Registry.query(name);
17661 if (format instanceof attributor_1.default) {
17662 this.attributes.attribute(format, value);
17663 } else if (value) {
17664 if (format != null && (name !== this.statics.blotName || this.formats()[name] !== value)) {
17665 this.replaceWith(name, value);
17666 }
17667 }
17668 };
17669 FormatBlot2.prototype.formats = function() {
17670 var formats = this.attributes.values();
17671 var format = this.statics.formats(this.domNode);
17672 if (format != null) {
17673 formats[this.statics.blotName] = format;
17674 }
17675 return formats;
17676 };
17677 FormatBlot2.prototype.replaceWith = function(name, value) {
17678 var replacement = _super.prototype.replaceWith.call(this, name, value);
17679 this.attributes.copy(replacement);
17680 return replacement;
17681 };
17682 FormatBlot2.prototype.update = function(mutations, context) {
17683 var _this = this;
17684 _super.prototype.update.call(this, mutations, context);
17685 if (mutations.some(function(mutation) {
17686 return mutation.target === _this.domNode && mutation.type === "attributes";
17687 })) {
17688 this.attributes.build();
17689 }
17690 };
17691 FormatBlot2.prototype.wrap = function(name, value) {
17692 var wrapper = _super.prototype.wrap.call(this, name, value);
17693 if (wrapper instanceof FormatBlot2 && wrapper.statics.scope === this.statics.scope) {
17694 this.attributes.move(wrapper);
17695 }
17696 return wrapper;
17697 };
17698 return FormatBlot2;
17699 }(container_1.default)
17700 );
17701 exports$12.default = FormatBlot;
17702 },
17703 /* 19 */
17704 /***/
17705 function(module2, exports$12, __webpack_require__) {
17706 var __extends2 = this && this.__extends || function() {
17707 var extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
17708 d2.__proto__ = b2;
17709 } || function(d2, b2) {
17710 for (var p2 in b2) if (b2.hasOwnProperty(p2)) d2[p2] = b2[p2];
17711 };
17712 return function(d2, b2) {
17713 extendStatics(d2, b2);
17714 function __() {
17715 this.constructor = d2;
17716 }
17717 d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
17718 };
17719 }();
17720 Object.defineProperty(exports$12, "__esModule", { value: true });
17721 var shadow_1 = __webpack_require__(30);
17722 var Registry = __webpack_require__(1);
17723 var LeafBlot = (
17724 /** @class */
17725 function(_super) {
17726 __extends2(LeafBlot2, _super);
17727 function LeafBlot2() {
17728 return _super !== null && _super.apply(this, arguments) || this;
17729 }
17730 LeafBlot2.value = function(domNode) {
17731 return true;
17732 };
17733 LeafBlot2.prototype.index = function(node, offset) {
17734 if (this.domNode === node || this.domNode.compareDocumentPosition(node) & Node.DOCUMENT_POSITION_CONTAINED_BY) {
17735 return Math.min(offset, 1);
17736 }
17737 return -1;
17738 };
17739 LeafBlot2.prototype.position = function(index, inclusive) {
17740 var offset = [].indexOf.call(this.parent.domNode.childNodes, this.domNode);
17741 if (index > 0)
17742 offset += 1;
17743 return [this.parent.domNode, offset];
17744 };
17745 LeafBlot2.prototype.value = function() {
17746 var _a2;
17747 return _a2 = {}, _a2[this.statics.blotName] = this.statics.value(this.domNode) || true, _a2;
17748 };
17749 LeafBlot2.scope = Registry.Scope.INLINE_BLOT;
17750 return LeafBlot2;
17751 }(shadow_1.default)
17752 );
17753 exports$12.default = LeafBlot;
17754 },
17755 /* 20 */
17756 /***/
17757 function(module2, exports$12, __webpack_require__) {
17758 var equal = __webpack_require__(11);
17759 var extend = __webpack_require__(3);
17760 var lib2 = {
17761 attributes: {
17762 compose: function(a, b2, keepNull) {
17763 if (typeof a !== "object") a = {};
17764 if (typeof b2 !== "object") b2 = {};
17765 var attributes = extend(true, {}, b2);
17766 if (!keepNull) {
17767 attributes = Object.keys(attributes).reduce(function(copy, key2) {
17768 if (attributes[key2] != null) {
17769 copy[key2] = attributes[key2];
17770 }
17771 return copy;
17772 }, {});
17773 }
17774 for (var key in a) {
17775 if (a[key] !== void 0 && b2[key] === void 0) {
17776 attributes[key] = a[key];
17777 }
17778 }
17779 return Object.keys(attributes).length > 0 ? attributes : void 0;
17780 },
17781 diff: function(a, b2) {
17782 if (typeof a !== "object") a = {};
17783 if (typeof b2 !== "object") b2 = {};
17784 var attributes = Object.keys(a).concat(Object.keys(b2)).reduce(function(attributes2, key) {
17785 if (!equal(a[key], b2[key])) {
17786 attributes2[key] = b2[key] === void 0 ? null : b2[key];
17787 }
17788 return attributes2;
17789 }, {});
17790 return Object.keys(attributes).length > 0 ? attributes : void 0;
17791 },
17792 transform: function(a, b2, priority) {
17793 if (typeof a !== "object") return b2;
17794 if (typeof b2 !== "object") return void 0;
17795 if (!priority) return b2;
17796 var attributes = Object.keys(b2).reduce(function(attributes2, key) {
17797 if (a[key] === void 0) attributes2[key] = b2[key];
17798 return attributes2;
17799 }, {});
17800 return Object.keys(attributes).length > 0 ? attributes : void 0;
17801 }
17802 },
17803 iterator: function(ops) {
17804 return new Iterator(ops);
17805 },
17806 length: function(op) {
17807 if (typeof op["delete"] === "number") {
17808 return op["delete"];
17809 } else if (typeof op.retain === "number") {
17810 return op.retain;
17811 } else {
17812 return typeof op.insert === "string" ? op.insert.length : 1;
17813 }
17814 }
17815 };
17816 function Iterator(ops) {
17817 this.ops = ops;
17818 this.index = 0;
17819 this.offset = 0;
17820 }
17821 Iterator.prototype.hasNext = function() {
17822 return this.peekLength() < Infinity;
17823 };
17824 Iterator.prototype.next = function(length) {
17825 if (!length) length = Infinity;
17826 var nextOp = this.ops[this.index];
17827 if (nextOp) {
17828 var offset = this.offset;
17829 var opLength = lib2.length(nextOp);
17830 if (length >= opLength - offset) {
17831 length = opLength - offset;
17832 this.index += 1;
17833 this.offset = 0;
17834 } else {
17835 this.offset += length;
17836 }
17837 if (typeof nextOp["delete"] === "number") {
17838 return { "delete": length };
17839 } else {
17840 var retOp = {};
17841 if (nextOp.attributes) {
17842 retOp.attributes = nextOp.attributes;
17843 }
17844 if (typeof nextOp.retain === "number") {
17845 retOp.retain = length;
17846 } else if (typeof nextOp.insert === "string") {
17847 retOp.insert = nextOp.insert.substr(offset, length);
17848 } else {
17849 retOp.insert = nextOp.insert;
17850 }
17851 return retOp;
17852 }
17853 } else {
17854 return { retain: Infinity };
17855 }
17856 };
17857 Iterator.prototype.peek = function() {
17858 return this.ops[this.index];
17859 };
17860 Iterator.prototype.peekLength = function() {
17861 if (this.ops[this.index]) {
17862 return lib2.length(this.ops[this.index]) - this.offset;
17863 } else {
17864 return Infinity;
17865 }
17866 };
17867 Iterator.prototype.peekType = function() {
17868 if (this.ops[this.index]) {
17869 if (typeof this.ops[this.index]["delete"] === "number") {
17870 return "delete";
17871 } else if (typeof this.ops[this.index].retain === "number") {
17872 return "retain";
17873 } else {
17874 return "insert";
17875 }
17876 }
17877 return "retain";
17878 };
17879 Iterator.prototype.rest = function() {
17880 if (!this.hasNext()) {
17881 return [];
17882 } else if (this.offset === 0) {
17883 return this.ops.slice(this.index);
17884 } else {
17885 var offset = this.offset;
17886 var index = this.index;
17887 var next = this.next();
17888 var rest = this.ops.slice(this.index);
17889 this.offset = offset;
17890 this.index = index;
17891 return [next].concat(rest);
17892 }
17893 };
17894 module2.exports = lib2;
17895 },
17896 /* 21 */
17897 /***/
17898 function(module2, exports$12) {
17899 var clone = function() {
17900 function _instanceof(obj, type) {
17901 return type != null && obj instanceof type;
17902 }
17903 var nativeMap;
17904 try {
17905 nativeMap = Map;
17906 } catch (_) {
17907 nativeMap = function() {
17908 };
17909 }
17910 var nativeSet;
17911 try {
17912 nativeSet = Set;
17913 } catch (_) {
17914 nativeSet = function() {
17915 };
17916 }
17917 var nativePromise;
17918 try {
17919 nativePromise = Promise;
17920 } catch (_) {
17921 nativePromise = function() {
17922 };
17923 }
17924 function clone2(parent, circular, depth, prototype, includeNonEnumerable) {
17925 if (typeof circular === "object") {
17926 depth = circular.depth;
17927 prototype = circular.prototype;
17928 includeNonEnumerable = circular.includeNonEnumerable;
17929 circular = circular.circular;
17930 }
17931 var allParents = [];
17932 var allChildren = [];
17933 var useBuffer = typeof Buffer != "undefined";
17934 if (typeof circular == "undefined")
17935 circular = true;
17936 if (typeof depth == "undefined")
17937 depth = Infinity;
17938 function _clone(parent2, depth2) {
17939 if (parent2 === null)
17940 return null;
17941 if (depth2 === 0)
17942 return parent2;
17943 var child;
17944 var proto;
17945 if (typeof parent2 != "object") {
17946 return parent2;
17947 }
17948 if (_instanceof(parent2, nativeMap)) {
17949 child = new nativeMap();
17950 } else if (_instanceof(parent2, nativeSet)) {
17951 child = new nativeSet();
17952 } else if (_instanceof(parent2, nativePromise)) {
17953 child = new nativePromise(function(resolve, reject) {
17954 parent2.then(function(value) {
17955 resolve(_clone(value, depth2 - 1));
17956 }, function(err) {
17957 reject(_clone(err, depth2 - 1));
17958 });
17959 });
17960 } else if (clone2.__isArray(parent2)) {
17961 child = [];
17962 } else if (clone2.__isRegExp(parent2)) {
17963 child = new RegExp(parent2.source, __getRegExpFlags(parent2));
17964 if (parent2.lastIndex) child.lastIndex = parent2.lastIndex;
17965 } else if (clone2.__isDate(parent2)) {
17966 child = new Date(parent2.getTime());
17967 } else if (useBuffer && Buffer.isBuffer(parent2)) {
17968 if (Buffer.allocUnsafe) {
17969 child = Buffer.allocUnsafe(parent2.length);
17970 } else {
17971 child = new Buffer(parent2.length);
17972 }
17973 parent2.copy(child);
17974 return child;
17975 } else if (_instanceof(parent2, Error)) {
17976 child = Object.create(parent2);
17977 } else {
17978 if (typeof prototype == "undefined") {
17979 proto = Object.getPrototypeOf(parent2);
17980 child = Object.create(proto);
17981 } else {
17982 child = Object.create(prototype);
17983 proto = prototype;
17984 }
17985 }
17986 if (circular) {
17987 var index = allParents.indexOf(parent2);
17988 if (index != -1) {
17989 return allChildren[index];
17990 }
17991 allParents.push(parent2);
17992 allChildren.push(child);
17993 }
17994 if (_instanceof(parent2, nativeMap)) {
17995 parent2.forEach(function(value, key) {
17996 var keyChild = _clone(key, depth2 - 1);
17997 var valueChild = _clone(value, depth2 - 1);
17998 child.set(keyChild, valueChild);
17999 });
18000 }
18001 if (_instanceof(parent2, nativeSet)) {
18002 parent2.forEach(function(value) {
18003 var entryChild = _clone(value, depth2 - 1);
18004 child.add(entryChild);
18005 });
18006 }
18007 for (var i in parent2) {
18008 var attrs;
18009 if (proto) {
18010 attrs = Object.getOwnPropertyDescriptor(proto, i);
18011 }
18012 if (attrs && attrs.set == null) {
18013 continue;
18014 }
18015 child[i] = _clone(parent2[i], depth2 - 1);
18016 }
18017 if (Object.getOwnPropertySymbols) {
18018 var symbols = Object.getOwnPropertySymbols(parent2);
18019 for (var i = 0; i < symbols.length; i++) {
18020 var symbol = symbols[i];
18021 var descriptor = Object.getOwnPropertyDescriptor(parent2, symbol);
18022 if (descriptor && !descriptor.enumerable && !includeNonEnumerable) {
18023 continue;
18024 }
18025 child[symbol] = _clone(parent2[symbol], depth2 - 1);
18026 if (!descriptor.enumerable) {
18027 Object.defineProperty(child, symbol, {
18028 enumerable: false
18029 });
18030 }
18031 }
18032 }
18033 if (includeNonEnumerable) {
18034 var allPropertyNames = Object.getOwnPropertyNames(parent2);
18035 for (var i = 0; i < allPropertyNames.length; i++) {
18036 var propertyName = allPropertyNames[i];
18037 var descriptor = Object.getOwnPropertyDescriptor(parent2, propertyName);
18038 if (descriptor && descriptor.enumerable) {
18039 continue;
18040 }
18041 child[propertyName] = _clone(parent2[propertyName], depth2 - 1);
18042 Object.defineProperty(child, propertyName, {
18043 enumerable: false
18044 });
18045 }
18046 }
18047 return child;
18048 }
18049 return _clone(parent, depth);
18050 }
18051 clone2.clonePrototype = function clonePrototype(parent) {
18052 if (parent === null)
18053 return null;
18054 var c2 = function() {
18055 };
18056 c2.prototype = parent;
18057 return new c2();
18058 };
18059 function __objToStr(o) {
18060 return Object.prototype.toString.call(o);
18061 }
18062 clone2.__objToStr = __objToStr;
18063 function __isDate(o) {
18064 return typeof o === "object" && __objToStr(o) === "[object Date]";
18065 }
18066 clone2.__isDate = __isDate;
18067 function __isArray(o) {
18068 return typeof o === "object" && __objToStr(o) === "[object Array]";
18069 }
18070 clone2.__isArray = __isArray;
18071 function __isRegExp(o) {
18072 return typeof o === "object" && __objToStr(o) === "[object RegExp]";
18073 }
18074 clone2.__isRegExp = __isRegExp;
18075 function __getRegExpFlags(re2) {
18076 var flags = "";
18077 if (re2.global) flags += "g";
18078 if (re2.ignoreCase) flags += "i";
18079 if (re2.multiline) flags += "m";
18080 return flags;
18081 }
18082 clone2.__getRegExpFlags = __getRegExpFlags;
18083 return clone2;
18084 }();
18085 if (typeof module2 === "object" && module2.exports) {
18086 module2.exports = clone;
18087 }
18088 },
18089 /* 22 */
18090 /***/
18091 function(module2, exports$12, __webpack_require__) {
18092 Object.defineProperty(exports$12, "__esModule", {
18093 value: true
18094 });
18095 var _slicedToArray2 = /* @__PURE__ */ function() {
18096 function sliceIterator(arr, i) {
18097 var _arr = [];
18098 var _n = true;
18099 var _d2 = false;
18100 var _e2 = void 0;
18101 try {
18102 for (var _i2 = arr[Symbol.iterator](), _s; !(_n = (_s = _i2.next()).done); _n = true) {
18103 _arr.push(_s.value);
18104 if (i && _arr.length === i) break;
18105 }
18106 } catch (err) {
18107 _d2 = true;
18108 _e2 = err;
18109 } finally {
18110 try {
18111 if (!_n && _i2["return"]) _i2["return"]();
18112 } finally {
18113 if (_d2) throw _e2;
18114 }
18115 }
18116 return _arr;
18117 }
18118 return function(arr, i) {
18119 if (Array.isArray(arr)) {
18120 return arr;
18121 } else if (Symbol.iterator in Object(arr)) {
18122 return sliceIterator(arr, i);
18123 } else {
18124 throw new TypeError("Invalid attempt to destructure non-iterable instance");
18125 }
18126 };
18127 }();
18128 var _createClass2 = /* @__PURE__ */ function() {
18129 function defineProperties(target, props) {
18130 for (var i = 0; i < props.length; i++) {
18131 var descriptor = props[i];
18132 descriptor.enumerable = descriptor.enumerable || false;
18133 descriptor.configurable = true;
18134 if ("value" in descriptor) descriptor.writable = true;
18135 Object.defineProperty(target, descriptor.key, descriptor);
18136 }
18137 }
18138 return function(Constructor, protoProps, staticProps) {
18139 if (protoProps) defineProperties(Constructor.prototype, protoProps);
18140 if (staticProps) defineProperties(Constructor, staticProps);
18141 return Constructor;
18142 };
18143 }();
18144 var _get = function get(object, property, receiver) {
18145 if (object === null) object = Function.prototype;
18146 var desc = Object.getOwnPropertyDescriptor(object, property);
18147 if (desc === void 0) {
18148 var parent = Object.getPrototypeOf(object);
18149 if (parent === null) {
18150 return void 0;
18151 } else {
18152 return get(parent, property, receiver);
18153 }
18154 } else if ("value" in desc) {
18155 return desc.value;
18156 } else {
18157 var getter = desc.get;
18158 if (getter === void 0) {
18159 return void 0;
18160 }
18161 return getter.call(receiver);
18162 }
18163 };
18164 var _parchment = __webpack_require__(0);
18165 var _parchment2 = _interopRequireDefault(_parchment);
18166 var _emitter = __webpack_require__(8);
18167 var _emitter2 = _interopRequireDefault(_emitter);
18168 var _block = __webpack_require__(4);
18169 var _block2 = _interopRequireDefault(_block);
18170 var _break = __webpack_require__(16);
18171 var _break2 = _interopRequireDefault(_break);
18172 var _code = __webpack_require__(13);
18173 var _code2 = _interopRequireDefault(_code);
18174 var _container = __webpack_require__(25);
18175 var _container2 = _interopRequireDefault(_container);
18176 function _interopRequireDefault(obj) {
18177 return obj && obj.__esModule ? obj : { default: obj };
18178 }
18179 function _classCallCheck2(instance, Constructor) {
18180 if (!(instance instanceof Constructor)) {
18181 throw new TypeError("Cannot call a class as a function");
18182 }
18183 }
18184 function _possibleConstructorReturn2(self2, call) {
18185 if (!self2) {
18186 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
18187 }
18188 return call && (typeof call === "object" || typeof call === "function") ? call : self2;
18189 }
18190 function _inherits2(subClass, superClass) {
18191 if (typeof superClass !== "function" && superClass !== null) {
18192 throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
18193 }
18194 subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
18195 if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
18196 }
18197 function isLine(blot) {
18198 return blot instanceof _block2.default || blot instanceof _block.BlockEmbed;
18199 }
18200 var Scroll = function(_Parchment$Scroll) {
18201 _inherits2(Scroll2, _Parchment$Scroll);
18202 function Scroll2(domNode, config) {
18203 _classCallCheck2(this, Scroll2);
18204 var _this = _possibleConstructorReturn2(this, (Scroll2.__proto__ || Object.getPrototypeOf(Scroll2)).call(this, domNode));
18205 _this.emitter = config.emitter;
18206 if (Array.isArray(config.whitelist)) {
18207 _this.whitelist = config.whitelist.reduce(function(whitelist, format) {
18208 whitelist[format] = true;
18209 return whitelist;
18210 }, {});
18211 }
18212 _this.domNode.addEventListener("DOMNodeInserted", function() {
18213 });
18214 _this.optimize();
18215 _this.enable();
18216 return _this;
18217 }
18218 _createClass2(Scroll2, [{
18219 key: "batchStart",
18220 value: function batchStart() {
18221 this.batch = true;
18222 }
18223 }, {
18224 key: "batchEnd",
18225 value: function batchEnd() {
18226 this.batch = false;
18227 this.optimize();
18228 }
18229 }, {
18230 key: "deleteAt",
18231 value: function deleteAt(index, length) {
18232 var _line = this.line(index), _line2 = _slicedToArray2(_line, 2), first = _line2[0], offset = _line2[1];
18233 var _line3 = this.line(index + length), _line4 = _slicedToArray2(_line3, 1), last = _line4[0];
18234 _get(Scroll2.prototype.__proto__ || Object.getPrototypeOf(Scroll2.prototype), "deleteAt", this).call(this, index, length);
18235 if (last != null && first !== last && offset > 0) {
18236 if (first instanceof _block.BlockEmbed || last instanceof _block.BlockEmbed) {
18237 this.optimize();
18238 return;
18239 }
18240 if (first instanceof _code2.default) {
18241 var newlineIndex = first.newlineIndex(first.length(), true);
18242 if (newlineIndex > -1) {
18243 first = first.split(newlineIndex + 1);
18244 if (first === last) {
18245 this.optimize();
18246 return;
18247 }
18248 }
18249 } else if (last instanceof _code2.default) {
18250 var _newlineIndex = last.newlineIndex(0);
18251 if (_newlineIndex > -1) {
18252 last.split(_newlineIndex + 1);
18253 }
18254 }
18255 var ref = last.children.head instanceof _break2.default ? null : last.children.head;
18256 first.moveChildren(last, ref);
18257 first.remove();
18258 }
18259 this.optimize();
18260 }
18261 }, {
18262 key: "enable",
18263 value: function enable() {
18264 var enabled = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : true;
18265 this.domNode.setAttribute("contenteditable", enabled);
18266 }
18267 }, {
18268 key: "formatAt",
18269 value: function formatAt(index, length, format, value) {
18270 if (this.whitelist != null && !this.whitelist[format]) return;
18271 _get(Scroll2.prototype.__proto__ || Object.getPrototypeOf(Scroll2.prototype), "formatAt", this).call(this, index, length, format, value);
18272 this.optimize();
18273 }
18274 }, {
18275 key: "insertAt",
18276 value: function insertAt(index, value, def) {
18277 if (def != null && this.whitelist != null && !this.whitelist[value]) return;
18278 if (index >= this.length()) {
18279 if (def == null || _parchment2.default.query(value, _parchment2.default.Scope.BLOCK) == null) {
18280 var blot = _parchment2.default.create(this.statics.defaultChild);
18281 this.appendChild(blot);
18282 if (def == null && value.endsWith("\n")) {
18283 value = value.slice(0, -1);
18284 }
18285 blot.insertAt(0, value, def);
18286 } else {
18287 var embed = _parchment2.default.create(value, def);
18288 this.appendChild(embed);
18289 }
18290 } else {
18291 _get(Scroll2.prototype.__proto__ || Object.getPrototypeOf(Scroll2.prototype), "insertAt", this).call(this, index, value, def);
18292 }
18293 this.optimize();
18294 }
18295 }, {
18296 key: "insertBefore",
18297 value: function insertBefore(blot, ref) {
18298 if (blot.statics.scope === _parchment2.default.Scope.INLINE_BLOT) {
18299 var wrapper = _parchment2.default.create(this.statics.defaultChild);
18300 wrapper.appendChild(blot);
18301 blot = wrapper;
18302 }
18303 _get(Scroll2.prototype.__proto__ || Object.getPrototypeOf(Scroll2.prototype), "insertBefore", this).call(this, blot, ref);
18304 }
18305 }, {
18306 key: "leaf",
18307 value: function leaf(index) {
18308 return this.path(index).pop() || [null, -1];
18309 }
18310 }, {
18311 key: "line",
18312 value: function line(index) {
18313 if (index === this.length()) {
18314 return this.line(index - 1);
18315 }
18316 return this.descendant(isLine, index);
18317 }
18318 }, {
18319 key: "lines",
18320 value: function lines() {
18321 var index = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
18322 var length = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE;
18323 var getLines = function getLines2(blot, index2, length2) {
18324 var lines2 = [], lengthLeft = length2;
18325 blot.children.forEachAt(index2, length2, function(child, index3, length3) {
18326 if (isLine(child)) {
18327 lines2.push(child);
18328 } else if (child instanceof _parchment2.default.Container) {
18329 lines2 = lines2.concat(getLines2(child, index3, lengthLeft));
18330 }
18331 lengthLeft -= length3;
18332 });
18333 return lines2;
18334 };
18335 return getLines(this, index, length);
18336 }
18337 }, {
18338 key: "optimize",
18339 value: function optimize() {
18340 var mutations = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
18341 var context = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
18342 if (this.batch === true) return;
18343 _get(Scroll2.prototype.__proto__ || Object.getPrototypeOf(Scroll2.prototype), "optimize", this).call(this, mutations, context);
18344 if (mutations.length > 0) {
18345 this.emitter.emit(_emitter2.default.events.SCROLL_OPTIMIZE, mutations, context);
18346 }
18347 }
18348 }, {
18349 key: "path",
18350 value: function path(index) {
18351 return _get(Scroll2.prototype.__proto__ || Object.getPrototypeOf(Scroll2.prototype), "path", this).call(this, index).slice(1);
18352 }
18353 }, {
18354 key: "update",
18355 value: function update(mutations) {
18356 if (this.batch === true) return;
18357 var source = _emitter2.default.sources.USER;
18358 if (typeof mutations === "string") {
18359 source = mutations;
18360 }
18361 if (!Array.isArray(mutations)) {
18362 mutations = this.observer.takeRecords();
18363 }
18364 if (mutations.length > 0) {
18365 this.emitter.emit(_emitter2.default.events.SCROLL_BEFORE_UPDATE, source, mutations);
18366 }
18367 _get(Scroll2.prototype.__proto__ || Object.getPrototypeOf(Scroll2.prototype), "update", this).call(this, mutations.concat([]));
18368 if (mutations.length > 0) {
18369 this.emitter.emit(_emitter2.default.events.SCROLL_UPDATE, source, mutations);
18370 }
18371 }
18372 }]);
18373 return Scroll2;
18374 }(_parchment2.default.Scroll);
18375 Scroll.blotName = "scroll";
18376 Scroll.className = "ql-editor";
18377 Scroll.tagName = "DIV";
18378 Scroll.defaultChild = "block";
18379 Scroll.allowedChildren = [_block2.default, _block.BlockEmbed, _container2.default];
18380 exports$12.default = Scroll;
18381 },
18382 /* 23 */
18383 /***/
18384 function(module2, exports$12, __webpack_require__) {
18385 Object.defineProperty(exports$12, "__esModule", {
18386 value: true
18387 });
18388 exports$12.SHORTKEY = exports$12.default = void 0;
18389 var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
18390 return typeof obj;
18391 } : function(obj) {
18392 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
18393 };
18394 var _slicedToArray2 = /* @__PURE__ */ function() {
18395 function sliceIterator(arr, i) {
18396 var _arr = [];
18397 var _n = true;
18398 var _d2 = false;
18399 var _e2 = void 0;
18400 try {
18401 for (var _i2 = arr[Symbol.iterator](), _s; !(_n = (_s = _i2.next()).done); _n = true) {
18402 _arr.push(_s.value);
18403 if (i && _arr.length === i) break;
18404 }
18405 } catch (err) {
18406 _d2 = true;
18407 _e2 = err;
18408 } finally {
18409 try {
18410 if (!_n && _i2["return"]) _i2["return"]();
18411 } finally {
18412 if (_d2) throw _e2;
18413 }
18414 }
18415 return _arr;
18416 }
18417 return function(arr, i) {
18418 if (Array.isArray(arr)) {
18419 return arr;
18420 } else if (Symbol.iterator in Object(arr)) {
18421 return sliceIterator(arr, i);
18422 } else {
18423 throw new TypeError("Invalid attempt to destructure non-iterable instance");
18424 }
18425 };
18426 }();
18427 var _createClass2 = /* @__PURE__ */ function() {
18428 function defineProperties(target, props) {
18429 for (var i = 0; i < props.length; i++) {
18430 var descriptor = props[i];
18431 descriptor.enumerable = descriptor.enumerable || false;
18432 descriptor.configurable = true;
18433 if ("value" in descriptor) descriptor.writable = true;
18434 Object.defineProperty(target, descriptor.key, descriptor);
18435 }
18436 }
18437 return function(Constructor, protoProps, staticProps) {
18438 if (protoProps) defineProperties(Constructor.prototype, protoProps);
18439 if (staticProps) defineProperties(Constructor, staticProps);
18440 return Constructor;
18441 };
18442 }();
18443 var _clone = __webpack_require__(21);
18444 var _clone2 = _interopRequireDefault(_clone);
18445 var _deepEqual = __webpack_require__(11);
18446 var _deepEqual2 = _interopRequireDefault(_deepEqual);
18447 var _extend = __webpack_require__(3);
18448 var _extend2 = _interopRequireDefault(_extend);
18449 var _quillDelta = __webpack_require__(2);
18450 var _quillDelta2 = _interopRequireDefault(_quillDelta);
18451 var _op = __webpack_require__(20);
18452 var _op2 = _interopRequireDefault(_op);
18453 var _parchment = __webpack_require__(0);
18454 var _parchment2 = _interopRequireDefault(_parchment);
18455 var _quill = __webpack_require__(5);
18456 var _quill2 = _interopRequireDefault(_quill);
18457 var _logger = __webpack_require__(10);
18458 var _logger2 = _interopRequireDefault(_logger);
18459 var _module = __webpack_require__(9);
18460 var _module2 = _interopRequireDefault(_module);
18461 function _interopRequireDefault(obj) {
18462 return obj && obj.__esModule ? obj : { default: obj };
18463 }
18464 function _defineProperty2(obj, key, value) {
18465 if (key in obj) {
18466 Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
18467 } else {
18468 obj[key] = value;
18469 }
18470 return obj;
18471 }
18472 function _classCallCheck2(instance, Constructor) {
18473 if (!(instance instanceof Constructor)) {
18474 throw new TypeError("Cannot call a class as a function");
18475 }
18476 }
18477 function _possibleConstructorReturn2(self2, call) {
18478 if (!self2) {
18479 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
18480 }
18481 return call && (typeof call === "object" || typeof call === "function") ? call : self2;
18482 }
18483 function _inherits2(subClass, superClass) {
18484 if (typeof superClass !== "function" && superClass !== null) {
18485 throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
18486 }
18487 subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
18488 if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
18489 }
18490 var debug = (0, _logger2.default)("quill:keyboard");
18491 var SHORTKEY = /Mac/i.test(navigator.platform) ? "metaKey" : "ctrlKey";
18492 var Keyboard = function(_Module) {
18493 _inherits2(Keyboard2, _Module);
18494 _createClass2(Keyboard2, null, [{
18495 key: "match",
18496 value: function match(evt, binding) {
18497 binding = normalize(binding);
18498 if (["altKey", "ctrlKey", "metaKey", "shiftKey"].some(function(key) {
18499 return !!binding[key] !== evt[key] && binding[key] !== null;
18500 })) {
18501 return false;
18502 }
18503 return binding.key === (evt.which || evt.keyCode);
18504 }
18505 }]);
18506 function Keyboard2(quill2, options) {
18507 _classCallCheck2(this, Keyboard2);
18508 var _this = _possibleConstructorReturn2(this, (Keyboard2.__proto__ || Object.getPrototypeOf(Keyboard2)).call(this, quill2, options));
18509 _this.bindings = {};
18510 Object.keys(_this.options.bindings).forEach(function(name) {
18511 if (name === "list autofill" && quill2.scroll.whitelist != null && !quill2.scroll.whitelist["list"]) {
18512 return;
18513 }
18514 if (_this.options.bindings[name]) {
18515 _this.addBinding(_this.options.bindings[name]);
18516 }
18517 });
18518 _this.addBinding({ key: Keyboard2.keys.ENTER, shiftKey: null }, handleEnter);
18519 _this.addBinding({ key: Keyboard2.keys.ENTER, metaKey: null, ctrlKey: null, altKey: null }, function() {
18520 });
18521 if (/Firefox/i.test(navigator.userAgent)) {
18522 _this.addBinding({ key: Keyboard2.keys.BACKSPACE }, { collapsed: true }, handleBackspace);
18523 _this.addBinding({ key: Keyboard2.keys.DELETE }, { collapsed: true }, handleDelete);
18524 } else {
18525 _this.addBinding({ key: Keyboard2.keys.BACKSPACE }, { collapsed: true, prefix: /^.?$/ }, handleBackspace);
18526 _this.addBinding({ key: Keyboard2.keys.DELETE }, { collapsed: true, suffix: /^.?$/ }, handleDelete);
18527 }
18528 _this.addBinding({ key: Keyboard2.keys.BACKSPACE }, { collapsed: false }, handleDeleteRange);
18529 _this.addBinding({ key: Keyboard2.keys.DELETE }, { collapsed: false }, handleDeleteRange);
18530 _this.addBinding({ key: Keyboard2.keys.BACKSPACE, altKey: null, ctrlKey: null, metaKey: null, shiftKey: null }, { collapsed: true, offset: 0 }, handleBackspace);
18531 _this.listen();
18532 return _this;
18533 }
18534 _createClass2(Keyboard2, [{
18535 key: "addBinding",
18536 value: function addBinding(key) {
18537 var context = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
18538 var handler = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
18539 var binding = normalize(key);
18540 if (binding == null || binding.key == null) {
18541 return debug.warn("Attempted to add invalid keyboard binding", binding);
18542 }
18543 if (typeof context === "function") {
18544 context = { handler: context };
18545 }
18546 if (typeof handler === "function") {
18547 handler = { handler };
18548 }
18549 binding = (0, _extend2.default)(binding, context, handler);
18550 this.bindings[binding.key] = this.bindings[binding.key] || [];
18551 this.bindings[binding.key].push(binding);
18552 }
18553 }, {
18554 key: "listen",
18555 value: function listen() {
18556 var _this2 = this;
18557 this.quill.root.addEventListener("keydown", function(evt) {
18558 if (evt.defaultPrevented) return;
18559 var which = evt.which || evt.keyCode;
18560 var bindings = (_this2.bindings[which] || []).filter(function(binding) {
18561 return Keyboard2.match(evt, binding);
18562 });
18563 if (bindings.length === 0) return;
18564 var range = _this2.quill.getSelection();
18565 if (range == null || !_this2.quill.hasFocus()) return;
18566 var _quill$getLine = _this2.quill.getLine(range.index), _quill$getLine2 = _slicedToArray2(_quill$getLine, 2), line = _quill$getLine2[0], offset = _quill$getLine2[1];
18567 var _quill$getLeaf = _this2.quill.getLeaf(range.index), _quill$getLeaf2 = _slicedToArray2(_quill$getLeaf, 2), leafStart = _quill$getLeaf2[0], offsetStart = _quill$getLeaf2[1];
18568 var _ref = range.length === 0 ? [leafStart, offsetStart] : _this2.quill.getLeaf(range.index + range.length), _ref2 = _slicedToArray2(_ref, 2), leafEnd = _ref2[0], offsetEnd = _ref2[1];
18569 var prefixText = leafStart instanceof _parchment2.default.Text ? leafStart.value().slice(0, offsetStart) : "";
18570 var suffixText = leafEnd instanceof _parchment2.default.Text ? leafEnd.value().slice(offsetEnd) : "";
18571 var curContext = {
18572 collapsed: range.length === 0,
18573 empty: range.length === 0 && line.length() <= 1,
18574 format: _this2.quill.getFormat(range),
18575 offset,
18576 prefix: prefixText,
18577 suffix: suffixText
18578 };
18579 var prevented = bindings.some(function(binding) {
18580 if (binding.collapsed != null && binding.collapsed !== curContext.collapsed) return false;
18581 if (binding.empty != null && binding.empty !== curContext.empty) return false;
18582 if (binding.offset != null && binding.offset !== curContext.offset) return false;
18583 if (Array.isArray(binding.format)) {
18584 if (binding.format.every(function(name) {
18585 return curContext.format[name] == null;
18586 })) {
18587 return false;
18588 }
18589 } else if (_typeof2(binding.format) === "object") {
18590 if (!Object.keys(binding.format).every(function(name) {
18591 if (binding.format[name] === true) return curContext.format[name] != null;
18592 if (binding.format[name] === false) return curContext.format[name] == null;
18593 return (0, _deepEqual2.default)(binding.format[name], curContext.format[name]);
18594 })) {
18595 return false;
18596 }
18597 }
18598 if (binding.prefix != null && !binding.prefix.test(curContext.prefix)) return false;
18599 if (binding.suffix != null && !binding.suffix.test(curContext.suffix)) return false;
18600 return binding.handler.call(_this2, range, curContext) !== true;
18601 });
18602 if (prevented) {
18603 evt.preventDefault();
18604 }
18605 });
18606 }
18607 }]);
18608 return Keyboard2;
18609 }(_module2.default);
18610 Keyboard.keys = {
18611 BACKSPACE: 8,
18612 TAB: 9,
18613 ENTER: 13,
18614 ESCAPE: 27,
18615 LEFT: 37,
18616 UP: 38,
18617 RIGHT: 39,
18618 DOWN: 40,
18619 DELETE: 46
18620 };
18621 Keyboard.DEFAULTS = {
18622 bindings: {
18623 "bold": makeFormatHandler("bold"),
18624 "italic": makeFormatHandler("italic"),
18625 "underline": makeFormatHandler("underline"),
18626 "indent": {
18627 // highlight tab or tab at beginning of list, indent or blockquote
18628 key: Keyboard.keys.TAB,
18629 format: ["blockquote", "indent", "list"],
18630 handler: function handler(range, context) {
18631 if (context.collapsed && context.offset !== 0) return true;
18632 this.quill.format("indent", "+1", _quill2.default.sources.USER);
18633 }
18634 },
18635 "outdent": {
18636 key: Keyboard.keys.TAB,
18637 shiftKey: true,
18638 format: ["blockquote", "indent", "list"],
18639 // highlight tab or tab at beginning of list, indent or blockquote
18640 handler: function handler(range, context) {
18641 if (context.collapsed && context.offset !== 0) return true;
18642 this.quill.format("indent", "-1", _quill2.default.sources.USER);
18643 }
18644 },
18645 "outdent backspace": {
18646 key: Keyboard.keys.BACKSPACE,
18647 collapsed: true,
18648 shiftKey: null,
18649 metaKey: null,
18650 ctrlKey: null,
18651 altKey: null,
18652 format: ["indent", "list"],
18653 offset: 0,
18654 handler: function handler(range, context) {
18655 if (context.format.indent != null) {
18656 this.quill.format("indent", "-1", _quill2.default.sources.USER);
18657 } else if (context.format.list != null) {
18658 this.quill.format("list", false, _quill2.default.sources.USER);
18659 }
18660 }
18661 },
18662 "indent code-block": makeCodeBlockHandler(true),
18663 "outdent code-block": makeCodeBlockHandler(false),
18664 "remove tab": {
18665 key: Keyboard.keys.TAB,
18666 shiftKey: true,
18667 collapsed: true,
18668 prefix: /\t$/,
18669 handler: function handler(range) {
18670 this.quill.deleteText(range.index - 1, 1, _quill2.default.sources.USER);
18671 }
18672 },
18673 "tab": {
18674 key: Keyboard.keys.TAB,
18675 handler: function handler(range) {
18676 this.quill.history.cutoff();
18677 var delta = new _quillDelta2.default().retain(range.index).delete(range.length).insert(" ");
18678 this.quill.updateContents(delta, _quill2.default.sources.USER);
18679 this.quill.history.cutoff();
18680 this.quill.setSelection(range.index + 1, _quill2.default.sources.SILENT);
18681 }
18682 },
18683 "list empty enter": {
18684 key: Keyboard.keys.ENTER,
18685 collapsed: true,
18686 format: ["list"],
18687 empty: true,
18688 handler: function handler(range, context) {
18689 this.quill.format("list", false, _quill2.default.sources.USER);
18690 if (context.format.indent) {
18691 this.quill.format("indent", false, _quill2.default.sources.USER);
18692 }
18693 }
18694 },
18695 "checklist enter": {
18696 key: Keyboard.keys.ENTER,
18697 collapsed: true,
18698 format: { list: "checked" },
18699 handler: function handler(range) {
18700 var _quill$getLine3 = this.quill.getLine(range.index), _quill$getLine4 = _slicedToArray2(_quill$getLine3, 2), line = _quill$getLine4[0], offset = _quill$getLine4[1];
18701 var formats = (0, _extend2.default)({}, line.formats(), { list: "checked" });
18702 var delta = new _quillDelta2.default().retain(range.index).insert("\n", formats).retain(line.length() - offset - 1).retain(1, { list: "unchecked" });
18703 this.quill.updateContents(delta, _quill2.default.sources.USER);
18704 this.quill.setSelection(range.index + 1, _quill2.default.sources.SILENT);
18705 this.quill.scrollIntoView();
18706 }
18707 },
18708 "header enter": {
18709 key: Keyboard.keys.ENTER,
18710 collapsed: true,
18711 format: ["header"],
18712 suffix: /^$/,
18713 handler: function handler(range, context) {
18714 var _quill$getLine5 = this.quill.getLine(range.index), _quill$getLine6 = _slicedToArray2(_quill$getLine5, 2), line = _quill$getLine6[0], offset = _quill$getLine6[1];
18715 var delta = new _quillDelta2.default().retain(range.index).insert("\n", context.format).retain(line.length() - offset - 1).retain(1, { header: null });
18716 this.quill.updateContents(delta, _quill2.default.sources.USER);
18717 this.quill.setSelection(range.index + 1, _quill2.default.sources.SILENT);
18718 this.quill.scrollIntoView();
18719 }
18720 },
18721 "list autofill": {
18722 key: " ",
18723 collapsed: true,
18724 format: { list: false },
18725 prefix: /^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,
18726 handler: function handler(range, context) {
18727 var length = context.prefix.length;
18728 var _quill$getLine7 = this.quill.getLine(range.index), _quill$getLine8 = _slicedToArray2(_quill$getLine7, 2), line = _quill$getLine8[0], offset = _quill$getLine8[1];
18729 if (offset > length) return true;
18730 var value = void 0;
18731 switch (context.prefix.trim()) {
18732 case "[]":
18733 case "[ ]":
18734 value = "unchecked";
18735 break;
18736 case "[x]":
18737 value = "checked";
18738 break;
18739 case "-":
18740 case "*":
18741 value = "bullet";
18742 break;
18743 default:
18744 value = "ordered";
18745 }
18746 this.quill.insertText(range.index, " ", _quill2.default.sources.USER);
18747 this.quill.history.cutoff();
18748 var delta = new _quillDelta2.default().retain(range.index - offset).delete(length + 1).retain(line.length() - 2 - offset).retain(1, { list: value });
18749 this.quill.updateContents(delta, _quill2.default.sources.USER);
18750 this.quill.history.cutoff();
18751 this.quill.setSelection(range.index - length, _quill2.default.sources.SILENT);
18752 }
18753 },
18754 "code exit": {
18755 key: Keyboard.keys.ENTER,
18756 collapsed: true,
18757 format: ["code-block"],
18758 prefix: /\n\n$/,
18759 suffix: /^\s+$/,
18760 handler: function handler(range) {
18761 var _quill$getLine9 = this.quill.getLine(range.index), _quill$getLine10 = _slicedToArray2(_quill$getLine9, 2), line = _quill$getLine10[0], offset = _quill$getLine10[1];
18762 var delta = new _quillDelta2.default().retain(range.index + line.length() - offset - 2).retain(1, { "code-block": null }).delete(1);
18763 this.quill.updateContents(delta, _quill2.default.sources.USER);
18764 }
18765 },
18766 "embed left": makeEmbedArrowHandler(Keyboard.keys.LEFT, false),
18767 "embed left shift": makeEmbedArrowHandler(Keyboard.keys.LEFT, true),
18768 "embed right": makeEmbedArrowHandler(Keyboard.keys.RIGHT, false),
18769 "embed right shift": makeEmbedArrowHandler(Keyboard.keys.RIGHT, true)
18770 }
18771 };
18772 function makeEmbedArrowHandler(key, shiftKey) {
18773 var _ref3;
18774 var where = key === Keyboard.keys.LEFT ? "prefix" : "suffix";
18775 return _ref3 = {
18776 key,
18777 shiftKey,
18778 altKey: null
18779 }, _defineProperty2(_ref3, where, /^$/), _defineProperty2(_ref3, "handler", function handler(range) {
18780 var index = range.index;
18781 if (key === Keyboard.keys.RIGHT) {
18782 index += range.length + 1;
18783 }
18784 var _quill$getLeaf3 = this.quill.getLeaf(index), _quill$getLeaf4 = _slicedToArray2(_quill$getLeaf3, 1), leaf = _quill$getLeaf4[0];
18785 if (!(leaf instanceof _parchment2.default.Embed)) return true;
18786 if (key === Keyboard.keys.LEFT) {
18787 if (shiftKey) {
18788 this.quill.setSelection(range.index - 1, range.length + 1, _quill2.default.sources.USER);
18789 } else {
18790 this.quill.setSelection(range.index - 1, _quill2.default.sources.USER);
18791 }
18792 } else {
18793 if (shiftKey) {
18794 this.quill.setSelection(range.index, range.length + 1, _quill2.default.sources.USER);
18795 } else {
18796 this.quill.setSelection(range.index + range.length + 1, _quill2.default.sources.USER);
18797 }
18798 }
18799 return false;
18800 }), _ref3;
18801 }
18802 function handleBackspace(range, context) {
18803 if (range.index === 0 || this.quill.getLength() <= 1) return;
18804 var _quill$getLine11 = this.quill.getLine(range.index), _quill$getLine12 = _slicedToArray2(_quill$getLine11, 1), line = _quill$getLine12[0];
18805 var formats = {};
18806 if (context.offset === 0) {
18807 var _quill$getLine13 = this.quill.getLine(range.index - 1), _quill$getLine14 = _slicedToArray2(_quill$getLine13, 1), prev = _quill$getLine14[0];
18808 if (prev != null && prev.length() > 1) {
18809 var curFormats = line.formats();
18810 var prevFormats = this.quill.getFormat(range.index - 1, 1);
18811 formats = _op2.default.attributes.diff(curFormats, prevFormats) || {};
18812 }
18813 }
18814 var length = /[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(context.prefix) ? 2 : 1;
18815 this.quill.deleteText(range.index - length, length, _quill2.default.sources.USER);
18816 if (Object.keys(formats).length > 0) {
18817 this.quill.formatLine(range.index - length, length, formats, _quill2.default.sources.USER);
18818 }
18819 this.quill.focus();
18820 }
18821 function handleDelete(range, context) {
18822 var length = /^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(context.suffix) ? 2 : 1;
18823 if (range.index >= this.quill.getLength() - length) return;
18824 var formats = {}, nextLength = 0;
18825 var _quill$getLine15 = this.quill.getLine(range.index), _quill$getLine16 = _slicedToArray2(_quill$getLine15, 1), line = _quill$getLine16[0];
18826 if (context.offset >= line.length() - 1) {
18827 var _quill$getLine17 = this.quill.getLine(range.index + 1), _quill$getLine18 = _slicedToArray2(_quill$getLine17, 1), next = _quill$getLine18[0];
18828 if (next) {
18829 var curFormats = line.formats();
18830 var nextFormats = this.quill.getFormat(range.index, 1);
18831 formats = _op2.default.attributes.diff(curFormats, nextFormats) || {};
18832 nextLength = next.length();
18833 }
18834 }
18835 this.quill.deleteText(range.index, length, _quill2.default.sources.USER);
18836 if (Object.keys(formats).length > 0) {
18837 this.quill.formatLine(range.index + nextLength - 1, length, formats, _quill2.default.sources.USER);
18838 }
18839 }
18840 function handleDeleteRange(range) {
18841 var lines = this.quill.getLines(range);
18842 var formats = {};
18843 if (lines.length > 1) {
18844 var firstFormats = lines[0].formats();
18845 var lastFormats = lines[lines.length - 1].formats();
18846 formats = _op2.default.attributes.diff(lastFormats, firstFormats) || {};
18847 }
18848 this.quill.deleteText(range, _quill2.default.sources.USER);
18849 if (Object.keys(formats).length > 0) {
18850 this.quill.formatLine(range.index, 1, formats, _quill2.default.sources.USER);
18851 }
18852 this.quill.setSelection(range.index, _quill2.default.sources.SILENT);
18853 this.quill.focus();
18854 }
18855 function handleEnter(range, context) {
18856 var _this3 = this;
18857 if (range.length > 0) {
18858 this.quill.scroll.deleteAt(range.index, range.length);
18859 }
18860 var lineFormats = Object.keys(context.format).reduce(function(lineFormats2, format) {
18861 if (_parchment2.default.query(format, _parchment2.default.Scope.BLOCK) && !Array.isArray(context.format[format])) {
18862 lineFormats2[format] = context.format[format];
18863 }
18864 return lineFormats2;
18865 }, {});
18866 this.quill.insertText(range.index, "\n", lineFormats, _quill2.default.sources.USER);
18867 this.quill.setSelection(range.index + 1, _quill2.default.sources.SILENT);
18868 this.quill.focus();
18869 Object.keys(context.format).forEach(function(name) {
18870 if (lineFormats[name] != null) return;
18871 if (Array.isArray(context.format[name])) return;
18872 if (name === "link") return;
18873 _this3.quill.format(name, context.format[name], _quill2.default.sources.USER);
18874 });
18875 }
18876 function makeCodeBlockHandler(indent) {
18877 return {
18878 key: Keyboard.keys.TAB,
18879 shiftKey: !indent,
18880 format: { "code-block": true },
18881 handler: function handler(range) {
18882 var CodeBlock = _parchment2.default.query("code-block");
18883 var index = range.index, length = range.length;
18884 var _quill$scroll$descend = this.quill.scroll.descendant(CodeBlock, index), _quill$scroll$descend2 = _slicedToArray2(_quill$scroll$descend, 2), block = _quill$scroll$descend2[0], offset = _quill$scroll$descend2[1];
18885 if (block == null) return;
18886 var scrollIndex = this.quill.getIndex(block);
18887 var start = block.newlineIndex(offset, true) + 1;
18888 var end = block.newlineIndex(scrollIndex + offset + length);
18889 var lines = block.domNode.textContent.slice(start, end).split("\n");
18890 offset = 0;
18891 lines.forEach(function(line, i) {
18892 if (indent) {
18893 block.insertAt(start + offset, CodeBlock.TAB);
18894 offset += CodeBlock.TAB.length;
18895 if (i === 0) {
18896 index += CodeBlock.TAB.length;
18897 } else {
18898 length += CodeBlock.TAB.length;
18899 }
18900 } else if (line.startsWith(CodeBlock.TAB)) {
18901 block.deleteAt(start + offset, CodeBlock.TAB.length);
18902 offset -= CodeBlock.TAB.length;
18903 if (i === 0) {
18904 index -= CodeBlock.TAB.length;
18905 } else {
18906 length -= CodeBlock.TAB.length;
18907 }
18908 }
18909 offset += line.length + 1;
18910 });
18911 this.quill.update(_quill2.default.sources.USER);
18912 this.quill.setSelection(index, length, _quill2.default.sources.SILENT);
18913 }
18914 };
18915 }
18916 function makeFormatHandler(format) {
18917 return {
18918 key: format[0].toUpperCase(),
18919 shortKey: true,
18920 handler: function handler(range, context) {
18921 this.quill.format(format, !context.format[format], _quill2.default.sources.USER);
18922 }
18923 };
18924 }
18925 function normalize(binding) {
18926 if (typeof binding === "string" || typeof binding === "number") {
18927 return normalize({ key: binding });
18928 }
18929 if ((typeof binding === "undefined" ? "undefined" : _typeof2(binding)) === "object") {
18930 binding = (0, _clone2.default)(binding, false);
18931 }
18932 if (typeof binding.key === "string") {
18933 if (Keyboard.keys[binding.key.toUpperCase()] != null) {
18934 binding.key = Keyboard.keys[binding.key.toUpperCase()];
18935 } else if (binding.key.length === 1) {
18936 binding.key = binding.key.toUpperCase().charCodeAt(0);
18937 } else {
18938 return null;
18939 }
18940 }
18941 if (binding.shortKey) {
18942 binding[SHORTKEY] = binding.shortKey;
18943 delete binding.shortKey;
18944 }
18945 return binding;
18946 }
18947 exports$12.default = Keyboard;
18948 exports$12.SHORTKEY = SHORTKEY;
18949 },
18950 /* 24 */
18951 /***/
18952 function(module2, exports$12, __webpack_require__) {
18953 Object.defineProperty(exports$12, "__esModule", {
18954 value: true
18955 });
18956 var _slicedToArray2 = /* @__PURE__ */ function() {
18957 function sliceIterator(arr, i) {
18958 var _arr = [];
18959 var _n = true;
18960 var _d2 = false;
18961 var _e2 = void 0;
18962 try {
18963 for (var _i2 = arr[Symbol.iterator](), _s; !(_n = (_s = _i2.next()).done); _n = true) {
18964 _arr.push(_s.value);
18965 if (i && _arr.length === i) break;
18966 }
18967 } catch (err) {
18968 _d2 = true;
18969 _e2 = err;
18970 } finally {
18971 try {
18972 if (!_n && _i2["return"]) _i2["return"]();
18973 } finally {
18974 if (_d2) throw _e2;
18975 }
18976 }
18977 return _arr;
18978 }
18979 return function(arr, i) {
18980 if (Array.isArray(arr)) {
18981 return arr;
18982 } else if (Symbol.iterator in Object(arr)) {
18983 return sliceIterator(arr, i);
18984 } else {
18985 throw new TypeError("Invalid attempt to destructure non-iterable instance");
18986 }
18987 };
18988 }();
18989 var _get = function get(object, property, receiver) {
18990 if (object === null) object = Function.prototype;
18991 var desc = Object.getOwnPropertyDescriptor(object, property);
18992 if (desc === void 0) {
18993 var parent = Object.getPrototypeOf(object);
18994 if (parent === null) {
18995 return void 0;
18996 } else {
18997 return get(parent, property, receiver);
18998 }
18999 } else if ("value" in desc) {
19000 return desc.value;
19001 } else {
19002 var getter = desc.get;
19003 if (getter === void 0) {
19004 return void 0;
19005 }
19006 return getter.call(receiver);
19007 }
19008 };
19009 var _createClass2 = /* @__PURE__ */ function() {
19010 function defineProperties(target, props) {
19011 for (var i = 0; i < props.length; i++) {
19012 var descriptor = props[i];
19013 descriptor.enumerable = descriptor.enumerable || false;
19014 descriptor.configurable = true;
19015 if ("value" in descriptor) descriptor.writable = true;
19016 Object.defineProperty(target, descriptor.key, descriptor);
19017 }
19018 }
19019 return function(Constructor, protoProps, staticProps) {
19020 if (protoProps) defineProperties(Constructor.prototype, protoProps);
19021 if (staticProps) defineProperties(Constructor, staticProps);
19022 return Constructor;
19023 };
19024 }();
19025 var _parchment = __webpack_require__(0);
19026 var _parchment2 = _interopRequireDefault(_parchment);
19027 var _text = __webpack_require__(7);
19028 var _text2 = _interopRequireDefault(_text);
19029 function _interopRequireDefault(obj) {
19030 return obj && obj.__esModule ? obj : { default: obj };
19031 }
19032 function _classCallCheck2(instance, Constructor) {
19033 if (!(instance instanceof Constructor)) {
19034 throw new TypeError("Cannot call a class as a function");
19035 }
19036 }
19037 function _possibleConstructorReturn2(self2, call) {
19038 if (!self2) {
19039 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
19040 }
19041 return call && (typeof call === "object" || typeof call === "function") ? call : self2;
19042 }
19043 function _inherits2(subClass, superClass) {
19044 if (typeof superClass !== "function" && superClass !== null) {
19045 throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
19046 }
19047 subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
19048 if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
19049 }
19050 var Cursor = function(_Parchment$Embed) {
19051 _inherits2(Cursor2, _Parchment$Embed);
19052 _createClass2(Cursor2, null, [{
19053 key: "value",
19054 value: function value() {
19055 return void 0;
19056 }
19057 }]);
19058 function Cursor2(domNode, selection) {
19059 _classCallCheck2(this, Cursor2);
19060 var _this = _possibleConstructorReturn2(this, (Cursor2.__proto__ || Object.getPrototypeOf(Cursor2)).call(this, domNode));
19061 _this.selection = selection;
19062 _this.textNode = document.createTextNode(Cursor2.CONTENTS);
19063 _this.domNode.appendChild(_this.textNode);
19064 _this._length = 0;
19065 return _this;
19066 }
19067 _createClass2(Cursor2, [{
19068 key: "detach",
19069 value: function detach() {
19070 if (this.parent != null) this.parent.removeChild(this);
19071 }
19072 }, {
19073 key: "format",
19074 value: function format(name, value) {
19075 if (this._length !== 0) {
19076 return _get(Cursor2.prototype.__proto__ || Object.getPrototypeOf(Cursor2.prototype), "format", this).call(this, name, value);
19077 }
19078 var target = this, index = 0;
19079 while (target != null && target.statics.scope !== _parchment2.default.Scope.BLOCK_BLOT) {
19080 index += target.offset(target.parent);
19081 target = target.parent;
19082 }
19083 if (target != null) {
19084 this._length = Cursor2.CONTENTS.length;
19085 target.optimize();
19086 target.formatAt(index, Cursor2.CONTENTS.length, name, value);
19087 this._length = 0;
19088 }
19089 }
19090 }, {
19091 key: "index",
19092 value: function index(node, offset) {
19093 if (node === this.textNode) return 0;
19094 return _get(Cursor2.prototype.__proto__ || Object.getPrototypeOf(Cursor2.prototype), "index", this).call(this, node, offset);
19095 }
19096 }, {
19097 key: "length",
19098 value: function length() {
19099 return this._length;
19100 }
19101 }, {
19102 key: "position",
19103 value: function position() {
19104 return [this.textNode, this.textNode.data.length];
19105 }
19106 }, {
19107 key: "remove",
19108 value: function remove() {
19109 _get(Cursor2.prototype.__proto__ || Object.getPrototypeOf(Cursor2.prototype), "remove", this).call(this);
19110 this.parent = null;
19111 }
19112 }, {
19113 key: "restore",
19114 value: function restore() {
19115 if (this.selection.composing || this.parent == null) return;
19116 var textNode = this.textNode;
19117 var range = this.selection.getNativeRange();
19118 var restoreText = void 0, start = void 0, end = void 0;
19119 if (range != null && range.start.node === textNode && range.end.node === textNode) {
19120 var _ref = [textNode, range.start.offset, range.end.offset];
19121 restoreText = _ref[0];
19122 start = _ref[1];
19123 end = _ref[2];
19124 }
19125 while (this.domNode.lastChild != null && this.domNode.lastChild !== this.textNode) {
19126 this.domNode.parentNode.insertBefore(this.domNode.lastChild, this.domNode);
19127 }
19128 if (this.textNode.data !== Cursor2.CONTENTS) {
19129 var text = this.textNode.data.split(Cursor2.CONTENTS).join("");
19130 if (this.next instanceof _text2.default) {
19131 restoreText = this.next.domNode;
19132 this.next.insertAt(0, text);
19133 this.textNode.data = Cursor2.CONTENTS;
19134 } else {
19135 this.textNode.data = text;
19136 this.parent.insertBefore(_parchment2.default.create(this.textNode), this);
19137 this.textNode = document.createTextNode(Cursor2.CONTENTS);
19138 this.domNode.appendChild(this.textNode);
19139 }
19140 }
19141 this.remove();
19142 if (start != null) {
19143 var _map = [start, end].map(function(offset) {
19144 return Math.max(0, Math.min(restoreText.data.length, offset - 1));
19145 });
19146 var _map2 = _slicedToArray2(_map, 2);
19147 start = _map2[0];
19148 end = _map2[1];
19149 return {
19150 startNode: restoreText,
19151 startOffset: start,
19152 endNode: restoreText,
19153 endOffset: end
19154 };
19155 }
19156 }
19157 }, {
19158 key: "update",
19159 value: function update(mutations, context) {
19160 var _this2 = this;
19161 if (mutations.some(function(mutation) {
19162 return mutation.type === "characterData" && mutation.target === _this2.textNode;
19163 })) {
19164 var range = this.restore();
19165 if (range) context.range = range;
19166 }
19167 }
19168 }, {
19169 key: "value",
19170 value: function value() {
19171 return "";
19172 }
19173 }]);
19174 return Cursor2;
19175 }(_parchment2.default.Embed);
19176 Cursor.blotName = "cursor";
19177 Cursor.className = "ql-cursor";
19178 Cursor.tagName = "span";
19179 Cursor.CONTENTS = "\uFEFF";
19180 exports$12.default = Cursor;
19181 },
19182 /* 25 */
19183 /***/
19184 function(module2, exports$12, __webpack_require__) {
19185 Object.defineProperty(exports$12, "__esModule", {
19186 value: true
19187 });
19188 var _parchment = __webpack_require__(0);
19189 var _parchment2 = _interopRequireDefault(_parchment);
19190 var _block = __webpack_require__(4);
19191 var _block2 = _interopRequireDefault(_block);
19192 function _interopRequireDefault(obj) {
19193 return obj && obj.__esModule ? obj : { default: obj };
19194 }
19195 function _classCallCheck2(instance, Constructor) {
19196 if (!(instance instanceof Constructor)) {
19197 throw new TypeError("Cannot call a class as a function");
19198 }
19199 }
19200 function _possibleConstructorReturn2(self2, call) {
19201 if (!self2) {
19202 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
19203 }
19204 return call && (typeof call === "object" || typeof call === "function") ? call : self2;
19205 }
19206 function _inherits2(subClass, superClass) {
19207 if (typeof superClass !== "function" && superClass !== null) {
19208 throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
19209 }
19210 subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
19211 if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
19212 }
19213 var Container = function(_Parchment$Container) {
19214 _inherits2(Container2, _Parchment$Container);
19215 function Container2() {
19216 _classCallCheck2(this, Container2);
19217 return _possibleConstructorReturn2(this, (Container2.__proto__ || Object.getPrototypeOf(Container2)).apply(this, arguments));
19218 }
19219 return Container2;
19220 }(_parchment2.default.Container);
19221 Container.allowedChildren = [_block2.default, _block.BlockEmbed, Container];
19222 exports$12.default = Container;
19223 },
19224 /* 26 */
19225 /***/
19226 function(module2, exports$12, __webpack_require__) {
19227 Object.defineProperty(exports$12, "__esModule", {
19228 value: true
19229 });
19230 exports$12.ColorStyle = exports$12.ColorClass = exports$12.ColorAttributor = void 0;
19231 var _createClass2 = /* @__PURE__ */ function() {
19232 function defineProperties(target, props) {
19233 for (var i = 0; i < props.length; i++) {
19234 var descriptor = props[i];
19235 descriptor.enumerable = descriptor.enumerable || false;
19236 descriptor.configurable = true;
19237 if ("value" in descriptor) descriptor.writable = true;
19238 Object.defineProperty(target, descriptor.key, descriptor);
19239 }
19240 }
19241 return function(Constructor, protoProps, staticProps) {
19242 if (protoProps) defineProperties(Constructor.prototype, protoProps);
19243 if (staticProps) defineProperties(Constructor, staticProps);
19244 return Constructor;
19245 };
19246 }();
19247 var _get = function get(object, property, receiver) {
19248 if (object === null) object = Function.prototype;
19249 var desc = Object.getOwnPropertyDescriptor(object, property);
19250 if (desc === void 0) {
19251 var parent = Object.getPrototypeOf(object);
19252 if (parent === null) {
19253 return void 0;
19254 } else {
19255 return get(parent, property, receiver);
19256 }
19257 } else if ("value" in desc) {
19258 return desc.value;
19259 } else {
19260 var getter = desc.get;
19261 if (getter === void 0) {
19262 return void 0;
19263 }
19264 return getter.call(receiver);
19265 }
19266 };
19267 var _parchment = __webpack_require__(0);
19268 var _parchment2 = _interopRequireDefault(_parchment);
19269 function _interopRequireDefault(obj) {
19270 return obj && obj.__esModule ? obj : { default: obj };
19271 }
19272 function _classCallCheck2(instance, Constructor) {
19273 if (!(instance instanceof Constructor)) {
19274 throw new TypeError("Cannot call a class as a function");
19275 }
19276 }
19277 function _possibleConstructorReturn2(self2, call) {
19278 if (!self2) {
19279 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
19280 }
19281 return call && (typeof call === "object" || typeof call === "function") ? call : self2;
19282 }
19283 function _inherits2(subClass, superClass) {
19284 if (typeof superClass !== "function" && superClass !== null) {
19285 throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
19286 }
19287 subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
19288 if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
19289 }
19290 var ColorAttributor = function(_Parchment$Attributor) {
19291 _inherits2(ColorAttributor2, _Parchment$Attributor);
19292 function ColorAttributor2() {
19293 _classCallCheck2(this, ColorAttributor2);
19294 return _possibleConstructorReturn2(this, (ColorAttributor2.__proto__ || Object.getPrototypeOf(ColorAttributor2)).apply(this, arguments));
19295 }
19296 _createClass2(ColorAttributor2, [{
19297 key: "value",
19298 value: function value(domNode) {
19299 var value2 = _get(ColorAttributor2.prototype.__proto__ || Object.getPrototypeOf(ColorAttributor2.prototype), "value", this).call(this, domNode);
19300 if (!value2.startsWith("rgb(")) return value2;
19301 value2 = value2.replace(/^[^\d]+/, "").replace(/[^\d]+$/, "");
19302 return "#" + value2.split(",").map(function(component) {
19303 return ("00" + parseInt(component).toString(16)).slice(-2);
19304 }).join("");
19305 }
19306 }]);
19307 return ColorAttributor2;
19308 }(_parchment2.default.Attributor.Style);
19309 var ColorClass = new _parchment2.default.Attributor.Class("color", "ql-color", {
19310 scope: _parchment2.default.Scope.INLINE
19311 });
19312 var ColorStyle = new ColorAttributor("color", "color", {
19313 scope: _parchment2.default.Scope.INLINE
19314 });
19315 exports$12.ColorAttributor = ColorAttributor;
19316 exports$12.ColorClass = ColorClass;
19317 exports$12.ColorStyle = ColorStyle;
19318 },
19319 /* 27 */
19320 /***/
19321 function(module2, exports$12, __webpack_require__) {
19322 Object.defineProperty(exports$12, "__esModule", {
19323 value: true
19324 });
19325 exports$12.sanitize = exports$12.default = void 0;
19326 var _createClass2 = /* @__PURE__ */ function() {
19327 function defineProperties(target, props) {
19328 for (var i = 0; i < props.length; i++) {
19329 var descriptor = props[i];
19330 descriptor.enumerable = descriptor.enumerable || false;
19331 descriptor.configurable = true;
19332 if ("value" in descriptor) descriptor.writable = true;
19333 Object.defineProperty(target, descriptor.key, descriptor);
19334 }
19335 }
19336 return function(Constructor, protoProps, staticProps) {
19337 if (protoProps) defineProperties(Constructor.prototype, protoProps);
19338 if (staticProps) defineProperties(Constructor, staticProps);
19339 return Constructor;
19340 };
19341 }();
19342 var _get = function get(object, property, receiver) {
19343 if (object === null) object = Function.prototype;
19344 var desc = Object.getOwnPropertyDescriptor(object, property);
19345 if (desc === void 0) {
19346 var parent = Object.getPrototypeOf(object);
19347 if (parent === null) {
19348 return void 0;
19349 } else {
19350 return get(parent, property, receiver);
19351 }
19352 } else if ("value" in desc) {
19353 return desc.value;
19354 } else {
19355 var getter = desc.get;
19356 if (getter === void 0) {
19357 return void 0;
19358 }
19359 return getter.call(receiver);
19360 }
19361 };
19362 var _inline = __webpack_require__(6);
19363 var _inline2 = _interopRequireDefault(_inline);
19364 function _interopRequireDefault(obj) {
19365 return obj && obj.__esModule ? obj : { default: obj };
19366 }
19367 function _classCallCheck2(instance, Constructor) {
19368 if (!(instance instanceof Constructor)) {
19369 throw new TypeError("Cannot call a class as a function");
19370 }
19371 }
19372 function _possibleConstructorReturn2(self2, call) {
19373 if (!self2) {
19374 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
19375 }
19376 return call && (typeof call === "object" || typeof call === "function") ? call : self2;
19377 }
19378 function _inherits2(subClass, superClass) {
19379 if (typeof superClass !== "function" && superClass !== null) {
19380 throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
19381 }
19382 subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
19383 if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
19384 }
19385 var Link2 = function(_Inline) {
19386 _inherits2(Link3, _Inline);
19387 function Link3() {
19388 _classCallCheck2(this, Link3);
19389 return _possibleConstructorReturn2(this, (Link3.__proto__ || Object.getPrototypeOf(Link3)).apply(this, arguments));
19390 }
19391 _createClass2(Link3, [{
19392 key: "format",
19393 value: function format(name, value) {
19394 if (name !== this.statics.blotName || !value) return _get(Link3.prototype.__proto__ || Object.getPrototypeOf(Link3.prototype), "format", this).call(this, name, value);
19395 value = this.constructor.sanitize(value);
19396 this.domNode.setAttribute("href", value);
19397 }
19398 }], [{
19399 key: "create",
19400 value: function create(value) {
19401 var node = _get(Link3.__proto__ || Object.getPrototypeOf(Link3), "create", this).call(this, value);
19402 value = this.sanitize(value);
19403 node.setAttribute("href", value);
19404 node.setAttribute("rel", "noopener noreferrer");
19405 node.setAttribute("target", "_blank");
19406 return node;
19407 }
19408 }, {
19409 key: "formats",
19410 value: function formats(domNode) {
19411 return domNode.getAttribute("href");
19412 }
19413 }, {
19414 key: "sanitize",
19415 value: function sanitize(url) {
19416 return _sanitize(url, this.PROTOCOL_WHITELIST) ? url : this.SANITIZED_URL;
19417 }
19418 }]);
19419 return Link3;
19420 }(_inline2.default);
19421 Link2.blotName = "link";
19422 Link2.tagName = "A";
19423 Link2.SANITIZED_URL = "about:blank";
19424 Link2.PROTOCOL_WHITELIST = ["http", "https", "mailto", "tel"];
19425 function _sanitize(url, protocols) {
19426 var anchor = document.createElement("a");
19427 anchor.href = url;
19428 var protocol = anchor.href.slice(0, anchor.href.indexOf(":"));
19429 return protocols.indexOf(protocol) > -1;
19430 }
19431 exports$12.default = Link2;
19432 exports$12.sanitize = _sanitize;
19433 },
19434 /* 28 */
19435 /***/
19436 function(module2, exports$12, __webpack_require__) {
19437 Object.defineProperty(exports$12, "__esModule", {
19438 value: true
19439 });
19440 var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
19441 return typeof obj;
19442 } : function(obj) {
19443 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
19444 };
19445 var _createClass2 = /* @__PURE__ */ function() {
19446 function defineProperties(target, props) {
19447 for (var i = 0; i < props.length; i++) {
19448 var descriptor = props[i];
19449 descriptor.enumerable = descriptor.enumerable || false;
19450 descriptor.configurable = true;
19451 if ("value" in descriptor) descriptor.writable = true;
19452 Object.defineProperty(target, descriptor.key, descriptor);
19453 }
19454 }
19455 return function(Constructor, protoProps, staticProps) {
19456 if (protoProps) defineProperties(Constructor.prototype, protoProps);
19457 if (staticProps) defineProperties(Constructor, staticProps);
19458 return Constructor;
19459 };
19460 }();
19461 var _keyboard = __webpack_require__(23);
19462 var _keyboard2 = _interopRequireDefault(_keyboard);
19463 var _dropdown = __webpack_require__(107);
19464 var _dropdown2 = _interopRequireDefault(_dropdown);
19465 function _interopRequireDefault(obj) {
19466 return obj && obj.__esModule ? obj : { default: obj };
19467 }
19468 function _classCallCheck2(instance, Constructor) {
19469 if (!(instance instanceof Constructor)) {
19470 throw new TypeError("Cannot call a class as a function");
19471 }
19472 }
19473 var optionsCounter = 0;
19474 function toggleAriaAttribute(element, attribute) {
19475 element.setAttribute(attribute, !(element.getAttribute(attribute) === "true"));
19476 }
19477 var Picker = function() {
19478 function Picker2(select) {
19479 var _this = this;
19480 _classCallCheck2(this, Picker2);
19481 this.select = select;
19482 this.container = document.createElement("span");
19483 this.buildPicker();
19484 this.select.style.display = "none";
19485 this.select.parentNode.insertBefore(this.container, this.select);
19486 this.label.addEventListener("mousedown", function() {
19487 _this.togglePicker();
19488 });
19489 this.label.addEventListener("keydown", function(event) {
19490 switch (event.keyCode) {
19491 case _keyboard2.default.keys.ENTER:
19492 _this.togglePicker();
19493 break;
19494 case _keyboard2.default.keys.ESCAPE:
19495 _this.escape();
19496 event.preventDefault();
19497 break;
19498 }
19499 });
19500 this.select.addEventListener("change", this.update.bind(this));
19501 }
19502 _createClass2(Picker2, [{
19503 key: "togglePicker",
19504 value: function togglePicker() {
19505 this.container.classList.toggle("ql-expanded");
19506 toggleAriaAttribute(this.label, "aria-expanded");
19507 toggleAriaAttribute(this.options, "aria-hidden");
19508 }
19509 }, {
19510 key: "buildItem",
19511 value: function buildItem(option) {
19512 var _this2 = this;
19513 var item = document.createElement("span");
19514 item.tabIndex = "0";
19515 item.setAttribute("role", "button");
19516 item.classList.add("ql-picker-item");
19517 if (option.hasAttribute("value")) {
19518 item.setAttribute("data-value", option.getAttribute("value"));
19519 }
19520 if (option.textContent) {
19521 item.setAttribute("data-label", option.textContent);
19522 }
19523 item.addEventListener("click", function() {
19524 _this2.selectItem(item, true);
19525 });
19526 item.addEventListener("keydown", function(event) {
19527 switch (event.keyCode) {
19528 case _keyboard2.default.keys.ENTER:
19529 _this2.selectItem(item, true);
19530 event.preventDefault();
19531 break;
19532 case _keyboard2.default.keys.ESCAPE:
19533 _this2.escape();
19534 event.preventDefault();
19535 break;
19536 }
19537 });
19538 return item;
19539 }
19540 }, {
19541 key: "buildLabel",
19542 value: function buildLabel() {
19543 var label = document.createElement("span");
19544 label.classList.add("ql-picker-label");
19545 label.innerHTML = _dropdown2.default;
19546 label.tabIndex = "0";
19547 label.setAttribute("role", "button");
19548 label.setAttribute("aria-expanded", "false");
19549 this.container.appendChild(label);
19550 return label;
19551 }
19552 }, {
19553 key: "buildOptions",
19554 value: function buildOptions() {
19555 var _this3 = this;
19556 var options = document.createElement("span");
19557 options.classList.add("ql-picker-options");
19558 options.setAttribute("aria-hidden", "true");
19559 options.tabIndex = "-1";
19560 options.id = "ql-picker-options-" + optionsCounter;
19561 optionsCounter += 1;
19562 this.label.setAttribute("aria-controls", options.id);
19563 this.options = options;
19564 [].slice.call(this.select.options).forEach(function(option) {
19565 var item = _this3.buildItem(option);
19566 options.appendChild(item);
19567 if (option.selected === true) {
19568 _this3.selectItem(item);
19569 }
19570 });
19571 this.container.appendChild(options);
19572 }
19573 }, {
19574 key: "buildPicker",
19575 value: function buildPicker() {
19576 var _this4 = this;
19577 [].slice.call(this.select.attributes).forEach(function(item) {
19578 _this4.container.setAttribute(item.name, item.value);
19579 });
19580 this.container.classList.add("ql-picker");
19581 this.label = this.buildLabel();
19582 this.buildOptions();
19583 }
19584 }, {
19585 key: "escape",
19586 value: function escape2() {
19587 var _this5 = this;
19588 this.close();
19589 setTimeout(function() {
19590 return _this5.label.focus();
19591 }, 1);
19592 }
19593 }, {
19594 key: "close",
19595 value: function close() {
19596 this.container.classList.remove("ql-expanded");
19597 this.label.setAttribute("aria-expanded", "false");
19598 this.options.setAttribute("aria-hidden", "true");
19599 }
19600 }, {
19601 key: "selectItem",
19602 value: function selectItem(item) {
19603 var trigger = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
19604 var selected = this.container.querySelector(".ql-selected");
19605 if (item === selected) return;
19606 if (selected != null) {
19607 selected.classList.remove("ql-selected");
19608 }
19609 if (item == null) return;
19610 item.classList.add("ql-selected");
19611 this.select.selectedIndex = [].indexOf.call(item.parentNode.children, item);
19612 if (item.hasAttribute("data-value")) {
19613 this.label.setAttribute("data-value", item.getAttribute("data-value"));
19614 } else {
19615 this.label.removeAttribute("data-value");
19616 }
19617 if (item.hasAttribute("data-label")) {
19618 this.label.setAttribute("data-label", item.getAttribute("data-label"));
19619 } else {
19620 this.label.removeAttribute("data-label");
19621 }
19622 if (trigger) {
19623 if (typeof Event === "function") {
19624 this.select.dispatchEvent(new Event("change"));
19625 } else if ((typeof Event === "undefined" ? "undefined" : _typeof2(Event)) === "object") {
19626 var event = document.createEvent("Event");
19627 event.initEvent("change", true, true);
19628 this.select.dispatchEvent(event);
19629 }
19630 this.close();
19631 }
19632 }
19633 }, {
19634 key: "update",
19635 value: function update() {
19636 var option = void 0;
19637 if (this.select.selectedIndex > -1) {
19638 var item = this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];
19639 option = this.select.options[this.select.selectedIndex];
19640 this.selectItem(item);
19641 } else {
19642 this.selectItem(null);
19643 }
19644 var isActive = option != null && option !== this.select.querySelector("option[selected]");
19645 this.label.classList.toggle("ql-active", isActive);
19646 }
19647 }]);
19648 return Picker2;
19649 }();
19650 exports$12.default = Picker;
19651 },
19652 /* 29 */
19653 /***/
19654 function(module2, exports$12, __webpack_require__) {
19655 Object.defineProperty(exports$12, "__esModule", {
19656 value: true
19657 });
19658 var _parchment = __webpack_require__(0);
19659 var _parchment2 = _interopRequireDefault(_parchment);
19660 var _quill = __webpack_require__(5);
19661 var _quill2 = _interopRequireDefault(_quill);
19662 var _block = __webpack_require__(4);
19663 var _block2 = _interopRequireDefault(_block);
19664 var _break = __webpack_require__(16);
19665 var _break2 = _interopRequireDefault(_break);
19666 var _container = __webpack_require__(25);
19667 var _container2 = _interopRequireDefault(_container);
19668 var _cursor = __webpack_require__(24);
19669 var _cursor2 = _interopRequireDefault(_cursor);
19670 var _embed = __webpack_require__(35);
19671 var _embed2 = _interopRequireDefault(_embed);
19672 var _inline = __webpack_require__(6);
19673 var _inline2 = _interopRequireDefault(_inline);
19674 var _scroll = __webpack_require__(22);
19675 var _scroll2 = _interopRequireDefault(_scroll);
19676 var _text = __webpack_require__(7);
19677 var _text2 = _interopRequireDefault(_text);
19678 var _clipboard = __webpack_require__(55);
19679 var _clipboard2 = _interopRequireDefault(_clipboard);
19680 var _history = __webpack_require__(42);
19681 var _history2 = _interopRequireDefault(_history);
19682 var _keyboard = __webpack_require__(23);
19683 var _keyboard2 = _interopRequireDefault(_keyboard);
19684 function _interopRequireDefault(obj) {
19685 return obj && obj.__esModule ? obj : { default: obj };
19686 }
19687 _quill2.default.register({
19688 "blots/block": _block2.default,
19689 "blots/block/embed": _block.BlockEmbed,
19690 "blots/break": _break2.default,
19691 "blots/container": _container2.default,
19692 "blots/cursor": _cursor2.default,
19693 "blots/embed": _embed2.default,
19694 "blots/inline": _inline2.default,
19695 "blots/scroll": _scroll2.default,
19696 "blots/text": _text2.default,
19697 "modules/clipboard": _clipboard2.default,
19698 "modules/history": _history2.default,
19699 "modules/keyboard": _keyboard2.default
19700 });
19701 _parchment2.default.register(_block2.default, _break2.default, _cursor2.default, _inline2.default, _scroll2.default, _text2.default);
19702 exports$12.default = _quill2.default;
19703 },
19704 /* 30 */
19705 /***/
19706 function(module2, exports$12, __webpack_require__) {
19707 Object.defineProperty(exports$12, "__esModule", { value: true });
19708 var Registry = __webpack_require__(1);
19709 var ShadowBlot = (
19710 /** @class */
19711 function() {
19712 function ShadowBlot2(domNode) {
19713 this.domNode = domNode;
19714 this.domNode[Registry.DATA_KEY] = { blot: this };
19715 }
19716 Object.defineProperty(ShadowBlot2.prototype, "statics", {
19717 // Hack for accessing inherited static methods
19718 get: function() {
19719 return this.constructor;
19720 },
19721 enumerable: true,
19722 configurable: true
19723 });
19724 ShadowBlot2.create = function(value) {
19725 if (this.tagName == null) {
19726 throw new Registry.ParchmentError("Blot definition missing tagName");
19727 }
19728 var node;
19729 if (Array.isArray(this.tagName)) {
19730 if (typeof value === "string") {
19731 value = value.toUpperCase();
19732 if (parseInt(value).toString() === value) {
19733 value = parseInt(value);
19734 }
19735 }
19736 if (typeof value === "number") {
19737 node = document.createElement(this.tagName[value - 1]);
19738 } else if (this.tagName.indexOf(value) > -1) {
19739 node = document.createElement(value);
19740 } else {
19741 node = document.createElement(this.tagName[0]);
19742 }
19743 } else {
19744 node = document.createElement(this.tagName);
19745 }
19746 if (this.className) {
19747 node.classList.add(this.className);
19748 }
19749 return node;
19750 };
19751 ShadowBlot2.prototype.attach = function() {
19752 if (this.parent != null) {
19753 this.scroll = this.parent.scroll;
19754 }
19755 };
19756 ShadowBlot2.prototype.clone = function() {
19757 var domNode = this.domNode.cloneNode(false);
19758 return Registry.create(domNode);
19759 };
19760 ShadowBlot2.prototype.detach = function() {
19761 if (this.parent != null)
19762 this.parent.removeChild(this);
19763 delete this.domNode[Registry.DATA_KEY];
19764 };
19765 ShadowBlot2.prototype.deleteAt = function(index, length) {
19766 var blot = this.isolate(index, length);
19767 blot.remove();
19768 };
19769 ShadowBlot2.prototype.formatAt = function(index, length, name, value) {
19770 var blot = this.isolate(index, length);
19771 if (Registry.query(name, Registry.Scope.BLOT) != null && value) {
19772 blot.wrap(name, value);
19773 } else if (Registry.query(name, Registry.Scope.ATTRIBUTE) != null) {
19774 var parent = Registry.create(this.statics.scope);
19775 blot.wrap(parent);
19776 parent.format(name, value);
19777 }
19778 };
19779 ShadowBlot2.prototype.insertAt = function(index, value, def) {
19780 var blot = def == null ? Registry.create("text", value) : Registry.create(value, def);
19781 var ref = this.split(index);
19782 this.parent.insertBefore(blot, ref);
19783 };
19784 ShadowBlot2.prototype.insertInto = function(parentBlot, refBlot) {
19785 if (refBlot === void 0) {
19786 refBlot = null;
19787 }
19788 if (this.parent != null) {
19789 this.parent.children.remove(this);
19790 }
19791 var refDomNode = null;
19792 parentBlot.children.insertBefore(this, refBlot);
19793 if (refBlot != null) {
19794 refDomNode = refBlot.domNode;
19795 }
19796 if (this.domNode.parentNode != parentBlot.domNode || this.domNode.nextSibling != refDomNode) {
19797 parentBlot.domNode.insertBefore(this.domNode, refDomNode);
19798 }
19799 this.parent = parentBlot;
19800 this.attach();
19801 };
19802 ShadowBlot2.prototype.isolate = function(index, length) {
19803 var target = this.split(index);
19804 target.split(length);
19805 return target;
19806 };
19807 ShadowBlot2.prototype.length = function() {
19808 return 1;
19809 };
19810 ShadowBlot2.prototype.offset = function(root2) {
19811 if (root2 === void 0) {
19812 root2 = this.parent;
19813 }
19814 if (this.parent == null || this == root2)
19815 return 0;
19816 return this.parent.children.offset(this) + this.parent.offset(root2);
19817 };
19818 ShadowBlot2.prototype.optimize = function(context) {
19819 if (this.domNode[Registry.DATA_KEY] != null) {
19820 delete this.domNode[Registry.DATA_KEY].mutations;
19821 }
19822 };
19823 ShadowBlot2.prototype.remove = function() {
19824 if (this.domNode.parentNode != null) {
19825 this.domNode.parentNode.removeChild(this.domNode);
19826 }
19827 this.detach();
19828 };
19829 ShadowBlot2.prototype.replace = function(target) {
19830 if (target.parent == null)
19831 return;
19832 target.parent.insertBefore(this, target.next);
19833 target.remove();
19834 };
19835 ShadowBlot2.prototype.replaceWith = function(name, value) {
19836 var replacement = typeof name === "string" ? Registry.create(name, value) : name;
19837 replacement.replace(this);
19838 return replacement;
19839 };
19840 ShadowBlot2.prototype.split = function(index, force) {
19841 return index === 0 ? this : this.next;
19842 };
19843 ShadowBlot2.prototype.update = function(mutations, context) {
19844 };
19845 ShadowBlot2.prototype.wrap = function(name, value) {
19846 var wrapper = typeof name === "string" ? Registry.create(name, value) : name;
19847 if (this.parent != null) {
19848 this.parent.insertBefore(wrapper, this.next);
19849 }
19850 wrapper.appendChild(this);
19851 return wrapper;
19852 };
19853 ShadowBlot2.blotName = "abstract";
19854 return ShadowBlot2;
19855 }()
19856 );
19857 exports$12.default = ShadowBlot;
19858 },
19859 /* 31 */
19860 /***/
19861 function(module2, exports$12, __webpack_require__) {
19862 Object.defineProperty(exports$12, "__esModule", { value: true });
19863 var attributor_1 = __webpack_require__(12);
19864 var class_1 = __webpack_require__(32);
19865 var style_1 = __webpack_require__(33);
19866 var Registry = __webpack_require__(1);
19867 var AttributorStore = (
19868 /** @class */
19869 function() {
19870 function AttributorStore2(domNode) {
19871 this.attributes = {};
19872 this.domNode = domNode;
19873 this.build();
19874 }
19875 AttributorStore2.prototype.attribute = function(attribute, value) {
19876 if (value) {
19877 if (attribute.add(this.domNode, value)) {
19878 if (attribute.value(this.domNode) != null) {
19879 this.attributes[attribute.attrName] = attribute;
19880 } else {
19881 delete this.attributes[attribute.attrName];
19882 }
19883 }
19884 } else {
19885 attribute.remove(this.domNode);
19886 delete this.attributes[attribute.attrName];
19887 }
19888 };
19889 AttributorStore2.prototype.build = function() {
19890 var _this = this;
19891 this.attributes = {};
19892 var attributes = attributor_1.default.keys(this.domNode);
19893 var classes = class_1.default.keys(this.domNode);
19894 var styles = style_1.default.keys(this.domNode);
19895 attributes.concat(classes).concat(styles).forEach(function(name) {
19896 var attr = Registry.query(name, Registry.Scope.ATTRIBUTE);
19897 if (attr instanceof attributor_1.default) {
19898 _this.attributes[attr.attrName] = attr;
19899 }
19900 });
19901 };
19902 AttributorStore2.prototype.copy = function(target) {
19903 var _this = this;
19904 Object.keys(this.attributes).forEach(function(key) {
19905 var value = _this.attributes[key].value(_this.domNode);
19906 target.format(key, value);
19907 });
19908 };
19909 AttributorStore2.prototype.move = function(target) {
19910 var _this = this;
19911 this.copy(target);
19912 Object.keys(this.attributes).forEach(function(key) {
19913 _this.attributes[key].remove(_this.domNode);
19914 });
19915 this.attributes = {};
19916 };
19917 AttributorStore2.prototype.values = function() {
19918 var _this = this;
19919 return Object.keys(this.attributes).reduce(function(attributes, name) {
19920 attributes[name] = _this.attributes[name].value(_this.domNode);
19921 return attributes;
19922 }, {});
19923 };
19924 return AttributorStore2;
19925 }()
19926 );
19927 exports$12.default = AttributorStore;
19928 },
19929 /* 32 */
19930 /***/
19931 function(module2, exports$12, __webpack_require__) {
19932 var __extends2 = this && this.__extends || function() {
19933 var extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
19934 d2.__proto__ = b2;
19935 } || function(d2, b2) {
19936 for (var p2 in b2) if (b2.hasOwnProperty(p2)) d2[p2] = b2[p2];
19937 };
19938 return function(d2, b2) {
19939 extendStatics(d2, b2);
19940 function __() {
19941 this.constructor = d2;
19942 }
19943 d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
19944 };
19945 }();
19946 Object.defineProperty(exports$12, "__esModule", { value: true });
19947 var attributor_1 = __webpack_require__(12);
19948 function match(node, prefix) {
19949 var className = node.getAttribute("class") || "";
19950 return className.split(/\s+/).filter(function(name) {
19951 return name.indexOf(prefix + "-") === 0;
19952 });
19953 }
19954 var ClassAttributor = (
19955 /** @class */
19956 function(_super) {
19957 __extends2(ClassAttributor2, _super);
19958 function ClassAttributor2() {
19959 return _super !== null && _super.apply(this, arguments) || this;
19960 }
19961 ClassAttributor2.keys = function(node) {
19962 return (node.getAttribute("class") || "").split(/\s+/).map(function(name) {
19963 return name.split("-").slice(0, -1).join("-");
19964 });
19965 };
19966 ClassAttributor2.prototype.add = function(node, value) {
19967 if (!this.canAdd(node, value))
19968 return false;
19969 this.remove(node);
19970 node.classList.add(this.keyName + "-" + value);
19971 return true;
19972 };
19973 ClassAttributor2.prototype.remove = function(node) {
19974 var matches = match(node, this.keyName);
19975 matches.forEach(function(name) {
19976 node.classList.remove(name);
19977 });
19978 if (node.classList.length === 0) {
19979 node.removeAttribute("class");
19980 }
19981 };
19982 ClassAttributor2.prototype.value = function(node) {
19983 var result = match(node, this.keyName)[0] || "";
19984 var value = result.slice(this.keyName.length + 1);
19985 return this.canAdd(node, value) ? value : "";
19986 };
19987 return ClassAttributor2;
19988 }(attributor_1.default)
19989 );
19990 exports$12.default = ClassAttributor;
19991 },
19992 /* 33 */
19993 /***/
19994 function(module2, exports$12, __webpack_require__) {
19995 var __extends2 = this && this.__extends || function() {
19996 var extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
19997 d2.__proto__ = b2;
19998 } || function(d2, b2) {
19999 for (var p2 in b2) if (b2.hasOwnProperty(p2)) d2[p2] = b2[p2];
20000 };
20001 return function(d2, b2) {
20002 extendStatics(d2, b2);
20003 function __() {
20004 this.constructor = d2;
20005 }
20006 d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
20007 };
20008 }();
20009 Object.defineProperty(exports$12, "__esModule", { value: true });
20010 var attributor_1 = __webpack_require__(12);
20011 function camelize(name) {
20012 var parts = name.split("-");
20013 var rest = parts.slice(1).map(function(part) {
20014 return part[0].toUpperCase() + part.slice(1);
20015 }).join("");
20016 return parts[0] + rest;
20017 }
20018 var StyleAttributor = (
20019 /** @class */
20020 function(_super) {
20021 __extends2(StyleAttributor2, _super);
20022 function StyleAttributor2() {
20023 return _super !== null && _super.apply(this, arguments) || this;
20024 }
20025 StyleAttributor2.keys = function(node) {
20026 return (node.getAttribute("style") || "").split(";").map(function(value) {
20027 var arr = value.split(":");
20028 return arr[0].trim();
20029 });
20030 };
20031 StyleAttributor2.prototype.add = function(node, value) {
20032 if (!this.canAdd(node, value))
20033 return false;
20034 node.style[camelize(this.keyName)] = value;
20035 return true;
20036 };
20037 StyleAttributor2.prototype.remove = function(node) {
20038 node.style[camelize(this.keyName)] = "";
20039 if (!node.getAttribute("style")) {
20040 node.removeAttribute("style");
20041 }
20042 };
20043 StyleAttributor2.prototype.value = function(node) {
20044 var value = node.style[camelize(this.keyName)];
20045 return this.canAdd(node, value) ? value : "";
20046 };
20047 return StyleAttributor2;
20048 }(attributor_1.default)
20049 );
20050 exports$12.default = StyleAttributor;
20051 },
20052 /* 34 */
20053 /***/
20054 function(module2, exports$12, __webpack_require__) {
20055 Object.defineProperty(exports$12, "__esModule", {
20056 value: true
20057 });
20058 var _createClass2 = /* @__PURE__ */ function() {
20059 function defineProperties(target, props) {
20060 for (var i = 0; i < props.length; i++) {
20061 var descriptor = props[i];
20062 descriptor.enumerable = descriptor.enumerable || false;
20063 descriptor.configurable = true;
20064 if ("value" in descriptor) descriptor.writable = true;
20065 Object.defineProperty(target, descriptor.key, descriptor);
20066 }
20067 }
20068 return function(Constructor, protoProps, staticProps) {
20069 if (protoProps) defineProperties(Constructor.prototype, protoProps);
20070 if (staticProps) defineProperties(Constructor, staticProps);
20071 return Constructor;
20072 };
20073 }();
20074 function _classCallCheck2(instance, Constructor) {
20075 if (!(instance instanceof Constructor)) {
20076 throw new TypeError("Cannot call a class as a function");
20077 }
20078 }
20079 var Theme = function() {
20080 function Theme2(quill2, options) {
20081 _classCallCheck2(this, Theme2);
20082 this.quill = quill2;
20083 this.options = options;
20084 this.modules = {};
20085 }
20086 _createClass2(Theme2, [{
20087 key: "init",
20088 value: function init() {
20089 var _this = this;
20090 Object.keys(this.options.modules).forEach(function(name) {
20091 if (_this.modules[name] == null) {
20092 _this.addModule(name);
20093 }
20094 });
20095 }
20096 }, {
20097 key: "addModule",
20098 value: function addModule(name) {
20099 var moduleClass = this.quill.constructor.import("modules/" + name);
20100 this.modules[name] = new moduleClass(this.quill, this.options.modules[name] || {});
20101 return this.modules[name];
20102 }
20103 }]);
20104 return Theme2;
20105 }();
20106 Theme.DEFAULTS = {
20107 modules: {}
20108 };
20109 Theme.themes = {
20110 "default": Theme
20111 };
20112 exports$12.default = Theme;
20113 },
20114 /* 35 */
20115 /***/
20116 function(module2, exports$12, __webpack_require__) {
20117 Object.defineProperty(exports$12, "__esModule", {
20118 value: true
20119 });
20120 var _createClass2 = /* @__PURE__ */ function() {
20121 function defineProperties(target, props) {
20122 for (var i = 0; i < props.length; i++) {
20123 var descriptor = props[i];
20124 descriptor.enumerable = descriptor.enumerable || false;
20125 descriptor.configurable = true;
20126 if ("value" in descriptor) descriptor.writable = true;
20127 Object.defineProperty(target, descriptor.key, descriptor);
20128 }
20129 }
20130 return function(Constructor, protoProps, staticProps) {
20131 if (protoProps) defineProperties(Constructor.prototype, protoProps);
20132 if (staticProps) defineProperties(Constructor, staticProps);
20133 return Constructor;
20134 };
20135 }();
20136 var _get = function get(object, property, receiver) {
20137 if (object === null) object = Function.prototype;
20138 var desc = Object.getOwnPropertyDescriptor(object, property);
20139 if (desc === void 0) {
20140 var parent = Object.getPrototypeOf(object);
20141 if (parent === null) {
20142 return void 0;
20143 } else {
20144 return get(parent, property, receiver);
20145 }
20146 } else if ("value" in desc) {
20147 return desc.value;
20148 } else {
20149 var getter = desc.get;
20150 if (getter === void 0) {
20151 return void 0;
20152 }
20153 return getter.call(receiver);
20154 }
20155 };
20156 var _parchment = __webpack_require__(0);
20157 var _parchment2 = _interopRequireDefault(_parchment);
20158 var _text = __webpack_require__(7);
20159 var _text2 = _interopRequireDefault(_text);
20160 function _interopRequireDefault(obj) {
20161 return obj && obj.__esModule ? obj : { default: obj };
20162 }
20163 function _classCallCheck2(instance, Constructor) {
20164 if (!(instance instanceof Constructor)) {
20165 throw new TypeError("Cannot call a class as a function");
20166 }
20167 }
20168 function _possibleConstructorReturn2(self2, call) {
20169 if (!self2) {
20170 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
20171 }
20172 return call && (typeof call === "object" || typeof call === "function") ? call : self2;
20173 }
20174 function _inherits2(subClass, superClass) {
20175 if (typeof superClass !== "function" && superClass !== null) {
20176 throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
20177 }
20178 subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
20179 if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
20180 }
20181 var GUARD_TEXT = "\uFEFF";
20182 var Embed = function(_Parchment$Embed) {
20183 _inherits2(Embed2, _Parchment$Embed);
20184 function Embed2(node) {
20185 _classCallCheck2(this, Embed2);
20186 var _this = _possibleConstructorReturn2(this, (Embed2.__proto__ || Object.getPrototypeOf(Embed2)).call(this, node));
20187 _this.contentNode = document.createElement("span");
20188 _this.contentNode.setAttribute("contenteditable", false);
20189 [].slice.call(_this.domNode.childNodes).forEach(function(childNode) {
20190 _this.contentNode.appendChild(childNode);
20191 });
20192 _this.leftGuard = document.createTextNode(GUARD_TEXT);
20193 _this.rightGuard = document.createTextNode(GUARD_TEXT);
20194 _this.domNode.appendChild(_this.leftGuard);
20195 _this.domNode.appendChild(_this.contentNode);
20196 _this.domNode.appendChild(_this.rightGuard);
20197 return _this;
20198 }
20199 _createClass2(Embed2, [{
20200 key: "index",
20201 value: function index(node, offset) {
20202 if (node === this.leftGuard) return 0;
20203 if (node === this.rightGuard) return 1;
20204 return _get(Embed2.prototype.__proto__ || Object.getPrototypeOf(Embed2.prototype), "index", this).call(this, node, offset);
20205 }
20206 }, {
20207 key: "restore",
20208 value: function restore(node) {
20209 var range = void 0, textNode = void 0;
20210 var text = node.data.split(GUARD_TEXT).join("");
20211 if (node === this.leftGuard) {
20212 if (this.prev instanceof _text2.default) {
20213 var prevLength = this.prev.length();
20214 this.prev.insertAt(prevLength, text);
20215 range = {
20216 startNode: this.prev.domNode,
20217 startOffset: prevLength + text.length
20218 };
20219 } else {
20220 textNode = document.createTextNode(text);
20221 this.parent.insertBefore(_parchment2.default.create(textNode), this);
20222 range = {
20223 startNode: textNode,
20224 startOffset: text.length
20225 };
20226 }
20227 } else if (node === this.rightGuard) {
20228 if (this.next instanceof _text2.default) {
20229 this.next.insertAt(0, text);
20230 range = {
20231 startNode: this.next.domNode,
20232 startOffset: text.length
20233 };
20234 } else {
20235 textNode = document.createTextNode(text);
20236 this.parent.insertBefore(_parchment2.default.create(textNode), this.next);
20237 range = {
20238 startNode: textNode,
20239 startOffset: text.length
20240 };
20241 }
20242 }
20243 node.data = GUARD_TEXT;
20244 return range;
20245 }
20246 }, {
20247 key: "update",
20248 value: function update(mutations, context) {
20249 var _this2 = this;
20250 mutations.forEach(function(mutation) {
20251 if (mutation.type === "characterData" && (mutation.target === _this2.leftGuard || mutation.target === _this2.rightGuard)) {
20252 var range = _this2.restore(mutation.target);
20253 if (range) context.range = range;
20254 }
20255 });
20256 }
20257 }]);
20258 return Embed2;
20259 }(_parchment2.default.Embed);
20260 exports$12.default = Embed;
20261 },
20262 /* 36 */
20263 /***/
20264 function(module2, exports$12, __webpack_require__) {
20265 Object.defineProperty(exports$12, "__esModule", {
20266 value: true
20267 });
20268 exports$12.AlignStyle = exports$12.AlignClass = exports$12.AlignAttribute = void 0;
20269 var _parchment = __webpack_require__(0);
20270 var _parchment2 = _interopRequireDefault(_parchment);
20271 function _interopRequireDefault(obj) {
20272 return obj && obj.__esModule ? obj : { default: obj };
20273 }
20274 var config = {
20275 scope: _parchment2.default.Scope.BLOCK,
20276 whitelist: ["right", "center", "justify"]
20277 };
20278 var AlignAttribute = new _parchment2.default.Attributor.Attribute("align", "align", config);
20279 var AlignClass = new _parchment2.default.Attributor.Class("align", "ql-align", config);
20280 var AlignStyle = new _parchment2.default.Attributor.Style("align", "text-align", config);
20281 exports$12.AlignAttribute = AlignAttribute;
20282 exports$12.AlignClass = AlignClass;
20283 exports$12.AlignStyle = AlignStyle;
20284 },
20285 /* 37 */
20286 /***/
20287 function(module2, exports$12, __webpack_require__) {
20288 Object.defineProperty(exports$12, "__esModule", {
20289 value: true
20290 });
20291 exports$12.BackgroundStyle = exports$12.BackgroundClass = void 0;
20292 var _parchment = __webpack_require__(0);
20293 var _parchment2 = _interopRequireDefault(_parchment);
20294 var _color = __webpack_require__(26);
20295 function _interopRequireDefault(obj) {
20296 return obj && obj.__esModule ? obj : { default: obj };
20297 }
20298 var BackgroundClass = new _parchment2.default.Attributor.Class("background", "ql-bg", {
20299 scope: _parchment2.default.Scope.INLINE
20300 });
20301 var BackgroundStyle = new _color.ColorAttributor("background", "background-color", {
20302 scope: _parchment2.default.Scope.INLINE
20303 });
20304 exports$12.BackgroundClass = BackgroundClass;
20305 exports$12.BackgroundStyle = BackgroundStyle;
20306 },
20307 /* 38 */
20308 /***/
20309 function(module2, exports$12, __webpack_require__) {
20310 Object.defineProperty(exports$12, "__esModule", {
20311 value: true
20312 });
20313 exports$12.DirectionStyle = exports$12.DirectionClass = exports$12.DirectionAttribute = void 0;
20314 var _parchment = __webpack_require__(0);
20315 var _parchment2 = _interopRequireDefault(_parchment);
20316 function _interopRequireDefault(obj) {
20317 return obj && obj.__esModule ? obj : { default: obj };
20318 }
20319 var config = {
20320 scope: _parchment2.default.Scope.BLOCK,
20321 whitelist: ["rtl"]
20322 };
20323 var DirectionAttribute = new _parchment2.default.Attributor.Attribute("direction", "dir", config);
20324 var DirectionClass = new _parchment2.default.Attributor.Class("direction", "ql-direction", config);
20325 var DirectionStyle = new _parchment2.default.Attributor.Style("direction", "direction", config);
20326 exports$12.DirectionAttribute = DirectionAttribute;
20327 exports$12.DirectionClass = DirectionClass;
20328 exports$12.DirectionStyle = DirectionStyle;
20329 },
20330 /* 39 */
20331 /***/
20332 function(module2, exports$12, __webpack_require__) {
20333 Object.defineProperty(exports$12, "__esModule", {
20334 value: true
20335 });
20336 exports$12.FontClass = exports$12.FontStyle = void 0;
20337 var _createClass2 = /* @__PURE__ */ function() {
20338 function defineProperties(target, props) {
20339 for (var i = 0; i < props.length; i++) {
20340 var descriptor = props[i];
20341 descriptor.enumerable = descriptor.enumerable || false;
20342 descriptor.configurable = true;
20343 if ("value" in descriptor) descriptor.writable = true;
20344 Object.defineProperty(target, descriptor.key, descriptor);
20345 }
20346 }
20347 return function(Constructor, protoProps, staticProps) {
20348 if (protoProps) defineProperties(Constructor.prototype, protoProps);
20349 if (staticProps) defineProperties(Constructor, staticProps);
20350 return Constructor;
20351 };
20352 }();
20353 var _get = function get(object, property, receiver) {
20354 if (object === null) object = Function.prototype;
20355 var desc = Object.getOwnPropertyDescriptor(object, property);
20356 if (desc === void 0) {
20357 var parent = Object.getPrototypeOf(object);
20358 if (parent === null) {
20359 return void 0;
20360 } else {
20361 return get(parent, property, receiver);
20362 }
20363 } else if ("value" in desc) {
20364 return desc.value;
20365 } else {
20366 var getter = desc.get;
20367 if (getter === void 0) {
20368 return void 0;
20369 }
20370 return getter.call(receiver);
20371 }
20372 };
20373 var _parchment = __webpack_require__(0);
20374 var _parchment2 = _interopRequireDefault(_parchment);
20375 function _interopRequireDefault(obj) {
20376 return obj && obj.__esModule ? obj : { default: obj };
20377 }
20378 function _classCallCheck2(instance, Constructor) {
20379 if (!(instance instanceof Constructor)) {
20380 throw new TypeError("Cannot call a class as a function");
20381 }
20382 }
20383 function _possibleConstructorReturn2(self2, call) {
20384 if (!self2) {
20385 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
20386 }
20387 return call && (typeof call === "object" || typeof call === "function") ? call : self2;
20388 }
20389 function _inherits2(subClass, superClass) {
20390 if (typeof superClass !== "function" && superClass !== null) {
20391 throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
20392 }
20393 subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
20394 if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
20395 }
20396 var config = {
20397 scope: _parchment2.default.Scope.INLINE,
20398 whitelist: ["serif", "monospace"]
20399 };
20400 var FontClass = new _parchment2.default.Attributor.Class("font", "ql-font", config);
20401 var FontStyleAttributor = function(_Parchment$Attributor) {
20402 _inherits2(FontStyleAttributor2, _Parchment$Attributor);
20403 function FontStyleAttributor2() {
20404 _classCallCheck2(this, FontStyleAttributor2);
20405 return _possibleConstructorReturn2(this, (FontStyleAttributor2.__proto__ || Object.getPrototypeOf(FontStyleAttributor2)).apply(this, arguments));
20406 }
20407 _createClass2(FontStyleAttributor2, [{
20408 key: "value",
20409 value: function value(node) {
20410 return _get(FontStyleAttributor2.prototype.__proto__ || Object.getPrototypeOf(FontStyleAttributor2.prototype), "value", this).call(this, node).replace(/["']/g, "");
20411 }
20412 }]);
20413 return FontStyleAttributor2;
20414 }(_parchment2.default.Attributor.Style);
20415 var FontStyle = new FontStyleAttributor("font", "font-family", config);
20416 exports$12.FontStyle = FontStyle;
20417 exports$12.FontClass = FontClass;
20418 },
20419 /* 40 */
20420 /***/
20421 function(module2, exports$12, __webpack_require__) {
20422 Object.defineProperty(exports$12, "__esModule", {
20423 value: true
20424 });
20425 exports$12.SizeStyle = exports$12.SizeClass = void 0;
20426 var _parchment = __webpack_require__(0);
20427 var _parchment2 = _interopRequireDefault(_parchment);
20428 function _interopRequireDefault(obj) {
20429 return obj && obj.__esModule ? obj : { default: obj };
20430 }
20431 var SizeClass = new _parchment2.default.Attributor.Class("size", "ql-size", {
20432 scope: _parchment2.default.Scope.INLINE,
20433 whitelist: ["small", "large", "huge"]
20434 });
20435 var SizeStyle = new _parchment2.default.Attributor.Style("size", "font-size", {
20436 scope: _parchment2.default.Scope.INLINE,
20437 whitelist: ["10px", "18px", "32px"]
20438 });
20439 exports$12.SizeClass = SizeClass;
20440 exports$12.SizeStyle = SizeStyle;
20441 },
20442 /* 41 */
20443 /***/
20444 function(module2, exports$12, __webpack_require__) {
20445 module2.exports = {
20446 "align": {
20447 "": __webpack_require__(76),
20448 "center": __webpack_require__(77),
20449 "right": __webpack_require__(78),
20450 "justify": __webpack_require__(79)
20451 },
20452 "background": __webpack_require__(80),
20453 "blockquote": __webpack_require__(81),
20454 "bold": __webpack_require__(82),
20455 "clean": __webpack_require__(83),
20456 "code": __webpack_require__(58),
20457 "code-block": __webpack_require__(58),
20458 "color": __webpack_require__(84),
20459 "direction": {
20460 "": __webpack_require__(85),
20461 "rtl": __webpack_require__(86)
20462 },
20463 "float": {
20464 "center": __webpack_require__(87),
20465 "full": __webpack_require__(88),
20466 "left": __webpack_require__(89),
20467 "right": __webpack_require__(90)
20468 },
20469 "formula": __webpack_require__(91),
20470 "header": {
20471 "1": __webpack_require__(92),
20472 "2": __webpack_require__(93)
20473 },
20474 "italic": __webpack_require__(94),
20475 "image": __webpack_require__(95),
20476 "indent": {
20477 "+1": __webpack_require__(96),
20478 "-1": __webpack_require__(97)
20479 },
20480 "link": __webpack_require__(98),
20481 "list": {
20482 "ordered": __webpack_require__(99),
20483 "bullet": __webpack_require__(100),
20484 "check": __webpack_require__(101)
20485 },
20486 "script": {
20487 "sub": __webpack_require__(102),
20488 "super": __webpack_require__(103)
20489 },
20490 "strike": __webpack_require__(104),
20491 "underline": __webpack_require__(105),
20492 "video": __webpack_require__(106)
20493 };
20494 },
20495 /* 42 */
20496 /***/
20497 function(module2, exports$12, __webpack_require__) {
20498 Object.defineProperty(exports$12, "__esModule", {
20499 value: true
20500 });
20501 exports$12.getLastChangeIndex = exports$12.default = void 0;
20502 var _createClass2 = /* @__PURE__ */ function() {
20503 function defineProperties(target, props) {
20504 for (var i = 0; i < props.length; i++) {
20505 var descriptor = props[i];
20506 descriptor.enumerable = descriptor.enumerable || false;
20507 descriptor.configurable = true;
20508 if ("value" in descriptor) descriptor.writable = true;
20509 Object.defineProperty(target, descriptor.key, descriptor);
20510 }
20511 }
20512 return function(Constructor, protoProps, staticProps) {
20513 if (protoProps) defineProperties(Constructor.prototype, protoProps);
20514 if (staticProps) defineProperties(Constructor, staticProps);
20515 return Constructor;
20516 };
20517 }();
20518 var _parchment = __webpack_require__(0);
20519 var _parchment2 = _interopRequireDefault(_parchment);
20520 var _quill = __webpack_require__(5);
20521 var _quill2 = _interopRequireDefault(_quill);
20522 var _module = __webpack_require__(9);
20523 var _module2 = _interopRequireDefault(_module);
20524 function _interopRequireDefault(obj) {
20525 return obj && obj.__esModule ? obj : { default: obj };
20526 }
20527 function _classCallCheck2(instance, Constructor) {
20528 if (!(instance instanceof Constructor)) {
20529 throw new TypeError("Cannot call a class as a function");
20530 }
20531 }
20532 function _possibleConstructorReturn2(self2, call) {
20533 if (!self2) {
20534 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
20535 }
20536 return call && (typeof call === "object" || typeof call === "function") ? call : self2;
20537 }
20538 function _inherits2(subClass, superClass) {
20539 if (typeof superClass !== "function" && superClass !== null) {
20540 throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
20541 }
20542 subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
20543 if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
20544 }
20545 var History2 = function(_Module) {
20546 _inherits2(History3, _Module);
20547 function History3(quill2, options) {
20548 _classCallCheck2(this, History3);
20549 var _this = _possibleConstructorReturn2(this, (History3.__proto__ || Object.getPrototypeOf(History3)).call(this, quill2, options));
20550 _this.lastRecorded = 0;
20551 _this.ignoreChange = false;
20552 _this.clear();
20553 _this.quill.on(_quill2.default.events.EDITOR_CHANGE, function(eventName, delta, oldDelta, source) {
20554 if (eventName !== _quill2.default.events.TEXT_CHANGE || _this.ignoreChange) return;
20555 if (!_this.options.userOnly || source === _quill2.default.sources.USER) {
20556 _this.record(delta, oldDelta);
20557 } else {
20558 _this.transform(delta);
20559 }
20560 });
20561 _this.quill.keyboard.addBinding({ key: "Z", shortKey: true }, _this.undo.bind(_this));
20562 _this.quill.keyboard.addBinding({ key: "Z", shortKey: true, shiftKey: true }, _this.redo.bind(_this));
20563 if (/Win/i.test(navigator.platform)) {
20564 _this.quill.keyboard.addBinding({ key: "Y", shortKey: true }, _this.redo.bind(_this));
20565 }
20566 return _this;
20567 }
20568 _createClass2(History3, [{
20569 key: "change",
20570 value: function change(source, dest) {
20571 if (this.stack[source].length === 0) return;
20572 var delta = this.stack[source].pop();
20573 this.stack[dest].push(delta);
20574 this.lastRecorded = 0;
20575 this.ignoreChange = true;
20576 this.quill.updateContents(delta[source], _quill2.default.sources.USER);
20577 this.ignoreChange = false;
20578 var index = getLastChangeIndex(delta[source]);
20579 this.quill.setSelection(index);
20580 }
20581 }, {
20582 key: "clear",
20583 value: function clear() {
20584 this.stack = { undo: [], redo: [] };
20585 }
20586 }, {
20587 key: "cutoff",
20588 value: function cutoff() {
20589 this.lastRecorded = 0;
20590 }
20591 }, {
20592 key: "record",
20593 value: function record(changeDelta, oldDelta) {
20594 if (changeDelta.ops.length === 0) return;
20595 this.stack.redo = [];
20596 var undoDelta = this.quill.getContents().diff(oldDelta);
20597 var timestamp = Date.now();
20598 if (this.lastRecorded + this.options.delay > timestamp && this.stack.undo.length > 0) {
20599 var delta = this.stack.undo.pop();
20600 undoDelta = undoDelta.compose(delta.undo);
20601 changeDelta = delta.redo.compose(changeDelta);
20602 } else {
20603 this.lastRecorded = timestamp;
20604 }
20605 this.stack.undo.push({
20606 redo: changeDelta,
20607 undo: undoDelta
20608 });
20609 if (this.stack.undo.length > this.options.maxStack) {
20610 this.stack.undo.shift();
20611 }
20612 }
20613 }, {
20614 key: "redo",
20615 value: function redo() {
20616 this.change("redo", "undo");
20617 }
20618 }, {
20619 key: "transform",
20620 value: function transform(delta) {
20621 this.stack.undo.forEach(function(change) {
20622 change.undo = delta.transform(change.undo, true);
20623 change.redo = delta.transform(change.redo, true);
20624 });
20625 this.stack.redo.forEach(function(change) {
20626 change.undo = delta.transform(change.undo, true);
20627 change.redo = delta.transform(change.redo, true);
20628 });
20629 }
20630 }, {
20631 key: "undo",
20632 value: function undo() {
20633 this.change("undo", "redo");
20634 }
20635 }]);
20636 return History3;
20637 }(_module2.default);
20638 History2.DEFAULTS = {
20639 delay: 1e3,
20640 maxStack: 100,
20641 userOnly: false
20642 };
20643 function endsWithNewlineChange(delta) {
20644 var lastOp = delta.ops[delta.ops.length - 1];
20645 if (lastOp == null) return false;
20646 if (lastOp.insert != null) {
20647 return typeof lastOp.insert === "string" && lastOp.insert.endsWith("\n");
20648 }
20649 if (lastOp.attributes != null) {
20650 return Object.keys(lastOp.attributes).some(function(attr) {
20651 return _parchment2.default.query(attr, _parchment2.default.Scope.BLOCK) != null;
20652 });
20653 }
20654 return false;
20655 }
20656 function getLastChangeIndex(delta) {
20657 var deleteLength = delta.reduce(function(length, op) {
20658 length += op.delete || 0;
20659 return length;
20660 }, 0);
20661 var changeIndex = delta.length() - deleteLength;
20662 if (endsWithNewlineChange(delta)) {
20663 changeIndex -= 1;
20664 }
20665 return changeIndex;
20666 }
20667 exports$12.default = History2;
20668 exports$12.getLastChangeIndex = getLastChangeIndex;
20669 },
20670 /* 43 */
20671 /***/
20672 function(module2, exports$12, __webpack_require__) {
20673 Object.defineProperty(exports$12, "__esModule", {
20674 value: true
20675 });
20676 exports$12.default = exports$12.BaseTooltip = void 0;
20677 var _createClass2 = /* @__PURE__ */ function() {
20678 function defineProperties(target, props) {
20679 for (var i = 0; i < props.length; i++) {
20680 var descriptor = props[i];
20681 descriptor.enumerable = descriptor.enumerable || false;
20682 descriptor.configurable = true;
20683 if ("value" in descriptor) descriptor.writable = true;
20684 Object.defineProperty(target, descriptor.key, descriptor);
20685 }
20686 }
20687 return function(Constructor, protoProps, staticProps) {
20688 if (protoProps) defineProperties(Constructor.prototype, protoProps);
20689 if (staticProps) defineProperties(Constructor, staticProps);
20690 return Constructor;
20691 };
20692 }();
20693 var _get = function get(object, property, receiver) {
20694 if (object === null) object = Function.prototype;
20695 var desc = Object.getOwnPropertyDescriptor(object, property);
20696 if (desc === void 0) {
20697 var parent = Object.getPrototypeOf(object);
20698 if (parent === null) {
20699 return void 0;
20700 } else {
20701 return get(parent, property, receiver);
20702 }
20703 } else if ("value" in desc) {
20704 return desc.value;
20705 } else {
20706 var getter = desc.get;
20707 if (getter === void 0) {
20708 return void 0;
20709 }
20710 return getter.call(receiver);
20711 }
20712 };
20713 var _extend = __webpack_require__(3);
20714 var _extend2 = _interopRequireDefault(_extend);
20715 var _quillDelta = __webpack_require__(2);
20716 var _quillDelta2 = _interopRequireDefault(_quillDelta);
20717 var _emitter = __webpack_require__(8);
20718 var _emitter2 = _interopRequireDefault(_emitter);
20719 var _keyboard = __webpack_require__(23);
20720 var _keyboard2 = _interopRequireDefault(_keyboard);
20721 var _theme = __webpack_require__(34);
20722 var _theme2 = _interopRequireDefault(_theme);
20723 var _colorPicker = __webpack_require__(59);
20724 var _colorPicker2 = _interopRequireDefault(_colorPicker);
20725 var _iconPicker = __webpack_require__(60);
20726 var _iconPicker2 = _interopRequireDefault(_iconPicker);
20727 var _picker = __webpack_require__(28);
20728 var _picker2 = _interopRequireDefault(_picker);
20729 var _tooltip = __webpack_require__(61);
20730 var _tooltip2 = _interopRequireDefault(_tooltip);
20731 function _interopRequireDefault(obj) {
20732 return obj && obj.__esModule ? obj : { default: obj };
20733 }
20734 function _classCallCheck2(instance, Constructor) {
20735 if (!(instance instanceof Constructor)) {
20736 throw new TypeError("Cannot call a class as a function");
20737 }
20738 }
20739 function _possibleConstructorReturn2(self2, call) {
20740 if (!self2) {
20741 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
20742 }
20743 return call && (typeof call === "object" || typeof call === "function") ? call : self2;
20744 }
20745 function _inherits2(subClass, superClass) {
20746 if (typeof superClass !== "function" && superClass !== null) {
20747 throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
20748 }
20749 subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
20750 if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
20751 }
20752 var ALIGNS = [false, "center", "right", "justify"];
20753 var COLORS = ["#000000", "#e60000", "#ff9900", "#ffff00", "#008a00", "#0066cc", "#9933ff", "#ffffff", "#facccc", "#ffebcc", "#ffffcc", "#cce8cc", "#cce0f5", "#ebd6ff", "#bbbbbb", "#f06666", "#ffc266", "#ffff66", "#66b966", "#66a3e0", "#c285ff", "#888888", "#a10000", "#b26b00", "#b2b200", "#006100", "#0047b2", "#6b24b2", "#444444", "#5c0000", "#663d00", "#666600", "#003700", "#002966", "#3d1466"];
20754 var FONTS = [false, "serif", "monospace"];
20755 var HEADERS = ["1", "2", "3", false];
20756 var SIZES = ["small", false, "large", "huge"];
20757 var BaseTheme = function(_Theme) {
20758 _inherits2(BaseTheme2, _Theme);
20759 function BaseTheme2(quill2, options) {
20760 _classCallCheck2(this, BaseTheme2);
20761 var _this = _possibleConstructorReturn2(this, (BaseTheme2.__proto__ || Object.getPrototypeOf(BaseTheme2)).call(this, quill2, options));
20762 var listener = function listener2(e2) {
20763 if (!document.body.contains(quill2.root)) {
20764 return document.body.removeEventListener("click", listener2);
20765 }
20766 if (_this.tooltip != null && !_this.tooltip.root.contains(e2.target) && document.activeElement !== _this.tooltip.textbox && !_this.quill.hasFocus()) {
20767 _this.tooltip.hide();
20768 }
20769 if (_this.pickers != null) {
20770 _this.pickers.forEach(function(picker) {
20771 if (!picker.container.contains(e2.target)) {
20772 picker.close();
20773 }
20774 });
20775 }
20776 };
20777 quill2.emitter.listenDOM("click", document.body, listener);
20778 return _this;
20779 }
20780 _createClass2(BaseTheme2, [{
20781 key: "addModule",
20782 value: function addModule(name) {
20783 var module3 = _get(BaseTheme2.prototype.__proto__ || Object.getPrototypeOf(BaseTheme2.prototype), "addModule", this).call(this, name);
20784 if (name === "toolbar") {
20785 this.extendToolbar(module3);
20786 }
20787 return module3;
20788 }
20789 }, {
20790 key: "buildButtons",
20791 value: function buildButtons(buttons, icons) {
20792 buttons.forEach(function(button) {
20793 var className = button.getAttribute("class") || "";
20794 className.split(/\s+/).forEach(function(name) {
20795 if (!name.startsWith("ql-")) return;
20796 name = name.slice("ql-".length);
20797 if (icons[name] == null) return;
20798 if (name === "direction") {
20799 button.innerHTML = icons[name][""] + icons[name]["rtl"];
20800 } else if (typeof icons[name] === "string") {
20801 button.innerHTML = icons[name];
20802 } else {
20803 var value = button.value || "";
20804 if (value != null && icons[name][value]) {
20805 button.innerHTML = icons[name][value];
20806 }
20807 }
20808 });
20809 });
20810 }
20811 }, {
20812 key: "buildPickers",
20813 value: function buildPickers(selects, icons) {
20814 var _this2 = this;
20815 this.pickers = selects.map(function(select) {
20816 if (select.classList.contains("ql-align")) {
20817 if (select.querySelector("option") == null) {
20818 fillSelect(select, ALIGNS);
20819 }
20820 return new _iconPicker2.default(select, icons.align);
20821 } else if (select.classList.contains("ql-background") || select.classList.contains("ql-color")) {
20822 var format = select.classList.contains("ql-background") ? "background" : "color";
20823 if (select.querySelector("option") == null) {
20824 fillSelect(select, COLORS, format === "background" ? "#ffffff" : "#000000");
20825 }
20826 return new _colorPicker2.default(select, icons[format]);
20827 } else {
20828 if (select.querySelector("option") == null) {
20829 if (select.classList.contains("ql-font")) {
20830 fillSelect(select, FONTS);
20831 } else if (select.classList.contains("ql-header")) {
20832 fillSelect(select, HEADERS);
20833 } else if (select.classList.contains("ql-size")) {
20834 fillSelect(select, SIZES);
20835 }
20836 }
20837 return new _picker2.default(select);
20838 }
20839 });
20840 var update = function update2() {
20841 _this2.pickers.forEach(function(picker) {
20842 picker.update();
20843 });
20844 };
20845 this.quill.on(_emitter2.default.events.EDITOR_CHANGE, update);
20846 }
20847 }]);
20848 return BaseTheme2;
20849 }(_theme2.default);
20850 BaseTheme.DEFAULTS = (0, _extend2.default)(true, {}, _theme2.default.DEFAULTS, {
20851 modules: {
20852 toolbar: {
20853 handlers: {
20854 formula: function formula() {
20855 this.quill.theme.tooltip.edit("formula");
20856 },
20857 image: function image() {
20858 var _this3 = this;
20859 var fileInput = this.container.querySelector("input.ql-image[type=file]");
20860 if (fileInput == null) {
20861 fileInput = document.createElement("input");
20862 fileInput.setAttribute("type", "file");
20863 fileInput.setAttribute("accept", "image/png, image/gif, image/jpeg, image/bmp, image/x-icon");
20864 fileInput.classList.add("ql-image");
20865 fileInput.addEventListener("change", function() {
20866 if (fileInput.files != null && fileInput.files[0] != null) {
20867 var reader = new FileReader();
20868 reader.onload = function(e2) {
20869 var range = _this3.quill.getSelection(true);
20870 _this3.quill.updateContents(new _quillDelta2.default().retain(range.index).delete(range.length).insert({ image: e2.target.result }), _emitter2.default.sources.USER);
20871 _this3.quill.setSelection(range.index + 1, _emitter2.default.sources.SILENT);
20872 fileInput.value = "";
20873 };
20874 reader.readAsDataURL(fileInput.files[0]);
20875 }
20876 });
20877 this.container.appendChild(fileInput);
20878 }
20879 fileInput.click();
20880 },
20881 video: function video() {
20882 this.quill.theme.tooltip.edit("video");
20883 }
20884 }
20885 }
20886 }
20887 });
20888 var BaseTooltip = function(_Tooltip) {
20889 _inherits2(BaseTooltip2, _Tooltip);
20890 function BaseTooltip2(quill2, boundsContainer) {
20891 _classCallCheck2(this, BaseTooltip2);
20892 var _this4 = _possibleConstructorReturn2(this, (BaseTooltip2.__proto__ || Object.getPrototypeOf(BaseTooltip2)).call(this, quill2, boundsContainer));
20893 _this4.textbox = _this4.root.querySelector('input[type="text"]');
20894 _this4.listen();
20895 return _this4;
20896 }
20897 _createClass2(BaseTooltip2, [{
20898 key: "listen",
20899 value: function listen() {
20900 var _this5 = this;
20901 this.textbox.addEventListener("keydown", function(event) {
20902 if (_keyboard2.default.match(event, "enter")) {
20903 _this5.save();
20904 event.preventDefault();
20905 } else if (_keyboard2.default.match(event, "escape")) {
20906 _this5.cancel();
20907 event.preventDefault();
20908 }
20909 });
20910 }
20911 }, {
20912 key: "cancel",
20913 value: function cancel() {
20914 this.hide();
20915 }
20916 }, {
20917 key: "edit",
20918 value: function edit() {
20919 var mode = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "link";
20920 var preview = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
20921 this.root.classList.remove("ql-hidden");
20922 this.root.classList.add("ql-editing");
20923 if (preview != null) {
20924 this.textbox.value = preview;
20925 } else if (mode !== this.root.getAttribute("data-mode")) {
20926 this.textbox.value = "";
20927 }
20928 this.position(this.quill.getBounds(this.quill.selection.savedRange));
20929 this.textbox.select();
20930 this.textbox.setAttribute("placeholder", this.textbox.getAttribute("data-" + mode) || "");
20931 this.root.setAttribute("data-mode", mode);
20932 }
20933 }, {
20934 key: "restoreFocus",
20935 value: function restoreFocus() {
20936 var scrollTop = this.quill.scrollingContainer.scrollTop;
20937 this.quill.focus();
20938 this.quill.scrollingContainer.scrollTop = scrollTop;
20939 }
20940 }, {
20941 key: "save",
20942 value: function save() {
20943 var value = this.textbox.value;
20944 switch (this.root.getAttribute("data-mode")) {
20945 case "link": {
20946 var scrollTop = this.quill.root.scrollTop;
20947 if (this.linkRange) {
20948 this.quill.formatText(this.linkRange, "link", value, _emitter2.default.sources.USER);
20949 delete this.linkRange;
20950 } else {
20951 this.restoreFocus();
20952 this.quill.format("link", value, _emitter2.default.sources.USER);
20953 }
20954 this.quill.root.scrollTop = scrollTop;
20955 break;
20956 }
20957 case "video": {
20958 value = extractVideoUrl(value);
20959 }
20960 case "formula": {
20961 if (!value) break;
20962 var range = this.quill.getSelection(true);
20963 if (range != null) {
20964 var index = range.index + range.length;
20965 this.quill.insertEmbed(index, this.root.getAttribute("data-mode"), value, _emitter2.default.sources.USER);
20966 if (this.root.getAttribute("data-mode") === "formula") {
20967 this.quill.insertText(index + 1, " ", _emitter2.default.sources.USER);
20968 }
20969 this.quill.setSelection(index + 2, _emitter2.default.sources.USER);
20970 }
20971 break;
20972 }
20973 }
20974 this.textbox.value = "";
20975 this.hide();
20976 }
20977 }]);
20978 return BaseTooltip2;
20979 }(_tooltip2.default);
20980 function extractVideoUrl(url) {
20981 var match = url.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/) || url.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);
20982 if (match) {
20983 return (match[1] || "https") + "://www.youtube.com/embed/" + match[2] + "?showinfo=0";
20984 }
20985 if (match = url.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/)) {
20986 return (match[1] || "https") + "://player.vimeo.com/video/" + match[2] + "/";
20987 }
20988 return url;
20989 }
20990 function fillSelect(select, values) {
20991 var defaultValue = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
20992 values.forEach(function(value) {
20993 var option = document.createElement("option");
20994 if (value === defaultValue) {
20995 option.setAttribute("selected", "selected");
20996 } else {
20997 option.setAttribute("value", value);
20998 }
20999 select.appendChild(option);
21000 });
21001 }
21002 exports$12.BaseTooltip = BaseTooltip;
21003 exports$12.default = BaseTheme;
21004 },
21005 /* 44 */
21006 /***/
21007 function(module2, exports$12, __webpack_require__) {
21008 Object.defineProperty(exports$12, "__esModule", { value: true });
21009 var LinkedList = (
21010 /** @class */
21011 function() {
21012 function LinkedList2() {
21013 this.head = this.tail = null;
21014 this.length = 0;
21015 }
21016 LinkedList2.prototype.append = function() {
21017 var nodes = [];
21018 for (var _i2 = 0; _i2 < arguments.length; _i2++) {
21019 nodes[_i2] = arguments[_i2];
21020 }
21021 this.insertBefore(nodes[0], null);
21022 if (nodes.length > 1) {
21023 this.append.apply(this, nodes.slice(1));
21024 }
21025 };
21026 LinkedList2.prototype.contains = function(node) {
21027 var cur, next = this.iterator();
21028 while (cur = next()) {
21029 if (cur === node)
21030 return true;
21031 }
21032 return false;
21033 };
21034 LinkedList2.prototype.insertBefore = function(node, refNode) {
21035 if (!node)
21036 return;
21037 node.next = refNode;
21038 if (refNode != null) {
21039 node.prev = refNode.prev;
21040 if (refNode.prev != null) {
21041 refNode.prev.next = node;
21042 }
21043 refNode.prev = node;
21044 if (refNode === this.head) {
21045 this.head = node;
21046 }
21047 } else if (this.tail != null) {
21048 this.tail.next = node;
21049 node.prev = this.tail;
21050 this.tail = node;
21051 } else {
21052 node.prev = null;
21053 this.head = this.tail = node;
21054 }
21055 this.length += 1;
21056 };
21057 LinkedList2.prototype.offset = function(target) {
21058 var index = 0, cur = this.head;
21059 while (cur != null) {
21060 if (cur === target)
21061 return index;
21062 index += cur.length();
21063 cur = cur.next;
21064 }
21065 return -1;
21066 };
21067 LinkedList2.prototype.remove = function(node) {
21068 if (!this.contains(node))
21069 return;
21070 if (node.prev != null)
21071 node.prev.next = node.next;
21072 if (node.next != null)
21073 node.next.prev = node.prev;
21074 if (node === this.head)
21075 this.head = node.next;
21076 if (node === this.tail)
21077 this.tail = node.prev;
21078 this.length -= 1;
21079 };
21080 LinkedList2.prototype.iterator = function(curNode) {
21081 if (curNode === void 0) {
21082 curNode = this.head;
21083 }
21084 return function() {
21085 var ret = curNode;
21086 if (curNode != null)
21087 curNode = curNode.next;
21088 return ret;
21089 };
21090 };
21091 LinkedList2.prototype.find = function(index, inclusive) {
21092 if (inclusive === void 0) {
21093 inclusive = false;
21094 }
21095 var cur, next = this.iterator();
21096 while (cur = next()) {
21097 var length = cur.length();
21098 if (index < length || inclusive && index === length && (cur.next == null || cur.next.length() !== 0)) {
21099 return [cur, index];
21100 }
21101 index -= length;
21102 }
21103 return [null, 0];
21104 };
21105 LinkedList2.prototype.forEach = function(callback) {
21106 var cur, next = this.iterator();
21107 while (cur = next()) {
21108 callback(cur);
21109 }
21110 };
21111 LinkedList2.prototype.forEachAt = function(index, length, callback) {
21112 if (length <= 0)
21113 return;
21114 var _a2 = this.find(index), startNode = _a2[0], offset = _a2[1];
21115 var cur, curIndex = index - offset, next = this.iterator(startNode);
21116 while ((cur = next()) && curIndex < index + length) {
21117 var curLength = cur.length();
21118 if (index > curIndex) {
21119 callback(cur, index - curIndex, Math.min(length, curIndex + curLength - index));
21120 } else {
21121 callback(cur, 0, Math.min(curLength, index + length - curIndex));
21122 }
21123 curIndex += curLength;
21124 }
21125 };
21126 LinkedList2.prototype.map = function(callback) {
21127 return this.reduce(function(memo, cur) {
21128 memo.push(callback(cur));
21129 return memo;
21130 }, []);
21131 };
21132 LinkedList2.prototype.reduce = function(callback, memo) {
21133 var cur, next = this.iterator();
21134 while (cur = next()) {
21135 memo = callback(memo, cur);
21136 }
21137 return memo;
21138 };
21139 return LinkedList2;
21140 }()
21141 );
21142 exports$12.default = LinkedList;
21143 },
21144 /* 45 */
21145 /***/
21146 function(module2, exports$12, __webpack_require__) {
21147 var __extends2 = this && this.__extends || function() {
21148 var extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
21149 d2.__proto__ = b2;
21150 } || function(d2, b2) {
21151 for (var p2 in b2) if (b2.hasOwnProperty(p2)) d2[p2] = b2[p2];
21152 };
21153 return function(d2, b2) {
21154 extendStatics(d2, b2);
21155 function __() {
21156 this.constructor = d2;
21157 }
21158 d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
21159 };
21160 }();
21161 Object.defineProperty(exports$12, "__esModule", { value: true });
21162 var container_1 = __webpack_require__(17);
21163 var Registry = __webpack_require__(1);
21164 var OBSERVER_CONFIG = {
21165 attributes: true,
21166 characterData: true,
21167 characterDataOldValue: true,
21168 childList: true,
21169 subtree: true
21170 };
21171 var MAX_OPTIMIZE_ITERATIONS = 100;
21172 var ScrollBlot = (
21173 /** @class */
21174 function(_super) {
21175 __extends2(ScrollBlot2, _super);
21176 function ScrollBlot2(node) {
21177 var _this = _super.call(this, node) || this;
21178 _this.scroll = _this;
21179 _this.observer = new MutationObserver(function(mutations) {
21180 _this.update(mutations);
21181 });
21182 _this.observer.observe(_this.domNode, OBSERVER_CONFIG);
21183 _this.attach();
21184 return _this;
21185 }
21186 ScrollBlot2.prototype.detach = function() {
21187 _super.prototype.detach.call(this);
21188 this.observer.disconnect();
21189 };
21190 ScrollBlot2.prototype.deleteAt = function(index, length) {
21191 this.update();
21192 if (index === 0 && length === this.length()) {
21193 this.children.forEach(function(child) {
21194 child.remove();
21195 });
21196 } else {
21197 _super.prototype.deleteAt.call(this, index, length);
21198 }
21199 };
21200 ScrollBlot2.prototype.formatAt = function(index, length, name, value) {
21201 this.update();
21202 _super.prototype.formatAt.call(this, index, length, name, value);
21203 };
21204 ScrollBlot2.prototype.insertAt = function(index, value, def) {
21205 this.update();
21206 _super.prototype.insertAt.call(this, index, value, def);
21207 };
21208 ScrollBlot2.prototype.optimize = function(mutations, context) {
21209 var _this = this;
21210 if (mutations === void 0) {
21211 mutations = [];
21212 }
21213 if (context === void 0) {
21214 context = {};
21215 }
21216 _super.prototype.optimize.call(this, context);
21217 var records = [].slice.call(this.observer.takeRecords());
21218 while (records.length > 0)
21219 mutations.push(records.pop());
21220 var mark = function(blot, markParent) {
21221 if (markParent === void 0) {
21222 markParent = true;
21223 }
21224 if (blot == null || blot === _this)
21225 return;
21226 if (blot.domNode.parentNode == null)
21227 return;
21228 if (blot.domNode[Registry.DATA_KEY].mutations == null) {
21229 blot.domNode[Registry.DATA_KEY].mutations = [];
21230 }
21231 if (markParent)
21232 mark(blot.parent);
21233 };
21234 var optimize = function(blot) {
21235 if (
21236 // @ts-ignore
21237 blot.domNode[Registry.DATA_KEY] == null || // @ts-ignore
21238 blot.domNode[Registry.DATA_KEY].mutations == null
21239 ) {
21240 return;
21241 }
21242 if (blot instanceof container_1.default) {
21243 blot.children.forEach(optimize);
21244 }
21245 blot.optimize(context);
21246 };
21247 var remaining = mutations;
21248 for (var i = 0; remaining.length > 0; i += 1) {
21249 if (i >= MAX_OPTIMIZE_ITERATIONS) {
21250 throw new Error("[Parchment] Maximum optimize iterations reached");
21251 }
21252 remaining.forEach(function(mutation) {
21253 var blot = Registry.find(mutation.target, true);
21254 if (blot == null)
21255 return;
21256 if (blot.domNode === mutation.target) {
21257 if (mutation.type === "childList") {
21258 mark(Registry.find(mutation.previousSibling, false));
21259 [].forEach.call(mutation.addedNodes, function(node) {
21260 var child = Registry.find(node, false);
21261 mark(child, false);
21262 if (child instanceof container_1.default) {
21263 child.children.forEach(function(grandChild) {
21264 mark(grandChild, false);
21265 });
21266 }
21267 });
21268 } else if (mutation.type === "attributes") {
21269 mark(blot.prev);
21270 }
21271 }
21272 mark(blot);
21273 });
21274 this.children.forEach(optimize);
21275 remaining = [].slice.call(this.observer.takeRecords());
21276 records = remaining.slice();
21277 while (records.length > 0)
21278 mutations.push(records.pop());
21279 }
21280 };
21281 ScrollBlot2.prototype.update = function(mutations, context) {
21282 var _this = this;
21283 if (context === void 0) {
21284 context = {};
21285 }
21286 mutations = mutations || this.observer.takeRecords();
21287 mutations.map(function(mutation) {
21288 var blot = Registry.find(mutation.target, true);
21289 if (blot == null)
21290 return null;
21291 if (blot.domNode[Registry.DATA_KEY].mutations == null) {
21292 blot.domNode[Registry.DATA_KEY].mutations = [mutation];
21293 return blot;
21294 } else {
21295 blot.domNode[Registry.DATA_KEY].mutations.push(mutation);
21296 return null;
21297 }
21298 }).forEach(function(blot) {
21299 if (blot == null || blot === _this || //@ts-ignore
21300 blot.domNode[Registry.DATA_KEY] == null)
21301 return;
21302 blot.update(blot.domNode[Registry.DATA_KEY].mutations || [], context);
21303 });
21304 if (this.domNode[Registry.DATA_KEY].mutations != null) {
21305 _super.prototype.update.call(this, this.domNode[Registry.DATA_KEY].mutations, context);
21306 }
21307 this.optimize(mutations, context);
21308 };
21309 ScrollBlot2.blotName = "scroll";
21310 ScrollBlot2.defaultChild = "block";
21311 ScrollBlot2.scope = Registry.Scope.BLOCK_BLOT;
21312 ScrollBlot2.tagName = "DIV";
21313 return ScrollBlot2;
21314 }(container_1.default)
21315 );
21316 exports$12.default = ScrollBlot;
21317 },
21318 /* 46 */
21319 /***/
21320 function(module2, exports$12, __webpack_require__) {
21321 var __extends2 = this && this.__extends || function() {
21322 var extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
21323 d2.__proto__ = b2;
21324 } || function(d2, b2) {
21325 for (var p2 in b2) if (b2.hasOwnProperty(p2)) d2[p2] = b2[p2];
21326 };
21327 return function(d2, b2) {
21328 extendStatics(d2, b2);
21329 function __() {
21330 this.constructor = d2;
21331 }
21332 d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
21333 };
21334 }();
21335 Object.defineProperty(exports$12, "__esModule", { value: true });
21336 var format_1 = __webpack_require__(18);
21337 var Registry = __webpack_require__(1);
21338 function isEqual2(obj1, obj2) {
21339 if (Object.keys(obj1).length !== Object.keys(obj2).length)
21340 return false;
21341 for (var prop in obj1) {
21342 if (obj1[prop] !== obj2[prop])
21343 return false;
21344 }
21345 return true;
21346 }
21347 var InlineBlot = (
21348 /** @class */
21349 function(_super) {
21350 __extends2(InlineBlot2, _super);
21351 function InlineBlot2() {
21352 return _super !== null && _super.apply(this, arguments) || this;
21353 }
21354 InlineBlot2.formats = function(domNode) {
21355 if (domNode.tagName === InlineBlot2.tagName)
21356 return void 0;
21357 return _super.formats.call(this, domNode);
21358 };
21359 InlineBlot2.prototype.format = function(name, value) {
21360 var _this = this;
21361 if (name === this.statics.blotName && !value) {
21362 this.children.forEach(function(child) {
21363 if (!(child instanceof format_1.default)) {
21364 child = child.wrap(InlineBlot2.blotName, true);
21365 }
21366 _this.attributes.copy(child);
21367 });
21368 this.unwrap();
21369 } else {
21370 _super.prototype.format.call(this, name, value);
21371 }
21372 };
21373 InlineBlot2.prototype.formatAt = function(index, length, name, value) {
21374 if (this.formats()[name] != null || Registry.query(name, Registry.Scope.ATTRIBUTE)) {
21375 var blot = this.isolate(index, length);
21376 blot.format(name, value);
21377 } else {
21378 _super.prototype.formatAt.call(this, index, length, name, value);
21379 }
21380 };
21381 InlineBlot2.prototype.optimize = function(context) {
21382 _super.prototype.optimize.call(this, context);
21383 var formats = this.formats();
21384 if (Object.keys(formats).length === 0) {
21385 return this.unwrap();
21386 }
21387 var next = this.next;
21388 if (next instanceof InlineBlot2 && next.prev === this && isEqual2(formats, next.formats())) {
21389 next.moveChildren(this);
21390 next.remove();
21391 }
21392 };
21393 InlineBlot2.blotName = "inline";
21394 InlineBlot2.scope = Registry.Scope.INLINE_BLOT;
21395 InlineBlot2.tagName = "SPAN";
21396 return InlineBlot2;
21397 }(format_1.default)
21398 );
21399 exports$12.default = InlineBlot;
21400 },
21401 /* 47 */
21402 /***/
21403 function(module2, exports$12, __webpack_require__) {
21404 var __extends2 = this && this.__extends || function() {
21405 var extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
21406 d2.__proto__ = b2;
21407 } || function(d2, b2) {
21408 for (var p2 in b2) if (b2.hasOwnProperty(p2)) d2[p2] = b2[p2];
21409 };
21410 return function(d2, b2) {
21411 extendStatics(d2, b2);
21412 function __() {
21413 this.constructor = d2;
21414 }
21415 d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
21416 };
21417 }();
21418 Object.defineProperty(exports$12, "__esModule", { value: true });
21419 var format_1 = __webpack_require__(18);
21420 var Registry = __webpack_require__(1);
21421 var BlockBlot = (
21422 /** @class */
21423 function(_super) {
21424 __extends2(BlockBlot2, _super);
21425 function BlockBlot2() {
21426 return _super !== null && _super.apply(this, arguments) || this;
21427 }
21428 BlockBlot2.formats = function(domNode) {
21429 var tagName = Registry.query(BlockBlot2.blotName).tagName;
21430 if (domNode.tagName === tagName)
21431 return void 0;
21432 return _super.formats.call(this, domNode);
21433 };
21434 BlockBlot2.prototype.format = function(name, value) {
21435 if (Registry.query(name, Registry.Scope.BLOCK) == null) {
21436 return;
21437 } else if (name === this.statics.blotName && !value) {
21438 this.replaceWith(BlockBlot2.blotName);
21439 } else {
21440 _super.prototype.format.call(this, name, value);
21441 }
21442 };
21443 BlockBlot2.prototype.formatAt = function(index, length, name, value) {
21444 if (Registry.query(name, Registry.Scope.BLOCK) != null) {
21445 this.format(name, value);
21446 } else {
21447 _super.prototype.formatAt.call(this, index, length, name, value);
21448 }
21449 };
21450 BlockBlot2.prototype.insertAt = function(index, value, def) {
21451 if (def == null || Registry.query(value, Registry.Scope.INLINE) != null) {
21452 _super.prototype.insertAt.call(this, index, value, def);
21453 } else {
21454 var after = this.split(index);
21455 var blot = Registry.create(value, def);
21456 after.parent.insertBefore(blot, after);
21457 }
21458 };
21459 BlockBlot2.prototype.update = function(mutations, context) {
21460 if (navigator.userAgent.match(/Trident/)) {
21461 this.build();
21462 } else {
21463 _super.prototype.update.call(this, mutations, context);
21464 }
21465 };
21466 BlockBlot2.blotName = "block";
21467 BlockBlot2.scope = Registry.Scope.BLOCK_BLOT;
21468 BlockBlot2.tagName = "P";
21469 return BlockBlot2;
21470 }(format_1.default)
21471 );
21472 exports$12.default = BlockBlot;
21473 },
21474 /* 48 */
21475 /***/
21476 function(module2, exports$12, __webpack_require__) {
21477 var __extends2 = this && this.__extends || function() {
21478 var extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
21479 d2.__proto__ = b2;
21480 } || function(d2, b2) {
21481 for (var p2 in b2) if (b2.hasOwnProperty(p2)) d2[p2] = b2[p2];
21482 };
21483 return function(d2, b2) {
21484 extendStatics(d2, b2);
21485 function __() {
21486 this.constructor = d2;
21487 }
21488 d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
21489 };
21490 }();
21491 Object.defineProperty(exports$12, "__esModule", { value: true });
21492 var leaf_1 = __webpack_require__(19);
21493 var EmbedBlot = (
21494 /** @class */
21495 function(_super) {
21496 __extends2(EmbedBlot2, _super);
21497 function EmbedBlot2() {
21498 return _super !== null && _super.apply(this, arguments) || this;
21499 }
21500 EmbedBlot2.formats = function(domNode) {
21501 return void 0;
21502 };
21503 EmbedBlot2.prototype.format = function(name, value) {
21504 _super.prototype.formatAt.call(this, 0, this.length(), name, value);
21505 };
21506 EmbedBlot2.prototype.formatAt = function(index, length, name, value) {
21507 if (index === 0 && length === this.length()) {
21508 this.format(name, value);
21509 } else {
21510 _super.prototype.formatAt.call(this, index, length, name, value);
21511 }
21512 };
21513 EmbedBlot2.prototype.formats = function() {
21514 return this.statics.formats(this.domNode);
21515 };
21516 return EmbedBlot2;
21517 }(leaf_1.default)
21518 );
21519 exports$12.default = EmbedBlot;
21520 },
21521 /* 49 */
21522 /***/
21523 function(module2, exports$12, __webpack_require__) {
21524 var __extends2 = this && this.__extends || function() {
21525 var extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
21526 d2.__proto__ = b2;
21527 } || function(d2, b2) {
21528 for (var p2 in b2) if (b2.hasOwnProperty(p2)) d2[p2] = b2[p2];
21529 };
21530 return function(d2, b2) {
21531 extendStatics(d2, b2);
21532 function __() {
21533 this.constructor = d2;
21534 }
21535 d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
21536 };
21537 }();
21538 Object.defineProperty(exports$12, "__esModule", { value: true });
21539 var leaf_1 = __webpack_require__(19);
21540 var Registry = __webpack_require__(1);
21541 var TextBlot = (
21542 /** @class */
21543 function(_super) {
21544 __extends2(TextBlot2, _super);
21545 function TextBlot2(node) {
21546 var _this = _super.call(this, node) || this;
21547 _this.text = _this.statics.value(_this.domNode);
21548 return _this;
21549 }
21550 TextBlot2.create = function(value) {
21551 return document.createTextNode(value);
21552 };
21553 TextBlot2.value = function(domNode) {
21554 var text = domNode.data;
21555 if (text["normalize"])
21556 text = text["normalize"]();
21557 return text;
21558 };
21559 TextBlot2.prototype.deleteAt = function(index, length) {
21560 this.domNode.data = this.text = this.text.slice(0, index) + this.text.slice(index + length);
21561 };
21562 TextBlot2.prototype.index = function(node, offset) {
21563 if (this.domNode === node) {
21564 return offset;
21565 }
21566 return -1;
21567 };
21568 TextBlot2.prototype.insertAt = function(index, value, def) {
21569 if (def == null) {
21570 this.text = this.text.slice(0, index) + value + this.text.slice(index);
21571 this.domNode.data = this.text;
21572 } else {
21573 _super.prototype.insertAt.call(this, index, value, def);
21574 }
21575 };
21576 TextBlot2.prototype.length = function() {
21577 return this.text.length;
21578 };
21579 TextBlot2.prototype.optimize = function(context) {
21580 _super.prototype.optimize.call(this, context);
21581 this.text = this.statics.value(this.domNode);
21582 if (this.text.length === 0) {
21583 this.remove();
21584 } else if (this.next instanceof TextBlot2 && this.next.prev === this) {
21585 this.insertAt(this.length(), this.next.value());
21586 this.next.remove();
21587 }
21588 };
21589 TextBlot2.prototype.position = function(index, inclusive) {
21590 return [this.domNode, index];
21591 };
21592 TextBlot2.prototype.split = function(index, force) {
21593 if (force === void 0) {
21594 force = false;
21595 }
21596 if (!force) {
21597 if (index === 0)
21598 return this;
21599 if (index === this.length())
21600 return this.next;
21601 }
21602 var after = Registry.create(this.domNode.splitText(index));
21603 this.parent.insertBefore(after, this.next);
21604 this.text = this.statics.value(this.domNode);
21605 return after;
21606 };
21607 TextBlot2.prototype.update = function(mutations, context) {
21608 var _this = this;
21609 if (mutations.some(function(mutation) {
21610 return mutation.type === "characterData" && mutation.target === _this.domNode;
21611 })) {
21612 this.text = this.statics.value(this.domNode);
21613 }
21614 };
21615 TextBlot2.prototype.value = function() {
21616 return this.text;
21617 };
21618 TextBlot2.blotName = "text";
21619 TextBlot2.scope = Registry.Scope.INLINE_BLOT;
21620 return TextBlot2;
21621 }(leaf_1.default)
21622 );
21623 exports$12.default = TextBlot;
21624 },
21625 /* 50 */
21626 /***/
21627 function(module2, exports$12, __webpack_require__) {
21628 var elem = document.createElement("div");
21629 elem.classList.toggle("test-class", false);
21630 if (elem.classList.contains("test-class")) {
21631 var _toggle = DOMTokenList.prototype.toggle;
21632 DOMTokenList.prototype.toggle = function(token, force) {
21633 if (arguments.length > 1 && !this.contains(token) === !force) {
21634 return force;
21635 } else {
21636 return _toggle.call(this, token);
21637 }
21638 };
21639 }
21640 if (!String.prototype.startsWith) {
21641 String.prototype.startsWith = function(searchString, position) {
21642 position = position || 0;
21643 return this.substr(position, searchString.length) === searchString;
21644 };
21645 }
21646 if (!String.prototype.endsWith) {
21647 String.prototype.endsWith = function(searchString, position) {
21648 var subjectString = this.toString();
21649 if (typeof position !== "number" || !isFinite(position) || Math.floor(position) !== position || position > subjectString.length) {
21650 position = subjectString.length;
21651 }
21652 position -= searchString.length;
21653 var lastIndex = subjectString.indexOf(searchString, position);
21654 return lastIndex !== -1 && lastIndex === position;
21655 };
21656 }
21657 if (!Array.prototype.find) {
21658 Object.defineProperty(Array.prototype, "find", {
21659 value: function value(predicate) {
21660 if (this === null) {
21661 throw new TypeError("Array.prototype.find called on null or undefined");
21662 }
21663 if (typeof predicate !== "function") {
21664 throw new TypeError("predicate must be a function");
21665 }
21666 var list = Object(this);
21667 var length = list.length >>> 0;
21668 var thisArg = arguments[1];
21669 var value2;
21670 for (var i = 0; i < length; i++) {
21671 value2 = list[i];
21672 if (predicate.call(thisArg, value2, i, list)) {
21673 return value2;
21674 }
21675 }
21676 return void 0;
21677 }
21678 });
21679 }
21680 document.addEventListener("DOMContentLoaded", function() {
21681 document.execCommand("enableObjectResizing", false, false);
21682 document.execCommand("autoUrlDetect", false, false);
21683 });
21684 },
21685 /* 51 */
21686 /***/
21687 function(module2, exports$12) {
21688 var DIFF_DELETE = -1;
21689 var DIFF_INSERT = 1;
21690 var DIFF_EQUAL = 0;
21691 function diff_main(text1, text2, cursor_pos) {
21692 if (text1 == text2) {
21693 if (text1) {
21694 return [[DIFF_EQUAL, text1]];
21695 }
21696 return [];
21697 }
21698 if (cursor_pos < 0 || text1.length < cursor_pos) {
21699 cursor_pos = null;
21700 }
21701 var commonlength = diff_commonPrefix(text1, text2);
21702 var commonprefix = text1.substring(0, commonlength);
21703 text1 = text1.substring(commonlength);
21704 text2 = text2.substring(commonlength);
21705 commonlength = diff_commonSuffix(text1, text2);
21706 var commonsuffix = text1.substring(text1.length - commonlength);
21707 text1 = text1.substring(0, text1.length - commonlength);
21708 text2 = text2.substring(0, text2.length - commonlength);
21709 var diffs = diff_compute_(text1, text2);
21710 if (commonprefix) {
21711 diffs.unshift([DIFF_EQUAL, commonprefix]);
21712 }
21713 if (commonsuffix) {
21714 diffs.push([DIFF_EQUAL, commonsuffix]);
21715 }
21716 diff_cleanupMerge(diffs);
21717 if (cursor_pos != null) {
21718 diffs = fix_cursor(diffs, cursor_pos);
21719 }
21720 diffs = fix_emoji(diffs);
21721 return diffs;
21722 }
21723 function diff_compute_(text1, text2) {
21724 var diffs;
21725 if (!text1) {
21726 return [[DIFF_INSERT, text2]];
21727 }
21728 if (!text2) {
21729 return [[DIFF_DELETE, text1]];
21730 }
21731 var longtext = text1.length > text2.length ? text1 : text2;
21732 var shorttext = text1.length > text2.length ? text2 : text1;
21733 var i = longtext.indexOf(shorttext);
21734 if (i != -1) {
21735 diffs = [
21736 [DIFF_INSERT, longtext.substring(0, i)],
21737 [DIFF_EQUAL, shorttext],
21738 [DIFF_INSERT, longtext.substring(i + shorttext.length)]
21739 ];
21740 if (text1.length > text2.length) {
21741 diffs[0][0] = diffs[2][0] = DIFF_DELETE;
21742 }
21743 return diffs;
21744 }
21745 if (shorttext.length == 1) {
21746 return [[DIFF_DELETE, text1], [DIFF_INSERT, text2]];
21747 }
21748 var hm = diff_halfMatch_(text1, text2);
21749 if (hm) {
21750 var text1_a = hm[0];
21751 var text1_b = hm[1];
21752 var text2_a = hm[2];
21753 var text2_b = hm[3];
21754 var mid_common = hm[4];
21755 var diffs_a = diff_main(text1_a, text2_a);
21756 var diffs_b = diff_main(text1_b, text2_b);
21757 return diffs_a.concat([[DIFF_EQUAL, mid_common]], diffs_b);
21758 }
21759 return diff_bisect_(text1, text2);
21760 }
21761 function diff_bisect_(text1, text2) {
21762 var text1_length = text1.length;
21763 var text2_length = text2.length;
21764 var max_d = Math.ceil((text1_length + text2_length) / 2);
21765 var v_offset = max_d;
21766 var v_length = 2 * max_d;
21767 var v1 = new Array(v_length);
21768 var v2 = new Array(v_length);
21769 for (var x2 = 0; x2 < v_length; x2++) {
21770 v1[x2] = -1;
21771 v2[x2] = -1;
21772 }
21773 v1[v_offset + 1] = 0;
21774 v2[v_offset + 1] = 0;
21775 var delta = text1_length - text2_length;
21776 var front = delta % 2 != 0;
21777 var k1start = 0;
21778 var k1end = 0;
21779 var k2start = 0;
21780 var k2end = 0;
21781 for (var d2 = 0; d2 < max_d; d2++) {
21782 for (var k1 = -d2 + k1start; k1 <= d2 - k1end; k1 += 2) {
21783 var k1_offset = v_offset + k1;
21784 var x1;
21785 if (k1 == -d2 || k1 != d2 && v1[k1_offset - 1] < v1[k1_offset + 1]) {
21786 x1 = v1[k1_offset + 1];
21787 } else {
21788 x1 = v1[k1_offset - 1] + 1;
21789 }
21790 var y1 = x1 - k1;
21791 while (x1 < text1_length && y1 < text2_length && text1.charAt(x1) == text2.charAt(y1)) {
21792 x1++;
21793 y1++;
21794 }
21795 v1[k1_offset] = x1;
21796 if (x1 > text1_length) {
21797 k1end += 2;
21798 } else if (y1 > text2_length) {
21799 k1start += 2;
21800 } else if (front) {
21801 var k2_offset = v_offset + delta - k1;
21802 if (k2_offset >= 0 && k2_offset < v_length && v2[k2_offset] != -1) {
21803 var x22 = text1_length - v2[k2_offset];
21804 if (x1 >= x22) {
21805 return diff_bisectSplit_(text1, text2, x1, y1);
21806 }
21807 }
21808 }
21809 }
21810 for (var k2 = -d2 + k2start; k2 <= d2 - k2end; k2 += 2) {
21811 var k2_offset = v_offset + k2;
21812 var x22;
21813 if (k2 == -d2 || k2 != d2 && v2[k2_offset - 1] < v2[k2_offset + 1]) {
21814 x22 = v2[k2_offset + 1];
21815 } else {
21816 x22 = v2[k2_offset - 1] + 1;
21817 }
21818 var y2 = x22 - k2;
21819 while (x22 < text1_length && y2 < text2_length && text1.charAt(text1_length - x22 - 1) == text2.charAt(text2_length - y2 - 1)) {
21820 x22++;
21821 y2++;
21822 }
21823 v2[k2_offset] = x22;
21824 if (x22 > text1_length) {
21825 k2end += 2;
21826 } else if (y2 > text2_length) {
21827 k2start += 2;
21828 } else if (!front) {
21829 var k1_offset = v_offset + delta - k2;
21830 if (k1_offset >= 0 && k1_offset < v_length && v1[k1_offset] != -1) {
21831 var x1 = v1[k1_offset];
21832 var y1 = v_offset + x1 - k1_offset;
21833 x22 = text1_length - x22;
21834 if (x1 >= x22) {
21835 return diff_bisectSplit_(text1, text2, x1, y1);
21836 }
21837 }
21838 }
21839 }
21840 }
21841 return [[DIFF_DELETE, text1], [DIFF_INSERT, text2]];
21842 }
21843 function diff_bisectSplit_(text1, text2, x2, y2) {
21844 var text1a = text1.substring(0, x2);
21845 var text2a = text2.substring(0, y2);
21846 var text1b = text1.substring(x2);
21847 var text2b = text2.substring(y2);
21848 var diffs = diff_main(text1a, text2a);
21849 var diffsb = diff_main(text1b, text2b);
21850 return diffs.concat(diffsb);
21851 }
21852 function diff_commonPrefix(text1, text2) {
21853 if (!text1 || !text2 || text1.charAt(0) != text2.charAt(0)) {
21854 return 0;
21855 }
21856 var pointermin = 0;
21857 var pointermax = Math.min(text1.length, text2.length);
21858 var pointermid = pointermax;
21859 var pointerstart = 0;
21860 while (pointermin < pointermid) {
21861 if (text1.substring(pointerstart, pointermid) == text2.substring(pointerstart, pointermid)) {
21862 pointermin = pointermid;
21863 pointerstart = pointermin;
21864 } else {
21865 pointermax = pointermid;
21866 }
21867 pointermid = Math.floor((pointermax - pointermin) / 2 + pointermin);
21868 }
21869 return pointermid;
21870 }
21871 function diff_commonSuffix(text1, text2) {
21872 if (!text1 || !text2 || text1.charAt(text1.length - 1) != text2.charAt(text2.length - 1)) {
21873 return 0;
21874 }
21875 var pointermin = 0;
21876 var pointermax = Math.min(text1.length, text2.length);
21877 var pointermid = pointermax;
21878 var pointerend = 0;
21879 while (pointermin < pointermid) {
21880 if (text1.substring(text1.length - pointermid, text1.length - pointerend) == text2.substring(text2.length - pointermid, text2.length - pointerend)) {
21881 pointermin = pointermid;
21882 pointerend = pointermin;
21883 } else {
21884 pointermax = pointermid;
21885 }
21886 pointermid = Math.floor((pointermax - pointermin) / 2 + pointermin);
21887 }
21888 return pointermid;
21889 }
21890 function diff_halfMatch_(text1, text2) {
21891 var longtext = text1.length > text2.length ? text1 : text2;
21892 var shorttext = text1.length > text2.length ? text2 : text1;
21893 if (longtext.length < 4 || shorttext.length * 2 < longtext.length) {
21894 return null;
21895 }
21896 function diff_halfMatchI_(longtext2, shorttext2, i) {
21897 var seed = longtext2.substring(i, i + Math.floor(longtext2.length / 4));
21898 var j = -1;
21899 var best_common = "";
21900 var best_longtext_a, best_longtext_b, best_shorttext_a, best_shorttext_b;
21901 while ((j = shorttext2.indexOf(seed, j + 1)) != -1) {
21902 var prefixLength = diff_commonPrefix(
21903 longtext2.substring(i),
21904 shorttext2.substring(j)
21905 );
21906 var suffixLength = diff_commonSuffix(
21907 longtext2.substring(0, i),
21908 shorttext2.substring(0, j)
21909 );
21910 if (best_common.length < suffixLength + prefixLength) {
21911 best_common = shorttext2.substring(j - suffixLength, j) + shorttext2.substring(j, j + prefixLength);
21912 best_longtext_a = longtext2.substring(0, i - suffixLength);
21913 best_longtext_b = longtext2.substring(i + prefixLength);
21914 best_shorttext_a = shorttext2.substring(0, j - suffixLength);
21915 best_shorttext_b = shorttext2.substring(j + prefixLength);
21916 }
21917 }
21918 if (best_common.length * 2 >= longtext2.length) {
21919 return [
21920 best_longtext_a,
21921 best_longtext_b,
21922 best_shorttext_a,
21923 best_shorttext_b,
21924 best_common
21925 ];
21926 } else {
21927 return null;
21928 }
21929 }
21930 var hm1 = diff_halfMatchI_(
21931 longtext,
21932 shorttext,
21933 Math.ceil(longtext.length / 4)
21934 );
21935 var hm2 = diff_halfMatchI_(
21936 longtext,
21937 shorttext,
21938 Math.ceil(longtext.length / 2)
21939 );
21940 var hm;
21941 if (!hm1 && !hm2) {
21942 return null;
21943 } else if (!hm2) {
21944 hm = hm1;
21945 } else if (!hm1) {
21946 hm = hm2;
21947 } else {
21948 hm = hm1[4].length > hm2[4].length ? hm1 : hm2;
21949 }
21950 var text1_a, text1_b, text2_a, text2_b;
21951 if (text1.length > text2.length) {
21952 text1_a = hm[0];
21953 text1_b = hm[1];
21954 text2_a = hm[2];
21955 text2_b = hm[3];
21956 } else {
21957 text2_a = hm[0];
21958 text2_b = hm[1];
21959 text1_a = hm[2];
21960 text1_b = hm[3];
21961 }
21962 var mid_common = hm[4];
21963 return [text1_a, text1_b, text2_a, text2_b, mid_common];
21964 }
21965 function diff_cleanupMerge(diffs) {
21966 diffs.push([DIFF_EQUAL, ""]);
21967 var pointer = 0;
21968 var count_delete = 0;
21969 var count_insert = 0;
21970 var text_delete = "";
21971 var text_insert = "";
21972 var commonlength;
21973 while (pointer < diffs.length) {
21974 switch (diffs[pointer][0]) {
21975 case DIFF_INSERT:
21976 count_insert++;
21977 text_insert += diffs[pointer][1];
21978 pointer++;
21979 break;
21980 case DIFF_DELETE:
21981 count_delete++;
21982 text_delete += diffs[pointer][1];
21983 pointer++;
21984 break;
21985 case DIFF_EQUAL:
21986 if (count_delete + count_insert > 1) {
21987 if (count_delete !== 0 && count_insert !== 0) {
21988 commonlength = diff_commonPrefix(text_insert, text_delete);
21989 if (commonlength !== 0) {
21990 if (pointer - count_delete - count_insert > 0 && diffs[pointer - count_delete - count_insert - 1][0] == DIFF_EQUAL) {
21991 diffs[pointer - count_delete - count_insert - 1][1] += text_insert.substring(0, commonlength);
21992 } else {
21993 diffs.splice(0, 0, [
21994 DIFF_EQUAL,
21995 text_insert.substring(0, commonlength)
21996 ]);
21997 pointer++;
21998 }
21999 text_insert = text_insert.substring(commonlength);
22000 text_delete = text_delete.substring(commonlength);
22001 }
22002 commonlength = diff_commonSuffix(text_insert, text_delete);
22003 if (commonlength !== 0) {
22004 diffs[pointer][1] = text_insert.substring(text_insert.length - commonlength) + diffs[pointer][1];
22005 text_insert = text_insert.substring(0, text_insert.length - commonlength);
22006 text_delete = text_delete.substring(0, text_delete.length - commonlength);
22007 }
22008 }
22009 if (count_delete === 0) {
22010 diffs.splice(
22011 pointer - count_insert,
22012 count_delete + count_insert,
22013 [DIFF_INSERT, text_insert]
22014 );
22015 } else if (count_insert === 0) {
22016 diffs.splice(
22017 pointer - count_delete,
22018 count_delete + count_insert,
22019 [DIFF_DELETE, text_delete]
22020 );
22021 } else {
22022 diffs.splice(
22023 pointer - count_delete - count_insert,
22024 count_delete + count_insert,
22025 [DIFF_DELETE, text_delete],
22026 [DIFF_INSERT, text_insert]
22027 );
22028 }
22029 pointer = pointer - count_delete - count_insert + (count_delete ? 1 : 0) + (count_insert ? 1 : 0) + 1;
22030 } else if (pointer !== 0 && diffs[pointer - 1][0] == DIFF_EQUAL) {
22031 diffs[pointer - 1][1] += diffs[pointer][1];
22032 diffs.splice(pointer, 1);
22033 } else {
22034 pointer++;
22035 }
22036 count_insert = 0;
22037 count_delete = 0;
22038 text_delete = "";
22039 text_insert = "";
22040 break;
22041 }
22042 }
22043 if (diffs[diffs.length - 1][1] === "") {
22044 diffs.pop();
22045 }
22046 var changes = false;
22047 pointer = 1;
22048 while (pointer < diffs.length - 1) {
22049 if (diffs[pointer - 1][0] == DIFF_EQUAL && diffs[pointer + 1][0] == DIFF_EQUAL) {
22050 if (diffs[pointer][1].substring(diffs[pointer][1].length - diffs[pointer - 1][1].length) == diffs[pointer - 1][1]) {
22051 diffs[pointer][1] = diffs[pointer - 1][1] + diffs[pointer][1].substring(0, diffs[pointer][1].length - diffs[pointer - 1][1].length);
22052 diffs[pointer + 1][1] = diffs[pointer - 1][1] + diffs[pointer + 1][1];
22053 diffs.splice(pointer - 1, 1);
22054 changes = true;
22055 } else if (diffs[pointer][1].substring(0, diffs[pointer + 1][1].length) == diffs[pointer + 1][1]) {
22056 diffs[pointer - 1][1] += diffs[pointer + 1][1];
22057 diffs[pointer][1] = diffs[pointer][1].substring(diffs[pointer + 1][1].length) + diffs[pointer + 1][1];
22058 diffs.splice(pointer + 1, 1);
22059 changes = true;
22060 }
22061 }
22062 pointer++;
22063 }
22064 if (changes) {
22065 diff_cleanupMerge(diffs);
22066 }
22067 }
22068 var diff = diff_main;
22069 diff.INSERT = DIFF_INSERT;
22070 diff.DELETE = DIFF_DELETE;
22071 diff.EQUAL = DIFF_EQUAL;
22072 module2.exports = diff;
22073 function cursor_normalize_diff(diffs, cursor_pos) {
22074 if (cursor_pos === 0) {
22075 return [DIFF_EQUAL, diffs];
22076 }
22077 for (var current_pos = 0, i = 0; i < diffs.length; i++) {
22078 var d2 = diffs[i];
22079 if (d2[0] === DIFF_DELETE || d2[0] === DIFF_EQUAL) {
22080 var next_pos = current_pos + d2[1].length;
22081 if (cursor_pos === next_pos) {
22082 return [i + 1, diffs];
22083 } else if (cursor_pos < next_pos) {
22084 diffs = diffs.slice();
22085 var split_pos = cursor_pos - current_pos;
22086 var d_left = [d2[0], d2[1].slice(0, split_pos)];
22087 var d_right = [d2[0], d2[1].slice(split_pos)];
22088 diffs.splice(i, 1, d_left, d_right);
22089 return [i + 1, diffs];
22090 } else {
22091 current_pos = next_pos;
22092 }
22093 }
22094 }
22095 throw new Error("cursor_pos is out of bounds!");
22096 }
22097 function fix_cursor(diffs, cursor_pos) {
22098 var norm = cursor_normalize_diff(diffs, cursor_pos);
22099 var ndiffs = norm[1];
22100 var cursor_pointer = norm[0];
22101 var d2 = ndiffs[cursor_pointer];
22102 var d_next = ndiffs[cursor_pointer + 1];
22103 if (d2 == null) {
22104 return diffs;
22105 } else if (d2[0] !== DIFF_EQUAL) {
22106 return diffs;
22107 } else {
22108 if (d_next != null && d2[1] + d_next[1] === d_next[1] + d2[1]) {
22109 ndiffs.splice(cursor_pointer, 2, d_next, d2);
22110 return merge_tuples(ndiffs, cursor_pointer, 2);
22111 } else if (d_next != null && d_next[1].indexOf(d2[1]) === 0) {
22112 ndiffs.splice(cursor_pointer, 2, [d_next[0], d2[1]], [0, d2[1]]);
22113 var suffix = d_next[1].slice(d2[1].length);
22114 if (suffix.length > 0) {
22115 ndiffs.splice(cursor_pointer + 2, 0, [d_next[0], suffix]);
22116 }
22117 return merge_tuples(ndiffs, cursor_pointer, 3);
22118 } else {
22119 return diffs;
22120 }
22121 }
22122 }
22123 function fix_emoji(diffs) {
22124 var compact = false;
22125 var starts_with_pair_end = function(str) {
22126 return str.charCodeAt(0) >= 56320 && str.charCodeAt(0) <= 57343;
22127 };
22128 var ends_with_pair_start = function(str) {
22129 return str.charCodeAt(str.length - 1) >= 55296 && str.charCodeAt(str.length - 1) <= 56319;
22130 };
22131 for (var i = 2; i < diffs.length; i += 1) {
22132 if (diffs[i - 2][0] === DIFF_EQUAL && ends_with_pair_start(diffs[i - 2][1]) && diffs[i - 1][0] === DIFF_DELETE && starts_with_pair_end(diffs[i - 1][1]) && diffs[i][0] === DIFF_INSERT && starts_with_pair_end(diffs[i][1])) {
22133 compact = true;
22134 diffs[i - 1][1] = diffs[i - 2][1].slice(-1) + diffs[i - 1][1];
22135 diffs[i][1] = diffs[i - 2][1].slice(-1) + diffs[i][1];
22136 diffs[i - 2][1] = diffs[i - 2][1].slice(0, -1);
22137 }
22138 }
22139 if (!compact) {
22140 return diffs;
22141 }
22142 var fixed_diffs = [];
22143 for (var i = 0; i < diffs.length; i += 1) {
22144 if (diffs[i][1].length > 0) {
22145 fixed_diffs.push(diffs[i]);
22146 }
22147 }
22148 return fixed_diffs;
22149 }
22150 function merge_tuples(diffs, start, length) {
22151 for (var i = start + length - 1; i >= 0 && i >= start - 1; i--) {
22152 if (i + 1 < diffs.length) {
22153 var left_d = diffs[i];
22154 var right_d = diffs[i + 1];
22155 if (left_d[0] === right_d[1]) {
22156 diffs.splice(i, 2, [left_d[0], left_d[1] + right_d[1]]);
22157 }
22158 }
22159 }
22160 return diffs;
22161 }
22162 },
22163 /* 52 */
22164 /***/
22165 function(module2, exports$12) {
22166 exports$12 = module2.exports = typeof Object.keys === "function" ? Object.keys : shim;
22167 exports$12.shim = shim;
22168 function shim(obj) {
22169 var keys2 = [];
22170 for (var key in obj) keys2.push(key);
22171 return keys2;
22172 }
22173 },
22174 /* 53 */
22175 /***/
22176 function(module2, exports$12) {
22177 var supportsArgumentsClass = function() {
22178 return Object.prototype.toString.call(arguments);
22179 }() == "[object Arguments]";
22180 exports$12 = module2.exports = supportsArgumentsClass ? supported : unsupported;
22181 exports$12.supported = supported;
22182 function supported(object) {
22183 return Object.prototype.toString.call(object) == "[object Arguments]";
22184 }
22185 exports$12.unsupported = unsupported;
22186 function unsupported(object) {
22187 return object && typeof object == "object" && typeof object.length == "number" && Object.prototype.hasOwnProperty.call(object, "callee") && !Object.prototype.propertyIsEnumerable.call(object, "callee") || false;
22188 }
22189 },
22190 /* 54 */
22191 /***/
22192 function(module2, exports$12) {
22193 var has = Object.prototype.hasOwnProperty, prefix = "~";
22194 function Events() {
22195 }
22196 if (Object.create) {
22197 Events.prototype = /* @__PURE__ */ Object.create(null);
22198 if (!new Events().__proto__) prefix = false;
22199 }
22200 function EE(fn, context, once) {
22201 this.fn = fn;
22202 this.context = context;
22203 this.once = once || false;
22204 }
22205 function EventEmitter() {
22206 this._events = new Events();
22207 this._eventsCount = 0;
22208 }
22209 EventEmitter.prototype.eventNames = function eventNames() {
22210 var names = [], events, name;
22211 if (this._eventsCount === 0) return names;
22212 for (name in events = this._events) {
22213 if (has.call(events, name)) names.push(prefix ? name.slice(1) : name);
22214 }
22215 if (Object.getOwnPropertySymbols) {
22216 return names.concat(Object.getOwnPropertySymbols(events));
22217 }
22218 return names;
22219 };
22220 EventEmitter.prototype.listeners = function listeners(event, exists) {
22221 var evt = prefix ? prefix + event : event, available = this._events[evt];
22222 if (exists) return !!available;
22223 if (!available) return [];
22224 if (available.fn) return [available.fn];
22225 for (var i = 0, l2 = available.length, ee2 = new Array(l2); i < l2; i++) {
22226 ee2[i] = available[i].fn;
22227 }
22228 return ee2;
22229 };
22230 EventEmitter.prototype.emit = function emit(event, a1, a2, a3, a4, a5) {
22231 var evt = prefix ? prefix + event : event;
22232 if (!this._events[evt]) return false;
22233 var listeners = this._events[evt], len = arguments.length, args, i;
22234 if (listeners.fn) {
22235 if (listeners.once) this.removeListener(event, listeners.fn, void 0, true);
22236 switch (len) {
22237 case 1:
22238 return listeners.fn.call(listeners.context), true;
22239 case 2:
22240 return listeners.fn.call(listeners.context, a1), true;
22241 case 3:
22242 return listeners.fn.call(listeners.context, a1, a2), true;
22243 case 4:
22244 return listeners.fn.call(listeners.context, a1, a2, a3), true;
22245 case 5:
22246 return listeners.fn.call(listeners.context, a1, a2, a3, a4), true;
22247 case 6:
22248 return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true;
22249 }
22250 for (i = 1, args = new Array(len - 1); i < len; i++) {
22251 args[i - 1] = arguments[i];
22252 }
22253 listeners.fn.apply(listeners.context, args);
22254 } else {
22255 var length = listeners.length, j;
22256 for (i = 0; i < length; i++) {
22257 if (listeners[i].once) this.removeListener(event, listeners[i].fn, void 0, true);
22258 switch (len) {
22259 case 1:
22260 listeners[i].fn.call(listeners[i].context);
22261 break;
22262 case 2:
22263 listeners[i].fn.call(listeners[i].context, a1);
22264 break;
22265 case 3:
22266 listeners[i].fn.call(listeners[i].context, a1, a2);
22267 break;
22268 case 4:
22269 listeners[i].fn.call(listeners[i].context, a1, a2, a3);
22270 break;
22271 default:
22272 if (!args) for (j = 1, args = new Array(len - 1); j < len; j++) {
22273 args[j - 1] = arguments[j];
22274 }
22275 listeners[i].fn.apply(listeners[i].context, args);
22276 }
22277 }
22278 }
22279 return true;
22280 };
22281 EventEmitter.prototype.on = function on(event, fn, context) {
22282 var listener = new EE(fn, context || this), evt = prefix ? prefix + event : event;
22283 if (!this._events[evt]) this._events[evt] = listener, this._eventsCount++;
22284 else if (!this._events[evt].fn) this._events[evt].push(listener);
22285 else this._events[evt] = [this._events[evt], listener];
22286 return this;
22287 };
22288 EventEmitter.prototype.once = function once(event, fn, context) {
22289 var listener = new EE(fn, context || this, true), evt = prefix ? prefix + event : event;
22290 if (!this._events[evt]) this._events[evt] = listener, this._eventsCount++;
22291 else if (!this._events[evt].fn) this._events[evt].push(listener);
22292 else this._events[evt] = [this._events[evt], listener];
22293 return this;
22294 };
22295 EventEmitter.prototype.removeListener = function removeListener(event, fn, context, once) {
22296 var evt = prefix ? prefix + event : event;
22297 if (!this._events[evt]) return this;
22298 if (!fn) {
22299 if (--this._eventsCount === 0) this._events = new Events();
22300 else delete this._events[evt];
22301 return this;
22302 }
22303 var listeners = this._events[evt];
22304 if (listeners.fn) {
22305 if (listeners.fn === fn && (!once || listeners.once) && (!context || listeners.context === context)) {
22306 if (--this._eventsCount === 0) this._events = new Events();
22307 else delete this._events[evt];
22308 }
22309 } else {
22310 for (var i = 0, events = [], length = listeners.length; i < length; i++) {
22311 if (listeners[i].fn !== fn || once && !listeners[i].once || context && listeners[i].context !== context) {
22312 events.push(listeners[i]);
22313 }
22314 }
22315 if (events.length) this._events[evt] = events.length === 1 ? events[0] : events;
22316 else if (--this._eventsCount === 0) this._events = new Events();
22317 else delete this._events[evt];
22318 }
22319 return this;
22320 };
22321 EventEmitter.prototype.removeAllListeners = function removeAllListeners(event) {
22322 var evt;
22323 if (event) {
22324 evt = prefix ? prefix + event : event;
22325 if (this._events[evt]) {
22326 if (--this._eventsCount === 0) this._events = new Events();
22327 else delete this._events[evt];
22328 }
22329 } else {
22330 this._events = new Events();
22331 this._eventsCount = 0;
22332 }
22333 return this;
22334 };
22335 EventEmitter.prototype.off = EventEmitter.prototype.removeListener;
22336 EventEmitter.prototype.addListener = EventEmitter.prototype.on;
22337 EventEmitter.prototype.setMaxListeners = function setMaxListeners() {
22338 return this;
22339 };
22340 EventEmitter.prefixed = prefix;
22341 EventEmitter.EventEmitter = EventEmitter;
22342 if ("undefined" !== typeof module2) {
22343 module2.exports = EventEmitter;
22344 }
22345 },
22346 /* 55 */
22347 /***/
22348 function(module2, exports$12, __webpack_require__) {
22349 Object.defineProperty(exports$12, "__esModule", {
22350 value: true
22351 });
22352 exports$12.matchText = exports$12.matchSpacing = exports$12.matchNewline = exports$12.matchBlot = exports$12.matchAttributor = exports$12.default = void 0;
22353 var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
22354 return typeof obj;
22355 } : function(obj) {
22356 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
22357 };
22358 var _slicedToArray2 = /* @__PURE__ */ function() {
22359 function sliceIterator(arr, i) {
22360 var _arr = [];
22361 var _n = true;
22362 var _d2 = false;
22363 var _e2 = void 0;
22364 try {
22365 for (var _i2 = arr[Symbol.iterator](), _s; !(_n = (_s = _i2.next()).done); _n = true) {
22366 _arr.push(_s.value);
22367 if (i && _arr.length === i) break;
22368 }
22369 } catch (err) {
22370 _d2 = true;
22371 _e2 = err;
22372 } finally {
22373 try {
22374 if (!_n && _i2["return"]) _i2["return"]();
22375 } finally {
22376 if (_d2) throw _e2;
22377 }
22378 }
22379 return _arr;
22380 }
22381 return function(arr, i) {
22382 if (Array.isArray(arr)) {
22383 return arr;
22384 } else if (Symbol.iterator in Object(arr)) {
22385 return sliceIterator(arr, i);
22386 } else {
22387 throw new TypeError("Invalid attempt to destructure non-iterable instance");
22388 }
22389 };
22390 }();
22391 var _createClass2 = /* @__PURE__ */ function() {
22392 function defineProperties(target, props) {
22393 for (var i = 0; i < props.length; i++) {
22394 var descriptor = props[i];
22395 descriptor.enumerable = descriptor.enumerable || false;
22396 descriptor.configurable = true;
22397 if ("value" in descriptor) descriptor.writable = true;
22398 Object.defineProperty(target, descriptor.key, descriptor);
22399 }
22400 }
22401 return function(Constructor, protoProps, staticProps) {
22402 if (protoProps) defineProperties(Constructor.prototype, protoProps);
22403 if (staticProps) defineProperties(Constructor, staticProps);
22404 return Constructor;
22405 };
22406 }();
22407 var _extend2 = __webpack_require__(3);
22408 var _extend3 = _interopRequireDefault(_extend2);
22409 var _quillDelta = __webpack_require__(2);
22410 var _quillDelta2 = _interopRequireDefault(_quillDelta);
22411 var _parchment = __webpack_require__(0);
22412 var _parchment2 = _interopRequireDefault(_parchment);
22413 var _quill = __webpack_require__(5);
22414 var _quill2 = _interopRequireDefault(_quill);
22415 var _logger = __webpack_require__(10);
22416 var _logger2 = _interopRequireDefault(_logger);
22417 var _module = __webpack_require__(9);
22418 var _module2 = _interopRequireDefault(_module);
22419 var _align = __webpack_require__(36);
22420 var _background = __webpack_require__(37);
22421 var _code = __webpack_require__(13);
22422 var _code2 = _interopRequireDefault(_code);
22423 var _color = __webpack_require__(26);
22424 var _direction = __webpack_require__(38);
22425 var _font = __webpack_require__(39);
22426 var _size = __webpack_require__(40);
22427 function _interopRequireDefault(obj) {
22428 return obj && obj.__esModule ? obj : { default: obj };
22429 }
22430 function _defineProperty2(obj, key, value) {
22431 if (key in obj) {
22432 Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
22433 } else {
22434 obj[key] = value;
22435 }
22436 return obj;
22437 }
22438 function _classCallCheck2(instance, Constructor) {
22439 if (!(instance instanceof Constructor)) {
22440 throw new TypeError("Cannot call a class as a function");
22441 }
22442 }
22443 function _possibleConstructorReturn2(self2, call) {
22444 if (!self2) {
22445 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
22446 }
22447 return call && (typeof call === "object" || typeof call === "function") ? call : self2;
22448 }
22449 function _inherits2(subClass, superClass) {
22450 if (typeof superClass !== "function" && superClass !== null) {
22451 throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
22452 }
22453 subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
22454 if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
22455 }
22456 var debug = (0, _logger2.default)("quill:clipboard");
22457 var DOM_KEY = "__ql-matcher";
22458 var CLIPBOARD_CONFIG = [[Node.TEXT_NODE, matchText], [Node.TEXT_NODE, matchNewline], ["br", matchBreak], [Node.ELEMENT_NODE, matchNewline], [Node.ELEMENT_NODE, matchBlot], [Node.ELEMENT_NODE, matchSpacing], [Node.ELEMENT_NODE, matchAttributor], [Node.ELEMENT_NODE, matchStyles], ["li", matchIndent], ["b", matchAlias.bind(matchAlias, "bold")], ["i", matchAlias.bind(matchAlias, "italic")], ["style", matchIgnore]];
22459 var ATTRIBUTE_ATTRIBUTORS = [_align.AlignAttribute, _direction.DirectionAttribute].reduce(function(memo, attr) {
22460 memo[attr.keyName] = attr;
22461 return memo;
22462 }, {});
22463 var STYLE_ATTRIBUTORS = [_align.AlignStyle, _background.BackgroundStyle, _color.ColorStyle, _direction.DirectionStyle, _font.FontStyle, _size.SizeStyle].reduce(function(memo, attr) {
22464 memo[attr.keyName] = attr;
22465 return memo;
22466 }, {});
22467 var Clipboard = function(_Module) {
22468 _inherits2(Clipboard2, _Module);
22469 function Clipboard2(quill2, options) {
22470 _classCallCheck2(this, Clipboard2);
22471 var _this = _possibleConstructorReturn2(this, (Clipboard2.__proto__ || Object.getPrototypeOf(Clipboard2)).call(this, quill2, options));
22472 _this.quill.root.addEventListener("paste", _this.onPaste.bind(_this));
22473 _this.container = _this.quill.addContainer("ql-clipboard");
22474 _this.container.setAttribute("contenteditable", true);
22475 _this.container.setAttribute("tabindex", -1);
22476 _this.matchers = [];
22477 CLIPBOARD_CONFIG.concat(_this.options.matchers).forEach(function(_ref) {
22478 var _ref2 = _slicedToArray2(_ref, 2), selector = _ref2[0], matcher = _ref2[1];
22479 if (!options.matchVisual && matcher === matchSpacing) return;
22480 _this.addMatcher(selector, matcher);
22481 });
22482 return _this;
22483 }
22484 _createClass2(Clipboard2, [{
22485 key: "addMatcher",
22486 value: function addMatcher(selector, matcher) {
22487 this.matchers.push([selector, matcher]);
22488 }
22489 }, {
22490 key: "convert",
22491 value: function convert(html) {
22492 if (typeof html === "string") {
22493 this.container.innerHTML = html.replace(/\>\r?\n +\</g, "><");
22494 return this.convert();
22495 }
22496 var formats = this.quill.getFormat(this.quill.selection.savedRange.index);
22497 if (formats[_code2.default.blotName]) {
22498 var text = this.container.innerText;
22499 this.container.innerHTML = "";
22500 return new _quillDelta2.default().insert(text, _defineProperty2({}, _code2.default.blotName, formats[_code2.default.blotName]));
22501 }
22502 var _prepareMatching = this.prepareMatching(), _prepareMatching2 = _slicedToArray2(_prepareMatching, 2), elementMatchers = _prepareMatching2[0], textMatchers = _prepareMatching2[1];
22503 var delta = traverse(this.container, elementMatchers, textMatchers);
22504 if (deltaEndsWith(delta, "\n") && delta.ops[delta.ops.length - 1].attributes == null) {
22505 delta = delta.compose(new _quillDelta2.default().retain(delta.length() - 1).delete(1));
22506 }
22507 debug.log("convert", this.container.innerHTML, delta);
22508 this.container.innerHTML = "";
22509 return delta;
22510 }
22511 }, {
22512 key: "dangerouslyPasteHTML",
22513 value: function dangerouslyPasteHTML(index, html) {
22514 var source = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : _quill2.default.sources.API;
22515 if (typeof index === "string") {
22516 this.quill.setContents(this.convert(index), html);
22517 this.quill.setSelection(0, _quill2.default.sources.SILENT);
22518 } else {
22519 var paste = this.convert(html);
22520 this.quill.updateContents(new _quillDelta2.default().retain(index).concat(paste), source);
22521 this.quill.setSelection(index + paste.length(), _quill2.default.sources.SILENT);
22522 }
22523 }
22524 }, {
22525 key: "onPaste",
22526 value: function onPaste(e2) {
22527 var _this2 = this;
22528 if (e2.defaultPrevented || !this.quill.isEnabled()) return;
22529 var range = this.quill.getSelection();
22530 var delta = new _quillDelta2.default().retain(range.index);
22531 var scrollTop = this.quill.scrollingContainer.scrollTop;
22532 this.container.focus();
22533 this.quill.selection.update(_quill2.default.sources.SILENT);
22534 setTimeout(function() {
22535 delta = delta.concat(_this2.convert()).delete(range.length);
22536 _this2.quill.updateContents(delta, _quill2.default.sources.USER);
22537 _this2.quill.setSelection(delta.length() - range.length, _quill2.default.sources.SILENT);
22538 _this2.quill.scrollingContainer.scrollTop = scrollTop;
22539 _this2.quill.focus();
22540 }, 1);
22541 }
22542 }, {
22543 key: "prepareMatching",
22544 value: function prepareMatching() {
22545 var _this3 = this;
22546 var elementMatchers = [], textMatchers = [];
22547 this.matchers.forEach(function(pair) {
22548 var _pair = _slicedToArray2(pair, 2), selector = _pair[0], matcher = _pair[1];
22549 switch (selector) {
22550 case Node.TEXT_NODE:
22551 textMatchers.push(matcher);
22552 break;
22553 case Node.ELEMENT_NODE:
22554 elementMatchers.push(matcher);
22555 break;
22556 default:
22557 [].forEach.call(_this3.container.querySelectorAll(selector), function(node) {
22558 node[DOM_KEY] = node[DOM_KEY] || [];
22559 node[DOM_KEY].push(matcher);
22560 });
22561 break;
22562 }
22563 });
22564 return [elementMatchers, textMatchers];
22565 }
22566 }]);
22567 return Clipboard2;
22568 }(_module2.default);
22569 Clipboard.DEFAULTS = {
22570 matchers: [],
22571 matchVisual: true
22572 };
22573 function applyFormat(delta, format, value) {
22574 if ((typeof format === "undefined" ? "undefined" : _typeof2(format)) === "object") {
22575 return Object.keys(format).reduce(function(delta2, key) {
22576 return applyFormat(delta2, key, format[key]);
22577 }, delta);
22578 } else {
22579 return delta.reduce(function(delta2, op) {
22580 if (op.attributes && op.attributes[format]) {
22581 return delta2.push(op);
22582 } else {
22583 return delta2.insert(op.insert, (0, _extend3.default)({}, _defineProperty2({}, format, value), op.attributes));
22584 }
22585 }, new _quillDelta2.default());
22586 }
22587 }
22588 function computeStyle(node) {
22589 if (node.nodeType !== Node.ELEMENT_NODE) return {};
22590 var DOM_KEY2 = "__ql-computed-style";
22591 return node[DOM_KEY2] || (node[DOM_KEY2] = window.getComputedStyle(node));
22592 }
22593 function deltaEndsWith(delta, text) {
22594 var endText = "";
22595 for (var i = delta.ops.length - 1; i >= 0 && endText.length < text.length; --i) {
22596 var op = delta.ops[i];
22597 if (typeof op.insert !== "string") break;
22598 endText = op.insert + endText;
22599 }
22600 return endText.slice(-1 * text.length) === text;
22601 }
22602 function isLine(node) {
22603 if (node.childNodes.length === 0) return false;
22604 var style = computeStyle(node);
22605 return ["block", "list-item"].indexOf(style.display) > -1;
22606 }
22607 function traverse(node, elementMatchers, textMatchers) {
22608 if (node.nodeType === node.TEXT_NODE) {
22609 return textMatchers.reduce(function(delta, matcher) {
22610 return matcher(node, delta);
22611 }, new _quillDelta2.default());
22612 } else if (node.nodeType === node.ELEMENT_NODE) {
22613 return [].reduce.call(node.childNodes || [], function(delta, childNode) {
22614 var childrenDelta = traverse(childNode, elementMatchers, textMatchers);
22615 if (childNode.nodeType === node.ELEMENT_NODE) {
22616 childrenDelta = elementMatchers.reduce(function(childrenDelta2, matcher) {
22617 return matcher(childNode, childrenDelta2);
22618 }, childrenDelta);
22619 childrenDelta = (childNode[DOM_KEY] || []).reduce(function(childrenDelta2, matcher) {
22620 return matcher(childNode, childrenDelta2);
22621 }, childrenDelta);
22622 }
22623 return delta.concat(childrenDelta);
22624 }, new _quillDelta2.default());
22625 } else {
22626 return new _quillDelta2.default();
22627 }
22628 }
22629 function matchAlias(format, node, delta) {
22630 return applyFormat(delta, format, true);
22631 }
22632 function matchAttributor(node, delta) {
22633 var attributes = _parchment2.default.Attributor.Attribute.keys(node);
22634 var classes = _parchment2.default.Attributor.Class.keys(node);
22635 var styles = _parchment2.default.Attributor.Style.keys(node);
22636 var formats = {};
22637 attributes.concat(classes).concat(styles).forEach(function(name) {
22638 var attr = _parchment2.default.query(name, _parchment2.default.Scope.ATTRIBUTE);
22639 if (attr != null) {
22640 formats[attr.attrName] = attr.value(node);
22641 if (formats[attr.attrName]) return;
22642 }
22643 attr = ATTRIBUTE_ATTRIBUTORS[name];
22644 if (attr != null && (attr.attrName === name || attr.keyName === name)) {
22645 formats[attr.attrName] = attr.value(node) || void 0;
22646 }
22647 attr = STYLE_ATTRIBUTORS[name];
22648 if (attr != null && (attr.attrName === name || attr.keyName === name)) {
22649 attr = STYLE_ATTRIBUTORS[name];
22650 formats[attr.attrName] = attr.value(node) || void 0;
22651 }
22652 });
22653 if (Object.keys(formats).length > 0) {
22654 delta = applyFormat(delta, formats);
22655 }
22656 return delta;
22657 }
22658 function matchBlot(node, delta) {
22659 var match = _parchment2.default.query(node);
22660 if (match == null) return delta;
22661 if (match.prototype instanceof _parchment2.default.Embed) {
22662 var embed = {};
22663 var value = match.value(node);
22664 if (value != null) {
22665 embed[match.blotName] = value;
22666 delta = new _quillDelta2.default().insert(embed, match.formats(node));
22667 }
22668 } else if (typeof match.formats === "function") {
22669 delta = applyFormat(delta, match.blotName, match.formats(node));
22670 }
22671 return delta;
22672 }
22673 function matchBreak(node, delta) {
22674 if (!deltaEndsWith(delta, "\n")) {
22675 delta.insert("\n");
22676 }
22677 return delta;
22678 }
22679 function matchIgnore() {
22680 return new _quillDelta2.default();
22681 }
22682 function matchIndent(node, delta) {
22683 var match = _parchment2.default.query(node);
22684 if (match == null || match.blotName !== "list-item" || !deltaEndsWith(delta, "\n")) {
22685 return delta;
22686 }
22687 var indent = -1, parent = node.parentNode;
22688 while (!parent.classList.contains("ql-clipboard")) {
22689 if ((_parchment2.default.query(parent) || {}).blotName === "list") {
22690 indent += 1;
22691 }
22692 parent = parent.parentNode;
22693 }
22694 if (indent <= 0) return delta;
22695 return delta.compose(new _quillDelta2.default().retain(delta.length() - 1).retain(1, { indent }));
22696 }
22697 function matchNewline(node, delta) {
22698 if (!deltaEndsWith(delta, "\n")) {
22699 if (isLine(node) || delta.length() > 0 && node.nextSibling && isLine(node.nextSibling)) {
22700 delta.insert("\n");
22701 }
22702 }
22703 return delta;
22704 }
22705 function matchSpacing(node, delta) {
22706 if (isLine(node) && node.nextElementSibling != null && !deltaEndsWith(delta, "\n\n")) {
22707 var nodeHeight = node.offsetHeight + parseFloat(computeStyle(node).marginTop) + parseFloat(computeStyle(node).marginBottom);
22708 if (node.nextElementSibling.offsetTop > node.offsetTop + nodeHeight * 1.5) {
22709 delta.insert("\n");
22710 }
22711 }
22712 return delta;
22713 }
22714 function matchStyles(node, delta) {
22715 var formats = {};
22716 var style = node.style || {};
22717 if (style.fontStyle && computeStyle(node).fontStyle === "italic") {
22718 formats.italic = true;
22719 }
22720 if (style.fontWeight && (computeStyle(node).fontWeight.startsWith("bold") || parseInt(computeStyle(node).fontWeight) >= 700)) {
22721 formats.bold = true;
22722 }
22723 if (Object.keys(formats).length > 0) {
22724 delta = applyFormat(delta, formats);
22725 }
22726 if (parseFloat(style.textIndent || 0) > 0) {
22727 delta = new _quillDelta2.default().insert(" ").concat(delta);
22728 }
22729 return delta;
22730 }
22731 function matchText(node, delta) {
22732 var text = node.data;
22733 if (node.parentNode.tagName === "O:P") {
22734 return delta.insert(text.trim());
22735 }
22736 if (text.trim().length === 0 && node.parentNode.classList.contains("ql-clipboard")) {
22737 return delta;
22738 }
22739 if (!computeStyle(node.parentNode).whiteSpace.startsWith("pre")) {
22740 var replacer = function replacer2(collapse, match) {
22741 match = match.replace(/[^\u00a0]/g, "");
22742 return match.length < 1 && collapse ? " " : match;
22743 };
22744 text = text.replace(/\r\n/g, " ").replace(/\n/g, " ");
22745 text = text.replace(/\s\s+/g, replacer.bind(replacer, true));
22746 if (node.previousSibling == null && isLine(node.parentNode) || node.previousSibling != null && isLine(node.previousSibling)) {
22747 text = text.replace(/^\s+/, replacer.bind(replacer, false));
22748 }
22749 if (node.nextSibling == null && isLine(node.parentNode) || node.nextSibling != null && isLine(node.nextSibling)) {
22750 text = text.replace(/\s+$/, replacer.bind(replacer, false));
22751 }
22752 }
22753 return delta.insert(text);
22754 }
22755 exports$12.default = Clipboard;
22756 exports$12.matchAttributor = matchAttributor;
22757 exports$12.matchBlot = matchBlot;
22758 exports$12.matchNewline = matchNewline;
22759 exports$12.matchSpacing = matchSpacing;
22760 exports$12.matchText = matchText;
22761 },
22762 /* 56 */
22763 /***/
22764 function(module2, exports$12, __webpack_require__) {
22765 Object.defineProperty(exports$12, "__esModule", {
22766 value: true
22767 });
22768 var _createClass2 = /* @__PURE__ */ function() {
22769 function defineProperties(target, props) {
22770 for (var i = 0; i < props.length; i++) {
22771 var descriptor = props[i];
22772 descriptor.enumerable = descriptor.enumerable || false;
22773 descriptor.configurable = true;
22774 if ("value" in descriptor) descriptor.writable = true;
22775 Object.defineProperty(target, descriptor.key, descriptor);
22776 }
22777 }
22778 return function(Constructor, protoProps, staticProps) {
22779 if (protoProps) defineProperties(Constructor.prototype, protoProps);
22780 if (staticProps) defineProperties(Constructor, staticProps);
22781 return Constructor;
22782 };
22783 }();
22784 var _get = function get(object, property, receiver) {
22785 if (object === null) object = Function.prototype;
22786 var desc = Object.getOwnPropertyDescriptor(object, property);
22787 if (desc === void 0) {
22788 var parent = Object.getPrototypeOf(object);
22789 if (parent === null) {
22790 return void 0;
22791 } else {
22792 return get(parent, property, receiver);
22793 }
22794 } else if ("value" in desc) {
22795 return desc.value;
22796 } else {
22797 var getter = desc.get;
22798 if (getter === void 0) {
22799 return void 0;
22800 }
22801 return getter.call(receiver);
22802 }
22803 };
22804 var _inline = __webpack_require__(6);
22805 var _inline2 = _interopRequireDefault(_inline);
22806 function _interopRequireDefault(obj) {
22807 return obj && obj.__esModule ? obj : { default: obj };
22808 }
22809 function _classCallCheck2(instance, Constructor) {
22810 if (!(instance instanceof Constructor)) {
22811 throw new TypeError("Cannot call a class as a function");
22812 }
22813 }
22814 function _possibleConstructorReturn2(self2, call) {
22815 if (!self2) {
22816 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
22817 }
22818 return call && (typeof call === "object" || typeof call === "function") ? call : self2;
22819 }
22820 function _inherits2(subClass, superClass) {
22821 if (typeof superClass !== "function" && superClass !== null) {
22822 throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
22823 }
22824 subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
22825 if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
22826 }
22827 var Bold = function(_Inline) {
22828 _inherits2(Bold2, _Inline);
22829 function Bold2() {
22830 _classCallCheck2(this, Bold2);
22831 return _possibleConstructorReturn2(this, (Bold2.__proto__ || Object.getPrototypeOf(Bold2)).apply(this, arguments));
22832 }
22833 _createClass2(Bold2, [{
22834 key: "optimize",
22835 value: function optimize(context) {
22836 _get(Bold2.prototype.__proto__ || Object.getPrototypeOf(Bold2.prototype), "optimize", this).call(this, context);
22837 if (this.domNode.tagName !== this.statics.tagName[0]) {
22838 this.replaceWith(this.statics.blotName);
22839 }
22840 }
22841 }], [{
22842 key: "create",
22843 value: function create() {
22844 return _get(Bold2.__proto__ || Object.getPrototypeOf(Bold2), "create", this).call(this);
22845 }
22846 }, {
22847 key: "formats",
22848 value: function formats() {
22849 return true;
22850 }
22851 }]);
22852 return Bold2;
22853 }(_inline2.default);
22854 Bold.blotName = "bold";
22855 Bold.tagName = ["STRONG", "B"];
22856 exports$12.default = Bold;
22857 },
22858 /* 57 */
22859 /***/
22860 function(module2, exports$12, __webpack_require__) {
22861 Object.defineProperty(exports$12, "__esModule", {
22862 value: true
22863 });
22864 exports$12.addControls = exports$12.default = void 0;
22865 var _slicedToArray2 = /* @__PURE__ */ function() {
22866 function sliceIterator(arr, i) {
22867 var _arr = [];
22868 var _n = true;
22869 var _d2 = false;
22870 var _e2 = void 0;
22871 try {
22872 for (var _i2 = arr[Symbol.iterator](), _s; !(_n = (_s = _i2.next()).done); _n = true) {
22873 _arr.push(_s.value);
22874 if (i && _arr.length === i) break;
22875 }
22876 } catch (err) {
22877 _d2 = true;
22878 _e2 = err;
22879 } finally {
22880 try {
22881 if (!_n && _i2["return"]) _i2["return"]();
22882 } finally {
22883 if (_d2) throw _e2;
22884 }
22885 }
22886 return _arr;
22887 }
22888 return function(arr, i) {
22889 if (Array.isArray(arr)) {
22890 return arr;
22891 } else if (Symbol.iterator in Object(arr)) {
22892 return sliceIterator(arr, i);
22893 } else {
22894 throw new TypeError("Invalid attempt to destructure non-iterable instance");
22895 }
22896 };
22897 }();
22898 var _createClass2 = /* @__PURE__ */ function() {
22899 function defineProperties(target, props) {
22900 for (var i = 0; i < props.length; i++) {
22901 var descriptor = props[i];
22902 descriptor.enumerable = descriptor.enumerable || false;
22903 descriptor.configurable = true;
22904 if ("value" in descriptor) descriptor.writable = true;
22905 Object.defineProperty(target, descriptor.key, descriptor);
22906 }
22907 }
22908 return function(Constructor, protoProps, staticProps) {
22909 if (protoProps) defineProperties(Constructor.prototype, protoProps);
22910 if (staticProps) defineProperties(Constructor, staticProps);
22911 return Constructor;
22912 };
22913 }();
22914 var _quillDelta = __webpack_require__(2);
22915 var _quillDelta2 = _interopRequireDefault(_quillDelta);
22916 var _parchment = __webpack_require__(0);
22917 var _parchment2 = _interopRequireDefault(_parchment);
22918 var _quill = __webpack_require__(5);
22919 var _quill2 = _interopRequireDefault(_quill);
22920 var _logger = __webpack_require__(10);
22921 var _logger2 = _interopRequireDefault(_logger);
22922 var _module = __webpack_require__(9);
22923 var _module2 = _interopRequireDefault(_module);
22924 function _interopRequireDefault(obj) {
22925 return obj && obj.__esModule ? obj : { default: obj };
22926 }
22927 function _defineProperty2(obj, key, value) {
22928 if (key in obj) {
22929 Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
22930 } else {
22931 obj[key] = value;
22932 }
22933 return obj;
22934 }
22935 function _classCallCheck2(instance, Constructor) {
22936 if (!(instance instanceof Constructor)) {
22937 throw new TypeError("Cannot call a class as a function");
22938 }
22939 }
22940 function _possibleConstructorReturn2(self2, call) {
22941 if (!self2) {
22942 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
22943 }
22944 return call && (typeof call === "object" || typeof call === "function") ? call : self2;
22945 }
22946 function _inherits2(subClass, superClass) {
22947 if (typeof superClass !== "function" && superClass !== null) {
22948 throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
22949 }
22950 subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
22951 if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
22952 }
22953 var debug = (0, _logger2.default)("quill:toolbar");
22954 var Toolbar = function(_Module) {
22955 _inherits2(Toolbar2, _Module);
22956 function Toolbar2(quill2, options) {
22957 _classCallCheck2(this, Toolbar2);
22958 var _this = _possibleConstructorReturn2(this, (Toolbar2.__proto__ || Object.getPrototypeOf(Toolbar2)).call(this, quill2, options));
22959 if (Array.isArray(_this.options.container)) {
22960 var container = document.createElement("div");
22961 addControls(container, _this.options.container);
22962 quill2.container.parentNode.insertBefore(container, quill2.container);
22963 _this.container = container;
22964 } else if (typeof _this.options.container === "string") {
22965 _this.container = document.querySelector(_this.options.container);
22966 } else {
22967 _this.container = _this.options.container;
22968 }
22969 if (!(_this.container instanceof HTMLElement)) {
22970 var _ret;
22971 return _ret = debug.error("Container required for toolbar", _this.options), _possibleConstructorReturn2(_this, _ret);
22972 }
22973 _this.container.classList.add("ql-toolbar");
22974 _this.controls = [];
22975 _this.handlers = {};
22976 Object.keys(_this.options.handlers).forEach(function(format) {
22977 _this.addHandler(format, _this.options.handlers[format]);
22978 });
22979 [].forEach.call(_this.container.querySelectorAll("button, select"), function(input) {
22980 _this.attach(input);
22981 });
22982 _this.quill.on(_quill2.default.events.EDITOR_CHANGE, function(type, range) {
22983 if (type === _quill2.default.events.SELECTION_CHANGE) {
22984 _this.update(range);
22985 }
22986 });
22987 _this.quill.on(_quill2.default.events.SCROLL_OPTIMIZE, function() {
22988 var _this$quill$selection = _this.quill.selection.getRange(), _this$quill$selection2 = _slicedToArray2(_this$quill$selection, 1), range = _this$quill$selection2[0];
22989 _this.update(range);
22990 });
22991 return _this;
22992 }
22993 _createClass2(Toolbar2, [{
22994 key: "addHandler",
22995 value: function addHandler(format, handler) {
22996 this.handlers[format] = handler;
22997 }
22998 }, {
22999 key: "attach",
23000 value: function attach(input) {
23001 var _this2 = this;
23002 var format = [].find.call(input.classList, function(className) {
23003 return className.indexOf("ql-") === 0;
23004 });
23005 if (!format) return;
23006 format = format.slice("ql-".length);
23007 if (input.tagName === "BUTTON") {
23008 input.setAttribute("type", "button");
23009 }
23010 if (this.handlers[format] == null) {
23011 if (this.quill.scroll.whitelist != null && this.quill.scroll.whitelist[format] == null) {
23012 debug.warn("ignoring attaching to disabled format", format, input);
23013 return;
23014 }
23015 if (_parchment2.default.query(format) == null) {
23016 debug.warn("ignoring attaching to nonexistent format", format, input);
23017 return;
23018 }
23019 }
23020 var eventName = input.tagName === "SELECT" ? "change" : "click";
23021 input.addEventListener(eventName, function(e2) {
23022 var value = void 0;
23023 if (input.tagName === "SELECT") {
23024 if (input.selectedIndex < 0) return;
23025 var selected = input.options[input.selectedIndex];
23026 if (selected.hasAttribute("selected")) {
23027 value = false;
23028 } else {
23029 value = selected.value || false;
23030 }
23031 } else {
23032 if (input.classList.contains("ql-active")) {
23033 value = false;
23034 } else {
23035 value = input.value || !input.hasAttribute("value");
23036 }
23037 e2.preventDefault();
23038 }
23039 _this2.quill.focus();
23040 var _quill$selection$getR = _this2.quill.selection.getRange(), _quill$selection$getR2 = _slicedToArray2(_quill$selection$getR, 1), range = _quill$selection$getR2[0];
23041 if (_this2.handlers[format] != null) {
23042 _this2.handlers[format].call(_this2, value);
23043 } else if (_parchment2.default.query(format).prototype instanceof _parchment2.default.Embed) {
23044 value = prompt("Enter " + format);
23045 if (!value) return;
23046 _this2.quill.updateContents(new _quillDelta2.default().retain(range.index).delete(range.length).insert(_defineProperty2({}, format, value)), _quill2.default.sources.USER);
23047 } else {
23048 _this2.quill.format(format, value, _quill2.default.sources.USER);
23049 }
23050 _this2.update(range);
23051 });
23052 this.controls.push([format, input]);
23053 }
23054 }, {
23055 key: "update",
23056 value: function update(range) {
23057 var formats = range == null ? {} : this.quill.getFormat(range);
23058 this.controls.forEach(function(pair) {
23059 var _pair = _slicedToArray2(pair, 2), format = _pair[0], input = _pair[1];
23060 if (input.tagName === "SELECT") {
23061 var option = void 0;
23062 if (range == null) {
23063 option = null;
23064 } else if (formats[format] == null) {
23065 option = input.querySelector("option[selected]");
23066 } else if (!Array.isArray(formats[format])) {
23067 var value = formats[format];
23068 if (typeof value === "string") {
23069 value = value.replace(/\"/g, '\\"');
23070 }
23071 option = input.querySelector('option[value="' + value + '"]');
23072 }
23073 if (option == null) {
23074 input.value = "";
23075 input.selectedIndex = -1;
23076 } else {
23077 option.selected = true;
23078 }
23079 } else {
23080 if (range == null) {
23081 input.classList.remove("ql-active");
23082 } else if (input.hasAttribute("value")) {
23083 var isActive = formats[format] === input.getAttribute("value") || formats[format] != null && formats[format].toString() === input.getAttribute("value") || formats[format] == null && !input.getAttribute("value");
23084 input.classList.toggle("ql-active", isActive);
23085 } else {
23086 input.classList.toggle("ql-active", formats[format] != null);
23087 }
23088 }
23089 });
23090 }
23091 }]);
23092 return Toolbar2;
23093 }(_module2.default);
23094 Toolbar.DEFAULTS = {};
23095 function addButton(container, format, value) {
23096 var input = document.createElement("button");
23097 input.setAttribute("type", "button");
23098 input.classList.add("ql-" + format);
23099 if (value != null) {
23100 input.value = value;
23101 }
23102 container.appendChild(input);
23103 }
23104 function addControls(container, groups) {
23105 if (!Array.isArray(groups[0])) {
23106 groups = [groups];
23107 }
23108 groups.forEach(function(controls) {
23109 var group = document.createElement("span");
23110 group.classList.add("ql-formats");
23111 controls.forEach(function(control) {
23112 if (typeof control === "string") {
23113 addButton(group, control);
23114 } else {
23115 var format = Object.keys(control)[0];
23116 var value = control[format];
23117 if (Array.isArray(value)) {
23118 addSelect(group, format, value);
23119 } else {
23120 addButton(group, format, value);
23121 }
23122 }
23123 });
23124 container.appendChild(group);
23125 });
23126 }
23127 function addSelect(container, format, values) {
23128 var input = document.createElement("select");
23129 input.classList.add("ql-" + format);
23130 values.forEach(function(value) {
23131 var option = document.createElement("option");
23132 if (value !== false) {
23133 option.setAttribute("value", value);
23134 } else {
23135 option.setAttribute("selected", "selected");
23136 }
23137 input.appendChild(option);
23138 });
23139 container.appendChild(input);
23140 }
23141 Toolbar.DEFAULTS = {
23142 container: null,
23143 handlers: {
23144 clean: function clean() {
23145 var _this3 = this;
23146 var range = this.quill.getSelection();
23147 if (range == null) return;
23148 if (range.length == 0) {
23149 var formats = this.quill.getFormat();
23150 Object.keys(formats).forEach(function(name) {
23151 if (_parchment2.default.query(name, _parchment2.default.Scope.INLINE) != null) {
23152 _this3.quill.format(name, false);
23153 }
23154 });
23155 } else {
23156 this.quill.removeFormat(range, _quill2.default.sources.USER);
23157 }
23158 },
23159 direction: function direction(value) {
23160 var align = this.quill.getFormat()["align"];
23161 if (value === "rtl" && align == null) {
23162 this.quill.format("align", "right", _quill2.default.sources.USER);
23163 } else if (!value && align === "right") {
23164 this.quill.format("align", false, _quill2.default.sources.USER);
23165 }
23166 this.quill.format("direction", value, _quill2.default.sources.USER);
23167 },
23168 indent: function indent(value) {
23169 var range = this.quill.getSelection();
23170 var formats = this.quill.getFormat(range);
23171 var indent2 = parseInt(formats.indent || 0);
23172 if (value === "+1" || value === "-1") {
23173 var modifier = value === "+1" ? 1 : -1;
23174 if (formats.direction === "rtl") modifier *= -1;
23175 this.quill.format("indent", indent2 + modifier, _quill2.default.sources.USER);
23176 }
23177 },
23178 link: function link(value) {
23179 if (value === true) {
23180 value = prompt("Enter link URL:");
23181 }
23182 this.quill.format("link", value, _quill2.default.sources.USER);
23183 },
23184 list: function list(value) {
23185 var range = this.quill.getSelection();
23186 var formats = this.quill.getFormat(range);
23187 if (value === "check") {
23188 if (formats["list"] === "checked" || formats["list"] === "unchecked") {
23189 this.quill.format("list", false, _quill2.default.sources.USER);
23190 } else {
23191 this.quill.format("list", "unchecked", _quill2.default.sources.USER);
23192 }
23193 } else {
23194 this.quill.format("list", value, _quill2.default.sources.USER);
23195 }
23196 }
23197 }
23198 };
23199 exports$12.default = Toolbar;
23200 exports$12.addControls = addControls;
23201 },
23202 /* 58 */
23203 /***/
23204 function(module2, exports$12) {
23205 module2.exports = '<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>';
23206 },
23207 /* 59 */
23208 /***/
23209 function(module2, exports$12, __webpack_require__) {
23210 Object.defineProperty(exports$12, "__esModule", {
23211 value: true
23212 });
23213 var _createClass2 = /* @__PURE__ */ function() {
23214 function defineProperties(target, props) {
23215 for (var i = 0; i < props.length; i++) {
23216 var descriptor = props[i];
23217 descriptor.enumerable = descriptor.enumerable || false;
23218 descriptor.configurable = true;
23219 if ("value" in descriptor) descriptor.writable = true;
23220 Object.defineProperty(target, descriptor.key, descriptor);
23221 }
23222 }
23223 return function(Constructor, protoProps, staticProps) {
23224 if (protoProps) defineProperties(Constructor.prototype, protoProps);
23225 if (staticProps) defineProperties(Constructor, staticProps);
23226 return Constructor;
23227 };
23228 }();
23229 var _get = function get(object, property, receiver) {
23230 if (object === null) object = Function.prototype;
23231 var desc = Object.getOwnPropertyDescriptor(object, property);
23232 if (desc === void 0) {
23233 var parent = Object.getPrototypeOf(object);
23234 if (parent === null) {
23235 return void 0;
23236 } else {
23237 return get(parent, property, receiver);
23238 }
23239 } else if ("value" in desc) {
23240 return desc.value;
23241 } else {
23242 var getter = desc.get;
23243 if (getter === void 0) {
23244 return void 0;
23245 }
23246 return getter.call(receiver);
23247 }
23248 };
23249 var _picker = __webpack_require__(28);
23250 var _picker2 = _interopRequireDefault(_picker);
23251 function _interopRequireDefault(obj) {
23252 return obj && obj.__esModule ? obj : { default: obj };
23253 }
23254 function _classCallCheck2(instance, Constructor) {
23255 if (!(instance instanceof Constructor)) {
23256 throw new TypeError("Cannot call a class as a function");
23257 }
23258 }
23259 function _possibleConstructorReturn2(self2, call) {
23260 if (!self2) {
23261 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
23262 }
23263 return call && (typeof call === "object" || typeof call === "function") ? call : self2;
23264 }
23265 function _inherits2(subClass, superClass) {
23266 if (typeof superClass !== "function" && superClass !== null) {
23267 throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
23268 }
23269 subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
23270 if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
23271 }
23272 var ColorPicker = function(_Picker) {
23273 _inherits2(ColorPicker2, _Picker);
23274 function ColorPicker2(select, label) {
23275 _classCallCheck2(this, ColorPicker2);
23276 var _this = _possibleConstructorReturn2(this, (ColorPicker2.__proto__ || Object.getPrototypeOf(ColorPicker2)).call(this, select));
23277 _this.label.innerHTML = label;
23278 _this.container.classList.add("ql-color-picker");
23279 [].slice.call(_this.container.querySelectorAll(".ql-picker-item"), 0, 7).forEach(function(item) {
23280 item.classList.add("ql-primary");
23281 });
23282 return _this;
23283 }
23284 _createClass2(ColorPicker2, [{
23285 key: "buildItem",
23286 value: function buildItem(option) {
23287 var item = _get(ColorPicker2.prototype.__proto__ || Object.getPrototypeOf(ColorPicker2.prototype), "buildItem", this).call(this, option);
23288 item.style.backgroundColor = option.getAttribute("value") || "";
23289 return item;
23290 }
23291 }, {
23292 key: "selectItem",
23293 value: function selectItem(item, trigger) {
23294 _get(ColorPicker2.prototype.__proto__ || Object.getPrototypeOf(ColorPicker2.prototype), "selectItem", this).call(this, item, trigger);
23295 var colorLabel = this.label.querySelector(".ql-color-label");
23296 var value = item ? item.getAttribute("data-value") || "" : "";
23297 if (colorLabel) {
23298 if (colorLabel.tagName === "line") {
23299 colorLabel.style.stroke = value;
23300 } else {
23301 colorLabel.style.fill = value;
23302 }
23303 }
23304 }
23305 }]);
23306 return ColorPicker2;
23307 }(_picker2.default);
23308 exports$12.default = ColorPicker;
23309 },
23310 /* 60 */
23311 /***/
23312 function(module2, exports$12, __webpack_require__) {
23313 Object.defineProperty(exports$12, "__esModule", {
23314 value: true
23315 });
23316 var _createClass2 = /* @__PURE__ */ function() {
23317 function defineProperties(target, props) {
23318 for (var i = 0; i < props.length; i++) {
23319 var descriptor = props[i];
23320 descriptor.enumerable = descriptor.enumerable || false;
23321 descriptor.configurable = true;
23322 if ("value" in descriptor) descriptor.writable = true;
23323 Object.defineProperty(target, descriptor.key, descriptor);
23324 }
23325 }
23326 return function(Constructor, protoProps, staticProps) {
23327 if (protoProps) defineProperties(Constructor.prototype, protoProps);
23328 if (staticProps) defineProperties(Constructor, staticProps);
23329 return Constructor;
23330 };
23331 }();
23332 var _get = function get(object, property, receiver) {
23333 if (object === null) object = Function.prototype;
23334 var desc = Object.getOwnPropertyDescriptor(object, property);
23335 if (desc === void 0) {
23336 var parent = Object.getPrototypeOf(object);
23337 if (parent === null) {
23338 return void 0;
23339 } else {
23340 return get(parent, property, receiver);
23341 }
23342 } else if ("value" in desc) {
23343 return desc.value;
23344 } else {
23345 var getter = desc.get;
23346 if (getter === void 0) {
23347 return void 0;
23348 }
23349 return getter.call(receiver);
23350 }
23351 };
23352 var _picker = __webpack_require__(28);
23353 var _picker2 = _interopRequireDefault(_picker);
23354 function _interopRequireDefault(obj) {
23355 return obj && obj.__esModule ? obj : { default: obj };
23356 }
23357 function _classCallCheck2(instance, Constructor) {
23358 if (!(instance instanceof Constructor)) {
23359 throw new TypeError("Cannot call a class as a function");
23360 }
23361 }
23362 function _possibleConstructorReturn2(self2, call) {
23363 if (!self2) {
23364 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
23365 }
23366 return call && (typeof call === "object" || typeof call === "function") ? call : self2;
23367 }
23368 function _inherits2(subClass, superClass) {
23369 if (typeof superClass !== "function" && superClass !== null) {
23370 throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
23371 }
23372 subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
23373 if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
23374 }
23375 var IconPicker = function(_Picker) {
23376 _inherits2(IconPicker2, _Picker);
23377 function IconPicker2(select, icons) {
23378 _classCallCheck2(this, IconPicker2);
23379 var _this = _possibleConstructorReturn2(this, (IconPicker2.__proto__ || Object.getPrototypeOf(IconPicker2)).call(this, select));
23380 _this.container.classList.add("ql-icon-picker");
23381 [].forEach.call(_this.container.querySelectorAll(".ql-picker-item"), function(item) {
23382 item.innerHTML = icons[item.getAttribute("data-value") || ""];
23383 });
23384 _this.defaultItem = _this.container.querySelector(".ql-selected");
23385 _this.selectItem(_this.defaultItem);
23386 return _this;
23387 }
23388 _createClass2(IconPicker2, [{
23389 key: "selectItem",
23390 value: function selectItem(item, trigger) {
23391 _get(IconPicker2.prototype.__proto__ || Object.getPrototypeOf(IconPicker2.prototype), "selectItem", this).call(this, item, trigger);
23392 item = item || this.defaultItem;
23393 this.label.innerHTML = item.innerHTML;
23394 }
23395 }]);
23396 return IconPicker2;
23397 }(_picker2.default);
23398 exports$12.default = IconPicker;
23399 },
23400 /* 61 */
23401 /***/
23402 function(module2, exports$12, __webpack_require__) {
23403 Object.defineProperty(exports$12, "__esModule", {
23404 value: true
23405 });
23406 var _createClass2 = /* @__PURE__ */ function() {
23407 function defineProperties(target, props) {
23408 for (var i = 0; i < props.length; i++) {
23409 var descriptor = props[i];
23410 descriptor.enumerable = descriptor.enumerable || false;
23411 descriptor.configurable = true;
23412 if ("value" in descriptor) descriptor.writable = true;
23413 Object.defineProperty(target, descriptor.key, descriptor);
23414 }
23415 }
23416 return function(Constructor, protoProps, staticProps) {
23417 if (protoProps) defineProperties(Constructor.prototype, protoProps);
23418 if (staticProps) defineProperties(Constructor, staticProps);
23419 return Constructor;
23420 };
23421 }();
23422 function _classCallCheck2(instance, Constructor) {
23423 if (!(instance instanceof Constructor)) {
23424 throw new TypeError("Cannot call a class as a function");
23425 }
23426 }
23427 var Tooltip = function() {
23428 function Tooltip2(quill2, boundsContainer) {
23429 var _this = this;
23430 _classCallCheck2(this, Tooltip2);
23431 this.quill = quill2;
23432 this.boundsContainer = boundsContainer || document.body;
23433 this.root = quill2.addContainer("ql-tooltip");
23434 this.root.innerHTML = this.constructor.TEMPLATE;
23435 if (this.quill.root === this.quill.scrollingContainer) {
23436 this.quill.root.addEventListener("scroll", function() {
23437 _this.root.style.marginTop = -1 * _this.quill.root.scrollTop + "px";
23438 });
23439 }
23440 this.hide();
23441 }
23442 _createClass2(Tooltip2, [{
23443 key: "hide",
23444 value: function hide() {
23445 this.root.classList.add("ql-hidden");
23446 }
23447 }, {
23448 key: "position",
23449 value: function position(reference) {
23450 var left = reference.left + reference.width / 2 - this.root.offsetWidth / 2;
23451 var top = reference.bottom + this.quill.root.scrollTop;
23452 this.root.style.left = left + "px";
23453 this.root.style.top = top + "px";
23454 this.root.classList.remove("ql-flip");
23455 var containerBounds = this.boundsContainer.getBoundingClientRect();
23456 var rootBounds = this.root.getBoundingClientRect();
23457 var shift = 0;
23458 if (rootBounds.right > containerBounds.right) {
23459 shift = containerBounds.right - rootBounds.right;
23460 this.root.style.left = left + shift + "px";
23461 }
23462 if (rootBounds.left < containerBounds.left) {
23463 shift = containerBounds.left - rootBounds.left;
23464 this.root.style.left = left + shift + "px";
23465 }
23466 if (rootBounds.bottom > containerBounds.bottom) {
23467 var height = rootBounds.bottom - rootBounds.top;
23468 var verticalShift = reference.bottom - reference.top + height;
23469 this.root.style.top = top - verticalShift + "px";
23470 this.root.classList.add("ql-flip");
23471 }
23472 return shift;
23473 }
23474 }, {
23475 key: "show",
23476 value: function show() {
23477 this.root.classList.remove("ql-editing");
23478 this.root.classList.remove("ql-hidden");
23479 }
23480 }]);
23481 return Tooltip2;
23482 }();
23483 exports$12.default = Tooltip;
23484 },
23485 /* 62 */
23486 /***/
23487 function(module2, exports$12, __webpack_require__) {
23488 Object.defineProperty(exports$12, "__esModule", {
23489 value: true
23490 });
23491 var _slicedToArray2 = /* @__PURE__ */ function() {
23492 function sliceIterator(arr, i) {
23493 var _arr = [];
23494 var _n = true;
23495 var _d2 = false;
23496 var _e2 = void 0;
23497 try {
23498 for (var _i2 = arr[Symbol.iterator](), _s; !(_n = (_s = _i2.next()).done); _n = true) {
23499 _arr.push(_s.value);
23500 if (i && _arr.length === i) break;
23501 }
23502 } catch (err) {
23503 _d2 = true;
23504 _e2 = err;
23505 } finally {
23506 try {
23507 if (!_n && _i2["return"]) _i2["return"]();
23508 } finally {
23509 if (_d2) throw _e2;
23510 }
23511 }
23512 return _arr;
23513 }
23514 return function(arr, i) {
23515 if (Array.isArray(arr)) {
23516 return arr;
23517 } else if (Symbol.iterator in Object(arr)) {
23518 return sliceIterator(arr, i);
23519 } else {
23520 throw new TypeError("Invalid attempt to destructure non-iterable instance");
23521 }
23522 };
23523 }();
23524 var _get = function get(object, property, receiver) {
23525 if (object === null) object = Function.prototype;
23526 var desc = Object.getOwnPropertyDescriptor(object, property);
23527 if (desc === void 0) {
23528 var parent = Object.getPrototypeOf(object);
23529 if (parent === null) {
23530 return void 0;
23531 } else {
23532 return get(parent, property, receiver);
23533 }
23534 } else if ("value" in desc) {
23535 return desc.value;
23536 } else {
23537 var getter = desc.get;
23538 if (getter === void 0) {
23539 return void 0;
23540 }
23541 return getter.call(receiver);
23542 }
23543 };
23544 var _createClass2 = /* @__PURE__ */ function() {
23545 function defineProperties(target, props) {
23546 for (var i = 0; i < props.length; i++) {
23547 var descriptor = props[i];
23548 descriptor.enumerable = descriptor.enumerable || false;
23549 descriptor.configurable = true;
23550 if ("value" in descriptor) descriptor.writable = true;
23551 Object.defineProperty(target, descriptor.key, descriptor);
23552 }
23553 }
23554 return function(Constructor, protoProps, staticProps) {
23555 if (protoProps) defineProperties(Constructor.prototype, protoProps);
23556 if (staticProps) defineProperties(Constructor, staticProps);
23557 return Constructor;
23558 };
23559 }();
23560 var _extend = __webpack_require__(3);
23561 var _extend2 = _interopRequireDefault(_extend);
23562 var _emitter = __webpack_require__(8);
23563 var _emitter2 = _interopRequireDefault(_emitter);
23564 var _base = __webpack_require__(43);
23565 var _base2 = _interopRequireDefault(_base);
23566 var _link = __webpack_require__(27);
23567 var _link2 = _interopRequireDefault(_link);
23568 var _selection = __webpack_require__(15);
23569 var _icons = __webpack_require__(41);
23570 var _icons2 = _interopRequireDefault(_icons);
23571 function _interopRequireDefault(obj) {
23572 return obj && obj.__esModule ? obj : { default: obj };
23573 }
23574 function _classCallCheck2(instance, Constructor) {
23575 if (!(instance instanceof Constructor)) {
23576 throw new TypeError("Cannot call a class as a function");
23577 }
23578 }
23579 function _possibleConstructorReturn2(self2, call) {
23580 if (!self2) {
23581 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
23582 }
23583 return call && (typeof call === "object" || typeof call === "function") ? call : self2;
23584 }
23585 function _inherits2(subClass, superClass) {
23586 if (typeof superClass !== "function" && superClass !== null) {
23587 throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
23588 }
23589 subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
23590 if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
23591 }
23592 var TOOLBAR_CONFIG = [[{ header: ["1", "2", "3", false] }], ["bold", "italic", "underline", "link"], [{ list: "ordered" }, { list: "bullet" }], ["clean"]];
23593 var SnowTheme = function(_BaseTheme) {
23594 _inherits2(SnowTheme2, _BaseTheme);
23595 function SnowTheme2(quill2, options) {
23596 _classCallCheck2(this, SnowTheme2);
23597 if (options.modules.toolbar != null && options.modules.toolbar.container == null) {
23598 options.modules.toolbar.container = TOOLBAR_CONFIG;
23599 }
23600 var _this = _possibleConstructorReturn2(this, (SnowTheme2.__proto__ || Object.getPrototypeOf(SnowTheme2)).call(this, quill2, options));
23601 _this.quill.container.classList.add("ql-snow");
23602 return _this;
23603 }
23604 _createClass2(SnowTheme2, [{
23605 key: "extendToolbar",
23606 value: function extendToolbar(toolbar) {
23607 toolbar.container.classList.add("ql-snow");
23608 this.buildButtons([].slice.call(toolbar.container.querySelectorAll("button")), _icons2.default);
23609 this.buildPickers([].slice.call(toolbar.container.querySelectorAll("select")), _icons2.default);
23610 this.tooltip = new SnowTooltip(this.quill, this.options.bounds);
23611 if (toolbar.container.querySelector(".ql-link")) {
23612 this.quill.keyboard.addBinding({ key: "K", shortKey: true }, function(range, context) {
23613 toolbar.handlers["link"].call(toolbar, !context.format.link);
23614 });
23615 }
23616 }
23617 }]);
23618 return SnowTheme2;
23619 }(_base2.default);
23620 SnowTheme.DEFAULTS = (0, _extend2.default)(true, {}, _base2.default.DEFAULTS, {
23621 modules: {
23622 toolbar: {
23623 handlers: {
23624 link: function link(value) {
23625 if (value) {
23626 var range = this.quill.getSelection();
23627 if (range == null || range.length == 0) return;
23628 var preview = this.quill.getText(range);
23629 if (/^\S+@\S+\.\S+$/.test(preview) && preview.indexOf("mailto:") !== 0) {
23630 preview = "mailto:" + preview;
23631 }
23632 var tooltip = this.quill.theme.tooltip;
23633 tooltip.edit("link", preview);
23634 } else {
23635 this.quill.format("link", false);
23636 }
23637 }
23638 }
23639 }
23640 }
23641 });
23642 var SnowTooltip = function(_BaseTooltip) {
23643 _inherits2(SnowTooltip2, _BaseTooltip);
23644 function SnowTooltip2(quill2, bounds) {
23645 _classCallCheck2(this, SnowTooltip2);
23646 var _this2 = _possibleConstructorReturn2(this, (SnowTooltip2.__proto__ || Object.getPrototypeOf(SnowTooltip2)).call(this, quill2, bounds));
23647 _this2.preview = _this2.root.querySelector("a.ql-preview");
23648 return _this2;
23649 }
23650 _createClass2(SnowTooltip2, [{
23651 key: "listen",
23652 value: function listen() {
23653 var _this3 = this;
23654 _get(SnowTooltip2.prototype.__proto__ || Object.getPrototypeOf(SnowTooltip2.prototype), "listen", this).call(this);
23655 this.root.querySelector("a.ql-action").addEventListener("click", function(event) {
23656 if (_this3.root.classList.contains("ql-editing")) {
23657 _this3.save();
23658 } else {
23659 _this3.edit("link", _this3.preview.textContent);
23660 }
23661 event.preventDefault();
23662 });
23663 this.root.querySelector("a.ql-remove").addEventListener("click", function(event) {
23664 if (_this3.linkRange != null) {
23665 var range = _this3.linkRange;
23666 _this3.restoreFocus();
23667 _this3.quill.formatText(range, "link", false, _emitter2.default.sources.USER);
23668 delete _this3.linkRange;
23669 }
23670 event.preventDefault();
23671 _this3.hide();
23672 });
23673 this.quill.on(_emitter2.default.events.SELECTION_CHANGE, function(range, oldRange, source) {
23674 if (range == null) return;
23675 if (range.length === 0 && source === _emitter2.default.sources.USER) {
23676 var _quill$scroll$descend = _this3.quill.scroll.descendant(_link2.default, range.index), _quill$scroll$descend2 = _slicedToArray2(_quill$scroll$descend, 2), link = _quill$scroll$descend2[0], offset = _quill$scroll$descend2[1];
23677 if (link != null) {
23678 _this3.linkRange = new _selection.Range(range.index - offset, link.length());
23679 var preview = _link2.default.formats(link.domNode);
23680 _this3.preview.textContent = preview;
23681 _this3.preview.setAttribute("href", preview);
23682 _this3.show();
23683 _this3.position(_this3.quill.getBounds(_this3.linkRange));
23684 return;
23685 }
23686 } else {
23687 delete _this3.linkRange;
23688 }
23689 _this3.hide();
23690 });
23691 }
23692 }, {
23693 key: "show",
23694 value: function show() {
23695 _get(SnowTooltip2.prototype.__proto__ || Object.getPrototypeOf(SnowTooltip2.prototype), "show", this).call(this);
23696 this.root.removeAttribute("data-mode");
23697 }
23698 }]);
23699 return SnowTooltip2;
23700 }(_base.BaseTooltip);
23701 SnowTooltip.TEMPLATE = ['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-action"></a>', '<a class="ql-remove"></a>'].join("");
23702 exports$12.default = SnowTheme;
23703 },
23704 /* 63 */
23705 /***/
23706 function(module2, exports$12, __webpack_require__) {
23707 Object.defineProperty(exports$12, "__esModule", {
23708 value: true
23709 });
23710 var _core = __webpack_require__(29);
23711 var _core2 = _interopRequireDefault(_core);
23712 var _align = __webpack_require__(36);
23713 var _direction = __webpack_require__(38);
23714 var _indent = __webpack_require__(64);
23715 var _blockquote = __webpack_require__(65);
23716 var _blockquote2 = _interopRequireDefault(_blockquote);
23717 var _header = __webpack_require__(66);
23718 var _header2 = _interopRequireDefault(_header);
23719 var _list = __webpack_require__(67);
23720 var _list2 = _interopRequireDefault(_list);
23721 var _background = __webpack_require__(37);
23722 var _color = __webpack_require__(26);
23723 var _font = __webpack_require__(39);
23724 var _size = __webpack_require__(40);
23725 var _bold = __webpack_require__(56);
23726 var _bold2 = _interopRequireDefault(_bold);
23727 var _italic = __webpack_require__(68);
23728 var _italic2 = _interopRequireDefault(_italic);
23729 var _link = __webpack_require__(27);
23730 var _link2 = _interopRequireDefault(_link);
23731 var _script = __webpack_require__(69);
23732 var _script2 = _interopRequireDefault(_script);
23733 var _strike = __webpack_require__(70);
23734 var _strike2 = _interopRequireDefault(_strike);
23735 var _underline = __webpack_require__(71);
23736 var _underline2 = _interopRequireDefault(_underline);
23737 var _image = __webpack_require__(72);
23738 var _image2 = _interopRequireDefault(_image);
23739 var _video = __webpack_require__(73);
23740 var _video2 = _interopRequireDefault(_video);
23741 var _code = __webpack_require__(13);
23742 var _code2 = _interopRequireDefault(_code);
23743 var _formula = __webpack_require__(74);
23744 var _formula2 = _interopRequireDefault(_formula);
23745 var _syntax = __webpack_require__(75);
23746 var _syntax2 = _interopRequireDefault(_syntax);
23747 var _toolbar = __webpack_require__(57);
23748 var _toolbar2 = _interopRequireDefault(_toolbar);
23749 var _icons = __webpack_require__(41);
23750 var _icons2 = _interopRequireDefault(_icons);
23751 var _picker = __webpack_require__(28);
23752 var _picker2 = _interopRequireDefault(_picker);
23753 var _colorPicker = __webpack_require__(59);
23754 var _colorPicker2 = _interopRequireDefault(_colorPicker);
23755 var _iconPicker = __webpack_require__(60);
23756 var _iconPicker2 = _interopRequireDefault(_iconPicker);
23757 var _tooltip = __webpack_require__(61);
23758 var _tooltip2 = _interopRequireDefault(_tooltip);
23759 var _bubble = __webpack_require__(108);
23760 var _bubble2 = _interopRequireDefault(_bubble);
23761 var _snow = __webpack_require__(62);
23762 var _snow2 = _interopRequireDefault(_snow);
23763 function _interopRequireDefault(obj) {
23764 return obj && obj.__esModule ? obj : { default: obj };
23765 }
23766 _core2.default.register({
23767 "attributors/attribute/direction": _direction.DirectionAttribute,
23768 "attributors/class/align": _align.AlignClass,
23769 "attributors/class/background": _background.BackgroundClass,
23770 "attributors/class/color": _color.ColorClass,
23771 "attributors/class/direction": _direction.DirectionClass,
23772 "attributors/class/font": _font.FontClass,
23773 "attributors/class/size": _size.SizeClass,
23774 "attributors/style/align": _align.AlignStyle,
23775 "attributors/style/background": _background.BackgroundStyle,
23776 "attributors/style/color": _color.ColorStyle,
23777 "attributors/style/direction": _direction.DirectionStyle,
23778 "attributors/style/font": _font.FontStyle,
23779 "attributors/style/size": _size.SizeStyle
23780 }, true);
23781 _core2.default.register({
23782 "formats/align": _align.AlignClass,
23783 "formats/direction": _direction.DirectionClass,
23784 "formats/indent": _indent.IndentClass,
23785 "formats/background": _background.BackgroundStyle,
23786 "formats/color": _color.ColorStyle,
23787 "formats/font": _font.FontClass,
23788 "formats/size": _size.SizeClass,
23789 "formats/blockquote": _blockquote2.default,
23790 "formats/code-block": _code2.default,
23791 "formats/header": _header2.default,
23792 "formats/list": _list2.default,
23793 "formats/bold": _bold2.default,
23794 "formats/code": _code.Code,
23795 "formats/italic": _italic2.default,
23796 "formats/link": _link2.default,
23797 "formats/script": _script2.default,
23798 "formats/strike": _strike2.default,
23799 "formats/underline": _underline2.default,
23800 "formats/image": _image2.default,
23801 "formats/video": _video2.default,
23802 "formats/list/item": _list.ListItem,
23803 "modules/formula": _formula2.default,
23804 "modules/syntax": _syntax2.default,
23805 "modules/toolbar": _toolbar2.default,
23806 "themes/bubble": _bubble2.default,
23807 "themes/snow": _snow2.default,
23808 "ui/icons": _icons2.default,
23809 "ui/picker": _picker2.default,
23810 "ui/icon-picker": _iconPicker2.default,
23811 "ui/color-picker": _colorPicker2.default,
23812 "ui/tooltip": _tooltip2.default
23813 }, true);
23814 exports$12.default = _core2.default;
23815 },
23816 /* 64 */
23817 /***/
23818 function(module2, exports$12, __webpack_require__) {
23819 Object.defineProperty(exports$12, "__esModule", {
23820 value: true
23821 });
23822 exports$12.IndentClass = void 0;
23823 var _createClass2 = /* @__PURE__ */ function() {
23824 function defineProperties(target, props) {
23825 for (var i = 0; i < props.length; i++) {
23826 var descriptor = props[i];
23827 descriptor.enumerable = descriptor.enumerable || false;
23828 descriptor.configurable = true;
23829 if ("value" in descriptor) descriptor.writable = true;
23830 Object.defineProperty(target, descriptor.key, descriptor);
23831 }
23832 }
23833 return function(Constructor, protoProps, staticProps) {
23834 if (protoProps) defineProperties(Constructor.prototype, protoProps);
23835 if (staticProps) defineProperties(Constructor, staticProps);
23836 return Constructor;
23837 };
23838 }();
23839 var _get = function get(object, property, receiver) {
23840 if (object === null) object = Function.prototype;
23841 var desc = Object.getOwnPropertyDescriptor(object, property);
23842 if (desc === void 0) {
23843 var parent = Object.getPrototypeOf(object);
23844 if (parent === null) {
23845 return void 0;
23846 } else {
23847 return get(parent, property, receiver);
23848 }
23849 } else if ("value" in desc) {
23850 return desc.value;
23851 } else {
23852 var getter = desc.get;
23853 if (getter === void 0) {
23854 return void 0;
23855 }
23856 return getter.call(receiver);
23857 }
23858 };
23859 var _parchment = __webpack_require__(0);
23860 var _parchment2 = _interopRequireDefault(_parchment);
23861 function _interopRequireDefault(obj) {
23862 return obj && obj.__esModule ? obj : { default: obj };
23863 }
23864 function _classCallCheck2(instance, Constructor) {
23865 if (!(instance instanceof Constructor)) {
23866 throw new TypeError("Cannot call a class as a function");
23867 }
23868 }
23869 function _possibleConstructorReturn2(self2, call) {
23870 if (!self2) {
23871 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
23872 }
23873 return call && (typeof call === "object" || typeof call === "function") ? call : self2;
23874 }
23875 function _inherits2(subClass, superClass) {
23876 if (typeof superClass !== "function" && superClass !== null) {
23877 throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
23878 }
23879 subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
23880 if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
23881 }
23882 var IdentAttributor = function(_Parchment$Attributor) {
23883 _inherits2(IdentAttributor2, _Parchment$Attributor);
23884 function IdentAttributor2() {
23885 _classCallCheck2(this, IdentAttributor2);
23886 return _possibleConstructorReturn2(this, (IdentAttributor2.__proto__ || Object.getPrototypeOf(IdentAttributor2)).apply(this, arguments));
23887 }
23888 _createClass2(IdentAttributor2, [{
23889 key: "add",
23890 value: function add(node, value) {
23891 if (value === "+1" || value === "-1") {
23892 var indent = this.value(node) || 0;
23893 value = value === "+1" ? indent + 1 : indent - 1;
23894 }
23895 if (value === 0) {
23896 this.remove(node);
23897 return true;
23898 } else {
23899 return _get(IdentAttributor2.prototype.__proto__ || Object.getPrototypeOf(IdentAttributor2.prototype), "add", this).call(this, node, value);
23900 }
23901 }
23902 }, {
23903 key: "canAdd",
23904 value: function canAdd(node, value) {
23905 return _get(IdentAttributor2.prototype.__proto__ || Object.getPrototypeOf(IdentAttributor2.prototype), "canAdd", this).call(this, node, value) || _get(IdentAttributor2.prototype.__proto__ || Object.getPrototypeOf(IdentAttributor2.prototype), "canAdd", this).call(this, node, parseInt(value));
23906 }
23907 }, {
23908 key: "value",
23909 value: function value(node) {
23910 return parseInt(_get(IdentAttributor2.prototype.__proto__ || Object.getPrototypeOf(IdentAttributor2.prototype), "value", this).call(this, node)) || void 0;
23911 }
23912 }]);
23913 return IdentAttributor2;
23914 }(_parchment2.default.Attributor.Class);
23915 var IndentClass = new IdentAttributor("indent", "ql-indent", {
23916 scope: _parchment2.default.Scope.BLOCK,
23917 whitelist: [1, 2, 3, 4, 5, 6, 7, 8]
23918 });
23919 exports$12.IndentClass = IndentClass;
23920 },
23921 /* 65 */
23922 /***/
23923 function(module2, exports$12, __webpack_require__) {
23924 Object.defineProperty(exports$12, "__esModule", {
23925 value: true
23926 });
23927 var _block = __webpack_require__(4);
23928 var _block2 = _interopRequireDefault(_block);
23929 function _interopRequireDefault(obj) {
23930 return obj && obj.__esModule ? obj : { default: obj };
23931 }
23932 function _classCallCheck2(instance, Constructor) {
23933 if (!(instance instanceof Constructor)) {
23934 throw new TypeError("Cannot call a class as a function");
23935 }
23936 }
23937 function _possibleConstructorReturn2(self2, call) {
23938 if (!self2) {
23939 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
23940 }
23941 return call && (typeof call === "object" || typeof call === "function") ? call : self2;
23942 }
23943 function _inherits2(subClass, superClass) {
23944 if (typeof superClass !== "function" && superClass !== null) {
23945 throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
23946 }
23947 subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
23948 if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
23949 }
23950 var Blockquote = function(_Block) {
23951 _inherits2(Blockquote2, _Block);
23952 function Blockquote2() {
23953 _classCallCheck2(this, Blockquote2);
23954 return _possibleConstructorReturn2(this, (Blockquote2.__proto__ || Object.getPrototypeOf(Blockquote2)).apply(this, arguments));
23955 }
23956 return Blockquote2;
23957 }(_block2.default);
23958 Blockquote.blotName = "blockquote";
23959 Blockquote.tagName = "blockquote";
23960 exports$12.default = Blockquote;
23961 },
23962 /* 66 */
23963 /***/
23964 function(module2, exports$12, __webpack_require__) {
23965 Object.defineProperty(exports$12, "__esModule", {
23966 value: true
23967 });
23968 var _createClass2 = /* @__PURE__ */ function() {
23969 function defineProperties(target, props) {
23970 for (var i = 0; i < props.length; i++) {
23971 var descriptor = props[i];
23972 descriptor.enumerable = descriptor.enumerable || false;
23973 descriptor.configurable = true;
23974 if ("value" in descriptor) descriptor.writable = true;
23975 Object.defineProperty(target, descriptor.key, descriptor);
23976 }
23977 }
23978 return function(Constructor, protoProps, staticProps) {
23979 if (protoProps) defineProperties(Constructor.prototype, protoProps);
23980 if (staticProps) defineProperties(Constructor, staticProps);
23981 return Constructor;
23982 };
23983 }();
23984 var _block = __webpack_require__(4);
23985 var _block2 = _interopRequireDefault(_block);
23986 function _interopRequireDefault(obj) {
23987 return obj && obj.__esModule ? obj : { default: obj };
23988 }
23989 function _classCallCheck2(instance, Constructor) {
23990 if (!(instance instanceof Constructor)) {
23991 throw new TypeError("Cannot call a class as a function");
23992 }
23993 }
23994 function _possibleConstructorReturn2(self2, call) {
23995 if (!self2) {
23996 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
23997 }
23998 return call && (typeof call === "object" || typeof call === "function") ? call : self2;
23999 }
24000 function _inherits2(subClass, superClass) {
24001 if (typeof superClass !== "function" && superClass !== null) {
24002 throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
24003 }
24004 subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
24005 if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
24006 }
24007 var Header = function(_Block) {
24008 _inherits2(Header2, _Block);
24009 function Header2() {
24010 _classCallCheck2(this, Header2);
24011 return _possibleConstructorReturn2(this, (Header2.__proto__ || Object.getPrototypeOf(Header2)).apply(this, arguments));
24012 }
24013 _createClass2(Header2, null, [{
24014 key: "formats",
24015 value: function formats(domNode) {
24016 return this.tagName.indexOf(domNode.tagName) + 1;
24017 }
24018 }]);
24019 return Header2;
24020 }(_block2.default);
24021 Header.blotName = "header";
24022 Header.tagName = ["H1", "H2", "H3", "H4", "H5", "H6"];
24023 exports$12.default = Header;
24024 },
24025 /* 67 */
24026 /***/
24027 function(module2, exports$12, __webpack_require__) {
24028 Object.defineProperty(exports$12, "__esModule", {
24029 value: true
24030 });
24031 exports$12.default = exports$12.ListItem = void 0;
24032 var _createClass2 = /* @__PURE__ */ function() {
24033 function defineProperties(target, props) {
24034 for (var i = 0; i < props.length; i++) {
24035 var descriptor = props[i];
24036 descriptor.enumerable = descriptor.enumerable || false;
24037 descriptor.configurable = true;
24038 if ("value" in descriptor) descriptor.writable = true;
24039 Object.defineProperty(target, descriptor.key, descriptor);
24040 }
24041 }
24042 return function(Constructor, protoProps, staticProps) {
24043 if (protoProps) defineProperties(Constructor.prototype, protoProps);
24044 if (staticProps) defineProperties(Constructor, staticProps);
24045 return Constructor;
24046 };
24047 }();
24048 var _get = function get(object, property, receiver) {
24049 if (object === null) object = Function.prototype;
24050 var desc = Object.getOwnPropertyDescriptor(object, property);
24051 if (desc === void 0) {
24052 var parent = Object.getPrototypeOf(object);
24053 if (parent === null) {
24054 return void 0;
24055 } else {
24056 return get(parent, property, receiver);
24057 }
24058 } else if ("value" in desc) {
24059 return desc.value;
24060 } else {
24061 var getter = desc.get;
24062 if (getter === void 0) {
24063 return void 0;
24064 }
24065 return getter.call(receiver);
24066 }
24067 };
24068 var _parchment = __webpack_require__(0);
24069 var _parchment2 = _interopRequireDefault(_parchment);
24070 var _block = __webpack_require__(4);
24071 var _block2 = _interopRequireDefault(_block);
24072 var _container = __webpack_require__(25);
24073 var _container2 = _interopRequireDefault(_container);
24074 function _interopRequireDefault(obj) {
24075 return obj && obj.__esModule ? obj : { default: obj };
24076 }
24077 function _defineProperty2(obj, key, value) {
24078 if (key in obj) {
24079 Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
24080 } else {
24081 obj[key] = value;
24082 }
24083 return obj;
24084 }
24085 function _classCallCheck2(instance, Constructor) {
24086 if (!(instance instanceof Constructor)) {
24087 throw new TypeError("Cannot call a class as a function");
24088 }
24089 }
24090 function _possibleConstructorReturn2(self2, call) {
24091 if (!self2) {
24092 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
24093 }
24094 return call && (typeof call === "object" || typeof call === "function") ? call : self2;
24095 }
24096 function _inherits2(subClass, superClass) {
24097 if (typeof superClass !== "function" && superClass !== null) {
24098 throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
24099 }
24100 subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
24101 if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
24102 }
24103 var ListItem = function(_Block) {
24104 _inherits2(ListItem2, _Block);
24105 function ListItem2() {
24106 _classCallCheck2(this, ListItem2);
24107 return _possibleConstructorReturn2(this, (ListItem2.__proto__ || Object.getPrototypeOf(ListItem2)).apply(this, arguments));
24108 }
24109 _createClass2(ListItem2, [{
24110 key: "format",
24111 value: function format(name, value) {
24112 if (name === List2.blotName && !value) {
24113 this.replaceWith(_parchment2.default.create(this.statics.scope));
24114 } else {
24115 _get(ListItem2.prototype.__proto__ || Object.getPrototypeOf(ListItem2.prototype), "format", this).call(this, name, value);
24116 }
24117 }
24118 }, {
24119 key: "remove",
24120 value: function remove() {
24121 if (this.prev == null && this.next == null) {
24122 this.parent.remove();
24123 } else {
24124 _get(ListItem2.prototype.__proto__ || Object.getPrototypeOf(ListItem2.prototype), "remove", this).call(this);
24125 }
24126 }
24127 }, {
24128 key: "replaceWith",
24129 value: function replaceWith(name, value) {
24130 this.parent.isolate(this.offset(this.parent), this.length());
24131 if (name === this.parent.statics.blotName) {
24132 this.parent.replaceWith(name, value);
24133 return this;
24134 } else {
24135 this.parent.unwrap();
24136 return _get(ListItem2.prototype.__proto__ || Object.getPrototypeOf(ListItem2.prototype), "replaceWith", this).call(this, name, value);
24137 }
24138 }
24139 }], [{
24140 key: "formats",
24141 value: function formats(domNode) {
24142 return domNode.tagName === this.tagName ? void 0 : _get(ListItem2.__proto__ || Object.getPrototypeOf(ListItem2), "formats", this).call(this, domNode);
24143 }
24144 }]);
24145 return ListItem2;
24146 }(_block2.default);
24147 ListItem.blotName = "list-item";
24148 ListItem.tagName = "LI";
24149 var List2 = function(_Container) {
24150 _inherits2(List3, _Container);
24151 _createClass2(List3, null, [{
24152 key: "create",
24153 value: function create(value) {
24154 var tagName = value === "ordered" ? "OL" : "UL";
24155 var node = _get(List3.__proto__ || Object.getPrototypeOf(List3), "create", this).call(this, tagName);
24156 if (value === "checked" || value === "unchecked") {
24157 node.setAttribute("data-checked", value === "checked");
24158 }
24159 return node;
24160 }
24161 }, {
24162 key: "formats",
24163 value: function formats(domNode) {
24164 if (domNode.tagName === "OL") return "ordered";
24165 if (domNode.tagName === "UL") {
24166 if (domNode.hasAttribute("data-checked")) {
24167 return domNode.getAttribute("data-checked") === "true" ? "checked" : "unchecked";
24168 } else {
24169 return "bullet";
24170 }
24171 }
24172 return void 0;
24173 }
24174 }]);
24175 function List3(domNode) {
24176 _classCallCheck2(this, List3);
24177 var _this2 = _possibleConstructorReturn2(this, (List3.__proto__ || Object.getPrototypeOf(List3)).call(this, domNode));
24178 var listEventHandler = function listEventHandler2(e2) {
24179 if (e2.target.parentNode !== domNode) return;
24180 var format = _this2.statics.formats(domNode);
24181 var blot = _parchment2.default.find(e2.target);
24182 if (format === "checked") {
24183 blot.format("list", "unchecked");
24184 } else if (format === "unchecked") {
24185 blot.format("list", "checked");
24186 }
24187 };
24188 domNode.addEventListener("touchstart", listEventHandler);
24189 domNode.addEventListener("mousedown", listEventHandler);
24190 return _this2;
24191 }
24192 _createClass2(List3, [{
24193 key: "format",
24194 value: function format(name, value) {
24195 if (this.children.length > 0) {
24196 this.children.tail.format(name, value);
24197 }
24198 }
24199 }, {
24200 key: "formats",
24201 value: function formats() {
24202 return _defineProperty2({}, this.statics.blotName, this.statics.formats(this.domNode));
24203 }
24204 }, {
24205 key: "insertBefore",
24206 value: function insertBefore(blot, ref) {
24207 if (blot instanceof ListItem) {
24208 _get(List3.prototype.__proto__ || Object.getPrototypeOf(List3.prototype), "insertBefore", this).call(this, blot, ref);
24209 } else {
24210 var index = ref == null ? this.length() : ref.offset(this);
24211 var after = this.split(index);
24212 after.parent.insertBefore(blot, after);
24213 }
24214 }
24215 }, {
24216 key: "optimize",
24217 value: function optimize(context) {
24218 _get(List3.prototype.__proto__ || Object.getPrototypeOf(List3.prototype), "optimize", this).call(this, context);
24219 var next = this.next;
24220 if (next != null && next.prev === this && next.statics.blotName === this.statics.blotName && next.domNode.tagName === this.domNode.tagName && next.domNode.getAttribute("data-checked") === this.domNode.getAttribute("data-checked")) {
24221 next.moveChildren(this);
24222 next.remove();
24223 }
24224 }
24225 }, {
24226 key: "replace",
24227 value: function replace(target) {
24228 if (target.statics.blotName !== this.statics.blotName) {
24229 var item = _parchment2.default.create(this.statics.defaultChild);
24230 target.moveChildren(item);
24231 this.appendChild(item);
24232 }
24233 _get(List3.prototype.__proto__ || Object.getPrototypeOf(List3.prototype), "replace", this).call(this, target);
24234 }
24235 }]);
24236 return List3;
24237 }(_container2.default);
24238 List2.blotName = "list";
24239 List2.scope = _parchment2.default.Scope.BLOCK_BLOT;
24240 List2.tagName = ["OL", "UL"];
24241 List2.defaultChild = "list-item";
24242 List2.allowedChildren = [ListItem];
24243 exports$12.ListItem = ListItem;
24244 exports$12.default = List2;
24245 },
24246 /* 68 */
24247 /***/
24248 function(module2, exports$12, __webpack_require__) {
24249 Object.defineProperty(exports$12, "__esModule", {
24250 value: true
24251 });
24252 var _bold = __webpack_require__(56);
24253 var _bold2 = _interopRequireDefault(_bold);
24254 function _interopRequireDefault(obj) {
24255 return obj && obj.__esModule ? obj : { default: obj };
24256 }
24257 function _classCallCheck2(instance, Constructor) {
24258 if (!(instance instanceof Constructor)) {
24259 throw new TypeError("Cannot call a class as a function");
24260 }
24261 }
24262 function _possibleConstructorReturn2(self2, call) {
24263 if (!self2) {
24264 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
24265 }
24266 return call && (typeof call === "object" || typeof call === "function") ? call : self2;
24267 }
24268 function _inherits2(subClass, superClass) {
24269 if (typeof superClass !== "function" && superClass !== null) {
24270 throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
24271 }
24272 subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
24273 if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
24274 }
24275 var Italic = function(_Bold) {
24276 _inherits2(Italic2, _Bold);
24277 function Italic2() {
24278 _classCallCheck2(this, Italic2);
24279 return _possibleConstructorReturn2(this, (Italic2.__proto__ || Object.getPrototypeOf(Italic2)).apply(this, arguments));
24280 }
24281 return Italic2;
24282 }(_bold2.default);
24283 Italic.blotName = "italic";
24284 Italic.tagName = ["EM", "I"];
24285 exports$12.default = Italic;
24286 },
24287 /* 69 */
24288 /***/
24289 function(module2, exports$12, __webpack_require__) {
24290 Object.defineProperty(exports$12, "__esModule", {
24291 value: true
24292 });
24293 var _createClass2 = /* @__PURE__ */ function() {
24294 function defineProperties(target, props) {
24295 for (var i = 0; i < props.length; i++) {
24296 var descriptor = props[i];
24297 descriptor.enumerable = descriptor.enumerable || false;
24298 descriptor.configurable = true;
24299 if ("value" in descriptor) descriptor.writable = true;
24300 Object.defineProperty(target, descriptor.key, descriptor);
24301 }
24302 }
24303 return function(Constructor, protoProps, staticProps) {
24304 if (protoProps) defineProperties(Constructor.prototype, protoProps);
24305 if (staticProps) defineProperties(Constructor, staticProps);
24306 return Constructor;
24307 };
24308 }();
24309 var _get = function get(object, property, receiver) {
24310 if (object === null) object = Function.prototype;
24311 var desc = Object.getOwnPropertyDescriptor(object, property);
24312 if (desc === void 0) {
24313 var parent = Object.getPrototypeOf(object);
24314 if (parent === null) {
24315 return void 0;
24316 } else {
24317 return get(parent, property, receiver);
24318 }
24319 } else if ("value" in desc) {
24320 return desc.value;
24321 } else {
24322 var getter = desc.get;
24323 if (getter === void 0) {
24324 return void 0;
24325 }
24326 return getter.call(receiver);
24327 }
24328 };
24329 var _inline = __webpack_require__(6);
24330 var _inline2 = _interopRequireDefault(_inline);
24331 function _interopRequireDefault(obj) {
24332 return obj && obj.__esModule ? obj : { default: obj };
24333 }
24334 function _classCallCheck2(instance, Constructor) {
24335 if (!(instance instanceof Constructor)) {
24336 throw new TypeError("Cannot call a class as a function");
24337 }
24338 }
24339 function _possibleConstructorReturn2(self2, call) {
24340 if (!self2) {
24341 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
24342 }
24343 return call && (typeof call === "object" || typeof call === "function") ? call : self2;
24344 }
24345 function _inherits2(subClass, superClass) {
24346 if (typeof superClass !== "function" && superClass !== null) {
24347 throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
24348 }
24349 subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
24350 if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
24351 }
24352 var Script = function(_Inline) {
24353 _inherits2(Script2, _Inline);
24354 function Script2() {
24355 _classCallCheck2(this, Script2);
24356 return _possibleConstructorReturn2(this, (Script2.__proto__ || Object.getPrototypeOf(Script2)).apply(this, arguments));
24357 }
24358 _createClass2(Script2, null, [{
24359 key: "create",
24360 value: function create(value) {
24361 if (value === "super") {
24362 return document.createElement("sup");
24363 } else if (value === "sub") {
24364 return document.createElement("sub");
24365 } else {
24366 return _get(Script2.__proto__ || Object.getPrototypeOf(Script2), "create", this).call(this, value);
24367 }
24368 }
24369 }, {
24370 key: "formats",
24371 value: function formats(domNode) {
24372 if (domNode.tagName === "SUB") return "sub";
24373 if (domNode.tagName === "SUP") return "super";
24374 return void 0;
24375 }
24376 }]);
24377 return Script2;
24378 }(_inline2.default);
24379 Script.blotName = "script";
24380 Script.tagName = ["SUB", "SUP"];
24381 exports$12.default = Script;
24382 },
24383 /* 70 */
24384 /***/
24385 function(module2, exports$12, __webpack_require__) {
24386 Object.defineProperty(exports$12, "__esModule", {
24387 value: true
24388 });
24389 var _inline = __webpack_require__(6);
24390 var _inline2 = _interopRequireDefault(_inline);
24391 function _interopRequireDefault(obj) {
24392 return obj && obj.__esModule ? obj : { default: obj };
24393 }
24394 function _classCallCheck2(instance, Constructor) {
24395 if (!(instance instanceof Constructor)) {
24396 throw new TypeError("Cannot call a class as a function");
24397 }
24398 }
24399 function _possibleConstructorReturn2(self2, call) {
24400 if (!self2) {
24401 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
24402 }
24403 return call && (typeof call === "object" || typeof call === "function") ? call : self2;
24404 }
24405 function _inherits2(subClass, superClass) {
24406 if (typeof superClass !== "function" && superClass !== null) {
24407 throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
24408 }
24409 subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
24410 if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
24411 }
24412 var Strike = function(_Inline) {
24413 _inherits2(Strike2, _Inline);
24414 function Strike2() {
24415 _classCallCheck2(this, Strike2);
24416 return _possibleConstructorReturn2(this, (Strike2.__proto__ || Object.getPrototypeOf(Strike2)).apply(this, arguments));
24417 }
24418 return Strike2;
24419 }(_inline2.default);
24420 Strike.blotName = "strike";
24421 Strike.tagName = "S";
24422 exports$12.default = Strike;
24423 },
24424 /* 71 */
24425 /***/
24426 function(module2, exports$12, __webpack_require__) {
24427 Object.defineProperty(exports$12, "__esModule", {
24428 value: true
24429 });
24430 var _inline = __webpack_require__(6);
24431 var _inline2 = _interopRequireDefault(_inline);
24432 function _interopRequireDefault(obj) {
24433 return obj && obj.__esModule ? obj : { default: obj };
24434 }
24435 function _classCallCheck2(instance, Constructor) {
24436 if (!(instance instanceof Constructor)) {
24437 throw new TypeError("Cannot call a class as a function");
24438 }
24439 }
24440 function _possibleConstructorReturn2(self2, call) {
24441 if (!self2) {
24442 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
24443 }
24444 return call && (typeof call === "object" || typeof call === "function") ? call : self2;
24445 }
24446 function _inherits2(subClass, superClass) {
24447 if (typeof superClass !== "function" && superClass !== null) {
24448 throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
24449 }
24450 subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
24451 if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
24452 }
24453 var Underline = function(_Inline) {
24454 _inherits2(Underline2, _Inline);
24455 function Underline2() {
24456 _classCallCheck2(this, Underline2);
24457 return _possibleConstructorReturn2(this, (Underline2.__proto__ || Object.getPrototypeOf(Underline2)).apply(this, arguments));
24458 }
24459 return Underline2;
24460 }(_inline2.default);
24461 Underline.blotName = "underline";
24462 Underline.tagName = "U";
24463 exports$12.default = Underline;
24464 },
24465 /* 72 */
24466 /***/
24467 function(module2, exports$12, __webpack_require__) {
24468 Object.defineProperty(exports$12, "__esModule", {
24469 value: true
24470 });
24471 var _createClass2 = /* @__PURE__ */ function() {
24472 function defineProperties(target, props) {
24473 for (var i = 0; i < props.length; i++) {
24474 var descriptor = props[i];
24475 descriptor.enumerable = descriptor.enumerable || false;
24476 descriptor.configurable = true;
24477 if ("value" in descriptor) descriptor.writable = true;
24478 Object.defineProperty(target, descriptor.key, descriptor);
24479 }
24480 }
24481 return function(Constructor, protoProps, staticProps) {
24482 if (protoProps) defineProperties(Constructor.prototype, protoProps);
24483 if (staticProps) defineProperties(Constructor, staticProps);
24484 return Constructor;
24485 };
24486 }();
24487 var _get = function get(object, property, receiver) {
24488 if (object === null) object = Function.prototype;
24489 var desc = Object.getOwnPropertyDescriptor(object, property);
24490 if (desc === void 0) {
24491 var parent = Object.getPrototypeOf(object);
24492 if (parent === null) {
24493 return void 0;
24494 } else {
24495 return get(parent, property, receiver);
24496 }
24497 } else if ("value" in desc) {
24498 return desc.value;
24499 } else {
24500 var getter = desc.get;
24501 if (getter === void 0) {
24502 return void 0;
24503 }
24504 return getter.call(receiver);
24505 }
24506 };
24507 var _parchment = __webpack_require__(0);
24508 var _parchment2 = _interopRequireDefault(_parchment);
24509 var _link = __webpack_require__(27);
24510 function _interopRequireDefault(obj) {
24511 return obj && obj.__esModule ? obj : { default: obj };
24512 }
24513 function _classCallCheck2(instance, Constructor) {
24514 if (!(instance instanceof Constructor)) {
24515 throw new TypeError("Cannot call a class as a function");
24516 }
24517 }
24518 function _possibleConstructorReturn2(self2, call) {
24519 if (!self2) {
24520 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
24521 }
24522 return call && (typeof call === "object" || typeof call === "function") ? call : self2;
24523 }
24524 function _inherits2(subClass, superClass) {
24525 if (typeof superClass !== "function" && superClass !== null) {
24526 throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
24527 }
24528 subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
24529 if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
24530 }
24531 var ATTRIBUTES = ["alt", "height", "width"];
24532 var Image2 = function(_Parchment$Embed) {
24533 _inherits2(Image3, _Parchment$Embed);
24534 function Image3() {
24535 _classCallCheck2(this, Image3);
24536 return _possibleConstructorReturn2(this, (Image3.__proto__ || Object.getPrototypeOf(Image3)).apply(this, arguments));
24537 }
24538 _createClass2(Image3, [{
24539 key: "format",
24540 value: function format(name, value) {
24541 if (ATTRIBUTES.indexOf(name) > -1) {
24542 if (value) {
24543 this.domNode.setAttribute(name, value);
24544 } else {
24545 this.domNode.removeAttribute(name);
24546 }
24547 } else {
24548 _get(Image3.prototype.__proto__ || Object.getPrototypeOf(Image3.prototype), "format", this).call(this, name, value);
24549 }
24550 }
24551 }], [{
24552 key: "create",
24553 value: function create(value) {
24554 var node = _get(Image3.__proto__ || Object.getPrototypeOf(Image3), "create", this).call(this, value);
24555 if (typeof value === "string") {
24556 node.setAttribute("src", this.sanitize(value));
24557 }
24558 return node;
24559 }
24560 }, {
24561 key: "formats",
24562 value: function formats(domNode) {
24563 return ATTRIBUTES.reduce(function(formats2, attribute) {
24564 if (domNode.hasAttribute(attribute)) {
24565 formats2[attribute] = domNode.getAttribute(attribute);
24566 }
24567 return formats2;
24568 }, {});
24569 }
24570 }, {
24571 key: "match",
24572 value: function match(url) {
24573 return /\.(jpe?g|gif|png)$/.test(url) || /^data:image\/.+;base64/.test(url);
24574 }
24575 }, {
24576 key: "sanitize",
24577 value: function sanitize(url) {
24578 return (0, _link.sanitize)(url, ["http", "https", "data"]) ? url : "//:0";
24579 }
24580 }, {
24581 key: "value",
24582 value: function value(domNode) {
24583 return domNode.getAttribute("src");
24584 }
24585 }]);
24586 return Image3;
24587 }(_parchment2.default.Embed);
24588 Image2.blotName = "image";
24589 Image2.tagName = "IMG";
24590 exports$12.default = Image2;
24591 },
24592 /* 73 */
24593 /***/
24594 function(module2, exports$12, __webpack_require__) {
24595 Object.defineProperty(exports$12, "__esModule", {
24596 value: true
24597 });
24598 var _createClass2 = /* @__PURE__ */ function() {
24599 function defineProperties(target, props) {
24600 for (var i = 0; i < props.length; i++) {
24601 var descriptor = props[i];
24602 descriptor.enumerable = descriptor.enumerable || false;
24603 descriptor.configurable = true;
24604 if ("value" in descriptor) descriptor.writable = true;
24605 Object.defineProperty(target, descriptor.key, descriptor);
24606 }
24607 }
24608 return function(Constructor, protoProps, staticProps) {
24609 if (protoProps) defineProperties(Constructor.prototype, protoProps);
24610 if (staticProps) defineProperties(Constructor, staticProps);
24611 return Constructor;
24612 };
24613 }();
24614 var _get = function get(object, property, receiver) {
24615 if (object === null) object = Function.prototype;
24616 var desc = Object.getOwnPropertyDescriptor(object, property);
24617 if (desc === void 0) {
24618 var parent = Object.getPrototypeOf(object);
24619 if (parent === null) {
24620 return void 0;
24621 } else {
24622 return get(parent, property, receiver);
24623 }
24624 } else if ("value" in desc) {
24625 return desc.value;
24626 } else {
24627 var getter = desc.get;
24628 if (getter === void 0) {
24629 return void 0;
24630 }
24631 return getter.call(receiver);
24632 }
24633 };
24634 var _block = __webpack_require__(4);
24635 var _link = __webpack_require__(27);
24636 var _link2 = _interopRequireDefault(_link);
24637 function _interopRequireDefault(obj) {
24638 return obj && obj.__esModule ? obj : { default: obj };
24639 }
24640 function _classCallCheck2(instance, Constructor) {
24641 if (!(instance instanceof Constructor)) {
24642 throw new TypeError("Cannot call a class as a function");
24643 }
24644 }
24645 function _possibleConstructorReturn2(self2, call) {
24646 if (!self2) {
24647 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
24648 }
24649 return call && (typeof call === "object" || typeof call === "function") ? call : self2;
24650 }
24651 function _inherits2(subClass, superClass) {
24652 if (typeof superClass !== "function" && superClass !== null) {
24653 throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
24654 }
24655 subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
24656 if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
24657 }
24658 var ATTRIBUTES = ["height", "width"];
24659 var Video2 = function(_BlockEmbed) {
24660 _inherits2(Video3, _BlockEmbed);
24661 function Video3() {
24662 _classCallCheck2(this, Video3);
24663 return _possibleConstructorReturn2(this, (Video3.__proto__ || Object.getPrototypeOf(Video3)).apply(this, arguments));
24664 }
24665 _createClass2(Video3, [{
24666 key: "format",
24667 value: function format(name, value) {
24668 if (ATTRIBUTES.indexOf(name) > -1) {
24669 if (value) {
24670 this.domNode.setAttribute(name, value);
24671 } else {
24672 this.domNode.removeAttribute(name);
24673 }
24674 } else {
24675 _get(Video3.prototype.__proto__ || Object.getPrototypeOf(Video3.prototype), "format", this).call(this, name, value);
24676 }
24677 }
24678 }], [{
24679 key: "create",
24680 value: function create(value) {
24681 var node = _get(Video3.__proto__ || Object.getPrototypeOf(Video3), "create", this).call(this, value);
24682 node.setAttribute("frameborder", "0");
24683 node.setAttribute("allowfullscreen", true);
24684 node.setAttribute("src", this.sanitize(value));
24685 return node;
24686 }
24687 }, {
24688 key: "formats",
24689 value: function formats(domNode) {
24690 return ATTRIBUTES.reduce(function(formats2, attribute) {
24691 if (domNode.hasAttribute(attribute)) {
24692 formats2[attribute] = domNode.getAttribute(attribute);
24693 }
24694 return formats2;
24695 }, {});
24696 }
24697 }, {
24698 key: "sanitize",
24699 value: function sanitize(url) {
24700 return _link2.default.sanitize(url);
24701 }
24702 }, {
24703 key: "value",
24704 value: function value(domNode) {
24705 return domNode.getAttribute("src");
24706 }
24707 }]);
24708 return Video3;
24709 }(_block.BlockEmbed);
24710 Video2.blotName = "video";
24711 Video2.className = "ql-video";
24712 Video2.tagName = "IFRAME";
24713 exports$12.default = Video2;
24714 },
24715 /* 74 */
24716 /***/
24717 function(module2, exports$12, __webpack_require__) {
24718 Object.defineProperty(exports$12, "__esModule", {
24719 value: true
24720 });
24721 exports$12.default = exports$12.FormulaBlot = void 0;
24722 var _createClass2 = /* @__PURE__ */ function() {
24723 function defineProperties(target, props) {
24724 for (var i = 0; i < props.length; i++) {
24725 var descriptor = props[i];
24726 descriptor.enumerable = descriptor.enumerable || false;
24727 descriptor.configurable = true;
24728 if ("value" in descriptor) descriptor.writable = true;
24729 Object.defineProperty(target, descriptor.key, descriptor);
24730 }
24731 }
24732 return function(Constructor, protoProps, staticProps) {
24733 if (protoProps) defineProperties(Constructor.prototype, protoProps);
24734 if (staticProps) defineProperties(Constructor, staticProps);
24735 return Constructor;
24736 };
24737 }();
24738 var _get = function get(object, property, receiver) {
24739 if (object === null) object = Function.prototype;
24740 var desc = Object.getOwnPropertyDescriptor(object, property);
24741 if (desc === void 0) {
24742 var parent = Object.getPrototypeOf(object);
24743 if (parent === null) {
24744 return void 0;
24745 } else {
24746 return get(parent, property, receiver);
24747 }
24748 } else if ("value" in desc) {
24749 return desc.value;
24750 } else {
24751 var getter = desc.get;
24752 if (getter === void 0) {
24753 return void 0;
24754 }
24755 return getter.call(receiver);
24756 }
24757 };
24758 var _embed = __webpack_require__(35);
24759 var _embed2 = _interopRequireDefault(_embed);
24760 var _quill = __webpack_require__(5);
24761 var _quill2 = _interopRequireDefault(_quill);
24762 var _module = __webpack_require__(9);
24763 var _module2 = _interopRequireDefault(_module);
24764 function _interopRequireDefault(obj) {
24765 return obj && obj.__esModule ? obj : { default: obj };
24766 }
24767 function _classCallCheck2(instance, Constructor) {
24768 if (!(instance instanceof Constructor)) {
24769 throw new TypeError("Cannot call a class as a function");
24770 }
24771 }
24772 function _possibleConstructorReturn2(self2, call) {
24773 if (!self2) {
24774 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
24775 }
24776 return call && (typeof call === "object" || typeof call === "function") ? call : self2;
24777 }
24778 function _inherits2(subClass, superClass) {
24779 if (typeof superClass !== "function" && superClass !== null) {
24780 throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
24781 }
24782 subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
24783 if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
24784 }
24785 var FormulaBlot = function(_Embed) {
24786 _inherits2(FormulaBlot2, _Embed);
24787 function FormulaBlot2() {
24788 _classCallCheck2(this, FormulaBlot2);
24789 return _possibleConstructorReturn2(this, (FormulaBlot2.__proto__ || Object.getPrototypeOf(FormulaBlot2)).apply(this, arguments));
24790 }
24791 _createClass2(FormulaBlot2, null, [{
24792 key: "create",
24793 value: function create(value) {
24794 var node = _get(FormulaBlot2.__proto__ || Object.getPrototypeOf(FormulaBlot2), "create", this).call(this, value);
24795 if (typeof value === "string") {
24796 window.katex.render(value, node, {
24797 throwOnError: false,
24798 errorColor: "#f00"
24799 });
24800 node.setAttribute("data-value", value);
24801 }
24802 return node;
24803 }
24804 }, {
24805 key: "value",
24806 value: function value(domNode) {
24807 return domNode.getAttribute("data-value");
24808 }
24809 }]);
24810 return FormulaBlot2;
24811 }(_embed2.default);
24812 FormulaBlot.blotName = "formula";
24813 FormulaBlot.className = "ql-formula";
24814 FormulaBlot.tagName = "SPAN";
24815 var Formula = function(_Module) {
24816 _inherits2(Formula2, _Module);
24817 _createClass2(Formula2, null, [{
24818 key: "register",
24819 value: function register() {
24820 _quill2.default.register(FormulaBlot, true);
24821 }
24822 }]);
24823 function Formula2() {
24824 _classCallCheck2(this, Formula2);
24825 var _this2 = _possibleConstructorReturn2(this, (Formula2.__proto__ || Object.getPrototypeOf(Formula2)).call(this));
24826 if (window.katex == null) {
24827 throw new Error("Formula module requires KaTeX.");
24828 }
24829 return _this2;
24830 }
24831 return Formula2;
24832 }(_module2.default);
24833 exports$12.FormulaBlot = FormulaBlot;
24834 exports$12.default = Formula;
24835 },
24836 /* 75 */
24837 /***/
24838 function(module2, exports$12, __webpack_require__) {
24839 Object.defineProperty(exports$12, "__esModule", {
24840 value: true
24841 });
24842 exports$12.default = exports$12.CodeToken = exports$12.CodeBlock = void 0;
24843 var _createClass2 = /* @__PURE__ */ function() {
24844 function defineProperties(target, props) {
24845 for (var i = 0; i < props.length; i++) {
24846 var descriptor = props[i];
24847 descriptor.enumerable = descriptor.enumerable || false;
24848 descriptor.configurable = true;
24849 if ("value" in descriptor) descriptor.writable = true;
24850 Object.defineProperty(target, descriptor.key, descriptor);
24851 }
24852 }
24853 return function(Constructor, protoProps, staticProps) {
24854 if (protoProps) defineProperties(Constructor.prototype, protoProps);
24855 if (staticProps) defineProperties(Constructor, staticProps);
24856 return Constructor;
24857 };
24858 }();
24859 var _get = function get(object, property, receiver) {
24860 if (object === null) object = Function.prototype;
24861 var desc = Object.getOwnPropertyDescriptor(object, property);
24862 if (desc === void 0) {
24863 var parent = Object.getPrototypeOf(object);
24864 if (parent === null) {
24865 return void 0;
24866 } else {
24867 return get(parent, property, receiver);
24868 }
24869 } else if ("value" in desc) {
24870 return desc.value;
24871 } else {
24872 var getter = desc.get;
24873 if (getter === void 0) {
24874 return void 0;
24875 }
24876 return getter.call(receiver);
24877 }
24878 };
24879 var _parchment = __webpack_require__(0);
24880 var _parchment2 = _interopRequireDefault(_parchment);
24881 var _quill = __webpack_require__(5);
24882 var _quill2 = _interopRequireDefault(_quill);
24883 var _module = __webpack_require__(9);
24884 var _module2 = _interopRequireDefault(_module);
24885 var _code = __webpack_require__(13);
24886 var _code2 = _interopRequireDefault(_code);
24887 function _interopRequireDefault(obj) {
24888 return obj && obj.__esModule ? obj : { default: obj };
24889 }
24890 function _classCallCheck2(instance, Constructor) {
24891 if (!(instance instanceof Constructor)) {
24892 throw new TypeError("Cannot call a class as a function");
24893 }
24894 }
24895 function _possibleConstructorReturn2(self2, call) {
24896 if (!self2) {
24897 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
24898 }
24899 return call && (typeof call === "object" || typeof call === "function") ? call : self2;
24900 }
24901 function _inherits2(subClass, superClass) {
24902 if (typeof superClass !== "function" && superClass !== null) {
24903 throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
24904 }
24905 subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
24906 if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
24907 }
24908 var SyntaxCodeBlock = function(_CodeBlock) {
24909 _inherits2(SyntaxCodeBlock2, _CodeBlock);
24910 function SyntaxCodeBlock2() {
24911 _classCallCheck2(this, SyntaxCodeBlock2);
24912 return _possibleConstructorReturn2(this, (SyntaxCodeBlock2.__proto__ || Object.getPrototypeOf(SyntaxCodeBlock2)).apply(this, arguments));
24913 }
24914 _createClass2(SyntaxCodeBlock2, [{
24915 key: "replaceWith",
24916 value: function replaceWith(block) {
24917 this.domNode.textContent = this.domNode.textContent;
24918 this.attach();
24919 _get(SyntaxCodeBlock2.prototype.__proto__ || Object.getPrototypeOf(SyntaxCodeBlock2.prototype), "replaceWith", this).call(this, block);
24920 }
24921 }, {
24922 key: "highlight",
24923 value: function highlight(_highlight) {
24924 var text = this.domNode.textContent;
24925 if (this.cachedText !== text) {
24926 if (text.trim().length > 0 || this.cachedText == null) {
24927 this.domNode.innerHTML = _highlight(text);
24928 this.domNode.normalize();
24929 this.attach();
24930 }
24931 this.cachedText = text;
24932 }
24933 }
24934 }]);
24935 return SyntaxCodeBlock2;
24936 }(_code2.default);
24937 SyntaxCodeBlock.className = "ql-syntax";
24938 var CodeToken = new _parchment2.default.Attributor.Class("token", "hljs", {
24939 scope: _parchment2.default.Scope.INLINE
24940 });
24941 var Syntax = function(_Module) {
24942 _inherits2(Syntax2, _Module);
24943 _createClass2(Syntax2, null, [{
24944 key: "register",
24945 value: function register() {
24946 _quill2.default.register(CodeToken, true);
24947 _quill2.default.register(SyntaxCodeBlock, true);
24948 }
24949 }]);
24950 function Syntax2(quill2, options) {
24951 _classCallCheck2(this, Syntax2);
24952 var _this2 = _possibleConstructorReturn2(this, (Syntax2.__proto__ || Object.getPrototypeOf(Syntax2)).call(this, quill2, options));
24953 if (typeof _this2.options.highlight !== "function") {
24954 throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");
24955 }
24956 var timer = null;
24957 _this2.quill.on(_quill2.default.events.SCROLL_OPTIMIZE, function() {
24958 clearTimeout(timer);
24959 timer = setTimeout(function() {
24960 _this2.highlight();
24961 timer = null;
24962 }, _this2.options.interval);
24963 });
24964 _this2.highlight();
24965 return _this2;
24966 }
24967 _createClass2(Syntax2, [{
24968 key: "highlight",
24969 value: function highlight() {
24970 var _this3 = this;
24971 if (this.quill.selection.composing) return;
24972 this.quill.update(_quill2.default.sources.USER);
24973 var range = this.quill.getSelection();
24974 this.quill.scroll.descendants(SyntaxCodeBlock).forEach(function(code) {
24975 code.highlight(_this3.options.highlight);
24976 });
24977 this.quill.update(_quill2.default.sources.SILENT);
24978 if (range != null) {
24979 this.quill.setSelection(range, _quill2.default.sources.SILENT);
24980 }
24981 }
24982 }]);
24983 return Syntax2;
24984 }(_module2.default);
24985 Syntax.DEFAULTS = {
24986 highlight: function() {
24987 if (window.hljs == null) return null;
24988 return function(text) {
24989 var result = window.hljs.highlightAuto(text);
24990 return result.value;
24991 };
24992 }(),
24993 interval: 1e3
24994 };
24995 exports$12.CodeBlock = SyntaxCodeBlock;
24996 exports$12.CodeToken = CodeToken;
24997 exports$12.default = Syntax;
24998 },
24999 /* 76 */
25000 /***/
25001 function(module2, exports$12) {
25002 module2.exports = '<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>';
25003 },
25004 /* 77 */
25005 /***/
25006 function(module2, exports$12) {
25007 module2.exports = '<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>';
25008 },
25009 /* 78 */
25010 /***/
25011 function(module2, exports$12) {
25012 module2.exports = '<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>';
25013 },
25014 /* 79 */
25015 /***/
25016 function(module2, exports$12) {
25017 module2.exports = '<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>';
25018 },
25019 /* 80 */
25020 /***/
25021 function(module2, exports$12) {
25022 module2.exports = '<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>';
25023 },
25024 /* 81 */
25025 /***/
25026 function(module2, exports$12) {
25027 module2.exports = '<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>';
25028 },
25029 /* 82 */
25030 /***/
25031 function(module2, exports$12) {
25032 module2.exports = '<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>';
25033 },
25034 /* 83 */
25035 /***/
25036 function(module2, exports$12) {
25037 module2.exports = '<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>';
25038 },
25039 /* 84 */
25040 /***/
25041 function(module2, exports$12) {
25042 module2.exports = '<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>';
25043 },
25044 /* 85 */
25045 /***/
25046 function(module2, exports$12) {
25047 module2.exports = '<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>';
25048 },
25049 /* 86 */
25050 /***/
25051 function(module2, exports$12) {
25052 module2.exports = '<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>';
25053 },
25054 /* 87 */
25055 /***/
25056 function(module2, exports$12) {
25057 module2.exports = '<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>';
25058 },
25059 /* 88 */
25060 /***/
25061 function(module2, exports$12) {
25062 module2.exports = '<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>';
25063 },
25064 /* 89 */
25065 /***/
25066 function(module2, exports$12) {
25067 module2.exports = '<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>';
25068 },
25069 /* 90 */
25070 /***/
25071 function(module2, exports$12) {
25072 module2.exports = '<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>';
25073 },
25074 /* 91 */
25075 /***/
25076 function(module2, exports$12) {
25077 module2.exports = '<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>';
25078 },
25079 /* 92 */
25080 /***/
25081 function(module2, exports$12) {
25082 module2.exports = '<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>';
25083 },
25084 /* 93 */
25085 /***/
25086 function(module2, exports$12) {
25087 module2.exports = '<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>';
25088 },
25089 /* 94 */
25090 /***/
25091 function(module2, exports$12) {
25092 module2.exports = '<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>';
25093 },
25094 /* 95 */
25095 /***/
25096 function(module2, exports$12) {
25097 module2.exports = '<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>';
25098 },
25099 /* 96 */
25100 /***/
25101 function(module2, exports$12) {
25102 module2.exports = '<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>';
25103 },
25104 /* 97 */
25105 /***/
25106 function(module2, exports$12) {
25107 module2.exports = '<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>';
25108 },
25109 /* 98 */
25110 /***/
25111 function(module2, exports$12) {
25112 module2.exports = '<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>';
25113 },
25114 /* 99 */
25115 /***/
25116 function(module2, exports$12) {
25117 module2.exports = '<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>';
25118 },
25119 /* 100 */
25120 /***/
25121 function(module2, exports$12) {
25122 module2.exports = '<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>';
25123 },
25124 /* 101 */
25125 /***/
25126 function(module2, exports$12) {
25127 module2.exports = '<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>';
25128 },
25129 /* 102 */
25130 /***/
25131 function(module2, exports$12) {
25132 module2.exports = '<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>';
25133 },
25134 /* 103 */
25135 /***/
25136 function(module2, exports$12) {
25137 module2.exports = '<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>';
25138 },
25139 /* 104 */
25140 /***/
25141 function(module2, exports$12) {
25142 module2.exports = '<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>';
25143 },
25144 /* 105 */
25145 /***/
25146 function(module2, exports$12) {
25147 module2.exports = '<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>';
25148 },
25149 /* 106 */
25150 /***/
25151 function(module2, exports$12) {
25152 module2.exports = '<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>';
25153 },
25154 /* 107 */
25155 /***/
25156 function(module2, exports$12) {
25157 module2.exports = '<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>';
25158 },
25159 /* 108 */
25160 /***/
25161 function(module2, exports$12, __webpack_require__) {
25162 Object.defineProperty(exports$12, "__esModule", {
25163 value: true
25164 });
25165 exports$12.default = exports$12.BubbleTooltip = void 0;
25166 var _get = function get(object, property, receiver) {
25167 if (object === null) object = Function.prototype;
25168 var desc = Object.getOwnPropertyDescriptor(object, property);
25169 if (desc === void 0) {
25170 var parent = Object.getPrototypeOf(object);
25171 if (parent === null) {
25172 return void 0;
25173 } else {
25174 return get(parent, property, receiver);
25175 }
25176 } else if ("value" in desc) {
25177 return desc.value;
25178 } else {
25179 var getter = desc.get;
25180 if (getter === void 0) {
25181 return void 0;
25182 }
25183 return getter.call(receiver);
25184 }
25185 };
25186 var _createClass2 = /* @__PURE__ */ function() {
25187 function defineProperties(target, props) {
25188 for (var i = 0; i < props.length; i++) {
25189 var descriptor = props[i];
25190 descriptor.enumerable = descriptor.enumerable || false;
25191 descriptor.configurable = true;
25192 if ("value" in descriptor) descriptor.writable = true;
25193 Object.defineProperty(target, descriptor.key, descriptor);
25194 }
25195 }
25196 return function(Constructor, protoProps, staticProps) {
25197 if (protoProps) defineProperties(Constructor.prototype, protoProps);
25198 if (staticProps) defineProperties(Constructor, staticProps);
25199 return Constructor;
25200 };
25201 }();
25202 var _extend = __webpack_require__(3);
25203 var _extend2 = _interopRequireDefault(_extend);
25204 var _emitter = __webpack_require__(8);
25205 var _emitter2 = _interopRequireDefault(_emitter);
25206 var _base = __webpack_require__(43);
25207 var _base2 = _interopRequireDefault(_base);
25208 var _selection = __webpack_require__(15);
25209 var _icons = __webpack_require__(41);
25210 var _icons2 = _interopRequireDefault(_icons);
25211 function _interopRequireDefault(obj) {
25212 return obj && obj.__esModule ? obj : { default: obj };
25213 }
25214 function _classCallCheck2(instance, Constructor) {
25215 if (!(instance instanceof Constructor)) {
25216 throw new TypeError("Cannot call a class as a function");
25217 }
25218 }
25219 function _possibleConstructorReturn2(self2, call) {
25220 if (!self2) {
25221 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
25222 }
25223 return call && (typeof call === "object" || typeof call === "function") ? call : self2;
25224 }
25225 function _inherits2(subClass, superClass) {
25226 if (typeof superClass !== "function" && superClass !== null) {
25227 throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
25228 }
25229 subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
25230 if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
25231 }
25232 var TOOLBAR_CONFIG = [["bold", "italic", "link"], [{ header: 1 }, { header: 2 }, "blockquote"]];
25233 var BubbleTheme = function(_BaseTheme) {
25234 _inherits2(BubbleTheme2, _BaseTheme);
25235 function BubbleTheme2(quill2, options) {
25236 _classCallCheck2(this, BubbleTheme2);
25237 if (options.modules.toolbar != null && options.modules.toolbar.container == null) {
25238 options.modules.toolbar.container = TOOLBAR_CONFIG;
25239 }
25240 var _this = _possibleConstructorReturn2(this, (BubbleTheme2.__proto__ || Object.getPrototypeOf(BubbleTheme2)).call(this, quill2, options));
25241 _this.quill.container.classList.add("ql-bubble");
25242 return _this;
25243 }
25244 _createClass2(BubbleTheme2, [{
25245 key: "extendToolbar",
25246 value: function extendToolbar(toolbar) {
25247 this.tooltip = new BubbleTooltip(this.quill, this.options.bounds);
25248 this.tooltip.root.appendChild(toolbar.container);
25249 this.buildButtons([].slice.call(toolbar.container.querySelectorAll("button")), _icons2.default);
25250 this.buildPickers([].slice.call(toolbar.container.querySelectorAll("select")), _icons2.default);
25251 }
25252 }]);
25253 return BubbleTheme2;
25254 }(_base2.default);
25255 BubbleTheme.DEFAULTS = (0, _extend2.default)(true, {}, _base2.default.DEFAULTS, {
25256 modules: {
25257 toolbar: {
25258 handlers: {
25259 link: function link(value) {
25260 if (!value) {
25261 this.quill.format("link", false);
25262 } else {
25263 this.quill.theme.tooltip.edit();
25264 }
25265 }
25266 }
25267 }
25268 }
25269 });
25270 var BubbleTooltip = function(_BaseTooltip) {
25271 _inherits2(BubbleTooltip2, _BaseTooltip);
25272 function BubbleTooltip2(quill2, bounds) {
25273 _classCallCheck2(this, BubbleTooltip2);
25274 var _this2 = _possibleConstructorReturn2(this, (BubbleTooltip2.__proto__ || Object.getPrototypeOf(BubbleTooltip2)).call(this, quill2, bounds));
25275 _this2.quill.on(_emitter2.default.events.EDITOR_CHANGE, function(type, range, oldRange, source) {
25276 if (type !== _emitter2.default.events.SELECTION_CHANGE) return;
25277 if (range != null && range.length > 0 && source === _emitter2.default.sources.USER) {
25278 _this2.show();
25279 _this2.root.style.left = "0px";
25280 _this2.root.style.width = "";
25281 _this2.root.style.width = _this2.root.offsetWidth + "px";
25282 var lines = _this2.quill.getLines(range.index, range.length);
25283 if (lines.length === 1) {
25284 _this2.position(_this2.quill.getBounds(range));
25285 } else {
25286 var lastLine = lines[lines.length - 1];
25287 var index = _this2.quill.getIndex(lastLine);
25288 var length = Math.min(lastLine.length() - 1, range.index + range.length - index);
25289 var _bounds = _this2.quill.getBounds(new _selection.Range(index, length));
25290 _this2.position(_bounds);
25291 }
25292 } else if (document.activeElement !== _this2.textbox && _this2.quill.hasFocus()) {
25293 _this2.hide();
25294 }
25295 });
25296 return _this2;
25297 }
25298 _createClass2(BubbleTooltip2, [{
25299 key: "listen",
25300 value: function listen() {
25301 var _this3 = this;
25302 _get(BubbleTooltip2.prototype.__proto__ || Object.getPrototypeOf(BubbleTooltip2.prototype), "listen", this).call(this);
25303 this.root.querySelector(".ql-close").addEventListener("click", function() {
25304 _this3.root.classList.remove("ql-editing");
25305 });
25306 this.quill.on(_emitter2.default.events.SCROLL_OPTIMIZE, function() {
25307 setTimeout(function() {
25308 if (_this3.root.classList.contains("ql-hidden")) return;
25309 var range = _this3.quill.getSelection();
25310 if (range != null) {
25311 _this3.position(_this3.quill.getBounds(range));
25312 }
25313 }, 1);
25314 });
25315 }
25316 }, {
25317 key: "cancel",
25318 value: function cancel() {
25319 this.show();
25320 }
25321 }, {
25322 key: "position",
25323 value: function position(reference) {
25324 var shift = _get(BubbleTooltip2.prototype.__proto__ || Object.getPrototypeOf(BubbleTooltip2.prototype), "position", this).call(this, reference);
25325 var arrow = this.root.querySelector(".ql-tooltip-arrow");
25326 arrow.style.marginLeft = "";
25327 if (shift === 0) return shift;
25328 arrow.style.marginLeft = -1 * shift - arrow.offsetWidth / 2 + "px";
25329 }
25330 }]);
25331 return BubbleTooltip2;
25332 }(_base.BaseTooltip);
25333 BubbleTooltip.TEMPLATE = ['<span class="ql-tooltip-arrow"></span>', '<div class="ql-tooltip-editor">', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-close"></a>', "</div>"].join("");
25334 exports$12.BubbleTooltip = BubbleTooltip;
25335 exports$12.default = BubbleTheme;
25336 },
25337 /* 109 */
25338 /***/
25339 function(module2, exports$12, __webpack_require__) {
25340 module2.exports = __webpack_require__(63);
25341 }
25342 /******/
25343 ])["default"]
25344 );
25345 });
25346 })(quill);
25347 var quillExports = quill.exports;
25348 var __extends = commonjsGlobal && commonjsGlobal.__extends || /* @__PURE__ */ function() {
25349 var extendStatics = function(d2, b2) {
25350 extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d3, b3) {
25351 d3.__proto__ = b3;
25352 } || function(d3, b3) {
25353 for (var p2 in b3) if (b3.hasOwnProperty(p2)) d3[p2] = b3[p2];
25354 };
25355 return extendStatics(d2, b2);
25356 };
25357 return function(d2, b2) {
25358 extendStatics(d2, b2);
25359 function __() {
25360 this.constructor = d2;
25361 }
25362 d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
25363 };
25364 }();
25365 var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
25366 __assign = Object.assign || function(t2) {
25367 for (var s, i = 1, n2 = arguments.length; i < n2; i++) {
25368 s = arguments[i];
25369 for (var p2 in s) if (Object.prototype.hasOwnProperty.call(s, p2))
25370 t2[p2] = s[p2];
25371 }
25372 return t2;
25373 };
25374 return __assign.apply(this, arguments);
25375 };
25376 var __spreadArrays = commonjsGlobal && commonjsGlobal.__spreadArrays || function() {
25377 for (var s = 0, i = 0, il2 = arguments.length; i < il2; i++) s += arguments[i].length;
25378 for (var r2 = Array(s), k2 = 0, i = 0; i < il2; i++)
25379 for (var a = arguments[i], j = 0, jl2 = a.length; j < jl2; j++, k2++)
25380 r2[k2] = a[j];
25381 return r2;
25382 };
25383 var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
25384 return mod && mod.__esModule ? mod : { "default": mod };
25385 };
25386 var react_1 = __importDefault(reactExports);
25387 var react_dom_1 = __importDefault(reactDomExports);
25388 var isEqual_1 = __importDefault(isEqual_1$1);
25389 var quill_1 = __importDefault(quillExports);
25390 var ReactQuill = (
25391 /** @class */
25392 function(_super) {
25393 __extends(ReactQuill2, _super);
25394 function ReactQuill2(props) {
25395 var _this = _super.call(this, props) || this;
25396 _this.dirtyProps = [
25397 "modules",
25398 "formats",
25399 "bounds",
25400 "theme",
25401 "children"
25402 ];
25403 _this.cleanProps = [
25404 "id",
25405 "className",
25406 "style",
25407 "placeholder",
25408 "tabIndex",
25409 "onChange",
25410 "onChangeSelection",
25411 "onFocus",
25412 "onBlur",
25413 "onKeyPress",
25414 "onKeyDown",
25415 "onKeyUp"
25416 ];
25417 _this.state = {
25418 generation: 0
25419 };
25420 _this.selection = null;
25421 _this.onEditorChange = function(eventName, rangeOrDelta, oldRangeOrDelta, source) {
25422 var _a2, _b2, _c2, _d2;
25423 if (eventName === "text-change") {
25424 (_b2 = (_a2 = _this).onEditorChangeText) === null || _b2 === void 0 ? void 0 : _b2.call(_a2, _this.editor.root.innerHTML, rangeOrDelta, source, _this.unprivilegedEditor);
25425 } else if (eventName === "selection-change") {
25426 (_d2 = (_c2 = _this).onEditorChangeSelection) === null || _d2 === void 0 ? void 0 : _d2.call(_c2, rangeOrDelta, source, _this.unprivilegedEditor);
25427 }
25428 };
25429 var value = _this.isControlled() ? props.value : props.defaultValue;
25430 _this.value = value !== null && value !== void 0 ? value : "";
25431 return _this;
25432 }
25433 ReactQuill2.prototype.validateProps = function(props) {
25434 var _a2;
25435 if (react_1.default.Children.count(props.children) > 1)
25436 throw new Error("The Quill editing area can only be composed of a single React element.");
25437 if (react_1.default.Children.count(props.children)) {
25438 var child = react_1.default.Children.only(props.children);
25439 if (((_a2 = child) === null || _a2 === void 0 ? void 0 : _a2.type) === "textarea")
25440 throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.");
25441 }
25442 if (this.lastDeltaChangeSet && props.value === this.lastDeltaChangeSet)
25443 throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas");
25444 };
25445 ReactQuill2.prototype.shouldComponentUpdate = function(nextProps, nextState) {
25446 var _this = this;
25447 var _a2;
25448 this.validateProps(nextProps);
25449 if (!this.editor || this.state.generation !== nextState.generation) {
25450 return true;
25451 }
25452 if ("value" in nextProps) {
25453 var prevContents = this.getEditorContents();
25454 var nextContents = (_a2 = nextProps.value, _a2 !== null && _a2 !== void 0 ? _a2 : "");
25455 if (!this.isEqualValue(nextContents, prevContents)) {
25456 this.setEditorContents(this.editor, nextContents);
25457 }
25458 }
25459 if (nextProps.readOnly !== this.props.readOnly) {
25460 this.setEditorReadOnly(this.editor, nextProps.readOnly);
25461 }
25462 return __spreadArrays(this.cleanProps, this.dirtyProps).some(function(prop) {
25463 return !isEqual_1.default(nextProps[prop], _this.props[prop]);
25464 });
25465 };
25466 ReactQuill2.prototype.shouldComponentRegenerate = function(nextProps) {
25467 var _this = this;
25468 return this.dirtyProps.some(function(prop) {
25469 return !isEqual_1.default(nextProps[prop], _this.props[prop]);
25470 });
25471 };
25472 ReactQuill2.prototype.componentDidMount = function() {
25473 this.instantiateEditor();
25474 this.setEditorContents(this.editor, this.getEditorContents());
25475 };
25476 ReactQuill2.prototype.componentWillUnmount = function() {
25477 this.destroyEditor();
25478 };
25479 ReactQuill2.prototype.componentDidUpdate = function(prevProps, prevState) {
25480 var _this = this;
25481 if (this.editor && this.shouldComponentRegenerate(prevProps)) {
25482 var delta = this.editor.getContents();
25483 var selection = this.editor.getSelection();
25484 this.regenerationSnapshot = { delta, selection };
25485 this.setState({ generation: this.state.generation + 1 });
25486 this.destroyEditor();
25487 }
25488 if (this.state.generation !== prevState.generation) {
25489 var _a2 = this.regenerationSnapshot, delta = _a2.delta, selection_1 = _a2.selection;
25490 delete this.regenerationSnapshot;
25491 this.instantiateEditor();
25492 var editor_1 = this.editor;
25493 editor_1.setContents(delta);
25494 postpone(function() {
25495 return _this.setEditorSelection(editor_1, selection_1);
25496 });
25497 }
25498 };
25499 ReactQuill2.prototype.instantiateEditor = function() {
25500 if (this.editor) {
25501 this.hookEditor(this.editor);
25502 } else {
25503 this.editor = this.createEditor(this.getEditingArea(), this.getEditorConfig());
25504 }
25505 };
25506 ReactQuill2.prototype.destroyEditor = function() {
25507 if (!this.editor)
25508 return;
25509 this.unhookEditor(this.editor);
25510 };
25511 ReactQuill2.prototype.isControlled = function() {
25512 return "value" in this.props;
25513 };
25514 ReactQuill2.prototype.getEditorConfig = function() {
25515 return {
25516 bounds: this.props.bounds,
25517 formats: this.props.formats,
25518 modules: this.props.modules,
25519 placeholder: this.props.placeholder,
25520 readOnly: this.props.readOnly,
25521 scrollingContainer: this.props.scrollingContainer,
25522 tabIndex: this.props.tabIndex,
25523 theme: this.props.theme
25524 };
25525 };
25526 ReactQuill2.prototype.getEditor = function() {
25527 if (!this.editor)
25528 throw new Error("Accessing non-instantiated editor");
25529 return this.editor;
25530 };
25531 ReactQuill2.prototype.createEditor = function(element, config) {
25532 var editor = new quill_1.default(element, config);
25533 if (config.tabIndex != null) {
25534 this.setEditorTabIndex(editor, config.tabIndex);
25535 }
25536 this.hookEditor(editor);
25537 return editor;
25538 };
25539 ReactQuill2.prototype.hookEditor = function(editor) {
25540 this.unprivilegedEditor = this.makeUnprivilegedEditor(editor);
25541 editor.on("editor-change", this.onEditorChange);
25542 };
25543 ReactQuill2.prototype.unhookEditor = function(editor) {
25544 editor.off("editor-change", this.onEditorChange);
25545 };
25546 ReactQuill2.prototype.getEditorContents = function() {
25547 return this.value;
25548 };
25549 ReactQuill2.prototype.getEditorSelection = function() {
25550 return this.selection;
25551 };
25552 ReactQuill2.prototype.isDelta = function(value) {
25553 return value && value.ops;
25554 };
25555 ReactQuill2.prototype.isEqualValue = function(value, nextValue) {
25556 if (this.isDelta(value) && this.isDelta(nextValue)) {
25557 return isEqual_1.default(value.ops, nextValue.ops);
25558 } else {
25559 return isEqual_1.default(value, nextValue);
25560 }
25561 };
25562 ReactQuill2.prototype.setEditorContents = function(editor, value) {
25563 var _this = this;
25564 this.value = value;
25565 var sel = this.getEditorSelection();
25566 if (typeof value === "string") {
25567 editor.setContents(editor.clipboard.convert(value));
25568 } else {
25569 editor.setContents(value);
25570 }
25571 postpone(function() {
25572 return _this.setEditorSelection(editor, sel);
25573 });
25574 };
25575 ReactQuill2.prototype.setEditorSelection = function(editor, range) {
25576 this.selection = range;
25577 if (range) {
25578 var length_1 = editor.getLength();
25579 range.index = Math.max(0, Math.min(range.index, length_1 - 1));
25580 range.length = Math.max(0, Math.min(range.length, length_1 - 1 - range.index));
25581 editor.setSelection(range);
25582 }
25583 };
25584 ReactQuill2.prototype.setEditorTabIndex = function(editor, tabIndex) {
25585 var _a2, _b2;
25586 if ((_b2 = (_a2 = editor) === null || _a2 === void 0 ? void 0 : _a2.scroll) === null || _b2 === void 0 ? void 0 : _b2.domNode) {
25587 editor.scroll.domNode.tabIndex = tabIndex;
25588 }
25589 };
25590 ReactQuill2.prototype.setEditorReadOnly = function(editor, value) {
25591 if (value) {
25592 editor.disable();
25593 } else {
25594 editor.enable();
25595 }
25596 };
25597 ReactQuill2.prototype.makeUnprivilegedEditor = function(editor) {
25598 var e2 = editor;
25599 return {
25600 getHTML: function() {
25601 return e2.root.innerHTML;
25602 },
25603 getLength: e2.getLength.bind(e2),
25604 getText: e2.getText.bind(e2),
25605 getContents: e2.getContents.bind(e2),
25606 getSelection: e2.getSelection.bind(e2),
25607 getBounds: e2.getBounds.bind(e2)
25608 };
25609 };
25610 ReactQuill2.prototype.getEditingArea = function() {
25611 if (!this.editingArea) {
25612 throw new Error("Instantiating on missing editing area");
25613 }
25614 var element = react_dom_1.default.findDOMNode(this.editingArea);
25615 if (!element) {
25616 throw new Error("Cannot find element for editing area");
25617 }
25618 if (element.nodeType === 3) {
25619 throw new Error("Editing area cannot be a text node");
25620 }
25621 return element;
25622 };
25623 ReactQuill2.prototype.renderEditingArea = function() {
25624 var _this = this;
25625 var _a2 = this.props, children = _a2.children, preserveWhitespace = _a2.preserveWhitespace;
25626 var generation = this.state.generation;
25627 var properties = {
25628 key: generation,
25629 ref: function(instance) {
25630 _this.editingArea = instance;
25631 }
25632 };
25633 if (react_1.default.Children.count(children)) {
25634 return react_1.default.cloneElement(react_1.default.Children.only(children), properties);
25635 }
25636 return preserveWhitespace ? react_1.default.createElement("pre", __assign({}, properties)) : react_1.default.createElement("div", __assign({}, properties));
25637 };
25638 ReactQuill2.prototype.render = function() {
25639 var _a2;
25640 return react_1.default.createElement("div", { id: this.props.id, style: this.props.style, key: this.state.generation, className: "quill " + (_a2 = this.props.className, _a2 !== null && _a2 !== void 0 ? _a2 : ""), onKeyPress: this.props.onKeyPress, onKeyDown: this.props.onKeyDown, onKeyUp: this.props.onKeyUp }, this.renderEditingArea());
25641 };
25642 ReactQuill2.prototype.onEditorChangeText = function(value, delta, source, editor) {
25643 var _a2, _b2;
25644 if (!this.editor)
25645 return;
25646 var nextContents = this.isDelta(this.value) ? editor.getContents() : editor.getHTML();
25647 if (nextContents !== this.getEditorContents()) {
25648 this.lastDeltaChangeSet = delta;
25649 this.value = nextContents;
25650 (_b2 = (_a2 = this.props).onChange) === null || _b2 === void 0 ? void 0 : _b2.call(_a2, value, delta, source, editor);
25651 }
25652 };
25653 ReactQuill2.prototype.onEditorChangeSelection = function(nextSelection, source, editor) {
25654 var _a2, _b2, _c2, _d2, _e2, _f2;
25655 if (!this.editor)
25656 return;
25657 var currentSelection = this.getEditorSelection();
25658 var hasGainedFocus = !currentSelection && nextSelection;
25659 var hasLostFocus = currentSelection && !nextSelection;
25660 if (isEqual_1.default(nextSelection, currentSelection))
25661 return;
25662 this.selection = nextSelection;
25663 (_b2 = (_a2 = this.props).onChangeSelection) === null || _b2 === void 0 ? void 0 : _b2.call(_a2, nextSelection, source, editor);
25664 if (hasGainedFocus) {
25665 (_d2 = (_c2 = this.props).onFocus) === null || _d2 === void 0 ? void 0 : _d2.call(_c2, nextSelection, source, editor);
25666 } else if (hasLostFocus) {
25667 (_f2 = (_e2 = this.props).onBlur) === null || _f2 === void 0 ? void 0 : _f2.call(_e2, currentSelection, source, editor);
25668 }
25669 };
25670 ReactQuill2.prototype.focus = function() {
25671 if (!this.editor)
25672 return;
25673 this.editor.focus();
25674 };
25675 ReactQuill2.prototype.blur = function() {
25676 if (!this.editor)
25677 return;
25678 this.selection = null;
25679 this.editor.blur();
25680 };
25681 ReactQuill2.displayName = "React Quill";
25682 ReactQuill2.Quill = quill_1.default;
25683 ReactQuill2.defaultProps = {
25684 theme: "snow",
25685 modules: {},
25686 readOnly: false
25687 };
25688 return ReactQuill2;
25689 }(react_1.default.Component)
25690 );
25691 function postpone(fn) {
25692 Promise.resolve().then(fn);
25693 }
25694 var lib = ReactQuill;
25695 const ReactQuill$1 = /* @__PURE__ */ getDefaultExportFromCjs(lib);
25696 export {
25697 _MapCache as $,
25698 Activity as A,
25699 BadgePercent as B,
25700 Crown as C,
25701 Loader2 as D,
25702 Sun as E,
25703 FileSignature as F,
25704 Gift as G,
25705 Moon as H,
25706 User as I,
25707 RefreshCw as J,
25708 Key as K,
25709 List as L,
25710 MessageCircle as M,
25711 Network as N,
25712 Inbox as O,
25713 Puzzle as P,
25714 AlertTriangle as Q,
25715 RotateCcw as R,
25716 Sparkles as S,
25717 TrendingUp as T,
25718 Users as U,
25719 ExternalLink as V,
25720 Wrench as W,
25721 isObjectLike_1 as X,
25722 isArray_1 as Y,
25723 Zap as Z,
25724 _baseGetTag as _,
25725 MessageSquare as a,
25726 ShieldOff as a$,
25727 getDefaultExportFromCjs as a0,
25728 _Symbol as a1,
25729 isObject$3 as a2,
25730 isFunction$3 as a3,
25731 reactIsExports as a4,
25732 React as a5,
25733 _Stack as a6,
25734 _baseIsEqual as a7,
25735 isObject_1 as a8,
25736 keys_1 as a9,
25737 Check as aA,
25738 Wand2 as aB,
25739 ChevronLeft as aC,
25740 CheckCircle2 as aD,
25741 HelpCircle as aE,
25742 Info as aF,
25743 Copy as aG,
25744 MoreVertical as aH,
25745 Columns as aI,
25746 PenSquare as aJ,
25747 ArrowUp as aK,
25748 ArrowDown as aL,
25749 Archive as aM,
25750 Trash2 as aN,
25751 Search as aO,
25752 ArrowUpDown as aP,
25753 Eye as aQ,
25754 Upload as aR,
25755 Image as aS,
25756 ReactQuill$1 as aT,
25757 Pen as aU,
25758 Save as aV,
25759 CircleDollarSign as aW,
25760 Undo2 as aX,
25761 Phone as aY,
25762 PauseCircle as aZ,
25763 ShieldX as a_,
25764 isLength_1 as aa,
25765 _isIndex as ab,
25766 isArguments_1 as ac,
25767 _Set as ad,
25768 _setToArray as ae,
25769 _SetCache as af,
25770 _cacheHas as ag,
25771 _arrayPush as ah,
25772 isArrayLike_1 as ai,
25773 _baseUnary as aj,
25774 _getNative as ak,
25775 eq_1 as al,
25776 _root as am,
25777 isEqual$1 as an,
25778 Animate as ao,
25779 _overArg as ap,
25780 _arraySome as aq,
25781 Clock as ar,
25782 DollarSign as as,
25783 ArrowRight as at,
25784 Shield as au,
25785 CheckCircle as av,
25786 Plus as aw,
25787 X as ax,
25788 reactDomExports as ay,
25789 AlertCircle as az,
25790 Plane as b,
25791 Power as b$,
25792 Globe as b0,
25793 Award as b1,
25794 Database as b2,
25795 Folder as b3,
25796 Mountain as b4,
25797 UserCheck as b5,
25798 Download as b6,
25799 Server as b7,
25800 XCircle as b8,
25801 Video as b9,
25802 LifeBuoy as bA,
25803 ShieldCheck as bB,
25804 LogOut as bC,
25805 Pencil as bD,
25806 Maximize2 as bE,
25807 CheckSquare as bF,
25808 BookOpen as bG,
25809 Lightbulb as bH,
25810 History as bI,
25811 Box as bJ,
25812 Home as bK,
25813 Car as bL,
25814 Building2 as bM,
25815 Palette as bN,
25816 ClipboardList as bO,
25817 SlidersHorizontal as bP,
25818 Percent as bQ,
25819 Receipt as bR,
25820 Plug as bS,
25821 UserPlus as bT,
25822 KeyRound as bU,
25823 Unlock as bV,
25824 UtensilsCrossed as bW,
25825 Hotel as bX,
25826 Replace as bY,
25827 Link as bZ,
25828 Layers as b_,
25829 Lock as ba,
25830 GripVertical as bb,
25831 ChevronUp as bc,
25832 Play as bd,
25833 ClipboardCopy as be,
25834 Ban as bf,
25835 Bell as bg,
25836 Heart as bh,
25837 Scissors as bi,
25838 Send as bj,
25839 Filter as bk,
25840 ArrowUpRight as bl,
25841 ClipboardCheck as bm,
25842 PenTool as bn,
25843 Camera as bo,
25844 BarChart as bp,
25845 Megaphone as bq,
25846 GitBranch as br,
25847 Pause as bs,
25848 Settings2 as bt,
25849 Code as bu,
25850 Bug as bv,
25851 EyeOff as bw,
25852 QueryClient as bx,
25853 client as by,
25854 QueryClientProvider as bz,
25855 Route as c,
25856 PowerOff as c0,
25857 Hash$2 as c1,
25858 AlignLeft as c2,
25859 Type as c3,
25860 Target as c4,
25861 PanelLeft as c5,
25862 Layout as c6,
25863 Mail as d,
25864 Tag as e,
25865 FolderTree as f,
25866 CircleUser as g,
25867 Package as h,
25868 CreditCard as i,
25869 jsxRuntimeExports as j,
25870 FileText as k,
25871 Settings as l,
25872 BarChart3 as m,
25873 Star as n,
25874 CalendarDays as o,
25875 Calendar as p,
25876 MapPin as q,
25877 reactExports as r,
25878 LayoutDashboard as s,
25879 useQueryClient as t,
25880 useQuery as u,
25881 useMutation as v,
25882 Webhook as w,
25883 ChevronDown as x,
25884 ChevronRight as y,
25885 ArrowLeft as z
25886 };
25887 //# sourceMappingURL=react-vendor-xzSqHjRF.js.map
25888