@digipair/skill-web-pdf 0.114.2 → 0.114.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.cjs.js +14 -1943
  2. package/package.json +4 -2
package/dist/index.cjs.js CHANGED
@@ -1,5 +1,8 @@
1
1
  'use strict';
2
2
 
3
+ var lit = require('lit');
4
+ var decorators_js = require('lit/decorators.js');
5
+
3
6
  function __decorate(decorators, target, key, desc) {
4
7
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
5
8
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -11,1939 +14,7 @@ typeof SuppressedError === "function" ? SuppressedError : function(error, suppre
11
14
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
12
15
  };
13
16
 
14
- /**
15
- * @license
16
- * Copyright 2019 Google LLC
17
- * SPDX-License-Identifier: BSD-3-Clause
18
- */ function _class_call_check$3(instance, Constructor) {
19
- if (!(instance instanceof Constructor)) {
20
- throw new TypeError("Cannot call a class as a function");
21
- }
22
- }
23
- function _defineProperties$3(target, props) {
24
- for(var i = 0; i < props.length; i++){
25
- var descriptor = props[i];
26
- descriptor.enumerable = descriptor.enumerable || false;
27
- descriptor.configurable = true;
28
- if ("value" in descriptor) descriptor.writable = true;
29
- Object.defineProperty(target, descriptor.key, descriptor);
30
- }
31
- }
32
- function _create_class$3(Constructor, protoProps, staticProps) {
33
- if (protoProps) _defineProperties$3(Constructor.prototype, protoProps);
34
- return Constructor;
35
- }
36
- function _instanceof(left, right) {
37
- if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
38
- return !!right[Symbol.hasInstance](left);
39
- } else {
40
- return left instanceof right;
41
- }
42
- }
43
- var t$2 = globalThis, e$2 = t$2.ShadowRoot && (void 0 === t$2.ShadyCSS || t$2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$2 = Symbol(), o$4 = new WeakMap;
44
- var n$3 = /*#__PURE__*/ function() {
45
- function n(t, e, o) {
46
- _class_call_check$3(this, n);
47
- if (this._$cssResult$ = true, o !== s$2) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
48
- this.cssText = t, this.t = e;
49
- }
50
- _create_class$3(n, [
51
- {
52
- key: "styleSheet",
53
- get: function get() {
54
- var t = this.o;
55
- var s = this.t;
56
- if (e$2 && void 0 === t) {
57
- var e1 = void 0 !== s && 1 === s.length;
58
- e1 && (t = o$4.get(s)), void 0 === t && ((this.o = t = new CSSStyleSheet).replaceSync(this.cssText), e1 && o$4.set(s, t));
59
- }
60
- return t;
61
- }
62
- },
63
- {
64
- key: "toString",
65
- value: function toString() {
66
- return this.cssText;
67
- }
68
- }
69
- ]);
70
- return n;
71
- }();
72
- var r$4 = function(t) {
73
- return new n$3("string" == typeof t ? t : t + "", void 0, s$2);
74
- }, i$3 = function(t) {
75
- for(var _len = arguments.length, e = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
76
- e[_key - 1] = arguments[_key];
77
- }
78
- var o = 1 === t.length ? t[0] : e.reduce(function(e, s, o) {
79
- return e + function(t) {
80
- if (true === t._$cssResult$) return t.cssText;
81
- if ("number" == typeof t) return t;
82
- throw Error("Value passed to 'css' function must be a 'css' function result: " + t + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
83
- }(s) + t[o + 1];
84
- }, t[0]);
85
- return new n$3(o, t, s$2);
86
- }, S$1 = function(s, o) {
87
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
88
- if (e$2) s.adoptedStyleSheets = o.map(function(t) {
89
- return _instanceof(t, CSSStyleSheet) ? t : t.styleSheet;
90
- });
91
- else try {
92
- for(var _iterator = o[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
93
- var e1 = _step.value;
94
- var _$o = document.createElement("style"), n = t$2.litNonce;
95
- void 0 !== n && _$o.setAttribute("nonce", n), _$o.textContent = e1.cssText, s.appendChild(_$o);
96
- }
97
- } catch (err) {
98
- _didIteratorError = true;
99
- _iteratorError = err;
100
- } finally{
101
- try {
102
- if (!_iteratorNormalCompletion && _iterator.return != null) {
103
- _iterator.return();
104
- }
105
- } finally{
106
- if (_didIteratorError) {
107
- throw _iteratorError;
108
- }
109
- }
110
- }
111
- }, c$2 = e$2 ? function(t) {
112
- return t;
113
- } : function(t) {
114
- return _instanceof(t, CSSStyleSheet) ? function(t) {
115
- var e = "";
116
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
117
- try {
118
- for(var _iterator = t.cssRules[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
119
- var s = _step.value;
120
- e += s.cssText;
121
- }
122
- } catch (err) {
123
- _didIteratorError = true;
124
- _iteratorError = err;
125
- } finally{
126
- try {
127
- if (!_iteratorNormalCompletion && _iterator.return != null) {
128
- _iterator.return();
129
- }
130
- } finally{
131
- if (_didIteratorError) {
132
- throw _iteratorError;
133
- }
134
- }
135
- }
136
- return r$4(e);
137
- }(t) : t;
138
- };
139
-
140
- function _array_like_to_array$1(arr, len) {
141
- if (len == null || len > arr.length) len = arr.length;
142
- for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
143
- return arr2;
144
- }
145
- function _array_with_holes$1(arr) {
146
- if (Array.isArray(arr)) return arr;
147
- }
148
- function _array_without_holes$1(arr) {
149
- if (Array.isArray(arr)) return _array_like_to_array$1(arr);
150
- }
151
- function _assert_this_initialized$2(self) {
152
- if (self === void 0) {
153
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
154
- }
155
- return self;
156
- }
157
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
158
- try {
159
- var info = gen[key](arg);
160
- var value = info.value;
161
- } catch (error) {
162
- reject(error);
163
- return;
164
- }
165
- if (info.done) {
166
- resolve(value);
167
- } else {
168
- Promise.resolve(value).then(_next, _throw);
169
- }
170
- }
171
- function _async_to_generator(fn) {
172
- return function() {
173
- var self = this, args = arguments;
174
- return new Promise(function(resolve, reject) {
175
- var gen = fn.apply(self, args);
176
- function _next(value) {
177
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
178
- }
179
- function _throw(err) {
180
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
181
- }
182
- _next(undefined);
183
- });
184
- };
185
- }
186
- function _class_call_check$2(instance, Constructor) {
187
- if (!(instance instanceof Constructor)) {
188
- throw new TypeError("Cannot call a class as a function");
189
- }
190
- }
191
- function _construct(Parent, args, Class) {
192
- if (_is_native_reflect_construct$2()) {
193
- _construct = Reflect.construct;
194
- } else {
195
- _construct = function construct(Parent, args, Class) {
196
- var a = [
197
- null
198
- ];
199
- a.push.apply(a, args);
200
- var Constructor = Function.bind.apply(Parent, a);
201
- var instance = new Constructor();
202
- if (Class) _set_prototype_of$2(instance, Class.prototype);
203
- return instance;
204
- };
205
- }
206
- return _construct.apply(null, arguments);
207
- }
208
- function _defineProperties$2(target, props) {
209
- for(var i = 0; i < props.length; i++){
210
- var descriptor = props[i];
211
- descriptor.enumerable = descriptor.enumerable || false;
212
- descriptor.configurable = true;
213
- if ("value" in descriptor) descriptor.writable = true;
214
- Object.defineProperty(target, descriptor.key, descriptor);
215
- }
216
- }
217
- function _create_class$2(Constructor, protoProps, staticProps) {
218
- if (protoProps) _defineProperties$2(Constructor.prototype, protoProps);
219
- if (staticProps) _defineProperties$2(Constructor, staticProps);
220
- return Constructor;
221
- }
222
- function _get_prototype_of$2(o) {
223
- _get_prototype_of$2 = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
224
- return o.__proto__ || Object.getPrototypeOf(o);
225
- };
226
- return _get_prototype_of$2(o);
227
- }
228
- function _inherits$2(subClass, superClass) {
229
- if (typeof superClass !== "function" && superClass !== null) {
230
- throw new TypeError("Super expression must either be null or a function");
231
- }
232
- subClass.prototype = Object.create(superClass && superClass.prototype, {
233
- constructor: {
234
- value: subClass,
235
- writable: true,
236
- configurable: true
237
- }
238
- });
239
- if (superClass) _set_prototype_of$2(subClass, superClass);
240
- }
241
- function _is_native_function(fn) {
242
- return Function.toString.call(fn).indexOf("[native code]") !== -1;
243
- }
244
- function _iterable_to_array$1(iter) {
245
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
246
- }
247
- function _iterable_to_array_limit$1(arr, i) {
248
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
249
- if (_i == null) return;
250
- var _arr = [];
251
- var _n = true;
252
- var _d = false;
253
- var _s, _e;
254
- try {
255
- for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
256
- _arr.push(_s.value);
257
- if (i && _arr.length === i) break;
258
- }
259
- } catch (err) {
260
- _d = true;
261
- _e = err;
262
- } finally{
263
- try {
264
- if (!_n && _i["return"] != null) _i["return"]();
265
- } finally{
266
- if (_d) throw _e;
267
- }
268
- }
269
- return _arr;
270
- }
271
- function _non_iterable_rest$1() {
272
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
273
- }
274
- function _non_iterable_spread$1() {
275
- throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
276
- }
277
- function _possible_constructor_return$2(self, call) {
278
- if (call && (_type_of$3(call) === "object" || typeof call === "function")) {
279
- return call;
280
- }
281
- return _assert_this_initialized$2(self);
282
- }
283
- function _set_prototype_of$2(o, p) {
284
- _set_prototype_of$2 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
285
- o.__proto__ = p;
286
- return o;
287
- };
288
- return _set_prototype_of$2(o, p);
289
- }
290
- function _sliced_to_array$1(arr, i) {
291
- return _array_with_holes$1(arr) || _iterable_to_array_limit$1(arr, i) || _unsupported_iterable_to_array$1(arr, i) || _non_iterable_rest$1();
292
- }
293
- function _to_consumable_array$1(arr) {
294
- return _array_without_holes$1(arr) || _iterable_to_array$1(arr) || _unsupported_iterable_to_array$1(arr) || _non_iterable_spread$1();
295
- }
296
- function _type_of$3(obj) {
297
- "@swc/helpers - typeof";
298
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
299
- }
300
- function _unsupported_iterable_to_array$1(o, minLen) {
301
- if (!o) return;
302
- if (typeof o === "string") return _array_like_to_array$1(o, minLen);
303
- var n = Object.prototype.toString.call(o).slice(8, -1);
304
- if (n === "Object" && o.constructor) n = o.constructor.name;
305
- if (n === "Map" || n === "Set") return Array.from(n);
306
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
307
- }
308
- function _wrap_native_super(Class) {
309
- var _cache = typeof Map === "function" ? new Map() : undefined;
310
- _wrap_native_super = function wrapNativeSuper(Class) {
311
- if (Class === null || !_is_native_function(Class)) return Class;
312
- if (typeof Class !== "function") {
313
- throw new TypeError("Super expression must either be null or a function");
314
- }
315
- if (typeof _cache !== "undefined") {
316
- if (_cache.has(Class)) return _cache.get(Class);
317
- _cache.set(Class, Wrapper);
318
- }
319
- function Wrapper() {
320
- return _construct(Class, arguments, _get_prototype_of$2(this).constructor);
321
- }
322
- Wrapper.prototype = Object.create(Class.prototype, {
323
- constructor: {
324
- value: Wrapper,
325
- enumerable: false,
326
- writable: true,
327
- configurable: true
328
- }
329
- });
330
- return _set_prototype_of$2(Wrapper, Class);
331
- };
332
- return _wrap_native_super(Class);
333
- }
334
- function _is_native_reflect_construct$2() {
335
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
336
- if (Reflect.construct.sham) return false;
337
- if (typeof Proxy === "function") return true;
338
- try {
339
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
340
- return true;
341
- } catch (e) {
342
- return false;
343
- }
344
- }
345
- function _create_super$2(Derived) {
346
- var hasNativeReflectConstruct = _is_native_reflect_construct$2();
347
- return function _createSuperInternal() {
348
- var Super = _get_prototype_of$2(Derived), result;
349
- if (hasNativeReflectConstruct) {
350
- var NewTarget = _get_prototype_of$2(this).constructor;
351
- result = Reflect.construct(Super, arguments, NewTarget);
352
- } else {
353
- result = Super.apply(this, arguments);
354
- }
355
- return _possible_constructor_return$2(this, result);
356
- };
357
- }
358
- function _ts_generator(thisArg, body) {
359
- var f, y, t, g, _ = {
360
- label: 0,
361
- sent: function() {
362
- if (t[0] & 1) throw t[1];
363
- return t[1];
364
- },
365
- trys: [],
366
- ops: []
367
- };
368
- return g = {
369
- next: verb(0),
370
- "throw": verb(1),
371
- "return": verb(2)
372
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
373
- return this;
374
- }), g;
375
- function verb(n) {
376
- return function(v) {
377
- return step([
378
- n,
379
- v
380
- ]);
381
- };
382
- }
383
- function step(op) {
384
- if (f) throw new TypeError("Generator is already executing.");
385
- while(_)try {
386
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
387
- if (y = 0, t) op = [
388
- op[0] & 2,
389
- t.value
390
- ];
391
- switch(op[0]){
392
- case 0:
393
- case 1:
394
- t = op;
395
- break;
396
- case 4:
397
- _.label++;
398
- return {
399
- value: op[1],
400
- done: false
401
- };
402
- case 5:
403
- _.label++;
404
- y = op[1];
405
- op = [
406
- 0
407
- ];
408
- continue;
409
- case 7:
410
- op = _.ops.pop();
411
- _.trys.pop();
412
- continue;
413
- default:
414
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
415
- _ = 0;
416
- continue;
417
- }
418
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
419
- _.label = op[1];
420
- break;
421
- }
422
- if (op[0] === 6 && _.label < t[1]) {
423
- _.label = t[1];
424
- t = op;
425
- break;
426
- }
427
- if (t && _.label < t[2]) {
428
- _.label = t[2];
429
- _.ops.push(op);
430
- break;
431
- }
432
- if (t[2]) _.ops.pop();
433
- _.trys.pop();
434
- continue;
435
- }
436
- op = body.call(thisArg, _);
437
- } catch (e) {
438
- op = [
439
- 6,
440
- e
441
- ];
442
- y = 0;
443
- } finally{
444
- f = t = 0;
445
- }
446
- if (op[0] & 5) throw op[1];
447
- return {
448
- value: op[0] ? op[1] : void 0,
449
- done: true
450
- };
451
- }
452
- }
453
- var _Symbol, _a, _a1;
454
- /**
455
- * @license
456
- * Copyright 2017 Google LLC
457
- * SPDX-License-Identifier: BSD-3-Clause
458
- */ var i$2 = Object.is, e$1 = Object.defineProperty, h$1 = Object.getOwnPropertyDescriptor, r$3 = Object.getOwnPropertyNames, o$3 = Object.getOwnPropertySymbols, n$2 = Object.getPrototypeOf, a$1 = globalThis, c$1 = a$1.trustedTypes, l$1 = c$1 ? c$1.emptyScript : "", p$1 = a$1.reactiveElementPolyfillSupport, d$1 = function(t, s) {
459
- return t;
460
- }, u$1 = {
461
- toAttribute: function toAttribute(t, s) {
462
- switch(s){
463
- case Boolean:
464
- t = t ? l$1 : null;
465
- break;
466
- case Object:
467
- case Array:
468
- t = null == t ? t : JSON.stringify(t);
469
- }
470
- return t;
471
- },
472
- fromAttribute: function fromAttribute(t, s) {
473
- var i = t;
474
- switch(s){
475
- case Boolean:
476
- i = null !== t;
477
- break;
478
- case Number:
479
- i = null === t ? null : Number(t);
480
- break;
481
- case Object:
482
- case Array:
483
- try {
484
- i = JSON.parse(t);
485
- } catch (t) {
486
- i = null;
487
- }
488
- }
489
- return i;
490
- }
491
- }, f$1 = function(t, s) {
492
- return !i$2(t, s);
493
- }, b = {
494
- attribute: true,
495
- type: String,
496
- converter: u$1,
497
- reflect: false,
498
- useDefault: false,
499
- hasChanged: f$1
500
- };
501
- var _metadata, _litPropertyMetadata;
502
- (_metadata = (_Symbol = Symbol).metadata) !== null && _metadata !== void 0 ? _metadata : _Symbol.metadata = Symbol("metadata"), (_litPropertyMetadata = (_a = a$1).litPropertyMetadata) !== null && _litPropertyMetadata !== void 0 ? _litPropertyMetadata : _a.litPropertyMetadata = new WeakMap;
503
- var y$1 = /*#__PURE__*/ function(HTMLElement1) {
504
- _inherits$2(y, HTMLElement1);
505
- var _super = _create_super$2(y);
506
- function y() {
507
- _class_call_check$2(this, y);
508
- var _this;
509
- _this = _super.call(this), _this._$Ep = void 0, _this.isUpdatePending = false, _this.hasUpdated = false, _this._$Em = null, _this._$Ev();
510
- return _possible_constructor_return$2(_this);
511
- }
512
- _create_class$2(y, [
513
- {
514
- key: "_$Ev",
515
- value: function _$Ev() {
516
- var _this = this;
517
- var _this_constructor_l;
518
- this._$ES = new Promise(function(t) {
519
- return _this.enableUpdating = t;
520
- }), this._$AL = new Map, this._$E_(), this.requestUpdate(), (_this_constructor_l = this.constructor.l) === null || _this_constructor_l === void 0 ? void 0 : _this_constructor_l.forEach(function(t) {
521
- return t(_this);
522
- });
523
- }
524
- },
525
- {
526
- key: "addController",
527
- value: function addController(t) {
528
- var _t_hostConnected;
529
- var _this__$EO;
530
- ((_this__$EO = this._$EO) !== null && _this__$EO !== void 0 ? _this__$EO : this._$EO = new Set).add(t), void 0 !== this.renderRoot && this.isConnected && ((_t_hostConnected = t.hostConnected) === null || _t_hostConnected === void 0 ? void 0 : _t_hostConnected.call(t));
531
- }
532
- },
533
- {
534
- key: "removeController",
535
- value: function removeController(t) {
536
- var _this__$EO;
537
- (_this__$EO = this._$EO) === null || _this__$EO === void 0 ? void 0 : _this__$EO.delete(t);
538
- }
539
- },
540
- {
541
- key: "_$E_",
542
- value: function _$E_() {
543
- var t = new Map, s = this.constructor.elementProperties;
544
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
545
- try {
546
- for(var _iterator = s.keys()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
547
- var i = _step.value;
548
- this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
549
- }
550
- } catch (err) {
551
- _didIteratorError = true;
552
- _iteratorError = err;
553
- } finally{
554
- try {
555
- if (!_iteratorNormalCompletion && _iterator.return != null) {
556
- _iterator.return();
557
- }
558
- } finally{
559
- if (_didIteratorError) {
560
- throw _iteratorError;
561
- }
562
- }
563
- }
564
- t.size > 0 && (this._$Ep = t);
565
- }
566
- },
567
- {
568
- key: "createRenderRoot",
569
- value: function createRenderRoot() {
570
- var _this_shadowRoot;
571
- var t = (_this_shadowRoot = this.shadowRoot) !== null && _this_shadowRoot !== void 0 ? _this_shadowRoot : this.attachShadow(this.constructor.shadowRootOptions);
572
- return S$1(t, this.constructor.elementStyles), t;
573
- }
574
- },
575
- {
576
- key: "connectedCallback",
577
- value: function connectedCallback() {
578
- var _this__$EO;
579
- var _this_renderRoot;
580
- (_this_renderRoot = this.renderRoot) !== null && _this_renderRoot !== void 0 ? _this_renderRoot : this.renderRoot = this.createRenderRoot(), this.enableUpdating(true), (_this__$EO = this._$EO) === null || _this__$EO === void 0 ? void 0 : _this__$EO.forEach(function(t) {
581
- var _t_hostConnected;
582
- return (_t_hostConnected = t.hostConnected) === null || _t_hostConnected === void 0 ? void 0 : _t_hostConnected.call(t);
583
- });
584
- }
585
- },
586
- {
587
- key: "enableUpdating",
588
- value: function enableUpdating(t) {}
589
- },
590
- {
591
- key: "disconnectedCallback",
592
- value: function disconnectedCallback() {
593
- var _this__$EO;
594
- (_this__$EO = this._$EO) === null || _this__$EO === void 0 ? void 0 : _this__$EO.forEach(function(t) {
595
- var _t_hostDisconnected;
596
- return (_t_hostDisconnected = t.hostDisconnected) === null || _t_hostDisconnected === void 0 ? void 0 : _t_hostDisconnected.call(t);
597
- });
598
- }
599
- },
600
- {
601
- key: "attributeChangedCallback",
602
- value: function attributeChangedCallback(t, s, i) {
603
- this._$AK(t, i);
604
- }
605
- },
606
- {
607
- key: "_$ET",
608
- value: function _$ET(t, s) {
609
- var i = this.constructor.elementProperties.get(t), e = this.constructor._$Eu(t, i);
610
- if (void 0 !== e && true === i.reflect) {
611
- var _i_converter;
612
- var h = (void 0 !== ((_i_converter = i.converter) === null || _i_converter === void 0 ? void 0 : _i_converter.toAttribute) ? i.converter : u$1).toAttribute(s, i.type);
613
- this._$Em = t, null == h ? this.removeAttribute(e) : this.setAttribute(e, h), this._$Em = null;
614
- }
615
- }
616
- },
617
- {
618
- key: "_$AK",
619
- value: function _$AK(t, s) {
620
- var i = this.constructor, e = i._$Eh.get(t);
621
- if (void 0 !== e && this._$Em !== e) {
622
- var _t_converter, _this__$Ej;
623
- var _$t = i.getPropertyOptions(e), h = "function" == typeof _$t.converter ? {
624
- fromAttribute: _$t.converter
625
- } : void 0 !== ((_t_converter = _$t.converter) === null || _t_converter === void 0 ? void 0 : _t_converter.fromAttribute) ? _$t.converter : u$1;
626
- this._$Em = e;
627
- var r = h.fromAttribute(s, _$t.type);
628
- var _ref;
629
- this[e] = (_ref = r !== null && r !== void 0 ? r : (_this__$Ej = this._$Ej) === null || _this__$Ej === void 0 ? void 0 : _this__$Ej.get(e)) !== null && _ref !== void 0 ? _ref : r, this._$Em = null;
630
- }
631
- }
632
- },
633
- {
634
- key: "requestUpdate",
635
- value: function requestUpdate(t, s, i) {
636
- if (void 0 !== t) {
637
- var _this__$Ej;
638
- var e = this.constructor, h = this[t];
639
- var _i_hasChanged;
640
- if (i !== null && i !== void 0 ? i : i = e.getPropertyOptions(t), !(((_i_hasChanged = i.hasChanged) !== null && _i_hasChanged !== void 0 ? _i_hasChanged : f$1)(h, s) || i.useDefault && i.reflect && h === ((_this__$Ej = this._$Ej) === null || _this__$Ej === void 0 ? void 0 : _this__$Ej.get(t)) && !this.hasAttribute(e._$Eu(t, i)))) return;
641
- this.C(t, s, i);
642
- }
643
- false === this.isUpdatePending && (this._$ES = this._$EP());
644
- }
645
- },
646
- {
647
- key: "C",
648
- value: function C(t, s, param, r) {
649
- var i = param.useDefault, e = param.reflect, h = param.wrapped;
650
- var _this__$Ej, _ref, _this__$Eq;
651
- i && !((_this__$Ej = this._$Ej) !== null && _this__$Ej !== void 0 ? _this__$Ej : this._$Ej = new Map).has(t) && (this._$Ej.set(t, (_ref = r !== null && r !== void 0 ? r : s) !== null && _ref !== void 0 ? _ref : this[t]), true !== h || void 0 !== r) || (this._$AL.has(t) || (this.hasUpdated || i || (s = void 0), this._$AL.set(t, s)), true === e && this._$Em !== t && ((_this__$Eq = this._$Eq) !== null && _this__$Eq !== void 0 ? _this__$Eq : this._$Eq = new Set).add(t));
652
- }
653
- },
654
- {
655
- key: "_$EP",
656
- value: function _$EP() {
657
- var _this = this;
658
- return _async_to_generator(function() {
659
- var t, _$t, _tmp;
660
- return _ts_generator(this, function(_state) {
661
- switch(_state.label){
662
- case 0:
663
- _this.isUpdatePending = true;
664
- _state.label = 1;
665
- case 1:
666
- _state.trys.push([
667
- 1,
668
- 3,
669
- ,
670
- 4
671
- ]);
672
- return [
673
- 4,
674
- _this._$ES
675
- ];
676
- case 2:
677
- _state.sent();
678
- return [
679
- 3,
680
- 4
681
- ];
682
- case 3:
683
- t = _state.sent();
684
- Promise.reject(t);
685
- return [
686
- 3,
687
- 4
688
- ];
689
- case 4:
690
- _$t = _this.scheduleUpdate();
691
- _tmp = null != _$t;
692
- if (!_tmp) return [
693
- 3,
694
- 6
695
- ];
696
- return [
697
- 4,
698
- _$t
699
- ];
700
- case 5:
701
- _tmp = _state.sent();
702
- _state.label = 6;
703
- case 6:
704
- return [
705
- 2,
706
- (!_this.isUpdatePending)
707
- ];
708
- }
709
- });
710
- })();
711
- }
712
- },
713
- {
714
- key: "scheduleUpdate",
715
- value: function scheduleUpdate() {
716
- return this.performUpdate();
717
- }
718
- },
719
- {
720
- key: "performUpdate",
721
- value: function performUpdate() {
722
- if (!this.isUpdatePending) return;
723
- if (!this.hasUpdated) {
724
- var _this_renderRoot;
725
- if ((_this_renderRoot = this.renderRoot) !== null && _this_renderRoot !== void 0 ? _this_renderRoot : this.renderRoot = this.createRenderRoot(), this._$Ep) {
726
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
727
- try {
728
- for(var _iterator = this._$Ep[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
729
- var _step_value = _sliced_to_array$1(_step.value, 2), t = _step_value[0], _$s = _step_value[1];
730
- this[t] = _$s;
731
- }
732
- } catch (err) {
733
- _didIteratorError = true;
734
- _iteratorError = err;
735
- } finally{
736
- try {
737
- if (!_iteratorNormalCompletion && _iterator.return != null) {
738
- _iterator.return();
739
- }
740
- } finally{
741
- if (_didIteratorError) {
742
- throw _iteratorError;
743
- }
744
- }
745
- }
746
- this._$Ep = void 0;
747
- }
748
- var t1 = this.constructor.elementProperties;
749
- var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
750
- if (t1.size > 0) try {
751
- for(var _iterator1 = t1[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
752
- var _step_value1 = _sliced_to_array$1(_step1.value, 2), _$s1 = _step_value1[0], i = _step_value1[1];
753
- var t2 = i.wrapped, e = this[_$s1];
754
- !0 !== t2 || this._$AL.has(_$s1) || void 0 === e || this.C(_$s1, void 0, i, e);
755
- }
756
- } catch (err) {
757
- _didIteratorError1 = true;
758
- _iteratorError1 = err;
759
- } finally{
760
- try {
761
- if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
762
- _iterator1.return();
763
- }
764
- } finally{
765
- if (_didIteratorError1) {
766
- throw _iteratorError1;
767
- }
768
- }
769
- }
770
- }
771
- var t3 = false;
772
- var _$s2 = this._$AL;
773
- try {
774
- var _this__$EO;
775
- t3 = this.shouldUpdate(_$s2), t3 ? (this.willUpdate(_$s2), (_this__$EO = this._$EO) === null || _this__$EO === void 0 ? void 0 : _this__$EO.forEach(function(t) {
776
- var _t_hostUpdate;
777
- return (_t_hostUpdate = t.hostUpdate) === null || _t_hostUpdate === void 0 ? void 0 : _t_hostUpdate.call(t);
778
- }), this.update(_$s2)) : this._$EM();
779
- } catch (s) {
780
- throw t3 = false, this._$EM(), s;
781
- }
782
- t3 && this._$AE(_$s2);
783
- }
784
- },
785
- {
786
- key: "willUpdate",
787
- value: function willUpdate(t) {}
788
- },
789
- {
790
- key: "_$AE",
791
- value: function _$AE(t) {
792
- var _this__$EO;
793
- (_this__$EO = this._$EO) === null || _this__$EO === void 0 ? void 0 : _this__$EO.forEach(function(t) {
794
- var _t_hostUpdated;
795
- return (_t_hostUpdated = t.hostUpdated) === null || _t_hostUpdated === void 0 ? void 0 : _t_hostUpdated.call(t);
796
- }), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t)), this.updated(t);
797
- }
798
- },
799
- {
800
- key: "_$EM",
801
- value: function _$EM() {
802
- this._$AL = new Map, this.isUpdatePending = false;
803
- }
804
- },
805
- {
806
- key: "updateComplete",
807
- get: function get() {
808
- return this.getUpdateComplete();
809
- }
810
- },
811
- {
812
- key: "getUpdateComplete",
813
- value: function getUpdateComplete() {
814
- return this._$ES;
815
- }
816
- },
817
- {
818
- key: "shouldUpdate",
819
- value: function shouldUpdate(t) {
820
- return true;
821
- }
822
- },
823
- {
824
- key: "update",
825
- value: function update(t) {
826
- var _this = this;
827
- this._$Eq && (this._$Eq = this._$Eq.forEach(function(t) {
828
- return _this._$ET(t, _this[t]);
829
- })), this._$EM();
830
- }
831
- },
832
- {
833
- key: "updated",
834
- value: function updated(t) {}
835
- },
836
- {
837
- key: "firstUpdated",
838
- value: function firstUpdated(t) {}
839
- }
840
- ], [
841
- {
842
- key: "addInitializer",
843
- value: function addInitializer(t) {
844
- var _this_l;
845
- this._$Ei(), ((_this_l = this.l) !== null && _this_l !== void 0 ? _this_l : this.l = []).push(t);
846
- }
847
- },
848
- {
849
- key: "observedAttributes",
850
- get: function get() {
851
- return this.finalize(), this._$Eh && _to_consumable_array$1(this._$Eh.keys());
852
- }
853
- },
854
- {
855
- key: "createProperty",
856
- value: function createProperty(t) {
857
- var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : b;
858
- if (s.state && (s.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t) && ((s = Object.create(s)).wrapped = true), this.elementProperties.set(t, s), !s.noAccessor) {
859
- var i = Symbol(), h = this.getPropertyDescriptor(t, i, s);
860
- void 0 !== h && e$1(this.prototype, t, h);
861
- }
862
- }
863
- },
864
- {
865
- key: "getPropertyDescriptor",
866
- value: function getPropertyDescriptor(t, s, i) {
867
- var _h;
868
- var _ref = (_h = h$1(this.prototype, t)) !== null && _h !== void 0 ? _h : {
869
- get: function get() {
870
- return this[s];
871
- },
872
- set: function set(t) {
873
- this[s] = t;
874
- }
875
- }, e = _ref.get, r = _ref.set;
876
- return {
877
- get: e,
878
- set: function set(s) {
879
- var h = e === null || e === void 0 ? void 0 : e.call(this);
880
- r === null || r === void 0 ? void 0 : r.call(this, s), this.requestUpdate(t, h, i);
881
- },
882
- configurable: true,
883
- enumerable: true
884
- };
885
- }
886
- },
887
- {
888
- key: "getPropertyOptions",
889
- value: function getPropertyOptions(t) {
890
- var _this_elementProperties_get;
891
- return (_this_elementProperties_get = this.elementProperties.get(t)) !== null && _this_elementProperties_get !== void 0 ? _this_elementProperties_get : b;
892
- }
893
- },
894
- {
895
- key: "_$Ei",
896
- value: function _$Ei() {
897
- if (this.hasOwnProperty(d$1("elementProperties"))) return;
898
- var t = n$2(this);
899
- t.finalize(), void 0 !== t.l && (this.l = _to_consumable_array$1(t.l)), this.elementProperties = new Map(t.elementProperties);
900
- }
901
- },
902
- {
903
- key: "finalize",
904
- value: function finalize() {
905
- if (this.hasOwnProperty(d$1("finalized"))) return;
906
- if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d$1("properties"))) {
907
- var t = this.properties, s = _to_consumable_array$1(r$3(t)).concat(_to_consumable_array$1(o$3(t)));
908
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
909
- try {
910
- for(var _iterator = s[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
911
- var i = _step.value;
912
- this.createProperty(i, t[i]);
913
- }
914
- } catch (err) {
915
- _didIteratorError = true;
916
- _iteratorError = err;
917
- } finally{
918
- try {
919
- if (!_iteratorNormalCompletion && _iterator.return != null) {
920
- _iterator.return();
921
- }
922
- } finally{
923
- if (_didIteratorError) {
924
- throw _iteratorError;
925
- }
926
- }
927
- }
928
- }
929
- var t1 = this[Symbol.metadata];
930
- if (null !== t1) {
931
- var s1 = litPropertyMetadata.get(t1);
932
- var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
933
- if (void 0 !== s1) try {
934
- for(var _iterator1 = s1[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
935
- var _step_value = _sliced_to_array$1(_step1.value, 2), t2 = _step_value[0], i1 = _step_value[1];
936
- this.elementProperties.set(t2, i1);
937
- }
938
- } catch (err) {
939
- _didIteratorError1 = true;
940
- _iteratorError1 = err;
941
- } finally{
942
- try {
943
- if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
944
- _iterator1.return();
945
- }
946
- } finally{
947
- if (_didIteratorError1) {
948
- throw _iteratorError1;
949
- }
950
- }
951
- }
952
- }
953
- this._$Eh = new Map;
954
- var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = undefined;
955
- try {
956
- for(var _iterator2 = this.elementProperties[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true){
957
- var _step_value1 = _sliced_to_array$1(_step2.value, 2), t3 = _step_value1[0], s2 = _step_value1[1];
958
- var i2 = this._$Eu(t3, s2);
959
- void 0 !== i2 && this._$Eh.set(i2, t3);
960
- }
961
- } catch (err) {
962
- _didIteratorError2 = true;
963
- _iteratorError2 = err;
964
- } finally{
965
- try {
966
- if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
967
- _iterator2.return();
968
- }
969
- } finally{
970
- if (_didIteratorError2) {
971
- throw _iteratorError2;
972
- }
973
- }
974
- }
975
- this.elementStyles = this.finalizeStyles(this.styles);
976
- }
977
- },
978
- {
979
- key: "finalizeStyles",
980
- value: function finalizeStyles(s) {
981
- var i = [];
982
- if (Array.isArray(s)) {
983
- var e = new Set(s.flat(1 / 0).reverse());
984
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
985
- try {
986
- for(var _iterator = e[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
987
- var _$s = _step.value;
988
- i.unshift(c$2(_$s));
989
- }
990
- } catch (err) {
991
- _didIteratorError = true;
992
- _iteratorError = err;
993
- } finally{
994
- try {
995
- if (!_iteratorNormalCompletion && _iterator.return != null) {
996
- _iterator.return();
997
- }
998
- } finally{
999
- if (_didIteratorError) {
1000
- throw _iteratorError;
1001
- }
1002
- }
1003
- }
1004
- } else void 0 !== s && i.push(c$2(s));
1005
- return i;
1006
- }
1007
- },
1008
- {
1009
- key: "_$Eu",
1010
- value: function _$Eu(t, s) {
1011
- var i = s.attribute;
1012
- return false === i ? void 0 : "string" == typeof i ? i : "string" == typeof t ? t.toLowerCase() : void 0;
1013
- }
1014
- }
1015
- ]);
1016
- return y;
1017
- }(_wrap_native_super(HTMLElement));
1018
- var _reactiveElementVersions;
1019
- y$1.elementStyles = [], y$1.shadowRootOptions = {
1020
- mode: "open"
1021
- }, y$1[d$1("elementProperties")] = new Map, y$1[d$1("finalized")] = new Map, p$1 === null || p$1 === void 0 ? void 0 : p$1({
1022
- ReactiveElement: y$1
1023
- }), ((_reactiveElementVersions = (_a1 = a$1).reactiveElementVersions) !== null && _reactiveElementVersions !== void 0 ? _reactiveElementVersions : _a1.reactiveElementVersions = []).push("2.1.1");
1024
-
1025
- /**
1026
- * @license
1027
- * Copyright 2017 Google LLC
1028
- * SPDX-License-Identifier: BSD-3-Clause
1029
- */ function _array_like_to_array(arr, len) {
1030
- if (len == null || len > arr.length) len = arr.length;
1031
- for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
1032
- return arr2;
1033
- }
1034
- function _array_with_holes(arr) {
1035
- if (Array.isArray(arr)) return arr;
1036
- }
1037
- function _array_without_holes(arr) {
1038
- if (Array.isArray(arr)) return _array_like_to_array(arr);
1039
- }
1040
- function _assert_this_initialized$1(self) {
1041
- if (self === void 0) {
1042
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1043
- }
1044
- return self;
1045
- }
1046
- function _class_call_check$1(instance, Constructor) {
1047
- if (!(instance instanceof Constructor)) {
1048
- throw new TypeError("Cannot call a class as a function");
1049
- }
1050
- }
1051
- function _defineProperties$1(target, props) {
1052
- for(var i = 0; i < props.length; i++){
1053
- var descriptor = props[i];
1054
- descriptor.enumerable = descriptor.enumerable || false;
1055
- descriptor.configurable = true;
1056
- if ("value" in descriptor) descriptor.writable = true;
1057
- Object.defineProperty(target, descriptor.key, descriptor);
1058
- }
1059
- }
1060
- function _create_class$1(Constructor, protoProps, staticProps) {
1061
- if (protoProps) _defineProperties$1(Constructor.prototype, protoProps);
1062
- if (staticProps) _defineProperties$1(Constructor, staticProps);
1063
- return Constructor;
1064
- }
1065
- function _get_prototype_of$1(o) {
1066
- _get_prototype_of$1 = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
1067
- return o.__proto__ || Object.getPrototypeOf(o);
1068
- };
1069
- return _get_prototype_of$1(o);
1070
- }
1071
- function _inherits$1(subClass, superClass) {
1072
- if (typeof superClass !== "function" && superClass !== null) {
1073
- throw new TypeError("Super expression must either be null or a function");
1074
- }
1075
- subClass.prototype = Object.create(superClass && superClass.prototype, {
1076
- constructor: {
1077
- value: subClass,
1078
- writable: true,
1079
- configurable: true
1080
- }
1081
- });
1082
- if (superClass) _set_prototype_of$1(subClass, superClass);
1083
- }
1084
- function _iterable_to_array(iter) {
1085
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
1086
- }
1087
- function _iterable_to_array_limit(arr, i) {
1088
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
1089
- if (_i == null) return;
1090
- var _arr = [];
1091
- var _n = true;
1092
- var _d = false;
1093
- var _s, _e;
1094
- try {
1095
- for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
1096
- _arr.push(_s.value);
1097
- if (i && _arr.length === i) break;
1098
- }
1099
- } catch (err) {
1100
- _d = true;
1101
- _e = err;
1102
- } finally{
1103
- try {
1104
- if (!_n && _i["return"] != null) _i["return"]();
1105
- } finally{
1106
- if (_d) throw _e;
1107
- }
1108
- }
1109
- return _arr;
1110
- }
1111
- function _non_iterable_rest() {
1112
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1113
- }
1114
- function _non_iterable_spread() {
1115
- throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1116
- }
1117
- function _possible_constructor_return$1(self, call) {
1118
- if (call && (_type_of$2(call) === "object" || typeof call === "function")) {
1119
- return call;
1120
- }
1121
- return _assert_this_initialized$1(self);
1122
- }
1123
- function _set_prototype_of$1(o, p) {
1124
- _set_prototype_of$1 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
1125
- o.__proto__ = p;
1126
- return o;
1127
- };
1128
- return _set_prototype_of$1(o, p);
1129
- }
1130
- function _sliced_to_array(arr, i) {
1131
- return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
1132
- }
1133
- function _to_consumable_array(arr) {
1134
- return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
1135
- }
1136
- function _type_of$2(obj) {
1137
- "@swc/helpers - typeof";
1138
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
1139
- }
1140
- function _unsupported_iterable_to_array(o, minLen) {
1141
- if (!o) return;
1142
- if (typeof o === "string") return _array_like_to_array(o, minLen);
1143
- var n = Object.prototype.toString.call(o).slice(8, -1);
1144
- if (n === "Object" && o.constructor) n = o.constructor.name;
1145
- if (n === "Map" || n === "Set") return Array.from(n);
1146
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
1147
- }
1148
- function _is_native_reflect_construct$1() {
1149
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
1150
- if (Reflect.construct.sham) return false;
1151
- if (typeof Proxy === "function") return true;
1152
- try {
1153
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
1154
- return true;
1155
- } catch (e) {
1156
- return false;
1157
- }
1158
- }
1159
- function _create_super$1(Derived) {
1160
- var hasNativeReflectConstruct = _is_native_reflect_construct$1();
1161
- return function _createSuperInternal() {
1162
- var Super = _get_prototype_of$1(Derived), result;
1163
- if (hasNativeReflectConstruct) {
1164
- var NewTarget = _get_prototype_of$1(this).constructor;
1165
- result = Reflect.construct(Super, arguments, NewTarget);
1166
- } else {
1167
- result = Super.apply(this, arguments);
1168
- }
1169
- return _possible_constructor_return$1(this, result);
1170
- };
1171
- }
1172
- var _t;
1173
- var t$1 = globalThis, i$1 = t$1.trustedTypes, s$1 = i$1 ? i$1.createPolicy("lit-html", {
1174
- createHTML: function(t) {
1175
- return t;
1176
- }
1177
- }) : void 0, e = "$lit$", h = "lit$".concat(Math.random().toFixed(9).slice(2), "$"), o$2 = "?" + h, n$1 = "<".concat(o$2, ">"), r$2 = document, l = function() {
1178
- return r$2.createComment("");
1179
- }, c = function(t) {
1180
- return null === t || "object" != (typeof t === "undefined" ? "undefined" : _type_of$2(t)) && "function" != typeof t;
1181
- }, a = Array.isArray, u = function(t) {
1182
- return a(t) || "function" == typeof (t === null || t === void 0 ? void 0 : t[Symbol.iterator]);
1183
- }, d = "[ \t\n\f\r]", f = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, v = /-->/g, _ = />/g, m = RegExp(">|".concat(d, "(?:([^\\s\"'>=/]+)(").concat(d, "*=").concat(d, "*(?:[^ \n\f\r\"'`<>=]|(\"|')|))|$)"), "g"), p = /'/g, g = /"/g, $ = /^(?:script|style|textarea|title)$/i, y = function(t) {
1184
- return function(i) {
1185
- for(var _len = arguments.length, s = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
1186
- s[_key - 1] = arguments[_key];
1187
- }
1188
- return {
1189
- _$litType$: t,
1190
- strings: i,
1191
- values: s
1192
- };
1193
- };
1194
- }, x = y(1), T = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), A = new WeakMap, C = r$2.createTreeWalker(r$2, 129);
1195
- function P(t, i) {
1196
- if (!a(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
1197
- return void 0 !== s$1 ? s$1.createHTML(i) : i;
1198
- }
1199
- var V = function(t, i) {
1200
- var s = t.length - 1, o = [];
1201
- var r, l = 2 === i ? "<svg>" : 3 === i ? "<math>" : "", c = f;
1202
- for(var _$i = 0; _$i < s; _$i++){
1203
- var s1 = t[_$i];
1204
- var a = void 0, u = void 0, d = -1, y = 0;
1205
- for(; y < s1.length && (c.lastIndex = y, u = c.exec(s1), null !== u);)y = c.lastIndex, c === f ? "!--" === u[1] ? c = v : void 0 !== u[1] ? c = _ : void 0 !== u[2] ? ($.test(u[2]) && (r = RegExp("</" + u[2], "g")), c = m) : void 0 !== u[3] && (c = m) : c === m ? ">" === u[0] ? (c = r !== null && r !== void 0 ? r : f, d = -1) : void 0 === u[1] ? d = -2 : (d = c.lastIndex - u[2].length, a = u[1], c = void 0 === u[3] ? m : '"' === u[3] ? g : p) : c === g || c === p ? c = m : c === v || c === _ ? c = f : (c = m, r = void 0);
1206
- var x = c === m && t[_$i + 1].startsWith("/>") ? " " : "";
1207
- l += c === f ? s1 + n$1 : d >= 0 ? (o.push(a), s1.slice(0, d) + e + s1.slice(d) + h + x) : s1 + h + (-2 === d ? _$i : x);
1208
- }
1209
- return [
1210
- P(t, l + (t[s] || "<?>") + (2 === i ? "</svg>" : 3 === i ? "</math>" : "")),
1211
- o
1212
- ];
1213
- };
1214
- var N = /*#__PURE__*/ function() {
1215
- function N(param, n) {
1216
- var t = param.strings, s = param._$litType$;
1217
- _class_call_check$1(this, N);
1218
- var r;
1219
- this.parts = [];
1220
- var c = 0, a = 0;
1221
- var u = t.length - 1, d = this.parts, _V = _sliced_to_array(V(t, s), 2), f = _V[0], v = _V[1];
1222
- if (this.el = N.createElement(f, n), C.currentNode = this.el.content, 2 === s || 3 === s) {
1223
- var _t;
1224
- var t1 = this.el.content.firstChild;
1225
- (_t = t1).replaceWith.apply(_t, _to_consumable_array(t1.childNodes));
1226
- }
1227
- for(; null !== (r = C.nextNode()) && d.length < u;){
1228
- if (1 === r.nodeType) {
1229
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
1230
- if (r.hasAttributes()) try {
1231
- for(var _iterator = r.getAttributeNames()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
1232
- var t2 = _step.value;
1233
- if (t2.endsWith(e)) {
1234
- var i1 = v[a++], s1 = r.getAttribute(t2).split(h), e1 = /([.?@])?(.*)/.exec(i1);
1235
- d.push({
1236
- type: 1,
1237
- index: c,
1238
- name: e1[2],
1239
- strings: s1,
1240
- ctor: "." === e1[1] ? H : "?" === e1[1] ? I : "@" === e1[1] ? L : k
1241
- }), r.removeAttribute(t2);
1242
- } else t2.startsWith(h) && (d.push({
1243
- type: 6,
1244
- index: c
1245
- }), r.removeAttribute(t2));
1246
- }
1247
- } catch (err) {
1248
- _didIteratorError = true;
1249
- _iteratorError = err;
1250
- } finally{
1251
- try {
1252
- if (!_iteratorNormalCompletion && _iterator.return != null) {
1253
- _iterator.return();
1254
- }
1255
- } finally{
1256
- if (_didIteratorError) {
1257
- throw _iteratorError;
1258
- }
1259
- }
1260
- }
1261
- if ($.test(r.tagName)) {
1262
- var t3 = r.textContent.split(h), s2 = t3.length - 1;
1263
- if (s2 > 0) {
1264
- r.textContent = i$1 ? i$1.emptyScript : "";
1265
- for(var i2 = 0; i2 < s2; i2++)r.append(t3[i2], l()), C.nextNode(), d.push({
1266
- type: 2,
1267
- index: ++c
1268
- });
1269
- r.append(t3[s2], l());
1270
- }
1271
- }
1272
- } else if (8 === r.nodeType) if (r.data === o$2) d.push({
1273
- type: 2,
1274
- index: c
1275
- });
1276
- else {
1277
- var t4 = -1;
1278
- for(; -1 !== (t4 = r.data.indexOf(h, t4 + 1));)d.push({
1279
- type: 7,
1280
- index: c
1281
- }), t4 += h.length - 1;
1282
- }
1283
- c++;
1284
- }
1285
- }
1286
- _create_class$1(N, null, [
1287
- {
1288
- key: "createElement",
1289
- value: function createElement(t, i) {
1290
- var s = r$2.createElement("template");
1291
- return s.innerHTML = t, s;
1292
- }
1293
- }
1294
- ]);
1295
- return N;
1296
- }();
1297
- function S(t, i) {
1298
- var s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : t, e = arguments.length > 3 ? arguments[3] : void 0;
1299
- var _s__$Co, _h__$AO;
1300
- var _s;
1301
- if (i === T) return i;
1302
- var h = void 0 !== e ? (_s__$Co = s._$Co) === null || _s__$Co === void 0 ? void 0 : _s__$Co[e] : s._$Cl;
1303
- var o = c(i) ? void 0 : i._$litDirective$;
1304
- var __$Co;
1305
- return (h === null || h === void 0 ? void 0 : h.constructor) !== o && (h === null || h === void 0 ? void 0 : (_h__$AO = h._$AO) === null || _h__$AO === void 0 ? void 0 : _h__$AO.call(h, false), void 0 === o ? h = void 0 : (h = new o(t), h._$AT(t, s, e)), void 0 !== e ? ((__$Co = (_s = s)._$Co) !== null && __$Co !== void 0 ? __$Co : _s._$Co = [])[e] = h : s._$Cl = h), void 0 !== h && (i = S(t, h._$AS(t, i.values), h, e)), i;
1306
- }
1307
- var M = /*#__PURE__*/ function() {
1308
- function M(t, i) {
1309
- _class_call_check$1(this, M);
1310
- this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = i;
1311
- }
1312
- _create_class$1(M, [
1313
- {
1314
- key: "parentNode",
1315
- get: function get() {
1316
- return this._$AM.parentNode;
1317
- }
1318
- },
1319
- {
1320
- key: "_$AU",
1321
- get: function get() {
1322
- return this._$AM._$AU;
1323
- }
1324
- },
1325
- {
1326
- key: "u",
1327
- value: function u(t) {
1328
- var _t_creationScope;
1329
- var _this__$AD = this._$AD, _this__$AD_el = _this__$AD.el, i = _this__$AD_el.content, s = _this__$AD.parts, e = ((_t_creationScope = t === null || t === void 0 ? void 0 : t.creationScope) !== null && _t_creationScope !== void 0 ? _t_creationScope : r$2).importNode(i, true);
1330
- C.currentNode = e;
1331
- var h = C.nextNode(), o = 0, n = 0, l = s[0];
1332
- for(; void 0 !== l;){
1333
- if (o === l.index) {
1334
- var i1 = void 0;
1335
- 2 === l.type ? i1 = new R(h, h.nextSibling, this, t) : 1 === l.type ? i1 = new l.ctor(h, l.name, l.strings, this, t) : 6 === l.type && (i1 = new z(h, this, t)), this._$AV.push(i1), l = s[++n];
1336
- }
1337
- o !== (l === null || l === void 0 ? void 0 : l.index) && (h = C.nextNode(), o++);
1338
- }
1339
- return C.currentNode = r$2, e;
1340
- }
1341
- },
1342
- {
1343
- key: "p",
1344
- value: function p(t) {
1345
- var i = 0;
1346
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
1347
- try {
1348
- for(var _iterator = this._$AV[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
1349
- var s = _step.value;
1350
- void 0 !== s && (void 0 !== s.strings ? (s._$AI(t, s, i), i += s.strings.length - 2) : s._$AI(t[i])), i++;
1351
- }
1352
- } catch (err) {
1353
- _didIteratorError = true;
1354
- _iteratorError = err;
1355
- } finally{
1356
- try {
1357
- if (!_iteratorNormalCompletion && _iterator.return != null) {
1358
- _iterator.return();
1359
- }
1360
- } finally{
1361
- if (_didIteratorError) {
1362
- throw _iteratorError;
1363
- }
1364
- }
1365
- }
1366
- }
1367
- }
1368
- ]);
1369
- return M;
1370
- }();
1371
- var R = /*#__PURE__*/ function() {
1372
- function R(t, i, s, e) {
1373
- _class_call_check$1(this, R);
1374
- var _e_isConnected;
1375
- this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this._$Cv = (_e_isConnected = e === null || e === void 0 ? void 0 : e.isConnected) !== null && _e_isConnected !== void 0 ? _e_isConnected : true;
1376
- }
1377
- _create_class$1(R, [
1378
- {
1379
- key: "_$AU",
1380
- get: function get() {
1381
- var _this__$AM;
1382
- var _this__$AM__$AU;
1383
- return (_this__$AM__$AU = (_this__$AM = this._$AM) === null || _this__$AM === void 0 ? void 0 : _this__$AM._$AU) !== null && _this__$AM__$AU !== void 0 ? _this__$AM__$AU : this._$Cv;
1384
- }
1385
- },
1386
- {
1387
- key: "parentNode",
1388
- get: function get() {
1389
- var t = this._$AA.parentNode;
1390
- var i = this._$AM;
1391
- return void 0 !== i && 11 === (t === null || t === void 0 ? void 0 : t.nodeType) && (t = i.parentNode), t;
1392
- }
1393
- },
1394
- {
1395
- key: "startNode",
1396
- get: function get() {
1397
- return this._$AA;
1398
- }
1399
- },
1400
- {
1401
- key: "endNode",
1402
- get: function get() {
1403
- return this._$AB;
1404
- }
1405
- },
1406
- {
1407
- key: "_$AI",
1408
- value: function _$AI(t) {
1409
- var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this;
1410
- t = S(this, t, i), c(t) ? t === E || null == t || "" === t ? (this._$AH !== E && this._$AR(), this._$AH = E) : t !== this._$AH && t !== T && this._(t) : void 0 !== t._$litType$ ? this.$(t) : void 0 !== t.nodeType ? this.T(t) : u(t) ? this.k(t) : this._(t);
1411
- }
1412
- },
1413
- {
1414
- key: "O",
1415
- value: function O(t) {
1416
- return this._$AA.parentNode.insertBefore(t, this._$AB);
1417
- }
1418
- },
1419
- {
1420
- key: "T",
1421
- value: function T(t) {
1422
- this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
1423
- }
1424
- },
1425
- {
1426
- key: "_",
1427
- value: function _(t) {
1428
- this._$AH !== E && c(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r$2.createTextNode(t)), this._$AH = t;
1429
- }
1430
- },
1431
- {
1432
- key: "$",
1433
- value: function $(t) {
1434
- var _this__$AH;
1435
- var i = t.values, s = t._$litType$, e = "number" == typeof s ? this._$AC(t) : (void 0 === s.el && (s.el = N.createElement(P(s.h, s.h[0]), this.options)), s);
1436
- if (((_this__$AH = this._$AH) === null || _this__$AH === void 0 ? void 0 : _this__$AH._$AD) === e) this._$AH.p(i);
1437
- else {
1438
- var _$t = new M(e, this), s1 = _$t.u(this.options);
1439
- _$t.p(i), this.T(s1), this._$AH = _$t;
1440
- }
1441
- }
1442
- },
1443
- {
1444
- key: "_$AC",
1445
- value: function _$AC(t) {
1446
- var i = A.get(t.strings);
1447
- return void 0 === i && A.set(t.strings, i = new N(t)), i;
1448
- }
1449
- },
1450
- {
1451
- key: "k",
1452
- value: function k(t) {
1453
- a(this._$AH) || (this._$AH = [], this._$AR());
1454
- var i = this._$AH;
1455
- var s, e = 0;
1456
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
1457
- try {
1458
- for(var _iterator = t[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
1459
- var h = _step.value;
1460
- e === i.length ? i.push(s = new R(this.O(l()), this.O(l()), this, this.options)) : s = i[e], s._$AI(h), e++;
1461
- }
1462
- } catch (err) {
1463
- _didIteratorError = true;
1464
- _iteratorError = err;
1465
- } finally{
1466
- try {
1467
- if (!_iteratorNormalCompletion && _iterator.return != null) {
1468
- _iterator.return();
1469
- }
1470
- } finally{
1471
- if (_didIteratorError) {
1472
- throw _iteratorError;
1473
- }
1474
- }
1475
- }
1476
- e < i.length && (this._$AR(s && s._$AB.nextSibling, e), i.length = e);
1477
- }
1478
- },
1479
- {
1480
- key: "_$AR",
1481
- value: function _$AR() {
1482
- var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this._$AA.nextSibling, i = arguments.length > 1 ? arguments[1] : void 0;
1483
- var _this__$AP, _this;
1484
- for((_this__$AP = (_this = this)._$AP) === null || _this__$AP === void 0 ? void 0 : _this__$AP.call(_this, false, true, i); t !== this._$AB;){
1485
- var i1 = t.nextSibling;
1486
- t.remove(), t = i1;
1487
- }
1488
- }
1489
- },
1490
- {
1491
- key: "setConnected",
1492
- value: function setConnected(t) {
1493
- var _this__$AP, _this;
1494
- void 0 === this._$AM && (this._$Cv = t, (_this__$AP = (_this = this)._$AP) === null || _this__$AP === void 0 ? void 0 : _this__$AP.call(_this, t));
1495
- }
1496
- }
1497
- ]);
1498
- return R;
1499
- }();
1500
- var k = /*#__PURE__*/ function() {
1501
- function k(t, i, s, e, h) {
1502
- _class_call_check$1(this, k);
1503
- this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t, this.name = i, this._$AM = e, this.options = h, s.length > 2 || "" !== s[0] || "" !== s[1] ? (this._$AH = Array(s.length - 1).fill(new String), this.strings = s) : this._$AH = E;
1504
- }
1505
- _create_class$1(k, [
1506
- {
1507
- key: "tagName",
1508
- get: function get() {
1509
- return this.element.tagName;
1510
- }
1511
- },
1512
- {
1513
- key: "_$AU",
1514
- get: function get() {
1515
- return this._$AM._$AU;
1516
- }
1517
- },
1518
- {
1519
- key: "_$AI",
1520
- value: function _$AI(t) {
1521
- var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this, s = arguments.length > 2 ? arguments[2] : void 0, e = arguments.length > 3 ? arguments[3] : void 0;
1522
- var h = this.strings;
1523
- var o = false;
1524
- if (void 0 === h) t = S(this, t, i, 0), o = !c(t) || t !== this._$AH && t !== T, o && (this._$AH = t);
1525
- else {
1526
- var e1 = t;
1527
- var n, r;
1528
- for(t = h[0], n = 0; n < h.length - 1; n++)r = S(this, e1[s + n], i, n), r === T && (r = this._$AH[n]), o || (o = !c(r) || r !== this._$AH[n]), r === E ? t = E : t !== E && (t += (r !== null && r !== void 0 ? r : "") + h[n + 1]), this._$AH[n] = r;
1529
- }
1530
- o && !e && this.j(t);
1531
- }
1532
- },
1533
- {
1534
- key: "j",
1535
- value: function j(t) {
1536
- t === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t !== null && t !== void 0 ? t : "");
1537
- }
1538
- }
1539
- ]);
1540
- return k;
1541
- }();
1542
- var H = /*#__PURE__*/ function(k) {
1543
- _inherits$1(H, k);
1544
- var _super = _create_super$1(H);
1545
- function H() {
1546
- _class_call_check$1(this, H);
1547
- var _this;
1548
- _this = _super.call.apply(_super, [
1549
- this
1550
- ].concat(Array.prototype.slice.call(arguments))), _this.type = 3;
1551
- return _possible_constructor_return$1(_this);
1552
- }
1553
- _create_class$1(H, [
1554
- {
1555
- key: "j",
1556
- value: function j(t) {
1557
- this.element[this.name] = t === E ? void 0 : t;
1558
- }
1559
- }
1560
- ]);
1561
- return H;
1562
- }(k);
1563
- var I = /*#__PURE__*/ function(k) {
1564
- _inherits$1(I, k);
1565
- var _super = _create_super$1(I);
1566
- function I() {
1567
- _class_call_check$1(this, I);
1568
- var _this;
1569
- _this = _super.call.apply(_super, [
1570
- this
1571
- ].concat(Array.prototype.slice.call(arguments))), _this.type = 4;
1572
- return _possible_constructor_return$1(_this);
1573
- }
1574
- _create_class$1(I, [
1575
- {
1576
- key: "j",
1577
- value: function j(t) {
1578
- this.element.toggleAttribute(this.name, !!t && t !== E);
1579
- }
1580
- }
1581
- ]);
1582
- return I;
1583
- }(k);
1584
- var L = /*#__PURE__*/ function(k) {
1585
- _inherits$1(L, k);
1586
- var _super = _create_super$1(L);
1587
- function L(t, i, s, e, h) {
1588
- _class_call_check$1(this, L);
1589
- var _this;
1590
- _this = _super.call(this, t, i, s, e, h), _this.type = 5;
1591
- return _possible_constructor_return$1(_this);
1592
- }
1593
- _create_class$1(L, [
1594
- {
1595
- key: "_$AI",
1596
- value: function _$AI(t) {
1597
- var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this;
1598
- var _S;
1599
- if ((t = (_S = S(this, t, i, 0)) !== null && _S !== void 0 ? _S : E) === T) return;
1600
- var s = this._$AH, e = t === E && s !== E || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, h = t !== E && (s === E || e);
1601
- e && this.element.removeEventListener(this.name, this, s), h && this.element.addEventListener(this.name, this, t), this._$AH = t;
1602
- }
1603
- },
1604
- {
1605
- key: "handleEvent",
1606
- value: function handleEvent(t) {
1607
- var _this_options;
1608
- var _this_options_host;
1609
- "function" == typeof this._$AH ? this._$AH.call((_this_options_host = (_this_options = this.options) === null || _this_options === void 0 ? void 0 : _this_options.host) !== null && _this_options_host !== void 0 ? _this_options_host : this.element, t) : this._$AH.handleEvent(t);
1610
- }
1611
- }
1612
- ]);
1613
- return L;
1614
- }(k);
1615
- var z = /*#__PURE__*/ function() {
1616
- function z(t, i, s) {
1617
- _class_call_check$1(this, z);
1618
- this.element = t, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = s;
1619
- }
1620
- _create_class$1(z, [
1621
- {
1622
- key: "_$AU",
1623
- get: function get() {
1624
- return this._$AM._$AU;
1625
- }
1626
- },
1627
- {
1628
- key: "_$AI",
1629
- value: function _$AI(t) {
1630
- S(this, t);
1631
- }
1632
- }
1633
- ]);
1634
- return z;
1635
- }();
1636
- var j = t$1.litHtmlPolyfillSupport;
1637
- var _litHtmlVersions;
1638
- j === null || j === void 0 ? void 0 : j(N, R), ((_litHtmlVersions = (_t = t$1).litHtmlVersions) !== null && _litHtmlVersions !== void 0 ? _litHtmlVersions : _t.litHtmlVersions = []).push("3.3.1");
1639
- var B = function(t, i, s) {
1640
- var _s_renderBefore;
1641
- var e = (_s_renderBefore = s === null || s === void 0 ? void 0 : s.renderBefore) !== null && _s_renderBefore !== void 0 ? _s_renderBefore : i;
1642
- var h = e._$litPart$;
1643
- if (void 0 === h) {
1644
- var _s_renderBefore1;
1645
- var _$t = (_s_renderBefore1 = s === null || s === void 0 ? void 0 : s.renderBefore) !== null && _s_renderBefore1 !== void 0 ? _s_renderBefore1 : null;
1646
- e._$litPart$ = h = new R(i.insertBefore(l(), _$t), _$t, void 0, s !== null && s !== void 0 ? s : {});
1647
- }
1648
- return h._$AI(t), h;
1649
- };
1650
-
1651
- function _assert_this_initialized(self) {
1652
- if (self === void 0) {
1653
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1654
- }
1655
- return self;
1656
- }
1657
- function _class_call_check(instance, Constructor) {
1658
- if (!(instance instanceof Constructor)) {
1659
- throw new TypeError("Cannot call a class as a function");
1660
- }
1661
- }
1662
- function _defineProperties(target, props) {
1663
- for(var i = 0; i < props.length; i++){
1664
- var descriptor = props[i];
1665
- descriptor.enumerable = descriptor.enumerable || false;
1666
- descriptor.configurable = true;
1667
- if ("value" in descriptor) descriptor.writable = true;
1668
- Object.defineProperty(target, descriptor.key, descriptor);
1669
- }
1670
- }
1671
- function _create_class(Constructor, protoProps, staticProps) {
1672
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
1673
- return Constructor;
1674
- }
1675
- function _get(target, property, receiver) {
1676
- if (typeof Reflect !== "undefined" && Reflect.get) {
1677
- _get = Reflect.get;
1678
- } else {
1679
- _get = function get(target, property, receiver) {
1680
- var base = _super_prop_base(target, property);
1681
- if (!base) return;
1682
- var desc = Object.getOwnPropertyDescriptor(base, property);
1683
- if (desc.get) {
1684
- return desc.get.call(receiver || target);
1685
- }
1686
- return desc.value;
1687
- };
1688
- }
1689
- return _get(target, property, receiver || target);
1690
- }
1691
- function _get_prototype_of(o) {
1692
- _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
1693
- return o.__proto__ || Object.getPrototypeOf(o);
1694
- };
1695
- return _get_prototype_of(o);
1696
- }
1697
- function _inherits(subClass, superClass) {
1698
- if (typeof superClass !== "function" && superClass !== null) {
1699
- throw new TypeError("Super expression must either be null or a function");
1700
- }
1701
- subClass.prototype = Object.create(superClass && superClass.prototype, {
1702
- constructor: {
1703
- value: subClass,
1704
- writable: true,
1705
- configurable: true
1706
- }
1707
- });
1708
- if (superClass) _set_prototype_of(subClass, superClass);
1709
- }
1710
- function _possible_constructor_return(self, call) {
1711
- if (call && (_type_of$1(call) === "object" || typeof call === "function")) {
1712
- return call;
1713
- }
1714
- return _assert_this_initialized(self);
1715
- }
1716
- function _set_prototype_of(o, p) {
1717
- _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
1718
- o.__proto__ = p;
1719
- return o;
1720
- };
1721
- return _set_prototype_of(o, p);
1722
- }
1723
- function _super_prop_base(object, property) {
1724
- while(!Object.prototype.hasOwnProperty.call(object, property)){
1725
- object = _get_prototype_of(object);
1726
- if (object === null) break;
1727
- }
1728
- return object;
1729
- }
1730
- function _type_of$1(obj) {
1731
- "@swc/helpers - typeof";
1732
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
1733
- }
1734
- function _is_native_reflect_construct() {
1735
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
1736
- if (Reflect.construct.sham) return false;
1737
- if (typeof Proxy === "function") return true;
1738
- try {
1739
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
1740
- return true;
1741
- } catch (e) {
1742
- return false;
1743
- }
1744
- }
1745
- function _create_super(Derived) {
1746
- var hasNativeReflectConstruct = _is_native_reflect_construct();
1747
- return function _createSuperInternal() {
1748
- var Super = _get_prototype_of(Derived), result;
1749
- if (hasNativeReflectConstruct) {
1750
- var NewTarget = _get_prototype_of(this).constructor;
1751
- result = Reflect.construct(Super, arguments, NewTarget);
1752
- } else {
1753
- result = Super.apply(this, arguments);
1754
- }
1755
- return _possible_constructor_return(this, result);
1756
- };
1757
- }
1758
- var _s_litElementHydrateSupport;
1759
- var _s;
1760
- /**
1761
- * @license
1762
- * Copyright 2017 Google LLC
1763
- * SPDX-License-Identifier: BSD-3-Clause
1764
- */ var s = globalThis;
1765
- var i = /*#__PURE__*/ function(t) {
1766
- _inherits(i, t);
1767
- var _super = _create_super(i);
1768
- function i() {
1769
- _class_call_check(this, i);
1770
- var _this;
1771
- _this = _super.call.apply(_super, [
1772
- this
1773
- ].concat(Array.prototype.slice.call(arguments))), _this.renderOptions = {
1774
- host: _assert_this_initialized(_this)
1775
- }, _this._$Do = void 0;
1776
- return _possible_constructor_return(_this);
1777
- }
1778
- _create_class(i, [
1779
- {
1780
- key: "createRenderRoot",
1781
- value: function createRenderRoot() {
1782
- var _this_renderOptions;
1783
- var _$t = _get(_get_prototype_of(i.prototype), "createRenderRoot", this).call(this);
1784
- var _renderBefore;
1785
- return (_renderBefore = (_this_renderOptions = this.renderOptions).renderBefore) !== null && _renderBefore !== void 0 ? _renderBefore : _this_renderOptions.renderBefore = _$t.firstChild, _$t;
1786
- }
1787
- },
1788
- {
1789
- key: "update",
1790
- value: function update(t) {
1791
- var r = this.render();
1792
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), _get(_get_prototype_of(i.prototype), "update", this).call(this, t), this._$Do = B(r, this.renderRoot, this.renderOptions);
1793
- }
1794
- },
1795
- {
1796
- key: "connectedCallback",
1797
- value: function connectedCallback() {
1798
- var _this__$Do;
1799
- _get(_get_prototype_of(i.prototype), "connectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(true);
1800
- }
1801
- },
1802
- {
1803
- key: "disconnectedCallback",
1804
- value: function disconnectedCallback() {
1805
- var _this__$Do;
1806
- _get(_get_prototype_of(i.prototype), "disconnectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(false);
1807
- }
1808
- },
1809
- {
1810
- key: "render",
1811
- value: function render() {
1812
- return T;
1813
- }
1814
- }
1815
- ]);
1816
- return i;
1817
- }(y$1);
1818
- i._$litElement$ = true, i["finalized"] = true, (_s_litElementHydrateSupport = s.litElementHydrateSupport) === null || _s_litElementHydrateSupport === void 0 ? void 0 : _s_litElementHydrateSupport.call(s, {
1819
- LitElement: i
1820
- });
1821
- var o$1 = s.litElementPolyfillSupport;
1822
- o$1 === null || o$1 === void 0 ? void 0 : o$1({
1823
- LitElement: i
1824
- });
1825
- var _litElementVersions;
1826
- ((_litElementVersions = (_s = s).litElementVersions) !== null && _litElementVersions !== void 0 ? _litElementVersions : _s.litElementVersions = []).push("4.2.1");
1827
-
1828
- /**
1829
- * @license
1830
- * Copyright 2017 Google LLC
1831
- * SPDX-License-Identifier: BSD-3-Clause
1832
- */ var t = function(t) {
1833
- return function(e, o) {
1834
- void 0 !== o ? o.addInitializer(function() {
1835
- customElements.define(t, e);
1836
- }) : customElements.define(t, e);
1837
- };
1838
- };
1839
-
1840
- function _type_of(obj) {
1841
- "@swc/helpers - typeof";
1842
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
1843
- }
1844
- /**
1845
- * @license
1846
- * Copyright 2017 Google LLC
1847
- * SPDX-License-Identifier: BSD-3-Clause
1848
- */ var o = {
1849
- attribute: true,
1850
- type: String,
1851
- converter: u$1,
1852
- reflect: false,
1853
- hasChanged: f$1
1854
- }, r$1 = function() {
1855
- var _$t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : o, _$e = arguments.length > 1 ? arguments[1] : void 0, r = arguments.length > 2 ? arguments[2] : void 0;
1856
- var n = r.kind, i = r.metadata;
1857
- var s = globalThis.litPropertyMetadata.get(i);
1858
- if (void 0 === s && globalThis.litPropertyMetadata.set(i, s = new Map), "setter" === n && ((_$t = Object.create(_$t)).wrapped = true), s.set(r.name, _$t), "accessor" === n) {
1859
- var o1 = r.name;
1860
- return {
1861
- set: function set(r) {
1862
- var n = _$e.get.call(this);
1863
- _$e.set.call(this, r), this.requestUpdate(o1, n, _$t);
1864
- },
1865
- init: function init(e) {
1866
- return void 0 !== e && this.C(o1, void 0, _$t, e), e;
1867
- }
1868
- };
1869
- }
1870
- if ("setter" === n) {
1871
- var o2 = r.name;
1872
- return function r(r) {
1873
- var n = this[o2];
1874
- _$e.call(this, r), this.requestUpdate(o2, n, _$t);
1875
- };
1876
- }
1877
- throw Error("Unsupported decorator location: " + n);
1878
- };
1879
- function n(t) {
1880
- return function(e, o) {
1881
- return "object" == (typeof o === "undefined" ? "undefined" : _type_of(o)) ? r$1(t, e, o) : function(t, e, o) {
1882
- var r = e.hasOwnProperty(o);
1883
- return e.constructor.createProperty(o, t), r ? Object.getOwnPropertyDescriptor(e, o) : void 0;
1884
- }(t, e, o);
1885
- };
1886
- }
1887
-
1888
- function _define_property(obj, key, value) {
1889
- if (key in obj) {
1890
- Object.defineProperty(obj, key, {
1891
- value: value,
1892
- enumerable: true,
1893
- configurable: true,
1894
- writable: true
1895
- });
1896
- } else {
1897
- obj[key] = value;
1898
- }
1899
- return obj;
1900
- }
1901
- function _object_spread(target) {
1902
- for(var i = 1; i < arguments.length; i++){
1903
- var source = arguments[i] != null ? arguments[i] : {};
1904
- var ownKeys = Object.keys(source);
1905
- if (typeof Object.getOwnPropertySymbols === "function") {
1906
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
1907
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
1908
- }));
1909
- }
1910
- ownKeys.forEach(function(key) {
1911
- _define_property(target, key, source[key]);
1912
- });
1913
- }
1914
- return target;
1915
- }
1916
- function ownKeys(object, enumerableOnly) {
1917
- var keys = Object.keys(object);
1918
- if (Object.getOwnPropertySymbols) {
1919
- var symbols = Object.getOwnPropertySymbols(object);
1920
- keys.push.apply(keys, symbols);
1921
- }
1922
- return keys;
1923
- }
1924
- function _object_spread_props(target, source) {
1925
- source = source != null ? source : {};
1926
- if (Object.getOwnPropertyDescriptors) {
1927
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
1928
- } else {
1929
- ownKeys(Object(source)).forEach(function(key) {
1930
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
1931
- });
1932
- }
1933
- return target;
1934
- }
1935
- /**
1936
- * @license
1937
- * Copyright 2017 Google LLC
1938
- * SPDX-License-Identifier: BSD-3-Clause
1939
- */ function r(r) {
1940
- return n(_object_spread_props(_object_spread({}, r), {
1941
- state: true,
1942
- attribute: false
1943
- }));
1944
- }
1945
-
1946
- class InputPdfElement extends i {
17
+ class InputPdfElement extends lit.LitElement {
1947
18
  get content() {
1948
19
  return this._content;
1949
20
  }
@@ -1951,7 +22,7 @@ class InputPdfElement extends i {
1951
22
  return 'NOEVAL:' + this._value;
1952
23
  }
1953
24
  static{
1954
- this.styles = i$3`
25
+ this.styles = lit.css`
1955
26
  .download {
1956
27
  padding: 10px 15px;
1957
28
  margin-bottom: 10px;
@@ -2029,7 +100,7 @@ class InputPdfElement extends i {
2029
100
  return text;
2030
101
  }
2031
102
  render() {
2032
- return x`
103
+ return lit.html`
2033
104
  <section
2034
105
  class="download ${this.state}"
2035
106
  @click=${()=>[
@@ -2037,8 +108,8 @@ class InputPdfElement extends i {
2037
108
  'loaded'
2038
109
  ].indexOf(this.state) >= 0 ? this.loadFile() : void 0}
2039
110
  >
2040
- ${this.state === 'loaded' ? x` <ui5-icon name="attachment"></ui5-icon>
2041
- <p>${this.label}<br />${this._content}</p>` : this.state === 'loading' ? x`<ui5-busy-indicator size="Small" active></ui5-busy-indicator>` : x` <ui5-icon name="add-document"></ui5-icon>
111
+ ${this.state === 'loaded' ? lit.html` <ui5-icon name="attachment"></ui5-icon>
112
+ <p>${this.label}<br />${this._content}</p>` : this.state === 'loading' ? lit.html`<ui5-busy-indicator size="Small" active></ui5-busy-indicator>` : lit.html` <ui5-icon name="add-document"></ui5-icon>
2042
113
  <p>${this.label}</p>`}
2043
114
  </section>
2044
115
  `;
@@ -2054,22 +125,22 @@ class InputPdfElement extends i {
2054
125
  }
2055
126
  }
2056
127
  __decorate([
2057
- n()
128
+ decorators_js.property()
2058
129
  ], InputPdfElement.prototype, "label", void 0);
2059
130
  __decorate([
2060
- n()
131
+ decorators_js.property()
2061
132
  ], InputPdfElement.prototype, "accept", void 0);
2062
133
  __decorate([
2063
- n()
134
+ decorators_js.property()
2064
135
  ], InputPdfElement.prototype, "required", void 0);
2065
136
  __decorate([
2066
- r()
137
+ decorators_js.state()
2067
138
  ], InputPdfElement.prototype, "state", void 0);
2068
139
  __decorate([
2069
- r()
140
+ decorators_js.state()
2070
141
  ], InputPdfElement.prototype, "_content", void 0);
2071
142
  InputPdfElement = __decorate([
2072
- t('digipair-input-pdf')
143
+ decorators_js.customElement('digipair-input-pdf')
2073
144
  ], InputPdfElement);
2074
145
 
2075
146
  exports.InputPdfElement = InputPdfElement;