PageSourceSearch

https://member.ufa356.guru/assets/amazon-ivs-wasmworker.min.js

js ufa356.guru collected 2026-10-06 13:18:28 UTC 163,475 bytes, 4,002 lines download raw bytes

1/*! For license information please see amazon-ivs-wasmworker.min.js.LICENSE.txt */
2!(function () {
3  var e = {
4      24: function (e, t, n) {
5        var r = n(735).default
6        function o() {
7          'use strict'
8          ;((e.exports = o =
9            function () {
10              return n
11            }),
12            (e.exports.__esModule = !0),
13            (e.exports.default = e.exports))
14          var t,
15            n = {},
16            i = Object.prototype,
17            a = i.hasOwnProperty,
18            s =
19              Object.defineProperty ||
20              function (e, t, n) {
21                e[t] = n.value
22              },
23            u = 'function' == typeof Symbol ? Symbol : {},
24            c = u.iterator || '@@iterator',
25            f = u.asyncIterator || '@@asyncIterator',
26            l = u.toStringTag || '@@toStringTag'
27          function d(e, t, n) {
28            return (Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }), e[t])
29          }
30          try {
31            d({}, '')
32          } catch (t) {
33            d = function (e, t, n) {
34              return (e[t] = n)
35            }
36          }
37          function h(e, t, n, r) {
38            var o = t && t.prototype instanceof E ? t : E,
39              i = Object.create(o.prototype),
40              a = new $(r || [])
41            return (s(i, '_invoke', { value: O(e, n, a) }), i)
42          }
43          function p(e, t, n) {
44            try {
45              return { type: 'normal', arg: e.call(t, n) }
46            } catch (e) {
47              return { type: 'throw', arg: e }
48            }
49          }
50          n.wrap = h
51          var v = 'suspendedStart',
52            y = 'suspendedYield',
53            g = 'executing',
54            m = 'completed',
55            b = {}
56          function E() {}
57          function w() {}
58          function _() {}
59          var C = {}
60          d(C, c, function () {
61            return this
62          })
63          var T = Object.getPrototypeOf,
64            S = T && T(T(I([])))
65          S && S !== i && a.call(S, c) && (C = S)
66          var k = (_.prototype = E.prototype = Object.create(C))
67          function A(e) {
68            ;['next', 'throw', 'return'].forEach(function (t) {
69              d(e, t, function (e) {
70                return this._invoke(t, e)
71              })
72            })
73          }
74          function P(e, t) {
75            function n(o, i, s, u) {
76              var c = p(e[o], e, i)
77              if ('throw' !== c.type) {
78                var f = c.arg,
79                  l = f.value
80                return l && 'object' == r(l) && a.call(l, '__await')
81                  ? t.resolve(l.__await).then(
82                      function (e) {
83                        n('next', e, s, u)
84                      },
85                      function (e) {
86                        n('throw', e, s, u)
87                      },
88                    )
89                  : t.resolve(l).then(
90                      function (e) {
91                        ;((f.value = e), s(f))
92                      },
93                      function (e) {
94                        return n('throw', e, s, u)
95                      },
96                    )
97              }
98              u(c.arg)
99            }
100            var o
101            s(this, '_invoke', {
102              value: function (e, r) {
103                function i() {
104                  return new t(function (t, o) {
105                    n(e, r, t, o)
106                  })
107                }
108                return (o = o ? o.then(i, i) : i())
109              },
110            })
111          }
112          function O(e, n, r) {
113            var o = v
114            return function (i, a) {
115              if (o === g) throw Error('Generator is already running')
116              if (o === m) {
117                if ('throw' === i) throw a
118                return { value: t, done: !0 }
119              }
120              for (r.method = i, r.arg = a; ; ) {
121                var s = r.delegate
122                if (s) {
123                  var u = R(s, r)
124                  if (u) {
125                    if (u === b) continue
126                    return u
127                  }
128                }
129                if ('next' === r.method) r.sent = r._sent = r.arg
130                else if ('throw' === r.method) {
131                  if (o === v) throw ((o = m), r.arg)
132                  r.dispatchException(r.arg)
133                } else 'return' === r.method && r.abrupt('return', r.arg)
134                o = g
135                var c = p(e, n, r)
136                if ('normal' === c.type) {
137                  if (((o = r.done ? m : y), c.arg === b)) continue
138                  return { value: c.arg, done: r.done }
139                }
140                'throw' === c.type && ((o = m), (r.method = 'throw'), (r.arg = c.arg))
141              }
142            }
143          }
144          function R(e, n) {
145            var r = n.method,
146              o = e.iterator[r]
147            if (o === t)
148              return (
149                (n.delegate = null),
150                ('throw' === r && e.iterator.return && ((n.method = 'return'), (n.arg = t), R(e, n), 'throw' === n.method)) ||
151                  ('return' !== r && ((n.method = 'throw'), (n.arg = new TypeError("The iterator does not provide a '" + r + "' method")))),
152                b
153              )
154            var i = p(o, e.iterator, n.arg)
155            if ('throw' === i.type) return ((n.method = 'throw'), (n.arg = i.arg), (n.delegate = null), b)
156            var a = i.arg
157            return a
158              ? a.done
159                ? ((n[e.resultName] = a.value), (n.next = e.nextLoc), 'return' !== n.method && ((n.method = 'next'), (n.arg = t)), (n.delegate = null), b)
160                : a
161              : ((n.method = 'throw'), (n.arg = new TypeError('iterator result is not an object')), (n.delegate = null), b)
162          }
163          function D(e) {
164            var t = { tryLoc: e[0] }
165            ;(1 in e && (t.catchLoc = e[1]), 2 in e && ((t.finallyLoc = e[2]), (t.afterLoc = e[3])), this.tryEntries.push(t))
166          }
167          function M(e) {
168            var t = e.completion || {}
169            ;((t.type = 'normal'), delete t.arg, (e.completion = t))
170          }
171          function $(e) {
172            ;((this.tryEntries = [{ tryLoc: 'root' }]), e.forEach(D, this), this.reset(!0))
173          }
174          function I(e) {
175            if (e || '' === e) {
176              var n = e[c]
177              if (n) return n.call(e)
178              if ('function' == typeof e.next) return e
179              if (!isNaN(e.length)) {
180                var o = -1,
181                  i = function n() {
182                    for (; ++o < e.length; ) if (a.call(e, o)) return ((n.value = e[o]), (n.done = !1), n)
183                    return ((n.value = t), (n.done = !0), n)
184                  }
185                return (i.next = i)
186              }
187            }
188            throw new TypeError(r(e) + ' is not iterable')
189          }
190          return (
191            (w.prototype = _),
192            s(k, 'constructor', { value: _, configurable: !0 }),
193            s(_, 'constructor', { value: w, configurable: !0 }),
194            (w.displayName = d(_, l, 'GeneratorFunction')),
195            (n.isGeneratorFunction = function (e) {
196              var t = 'function' == typeof e && e.constructor
197              return !!t && (t === w || 'GeneratorFunction' === (t.displayName || t.name))
198            }),
199            (n.mark = function (e) {
200              return (
201                Object.setPrototypeOf ? Object.setPrototypeOf(e, _) : ((e.__proto__ = _), d(e, l, 'GeneratorFunction')),
202                (e.prototype = Object.create(k)),
203                e
204              )
205            }),
206            (n.awrap = function (e) {
207              return { __await: e }
208            }),
209            A(P.prototype),
210            d(P.prototype, f, function () {
211              return this
212            }),
213            (n.AsyncIterator = P),
214            (n.async = function (e, t, r, o, i) {
215              void 0 === i && (i = Promise)
216              var a = new P(h(e, t, r, o), i)
217              return n.isGeneratorFunction(t)
218                ? a
219                : a.next().then(function (e) {
220                    return e.done ? e.value : a.next()
221                  })
222            }),
223            A(k),
224            d(k, l, 'Generator'),
225            d(k, c, function () {
226              return this
227            }),
228            d(k, 'toString', function () {
229              return '[object Generator]'
230            }),
231            (n.keys = function (e) {
232              var t = Object(e),
233                n = []
234              for (var r in t) n.push(r)
235              return (
236                n.reverse(),
237                function e() {
238                  for (; n.length; ) {
239                    var r = n.pop()
240                    if (r in t) return ((e.value = r), (e.done = !1), e)
241                  }
242                  return ((e.done = !0), e)
243                }
244              )
245            }),
246            (n.values = I),
247            ($.prototype = {
248              constructor: $,
249              reset: function (e) {
250                if (
251                  ((this.prev = 0),
252                  (this.next = 0),
253                  (this.sent = this._sent = t),
254                  (this.done = !1),
255                  (this.delegate = null),
256                  (this.method = 'next'),
257                  (this.arg = t),
258                  this.tryEntries.forEach(M),
259                  !e)
260                )
261                  for (var n in this) 't' === n.charAt(0) && a.call(this, n) && !isNaN(+n.slice(1)) && (this[n] = t)
262              },
263              stop: function () {
264                this.done = !0
265                var e = this.tryEntries[0].completion
266                if ('throw' === e.type) throw e.arg
267                return this.rval
268              },
269              dispatchException: function (e) {
270                if (this.done) throw e
271                var n = this
272                function r(r, o) {
273                  return ((s.type = 'throw'), (s.arg = e), (n.next = r), o && ((n.method = 'next'), (n.arg = t)), !!o)
274                }
275                for (var o = this.tryEntries.length - 1; o >= 0; --o) {
276                  var i = this.tryEntries[o],
277                    s = i.completion
278                  if ('root' === i.tryLoc) return r('end')
279                  if (i.tryLoc <= this.prev) {
280                    var u = a.call(i, 'catchLoc'),
281                      c = a.call(i, 'finallyLoc')
282                    if (u && c) {
283                      if (this.prev < i.catchLoc) return r(i.catchLoc, !0)
284                      if (this.prev < i.finallyLoc) return r(i.finallyLoc)
285                    } else if (u) {
286                      if (this.prev < i.catchLoc) return r(i.catchLoc, !0)
287                    } else {
288                      if (!c) throw Error('try statement without catch or finally')
289                      if (this.prev < i.finallyLoc) return r(i.finallyLoc)
290                    }
291                  }
292                }
293              },
294              abrupt: function (e, t) {
295                for (var n = this.tryEntries.length - 1; n >= 0; --n) {
296                  var r = this.tryEntries[n]
297                  if (r.tryLoc <= this.prev && a.call(r, 'finallyLoc') && this.prev < r.finallyLoc) {
298                    var o = r
299                    break
300                  }
301                }
302                o && ('break' === e || 'continue' === e) && o.tryLoc <= t && t <= o.finallyLoc && (o = null)
303                var i = o ? o.completion : {}
304                return ((i.type = e), (i.arg = t), o ? ((this.method = 'next'), (this.next = o.finallyLoc), b) : this.complete(i))
305              },
306              complete: function (e, t) {
307                if ('throw' === e.type) throw e.arg
308                return (
309                  'break' === e.type || 'continue' === e.type
310                    ? (this.next = e.arg)
311                    : 'return' === e.type
312                      ? ((this.rval = this.arg = e.arg), (this.method = 'return'), (this.next = 'end'))
313                      : 'normal' === e.type && t && (this.next = t),
314                  b
315                )
316              },
317              finish: function (e) {
318                for (var t = this.tryEntries.length - 1; t >= 0; --t) {
319                  var n = this.tryEntries[t]
320                  if (n.finallyLoc === e) return (this.complete(n.completion, n.afterLoc), M(n), b)
321                }
322              },
323              catch: function (e) {
324                for (var t = this.tryEntries.length - 1; t >= 0; --t) {
325                  var n = this.tryEntries[t]
326                  if (n.tryLoc === e) {
327                    var r = n.completion
328                    if ('throw' === r.type) {
329                      var o = r.arg
330                      M(n)
331                    }
332                    return o
333                  }
334                }
335                throw Error('illegal catch attempt')
336              },
337              delegateYield: function (e, n, r) {
338                return ((this.delegate = { iterator: I(e), resultName: n, nextLoc: r }), 'next' === this.method && (this.arg = t), b)
339              },
340            }),
341            n
342          )
343        }
344        ;((e.exports = o), (e.exports.__esModule = !0), (e.exports.default = e.exports))
345      },
346      735: function (e) {
347        function t(n) {
348          return (
349            (e.exports = t =
350              'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
351                ? function (e) {
352                    return typeof e
353                  }
354                : function (e) {
355                    return e && 'function' == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? 'symbol' : typeof e
356                  }),
357            (e.exports.__esModule = !0),
358            (e.exports.default = e.exports),
359            t(n)
360          )
361        }
362        ;((e.exports = t), (e.exports.__esModule = !0), (e.exports.default = e.exports))
363      },
364      183: function (e, t, n) {
365        var r = n(24)()
366        e.exports = r
367        try {
368          regeneratorRuntime = r
369        } catch (e) {
370          'object' == typeof globalThis ? (globalThis.regeneratorRuntime = r) : Function('r', 'regeneratorRuntime = r')(r)
371        }
372      },
373    },
374    t = {}
375  function n(r) {
376    var o = t[r]
377    if (void 0 !== o) return o.exports
378    var i = (t[r] = { exports: {} })
379    return (e[r](i, i.exports, n), i.exports)
380  }
381  ;((n.n = function (e) {
382    var t =
383      e && e.__esModule
384        ? function () {
385            return e.default
386          }
387        : function () {
388            return e
389          }
390    return (n.d(t, { a: t }), t)
391  }),
392    (n.d = function (e, t) {
393      for (var r in t) n.o(t, r) && !n.o(e, r) && Object.defineProperty(e, r, { enumerable: !0, get: t[r] })
394    }),
395    (n.g = (function () {
396      if ('object' == typeof globalThis) return globalThis
397      try {
398        return this || new Function('return this')()
399      } catch (e) {
400        if ('object' == typeof window) return window
401      }
402    })()),
403    (n.o = function (e, t) {
404      return Object.prototype.hasOwnProperty.call(e, t)
405    }),
406    (function () {
407      'use strict'
408      !(function (e) {
409        if (('performance' in e || (e.performance = {}), !('now' in e.performance))) {
410          var t = Date.now()
411          e.performance = {
412            now: function () {
413              return Date.now() - t
414            },
415          }
416        }
417      })(self)
418    })(),
419    (function () {
420      'use strict'
421      var e,
422        t =
423          ((e = 'undefined' != typeof document && document.currentScript ? document.currentScript.src : void 0),
424          function (t) {
425            var r, o
426            ;(t = void 0 !== (t = t || {}) ? t : {}).ready = new Promise(function (e, t) {
427              ;((r = e), (o = t))
428            })
429            var i,
430              a = {}
431            for (i in t) t.hasOwnProperty(i) && (a[i] = t[i])
432            var s,
433              u = [],
434              c = './this.program',
435              f = ''
436            ;((f = self.location.href),
437              e && (f = e),
438              (f = 0 !== f.indexOf('blob:') ? f.substr(0, f.lastIndexOf('/') + 1) : ''),
439              (s = function (e) {
440                var t = new XMLHttpRequest()
441                return (t.open('GET', e, !1), (t.responseType = 'arraybuffer'), t.send(null), new Uint8Array(t.response))
442              }))
443            var l,
444              d,
445              h = t.print || console.log.bind(console),
446              p = t.printErr || console.warn.bind(console)
447            for (i in a) a.hasOwnProperty(i) && (t[i] = a[i])
448            function v(e) {
449              ;(v.shown || (v.shown = {}), v.shown[e] || ((v.shown[e] = 1), p(e)))
450            }
451            ;((a = null),
452              t.arguments && (u = t.arguments),
453              t.thisProgram && (c = t.thisProgram),
454              t.quit && t.quit,
455              t.wasmBinary && (l = t.wasmBinary),
456              t.noExitRuntime && t.noExitRuntime,
457              'object' != typeof WebAssembly && z('no native wasm support detected'))
458            var y = !1,
459              g = 'undefined' != typeof TextDecoder ? new TextDecoder('utf8') : void 0
460            function m(e, t, n) {
461              for (var r = t + n, o = t; e[o] && !(o >= r); ) ++o
462              if (o - t > 16 && e.subarray && g) return g.decode(e.subarray(t, o))
463              for (var i = ''; t < o; ) {
464                var a = e[t++]
465                if (128 & a) {
466                  var s = 63 & e[t++]
467                  if (192 != (224 & a)) {
468                    var u = 63 & e[t++]
469                    if ((a = 224 == (240 & a) ? ((15 & a) << 12) | (s << 6) | u : ((7 & a) << 18) | (s << 12) | (u << 6) | (63 & e[t++])) < 65536)
470                      i += String.fromCharCode(a)
471                    else {
472                      var c = a - 65536
473                      i += String.fromCharCode(55296 | (c >> 10), 56320 | (1023 & c))
474                    }
475                  } else i += String.fromCharCode(((31 & a) << 6) | s)
476                } else i += String.fromCharCode(a)
477              }
478              return i
479            }
480            function b(e, t) {
481              return e ? m(T, e, t) : ''
482            }
483            function E(e, t, n, r) {
484              if (!(r > 0)) return 0
485              for (var o = n, i = n + r - 1, a = 0; a < e.length; ++a) {
486                var s = e.charCodeAt(a)
487                if ((s >= 55296 && s <= 57343 && (s = (65536 + ((1023 & s) << 10)) | (1023 & e.charCodeAt(++a))), s <= 127)) {
488                  if (n >= i) break
489                  t[n++] = s
490                } else if (s <= 2047) {
491                  if (n + 1 >= i) break
492                  ;((t[n++] = 192 | (s >> 6)), (t[n++] = 128 | (63 & s)))
493                } else if (s <= 65535) {
494                  if (n + 2 >= i) break
495                  ;((t[n++] = 224 | (s >> 12)), (t[n++] = 128 | ((s >> 6) & 63)), (t[n++] = 128 | (63 & s)))
496                } else {
497                  if (n + 3 >= i) break
498                  ;((t[n++] = 240 | (s >> 18)), (t[n++] = 128 | ((s >> 12) & 63)), (t[n++] = 128 | ((s >> 6) & 63)), (t[n++] = 128 | (63 & s)))
499                }
500              }
501              return ((t[n] = 0), n - o)
502            }
503            function w(e) {
504              for (var t = 0, n = 0; n < e.length; ++n) {
505                var r = e.charCodeAt(n)
506                ;(r >= 55296 && r <= 57343 && (r = (65536 + ((1023 & r) << 10)) | (1023 & e.charCodeAt(++n))),
507                  r <= 127 ? ++t : (t += r <= 2047 ? 2 : r <= 65535 ? 3 : 4))
508              }
509              return t
510            }
511            var _,
512              C,
513              T,
514              S,
515              k,
516              A,
517              P,
518              O,
519              R,
520              D = 'undefined' != typeof TextDecoder ? new TextDecoder('utf-16le') : void 0
521            function M(e, t) {
522              for (var n = e, r = n >> 1, o = r + t / 2; !(r >= o) && k[r]; ) ++r
523              if ((n = r << 1) - e > 32 && D) return D.decode(T.subarray(e, n))
524              for (var i = '', a = 0; !(a >= t / 2); ++a) {
525                var s = S[(e + 2 * a) >> 1]
526                if (0 == s) break
527                i += String.fromCharCode(s)
528              }
529              return i
530            }
531            function $(e, t, n) {
532              if ((void 0 === n && (n = 2147483647), n < 2)) return 0
533              for (var r = t, o = (n -= 2) < 2 * e.length ? n / 2 : e.length, i = 0; i < o; ++i) {
534                var a = e.charCodeAt(i)
535                ;((S[t >> 1] = a), (t += 2))
536              }
537              return ((S[t >> 1] = 0), t - r)
538            }
539            function I(e) {
540              return 2 * e.length
541            }
542            function N(e, t) {
543              for (var n = 0, r = ''; !(n >= t / 4); ) {
544                var o = A[(e + 4 * n) >> 2]
545                if (0 == o) break
546                if ((++n, o >= 65536)) {
547                  var i = o - 65536
548                  r += String.fromCharCode(55296 | (i >> 10), 56320 | (1023 & i))
549                } else r += String.fromCharCode(o)
550              }
551              return r
552            }
553            function j(e, t, n) {
554              if ((void 0 === n && (n = 2147483647), n < 4)) return 0
555              for (var r = t, o = r + n - 4, i = 0; i < e.length; ++i) {
556                var a = e.charCodeAt(i)
557                if ((a >= 55296 && a <= 57343 && (a = (65536 + ((1023 & a) << 10)) | (1023 & e.charCodeAt(++i))
557), (A[t >> 2] = a), (t += 4) + 4 > o)) break
558              }
559              return ((A[t >> 2] = 0), t - r)
560            }
561            function x(e) {
562              for (var t = 0, n = 0; n < e.length; ++n) {
563                var r = e.charCodeAt(n)
564                ;(r >= 55296 && r <= 57343 && ++n, (t += 4))
565              }
566              return t
567            }
568            function F(e) {
569              var t = w(e) + 1,
570                n = wt(t)
571              return (n && E(e, C, n, t), n)
572            }
573            function L(e) {
574              ;((_ = e),
575                (t.HEAP8 = C = new Int8Array(e)),
576                (t.HEAP16 = S = new Int16Array(e)),
577                (t.HEAP32 = A = new Int32Array(e)),
578                (t.HEAPU8 = T = new Uint8Array(e)),
579                (t.HEAPU16 = k = new Uint16Array(e)),
580                (t.HEAPU32 = P = new Uint32Array(e)),
581                (t.HEAPF32 = O = new Float32Array(e)),
582                (t.HEAPF64 = R = new Float64Array(e)))
583            }
584            t.INITIAL_MEMORY
585            var U,
586              G = [],
587              B = [],
588              W = [],
589              H = []
590            B.push({
591              func: function () {
592                Et()
593              },
594            })
595            var Y = 0,
596              q = null,
597              V = null
598            function z(e) {
599              ;(t.onAbort && t.onAbort(e), p((e += '')), (y = !0), (e = 'abort(' + e + '). Build with -s ASSERTIONS=1 for more info.'))
600              var n = new WebAssembly.RuntimeError(e)
601              throw (o(n), n)
602            }
603            ;((t.preloadedImages = {}), (t.preloadedAudios = {}))
604            function K(e) {
605              return ((t = e), (n = 'data:application/octet-stream;base64,'), String.prototype.startsWith ? t.startsWith(n) : 0 === t.indexOf(n))
606              var t, n
607            }
608            var X,
609              J = 'amazon-ivs-wasmworker.min.wasm'
610            function Q(e) {
611              try {
612                if (e == J && l) return new Uint8Array(l)
613                if (s) return s(e)
614                throw 'both async and sync fetching of the wasm failed'
615              } catch (e) {
616                z(e)
617              }
618            }
619            function Z(e) {
620              for (; e.length > 0; ) {
621                var n = e.shift()
622                if ('function' != typeof n) {
623                  var r = n.func
624                  'number' == typeof r ? (void 0 === n.arg ? U.get(r)() : U.get(r)(n.arg)) : r(void 0 === n.arg ? null : n.arg)
625                } else n(t)
626              }
627            }
628            K(J) || ((X = J), (J = t.locateFile ? t.locateFile(X, f) : f + X))
629            var ee = {}
630            function te(e) {
631              for (; e.length; ) {
632                var t = e.pop()
633                e.pop()(t)
634              }
635            }
636            function ne(e) {
637              return this.fromWireType(P[e >> 2])
638            }
639            var re = {},
640              oe = {},
641              ie = {},
642              ae = 48,
643              se = 57
644            function ue(e) {
645              if (void 0 === e) return '_unknown'
646              var t = (e = e.replace(/[^a-zA-Z0-9_]/g, '$')).charCodeAt(0)
647              return t >= ae && t <= se ? '_' + e : e
648            }
649            function ce(e, t) {
650              return (
651                (e = ue(e)),
652                function () {
653                  return t.apply(this, arguments)
654                }
655              )
656            }
657            function fe(e, t) {
658              var n = ce(t, function (e) {
659                ;((this.name = t), (this.message = e))
660                var n = new Error(e).stack
661                void 0 !== n && (this.stack = this.toString() + '\n' + n.replace(/^Error(:[^\n]*)?\n/, ''))
662              })
663              return (
664                (n.prototype = Object.create(e.prototype)),
665                (n.prototype.constructor = n),
666                (n.prototype.toString = function () {
667                  return void 0 === this.message ? this.name : this.name + ': ' + this.message
668                }),
669                n
670              )
671            }
672            var le = void 0
673            function de(e) {
674              throw new le(e)
675            }
676            function he(e, t, n) {
677              function r(t) {
678                var r = n(t)
679                r.length !== e.length && de('Mismatched type converter count')
680                for (var o = 0; o < e.length; ++o) be(e[o], r[o])
681              }
682              e.forEach(function (e) {
683                ie[e] = t
684              })
685              var o = new Array(t.length),
686                i = [],
687                a = 0
688              ;(t.forEach(function (e, t) {
689                oe.hasOwnProperty(e)
690                  ? (o[t] = oe[e])
691                  : (i.push(e),
692                    re.hasOwnProperty(e) || (re[e] = []),
693                    re[e].push(function () {
694                      ;((o[t] = oe[e]), ++a === i.length && r(o))
695                    }))
696              }),
697                0 === i.length && r(o))
698            }
699            function pe(e) {
700              switch (e) {
701                case 1:
702                  return 0
703                case 2:
704                  return 1
705                case 4:
706                  return 2
707                case 8:
708                  return 3
709                default:
710                  throw new TypeError('Unknown type size: ' + e)
711              }
712            }
713            var ve = void 0
714            function ye(e) {
715              for (var t = '', n = e; T[n]; ) t += ve[T[n++]]
716              return t
717            }
718            var ge = void 0
719            function me(e) {
720              throw new ge(e)
721            }
722            function be(e, t, n) {
723              if (((n = n || {}), !('argPackAdvance' in t))) throw new TypeError('registerType registeredInstance requires argPackAdvance')
724              var r = t.name
725              if ((e || me('type "' + r + '" must have a positive integer typeid pointer'), oe.hasOwnProperty(e))) {
726                if (n.ignoreDuplicateRegistrations) return
727                me("Cannot register type '" + r + "' twice")
728              }
729              if (((oe[e] = t), delete ie[e], re.hasOwnProperty(e))) {
730                var o = re[e]
731                ;(delete re[e],
732                  o.forEach(function (e) {
733                    e()
734                  }))
735              }
736            }
737            function Ee(e) {
738              me(
739                (function (e) {
740                  return e.$$.ptrType.registeredClass.name
741                })(e) + ' instance already deleted',
742              )
743            }
744            var we = !1
745            function _e(e) {}
746            function Ce(e) {
747              ;((e.count.value -= 1),
748                0 === e.count.value &&
749                  (function (e) {
750                    e.smartPtr ? e.smartPtrType.rawDestructor(e.smartPtr) : e.ptrType.registeredClass.rawDestructor(e.ptr)
751                  })(e))
752            }
753            function Te(e) {
754              return 'undefined' == typeof FinalizationGroup
755                ? ((Te = function (e) {
756                    return e
757                  }),
758                  e)
759                : ((we = new FinalizationGroup(function (e) {
760                    for (var t = e.next(); !t.done; t = e.next()) {
761                      var n = t.value
762                      n.ptr ? Ce(n) : console.warn('object already deleted: ' + n.ptr)
763                    }
764                  })),
765                  (Te = function (e) {
766                    return (we.register(e, e.$$, e.$$), e)
767                  }),
768                  (_e = function (e) {
769                    we.unregister(e.$$)
770                  }),
771                  Te(e))
772            }
773            var Se = void 0,
774              ke = []
775            function Ae() {
776              for (; ke.length; ) {
777                var e = ke.pop()
778                ;((e.$$.deleteScheduled = !1), e.delete())
779              }
780            }
781            function Pe() {}
782            var Oe = {}
783            function Re(e, t, n) {
784              if (void 0 === e[t].overloadTable) {
785                var r = e[t]
786                ;((e[t] = function () {
787                  return (
788                    e[t].overloadTable.hasOwnProperty(arguments.length) ||
789                      me(
790                        "Function '" +
791                          n +
792                          "' called with an invalid number of arguments (" +
793                          arguments.length +
794                          ') - expects one of (' +
795                          e[t].overloadTable +
796                          ')!',
797                      ),
798                    e[t].overloadTable[arguments.length].apply(this, arguments)
799                  )
800                }),
801                  (e[t].overloadTable = []),
802                  (e[t].overloadTable[r.argCount] = r))
803              }
804            }
805            function De(e, t, n, r, o, i, a, s) {
806              ;((this.name = e),
807                (this.constructor = t),
808                (this.instancePrototype = n),
809                (this.rawDestructor = r),
810                (this.baseClass = o),
811                (this.getActualType = i),
812                (this.upcast = a),
813                (this.downcast = s),
814                (this.pureVirtualFunctions = []))
815            }
816            function Me(e, t, n) {
817              for (; t !== n; )
818                (t.upcast || me('Expected null or instance of ' + n.name + ', got an instance of ' + t.name), (e = t.upcast(e)), (t = t.baseClass))
819              return e
820            }
821            function $e(e, t) {
822              if (null === t) return (this.isReference && me('null is not a valid ' + this.name), 0)
823              ;(t.$$ || me('Cannot pass "' + Ke(t) + '" as a ' + this.name), t.$$.ptr || me('Cannot pass deleted object as a pointer of type ' + this.name))
824              var n = t.$$.ptrType.registeredClass
825              return Me(t.$$.ptr, n, this.registeredClass)
826            }
827            function Ie(e, t) {
828              var n
829              if (null === t)
830                return (
831                  this.isReference && me('null is not a valid ' + this.name),
832                  this.isSmartPointer ? ((n = this.rawConstructor()), null !== e && e.push(this.rawDestructor, n), n) : 0
833                )
834              ;(t.$$ || me('Cannot pass "' + Ke(t) + '" as a ' + this.name),
835                t.$$.ptr || me('Cannot pass deleted object as a pointer of type ' + this.name),
836                !this.isConst &&
837                  t.$$.ptrType.isConst &&
838                  me('Cannot convert argument of type ' + (t.$$.smartPtrType ? t.$$.smartPtrType.name : t.$$.ptrType.name) + ' to parameter type ' + this.name))
839              var r = t.$$.ptrType.registeredClass
840              if (((n = Me(t.$$.ptr, r, this.registeredClass)), this.isSmartPointer))
841                switch ((void 0 === t.$$.smartPtr && me('Passing raw pointer to smart pointer is illegal'), this.sharingPolicy)) {
842                  case 0:
843                    t.$$.smartPtrType === this
844                      ? (n = t.$$.smartPtr)
845                      : me(
846                          'Cannot convert argument of type ' +
847                            (t.$$.smartPtrType ? t.$$.smartPtrType.name : t.$$.ptrType.name) +
848                            ' to parameter type ' +
849                            this.name,
850                        )
851                    break
852                  case 1:
853                    n = t.$$.smartPtr
854                    break
855                  case 2:
856                    if (t.$$.smartPtrType === this) n = t.$$.smartPtr
857                    else {
858                      var o = t.clone()
859                      ;((n = this.rawShare(
860                        n,
861                        ze(function () {
862                          o.delete()
863                        }),
864                      )),
865                        null !== e && e.push(this.rawDestructor, n))
866                    }
867                    break
868                  default:
869                    me('Unsupporting sharing policy')
870                }
871              return n
872            }
873            function Ne(e, t) {
874              if (null === t) return (this.isReference && me('null is not a valid ' + this.name), 0)
875              ;(t.$$ || me('Cannot pass "' + Ke(t) + '" as a ' + this.name),
876                t.$$.ptr || me('Cannot pass deleted object as a pointer of type ' + this.name),
877                t.$$.ptrType.isConst && me('Cannot convert argument of type ' + t.$$.ptrType.name + ' to parameter type ' + this.name))
878              var n = t.$$.ptrType.registeredClass
879              return Me(t.$$.ptr, n, this.registeredClass)
880            }
881            function je(e, t, n) {
882              if (t === n) return e
883              if (void 0 === n.baseClass) return null
884              var r = je(e, t, n.baseClass)
885              return null === r ? null : n.downcast(r)
886            }
887            var xe = {}
888            function Fe(e, t) {
889              return (
890                (t.ptrType && t.ptr) || de('makeClassHandle requires ptr and ptrType'),
891                !!t.smartPtrType != !!t.smartPtr && de('Both smartPtrType and smartPtr must be specified'),
892                (t.count = { value: 1 }),
893                Te(Object.create(e, { $$: { value: t } }))
894              )
895            }
896            function Le(e, t, n, r, o, i, a, s, u, c, f) {
897              ;((this.name = e),
898                (this.registeredClass = t),
899                (this.isReference = n),
900                (this.isConst = r),
901                (this.isSmartPointer = o),
902                (this.pointeeType = i),
903                (this.sharingPolicy = a),
904                (this.rawGetPointee = s),
905                (this.rawConstructor = u),
906                (this.rawShare = c),
907                (this.rawDestructor = f),
908                o || void 0 !== t.baseClass
909                  ? (this.toWireType = Ie)
910                  : r
911                    ? ((this.toWireType = $e), (this.destructorFunction = null))
912                    : ((this.toWireType = Ne), (this.destructorFunction = null)))
913            }
914            function Ue(e, n) {
915              var r,
916                o,
917                i,
918                a =
919                  -1 != (e = ye(e)).indexOf('j')
920                    ? ((r = e),
921                      (o = n),
922                      (i = []),
923                      function () {
924                        i.length = arguments.length
925                        for (var e = 0; e < arguments.length; e++) i[e] = arguments[e]
926                        return (function (e, n, r) {
927                          return -1 != e.indexOf('j')
928                            ? (function (e, n, r) {
929                                var o = t['dynCall_' + e]
930                                return r && r.length ? o.apply(null, [n].concat(r)) : o.call(null, n)
931                              })(e, n, r)
932                            : U.get(n).apply(null, r)
933                        })(r, o, i)
934                      })
935                    : U.get(n)
936              return ('function' != typeof a && me('unknown function pointer with signature ' + e + ': ' + n), a)
937            }
938            var Ge = void 0
939            function Be(e) {
940              var t = _t(e),
941                n = ye(t)
942              return (Tt(t), n)
943            }
944            function We(e, t) {
945              var n = [],
946                r = {}
947              throw (
948                t.forEach(function e(t) {
949                  r[t] || oe[t] || (ie[t] ? ie[t].forEach(e) : (n.push(t), (r[t] = !0)))
950                }),
951                new Ge(e + ': ' + n.map(Be).join([', ']))
952              )
953            }
954            function He(e, t) {
955              for (var n = [], r = 0; r < e; r++) n.push(A[(t >> 2) + r])
956              return n
957            }
958            var Ye = [],
959              qe = [{}, { value: void 0 }, { value: null }, { value: !0 }, { value: !1 }]
960            function Ve(e) {
961              e > 4 && 0 == --qe[e].refcount && ((qe[e] = void 0), Ye.push(e))
962            }
963            function ze(e) {
964              switch (e) {
965                case void 0:
966                  return 1
967                case null:
968                  return 2
969                case !0:
970                  return 3
971                case !1:
972                  return 4
973                default:
974                  var t = Ye.length ? Ye.pop() : qe.length
975                  return ((qe[t] = { refcount: 1, value: e }), t)
976              }
977            }
978            function Ke(e) {
979              if (null === e) return 'null'
980              var t = typeof e
981              return 'object' === t || 'array' === t || 'function' === t ? e.toString() : '' + e
982            }
983            function Xe(e, t) {
984              switch (t) {
985                case 2:
986                  return function (e) {
987                    return this.fromWireType(O[e >> 2])
988                  }
989                case 3:
990                  return function (e) {
991                    return this.fromWireType(R[e >> 3])
992                  }
993                default:
994                  throw new TypeError('Unknown float type: ' + e)
995              }
996            }
997            function Je(e, t, n) {
998              switch (t) {
999                case 0:
1000                  return n
1001                    ? function (e) {
1002                        return C[e]
1003                      }
1004                    : function (e) {
1005                        return T[e]
1006                      }
1007                case 1:
1008                  return n
1009                    ? function (e) {
1010                        return S[e >> 1]
1011                      }
1012                    : function (e) {
1013                        return k[e >> 1]
1014                      }
1015                case 2:
1016                  return n
1017                    ? function (e) {
1018                        return A[e >> 2]
1019                      }
1020                    : function (e) {
1021                        return P[e >> 2]
1022                      }
1023                default:
1024                  throw new TypeError('Unknown integer type: ' + e)
1025              }
1026            }
1027            function Qe(e) {
1028              return (e || me('Cannot use deleted val. handle = ' + e), qe[e].value)
1029            }
1030            function Ze(e, t) {
1031              var n = oe[e]
1032              return (void 0 === n && me(t + ' has unknown type ' + Be(e)), n)
1033            }
1034            function et(e, t) {
1035              for (var n = new Array(e), r = 0; r < e; ++r) n[r] = Ze(A[(t >> 2) + r], 'parameter ' + r)
1036              return n
1037            }
1038            var tt = {}
1039            function nt(e) {
1040              var t = tt[e]
1041              return void 0 === t ? ye(e) : t
1042            }
1043            var rt,
1044              ot = []
1045            function it() {
1046              if ('object' == typeof globalThis) return globalThis
1047              function e(e) {
1048                e.$$$embind_global$$$ = e
1049                var t = 'object' == typeof $$$embind_global$$$ && e.$$$embind_global$$$ === e
1050                return (t || delete e.$$$embind_global$$$, t)
1051              }
1052              if ('object' == typeof $$$embind_global$$$) return $$$embind_global$$$
1053              if (
1054                ('object' == typeof n.g && e(n.g) ? ($$$embind_global$$$ = n.g) : 'object' == typeof self && e(self) && ($$$embind_global$$$ = self),
1055                'object' == typeof $$$embind_global$$$)
1056              )
1057                return $$$embind_global$$$
1058              throw Error('unable to get global object.')
1059            }
1060            function at(e) {
1061              if (!e || !e.callee || !e.callee.name) return [null, '', '']
1062              e.callee.toString()
1063              var t = e.callee.name,
1064                n = '(',
1065                r = !0
1066              for (var o in e) {
1067                var i = e[o]
1068                ;(r || (n += ', '), (r = !1), (n += 'number' == typeof i || 'string' == typeof i ? i : '(' + typeof i + ')'))
1069              }
1070              n += ')'
1071              var a = e.callee.caller
1072              return (r && (n = ''), [(e = a ? a.arguments : []), t, n])
1073            }
1074            function st(e) {
1075              try {
1076                return (d.grow((e - _.byteLength + 65535) >>> 16), L(d.buffer), 1)
1077              } catch (e) {}
1078            }
1079            ;((rt = function () {
1080              return performance.now()
1081            }),
1082              (t._emscripten_log_js = function (e, t) {
1083                ;(24 & e &&
1084                  ((t = t.replace(/\s+$/, '')),
1085                  (t +=
1086                    (t.length > 0 ? '\n' : '') +
1087                    (function (e) {
1088                      var t = (function () {
1089                          var e = new Error()
1090                          if (!e.stack) {
1091                            try {
1092                              throw new Error()
1093                            } catch (t) {
1094                              e = t
1095                            }
1096                            if (!e.stack) return '(no stack trace available)'
1097                          }
1098                          return e.stack.toString()
1099                        })(),
1100                        n = t.lastIndexOf('_emscripten_log'),
1101                        r = t.lastIndexOf('_emscripten_get_callstack'),
1102                        o = t.indexOf('\n', Math.max(n, r)) + 1
1103                      ;((t = t.slice(o)),
1104                        32 & e && v('EM_LOG_DEMANGLE is deprecated; ignoring'),
1105                        8 & e &&
1106                          'undefined' == typeof emscripten_source_map &&
1107                          (v(
1108                            'Source map information is not available, emscripten_log with EM_LOG_C_STACK will be ignored. Build with "--pre-js $EMSCRIPTEN/src/emscripten-source-map.min.js" linker flag to add source map loading to code.',
1109                          ),
1110                          (e ^= 8),
1111                          (e |= 16)))
1112                      var i = null
1113                      if (128 & e) for (i = at(arguments); i[1].indexOf('_emscripten_') >= 0; ) i = at(i[0])
1114                      var a = t.split('\n')
1115                      t = ''
1116                      var s = new RegExp('\\s*(.*?)@(.*?):([0-9]+):([0-9]+)'),
1117                        u = new RegExp('\\s*(.*?)@(.*):(.*)(:(.*))?'),
1118                        c = new RegExp('\\s*at (.*?) \\((.*):(.*):(.*)\\)')
1119                      for (var f in a) {
1120                        var l = a[f],
1121                          d = '',
1122                          h = '',
1123                          p = 0,
1124                          y = 0,
1125                          g = c.exec(l)
1126                        if (g && 5 == g.length) ((d = g[1]), (h = g[2]), (p = g[3]), (y = g[4]))
1127                        else {
1128                          if (((g = s.exec(l)) || (g = u.exec(l)), !(g && g.length >= 4))) {
1129                            t += l + '\n'
1130                            continue
1131                          }
1132                          ;((d = g[1]), (h = g[2]), (p = g[3]), (y = 0 | g[4]))
1133                        }
1134                        var m = !1
1135                        if (8 & e) {
1136                          var b = emscripten_source_map.originalPositionFor({ line: p, column: y })
1137                          ;(m = b && b.source) &&
1138                            (64 & e && (b.source = b.source.substring(b.source.replace(/\\/g, '/').lastIndexOf('/') + 1)),
1139                            (t += '    at ' + d + ' (' + b.source + ':' + b.line + '
1139:' + b.column + ')\n'))
1140                        }
1141                        ;((16 & e || !m) &&
1142                          (64 & e && (h = h.substring(h.replace(/\\/g, '/').lastIndexOf('/') + 1)),
1143                          (t += (m ? '     = ' + d : '    at ' + d) + ' (' + h + ':' + p + ':' + y + ')\n')),
1144                          128 & e &&
1145                            i[0] &&
1146                            (i[1] == d && i[2].length > 0 && ((t = t.replace(/\s+$/, '')), (t += ' with values: ' + i[1] + i[2] + '\n')), (i = at(i[0]))))
1147                      }
1148                      return t.replace(/\s+$/, '')
1149                    })(e))),
1150                  1 & e
1151                    ? 4 & e
1152                      ? console.error(t)
1153                      : 2 & e
1154                        ? console.warn(t)
1155                        : 512 & e
1156                          ? console.info(t)
1157                          : 256 & e
1158                            ? console.debug(t)
1159                            : console.log(t)
1160                    : 6 & e
1161                      ? p(t)
1162                      : h(t))
1163              }))
1164            var ut = {}
1165            function ct() {
1166              if (!ct.strings) {
1167                var e = {
1168                  USER: 'web_user',
1169                  LOGNAME: 'web_user',
1170                  PATH: '/',
1171                  PWD: '/',
1172                  HOME: '/home/web_user',
1173                  LANG: (('object' == typeof navigator && navigator.languages && navigator.languages[0]) || 'C').replace('-', '_') + '.UTF-8',
1174                  _: c || './this.program',
1175                }
1176                for (var t in ut) e[t] = ut[t]
1177                var n = []
1178                for (var t in e) n.push(t + '=' + e[t])
1179                ct.strings = n
1180              }
1181              return ct.strings
1182            }
1183            var ft = {
1184              mappings: {},
1185              buffers: [null, [], []],
1186              printChar: function (e, t) {
1187                var n = ft.buffers[e]
1188                0 === t || 10 === t ? ((1 === e ? h : p)(m(n, 0)), (n.length = 0)) : n.push(t)
1189              },
1190              varargs: void 0,
1191              get: function () {
1192                return ((ft.varargs += 4), A[(ft.varargs - 4) >> 2])
1193              },
1194              getStr: function (e) {
1195                return b(e)
1196              },
1197              get64: function (e, t) {
1198                return e
1199              },
1200            }
1201            function lt() {
1202              if (!lt.called) {
1203                lt.called = !0
1204                var e = new Date().getFullYear(),
1205                  t = new Date(e, 0, 1),
1206                  n = new Date(e, 6, 1),
1207                  r = t.getTimezoneOffset(),
1208                  o = n.getTimezoneOffset(),
1209                  i = Math.max(r, o)
1210                ;((A[At() >> 2] = 60 * i), (A[kt() >> 2] = Number(r != o)))
1211                var a = f(t),
1212                  s = f(n),
1213                  u = F(a),
1214                  c = F(s)
1215                o < r ? ((A[St() >> 2] = u), (A[(St() + 4) >> 2] = c)) : ((A[St() >> 2] = c), (A[(St() + 4) >> 2] = u))
1216              }
1217              function f(e) {
1218                var t = e.toTimeString().match(/\(([A-Za-z ]+)\)$/)
1219                return t ? t[1] : 'GMT'
1220              }
1221            }
1222            function dt(e) {
1223              return e % 4 == 0 && (e % 100 != 0 || e % 400 == 0)
1224            }
1225            function ht(e, t) {
1226              for (var n = 0, r = 0; r <= t; n += e[r++]);
1227              return n
1228            }
1229            var pt = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
1230              vt = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
1231            function yt(e, t) {
1232              for (var n = new Date(e.getTime()); t > 0; ) {
1233                var r = dt(n.getFullYear()),
1234                  o = n.getMonth(),
1235                  i = (r ? pt : vt)[o]
1236                if (!(t > i - n.getDate())) return (n.setDate(n.getDate() + t), n)
1237                ;((t -= i - n.getDate() + 1), n.setDate(1), o < 11 ? n.setMonth(o + 1) : (n.setMonth(0), n.setFullYear(n.getFullYear() + 1)))
1238              }
1239              return n
1240            }
1241            function gt(e, t, n, r) {
1242              var o = A[(r + 40) >> 2],
1243                i = {
1244                  tm_sec: A[r >> 2],
1245                  tm_min: A[(r + 4) >> 2],
1246                  tm_hour: A[(r + 8) >> 2],
1247                  tm_mday: A[(r + 12) >> 2],
1248                  tm_mon: A[(r + 16) >> 2],
1249                  tm_year: A[(r + 20) >> 2],
1250                  tm_wday: A[(r + 24) >> 2],
1251                  tm_yday: A[(r + 28) >> 2],
1252                  tm_isdst: A[(r + 32) >> 2],
1253                  tm_gmtoff: A[(r + 36) >> 2],
1254                  tm_zone: o ? b(o) : '',
1255                },
1256                a = b(n),
1257                s = {
1258                  '%c': '%a %b %d %H:%M:%S %Y',
1259                  '%D': '%m/%d/%y',
1260                  '%F': '%Y-%m-%d',
1261                  '%h': '%b',
1262                  '%r': '%I:%M:%S %p',
1263                  '%R': '%H:%M',
1264                  '%T': '%H:%M:%S',
1265                  '%x': '%m/%d/%y',
1266                  '%X': '%H:%M:%S',
1267                  '%Ec': '%c',
1268                  '%EC': '%C',
1269                  '%Ex': '%m/%d/%y',
1270                  '%EX': '%H:%M:%S',
1271                  '%Ey': '%y',
1272                  '%EY': '%Y',
1273                  '%Od': '%d',
1274                  '%Oe': '%e',
1275                  '%OH': '%H',
1276                  '%OI': '%I',
1277                  '%Om': '%m',
1278                  '%OM': '%M',
1279                  '%OS': '%S',
1280                  '%Ou': '%u',
1281                  '%OU': '%U',
1282                  '%OV': '%V',
1283                  '%Ow': '%w',
1284                  '%OW': '%W',
1285                  '%Oy': '%y',
1286                }
1287              for (var u in s) a = a.replace(new RegExp(u, 'g'), s[u])
1288              var c = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
1289                f = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
1290              function l(e, t, n) {
1291                for (var r = 'number' == typeof e ? e.toString() : e || ''; r.length < t; ) r = n[0] + r
1292                return r
1293              }
1294              function d(e, t) {
1295                return l(e, t, '0')
1296              }
1297              function h(e, t) {
1298                function n(e) {
1299                  return e < 0 ? -1 : e > 0 ? 1 : 0
1300                }
1301                var r
1302                return (0 === (r = n(e.getFullYear() - t.getFullYear())) && 0 === (r = n(e.getMonth() - t.getMonth())) && (r = n(e.getDate() - t.getDate())), r)
1303              }
1304              function p(e) {
1305                switch (e.getDay()) {
1306                  case 0:
1307                    return new Date(e.getFullYear() - 1, 11, 29)
1308                  case 1:
1309                    return e
1310                  case 2:
1311                    return new Date(e.getFullYear(), 0, 3)
1312                  case 3:
1313                    return new Date(e.getFullYear(), 0, 2)
1314                  case 4:
1315                    return new Date(e.getFullYear(), 0, 1)
1316                  case 5:
1317                    return new Date(e.getFullYear() - 1, 11, 31)
1318                  case 6:
1319                    return new Date(e.getFullYear() - 1, 11, 30)
1320                }
1321              }
1322              function v(e) {
1323                var t = yt(new Date(e.tm_year + 1900, 0, 1), e.tm_yday),
1324                  n = new Date(t.getFullYear(), 0, 4),
1325                  r = new Date(t.getFullYear() + 1, 0, 4),
1326                  o = p(n),
1327                  i = p(r)
1328                return h(o, t) <= 0 ? (h(i, t) <= 0 ? t.getFullYear() + 1 : t.getFullYear()) : t.getFullYear() - 1
1329              }
1330              var y = {
1331                '%a': function (e) {
1332                  return c[e.tm_wday].substring(0, 3)
1333                },
1334                '%A': function (e) {
1335                  return c[e.tm_wday]
1336                },
1337                '%b': function (e) {
1338                  return f[e.tm_mon].substring(0, 3)
1339                },
1340                '%B': function (e) {
1341                  return f[e.tm_mon]
1342                },
1343                '%C': function (e) {
1344                  return d(((e.tm_year + 1900) / 100) | 0, 2)
1345                },
1346                '%d': function (e) {
1347                  return d(e.tm_mday, 2)
1348                },
1349                '%e': function (e) {
1350                  return l(e.tm_mday, 2, ' ')
1351                },
1352                '%g': function (e) {
1353                  return v(e).toString().substring(2)
1354                },
1355                '%G': function (e) {
1356                  return v(e)
1357                },
1358                '%H': function (e) {
1359                  return d(e.tm_hour, 2)
1360                },
1361                '%I': function (e) {
1362                  var t = e.tm_hour
1363                  return (0 == t ? (t = 12) : t > 12 && (t -= 12), d(t, 2))
1364                },
1365                '%j': function (e) {
1366                  return d(e.tm_mday + ht(dt(e.tm_year + 1900) ? pt : vt, e.tm_mon - 1), 3)
1367                },
1368                '%m': function (e) {
1369                  return d(e.tm_mon + 1, 2)
1370                },
1371                '%M': function (e) {
1372                  return d(e.tm_min, 2)
1373                },
1374                '%n': function () {
1375                  return '\n'
1376                },
1377                '%p': function (e) {
1378                  return e.tm_hour >= 0 && e.tm_hour < 12 ? 'AM' : 'PM'
1379                },
1380                '%S': function (e) {
1381                  return d(e.tm_sec, 2)
1382                },
1383                '%t': function () {
1384                  return '\t'
1385                },
1386                '%u': function (e) {
1387                  return e.tm_wday || 7
1388                },
1389                '%U': function (e) {
1390                  var t = new Date(e.tm_year + 1900, 0, 1),
1391                    n = 0 === t.getDay() ? t : yt(t, 7 - t.getDay()),
1392                    r = new Date(e.tm_year + 1900, e.tm_mon, e.tm_mday)
1393                  if (h(n, r) < 0) {
1394                    var o = ht(dt(r.getFullYear()) ? pt : vt, r.getMonth() - 1) - 31,
1395                      i = 31 - n.getDate() + o + r.getDate()
1396                    return d(Math.ceil(i / 7), 2)
1397                  }
1398                  return 0 === h(n, t) ? '01' : '00'
1399                },
1400                '%V': function (e) {
1401                  var t,
1402                    n = new Date(e.tm_year + 1900, 0, 4),
1403                    r = new Date(e.tm_year + 1901, 0, 4),
1404                    o = p(n),
1405                    i = p(r),
1406                    a = yt(new Date(e.tm_year + 1900, 0, 1), e.tm_yday)
1407                  return h(a, o) < 0
1408                    ? '53'
1409                    : h(i, a) <= 0
1410                      ? '01'
1411                      : ((t = o.getFullYear() < e.tm_year + 1900 ? e.tm_yday + 32 - o.getDate() : e.tm_yday + 1 - o.getDate()), d(Math.ceil(t / 7), 2))
1412                },
1413                '%w': function (e) {
1414                  return e.tm_wday
1415                },
1416                '%W': function (e) {
1417                  var t = new Date(e.tm_year, 0, 1),
1418                    n = 1 === t.getDay() ? t : yt(t, 0 === t.getDay() ? 1 : 7 - t.getDay() + 1),
1419                    r = new Date(e.tm_year + 1900, e.tm_mon, e.tm_mday)
1420                  if (h(n, r) < 0) {
1421                    var o = ht(dt(r.getFullYear()) ? pt : vt, r.getMonth() - 1) - 31,
1422                      i = 31 - n.getDate() + o + r.getDate()
1423                    return d(Math.ceil(i / 7), 2)
1424                  }
1425                  return 0 === h(n, t) ? '01' : '00'
1426                },
1427                '%y': function (e) {
1428                  return (e.tm_year + 1900).toString().substring(2)
1429                },
1430                '%Y': function (e) {
1431                  return e.tm_year + 1900
1432                },
1433                '%z': function (e) {
1434                  var t = e.tm_gmtoff,
1435                    n = t >= 0
1436                  return ((t = ((t = Math.abs(t) / 60) / 60) * 100 + (t % 60)), (n ? '+' : '-') + String('0000' 
1436+ t).slice(-4))
1437                },
1438                '%Z': function (e) {
1439                  return e.tm_zone
1440                },
1441                '%%': function () {
1442                  return '%'
1443                },
1444              }
1445              for (var u in y) a.indexOf(u) >= 0 && (a = a.replace(new RegExp(u, 'g'), y[u](i)))
1446              var g,
1447                m,
1448                _,
1449                T = (!1, (m = w((g = a)) + 1), E(g, (_ = new Array(m)), 0, _.length), _)
1450              return T.length > t
1451                ? 0
1452                : ((function (e, t) {
1453                    C.set(e, t)
1454                  })(T, e),
1455                  T.length - 1)
1456            }
1457            ;((le = t.InternalError = fe(Error, 'InternalError')),
1458              (function () {
1459                for (var e = new Array(256), t = 0; t < 256; ++t) e[t] = String.fromCharCode(t)
1460                ve = e
1461              })(),
1462              (ge = t.BindingError = fe(Error, 'BindingError')),
1463              (Pe.prototype.isAliasOf = function (e) {
1464                if (!(this instanceof Pe)) return !1
1465                if (!(e instanceof Pe)) return !1
1466                for (var t = this.$$.ptrType.registeredClass, n = this.$$.ptr, r = e.$$.ptrType.registeredClass, o = e.$$.ptr; t.baseClass; )
1467                  ((n = t.upcast(n)), (t = t.baseClass))
1468                for (; r.baseClass; ) ((o = r.upcast(o)), (r = r.baseClass))
1469                return t === r && n === o
1470              }),
1471              (Pe.prototype.clone = function () {
1472                if ((this.$$.ptr || Ee(this), this.$$.preservePointerOnDelete)) return ((this.$$.count.value += 1), this)
1473                var e,
1474                  t = Te(
1475                    Object.create(Object.getPrototypeOf(this), {
1476                      $$: {
1477                        value:
1478                          ((e = this.$$),
1479                          {
1480                            count: e.count,
1481                            deleteScheduled: e.deleteScheduled,
1482                            preservePointerOnDelete: e.preservePointerOnDelete,
1483                            ptr: e.ptr,
1484                            ptrType: e.ptrType,
1485                            smartPtr: e.smartPtr,
1486                            smartPtrType: e.smartPtrType,
1487                          }),
1488                      },
1489                    }),
1490                  )
1491                return ((t.$$.count.value += 1), (t.$$.deleteScheduled = !1), t)
1492              }),
1493              (Pe.prototype.delete = function () {
1494                ;(this.$$.ptr || Ee(this),
1495                  this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && me('Object already scheduled for deletion'),
1496                  _e(this),
1497                  Ce(this.$$),
1498                  this.$$.preservePointerOnDelete || ((this.$$.smartPtr = void 0), (this.$$.ptr = void 0)))
1499              }),
1500              (Pe.prototype.isDeleted = function () {
1501                return !this.$$.ptr
1502              }),
1503              (Pe.prototype.deleteLater = function () {
1504                return (
1505                  this.$$.ptr || Ee(this),
1506                  this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && me('Object already scheduled for deletion'),
1507                  ke.push(this),
1508                  1 === ke.length && Se && Se(Ae),
1509                  (this.$$.deleteScheduled = !0),
1510                  this
1511                )
1512              }),
1513              (Le.prototype.getPointee = function (e) {
1514                return (this.rawGetPointee && (e = this.rawGetPointee(e)), e)
1515              }),
1516              (Le.prototype.destructor = function (e) {
1517                this.rawDestructor && this.rawDestructor(e)
1518              }),
1519              (Le.prototype.argPackAdvance = 8),
1520              (Le.prototype.readValueFromPointer = ne),
1521              (Le.prototype.deleteObject = function (e) {
1522                null !== e && e.delete()
1523              }),
1524              (Le.prototype.fromWireType = function (e) {
1525                var t = this.getPointee(e)
1526                if (!t) return (this.destructor(e), null)
1527                var n = (function (e, t) {
1528                  return (
1529                    (t = (function (e, t) {
1530                      for (void 0 === t && me('ptr should not be undefined'); e.baseClass; ) ((t = e.upcast(t)), (e = e.baseClass))
1531                      return t
1532                    })(e, t)),
1533                    xe[t]
1534                  )
1535                })(this.registeredClass, t)
1536                if (void 0 !== n) {
1537                  if (0 === n.$$.count.value) return ((n.$$.ptr = t), (n.$$.smartPtr = e), n.clone())
1538                  var r = n.clone()
1539                  return (this.destructor(e), r)
1540                }
1541                function o() {
1542                  return this.isSmartPointer
1543                    ? Fe(this.registeredClass.instancePrototype, { ptrType: this.pointeeType, ptr: t, smartPtrType: this, smartPtr: e })
1544                    : Fe(this.registeredClass.instancePrototype, { ptrType: this, ptr: e })
1545                }
1546                var i,
1547                  a = this.registeredClass.getActualType(t),
1548                  s = Oe[a]
1549                if (!s) return o.call(this)
1550                i = this.isConst ? s.constPointerType : s.pointerType
1551                var u = je(t, this.registeredClass, i.registeredClass)
1552                return null === u
1553                  ? o.call(this)
1554                  : this.isSmartPointer
1555                    ? Fe(i.registeredClass.instancePrototype, { ptrType: i, ptr
1555: u, smartPtrType: this, smartPtr: e })
1556                    : Fe(i.registeredClass.instancePrototype, { ptrType: i, ptr: u })
1557              }),
1558              (t.getInheritedInstanceCount = function () {
1559                return Object.keys(xe).length
1560              }),
1561              (t.getLiveInheritedInstances = function () {
1562                var e = []
1563                for (var t in xe) xe.hasOwnProperty(t) && e.push(xe[t])
1564                return e
1565              }),
1566              (t.flushPendingDeletes = Ae),
1567              (t.setDelayFunction = function (e) {
1568                ;((Se = e), ke.length && Se && Se(Ae))
1569              }),
1570              (Ge = t.UnboundTypeError = fe(Error, 'UnboundTypeError')),
1571              (t.count_emval_handles = function () {
1572                for (var e = 0, t = 5; t < qe.length; ++t) void 0 !== qe[t] && ++e
1573                return e
1574              }),
1575              (t.get_first_emval = function () {
1576                for (var e = 5; e < qe.length; ++e) if (void 0 !== qe[e]) return qe[e]
1577                return null
1578              }))
1579            var mt,
1580              bt = {
1581                w: function (e, t) {},
1582                u: function (e) {
1583                  var t = ee[e]
1584                  delete ee[e]
1585                  var n = t.rawConstructor,
1586                    r = t.rawDestructor,
1587                    o = t.fields
1588                  he(
1589                    [e],
1590                    o
1591                      .map(function (e) {
1592                        return e.getterReturnType
1593                      })
1594                      .concat(
1595                        o.map(function (e) {
1596                          return e.setterArgumentType
1597                        }),
1598                      ),
1599                    function (e) {
1600                      var i = {}
1601                      return (
1602                        o.forEach(function (t, n) {
1603                          var r = t.fieldName,
1604                            a = e[n],
1605                            s = t.getter,
1606                            u = t.getterContext,
1607                            c = e[n + o.length],
1608                            f = t.setter,
1609                            l = t.setterContext
1610                          i[r] = {
1611                            read: function (e) {
1612                              return a.fromWireType(s(u, e))
1613                            },
1614                            write: function (e, t) {
1615                              var n = []
1616                              ;(f(l, e, c.toWireType(n, t)), te(n))
1617                            },
1618                          }
1619                        }),
1620                        [
1621                          {
1622                            name: t.name,
1623                            fromWireType: function (e) {
1624                              var t = {}
1625                              for (var n in i) t[n] = i[n].read(e)
1626                              return (r(e), t)
1627                            },
1628                            toWireType: function (e, t) {
1629                              for (var o in i) if (!(o in t)) throw new TypeError('Missing field:  "' + o + '"')
1630                              var a = n()
1631                              for (o in i) i[o].write(a, t[o])
1632                              return (null !== e && e.push(r, a), a)
1633                            },
1634                            argPackAdvance: 8,
1635                            readValueFromPointer: ne,
1636                            destructorFunction: r,
1637                          },
1638                        ]
1639                      )
1640                    },
1641                  )
1642                },
1643                R: function (e, t, n, r, o) {
1644                  var i = pe(n)
1645                  be(e, {
1646                    name: (t = ye(t)),
1647                    fromWireType: function (e) {
1648                      return !!e
1649                    },
1650                    toWireType: function (e, t) {
1651                      return t ? r : o
1652                    },
1653                    argPackAdvance: 8,
1654                    readValueFromPointer: function (e) {
1655                      var r
1656                      if (1 === n) r = C
1657                      else if (2 === n) r = S
1658                      else {
1659                        if (4 !== n) throw new TypeError('Unknown boolean type size: ' + t)
1660                        r = A
1661                      }
1662                      return this.fromWireType(r[e >> i])
1663                    },
1664                    destructorFunction: null,
1665                  })
1666                },
1667                x: function (e, n, r, o, i, a, s, u, c, f, l, d, h) {
1668                  ;((l = ye(l)), (a = Ue(i, a)), u && (u = Ue(s, u)), f && (f = Ue(c, f)), (h = Ue(d, h)))
1669                  var p = ue(l)
1670                  ;(!(function (e, n, r) {
1671                    t.hasOwnProperty(e)
1672                      ? (me("Cannot register public name '" + e + "' twice"),
1673                        Re(t, e, e),
1674                        t.hasOwnProperty(r) && me('Cannot register multiple overloads of a function with the same number of arguments (' + r + ')!'),
1675                        (t[e].overloadTable[void 0] = n))
1676                      : (t[e] = n)
1677                  })(p, function () {
1678                    We('Cannot construct ' + l + ' due to unbound types', [o])
1679                  }),
1680                    he([e, n, r], o ? [o] : [], function (n) {
1681                      var r, i
1682                      ;((n = n[0]), (i = o ? (r = n.registeredClass).instancePrototype : Pe.prototype))
1683                      var s = ce(p, function () {
1684                          if (Object.getPrototypeOf(this) !== c) throw new ge("Use 'new' to construct " + l)
1685                          if (void 0 === d.constructor_body) throw new ge(l + ' has no accessible constructor')
1686                          var e = d.constructor_body[arguments.length]
1687                          if (void 0 === e)
1688                            throw new ge(
1689                              'Tried to invoke ctor of ' +
1690                                l +
1691                                ' with invalid number of parameters (' +
1692                                arguments.length +
1693                                ') - expected (' +
1694                                Object.keys(d.constructor_body).toString() +
1695                                ') parameters instead!',
1696                            )
1697                          return e.apply(this, arguments)
1698                        }),
1699                        c = Object.create(i, { constructor: { value: s } })
1700                      s.prototype = c
1701                      var d = new De(l, s, c, h, r, a, u, f),
1702                        v = new Le(l, d, !0, !1, !1),
1703                        y = new Le(l + '*', d, !1, !1, !1),
1704                        g = new Le(l + ' const*', d, !1, !0, !1)
1705                      return (
1706                        (Oe[e] = { pointerType: y, constPointerType: g }),
1707                        (function (e, n, r) {
1708                          ;(t.hasOwnProperty(e) || de('Replacing nonexistant public symbol'), t[e].overloadTable, (t[e] = n), (t[e].argCount = r))
1709                        })(p, s),
1710                        [v, y, g]
1711                      )
1712                    }))
1713                },
1714                I: function (e, t, n, r, o, i) {
1715                  t > 0 || z('Assertion failed: ' + undefined)
1716                  var a = He(t, n)
1717                  o = Ue(r, o)
1718                  var s = [i],
1719                    u = []
1720                  he([], [e], function (e) {
1721                    var n = 'constructor ' + (e = e[0]).name
1722                    if (
1723                      (void 0 === e.registeredClass.constructor_body && (e.registeredClass.constructor_body = []),
1724                      void 0 !== e.registeredClass.constructor_body[t - 1])
1725                    )
1726                      throw new ge(
1727                        'Cannot register multiple constructors with identical number of parameters (' +
1728                          (t - 1) +
1729                          ") for class '" +
1730                          e.name +
1731                          "'! Overload resolution is currently only performed using the parameter count, not actual type info!",
1732                      )
1733                    return (
1734                      (e.registeredClass.constructor_body[t - 1] = function () {
1735                        We('Cannot construct ' + e.name + ' due to unbound types', a)
1736                      }),
1737                      he([], a, function (r) {
1738                        return (
1739                          (e.registeredClass.constructor_body[t - 1] = function () {
1740                            ;(arguments.length !== t - 1 && me(n + ' called with ' + arguments.length + ' arguments, expected ' + (t - 1)),
1741                              (u.length = 0),
1742                              (s.length = t))
1743                            for (var e = 1; e < t; ++e) s[e] = r[e].toWireType(u, arguments[e - 1])
1744                            var i = o.apply(null, s)
1745                            return (te(u), r[0].fromWireType(i))
1746                          }),
1747                          []
1748                        )
1749                      }),
1750                      []
1751                    )
1752                  })
1753                },
1754                g: function (e, t, n, r, o, i, a, s) {
1755                  var u = He(n, r)
1756                  ;((t = ye(t)),
1757                    (i = Ue(o, i)),
1758                    he([], [e], function (e) {
1759                      var r = (e = e[0]).name + '.' + t
1760                      function o() {
1761                        We('Cannot call ' + r + ' due to unbound types', u)
1762                      }
1763                      s && e.registeredClass.pureVirtualFunctions.push(t)
1764                      var c = e.registeredClass.instancePrototype,
1765                        f = c[t]
1766                      return (
1767                        void 0 === f || (void 0 === f.overloadTable && f.className !== e.name && f.argCount === n - 2)
1768                          ? ((o.argCount = n - 2), (o.className = e.name), (c[t] = o))
1769                          : (Re(c, t, r), (c[t].overloadTable[n - 2] = o)),
1770                        he([], u, function (o) {
1771                          var s = (function (e, t, n, r, o) {
1772                            var i = t.length
1773                            i < 2 && me("argTypes array size mismatch! Must at least get return value and 'this' types!")
1774                            for (var a = null !== t[1] && null !== n, s = !1, u = 1; u < t.length; ++u)
1775                              if (null !== t[u] && void 0 === t[u].destructorFunction) {
1776                                s = !0
1777                                break
1778                              }
1779                            var c = 'void' !== t[0].name,
1780                              f = i - 2,
1781                              l = new Array(f),
1782                              d = [],
1783                              h = []
1784                            return function () {
1785                              var n
1786                              ;(arguments.length !== f && me('function ' + e + ' called with ' + arguments.length + ' arguments, expected ' + f + ' args!'),
1787                                (h.length = 0),
1788                                (d.length = a ? 2 : 1),
1789                                (d[0] = o),
1790                                a && ((n = t[1].toWireType(h, this)), (d[1] = n
1790)))
1791                              for (var i = 0; i < f; ++i) ((l[i] = t[i + 2].toWireType(h, arguments[i])), d.push(l[i]))
1792                              var u = r.apply(null, d)
1793                              if (s) te(h)
1794                              else
1795                                for (i = a ? 1 : 2; i < t.length; i++) {
1796                                  var p = 1 === i ? n : l[i - 2]
1797                                  null !== t[i].destructorFunction && t[i].destructorFunction(p)
1798                                }
1799                              if (c) return t[0].fromWireType(u)
1800                            }
1801                          })(r, o, e, i, a)
1802                          return (void 0 === c[t].overloadTable ? ((s.argCount = n - 2), (c[t] = s)) : (c[t].overloadTable[n - 2] = s), [])
1803                        }),
1804                        []
1805                      )
1806                    }))
1807                },
1808                Q: function (e, t) {
1809                  be(e, {
1810                    name: (t = ye(t)),
1811                    fromWireType: function (e) {
1812                      var t = qe[e].value
1813                      return (Ve(e), t)
1814                    },
1815                    toWireType: function (e, t) {
1816                      return ze(t)
1817                    },
1818                    argPackAdvance: 8,
1819                    readValueFromPointer: ne,
1820                    destructorFunction: null,
1821                  })
1822                },
1823                E: function (e, t, n) {
1824                  var r = pe(n)
1825                  be(e, {
1826                    name: (t = ye(t)),
1827                    fromWireType: function (e) {
1828                      return e
1829                    },
1830                    toWireType: function (e, t) {
1831                      if ('number' != typeof t && 'boolean' != typeof t) throw new TypeError('Cannot convert "' + Ke(t) + '" to ' + this.name)
1832                      return t
1833                    },
1834                    argPackAdvance: 8,
1835                    readValueFromPointer: Xe(t, r),
1836                    destructorFunction: null,
1837                  })
1838                },
1839                q: function (e, t, n, r, o) {
1840                  ;((t = ye(t)), -1 === o && (o = 4294967295))
1841                  var i = pe(n),
1842                    a = function (e) {
1843                      return e
1844                    }
1845                  if (0 === r) {
1846                    var s = 32 - 8 * n
1847                    a = function (e) {
1848                      return (e << s) >>> s
1849                    }
1850                  }
1851                  var u = -1 != t.indexOf('unsigned')
1852                  be(e, {
1853                    name: t,
1854                    fromWireType: a,
1855                    toWireType: function (e, n) {
1856                      if ('number' != typeof n && 'boolean' != typeof n) throw new TypeError('Cannot convert "' + Ke(n) + '" to ' + this.name)
1857                      if (n < r || n > o)
1858                        throw new TypeError(
1859                          'Passing a number "' +
1860                            Ke(n) +
1861                            '" from JS side to C/C++ side to an argument of type "' +
1862                            t +
1863                            '", which is outside the valid range [' +
1864                            r +
1865                            ', ' +
1866                            o +
1867                            ']!',
1868                        )
1869                      return u ? n >>> 0 : 0 | n
1870                    },
1871                    argPackAdvance: 8,
1872                    readValueFromPointer: Je(t, i, 0 !== r),
1873                    destructorFunction: null,
1874                  })
1875                },
1876                o: function (e, t, n) {
1877                  var r = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array][t]
1878                  function o(e) {
1879                    var t = P,
1880                      n = t[(e >>= 2)],
1881                      o = t[e + 1]
1882                    return new r(_, o, n)
1883                  }
1884                  be(e, { name: (n = ye(n)), fromWireType: o, argPackAdvance: 8, readValueFromPointer: o }, { ignoreDuplicateRegistrations: !0 })
1885                },
1886                F: function (e, t) {
1887                  var n = 'std::string' === (t = ye(t))
1888                  be(e, {
1889                    name: t,
1890                    fromWireType: function (e) {
1891                      var t,
1892                        r = P[e >> 2]
1893                      if (n)
1894                        for (var o = e + 4, i = 0; i <= r; ++i) {
1895                          var a = e + 4 + i
1896                          if (i == r || 0 == T[a]) {
1897                            var s = b(o, a - o)
1898                            ;(void 0 === t ? (t = s) : ((t += String.fromCharCode(0)), (t += s)), (o = a + 1))
1899                          }
1900                        }
1901                      else {
1902                        var u = new Array(r)
1903                        for (i = 0; i < r; ++i) u[i] = String.fromCharCode(T[e + 4 + i])
1904                        t = u.join('')
1905                      }
1906                      return (Tt(e), t)
1907                    },
1908                    toWireType: function (e, t) {
1909                      t instanceof ArrayBuffer && (t = new Uint8Array(t))
1910                      var r = 'string' == typeof t
1911                      r || t instanceof Uint8Array || t instanceof Uint8ClampedArray || t instanceof Int8Array || me('Cannot pass non-string to std::string')
1912                      var o = (
1913                          n && r
1914                            ? function () {
1915                                return w(t)
1916                              }
1917                            : function () {
1918                                return t.length
1919                              }
1920                        )(),
1921                        i = wt(4 + o + 1)
1922                      if (((P[i >> 2] = o), n && r)) E(t, T, i + 4, o + 1)
1923                      else if (r)
1924                        for (var a = 0; a < o; ++a) {
1925                          var s = t.charCodeAt(a)
1926                          ;(s > 255 && (Tt(i), me('String has UTF-16 code units that do not fit in 8 bits')), (T[i + 4 + a] = s))
1927                        }
1928                      else for (a = 0; a < o; ++a) T[i + 4 + a] = t[a]
1929                      return (null !== e && e.push(Tt, i), i)
1930                    },
1931                    argPackAdvance: 8,
1932                    readValueFromPointer: ne,
1933                    destructorFunction: function (e) {
1934                      Tt(e)
1935                    },
1936                  })
1937                },
1938                A: function (e, t, n) {
1939                  var r, o, i, a, s
1940                  ;((n = ye(n)),
1941                    2 === t
1942                      ? ((r = M),
1943                        (o = $),
1944                        (a = I),
1945                        (i = function () {
1946                          return k
1947                        }),
1948                        (s = 1))
1949                      : 4 === t &&
1950                        ((r = N),
1951                        (o = j),
1952                        (a = x),
1953                        (i = function () {
1954                          return P
1955                        }),
1956                        (s = 2)),
1957                    be(e, {
1958                      name: n,
1959                      fromWireType: function (e) {
1960                        for (var n, o = P[e >> 2], a = i(), u = e + 4, c = 0; c <= o; ++c) {
1961                          var f = e + 4 + c * t
1962                          if (c == o || 0 == a[f >> s]) {
1963                            var l = r(u, f - u)
1964                            ;(void 0 === n ? (n = l) : ((n += String.fromCharCode(0)), (n += l)), (u = f + t))
1965                          }
1966                        }
1967                        return (Tt(e), n)
1968                      },
1969                      toWireType: function (e, r) {
1970                        'string' != typeof r && me('Cannot pass non-string to C++ string type ' + n)
1971                        var i = a(r),
1972                          u = wt(4 + i + t)
1973                        return ((P[u >> 2] = i >> s), o(r, u + 4, i + t), null !== e && e.push(Tt, u), u)
1974                      },
1975                      argPackAdvance: 8,
1976                      readValueFromPointer: ne,
1977                      destructorFunction: function (e) {
1978                        Tt(e)
1979                      },
1980                    }))
1981                },
1982                v: function (e, t, n, r, o, i) {
1983                  ee[e] = { name: ye(t), rawConstructor: Ue(n, r), rawDestructor: Ue(o, i), fields: [] }
1984                },
1985                h: function (e, t, n, r, o, i, a, s, u, c) {
1986                  ee[e].fields.push({
1987                    fieldName: ye(t),
1988                    getterReturnType: n,
1989                    getter: Ue(r, o),
1990                    getterContext: i,
1991                    setterArgumentType: a,
1992                    setter: Ue(s, u),
1993                    setterContext: c,
1994                  })
1995                },
1996                S: function (e, t) {
1997                  be(e, { isVoid: !0, name: (t = ye(t)), argPackAdvance: 0, fromWireType: function () {}, toWireType: function (e, t) {} })
1998                },
1999                f: function (e, t, n) {
2000                  ;((e = Qe(e)), (t = Ze(t, 'emval::as')))
2001                  var r = [],
2002                    o = ze(r)
2003                  return ((A[n >> 2] = o), t.toWireType(r, e))
2004                },
2005                y: function (e, t, n, r) {
2006                  e = Qe(e)
2007                  for (var o = et(t, n), i = new Array(t), a = 0; a < t; ++a) {
2008                    var s = o[a]
2009                    ;((i[a] = s.readValueFromPointer(r)), (r += s.argPackAdvance))
2010                  }
2011                  return ze(e.apply(void 0, i))
2012                },
2013                r: function (e, t, n, r, o) {
2014                  return (e = ot[e])(
2015                    (t = Qe(t)),
2016                    (n = nt(n)),
2017                    (function (e) {
2018                      var t = []
2019                      return ((A[e >> 2] = ze(t)), t)
2020                    })(r),
2021                    o,
2022                  )
2023                },
2024                j: function (e, t, n, r) {
2025                  ;(e = ot[e])((t = Qe(t)), (n = nt(n)), null, r)
2026                },
2027                a: Ve,
2028                s: function (e) {
2029                  return 0 === e ? ze(it()) : ((e = nt(e)), ze(it()[e]))
2030                },
2031                i: function (e, t) {
2032                  var n,
2033                    r,
2034                    o = et(e, t),
2035                    i = o[0],
2036                    a = new Array(e - 1)
2037                  return (
2038                    (n = function (t, n, r, s) {
2039                      for (var u = 0, c = 0; c < e - 1; ++c) ((a[c] = o[c + 1].readValueFromPointer(s + u)), (u += o[c + 1].argPackAdvance))
2040                      var f = t[n].apply(t, a)
2041                      for (c = 0; c < e - 1; ++c) o[c + 1].deleteObject && o[c + 1].deleteObject(a[c])
2042                      if (!i.isVoid) return i.toWireType(r, f)
2043                    }),
2044                    (r = ot.length),
2045                    ot.push(n),
2046                    r
2047                  )
2048                },
2049                B: function (e) {
2050                  return ((e = nt(e)), ze(t[e]))
2051                },
2052                e: function (e, t) {
2053                  return ze((e = Qe(e))[(t = Qe(t))])
2054                },
2055                m: function (e) {
2056                  e > 4 && (qe[e].refcount += 1)
2057                },
2058                p: function () {
2059                  return ze([])
2060                },
2061                b: function (e) {
2062                  return ze(nt(e))
2063                },
2064                t: function () {
2065                  return ze({})
2066                },
2067                c: function (e) {
2068                  ;(te(qe[e].value), Ve(e))
2069                },
2070                l: function (e, t, n) {
2071                  ;((e = Qe(e)), (t = Qe(t)), (n = Qe(n)), (e[t] = n))
2072                },
2073                k: function (e, t) {
2074                  return ze((e = Ze(e, '_emval_take_value')).readValueFromPointer(t))
2075                },
2076                n: function (e) {
2077                  return ze(typeof (e = Qe(e)))
2078                },
2079                d: function () {
2080                  z()
2081                },
2082                C: function (e, t) {
2083                  var n
2084                  if (0 === e) n = Date.now()
2085                  else {
2086                    if (1 !== e && 4 !== e) return (28, (A[Ct() >> 2] = 28), -1)
2087                    n = rt()
2088                  }
2089                  return ((A[t >> 2] = (n / 1e3) | 0), (A[(t + 4) >> 2] = ((n % 1e3) * 1e3 * 1e3) | 0), 0)
2090                },
2091                K: function (e, t, n) {
2092                  T.copyWithin(e, t, t + n)
2093                },
2094                L: function (e) {
2095                  e >>>= 0
2096                  var t = T.length,
2097                    n = 2147483648
2098                  if (e > n) return !1
2099                  for (var r, o = 1; o <= 4; o *= 2) {
2100                    var i = t * (1 + 0.2 / o)
2101                    if (((i = Math.min(i, e + 100663296)), st(Math.min(n, ((r = Math.max(16777216, e, i)) % 65536 > 0 && (r += 65536 - (r % 65536)), r)))))
2102                      return !0
2103                  }
2104                  return !1
2105                },
2106                N: function (e, t) {
2107                  var n = 0
2108                  return (
2109                    ct().forEach(function (r, o) {
2110                      var i = t + n
2111                      ;((A[(e + 4 * o) >> 2] = i),
2112                        (function (e, t, n) {
2113                          for (var r = 0; r < e.length; ++r) C[0 | t++] = e.charCodeAt(r)
2114                          C[0 | t] = 0
2115                        })(r, i),
2116                        (n += r.length + 1))
2117                    }),
2118                    0
2119                  )
2120                },
2121                O: function (e, t) {
2122                  var n = ct()
2123                  A[e >> 2] = n.length
2124                  var r = 0
2125                  return (
2126                    n.forEach(function (e) {
2127                      r += e.length + 1
2128                    }),
2129                    (A[t >> 2] = r),
2130                    0
2131                  )
2132                },
2133                P: function (e) {
2134                  return 0
2135                },
2136                J: function (e, t, n, r, o) {},
2137                D: function (e, t, n, r) {
2138                  for (var o = 0, i = 0; i < n; i++) {
2139                    for (var a = A[(t + 8 * i) >> 2], s = A[(t + (8 * i + 4)) >> 2], u = 0; u < s; u++) ft.printChar(e, T[a + u])
2140                    o += s
2141                  }
2142                  return ((A[r >> 2] = o), 0)
2143                },
2144                H: function e(t, n) {
2145                  var r = new Date(1e3 * A[t >> 2])
2146                  ;((A[n >> 2] = r.getUTCSeconds()),
2147                    (A[(n + 4) >> 2] = r.getUTCMinutes()),
2148                    (A[(n + 8) >> 2] = r.getUTCHours()),
2149                    (A[(n + 12) >> 2] = r.getUTCDate()),
2150                    (A[(n + 16) >> 2] = r.getUTCMonth()),
2151                    (A[(n + 20) >> 2] = r.getUTCFullYear() - 1900),
2152                    (A[(n + 24) >> 2] = r.getUTCDay()),
2153                    (A[(n + 36) >> 2] = 0),
2154                    (A[(n + 32) >> 2] = 0))
2155                  var o = Date.UTC(r.getUTCFullYear(), 0, 1, 0, 0, 0, 0),
2156                    i = ((r.getTime() - o) / 864e5) | 0
2157                  return ((A[(n + 28) >> 2] = i), e.GMTString || (e.GMTString = F('GMT')), (A[(n + 40) >> 2] = e.GMTString), n)
2158                },
2159                V: function (e, t) {
2160                  lt()
2161                  var n = new Date(1e3 * A[e >> 2])
2162                  ;((A[t >> 2] = n.getSeconds()),
2163                    (A[(t + 4) >> 2] = n.getMinutes()),
2164                    (A[(t + 8) >> 2] = n.getHours()),
2165                    (A[(t + 12) >> 2] = n.getDate()),
2166                    (A[(t + 16) >> 2] = n.getMonth()),
2167                    (A[(t + 20) >> 2] = n.getFullYear() - 1900),
2168                    (A[(t + 24) >> 2] = n.getDay()))
2169                  var r = new Date(n.getFullYear(), 0, 1),
2170                    o = ((n.getTime() - r.getTime()) / 864e5) | 0
2171                  ;((A[(t + 28) >> 2] = o), (A[(t + 36) >> 2] = -60 * n.getTimezoneOffset()))
2172                  var i = new Date(n.getFullYear(), 6, 1).getTimezoneOffset(),
2173                    a = r.getTimezoneOffset(),
2174                    s = 0 | (i != a && n.getTimezoneOffset() == Math.min(a, i))
2175                  A[(t + 32) >> 2] = s
2176                  var u = A[(St() + (s ? 4 : 0)) >> 2]
2177                  return ((A[(t + 40) >> 2] = u), t)
2178                },
2179                G: function (e) {
2180                  lt()
2181                  var t = new Date(A[(e + 20) >> 2] + 1900, A[(e + 16) >> 2], A[(e + 12) >> 2], A[(e + 8) >> 2], A[(e + 4) >> 2], A[e >> 2], 0),
2182                    n = A[(e + 32) >> 2],
2183                    r = t.getTimezoneOffset(),
2184                    o = new Date(t.getFullYear(), 0, 1),
2185                    i = new Date(t.getFullYear(), 6, 1).getTimezoneOffset(),
2186                    a = o.getTimezoneOffset(),
2187                    s = Math.min(a, i)
2188                  if (n < 0) A[(e + 32) >> 2] = Number(i != a && s == r)
2189                  else if (n > 0 != (s == r)) {
2190                    var u = Math.max(a, i),
2191                      c = n > 0 ? s : u
2192                    t.setTime(t.getTime() + 6e4 * (c - r))
2193                  }
2194                  A[(e + 24) >> 2] = t.getDay()
2195                  var f = ((t.getTime() - o.getTime()) / 864e5) | 0
2196                  return (
2197                    (A[(e + 28) >> 2] = f),
2198                    (A[e >> 2] = t.getSeconds()),
2199                    (A[(e + 4) >> 2] = t.getMinutes()),
2200                    (A[(e + 8) >> 2] = t.getHours()),
2201                    (A[(e + 12) >> 2] = t.getDate()),
2202                    (A[(e + 16) >> 2] = t.getMonth()),
2203                    (t.getTime() / 1e3) | 0
2204                  )
2205                },
2206                z: function (e) {},
2207                T: gt,
2208                M: function (e, t, n, r) {
2209                  return gt(e, t, n, r)
2210                },
2211                U: function (e) {
2212                  var t = (Date.now() / 1e3) | 0
2213                  return (e && (A[e >> 2] = t), t)
2214                },
2215              },
2216              Et =
2217                ((function () {
2218                  var e = { a: bt }
2219                  function n(e, n) {
2220                    var r = e.exports
2221                    ;((t.asm = r),
2222                      L((d = t.asm.W).buffer),
2223                      (U = t.asm.Z),
2224                      (function (e) {
2225                        if ((Y--, t.monitorRunDependencies && t.monitorRunDependencies(Y), 0 == Y && (null !== q && (clearInterval(q), (q = null)), V))) {
2226                          var n = V
2227                          ;((V = null), n())
2228                        }
2229                      })())
2230                  }
2231                  function r(e) {
2232                    n(e.instance)
2233                  }
2234                  function i(t) {
2235                    return (
2236                      l || 'function' != typeof fetch
2237                        ? Promise.resolve().then(function () {
2238                            return Q(J)
2239                          })
2240                        : fetch(J, { credentials: 'same-origin' })
2241                            .then(function (e) {
2242                              if (!e.ok) throw "failed to load wasm binary file at '" + J + "'"
2243                              return e.arrayBuffer()
2244                            })
2245                            .catch(function () {
2246                              return Q(J)
2247                            })
2248                    )
2249                      .then(function (t) {
2250                        return WebAssembly.instantiate(t, e)
2251                      })
2252                      .then(t, function (e) {
2253                        ;(p('failed to asynchronously prepare wasm: ' + e), z(e))
2254                      })
2255                  }
2256                  if ((Y++, t.monitorRunDependencies && t.monitorRunDependencies(Y), t.instantiateWasm))
2257                    try {
2258                      return t.instantiateWasm(e, n)
2259                    } catch (e) {
2260                      return (p('Module.instantiateWasm callback failed with error: ' + e), !1)
2261                    }
2262                  ;(l || 'function' != typeof WebAssembly.instantiateStreaming || K(J) || 'function' != typeof fetch
2263                    ? i(r)
2264                    : fetch(J, { credentials: 'same-origin' }).then(function (t) {
2265                        return WebAssembly.instantiateStreaming(t, e).then(r, function (e) {
2266                          return (p('wasm streaming compile failed: ' + e), p('falling back to ArrayBuffer instantiation'), i(r))
2267                        })
2268                      })
2269                  ).catch(o)
2270                })(),
2271                (t.___wasm_call_ctors = function () {
2272                  return (Et = t.___wasm_call_ctors = t.asm.X).apply(null, arguments)
2273                })),
2274              wt = (t._malloc = function () {
2275                return (wt = t._malloc = t.asm.Y).apply(null, arguments)
2276              }),
2277              _t = (t.___getTypeName = function () {
2278                return (_t = t.___getTypeName = t.asm._).apply(null, arguments)
2279              }),
2280              Ct =
2281                ((t.___embind_register_native_and_builtin_types = function () {
2282                  return (t.___embind_register_native_and_builtin_types = t.asm.$).apply(null, arguments)
2283                }),
2284                (t.___errno_location = function () {
2285                  return (Ct = t.___errno_location = t.asm.aa).apply(null, arguments)
2286                })),
2287              Tt = (t._free = function () {
2288                return (Tt = t._free = t.asm.ba).apply(null, arguments)
2289              }),
2290              St = (t.__get_tzname = function () {
2291                return (St = t.__get_tzname = t.asm.ca).apply(null, arguments)
2292              }),
2293              kt = (t.__get_daylight = function () {
2294                return (kt = t.__get_daylight = t.asm.da).apply(null, arguments)
2295              }),
2296              At = (t.__get_timezone = function () {
2297                return (At = t.__get_timezone = t.asm.ea).apply(null, arguments)
2298              })
2299            function Pt(e) {
2300              function n() {
2301                mt ||
2302                  ((mt = !0),
2303                  (t.calledRun = !0),
2304                  y ||
2305                    (Z(B),
2306                    Z(W),
2307                    r(t),
2308                    t.onRuntimeInitialized && t.onRuntimeInitialized(),
2309                    (function () {
2310                      if (t.postRun)
2311                        for ('function' == typeof t.postRun && (t.postRun = [t.postRun]); t.postRun.length; ) ((e = t.postRun.shift()), H.unshift(e))
2312                      var e
2313                      Z(H)
2314                    })()))
2315              }
2316              ;((e = e || u),
2317                Y > 0 ||
2318                  ((function () {
2319                    if (t.preRun) for ('function' == typeof t.preRun && (t.preRun = [t.preRun]); t.preRun.length; ) ((e = t.preRun.shift()), G.unshift(e))
2320                    var e
2321                    Z(G)
2322                  })(),
2323                  Y > 0 ||
2324                    (t.setStatus
2325                      ? (t.setStatus('Running...'),
2326                        setTimeout(function () {
2327                          ;(setTimeout(function () {
2328                            t.setStatus('')
2329                          }, 1),
2330                            n())
2331                        }, 1))
2332                      : n())))
2333            }
2334            if (
2335              ((t.dynCall_vij = function () {
2336                return (t.dynCall_vij = t.asm.fa).apply(null, arguments)
2337              }),
2338              (t.dynCall_viiij = function () {
2339                return (t.dynCall_viiij = t.asm.ga).apply(null, arguments)
2340              }),
2341              (t.dynCall_viijii = function () {
2342                return (t.dynCall_viijii = t.asm.ha).apply(null, arguments)
2343              }),
2344              (t.dynCall_j = function () {
2345                return (t.dynCall_j = t.asm.ia).apply(null, arguments)
2346              }),
2347              (t.dynCall_ji = function () {
2348                return (t.dynCall_ji = t.asm.ja).apply(null, arguments)
2349              }),
2350              (t.dynCall_iijiiiii = function () {
2351                return (t.dynCall_iijiiiii = t.asm.ka).apply(null, arguments)
2352              }),
2353              (t.dynCall_jiii = function () {
2354                return (t.dynCall_jiii = t.asm.la).apply(null, arguments)
2355              }),
2356              (t.dynCall_vijii = function () {
2357                return (t.dynCall_vijii = t.asm.ma).apply(null, arguments)
2358              }),
2359              (t.dynCall_jiji = function () {
2360                return (t.dynCall_jiji = t.asm.na).apply(null, arguments)
2361              }),
2362              (t.dynCall_iiiiij = function () {
2363                return (t.dynCall_iiiiij = t.asm.oa).apply(null, arguments)
2364              }),
2365              (t.dynCall_iiiiijj = function () {
2366                return (t.dynCall_iiiiijj = t.asm.pa).apply(null, arguments)
2367              }),
2368              (t.dynCall_iiiiiijj = function () {
2369                return (t.dynCall_iiiiiijj = t.asm.qa).apply(null, arguments)
2370              }),
2371              (V = function e() {
2372                ;(mt || Pt(), mt || (V = e))
2373              }),
2374              (t.run = Pt),
2375              t.preInit)
2376            )
2377              for ('function' == typeof t.preInit && (t.preInit = [t.preInit]); t.preInit.length > 0; ) t.preInit.pop()()
2378            return (Pt(), t.ready)
2379          }),
2380        r = t,
2381        o = (function (e) {
2382          return (
2383            (e.GENERIC = 'Error'),
2384            (e.NOT_SUPPORTED = 'ErrorNotSupported'),
2385            (e.NO_SOURCE = 'ErrorNoSource'),
2386            (e.INVALID_DATA = 'ErrorInvalidData'),
2387            (e.INVALID_STATE = 'ErrorInvalidState'),
2388            (e.INVALID_PARAMETER = 'ErrorInvalidParameter'),
2389            (e.TIMEOUT = 'ErrorTimeout'),
2390            (e.NETWORK = 'ErrorNetwork'),
2391            (e.NETWORK_IO = 'ErrorNetworkIO'),
2392            (e.AUTHORIZATION = 'ErrorAuthorization'),
2393            (e.NOT_AVAILABLE = 'ErrorNotAvailable'),
2394            e
2395          )
2396        })({}),
2397        i = (function (e) {
2398          return (
2399            (e.INITIALIZED = 'PlayerInitialized'),
2400            (e.QUALITY_CHANGED = 'PlayerQualityChanged'),
2401            (e.DURATION_CHANGED = 'PlayerDurationChanged'),
2402            (e.VOLUME_CHANGED = 'PlayerVolumeChanged'),
2403            (e.MUTED_CHANGED = 'PlayerMutedChanged'),
2404            (e.PLAYBACK_RATE_CHANGED = 'PlayerPlaybackRateChanged'),
2405            (e.REBUFFERING = 'PlayerRebuffering'),
2406            (e.AUDIO_BLOCKED = 'PlayerAudioBlocked'),
2407            (e.PLAYBACK_BLOCKED = 'PlayerPlaybackBlocked'),
2408            (e.ERROR = 'PlayerError'),
2409            (e.RECOVERABLE_ERROR = 'PlayerRecoverableError'),
2410            (e.ANALYTICS_EVENT = 'PlayerAnalyticsEvent'),
2411            (e.TIME_UPDATE = 'PlayerTimeUpdate'),
2412            (e.SYNC_TIME_UPDATE = 'PlayerSyncTimeUpdate'),
2413            (e.BUFFER_UPDATE = 'PlayerBufferUpdate'),
2414            (e.SEEK_COMPLETED = 'PlayerSeekCompleted'),
2415            (e.SESSION_DATA = 'PlayerSessionData'),
2416            (e.STATE_CHANGED = 'PlayerStateChanged'),
2417            (e.WORKER_ERROR = 'PlayerWorkerError'),
2418            (e.METADATA = 'PlayerMetadata'),
2419            (e.TEXT_CUE = 'PlayerTextCue'),
2420            (e.TEXT_METADATA_CUE = 'PlayerTextMetadataCue'),
2421            (e.AD_CUE = 'PlayerAdCue'),
2422            (e.STREAM_SOURCE_CUE = 'PlayerStreamSourceCue'),
2423            (e.NETWORK_UNAVAILABLE = 'PlayerNetworkUnavailable'),
2424            (e.SEGMENT_DISCONTINUITY = 'PlayerSegmentDiscontinuity'),
2425            (e.SEGMENT_METADATA = 'PlayerSegmentMetadata'),
2426            e
2427          )
2428        })({}),
2429        a = (function (e) {
2430          return (
2431            (e[(e.STATE_CHANGED = 0)] = 'STATE_CHANGED'),
2432            (e[(e.CONFIGURE = 1)] = 'CONFIGURE'),
2433            (e[(e.RESET = 2)] = 'RESET'),
2434            (e[(e.ADD_CUE = 3)] = 'ADD_CUE'),
2435            (e[(e.GET_DECODE_INFO = 4)] = 'GET_DECODE_INFO'),
2436            (e[(e.MEDIA_SINK_RPC = 5)] = 'MEDIA_SINK_RPC'),
2437            (e[(e.GET_EXPERIMENTS = 6)] = 'GET_EXPERIMENTS'),
2438            (e[(e.LOG_MESSAGE = 7)] = 'LOG_MESSAGE'),
2439            (e[(e.DATA_CHANNEL_CREATE = 8)] = 'DATA_CHANNEL_CREATE'),
2440            (e[(e.DATA_CHANNEL_CLOSE = 9)] = 'DATA_CHANNEL_CLOSE'),
2441            (e[(e.DATA_CHANNEL_SEND = 10)] = 'DATA_CHANNEL_SEND'),
2442            (e[(e.RTC_SET_REMOTE_DESCRIPTION = 11)] = 'RTC_SET_REMOTE_DESCRIPTION'),
2443            (e[(e.PROPERTY_CHANGED = 12)] = 'PROPERTY_CHANGED'),
2444            (e[(e.SYNC_TIME_CHANGED = 13)] = 'SYNC_TIME_CHANGED'),
2445            (e[(e.BUFFERED_RANGES = 14)] = 'BUFFERED_RANGES'),
2446            (e[(e.DESTROY = 15)] = 'DESTROY'),
2447            e
2448          )
2449        })({})
2450      function s(e, t) {
2451        ;((this.name = 'AggregateError'), (this.errors = e), (this.message = t || ''))
2452      }
2453      s.prototype = Error.prototype
2454      var u = setTimeout
2455      function c(e) {
2456        return Boolean(e && void 0 !== e.length)
2457      }
2458      function f() {}
2459      function l(e) {
2460        if (!(this instanceof l)) throw new TypeError('Promises must be constructed via new')
2461        if ('function' != typeof e) throw new TypeError('not a function')
2462        ;((this._state = 0), (this._handled = !1), (this._value = void 0), (this._deferreds = []), g(e, this))
2463      }
2464      function d(e, t) {
2465        for (; 3 === e._state; ) e = e._value
2466        0 !== e._state
2467          ? ((e._handled = !0),
2468            l._immediateFn(function () {
2469              var n = 1 === e._state ? t.onFulfilled : t.onRejected
2470              if (null !== n) {
2471                var r
2472                try {
2473                  r = n(e._value)
2474                } catch (e) {
2475                  return void p(t.promise, e)
2476                }
2477                h(t.promise, r)
2478              } else (1 === e._state ? h : p)(t.promise, e._value)
2479            }))
2480          : e._deferreds.push(t)
2481      }
2482      function h(e, t) {
2483        try {
2484          if (t === e) throw new TypeError('A promise cannot be resolved with itself.')
2485          if (t && ('object' == typeof t || 'function' == typeof t)) {
2486            var n = t.then
2487            if (t instanceof l) return ((e._state = 3), (e._value = t), void v(e))
2488            if ('function' == typeof n)
2489              return void g(
2490                ((r = n),
2491                (o = t),
2492                function () {
2493                  r.apply(o, arguments)
2494                }),
2495                e,
2496              )
2497          }
2498          ;((e._state = 1), (e._value = t), v(e))
2499        } catch (t) {
2500          p(e, t)
2501        }
2502        var r, o
2503      }
2504      function p(e, t) {
2505        ;((e._state = 2), (e._value = t), v(e))
2506      }
2507      function v(e) {
2508        2 === e._state &&
2509          0 === e._deferreds.length &&
2510          l._immediateFn(function () {
2511            e._handled || l._unhandledRejectionFn(e._value)
2512          })
2513        for (var t = 0, n = e._deferreds.length; t < n; t++) d(e, e._deferreds[t])
2514        e._deferreds = null
2515      }
2516      function y(e, t, n) {
2517        ;((this.onFulfilled = 'function' == typeof e ? e : null), (this.onRejected = 'function' == typeof t ? t : null), (this.promise = n))
2518      }
2519      function g(e, t) {
2520        var n = !1
2521        try {
2522          e(
2523            function (e) {
2524              n || ((n = !0), h(t, e))
2525            },
2526            function (e) {
2527              n || ((n = !0), p(t, e))
2528            },
2529          )
2530        } catch (e) {
2531          if (n) return
2532          ;((n = !0), p(t, e))
2533        }
2534      }
2535      ;((l.prototype.catch = function (e) {
2536        return this.then(null, e)
2537      }),
2538        (l.prototype.then = function (e, t) {
2539          var n = new this.constructor(f)
2540          return (d(this, new y(e, t, n)), n)
2541        }),
2542        (l.prototype.finally = function (e) {
2543          var t = this.constructor
2544          return this.then(
2545            function (n) {
2546              return t.resolve(e()).then(function () {
2547                return n
2548              })
2549            },
2550            function (n) {
2551              return t.resolve(e()).then(function () {
2552                return t.reject(n)
2553              })
2554            },
2555          )
2556        }),
2557        (l.all = function (e) {
2558          return new l(function (t, n) {
2559            if (!c(e)) return n(new TypeError('Promise.all accepts an array'))
2560            var r = Array.prototype.slice.call(e)
2561            if (0 === r.length) return t([])
2562            var o = r.length
2563            function i(e, a) {
2564              try {
2565                if (a && ('object' == typeof a || 'function' == typeof a)) {
2566                  var s = a.then
2567                  if ('function' == typeof s)
2568                    return void s.call(
2569                      a,
2570                      function (t) {
2571                        i(e, t)
2572                      },
2573                      n,
2574                    )
2575                }
2576                ;((r[e] = a), 0 == --o && t(r))
2577              } catch (e) {
2578                n(e)
2579              }
2580            }
2581            for (var a = 0; a < r.length; a++) i(a, r[a])
2582          })
2583        }),
2584        (l.any = function (e) {
2585          var t = this
2586          return new t(function (n, r) {
2587            if (!e || void 0 === e.length) return r(new TypeError('Promise.any accepts an array'))
2588            var o = Array.prototype.slice.call(e)
2589            if (0 === o.length) return r()
2590            for (var i = [], a = 0; a < o.length; a++)
2591              try {
2592                t.resolve(o[a])
2593                  .then(n)
2594                  .catch(function (e) {
2595                    ;(i.push(e), i.length === o.length && r(new s(i, 'All promises were rejected')))
2596                  })
2597              } catch (e) {
2598                r(e)
2599              }
2600          })
2601        }),
2602        (l.allSettled = function (e) {
2603          return new this(function (t, n) {
2604            if (!e || void 0 === e.length) return n(new TypeError(typeof e + ' ' + e + ' is not iterable(cannot read property Symbol(Symbol.iterator))'))
2605            var r = Array.prototype.slice.call(e)
2606            if (0 === r.length) return t([])
2607            var o = r.length
2608            function i(e, n) {
2609              if (n && ('object' == typeof n || 'function' == typeof n)) {
2610                var a = n.then
2611                if ('function' == typeof a)
2612                  return void a.call(
2613                    n,
2614                    function (t) {
2615                      i(e, t)
2616                    },
2617                    function (n) {
2618                      ;((r[e] = { status: 'rejected', reason: n }), 0 == --o && t(r))
2619                    },
2620                  )
2621              }
2622              ;((r[e] = { status: 'fulfilled', value: n }), 0 == --o && t(r))
2623            }
2624            for (var a = 0; a < r.length; a++) i(a, r[a])
2625          })
2626        }),
2627        (l.resolve = function (e) {
2628          return e && 'object' == typeof e && e.constructor === l
2629            ? e
2630            : new l(function (t) {
2631                t(e)
2632              })
2633        }),
2634        (l.reject = function (e) {
2635          return new l(function (t, n) {
2636            n(e)
2637          })
2638        }),
2639        (l.race = function (e) {
2640          return new l(function (t, n) {
2641            if (!c(e)) return n(new TypeError('Promise.race accepts an array'))
2642            for (var r = 0, o = e.length; r < o; r++) l.resolve(e[r]).then(t, n)
2643          })
2644        }),
2645        (l._immediateFn =
2646          ('function' == typeof setImmediate &&
2647            function (e) {
2648              setImmediate(e)
2649            }) ||
2650          function (e) {
2651            u(e, 0)
2652          }),
2653        (l._unhandledRejectionFn = function (e) {
2654          'undefined' != typeof console && console && console.warn('Possible Unhandled Promise Rejection:', e)
2655        }))
2656      var m = l,
2657        b = ('undefined' != typeof self ? self : 'undefined' != typeof window ? window : void 0 !== n.g ? n.g : void 0).Promise || m,
2658        E = (function () {
2659          function e() {
2660            ;((this.buffer = void 0), (this.head = void 0), (this.tail = void 0), (this.buffer = []), (this.head = 0), (this.tail = 0))
2661          }
2662          var t = e.prototype
2663          return (
2664            (t.push = function (e) {
2665              ;(this.tail === this.buffer.length ? this.buffer.push(e) : (this.buffer[this.tail] = e), this.tail++)
2666            }),
2667            (t.pop = function () {
2668              var e,
2669                t = null != (e = this.buffer[this.head]) ? e : null
2670              return ((this.buffer[this.head] = null), this.head++, this.empty() && ((this.head = 0), (this.tail = 0)), t)
2671            }),
2672            (t.size = function () {
2673              return this.tail - this.head
2674            }),
2675            (t.empty = function () {
2676              return this.head >= this.tail
2677            }),
2678            e
2679          )
2680        })(),
2681        w = (function (e) {
2682          return ((e[(e.Readable = 0)] = 'Readable'), (e[(e.Closed = 1)] = 'Closed'), (e[(e.Errored = 2)] = 'Errored'), e)
2683        })({}),
2684        _ = (function () {
2685          function e(e) {
2686            ;((this.state = void 0),
2687              (this.queuedChunks = void 0),
2688              (this.readRequest = void 0),
2689              (this.storedError = void 0),
2690              (this.onCancel = void 0),
2691              (this.state = w.Readable),
2692              (this.queuedChunks = new E()),
2693              (this.readRequest = null),
2694              (this.storedError = null),
2695              (this.onCancel = e))
2696          }
2697          var t = e.prototype
2698          return (
2699            (t.read = function () {
2700              var t = this
2701              switch (this.state) {
2702                case w.Readable:
2703                  return this.queuedChunks.empty()
2704                    ? new b(function (e, n) {
2705                        t.readRequest = { resolve: e, reject: n }
2706                      })
2707                    : this.queuedChunks.pop()
2708                case w.Closed:
2709                  return this.queuedChunks.empty() ? b.resolve(e.DONE_CHUNK) : this.queuedChunks.pop()
2710                case w.Errored:
2711                  return b.reject(this.storedError)
2712              }
2713            }),
2714            (t.cancel = function () {
2715              ;(this.onCancel(), this.close())
2716            }),
2717            (t.error = function (e) {
2718              this.state === w.Readable &&
2719                ((this.state = w.Errored),
2720                (this.storedError = e),
2721                this.readRequest && (this.readRequest.reject(e), (this.readRequest = null)),
2722                (this.queuedChunks = new E()))
2723            }),
2724            (t.write = function (e) {
2725              if (this.state === w.Readable) {
2726                var t = { done: !1, value: e }
2727                this.readRequest ? (this.readRequest.resolve(t), (this.readRequest = null)) : this.queuedChunks.push(b.resolve(t))
2728              }
2729            }),
2730            (t.close = function () {
2731              this.state === w.Readable && (this.readRequest && (this.readRequest.resolve(e.DONE_CHUNK), (this.readRequest = null)), (this.state = w.Closed))
2732            }),
2733            e
2734          )
2735        })()
2736      _.DONE_CHUNK = { done: !0, value: void 0 }
2737      var C = (function () {
2738          function e(e, t) {
2739            ;((this.reader = void 0), (this.reader = new _(e.abort.bind(e))), this.initReadableStreamShim(e, t))
2740          }
2741          var t = e.prototype
2742          return (
2743            (t.getReader = function () {
2744              return this.reader
2745            }),
2746            (t.initReadableStreamShim = function (e, t) {
2747              var n = this
2748              switch (((e.responseType = t), t)) {
2749                case 'moz-chunked-arraybuffer':
2750                  ;(e.addEventListener('progress', function () {
2751                    n.reader.write(new Uint8Array(e.response))
2752                  }),
2753                    e.addEventListener('load', this.reader.close.bind(this.reader)))
2754                  break
2755                case 'ms-stream':
2756                  e.addEventListener('readystatechange', function () {
2757                    if (e.readyState === e.LOADING) {
2758                      var t = new self.MSStreamReader(),
2759                        r = 0
2760                      ;((t.onprogress = function () {
2761                        r >= t.result.byteLength || (n.reader.write(new Uint8Array(t.result, r)), (r = t.result.byteLength))
2762                      }),
2763                        (t.onload = n.reader.close.bind(n.reader)),
2764                        t.readAsArrayBuffer(e.response))
2765                    }
2766                  })
2767                  break
2768                case 'arraybuffer':
2769                  ;(e.addEventListener('progress', this.reader.write.bind(this.reader, new Uint8Array(0))),
2770                    e.addEventListener('load', function () {
2771                      ;(e.response && n.reader.write(new Uint8Array(e.response)), n.reader.close())
2772                    }))
2773              }
2774            }),
2775            e
2776          )
2777        })(),
2778        T =
2779          self.fetch && self.ReadableStream
2780            ? self.fetch.bind(self)
2781            : function (e, t) {
2782                return (
2783                  void 0 === t && (t = {}),
2784                  new b(function (n, r) {
2785                    var o = new XMLHttpRequest()
2786                    for (var i in (o.open(t.method || 'GET', e), t.headers))
2787                      Object.prototype.hasOwnProperty.call(t.headers, i) && o.setRequestHeader(i, t.headers[i])
2788                    'include' === t.credentials && (o.withCredentials = !0)
2789                    var a = new C(o, S)
2790                    ;
2790(o.addEventListener('readystatechange', function e() {
2791                      2 === o.readyState && (o.removeEventListener('readystatechange', e), n(new k(o, a)))
2792                    }),
2793                      t.signal &&
2794                        (t.signal.onabort = function () {
2795                          o.abort()
2796                          var e = new Error('request aborted')
2797                          ;((e.name = 'AbortError'), a.getReader().error(e), r(e))
2798                        }),
2799                      o.addEventListener('error', function () {
2800                        var e = new Error('network error')
2801                        ;(a.getReader().error(e), r(e))
2802                      }),
2803                      o.send(t.body || null))
2804                  })
2805                )
2806              },
2807        S = void 0 !== self.fetch && self.ReadableStream ? 'arraybuffer' : P('moz-chunked-arraybuffer') || P('ms-stream') || 'arraybuffer'
2808      var k = function (e, t) {
2809          ;((this.body = void 0), (this.status = void 0), (this.headers = void 0), (this.body = t), (this.status = e.status), (this.headers = new A(e)))
2810        },
2811        A = (function () {
2812          function e(e) {
2813            ;((this.xhr = void 0), (this.xhr = e))
2814          }
2815          var t = e.prototype
2816          return (
2817            (t.has = function (e) {
2818              return null !== this.xhr.getResponseHeader(e)
2819            }),
2820            (t.get = function (e) {
2821              return this.xhr.getResponseHeader(e)
2822            }),
2823            e
2824          )
2825        })()
2826      function P(e) {
2827        try {
2828          var t = new XMLHttpRequest()
2829          return (t.open('GET', 'https://twitch.tv'), (t.responseType = e), t.responseType === e ? e : '')
2830        } catch (e) {
2831          return ''
2832        }
2833      }
2834      var O = (function () {
2835          function e(e, t) {
2836            ;((this.cancelled = void 0),
2837              (this.module = void 0),
2838              (this.pendingAbort = void 0),
2839              (this.response = void 0),
2840              (this.reader = void 0),
2841              (this.abortController = void 0),
2842              (this.cancelled = !1),
2843              (this.module = e),
2844              (this.pendingAbort = !1),
2845              (this.response = null),
2846              (this.reader = null),
2847              (this.abortController = t),
2848              (this.readBody = this.readBody.bind(this)))
2849          }
2850          var t = e.prototype
2851          return (
2852            (t.setResponse = function (e) {
2853              ;((this.response = e), this.pendingAbort && ((this.pendingAbort = !1), this.getReader().cancel()))
2854            }),
2855            (t.abort = function () {
2856              this.response ? this.getReader().cancel() : this.abortController ? this.abortController.abort() : (this.pendingAbort = !0)
2857            }),
2858            (t.cancel = function () {
2859              ;((this.cancelled = !0), this.abort())
2860            }),
2861            (t.getHeader = function (e) {
2862              var t, n
2863              return null != (t = this.response) && t.headers.has(e) && null != (n = this.response.headers.get(e)) ? n : ''
2864            }),
2865            (t.getStatus = function () {
2866              var e, t
2867              return null != (e = null == (t = this.response) ? void 0 : t.status) ? e : 0
2868            }),
2869            (t.getUrl = function () {
2870              var e, t
2871              return null != (e = null == (t = this.response) ? void 0 : t.url) ? e : ''
2872            }),
2873            (t.readBody = function (e, t) {
2874              var n = this,
2875                r = performance.now(),
2876                o =
2877                  t > 0
2878                    ? self.setTimeout(function i() {
2879                        var a = performance.now() - r
2880                        a < t && t > 0 ? (o = self.setTimeout(i, t - a)) : (n.abort(), e.error(!0, 'Read response timeout'))
2881                      }, t)
2882                    : -1
2883              this.getReader()
2884                .read()
2885                .then(function t(o) {
2886                  var i = o.done,
2887                    a = o.value
2888                  if (!n.cancelled) {
2889                    if (!i) {
2890                      var s = null == a ? void 0 : a.byteLength
2891                      return (s && e.read(n.module.copyUint8ArrayToEmscriptenHeap(a), s), (r = performance.now()), n.getReader().read().then(t))
2892                    }
2893                    e.end()
2894                  }
2895                })
2896                .catch(function (t) {
2897                  e.error(!1, t.message)
2898                })
2899                .then(function () {
2900                  ;(-1 !== o && clearTimeout(o), e.delete())
2901                })
2902            }),
2903            (t.getReader = function () {
2904              if (!this.reader)
2905                try {
2906                  this.reader = this.response.body.getReader()
2907                } catch (e) {
2908                  this.reader = new R()
2909                }
2910              return this.reader
2911            }),
2912            e
2913          )
2914        })(),
2915        R = (function () {
2916          function e() {
2917            ;((this.closed = void 0), (this.closed = b.resolve()))
2918          }
2919          var t = e.prototype
2920          return (
2921            (t.read = function () {
2922              return b.resolve({ done: !0 })
2923            }),
2924            (t.cancel = function () {
2925              return b.resolve()
2926            }),
2927            (t.releaseLock = function () {}),
2928            e
2929          )
2930        })()
2931      function D(e, t, n, r, o, i, a) {
2932        try {
2933          var s = e[i](a),
2934            u = s.value
2935        } catch (e) {
2936          return void n(e)
2937        }
2938        s.done ? t(u) : Promise.resolve(u).then(r, o)
2939      }
2940      function M(e) {
2941        return function () {
2942          var t = this,
2943            n = arguments
2944          return new Promise(function (r, o) {
2945            var i = e.apply(t, n)
2946            function a(e) {
2947              D(i, r, o, a, s, 'next', e)
2948            }
2949            function s(e) {
2950              D(i, r, o, a, s, 'throw', e)
2951            }
2952            a(void 0)
2953          })
2954        }
2955      }
2956      var $ = n(183),
2957        I = n.n($),
2958        N = (function (e) {
2959          return ((e.ID3 = 'MetaID3'), (e.CAPTION = 'MetaCaption'), e)
2960        })({})
2961      function j() {
2962        return (
2963          (j = Object.assign
2964            ? Object.assign.bind()
2965            : function (e) {
2966                for (var t = 1; t < arguments.length; t++) {
2967                  var n = arguments[t]
2968                  for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
2969                }
2970                return e
2971              }),
2972          j.apply(this, arguments)
2973        )
2974      }
2975      function x(e) {
2976        return (
2977          (x =
2978            'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
2979              ? function (e) {
2980                  return typeof e
2981                }
2982              : function (e) {
2983                  return e && 'function' == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? 'symbol' : typeof e
2984                }),
2985          x(e)
2986        )
2987      }
2988      function F(e) {
2989        var t = (function (e, t) {
2990          if ('object' != x(e) || !e) return e
2991          var n = e[Symbol.toPrimitive]
2992          if (void 0 !== n) {
2993            var r = n.call(e, 'string')
2994            if ('object' != x(r)) return r
2995            throw new TypeError('@@toPrimitive must return a primitive value.')
2996          }
2997          return String(e)
2998        })(e)
2999        return 'symbol' == x(t) ? t : t + ''
3000      }
3001      function L(e, t) {
3002        for (var n = 0; n < t.length; n++) {
3003          var r = t[n]
3004          ;((r.enumerable = r.enumerable || !1), (r.configurable = !0), 'value' in r && (r.writable = !0), Object.defineProperty(e, F(r.key), r))
3005        }
3006      }
3007      function U(e, t, n) {
3008        return (t && L(e.prototype, t), n && L(e, n), Object.defineProperty(e, 'prototype', { writable: !1 }), e)
3009      }
3010      function G(e, t) {
3011        return (
3012          (G = Object.setPrototypeOf
3013            ? Object.setPrototypeOf.bind()
3014            : function (e, t) {
3015                return ((e.__proto__ = t), e)
3016              }),
3017          G(e, t)
3018        )
3019      }
3020      var B = 1 << 30,
3021        W = { audio: 1936684398, video: 1986618469 }
3022      function H(e, t, n) {
3023        return (
3024          e.addEventListener(t, n),
3025          function () {
3026            e.removeEventListener(t, n)
3027          }
3028        )
3029      }
3030      function Y(e) {
3031        var t = (e || '').match(/codecs="([^.]+)\./)
3032        return t && t[1] ? t[1] : ''
3033      }
3034      var q = (function () {
3035          function e(e, t, n, r, o) {
3036            ;((this.rawCodec = t),
3037              (this.group = n),
3038              (this.isProtected = r),
3039              (this.onError = o),
3040              (this.pending = void 0),
3041              (this.unsubscribers = []),
3042              (this.srcBuf = void 0),
3043              (this.blocked = !1),
3044              (this.srcBuf = e),
3045              (this.pending = new E()),
3046              this.unsubscribers.push(H(e, 'updateend', this.process.bind(this))))
3047          }
3048          var t = e.prototype
3049          return (
3050            (t.getBufferedRanges = function () {
3051              try {
3052                var e = []
3053                if (this.srcBuf) for (var t = this.srcBuf.buffered, n = 0; n < t.length; n++) e.push({ start: t.start(n), end: t.end(n) })
3054                return e
3055              } catch (e) {
3056                return []
3057              }
3058            }),
3059            (t.abort = function () {
3060              this.schedule(function (e) {
3061                e.abort()
3062              })
3063            }),
3064            (t.changeType = function (e) {
3065              ;((this.rawCodec = (function (e) {
3066                var t = (e || '').match(/codecs=".+"/)
3067                return t && t[0] ? t[0] : 'codecs=""'
3068              })(e)),
3069                this.schedule(function (t) {
3070                  t.changeType(e)
3071                }))
3072            }),
3073            (t.appendBuffer = function (e) {
3074              this.schedule(function (t) {
3075                try {
3076                  t.appendBuffer(e)
3077                } catch (e) {
3078                  if ('QuotaExceededError' !== e.name) throw e
3079                  var n = t.buffered,
3080                    r = n.start(0),
3081                    o = n.end(n.length - 1),
3082                    i = (r + o) / 2
3083                  t.remove(i, o)
3084                }
3085              })
3086            }),
3087            (t.setTimestampOffset = function (e) {
3088              this.schedule(function (t) {
3089                t.timestampOffset = e
3090              })
3091            }),
3092            (t.remove = function (e, t) {
3093              this.schedule(function (n) {
3094                var r = n.buffered
3095                if (r.length) {
3096                  var o = Math.max(e, r.start(0)),
3097                    i = Math.min(t, r.end(r.length - 1))
3098                  o < i && n.remove(o, i)
3099                }
3100              })
3101            }),
3102            (t.block = function () {
3103              var e = this
3104              return new Promise(function (t) {
3105                e.schedule(function () {
3106                  ;((e.blocked = !0), t())
3107                })
3108              })
3109            }),
3110            (t.unblock = function () {
3111              ;((this.blocked = !1), this.process())
3112            }),
3113            (t.destroy = function () {
3114              ;((this.pending = new E()),
3115                this.unsubscribers.forEach(function (e) {
3116                  return e()
3117                }),
3118                (this.srcBuf = void 0))
3119            }),
3120            (t.schedule = function (e) {
3121              this.pending.empty() && this.canProcess() ? this.safeExecute(e) : (this.pending.push(e), this.process())
3122            }),
3123            (t.safeExecute = function (e) {
3124              try {
3125                if (!this.srcBuf) throw new Error('srcBuf is undefined')
3126                e(this.srcBuf)
3127              } catch (e) {
3128                this.onError(e, !1)
3129              }
3130            }),
3131            (t.process = function () {
3132              for (; !this.pending.empty() && this.canProcess(); ) this.safeExecute(this.pending.pop())
3133            }),
3134            (t.canProcess = function () {
3135              return !(!this.srcBuf || this.srcBuf.updating || this.blocked)
3136            }),
3137            U(e, [
3138              {
3139                key: 'buffer',
3140                get: function () {
3141                  return this.srcBuf
3142                },
3143              },
3144              {
3145                key: 'codec',
3146                get: function () {
3147                  return this.rawCodec
3148                },
3149              },
3150              {
3151                key: 'timestampOffset',
3152                get: function () {
3153                  return this.buffer ? this.buffer.timestampOffset : 0
3154                },
3155              },
3156            ])
3157          )
3158        })(),
3159        V = (function () {
3160          function e(e, t, n) {
3161            ;((this.mediaSource = e),
3162              (this.onEnded = t),
3163              (this.onError = n),
3164              (this.sourceBuffers = Object.create(null)),
3165              (this.unsubscribers = []),
3166              this.unsubscribers.push(H(e, 'sourceended', this.onEnded)))
3167          }
3168          ;((e.isSupported = function () {
3169            return void 0 !== self.MediaSource
3170          }),
3171            (e.isSupportedInWorker = function () {
3172              return e.isSupported() && MediaSource.canConstructInDedicatedWorker && 'function' == typeof MediaSourceHandle
3173            }),
3174            (e.create = function (t, n) {
3175              var r = new MediaSource(),
3176                o = new Promise(function (o, i) {
3177                  var a = H(r, 'sourceopen', function () {
3178                    'open' === r.readyState ? (o(new e(r, t, n)), a()) : i('The MediaSource was closed upon opening')
3179                  })
3180                })
3181              return { ms: r, sink: o }
3182            }))
3183          var t = e.prototype
3184          return (
3185            (t.getBufferedRanges = function (e) {
3186              var t, n
3187              return null != (t = null == (n = this.sourceBuffers[W[e]]) ? void 0 : n.getBufferedRanges()) ? t : []
3188            }),
3189            (t.addTrack = function (e, t, n, r) {
3190              var o = this.mediaSource,
3191                i = this.sourceBuffers,
3192                a = (function (e) {
3193                  return 'video/mp4;' + e
3194                })(t)
3195              if (i[e]) {
3196                var s,
3197                  u = Y(i[e].codec)
3198                return (Y(t) !== u && i[e].changeType(a), null != (s = i[e].buffer) ? s : null)
3199              }
3200              try {
3201                var c = o.addSourceBuffer(a)
3202                return ((i[e] = new q(c, t, n, r, this.handleError.bind(this))), c)
3203              } catch (e) {
3204                this.handleError(e, 'open' === o.readyState)
3205              }
3206              return null
3207            }),
3208            (t.append = function (e, t) {
3209              var n
3210              null == (n = this.sourceBuffers[e]) || n.appendBuffer(t)
3211            }),
3212            (t.remove = function (e, t) {
3213              for (var n = this.sourceBuffers, r = 0, o = Object.keys(n); r < o.length; r++) n[o[r]].remove(e, t)
3214            }),
3215            (t.setTimestampOffset = function (e, t) {
3216              var n = this.sourceBuffers[e]
3217              n && (n.abort(), n.setTimestampOffset(t))
3218            }),
3219            (t.setDuration = function (e) {
3220              var t = this
3221              this.scheduleUpdate(function () {
3222                return (t.mediaSource.duration = e)
3223              }).catch(function (e) {
3224                return t.handleError(e, !1)
3225              })
3226            }),
3227            (t.setLiveSeekableRange = function (e, t) {
3228              var n = this
3229              this.scheduleUpdate(function () {
3230                return n.mediaSource.setLiveSeekableRange(e, t)
3231              }).catch(function (e) {
3232                return n.handleError(e, !1)
3233              })
3234            }),
3235            (t.scheduleUpdate = function (e) {
3236              var t = this
3237              void 0 === e && (e = z)
3238              var n = Object.keys(this.sourceBuffers).map(function (e) {
3239                return t.sourceBuffers[e]
3240              })
3241              return Promise.all(
3242                n.map(function (e) {
3243                  return e.block()
3244                }),
3245              )
3246                .then(e)
3247                .then(function () {
3248                  return n.forEach(function (e) {
3249                    return e.unblock()
3250                  })
3251                })
3252            }),
3253            (t.isDrmProtected = function () {
3254              return this.bufferProperties.some(function (e) {
3255                return e.isProtected
3256              })
3257            }),
3258            (t.isAudioOnly = function () {
3259              return 1 === this.bufferProperties.length && 'audio_only' === this.bufferProperties[0].group
3260            }),
3261            (t.destroy = function () {
3262              ;(this.destroySourceBuffers(),
3263                this.unsubscribers.forEach(function (e) {
3264                  return e()
3265                }),
3266                (this.unsubscribers = []))
3267            }),
3268            (t.handleError = function (e, t) {
3269              var n = e.code || 102,
3270                r = 102
3271              ;('NotSupportedError' === e.name && (r = n = 4), this.onError(r, n, e.message, t))
3272            }),
3273            (t.destroySourceBuffers = function () {
3274              for (var e = this.mediaSource; e.sourceBuffers.length > 0; )
3275                try {
3276                  e.removeSourceBuffer(e.sourceBuffers[0])
3277                } catch (e) {
3278                  this.handleError(e, !1)
3279                  break
3280                }
3281              for (var t = 0, n = Object.keys(this.sourceBuffers); t < n.length; t++) {
3282                var r = n[t]
3283                this.sourceBuffers[r].destroy()
3284              }
3285              this.sourceBuffers = Object.create(null)
3286            }),
3287            U(e, [
3288              {
3289                key: 'duration',
3290                get: function () {
3291                  return this.mediaSource.duration
3292                },
3293              },
3294              {
3295                key: 'bufferProperties',
3296                get: function () {
3297                  var e = this.sourceBuffers
3298                  return Object.keys(e).map(function (t) {
3299                    var n = e[t]
3300                    return { trackID: Number(t), codec: n.codec, mode: 'mse', path: '', isProtected: n.isProtected, group: n.group, srcObj: null }
3301                  })
3302                },
3303              },
3304            ])
3305          )
3306        })(),
3307        z = function () {},
3308        K = (function (e) {
3309          function t(t, n) {
3310            var r
3311            return (
3312              ((r = e.call(this) || this).sendMessageToClient = t),
3313              (r.sendMessageToCore = n),
3314              (r.mseSink = void 0),
3315              (r.awaitSink = void 0),
3316              (r.sendRPC = void 0),
3317              (r.nativeControlsEnabled = !1),
3318              (r.resolveIdleDeferral = void 0),
3319              (r.paused = !0),
3320              (r.sendRPC = t.bind(r, a.MEDIA_SINK_RPC)),
3321              (r.awaitSink = void 0),
3322              r
3323            )
3324          }
3325          var n, r
3326          ;((r = e), ((n = t).prototype = Object.create(r.prototype)), (n.prototype.constructor = n), G(n, r))
3327          var o = t.prototype
3328          return (
3329            (o.invoke = function (e, t) {
3330              var n = this.awaitSink,
3331                r = this.mseSink
3332              n && r
3333                ? ['enqueue', 'addTrack', 'setTimestampOffset'].includes(e.name)
3334                  ? this.invokeAsync(e)
3335                  : this.invokeSync(e)
3336                : n
3337                  ? this.invokeAsync(e)
3338                  : r
3339                    ? this.invokeSync(e)
3340                    : this.sendRPC(e, t)
3341            }),
3342            (o.configure = function (e) {
3343              var t = this,
3344                n = this.awaitSink,
3345                r = this.mseSink
3346              if ('mse-worker' === e.mode) {
3347                if (!r && !n) {
3348                  console.info('MSE in workers enabled')
3349                  var o = V.create(this.onMediaSourceEnded.bind(this), this.onMediaSourceError.bind(this)),
3350                    i = o.ms.handle
3351                  ;(this.sendMessageToClient(a.CONFIGURE, j({}, e, { srcObj: i }), [i]),
3352                    (this.awaitSink = new b(function (e, n) {
3353                      o.sink
3354                        .then(function (n) {
3355                          ;(t.handleCreateSuccess(n), e())
3356                        })
3357                        .catch(function (e) {
3358                          ;(t.handleCreateError(e), n())
3359                        })
3360                    })))
3361                }
3362                ;(this.awaitSink || (!this.isContentProtectionChanging(e) && !this.isChangingToFromAudioOnly(e)) || this.queueNewSink(),
3363                  e.isProtected && this.sendMessageToClient(a.CONFIGURE, e),
3364                  this.invoke({ name: 'addTrack', arg: j({}, X, e) }))
3365              } else this.sendMessageToClient(a.CONFIGURE, e)
3366            }),
3367            (o.addTrack = function (e) {
3368              var t = e.trackID,
3369                n = e.codec,
3370                r = e.group,
3371                o = e.isProtected
3372              this.mseSink.addTrack(t, n, r, o)
3373            }),
3374            (o.enqueue = function (e) {
3375              var t = e.trackID,
3376                n = e.buffer
3377              this.mseSink.append(t, n)
3378            }),
3379            (o.remove = function (e) {
3380              var t = e.start,
3381                n = e.end
3382              this.mseSink.remove(t, n)
3383            }),
3384            (o.setTimestampOffset = function (e) {
3385              var t = e.trackID,
3386                n = e.offset
3387              this.mseSink.setTimestampOffset(t, n)
3388            }),
3389            (o.onSourceDurationChanged = function (e) {
3390              var t = this.mseSink,
3391                n = t.duration,
3392                r = (function (e, t, n) {
3393                  var r = e
3394                  return (e === 1 / 0 || e === B ? (n ? (r = 1 / 0) : n || (r = B)) : e !== t && (r = e), r)
3395                })(e, n, this.nativeControlsEnabled)
3396              r !== n && t.setDuration(r)
3397            }),
3398            (o.play = function () {
3399              var e = this
3400              ;((this.paused = !1),
3401                this.mseSink.scheduleUpdate().then(function () {
3402                  return e.sendRPC({ name: 'play', arg: void 0 })
3403                }))
3404            }),
3405            (o.pause = function () {
3406              var e = this
3407              ;((this.paused = !0),
3408                this.mseSink.scheduleUpdate().then(function () {
3409                  return e.sendRPC({ name: 'pause', arg: void 0 })
3410                }))
3411            }),
3412            (o.seekTo = function (e) {
3413              var t = this
3414              this.mseSink.scheduleUpdate().then(function () {
3415                return t.sendRPC({ name: 'seekTo', arg: e })
3416              })
3417            }),
3418            (o.setVolume = function (e) {
3419              this.sendRPC({ name: 'setVolume', arg: e })
3420            }),
3421            (o.setMuted = function (e) {
3422              this.sendRPC({ name: 'setMuted', arg: e })
3423            }),
3424            (o.setPlaybackRate = function (e) {
3425              this.sendRPC({ name: 'setPlaybackRate', arg: e })
3426            }),
3427            (o.endOfStream = function () {
3428              var e = this
3429              this.mseSink.scheduleUpdate().then(function () {
3430                return e.sendRPC({ name: 'endOfStream', arg: void 0 })
3431              })
3432            }),
3433            (o.changeSrcObj = function (e) {
3434              this.sendRPC({ name: 'changeSrcObj', arg: e }, [e])
3435            }),
3436            (o.unblockIfWaitingForIdle = function () {
3437              var e
3438              ;(null == (e = this.resolveIdleDeferral) || e.call(this), (this.resolveIdleDeferral = void 0))
3439            }),
3440            (o.reset = function () {
3441              ;(this.destroyMSESink(), this.sendMessageToClient(a.RESET))
3442            }),
3443            (o.delete = function () {
3444              ;(this.destroyMSESink(), this.sendMessageToClient(a.DESTROY))
3445            }),
3446            (o.invokeSync = function (e) {
3447              this[e.name].call(this, e.arg)
3448            }),
3449            (o.invokeAsync = function (e) {
3450              var t = this
3451              this.awaitSink
3452                .then(function () {
3453                  return t.invokeSync(e)
3454                })
3455                .catch(function () {})
3456            }),
3457            (o.handleCreateSuccess = function (e) {
3458              ;((this.mseSink = e), (this.awaitSink = void 0), this.onSourceDurationChanged(B), this.mseSink.setLiveSeekableRange(0, B))
3459            }),
3460            (o.handleCreateError = function (e) {
3461              ;(this.sendMessageToCore('onClientSinkError', [4, 4, e.toString()]), (this.awaitSink = void 0))
3462            }),
3463            (o.queueNewSink = function () {
3464              var e = this
3465              this.awaitSink = new b(function (t, n) {
3466                e.deferUntilIdle()
3467                  .then(function () {
3468                    var t = V.create(e.onMediaSourceEnded.bind(e), e.onMediaSourceError.bind(e))
3469                    return (e.changeSrcObj(t.ms.handle), t.sink)
3470                  })
3471                  .then(function (n) {
3472                    ;(e.destroyMSESink(), e.handleCreateSuccess(n), e.play(), t())
3473                  })
3474                  .catch(function (t) {
3475                    ;(e.handleCreateError(t), n())
3476                  })
3477              })
3478            }),
3479            (o.isContentProtectionChanging = function (e) {
3480              var t, n
3481              return (null != (t = null == (n = this.mseSink) ? void 0 : n.isDrmProtected()) && t) !== e.isProtected
3482            }),
3483            (o.isChangingToFromAudioOnly = function (e) {
3484              var t, n
3485              return (null != (t = null == (n = this.mseSink) ? void 0 : n.isAudioOnly()) && t) !== ('audio_only' === e.group)
3486            }),
3487            (o.deferUntilIdle = function () {
3488              var e = this,
3489                t = this.mseSink
3490              return new b(function (n) {
3491                t && !e.paused ? (e.resolveIdleDeferral = n) : n()
3492              })
3493            }),
3494            (o.onMediaSourceError = function (e, t, n, r) {
3495              var o = [e, t, n]
3496              ;(n.includes('HTMLMediaElement.error') && ((r = !0), this.destroyMSESink()),
3497                r ? this.sendMessageToCore('onClientSinkError', o) : this.sendMessageToCore('onClientSinkRecoverableError', o))
3498            }),
3499            (o.onMediaSourceEnded = function () {
3500              ;(this.destroyMSESink(), this.sendMessageToCore('onClientSinkReset', void 0))
3501            }),
3502            (o.destroyMSESink = function () {
3503              var e = this,
3504                t = function () {
3505                  ;(e.mseSink.destroy(), (e.awaitSink = void 0), (e.mseSink = void 0), (e.paused = !0))
3506                }
3507              this.mseSink
3508                ? t()
3509                : this.awaitSink &&
3510                  this.awaitSink.then(function () {
3511                    return t()
3512                  })
3513            }),
3514            U(t, [
3515              {
3516                key: 'controls',
3517                set: function (e) {
3518                  ;((this.nativeControlsEnabled = e), this.mseSink && this.invoke({ name: 'onSourceDurationChanged', arg: this.mseSink.duration }))
3519                },
3520              },
3521            ])
3522          )
3523        })(
3524          (function () {
3525            function e() {}
3526            var t = e.prototype
3527            return (
3528              (t.addTrack = function (e) {}),
3529              (t.bufferDuration = function () {
3530                return 0
3531              }),
3532              (t.buffered = function () {
3533                return { start: 0, end: 0 }
3534              }),
3535              (t.getBufferedRanges = function (e) {
3536                return []
3537              }),
3538              (t.captureGesture = function () {}),
3539              (t.configure = function (e) {}),
3540              (t.delete = function () {}),
3541              (t.endOfStream = function () {}),
3542              (t.enqueue = function (e) {}),
3543              (t.getCurrentTime = function () {
3544                return 0
3545              }),
3546              (t.getPlaybackRate = function () {
3547                return 0
3548              }),
3549              (t.getVolume = function () {
3550                return 0
3551              }),
3552              (t.invoke = function (e) {
3553                this[e.name].call(this, e.arg)
3554              }),
3555              (t.isMuted = function () {
3556                return !1
3557              }),
3558              (t.onSourceDurationChanged = function (e) {}),
3559              (t.pause = function () {}),
3560              (t.play = function () {}),
3561              (t.reinit = function () {}),
3562              (t.remove = function (e) {}),
3563              (t.seekTo = function (e) {}),
3564              (t.setMuted = function (e) {}),
3565              (t.setPlaybackRate = function (e) {}),
3566              (t.setTimestampOffset = function (e) {}),
3567              (t.setVolume = function (e) {}),
3568              (t.changeSrc = function (e) {}),
3569              (t.changeSrcObj = function (e) {}),
3570              (t.onSegmentDiscontinuity = function () {}),
3571              e
3572            )
3573          })(),
3574        ),
3575        X = { trackID: 0, codec: 'codecs="magic"', mode: 'mse-worker', isProtected: !1, path: '', group: '', srcObj: null },
3576        J = { powerEfficient: !0, smooth: !0, supported: !0 }
3577      function Q(e) {
3578        return Z.apply(this, arguments)
3579      }
3580      function Z() {
3581        return (Z = M(
3582          I().mark(function e(t) {
3583            var n, r, o, i, a, s
3584            return I().wrap(
3585              function (e) {
3586                for (;;)
3587                  switch ((e.prev = e.next)) {
3588                    case 0:
3589                      if (navigator.mediaCapabilities) {
3590                        e.next = 3
3591                        break
3592                      }
3593                      return (console.log('MediaCapabilities is not supported'), e.abrupt('return', J))
3594                    case 3:
3595                      if (t.codecs) {
3596                        e.next = 6
3597                        break
3598                      }
3599                      return (console.log('MediaCapabilities: codec string is empty or undefined:', t.codecs), e.abrupt('return', J))
3600                    case 6:
3601                      if (((n = t.codecs.split(',')), !t.height)) {
3602                        e.next = 14
3603                        break
3604                      }
3605                      ;((i = t.framerate),
3606                        t.framerate || ((i = 30), console.log('MediaCapabilities: quality framerate not found, defaulting to 30fps')),
3607                        (r = { contentType: 'video/mp4;codecs="' + n[0] + '"', width: t.width, height: t.height, bitrate: t.bitrate, framerate: i }),
3608                        2 === n.length && (o = { contentType: 'audio/mp4;
3608codecs="' + n[1] + '"' }),
3609                        (e.next = 20))
3610                      break
3611                    case 14:
3612                      if (1 !== n.length) {
3613                        e.next = 18
3614                        break
3615                      }
3616                      ;((o = { contentType: 'audio/mp4;codecs="' + n[0] + '"' }), (e.next = 20))
3617                      break
3618                    case 18:
3619                      return (console.log('MediaCapabilities: quality looks like it has video, but height is invalid', t), e.abrupt('return', J))
3620                    case 20:
3621                      return ((a = { type: 'media-source', video: r, audio: o }), (e.prev = 21), (e.next = 24), navigator.mediaCapabilities.decodingInfo(a))
3622                    case 24:
3623                      return ((s = e.sent), e.abrupt('return', { powerEfficient: s.powerEfficient, smooth: s.smooth, supported: s.supported }))
3624                    case 28:
3625                      return ((e.prev = 28), (e.t0 = e.catch(21)), console.warn('MediaCapabilities: Failed to get DecodingInfo', e.t0), e.abrupt('return', J))
3626                    case 32:
3627                    case 'end':
3628                      return e.stop()
3629                  }
3630              },
3631              e,
3632              null,
3633              [[21, 28]],
3634            )
3635          }),
3636        )).apply(this, arguments)
3637      }
3638      var ee = (function () {
3639        function e(e, t, n, r, o) {
3640          var a = this
3641          ;((this.id = void 0),
3642            (this.port = void 0),
3643            (this.module = void 0),
3644            (this.player = void 0),
3645            (this.playerFactory = void 0),
3646            (this.workerSink = new K(this.postMessage.bind(this), this.onClientMessage.bind(this))),
3647            (this.startCapture = void 0),
3648            (this.stopCapture = void 0),
3649            (this.requestCaptureAnalytics = void 0),
3650            (this.captureEntireSegmentBytes = void 0),
3651            (this.id = t),
3652            (this.port = e),
3653            (this.module = n),
3654            (this.playerFactory = function (e) {
3655              return new a.module.WebMediaPlayer(e, r, o)
3656            }),
3657            (this.player = this.playerFactory(this)),
3658            this.postMessage(i.INITIALIZED))
3659        }
3660        var t = e.prototype
3661        return (
3662          (t.recreatePlayer = function () {
3663            ;(this.port.postMessage('recreatePlayer'), (this.player = this.playerFactory(this)))
3664          }),
3665          (t.getPointer = function () {
3666            return this.player.$$.ptr
3667          }),
3668          (t.onClientMessage = function (e, t) {
3669            var n
3670            ;(this.applyMessageToSink(e, t), 'function' == typeof this.player[e] ? (n = this.player)[e].apply(n, t) : this[e])
3671          }),
3672          (t.getDecodingInfo = function (e) {
3673            this.postMessage(a.GET_DECODE_INFO, e)
3674          }),
3675          (t.onExperiments = function (e) {
3676            this.postMessage(a.GET_EXPERIMENTS, e)
3677          }),
3678          (t.onSessionData = function (e) {
3679            this.postMessage(i.SESSION_DATA, { sessionData: e })
3680          }),
3681          (t.onStateChanged = function (e) {
3682            this.postMessage(a.STATE_CHANGED, e)
3683          }),
3684          (t.onSyncTimeChanged = function (e) {
3685            this.postMessage(a.SYNC_TIME_CHANGED, e)
3686          }),
3687          (t.onSegmentDiscontinuity = function () {
3688            this.postMessage(i.SEGMENT_DISCONTINUITY)
3689          }),
3690          (t.onNetworkUnavailable = function () {
3691            this.postMessage(i.NETWORK_UNAVAILABLE)
3692          }),
3693          (t.onRebuffering = function () {
3694            this.postMessage(i.REBUFFERING)
3695          }),
3696          (t.onQualityChanged = function (e) {
3697            this.postMessage(i.QUALITY_CHANGED, e)
3698          }),
3699          (t.onSeekCompleted = function (e) {
3700            this.postMessage(i.SEEK_COMPLETED, e)
3701          }),
3702          (t.onDurationChanged = function (e) {
3703            ;(this.postMessage(i.DURATION_CHANGED, e), this.workerSink.invoke({ name: 'onSourceDurationChanged', arg: e }))
3704          }),
3705          (t.onBufferedRanges = function (e, t) {
3706            this.postMessage(a.BUFFERED_RANGES, { audio: e, video: t })
3707          }),
3708          (t.onJSONMetadata = function (e) {
3709            var t,
3710              n,
3711              r = ne(e)
3712            ;('ID3' in r ? ((t = N.ID3), (n = r.ID3)) : 'caption' in r && ((t = N.CAPTION), (n = r.caption)), t && this.postMessage(t, n))
3713          }),
3714          (t.onMetadata = function (e, t) {
3715            if (t.buffer) {
3716              var n = new Uint8Array(t).buffer
3717              this.postMessage(i.METADATA, { type: e, data: n }, [n])
3718            } else this.postMessage(i.METADATA, { type: e, data: t })
3719          }),
3720          (t.onCue = function (e) {
3721            if ('TextCue' === e.type) this.postMessage(i.TEXT_CUE, e)
3722            else if ('TextMetadataCue' === e.type) {
3723              var t = e
3724              if ((this.postMessage(i.TEXT_METADATA_CUE, e), 'segmentmetadata' === t.description && t.text))
3725                try {
3726                  var n = JSON.parse(t.text)
3727                  void 0 !== n.stream_offset && this.postMessage(i.SEGMENT_METADATA, { streamOffset: n.stream_offset })
3728                } catch (e) {}
3729            } else 'AdCue' === e.type ? this.postMessage(i.AD_CUE, e) : 'StreamSourceCue' === e.type && this.postMessage(i.STREAM_SOURCE_CUE, e)
3730          }),
3731          (t.onError = function (e, t, n, r) {
3732            this.postMessage(i.ERROR, { type: e, code: t, source: n, message: r })
3733          }),
3734          (t.onRecoverableError = function (e, t, n, r) {
3735            this.postMessage(i.RECOVERABLE_ERROR, { type: e, code: t, source: n, message: r })
3736          }),
3737          (t.onAnalyticsEvent = function (e, t) {
3738            var n = ne(t)
3739            this.postMessage(i.ANALYTICS_EVENT, { name: e, properties: n })
3740          }),
3741          (t.configure = function (e, t, n, r, o, i) {
3742            this.workerSink.configure({ trackID: e, codec: t, path: n, mode: r, isProtected: o, group: i, srcObj: null })
3743          }),
3744          (t.enqueue = function (e, t) {
3745            var n = new Uint8Array(t).buffer
3746            this.workerSink.invoke({ name: 'enqueue', arg: { trackID: e, buffer: n } }, [n])
3747          }),
3748          (t.endOfStream = function () {
3749            this.workerSink.invoke({ name: 'endOfStream', arg: void 0 })
3750          }),
3751          (t.setTimestampOffset = function (e, t) {
3752            this.workerSink.invoke({ name: 'setTimestampOffset', arg: { trackID: e, offset: t } })
3753          }),
3754          (t.play = function () {
3755            this.workerSink.invoke({ name: 'play', arg: void 0 })
3756          }),
3757          (t.pause = function () {
3758            this.workerSink.invoke({ name: 'pause', arg: void 0 })
3759          }),
3760          (t.reset = function () {
3761            this.workerSink.reset()
3762          }),
3763          (t.remove = function (e, t) {
3764            this.workerSink.invoke({ name: 'remove', arg: { start: e, end: t } })
3765          }),
3766          (t.seekTo = function (e) {
3767            this.workerSink.invoke({ name: 'seekTo', arg: e })
3768          }),
3769          (t.setPlaybackRate = function (e) {
3770            ;(this.workerSink.invoke({ name: 'setPlaybackRate', arg: e }), this.postMessage(i.PLAYBACK_RATE_CHANGED, e))
3771          }),
3772          (t.setVolume = function (e) {
3773            this.workerSink.invoke({ name: 'setVolume', arg: e })
3774          }),
3775          (t.addCue = function (e, t, n) {
3776            this.postMessage(a.ADD_CUE, { id: e, start: t, end: n })
3777          }),
3778          (t.getMediaCapabilities = function (e) {
3779            var t = this
3780            Promise.all(
3781              e.map(
3782                (function () {
3783                  var e = M(
3784                    I().mark(function e(t) {
3785                      return I().wrap(function (e) {
3786                        for (;;)
3787                          switch ((e.prev = e.next)) {
3788                            case 0:
3789                              return ((e.t0 = t), (e.next = 3), Q(t))
3790                            case 3:
3791                              return ((e.t1 = e.sent), e.abrupt('return', { quality: e.t0, decodingInfo: e.t1 }))
3792                            case 5:
3793                            case 'end':
3794                              return e.stop()
3795                          }
3796                      }, e)
3797                    }),
3798                  )
3799                  return function (t) {
3800                    return e.apply(this, arguments)
3801                  }
3802                })(),
3803              ),
3804            )
3805              .then(function (e) {
3806                ;(console.log('MediaCapabilities found', e), t.onClientMessage('onMediaCapabilities', [e]))
3807              })
3808              .catch(function (e) {
3809                ;(console.warn('Failed to retrieve mediaCapabilites', e), t.onClientMessage('onMediaCapabilities', []))
3810              })
3811          }),
3812          (t.onPropertyChanged = function (e, t) {
3813            this.postMessage(a.PROPERTY_CHANGED, { key: e, value: t })
3814          }),
3815          (t.postMessage = function (e, t, n) {
3816            te(this.port, this.id, e, t, n)
3817          }),
3818          (t.applyMessageToSink = function (e, t) {
3819            switch (e) {
3820              case 'delete':
3821                this.workerSink.delete()
3822                break
3823              case 'setControls':
3824                this.workerSink.controls = t[0]
3825                break
3826              case 'onClientSinkIdle':
3827                this.workerSink.unblockIfWaitingForIdle()
3828            }
3829          }),
3830          e
3831        )
3832      })()
3833      function te(e, t, n, r, o) {
3834        e.postMessage({ id: t, type: n, arg: r }, o)
3835      }
3836      function ne(e) {
3837        try {
3838          return JSON.parse(e)
3839        } catch (t) {
3840          return (console.error('Failed JSON parse:', e), {})
3841        }
3842      }
3843      var re,
3844        oe = 4,
3845        ie = 2
3846      ;(re = 'undefined' == typeof messageHandler ? self : messageHandler).onmessage = function (e) {
3847        var t = new ae(re)
3848        ;((re.onmessage = function (e) {
3849          return t.dispatch(e)
3850        }),
3851          (function (e, t) {
3852            var n,
3853              o,
3854              i,
3855              a = {
3856                locateFile: function () {
3857                  return t.wasmBinaryUrl
3858                },
3859                sendFetchRequest: function (e, t, r, o) {
3860                  return (function (e, t, n, r, o) {
3861                    var i = null
3862                    'undefined' != typeof AbortController && ((i = new AbortController()), (r.signal = i.signal))
3863                    var a = new O(e, i),
3864                      s = -1
3865                    function u() {
3866                      ;(-1 !== s && clearTimeout(s), t.delete())
3867                    }
3868                    return (
3869                      o > 0 &&
3870                        (s = self.setTimeout(function () {
3871                          return a.abort()
3872                        }, o)),
3873                      T(n, r)
3874                        .then(function (e) {
3875                          ;(a.setResponse(e), a.cancelled || t.response(a))
3876                        })
3877                        .catch(function (e) {
3878                          a.cancelled || t.error('AbortError' === e.name, e.message)
3879                        })
3880                        .then(u, u),
3881                      function () {
3882                        return a.cancel()
3883                      }
3884                    )
3885                  })(n, e, t, r, o)
3886                },
3887                onAbort: function (r) {
3888                  if (n) {
3889                    var o,
3890                      i = null != (o = Error().stack) ? o : 'Stack information not available'
3891                    if (t.showWorkerLogs) return void e.logMessage('error', r + '\n' + JSON.stringify(i))
3892                    ;
3892(s(r), s(JSON.stringify(i).replace(/\\n/g, '\n')))
3893                    var a = JSON.stringify({ logList: n.getLogListAndClear(), stack: i })
3894                    e.sendErrorMessage(a, 0)
3895                  } else console.error(r)
3896                },
3897                logMessage: function (r, o) {
3898                  if (t.showWorkerLogs) {
3899                    var i = 'log'
3900                    return (r & oe ? (i = 'error') : r & ie && (i = 'warn'), void e.logMessage(i, o))
3901                  }
3902                  ;(n._emscripten_log_js(r, o), s(o))
3903                },
3904                getLogListAndClear: function () {
3905                  var e = n.logList
3906                  return ((n.logList = []), e)
3907                },
3908                print: function (e) {
3909                  ;(s(e), console.log(e))
3910                },
3911                printErr: function (e) {
3912                  ;(s(e), console.warn(e))
3913                },
3914                copyUint8ArrayToEmscriptenHeap:
3915                  ((o = 0),
3916                  (i = 0),
3917                  function (e, t) {
3918                    void 0 === t && (t = !1)
3919                    var r = e.byteLength
3920                    if (t) {
3921                      var a = n._malloc(r)
3922                      return (n.HEAPU8.set(e, a), a)
3923                    }
3924                    return (r > i && (o && n._free(o), (o = n._malloc(r)), (i = r)), n.HEAPU8.set(e, o), o)
3925                  }),
3926              }
3927            r(a).then(function (t) {
3928              ;((n = t), e.ready(n))
3929            })
3930            var s = function (e) {
3931              n && n.collectLogs && n.logList.push(e)
3932            }
3933          })(t, e.data))
3934      }
3935      var ae = (function () {
3936        function e(e) {
3937          ;((this.activePlayers = void 0),
3938            (this.port = void 0),
3939            (this.eventQueue = void 0),
3940            (this.module = void 0),
3941            (this.activePlayers = Object.create(null)),
3942            (this.port = e),
3943            (this.eventQueue = []),
3944            (this.module = null))
3945        }
3946        var t = e.prototype
3947        return (
3948          (t.dispatch = function (e) {
3949            var t = this
3950            if (null !== this.module) {
3951              if (!this.module.skipEvents) {
3952                var n = e.data,
3953                  r = n.id,
3954                  a = n.funcName,
3955                  s = n.args
3956                try {
3957                  if ('create' === a) {
3958                    var u = s,
3959                      c = u[0],
3960                      f = u[1]
3961                    return (
3962                      (this.activePlayers[r] = new ee(this.port, r, this.module, c, f)),
3963                      void (
3964                        !0 === c.testOnly &&
3965                        ((this.module.recreatePlayer = function () {
3966                          var e
3967                          null == (e = t.activePlayers[r]) || e.recreatePlayer()
3968                        }),
3969                        (this.module.getPointer = function () {
3970                          var e, n
3971                          return ((t.module.skipEvents = !1), null != (e = null == (n = t.activePlayers[r]) ? void 0 : n.getPointer()) ? e : 0)
3972                        }),
3973                        (this.module.skipWorkerMessage = function () {
3974                          t.module.skipEvents = !0
3975                        }))
3976                      )
3977                    )
3978                  }
3979                  if ('runTests' === a)
3980                    return ((this.module.collectLogs = !0), (this.module.logList = []), (this.module.cliOptions = s[0]), void this.module._runTests())
3981                  if (!this.activePlayers[r]) return
3982                  ;(this.activePlayers[r].onClientMessage(a, s), 'delete' === a && (this.activePlayers[r] = null))
3983                } catch (e) {
3984                  ;(console.warn(e), this.activePlayers[r] && te(this.port, r, i.WORKER_ERROR, { code: o.GENERIC, source: 'worker', message: e.message }))
3985                }
3986              }
3987            } else this.eventQueue.push(e)
3988          }),
3989          (t.ready = function (e) {
3990            ;((this.module = e), this.eventQueue.forEach(this.dispatch, this), (this.eventQueue = []))
3991          }),
3992          (t.logMessage = function (e, t) {
3993            te(this.port, 0, a.LOG_MESSAGE, { level: e, message: t })
3994          }),
3995          (t.sendErrorMessage = function (e, t) {
3996            te(this.port, t, i.WORKER_ERROR, { code: o.GENERIC, source: 'worker', message: e })
3997          }),
3998          e
3999        )
4000      })()
4001    })())
4002})()

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.