1function _array_like_to_array(arr, len) { 2 if (len == null || len > arr.length) len = arr.length; 3 for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i]; 4 return arr2; 5} 6function _array_with_holes(arr) { 7 if (Array.isArray(arr)) return arr; 8} 9function _array_without_holes(arr) { 10 if (Array.isArray(arr)) return _array_like_to_array(arr); 11} 12function _assert_this_initialized(self1) { 13 if (self1 === void 0) { 14 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 15 } 16 return self1; 17} 18function _class_call_check(instance, Constructor) { 19 if (!(instance instanceof Constructor)) { 20 throw new TypeError("Cannot call a class as a function"); 21 } 22} 23function _defineProperties(target, props) { 24 for(var i = 0; i < props.length; i++){ 25 var descriptor = props[i]; 26 descriptor.enumerable = descriptor.enumerable || false; 27 descriptor.configurable = true; 28 if ("value" in descriptor) descriptor.writable = true; 29 Object.defineProperty(target, descriptor.key, descriptor); 30 } 31} 32function _create_class(Constructor, protoProps, staticProps) { 33 if (protoProps) _defineProperties(Constructor.prototype, protoProps); 34 if (staticProps) _defineProperties(Constructor, staticProps); 35 return Constructor; 36} 37function _define_property(obj, key, value) { 38 if (key in obj) { 39 Object.defineProperty(obj, key, { 40 value: value, 41 enumerable: true, 42 configurable: true, 43 writable: true 44 }); 45 } else { 46 obj[key] = value; 47 } 48 return obj; 49} 50function _get(target, property, receiver) { 51 if (typeof Reflect !== "undefined" && Reflect.get) { 52 _get = Reflect.get; 53 } else { 54 _get = function get(target, property, receiver) { 55 var base = _super_prop_base(target, property); 56 if (!base) return; 57 var desc = Object.getOwnPropertyDescriptor(base, property); 58 if (desc.get) { 59 return desc.get.call(receiver || target); 60 } 61 return desc.value; 62 }; 63 } 64 return _get(target, property, receiver || target); 65} 66function _get_prototype_of(o) { 67 _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) { 68 return o.__proto__ || Object.getPrototypeOf(o); 69 }; 70 return _get_prototype_of(o); 71} 72function _inherits(subClass, superClass) { 73 if (typeof superClass !== "function" && superClass !== null) { 74 throw new TypeError("Super expression must either be null or a function"); 75 } 76 subClass.prototype = Object.create(superClass && superClass.prototype, { 77 constructor: { 78 value: subClass, 79 writable: true, 80 configurable: true 81 } 82 }); 83 if (superClass) _set_prototype_of(subClass, superClass); 84} 85function _instanceof(left, right) { 86 if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { 87 return !!right[Symbol.hasInstance](left); 88 } else { 89 return left instanceof right; 90 } 91} 92function _iterable_to_array(iter) { 93 if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); 94} 95function _iterable_to_array_limit(arr, i) { 96 var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; 97 if (_i == null) return; 98 var _arr = []; 99 var _n = true; 100 var _d = false; 101 var _s, _e; 102 try { 103 for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){ 104 _arr.push(_s.value); 105 if (i && _arr.length === i) break; 106 } 107 } catch (err) { 108 _d = true; 109 _e = err; 110 } finally{ 111 try { 112 if (!_n && _i["return"] != null) _i["return"](); 113 } finally{ 114 if (_d) throw _e; 115 } 116 } 117 return _arr; 118} 119function _non_iterable_rest() { 120 throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); 121} 122function _non_iterable_spread() { 123 throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); 124} 125function _possible_constructor_return(self1, call) { 126 if (call && (_type_of(call) === "object" || typeof call === "function")) { 127 return call; 128 } 129 return _assert_this_initialized(self1); 130} 131function _set_prototype_of(o, p) { 132 _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) { 133 o.__proto__ = p; 134 return o; 135 }; 136 return _set_prototype_of(o, p); 137} 138function _sliced_to_array(arr, i) { 139 return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest(); 140} 141function _super_prop_base(object, property) { 142 while(!Object.prototype.hasOwnProperty.call(object, property)){ 143 object = _get_prototype_of(object); 144 if (object === null) break; 145 } 146 return object; 147} 148function _to_consumable_array(arr) { 149 return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread(); 150} 151function _type_of(obj) { 152 "@swc/helpers - typeof"; 153 return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; 154} 155function _unsupported_iterable_to_array(o, minLen) { 156 if (!o) return; 157 if (typeof o === "string") return _array_like_to_array(o, minLen); 158 var n = Object.prototype.toString.call(o).slice(8, -1); 159 if (n === "Object" && o.constructor) n = o.constructor.name; 160 if (n === "Map" || n === "Set") return Array.from(n); 161 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen); 162} 163function _is_native_reflect_construct() { 164 if (typeof Reflect === "undefined" || !Reflect.construct) return false;
165 if (Reflect.construct.sham) return false; 166 if (typeof Proxy === "function") return true; 167 try { 168 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})); 169 return true; 170 } catch (e) { 171 return false; 172 } 173} 174function _create_super(Derived) { 175 var hasNativeReflectConstruct = _is_native_reflect_construct(); 176 return function _createSuperInternal() { 177 var Super = _get_prototype_of(Derived), result; 178 if (hasNativeReflectConstruct) { 179 var NewTarget = _get_prototype_of(this).constructor; 180 result = Reflect.construct(Super, arguments, NewTarget); 181 } else { 182 result = Super.apply(this, arguments); 183 } 184 return _possible_constructor_return(this, result); 185 }; 186} 187(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([ 188 [ 189 6514 190 ], 191 { 192 3413: function(t, e, r) { 193 "use strict"; 194 var i = function i(t, e, r) { 195 return 0 === e || Math.abs(e) === 1 / 0 ? Math.pow(t, 5 * r) : t * e * r / (e + r * t); 196 }; 197 var o = function o(t, e, r) { 198 var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : .15; 199 return 0 === n ? Math.max(e, Math.min(t, r)) : t < e ? -i(e - t, r - e, n) + e : t > r ? +i(t - r, r - e, n) + r : t; 200 }; 201 var s = function s(t, e, r) { 202 var n; 203 return (e = "symbol" == _type_of(n = function(t, e) { 204 if ("object" != typeof t || null === t) return t; 205 var _$r = t[Symbol.toPrimitive]; 206 if (void 0 !== _$r) { 207 var n = _$r.call(t, e || "default"); 208 if ("object" != typeof n) return n; 209 throw TypeError("@@toPrimitive must return a primitive value."); 210 } 211 return ("string" === e ? String : Number)(t); 212 }(e, "string")) ? n : String(n)) in t ? Object.defineProperty(t, e, { 213 value: r, 214 enumerable: !0, 215 configurable: !0, 216 writable: !0 217 }) : t[e] = r, t; 218 }; 219 var a = function a(t, e) { 220 var _$r = Object.keys(t); 221 if (Object.getOwnPropertySymbols) { 222 var n = Object.getOwnPropertySymbols(t); 223 e && (n = n.filter(function(e) { 224 return Object.getOwnPropertyDescriptor(t, e).enumerable; 225 })), _$r.push.apply(_$r, n); 226 } 227 return _$r; 228 }; 229 var u = function u(t) { 230 for(var _$e = 1; _$e < arguments.length; _$e++){ 231 var _$r = null != arguments[_$e] ? arguments[_$e] : {}; 232 _$e % 2 ? a(Object(_$r), !0).forEach(function(e) { 233 s(t, e, _$r[e]); 234 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(_$r)) : a(Object(_$r)).forEac
234h(function(e) { 235 Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(_$r, e)); 236 }); 237 } 238 return t; 239 }; 240 var l = function l(t) { 241 return t ? t[0].toUpperCase() + t.slice(1) : ""; 242 }; 243 var p = function p(t) { 244 return "touches" in t; 245 }; 246 var d = function d(t) { 247 return p(t) ? "touch" : "pointerType" in t ? t.pointerType : "mouse"; 248 }; 249 var y = function y(t) { 250 return p(t) ? ("touchend" === t.type || "touchcancel" === t.type ? t.changedTouches : t.targetTouches)[0] : t; 251 }; 252 var g = function g(t) { 253 var _$e = y(t); 254 return p(t) ? _$e.identifier : _$e.pointerId; 255 }; 256 var m = function m(t) { 257 var _$e = y(t); 258 return [ 259 _$e.clientX, 260 _$e.clientY 261 ]; 262 }; 263 var b = function b(t) { 264 for(var _len = arguments.length, _$e = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){ 265 _$e[_key - 1] = arguments[_key]; 266 } 267 return "function" == typeof t ? t.apply(void 0, _to_consumable_array(_$e)) : t; 268 }; 269 var v = function v() {}; 270 var w = function w(t, e) { 271 return Object.assign({}, e, t || {}); 272 }; 273 var C = function C() { 274 return R && "ontouchstart" in window || R && window.navigator.maxTouchPoints > 1; 275 }; 276 var K = function K(t, e) { 277 t.gestures.add(e), t.gestureEventStores[e] = new z(t, e), t.gestureTimeoutStores[e] = new q; 278 }; 279 var J = function J(t, e) { 280 return U.set(I.key, I.engine), L.set(I.key, I.resolver), function(t) { 281 var _$e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, _$r = arguments.length > 2 ? arguments[2] : void 0, n = arguments.length > 3 ? arguments[3] : void 0; 282 var i = D.useMemo(function() { 283 return new H(t); 284 }, []); 285 if (i.applyHandlers(t, void 0), i.applyConfig(_$e, _$r), D.useEffect(i.effect.bind(i)), D.useEffect(function() { 286 return i.clean.bind(i); 287 }, []), void 0 === _$e.target) return i.bind.bind(i); 288 }({ 289 drag: t 290 }, e || {}, "drag"); 291 }; 292 r.d(e, { 293 useDrag: function useDrag() { 294 return J; 295 } 296 }); 297 var n = { 298 toVector: function(t, e) { 299 return void 0 === t && (t = e), Array.isArray(t) ? t : [ 300 t, 301 t 302 ]; 303 }, 304 add: function(t, e) { 305 return [ 306 t[0] + e[0], 307 t[1] + e[1] 308 ]; 309 }, 310 sub: function(t, e) { 311 return [ 312 t[0] - e[0], 313 t[1] - e[1] 314 ]; 315 }, 316 addTo: function addTo(t, e) { 317 t[0] += e[0], t[1] += e[1]; 318 }, 319 subTo: function subTo(t, e) { 320 t[0] -= e[0], t[1] -= e[1]; 321 } 322 }; 323 var f = { 324 pointer: { 325 start: "down", 326 change: "move", 327 end: "up" 328 }, 329 mouse: { 330 start: "down", 331 change: "move", 332 end: "up" 333 }, 334 touch: { 335 start: "start", 336 change: "move", 337 end: "end" 338 }, 339 gesture: { 340 start: "start", 341 change: "change", 342 end: "end" 343 } 344 }; 345 var c = [ 346 "enter", 347 "leave" 348 ], h = [ 349 "gotpointercapture", 350 "lostpointercapture" 351 ]; 352 var E = /*#__PURE__*/ function() { 353 function E(t, e, r) { 354 _class_call_check(this, E); 355 this.ctrl = t, this.args = e, this.key = r, this.state || (this.state = {}, this.computeValues([ 356 0, 357 0 358 ]), this.computeInitial(), this.init && this.init(), this.reset()); 359 } 360 _create_class(E, [ 361 { 362 key: "state", 363 get: function get() {
364 return this.ctrl.state[this.key]; 365 }, 366 set: function set(t) { 367 this.ctrl.state[this.key] = t; 368 } 369 }, 370 { 371 key: "shared", 372 get: function get() { 373 return this.ctrl.state.shared; 374 } 375 }, 376 { 377 key: "eventStore", 378 get: function get() { 379 return this.ctrl.gestureEventStores[this.key]; 380 } 381 }, 382 { 383 key: "timeoutStore", 384 get: function get() { 385 return this.ctrl.gestureTimeoutStores[this.key]; 386 } 387 }, 388 { 389 key: "config", 390 get: function get() { 391 return this.ctrl.config[this.key]; 392 } 393 }, 394 { 395 key: "sharedConfig", 396 get: function get() { 397 return this.ctrl.config.shared; 398 } 399 }, 400 { 401 key: "handler", 402 get: function get() { 403 return this.ctrl.handlers[this.key]; 404 } 405 }, 406 { 407 key: "reset", 408 value: function reset() { 409 var _this = this, t = _this.state, _$e = _this.shared, _$r = _this.ingKey, n = _this.args; 410 _$e[_$r] = t._active = t.active = t._blocked = t._force = !1, t._step = [ 411 !1, 412 !1 413 ], t.intentional = !1, t._movement = [ 414 0, 415 0 416 ], t._distance = [ 417 0, 418 0 419 ], t._direction = [ 420 0, 421 0 422 ], t._delta = [ 423 0, 424 0 425 ], t._bounds = [ 426 [ 427 -1 / 0, 428 1 / 0 429 ], 430 [ 431 -1 / 0, 432 1 / 0 433 ] 434 ], t.args = n, t.axis = void 0, t.memo = void 0, t.elapsedTime = t.timeDelta = 0, t.direction = [ 435 0, 436 0 437 ], t.distance = [ 438 0, 439 0 440 ], t.overflow = [ 441 0, 442 0 443 ], t._movementBound = [ 444 !1, 445 !1 446 ], t.velocity = [ 447 0, 448 0 449 ], t.movement = [ 450 0, 451 0 452 ], t.delta = [ 453 0, 454 0 455 ], t.timeStamp = 0; 456 } 457 }, 458 { 459 key: "start", 460 value: function start(t) { 461 var _$e = this.state, _$r = this.config; 462 _$e._active || (this.reset(), this.computeInitial(), _$e._active = !0, _$e.target = t.target, _$e.currentTarget = t.currentTarget, _$e.lastOffset = _$r.from ? b(_$r.from, _$e) : _$e.offset, _$e.offset = _$e.lastOffset, _$e.startTime = _$e.timeStamp = t.timeStamp); 463 } 464 }, 465 { 466 key: "computeValues", 467 value: function computeValues(t) { 468 var _$e = this.state; 469 _$e._values = t, _$e.values = this.config.transform(t); 470 } 471 }, 472 { 473 key: "computeInitial", 474 value: function computeInitial() { 475 var t = this.state; 476 t._initial = t._values, t.initial = t.values; 477 } 478 }, 479 { 480 key: "compute", 481 value: function compute(t) { 482 var _this = this, _$e = _this.state, _$r = _this.config, i = _this.shared; 483 _$e.args = this.args; 484 var s = 0; 485 if (t && (_$e.event = t, _$r.preventDefault && t.cancelable && _$e.event.preventDefault(), _$e.type = t.type, i.touches = this.ctrl.pointerIds.size || this.ctrl.touchIds.size, i.locked = !!document.pointerLockElement, Object.assign(i, function(t) { 486 var _$e = {}; 487 if ("buttons" in t && (_$e.buttons = t.buttons), "shiftKey" in t) { 488 var _$r = t.shiftKey, n = t.altKey, i = t.metaKey, o = t.ctrlKey; 489 Object.assign(_$e, {
490 shiftKey: _$r, 491 altKey: n, 492 metaKey: i, 493 ctrlKey: o 494 }); 495 } 496 return _$e; 497 }(t)), i.down = i.pressed = i.buttons % 2 == 1 || i.touches > 0, s = t.timeStamp - _$e.timeStamp, _$e.timeStamp = t.timeStamp, _$e.elapsedTime = _$e.timeStamp - _$e.startTime), _$e._active) { 498 var _$t = _$e._delta.map(Math.abs); 499 n.addTo(_$e._distance, _$t); 500 } 501 this.axisIntent && this.axisIntent(t); 502 var _e__movement = _sliced_to_array(_$e._movement, 2), a = _e__movement[0], u = _e__movement[1], _r_threshold = _sliced_to_array(_$r.threshold, 2), f = _r_threshold[0], l = _r_threshold[1], c = _$e._step, h = _$e.values; 503 if (_$r.hasCustomTransform ? (!1 === c[0] && (c[0] = Math.abs(a) >= f && h[0]), !1 === c[1] && (c[1] = Math.abs(u) >= l && h[1])) : (!1 === c[0] && (c[0] = Math.abs(a) >= f && Math.sign(a) * f), !1 === c[1] && (c[1] = Math.abs(u) >= l && Math.sign(u) * l)), _$e.intentional = !1 !== c[0] || !1 !== c[1], !_$e.intentional) return; 504 var p = [ 505 0, 506 0 507 ]; 508 if (_$r.hasCustomTransform) { 509 var _h = _sliced_to_array(h, 2), _$t1 = _h[0], _$e1 = _h[1]; 510 p[0] = !1 !== c[0] ? _$t1 - c[0] : 0, p[1] = !1 !== c[1] ? _$e1 - c[1] : 0; 511 } else p[0] = !1 !== c[0] ? a - c[0] : 0, p[1] = !1 !== c[1] ? u - c[1] : 0; 512 this.restrictToAxis && !_$e._blocked && this.restrictToAxis(p); 513 var d = _$e.offset, y = _$e._active && !_$e._blocked || _$e.active; 514 y && (_$e.first = _$e._active && !_$e.active, _$e.last = !_$e._active && _$e.active, _$e.active = i[this.ingKey] = _$e._active, t && (_$e.first && ("bounds" in _$r && (_$e._bounds = b(_$r.bounds, _$e)), this.setup && this.setup()), _$e.movement = p, this.computeOffset())); 515 var _e_offset = _sliced_to_array(_$e.offset, 2), g = _e_offset[0], m = _e_offset[1], _e__bounds = _sliced_to_array(_$e._bounds, 2), _e__bounds_ = _sliced_to_array(_e__bounds[0], 2), v = _e__bounds_[0], w = _e__bounds_[1], _e__bounds_1 = _sliced_to_array(_e__bounds[1], 2), _$E = _e__bounds_1[0], O = _e__bounds_1[1]; 516 _$e.overflow = [ 517 g < v ? -1 : g > w ? 1 : 0, 518 m < _$E ? -1 : m > O ? 1 : 0 519 ], _$e._movementBound[0] = !!_$e.overflow[0] && (!1 === _$e._movementBound[0] ? _$e._movement[0] : _$e._movementBound[0]), _$e._movementBound[1] = !!_$e.overflow[1] && (!1 === _$e._movementBound[1] ? _$e._movement[1] : _$e._movementBound[1]); 520 var S = _$e._active && _$r.rubberband || [ 521 0, 522 0 523 ]; 524 if (_$e.offset = function(t, param, param1) { 525 var _param = _sliced_to_array(param, 2), _$e = _param[0], _$r = _param[1], _param1 = _sliced_to_array(param1, 2), n = _param1[0], i = _param1[1]; 526 var _t = _sliced_to_array(t, 2), _t_ = _sliced_to_array(_t[0], 2), s = _t_[0], a = _t_[1], _t_1 = _sliced_to_array(_t[1], 2), u = _t_1[0], f = _t_1[1]; 527 return [ 528 o(_$e, s, a, n), 529 o(_$r, u, f, i) 530 ]; 531 }(_$e._bounds, _$e.offset, S), _$e.delta = n.sub(_$e.offset, d), this.computeMovement(), y && (!_$e.last || s > 32)) { 532 _$e.delta = n.sub(_$e.offset, d); 533 var _$t2 = _$e.delta.map(Math.abs); 534 n.addTo(_$e.distance, _$t2), _$e.direction = _$e.delta.map(Math.sign), _$e._direction = _$e._delta.map(Math.sign), !_$e.first && s > 0 && (_$e.velocity = [ 535 _$t2[0] / s, 536 _$t2[1] / s 537 ], _$e.timeDelta = s); 538 } 539 } 540 }, 541 { 542 key: "emit", 543 value: function emit() { 544 var t = this.state, _$e = this.shared, _$r = this.config; 545 if (t._active || this.clean(), (t._blocked || !t.intentional) && !t._force && !_$r.triggerAllEvents) return; 546 var n = this.handler(u(u(u({}, _$e), t), {}, _define_property({}, this.aliasKey, t.values))); 547 void 0 !== n && (t.memo = n); 548 } 549 }, 550 { 551 key: "clean", 552 value: function clean() { 553 this.eventStore.clean(), this.timeoutStore.clean(); 554 } 555 } 556 ]); 557 return E; 558 }(); 559 var O = /*#__PURE__*/ function(E) { 560 _inherits(O, E); 561 var _super = _create_super(O); 562 function O() { 563 for(var _len = arguments.length, t = new Array(_len), _key = 0; _key < _len; _key++){ 564 t[_key] = arguments[_key]; 565 } 566 _class_call_check(this, O); 567 var _this; 568 _this = _super.call.apply(_super, [ 569 this 570 ].concat(_to_consumable_array(t))), s(_assert_this_initialized(_this), "aliasKey", "xy"); 571 return _possible_constructor_return(_this); 572 } 573 _create_class(O, [ 574 { 575 key: "reset", 576 value: function reset() { 577 _get(_get_prototype_of(O.prototype), "reset", this).call(this), this.state.axis = void 0; 578 } 579 }, 580 { 581 key: "init",
582 value: function init() { 583 this.state.offset = [ 584 0, 585 0 586 ], this.state.lastOffset = [ 587 0, 588 0 589 ]; 590 } 591 }, 592 { 593 key: "computeOffset", 594 value: function computeOffset() { 595 this.state.offset = n.add(this.state.lastOffset, this.state.movement); 596 } 597 }, 598 { 599 key: "computeMovement", 600 value: function computeMovement() { 601 this.state.movement = n.sub(this.state.offset, this.state.lastOffset); 602 } 603 }, 604 { 605 key: "axisIntent", 606 value: function axisIntent(t) { 607 var _$e = this.state, _$r = this.config; 608 if (!_$e.axis && t) { 609 var n = "object" == typeof _$r.axisThreshold ? _$r.axisThreshold[d(t)] : _$r.axisThreshold; 610 _$e.axis = function(param, r) { 611 var _param = _sliced_to_array(param, 2), _$t = _param[0], _$e = _param[1]; 612 var n = Math.abs(_$t), i = Math.abs(_$e); 613 return n > i && n > r ? "x" : i > n && i > r ? "y" : void 0; 614 }(_$e._movement, n); 615 } 616 _$e._blocked = (_$r.lockDirection || !!_$r.axis) && !_$e.axis || !!_$r.axis && _$r.axis !== _$e.axis; 617 } 618 }, 619 { 620 key: "restrictToAxis", 621 value: function restrictToAxis(t) { 622 if (this.config.axis || this.config.lockDirection) switch(this.state.axis){ 623 case "x": 624 t[1] = 0; 625 break; 626 case "y": 627 t[0] = 0; 628 } 629 } 630 } 631 ]); 632 return O; 633 }(E); 634 var S = function(t) { 635 return t; 636 }, A = { 637 enabled: function() { 638 var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0; 639 return t; 640 }, 641 eventOptions: function(t, e, r) { 642 return u(u({}, r.shared.eventOptions), t); 643 }, 644 preventDefault: function() { 645 var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1; 646 return t; 647 }, 648 triggerAllEvents: function() { 649 var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1; 650 return t; 651 }, 652 rubberband: function rubberband() { 653 var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0; 654 switch(t){ 655 case !0: 656 return [ 657 .15, 658 .15 659 ]; 660 case !1: 661 return [ 662 0, 663 0 664 ]; 665 default: 666 return n.toVector(t); 667 } 668 }, 669 from: function(t) { 670 return "function" == typeof t ? t : null != t ? n.toVector(t) : void 0; 671 }, 672 transform: function transform(t, e, r) { 673 var n = t || r.shared.transform; 674 return this.hasCustomTransform = !!n, n || S; 675 }, 676 threshold: function(t) { 677 return n.toVector(t, 0); 678 } 679 }, _ = 0, T = u(u({}, A), {}, { 680 axis: function axis(t, e, param) { 681 var _$r = param.axis; 682 if (this.lockDirection = "lock" === _$r, !this.lockDirection) return _$r; 683 }, 684 axisThreshold: function() { 685 var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : _; 686 return t; 687 }, 688 bounds: function bounds() { 689 var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; 690 if ("function" == typeof t) return function(e) { 691 return T.bounds(t(e)); 692 }; 693 if ("current" in t) return function() { 694 return t.current; 695 }; 696 if ("function" == typeof HTMLElement && _instanceof(t, HTMLElement)) return t; 697 var tmp = t.left, _$e = tmp === void 0 ? -1 / 0 : tmp, tmp1 = t.right, _$r = tmp1 === void 0 ? 1 / 0 : tmp1, tmp2 = t.top, n = tmp2 === void 0 ? -1 / 0 : tmp2, tmp3 = t.bottom, i = tmp3 === void 0 ? 1 / 0 : tmp3; 698 return [ 699 [ 700 _$e, 701 _$r 702 ], 703 [ 704 n, 705 i 706 ] 707 ]; 708 } 709 }), x = { 710 ArrowRight: function(t) { 711 var _$e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1; 712 return [ 713 t * _$e, 714 0 715 ]; 716 }, 717 ArrowLeft: function(t) { 718 var _$e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1; 719 return [ 720 -1 * t * _$e, 721 0 722 ]; 723 }, 724 ArrowUp: function(t) { 725 var _$e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1; 726 return [ 727 0, 728 -1 * t * _$e 729 ]; 730 }, 731 ArrowDown: function(t) { 732 var _$e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1; 733 return [ 734 0, 735 t * _$e 736 ]; 737 } 738 }, R = "undefined" != typeof window && window.document && window.document.createElement; 739 var B = { 740 isBrowser: R, 741 gesture: function() { 742 try { 743 return "constructor" in GestureEvent; 744 } catch (t) { 745 return !1; 746 } 747 }(), 748 touch: C(), 749 touchscreen: C(), 750 pointer: R && "onpointerdown" in window, 751 pointerLock: R && "exitPointerLock" in window.document 752 }, j = 10, P = { 753 mouse: 0, 754 touch: 0, 755 pen: 8 756 }, k = u(u({}, T), {}, { 757 device: function device(t, e, param) { 758 var tmp = param.pointer, _ref = tmp === void 0 ? {}
758 : tmp, tmp1 = _ref.touch, _$r = tmp1 === void 0 ? !1 : tmp1, tmp2 = _ref.lock, n = tmp2 === void 0 ? !1 : tmp2, tmp3 = _ref.mouse, i = tmp3 === void 0 ? !1 : tmp3; 759 return (this.pointerLock = n && B.pointerLock, B.touch && _$r) ? "touch" : this.pointerLock ? "mouse" : B.pointer && !i ? "pointer" : B.touch ? "touch" : "mouse"; 760 }, 761 preventScrollAxis: function preventScrollAxis(t, e, param) { 762 var _$r = param.preventScroll; 763 if (this.preventScrollDelay = "number" == typeof _$r ? _$r : _$r || void 0 === _$r && t ? 250 : void 0, B.touchscreen && !1 !== _$r) return t || (void 0 !== _$r ? "y" : void 0); 764 }, 765 pointerCapture: function pointerCapture(t, e, param) { 766 var tmp = param.pointer, _ref = tmp === void 0 ? {} : tmp, tmp1 = _ref.capture, _$r = tmp1 === void 0 ? !0 : tmp1, tmp2 = _ref.buttons, n = tmp2 === void 0 ? 1 : tmp2, tmp3 = _ref.keys, i = tmp3 === void 0 ? !0 : tmp3; 767 return this.pointerButtons = n, this.keys = i, !this.pointerLock && "pointer" === this.device && _$r; 768 }, 769 threshold: function threshold(t, e, param) { 770 var tmp = param.filterTaps, _$r = tmp === void 0 ? !1 : tmp, tmp1 = param.tapsThreshold, i = tmp1 === void 0 ? 3 : tmp1, o = param.axis; 771 var s = n.toVector(t, _$r ? i : o ? 1 : 0); 772 return this.filterTaps = _$r, this.tapsThreshold = i, s; 773 }, 774 swipe: function swipe() { 775 var _ref = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, tmp = _ref.velocity, t = tmp === void 0 ? .5 : tmp, tmp1 = _ref.distance, _$e = tmp1 === void 0 ? 50 : tmp1, tmp2 = _ref.duration, _$r = tmp2 === void 0 ? 250 : tmp2; 776 return { 777 velocity: this.transform(n.toVector(t)), 778 distance: this.transform(n.toVector(_$e)), 779 duration: _$r 780 }; 781 }, 782 delay: function delay() { 783 var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0; 784 switch(t){ 785 case !0: 786 return 180; 787 case !1: 788 return 0; 789 default: 790 return t; 791 } 792 }, 793 axisThreshold: function(t) { 794 return t ? u(u({}, P), t) : P; 795 }, 796 keyboardDisplacement: function() { 797 var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : j; 798 return t; 799 } 800 }); 801 u(u({}, A), {}, { 802 device: function device(t, e, param) { 803 var _$r = param.shared, tmp = param.pointer, _ref = tmp === void 0 ? {} : tmp, tmp1 = _ref.touch, n = tmp1 === void 0 ? !1 : tmp1; 804 if (_$r.target && !B.touch && B.gesture) return "gesture"; 805 if (B.touch && n) return "touch"; 806 if (B.touchscreen) { 807 if (B.pointer) return "pointer"; 808 if (B.touch) return "touch"; 809 } 810 }, 811 bounds: function bounds(t, e, param) { 812 var tmp = param.scaleBounds, _$r = tmp === void 0 ? {} : tmp, tmp1 = param.angleBounds, n = tmp1 === void 0 ? {} : tmp1; 813 var i = function(t) { 814 var _$e = w(b(_$r, t), { 815 min: -1 / 0, 816 max: 1 / 0 817 }); 818 return [ 819 _$e.min, 820 _$e.max 821 ]; 822 }, o = function(t) { 823 var _$e = w(b(n, t), { 824 min: -1 / 0, 825 max: 1 / 0 826 }); 827 return [ 828 _$e.min, 829 _$e.max 830 ]; 831 }; 832 return "function" != typeof _$r && "function" != typeof n ? [ 833 i(), 834 o() 835 ] : function(t) { 836 return [ 837 i(t), 838 o(t) 839 ]; 840 }; 841 }, 842 threshold: function threshold(t, e, r) { 843 this.lockDirection = "lock" === r.axis; 844 var i = n.toVector(t, this.lockDirection ? [ 845 .1, 846 3 847 ] : 0); 848 return i; 849 }, 850 modifierKey: function(t) { 851 return void 0 === t ? "ctrlKey" : t; 852 }, 853 pinchOnWheel: function() { 854 var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0; 855 return t; 856 } 857 }), u(u({}, T), {}, { 858 mouseOnly: function() { 859 var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0; 860 return t; 861 } 862 }), u(u({}, T), {}, { 863 mouseOnly: function() { 864 var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0; 865 return t; 866 } 867 }); 868 var U = new Map, L = new Map, I = { 869 key: "drag", 870 engine: /*#__PURE__*/ function(O) { 871 _inherits(engine, O); 872 var _super = _create_super(engine); 873 function engine() { 874 for(var _len = arguments.length, t = new Array(_len), _key = 0; _key < _len; _key++){ 875 t[_key] = arguments[_key]; 876 } 877 _class_call_check(this, engine); 878 var _this; 879 _this = _super.call.apply(_super, [ 880 this 881 ].concat(_to_consumable_array(t))), s(_assert_this_initialized(_this), "ingKey", "dragging"); 882 return _possible_constructor_return(_this); 883 } 884 _create_class(engine, [ 885 { 886 key: "reset", 887 value: function reset() { 888 _get(_get_prototype_of(engine.prototype), "reset", this).call(this); 889 var t = this.state; 890 t._pointerId = void 0, t._pointerActive = !1, t._keyboardActive = !1, t._preventScroll = !1, t._delayed = !1, t.swipe = [ 891 0, 892 0 893 ], t.tap = !1, t.canceled = !1, t.cancel = this.cancel.bind(this); 894 } 895 }, 896 { 897 key: "setup", 898 value: function setup() { 899 var t = this.state; 900 if (_instanceof(t._bounds, HTMLElement)) { 901 var _$e = t._bounds.getBoundingClientRect(), _$r = t.currentTarget.getBoundingClientRect(), n = { 902 left: _$e.left - _$r.left + t.offset[0], 903 right: _$e.right - _$r.right + t.offset[0], 904 top: _$e.top - _$r.top + t.offset[1], 905 bottom: _$e.bottom - _$r.bottom + t.offset[1] 906 }; 907 t._bounds = T.bounds(n); 908 } 909 } 910 }, 911 { 912 key: "cancel", 913 value: function cancel() { 914 var _this = this; 915 var t = this.state; 916 t.canceled || (t.canceled = !0, t._active = !1, setTimeout(function() {
917 _this.compute(), _this.emit(); 918 }, 0)); 919 } 920 }, 921 { 922 key: "setActive", 923 value: function setActive() { 924 this.state._active = this.state._pointerActive || this.state._keyboardActive; 925 } 926 }, 927 { 928 key: "clean", 929 value: function clean() { 930 this.pointerClean(), this.state._pointerActive = !1, this.state._keyboardActive = !1, _get(_get_prototype_of(engine.prototype), "clean", this).call(this); 931 } 932 }, 933 { 934 key: "pointerDown", 935 value: function pointerDown(t) { 936 var _$e = this.config, _$r = this.state; 937 if (null != t.buttons && (Array.isArray(_$e.pointerButtons) ? !_$e.pointerButtons.includes(t.buttons) : -1 !== _$e.pointerButtons && _$e.pointerButtons !== t.buttons)) return; 938 var n = this.ctrl.setEventIds(t); 939 _$e.pointerCapture && t.target.setPointerCapture(t.pointerId), n && n.size > 1 && _$r._pointerActive || (this.start(t), this.setupPointer(t), _$r._pointerId = g(t), _$r._pointerActive = !0, this.computeValues(m(t)), this.computeInitial(), _$e.preventScrollAxis && "mouse" !== d(t) ? (_$r._active = !1, this.setupScrollPrevention(t)) : _$e.delay > 0 ? (this.setupDelayTrigger(t), _$e.triggerAllEvents && (this.compute(t), this.emit())) : this.startPointerDrag(t)); 940 } 941 }, 942 { 943 key: "startPointerDrag", 944 value: function startPointerDrag(t) { 945 var _$e = this.state; 946 _$e._active = !0, _$e._preventScroll = !0, _$e._delayed = !1, this.compute(t), this.emit(); 947 } 948 }, 949 { 950 key: "pointerMove", 951 value: function pointerMove(t) { 952 var _$e = this.state, _$r = this.config; 953 if (!_$e._pointerActive) return; 954 var i = g(t); 955 if (void 0 !== _$e._pointerId && i !== _$e._pointerId) return; 956 var o = m(t); 957 if (document.pointerLockElement === t.target ? _$e._delta = [ 958 t.movementX, 959 t.movementY 960 ] : (_$e._delta = n.sub(o, _$e._values), this.computeValues(o)), n.addTo(_$e._movement, _$e._delta), this.compute(t), _$e._delayed && _$e.intentional) { 961 this.timeoutStore.remove("dragDelay"), _$e.active = !1, this.startPointerDrag(t); 962 return; 963 } 964 if (_$r.preventScrollAxis && !_$e._preventScroll) { 965 if (!_$e.axis) return; 966 if (_$e.axis === _$r.preventScrollAxis || "xy" === _$r.preventScrollAxis) { 967 _$e._active = !1, this.clean(); 968 return; 969 } 970 this.timeoutStore.remove("startPointerDrag"), this.startPointerDrag(t); 971 return; 972 } 973 this.emit(); 974 } 975 }, 976 { 977 key: "pointerUp", 978 value: function pointerUp(t) {
979 this.ctrl.setEventIds(t); 980 try { 981 this.config.pointerCapture && t.target.hasPointerCapture(t.pointerId) && t.target.releasePointerCapture(t.pointerId); 982 } catch (t) {} 983 var _$e = this.state, _$r = this.config; 984 if (!_$e._active || !_$e._pointerActive) return; 985 var n = g(t); 986 if (void 0 !== _$e._pointerId && n !== _$e._pointerId) return; 987 this.state._pointerActive = !1, this.setActive(), this.compute(t); 988 var _e__distance = _sliced_to_array(_$e._distance, 2), i = _e__distance[0], o = _e__distance[1]; 989 if (_$e.tap = i <= _$r.tapsThreshold && o <= _$r.tapsThreshold, _$e.tap && _$r.filterTaps) _$e._force = !0; 990 else { 991 var _e__delta = _sliced_to_array(_$e._delta, 2), _$t = _e__delta[0], n1 = _e__delta[1], _e__movement = _sliced_to_array(_$e._movement, 2), i1 = _e__movement[0], o1 = _e__movement[1], _r_swipe_velocity = _sliced_to_array(_$r.swipe.velocity, 2), s = _r_swipe_velocity[0], a = _r_swipe_velocity[1], _r_swipe_distance = _sliced_to_array(_$r.swipe.distance, 2), u = _r_swipe_distance[0], f = _r_swipe_distance[1], l = _$r.swipe.duration; 992 if (_$e.elapsedTime < l) { 993 var _$r1 = Math.abs(_$t / _$e.timeDelta), l1 = Math.abs(n1 / _$e.timeDelta); 994 _$r1 > s && Math.abs(i1) > u && (_$e.swipe[0] = Math.sign(_$t)), l1 > a && Math.abs(o1) > f && (_$e.swipe[1] = Math.sign(n1)); 995 } 996 } 997 this.emit(); 998 } 999 }, 1000 { 1001 key: "pointerClick", 1002 value: function pointerClick(t) { 1003 !this.state.tap && t.detail > 0 && (t.preventDefault(), t.stopPropagation()); 1004 } 1005 }, 1006 { 1007 key: "setupPointer", 1008 value: function setupPointer(t) { 1009 var _$e = this.config, _$r = _$e.device; 1010 _$e.pointerLock && t.currentTarget.requestPointerLock(), _$e.pointerCapture || (this.eventStore.add(this.sharedConfig.window, _$r, "change", this.pointerMove.bind(this)), this.eventStore.add(this.sharedConfig.window, _$r, "end", this.pointerUp.bind(this)), this.eventStore.add(this.sharedConfig.window, _$r, "cancel", this.pointerUp.bind(this))); 1011 } 1012 }, 1013 { 1014 key: "pointerClean", 1015 value: function pointerClean() { 1016 this.config.pointerLock && document.pointerLockElement === this.state.currentTarget && document.exitPointerLock(); 1017 } 1018 }, 1019 { 1020 key: "preventScroll", 1021 value: function preventScroll(t) { 1022 this.state._preventScroll && t.cancelable && t.preventDefault(); 1023 } 1024 }, 1025 { 1026 key: "setupScrollPrevention", 1027 value: function setupScrollPrevention(t) { 1028 this.state._preventScroll = !1, "persist" in t && "function" == typeof t.persist && t.persist(); 1029 var _$e = this.eventStore.add(this.sharedConfig.window, "touch", "change", this.preventScroll.bind(this), { 1030 passive: !1 1031 }); 1032 this.eventStore.add(this.sharedConfig.window, "touch", "end", _$e), this.eventStore.add(this.sharedConfig.window, "touch", "cancel", _$e), this.timeoutStore.add("startPointerDrag", this.startPointerDrag.bind(this), this.config.preventScrollDelay, t); 1033 } 1034 }, 1035 { 1036 key: "setupDelayTrigger", 1037 value: function setupDelayTrigger(t) { 1038 var _this = this; 1039 this.state._delayed = !0, this.timeoutStore.add("dragDelay", function() { 1040 _this.state._step = [ 1041 0, 1042 0 1043 ], _this.startPointerDrag(t); 1044 }, this.config.delay); 1045 } 1046 }, 1047 { 1048 key: "keyDown", 1049 value: function keyDown(t) { 1050 var _$e = x[t.key]; 1051 if (_$e) { 1052 var _$r = this.state, i = t.shiftKey ? 10 : t.altKey ? .1 : 1; 1053 this.start(t), _$r._delta = _$e(this.config.keyboardDisplacement, i), _$r._keyboardActive = !0, n.addTo(_$r._movement, _$r._delta), this.compute(t), this.emit
1053(); 1054 } 1055 } 1056 }, 1057 { 1058 key: "keyUp", 1059 value: function keyUp(t) { 1060 t.key in x && (this.state._keyboardActive = !1, this.setActive(), this.compute(t), this.emit()); 1061 } 1062 }, 1063 { 1064 key: "bind", 1065 value: function bind(t) { 1066 var _$e = this.config.device; 1067 t(_$e, "start", this.pointerDown.bind(this)), this.config.pointerCapture && (t(_$e, "change", this.pointerMove.bind(this)), t(_$e, "end", this.pointerUp.bind(this)), t(_$e, "cancel", this.pointerUp.bind(this)), t("lostPointerCapture", "", this.pointerUp.bind(this))), this.config.keys && (t("key", "down", this.keyDown.bind(this)), t("key", "up", this.keyUp.bind(this))), this.config.filterTaps && t("click", "", this.pointerClick.bind(this), { 1068 capture: !0, 1069 passive: !1 1070 }); 1071 } 1072 } 1073 ]); 1074 return engine; 1075 }(O), 1076 resolver: k 1077 }; 1078 var D = r(67294); 1079 var N = { 1080 target: function target(t) { 1081 if (t) return function() { 1082 return "current" in t ? t.current : t; 1083 }; 1084 }, 1085 enabled: function() { 1086 var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0; 1087 return t; 1088 }, 1089 window: function() { 1090 var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : B.isBrowser ? window : void 0; 1091 return t; 1092 }, 1093 eventOptions: function() { 1094 var _ref = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, tmp = _ref.passive, t = tmp === void 0 ? !0 : tmp, tmp1 = _ref.capture, _$e = tmp1 === void 0 ? !1 : tmp1; 1095 return { 1096 passive: t, 1097 capture: _$e 1098 }; 1099 }, 1100 transform: function(t) { 1101 return t; 1102 } 1103 }, M = [ 1104 "target", 1105 "eventOptions", 1106 "window", 1107 "enabled", 1108 "transform" 1109 ]; 1110 function F() { 1111 var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _$e = arguments.length > 1 ? arguments[1] : void 0; 1112 var _$r = {}; 1113 var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined; 1114 try { 1115 for(var _iterator = Object.entries(_$e)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){ 1116 var _step_value = _sliced_to_array(_step.value, 2), n = _step_value[0], i = _step_value[1]; 1117 switch(typeof i === "undefined" ? "undefined" : _type_of(i)){ 1118 case "function": 1119 _$r[n] = i.call(_$r, t[n], n, t); 1120 break; 1121 case "object": 1122 _$r[n] = F(t[n], i); 1123 break; 1124 case "boolean": 1125 i && (_$r[n] = t[n]); 1126 } 1127 } 1128 } catch (err) { 1129 _didIteratorError = true; 1130 _iteratorError = err; 1131 } finally{ 1132 try { 1133 if (!_iteratorNormalCompletion && _iterator.return != null) { 1134 _iterator.return(); 1135 } 1136 } finally{ 1137 if (_didIteratorError) { 1138 throw _iteratorError; 1139 } 1140 } 1141 } 1142 return _$r; 1143 } 1144 var z = /*#__PURE__*/ function() { 1145 function z(t, e) { 1146 _class_call_check(this, z); 1147 s(this, "_listeners", new Set), this._ctrl = t, this._gestureKey = e; 1148 } 1149 _create_class(z, [ 1150 { 1151 key: "add", 1152 value: function add(t, e, r, n, i) { 1153 var o = this._listeners, s = function(t) { 1154 var _$e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ""; 1155 var _$r = f[t], _$n = _$r && _$r[_$e] || _$e; 1156 return t + _$n; 1157 }(e, r), a = this._gestureKey ? this._ctrl.config[this._gestureKey].eventOptions : {}, l = u(u({}, a), i); 1158 t.addEventListener(s, n, l); 1159 var c = function() { 1160 t.removeEventListener(s, n, l), o.delete(c); 1161 }; 1162 return o.add(c), c; 1163 } 1164 }, 1165 { 1166 key: "clean", 1167 value: function clean() {
1168 this._listeners.forEach(function(t) { 1169 return t(); 1170 }), this._listeners.clear(); 1171 } 1172 } 1173 ]); 1174 return z; 1175 }(); 1176 var q = /*#__PURE__*/ function() { 1177 function q() { 1178 _class_call_check(this, q); 1179 s(this, "_timeouts", new Map); 1180 } 1181 _create_class(q, [ 1182 { 1183 key: "add", 1184 value: function add(t, e) { 1185 var _$r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 140; 1186 for(var _len = arguments.length, n = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++){ 1187 n[_key - 3] = arguments[_key]; 1188 } 1189 var _window; 1190 this.remove(t), this._timeouts.set(t, (_window = window).setTimeout.apply(_window, [ 1191 e, 1192 _$r 1193 ].concat(_to_consumable_array(n)))); 1194 } 1195 }, 1196 { 1197 key: "remove", 1198 value: function remove(t) { 1199 var _$e = this._timeouts.get(t); 1200 _$e && window.clearTimeout(_$e); 1201 } 1202 }, 1203 { 1204 key: "clean", 1205 value: function clean() { 1206 this._timeouts.forEach(function(t) { 1207 return void window.clearTimeout(t); 1208 }), this._timeouts.clear(); 1209 } 1210 } 1211 ]); 1212 return q; 1213 }(); 1214 var H = /*#__PURE__*/ function() { 1215 function H(t) { 1216 _class_call_check(this, H); 1217 s(this, "gestures", new Set), s(this, "_targetEventStore", new z(this)), s(this, "gestureEventStores", {}), s(this, "gestureTimeoutStores", {}), s(this, "handlers", {}), s(this, "config", {}), s(this, "pointerIds", new Set), s(this, "touchIds", new Set), s(this, "state", { 1218 shared: { 1219 shiftKey: !1, 1220 metaKey: !1, 1221 ctrlKey: !1, 1222 altKey: !1 1223 } 1224 }), t.drag && K(this, "drag"), t.wheel && K(this, "wheel"), t.scroll && K(this, "scroll"), t.move && K(this, "move"), t.pinch && K(this, "pinch"), t.hover && K(this, "hover"); 1225 } 1226 _create_class(H, [ 1227 { 1228 key: "setEventIds", 1229 value: function setEventIds(t) { 1230 return p(t) ? (this.touchIds = new Set(Array.from(t.touches).filter(function(e) { 1231 var _$r, n; 1232 return e.target === t.currentTarget || (null === (_$r = t.currentTarget) || void 0 === _$r ? void 0 : null === (n = _$r.contains) || void 0 === n ? void 0 : n.call(_$r, e.target)); 1233 }).map(function(t) { 1234 return t.identifier; 1235 })), this.touchIds) : "pointerId" in t ? ("pointerup" === t.type || "pointercancel" === t.type ? this.pointerIds.delete(t.pointerId) : "pointerdown" === t.type && this.pointerIds.add(t.pointerId), this.pointerIds) : void 0; 1236 } 1237 }, 1238 { 1239 key: "applyHandlers", 1240 value: function applyHandlers(t, e) { 1241 this.handlers = t, this.nativeHandlers = e; 1242 } 1243 }, 1244 { 1245 key: "applyConfig", 1246 value: function applyConfig(t, e) { 1247 this.config = function(t, e) { 1248 var _$r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; 1249 var n = t.target, i = t.eventOptions, o = t.window, s = t.enabled, a = t.transform, f = function(t, e) { 1250 if (null == t) return {}; 1251 var _$r, n, i = function(t, e) { 1252 if (null == t) return {}; 1253 var _$r, n, i = {}, o = Object.keys(t); 1254 for(n = 0; n < o.length; n++)_$r = o[n], e.indexOf(_$r) >= 0 || (i[_$r] = t[_$r]); 1255 return i; 1256 }(t, e); 1257 if (Object.getOwnPropertySymbols) { 1258 var o = Object.getOwnPropertySymbols(t); 1259 for(n = 0; n < o.length; n++)_$r = o[n], !(e.indexOf(_$r) >= 0) && Object.prototype.propertyIsEnumerable.call(t, _$r) && (i[_$r] = t[_$r]); 1260 } 1261 return i; 1262 }(t, M); 1263 if (_$r.shared = F({ 1264 target: n, 1265 eventOptions: i, 1266 window: o, 1267 enabled: s, 1268 transform: a 1269 }, N), e) { 1270 var _$t = L.get(e); 1271 _$r[e] = F(u({ 1272 shared: _$r.shared 1273 }, f), _$t); 1274 } else for(var _$t1 in f){ 1275 var _$e = L.get(_$t1); 1276 _$e && (_$r[_$t1] = F(u({ 1277 shared: _$r.shared 1278 }, f[_$t1]), _$e)); 1279 } 1280 return _$r; 1281 }(t, e, this.config); 1282 } 1283 }, 1284 { 1285 key: "clean", 1286 value: function clean() { 1287 var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined; 1288 try { 1289 for(var _iterator = (this._targetEventStore.clean(), this.gestures)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){ 1290 var t = _step.value; 1291 this.gestureEventStores[t].clean(), this.gestureTimeoutStores[t].clean(); 1292 } 1293 } catch (err) {
1294 _didIteratorError = true; 1295 _iteratorError = err; 1296 } finally{ 1297 try { 1298 if (!_iteratorNormalCompletion && _iterator.return != null) { 1299 _iterator.return(); 1300 } 1301 } finally{ 1302 if (_didIteratorError) { 1303 throw _iteratorError; 1304 } 1305 } 1306 } 1307 } 1308 }, 1309 { 1310 key: "effect", 1311 value: function effect() { 1312 var _this = this; 1313 return this.config.shared.target && this.bind(), function() { 1314 return _this._targetEventStore.clean(); 1315 }; 1316 } 1317 }, 1318 { 1319 key: "bind", 1320 value: function bind() { 1321 for(var _len = arguments.length, t = new Array(_len), _key = 0; _key < _len; _key++){ 1322 t[_key] = arguments[_key]; 1323 } 1324 var _this = this; 1325 var _$e; 1326 var _$r = this.config.shared, n = {}; 1327 if (!_$r.target || (_$e = _$r.target())) { 1328 if (_$r.enabled) { 1329 var _loop = function(_$e2) { 1330 i1(_$e2, "", function(r) { 1331 return _this.nativeHandlers[_$e2](u(u({}, _this.state.shared), {}, { 1332 event: r, 1333 args: t 1334 })); 1335 }, void 0, !0); 1336 }; 1337 var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined; 1338 try { 1339 for(var _iterator = this.gestures[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){ 1340 var _$r1 = _step.value; 1341 var i = this.config[_$r1], o = V(n, i.eventOptions, !!_$e); 1342 if (i.enabled) { 1343 var _$e1 = U.get(_$r1); 1344 new _$e1(this, t, _$r1).bind(o); 1345 } 1346 } 1347 } catch (err) { 1348 _didIteratorError = true; 1349 _iteratorError = err; 1350 } finally{ 1351 try { 1352 if (!_iteratorNormalCompletion && _iterator.return != null) { 1353 _iterator.return(); 1354 } 1355 } finally{ 1356 if (_didIteratorError) { 1357 throw _iteratorError; 1358 } 1359 } 1360 } 1361 var i1 = V(n, _$r.eventOptions, !!_$e); 1362 for(var _$e2 in this.nativeHandlers)_loop(_$e2); 1363 } 1364 for(var t1 in n)n[t1] = (function() { 1365 for(var _len = arguments.length, t = new Array(_len), _key = 0; _key < _len; _key++){ 1366 t[_key] = arguments[_key]; 1367 } 1368 return 0 === t.length ? v : 1 === t.length ? t[0] : function() { 1369 var _$e; 1370 var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined; 1371 try { 1372 for(var _iterator = t[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){ 1373 var _$r = _step.value; 1374 _$e = _$r.apply(this, arguments) || _$e; 1375 } 1376 } catch (err) {
1377 _didIteratorError = true; 1378 _iteratorError = err; 1379 } finally{ 1380 try { 1381 if (!_iteratorNormalCompletion && _iterator.return != null) { 1382 _iterator.return(); 1383 } 1384 } finally{ 1385 if (_didIteratorError) { 1386 throw _iteratorError; 1387 } 1388 } 1389 } 1390 return _$e; 1391 }; 1392 }).apply(this, _to_consumable_array(n[t1])); 1393 if (!_$e) return n; 1394 for(var t2 in n){ 1395 var _ref = function(t) { 1396 var _$e = t.substring(2).toLowerCase(), _$r = !!~_$e.indexOf("passive"); 1397 _$r && (_$e = _$e.replace("passive", "")); 1398 var n = h.includes(_$e) ? "capturecapture" : "capture", i = !!~_$e.indexOf(n); 1399 return i && (_$e = _$e.replace("capture", "")), { 1400 device: _$e, 1401 capture: i, 1402 passive: _$r 1403 }; 1404 }(t2), _$r2 = _ref.device, i2 = _ref.capture, o1 = _ref.passive; 1405 this._targetEventStore.add(_$e, _$r2, "", n[t2], { 1406 capture: i2, 1407 passive: o1 1408 }); 1409 } 1410 } 1411 } 1412 } 1413 ]); 1414 return H; 1415 }(); 1416 var V = function(t, e, r) { 1417 return function(n, i, o) { 1418 var s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1; 1419 var u, h; 1420 var p = null !== (u = s.capture) && void 0 !== u ? u : e.capture, d = null !== (h = s.passive) && void 0 !== h ? h : e.passive, y = a ? n : function(t) { 1421 var _$e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", _$r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1; 1422 var _$n = f[t], _$i = _$n && _$n[_$e] || _$e; 1423 return "on" + l(t) + l(_$i) + (!function() { 1424 var _$t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, _$e = arguments.length > 1 ? arguments[1] : void 0; 1425 return _$t && !c.includes(_$e); 1426 }(_$r, _$i) ? "" : "Capture"); 1427 }(n, i, p); 1428 r && d && (y += "Passive"), t[y] = t[y] || [], t[y].push(o); 1429 }; 1430 }; 1431 }, 1432 21876: function(t) { 1433 !function() { 1434 var e = { 1435 675: function(t, e) { 1436 "use strict"; 1437 var u = function u(t) { 1438 var _$e = t.length; 1439 if (_$e % 4 > 0) throw Error("Invalid string. Length must be a multiple of 4"); 1440 var r = t.indexOf("="); 1441 -1 === r && (r = _$e); 1442 var _$n = r === _$e ? 0 : 4 - r % 4; 1443 return [ 1444 r, 1445 _$n 1446 ]; 1447 }; 1448 e.byteLength = function(t) { 1449 var _$e = u(t), r = _$e[0], _$n = _$e[1]; 1450 return (r + _$n) * 3 / 4 - _$n; 1451 }, e.toByteArray = function(t) { 1452 var _$e, r, o = u(t), s = o[0], a = o[1], f = new i((s + a) * 3 / 4 - a), l = 0, c = a > 0 ? s - 4 : s; 1453 for(r = 0; r < c; r += 4)_$e = _$n[t.charCodeAt(r)] << 18 | _$n[t.charCodeAt(r + 1)] << 12 | _$n[t.charCodeAt(r + 2)] << 6 | _$n[t.charCodeAt(r + 3)], f[l++] = _$e >> 16 & 255, f[l++] = _$e >> 8 & 255, f[l++] = 255 & _$e; 1454 return 2 === a && (_$e = _$n[t.charCodeAt(r)] << 2 | _$n[t.charCodeAt(r + 1)] >> 4, f[l++] = 255 & _$e), 1 === a && (_$e = _$n[t.charCodeAt(r)] << 10 | _$n[t.charCodeAt(r + 1)] << 4 | _$n[t.charCodeAt(r + 2)] >> 2, f[l++] = _$e >> 8 & 255, f[l++] = 255 & _$e), f; 1455 }, e.fromByteArray = function(t) { 1456 for(var _$e, _$n = t.length, i = _$n % 3, o = [], s = 0, a = _$n - i; s < a; s += 16383)o.push(function(t, e, n) { 1457 for(var i, o = [], s = e; s < n; s += 3)o.push(r[(i = (t[s] << 16 & 16711680) + (t[s + 1] << 8 & 65280) + (255 & t[s + 2])) >> 18 & 63] + r[i >> 12 & 63] + r[i >> 6 & 63] + r[63 & i]); 1458 return o.join(""); 1459 }(t, s, s + 16383 > a ? a : s + 16383)); 1460 return 1 === i ? o.push(r[(_$e = t[_$n - 1]) >> 2] + r[_$e << 4 & 63] + "==") : 2 === i && o.push(r[(_$e = (t[_$n - 2] << 8) + t[_$n - 1]) >> 10] + r[_$e >> 4 & 63] + r[_$e << 2 & 63] + "="), o.join(""); 1461 }; 1462 for(var r = [], _$n = [], i = "undefined" != typeof Uint8Array ? Uint8Array : Array, o = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
1462+/", s = 0, a = o.length; s < a; ++s)r[s] = o[s], _$n[o.charCodeAt(s)] = s; 1463 _$n["-".charCodeAt(0)] = 62, _$n["_".charCodeAt(0)] = 63; 1464 }, 1465 72: function(t, e, r) { 1466 "use strict"; /*! 1467 * The buffer module from node.js, for the browser. 1468 * 1469 * @author Feross Aboukhadijeh <https://feross.org> 1470 * @license MIT 1471 */ 1472 var s = function s(t) { 1473 if (t > 2147483647) throw RangeError('The value "' + t + '" is invalid for option "size"'); 1474 var _$e = new Uint8Array(t); 1475 return Object.setPrototypeOf(_$e, a.prototype), _$e; 1476 }; 1477 var a = function a(t, e, r) { 1478 if ("number" == typeof t) { 1479 if ("string" == typeof e) throw TypeError('The "string" argument must be of type string. Received type number'); 1480 return l(t); 1481 } 1482 return u(t, e, r); 1483 }; 1484 var u = function u(t, e, r) { 1485 if ("string" == typeof t) return function(t, e) { 1486 if (("string" != typeof e || "" === e) && (e = "utf8"), !a.isEncoding(e)) throw TypeError("Unknown encoding: " + e); 1487 var _$r = 0 | p(t, e), _$n = s(_$r), i = _$n.write(t, e); 1488 return i !== _$r && (_$n = _$n.slice(0, i)), _$n; 1489 }(t, e); 1490 if (ArrayBuffer.isView(t)) return c(t); 1491 if (null == t) throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + (typeof t === "undefined" ? "undefined" : _type_of(t))); 1492 if (C(t, ArrayBuffer) || t && C(t.buffer, ArrayBuffer) || "undefined" != typeof SharedArrayBuffer && (C(t, SharedArrayBuffer) || t && C(t.buffer, SharedArrayBuffer))) return function(t, e, r) { 1493 var _$n; 1494 if (e < 0 || t.byteLength < e) throw RangeError('"offset" is outside of buffer bounds'); 1495 if (t.byteLength < e + (r || 0)) throw RangeError('"length" is outside of buffer bounds'); 1496 return Object.setPrototypeOf(_$n = void 0 === e && void 0 === r ? new Uint8Array(t) : void 0 === r ? new Uint8Array(t, e) : new Uint8Array(t, e, r), a.prototype), _$n; 1497 }(t, e, r); 1498 if ("number" == typeof t) throw TypeError('The "value" argument must not be of type number. Received type number'); 1499 var _$n = t.valueOf && t.valueOf(); 1500 if (null != _$n && _$n !== t) return a.from(_$n, e, r); 1501 var i = function(t) { 1502 if (a.isBuffer(t)) { 1503 var _$e, _$r = 0 | h(t.length), _$n = s(_$r); 1504 return 0 === _$n.length || t.copy(_$n, 0, 0, _$r), _$n; 1505 } 1506 return void 0 !== t.length ? "number" != typeof t.length || (_$e = t.length) != _$e ? s(0) : c(t) : "Buffer" === t.type && Array.isArray(t.data) ? c(t.data) : void 0; 1507 }(t); 1508 if (i) return i; 1509 if ("undefined" != typeof Symbol && null != Symbol.toPrimitive && "function" == typeof t[Symbol.toPrimitive]) return a.from(t[Symbol.toPrimitive]("string"), e, r); 1510 throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + (typeof t === "undefined" ? "undefined" : _type_of(t))); 1511 }; 1512 var f = function f(t) { 1513 if ("number" != typeof t) throw TypeError('"size" argument must be of type number'); 1514 if (t < 0) throw RangeError('The value "' + t + '" is invali
1514d for option "size"'); 1515 }; 1516 var l = function l(t) { 1517 return f(t), s(t < 0 ? 0 : 0 | h(t)); 1518 }; 1519 var c = function c(t) { 1520 for(var _$e = t.length < 0 ? 0 : 0 | h(t.length), _$r = s(_$e), _$n = 0; _$n < _$e; _$n += 1)_$r[_$n] = 255 & t[_$n]; 1521 return _$r; 1522 }; 1523 var h = function h(t) { 1524 if (t >= 2147483647) throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes"); 1525 return 0 | t; 1526 }; 1527 var p = function p(t, e) { 1528 if (a.isBuffer(t)) return t.length; 1529 if (ArrayBuffer.isView(t) || C(t, ArrayBuffer)) return t.byteLength; 1530 if ("string" != typeof t) throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + (typeof t === "undefined" ? "undefined" : _type_of(t))); 1531 var _$r = t.length, _$n = arguments.length > 2 && !0 === arguments[2]; 1532 if (!_$n && 0 === _$r) return 0; 1533 for(var i = !1;;)switch(e){ 1534 case "ascii": 1535 case "latin1": 1536 case "binary": 1537 return _$r; 1538 case "utf8": 1539 case "utf-8": 1540 return _(t).length; 1541 case "ucs2": 1542 case "ucs-2": 1543 case "utf16le": 1544 case "utf-16le": 1545 return 2 * _$r; 1546 case "hex": 1547 return _$r >>> 1; 1548 case "base64": 1549 return x(t).length; 1550 default: 1551 if (i) return _$n ? -1 : _(t).length; 1552 e = ("" + e).toLowerCase(), i = !0; 1553 } 1554 }; 1555 var d = function d(t, e, r) { 1556 var i, o, s = !1; 1557 if ((void 0 === e || e < 0) && (e = 0), e > this.length || ((void 0 === r || r > this.length) && (r = this.length), r <= 0 || (r >>>= 0) <= (e >>>= 0))) return ""; 1558 for(t || (t = "utf8");;)switch(t){ 1559 case "hex": 1560 return function(t, e, r) { 1561 var _$n = t.length; 1562 (!e || e < 0) && (e = 0), (!r || r < 0 || r > _$n) && (r = _$n); 1563 for(var i = "", o = e; o < r; ++o)i += B[t[o]]; 1564 return i; 1565 }(this, e, r); 1566 case "utf8": 1567 case "utf-8": 1568 return b(this, e, r); 1569 case "ascii": 1570 return function(t, e, r) { 1571 var _$n = ""; 1572 r = Math.min(t.length, r); 1573 for(var i = e; i < r; ++i)_$n += String.fromCharCode(127 & t[i]); 1574 return _$n; 1575 }(this, e, r); 1576 case "latin1": 1577 case "binary": 1578 return function(t, e, r) { 1579 var _$n = ""; 1580 r = Math.min(t.length, r); 1581 for(var i = e; i < r; ++i)_$n += String.fromCharCode(t[i]); 1582 return _$n; 1583 }(this, e, r); 1584 case "base64": 1585 return i = e, o = r, 0 === i && o === this.length ? _$n.fromByteArray(this) : _$n.fromByteArray(this.slice(i, o)); 1586 case "ucs2": 1587 case "ucs-2": 1588 case "utf16le": 1589 case "utf-16le": 1590 return function(t, e, r) { 1591 for(var _$n = t.slice(e, r), i = "", o = 0; o < _$n.length; o += 2)i += String.fromCharCode(_$n[o] + 256 * _$n[o + 1]); 1592 return i; 1593 }(this, e, r); 1594 default: 1595 if (s) throw TypeError("Unknown encoding: " + t); 1596 t = (t + "").toLowerCase(), s = !0; 1597 } 1598 }; 1599 var y = function y(t, e, r) { 1600 var _$n = t[e]; 1601 t[e] = t[r], t[r] = _$n; 1602 }; 1603 var g = function g(t, e, r, n, i) { 1604 var o; 1605 if (0 === t.length) return -1; 1606 if ("string" == typeof r ? (n = r, r = 0) : r > 2147483647 ? r = 2147483647 : r < -2147483648 && (r = -2147483648), (o = r = +r) != o && (r = i ? 0 : t.length - 1), r < 0 && (r = t.length + r), r >= t.length) { 1607 if (i) return -1; 1608 r = t.length - 1; 1609 } else if (r < 0) { 1610 if (!i) return -1; 1611 r = 0; 1612 } 1613 if ("string" == typeof e && (e = a.from(e, n)), a.isBuffer(e)) return 0 === e.length ? -1 : m(t, e, r, n, i); 1614 if ("number" == typeof e) return (e &= 255, "function" == typeof Uint8Array.prototype.indexOf) ? i ? Uint8Array.prototype.indexOf.call(t, e, r) : Uint8Array.prototype.lastIndexOf.call(t, e, r) : m(t, [ 1615 e 1616 ], r, n, i); 1617 throw TypeError("val must be string, number or Buffer"); 1618 }; 1619 var m = function m(t, e, r, n, i) { 1620 var o, s = 1, a = t.length, u = e.length; 1621 if (void 0 !== n && ("ucs2" === (n = String(n).toLowerCase()) || "ucs-2" === n || "utf16le" === n || "utf-16le" === n)) { 1622 if (t.length < 2 || e.length < 2) return -1; 1623 s = 2, a /= 2, u /= 2, r /= 2; 1624 } 1625 function f(t, e) { 1626 return 1 === s ? t[e] : t.readUInt16BE(e * s); 1627 } 1628 if (i) { 1629 var l = -1; 1630 for(o = r; o < a; o++)if (f(t, o) === f(e, -1 === l ? 0 : o - l)) { 1631 if (-1 === l && (l = o), o - l + 1 === u) return l * s; 1632 } else -1 !== l && (o -= o - l), l = -1; 1633 } else for(r + u > a && (r = a - u), o = r; o >= 0; o--){ 1634 for(var c = !0, h = 0; h < u; h++)if (f(t, o + h) !== f(e, h)) { 1635 c = !1; 1636 break; 1637 } 1638 if (c) return o; 1639 } 1640 return -1; 1641 }; 1642 var b = function b(t, e, r) { 1643 r = Math.min(t.length, r); 1644 for(var _$n = [], i = e; i < r;){ 1645 var o, s, a, u, f = t[i], l = null, c = f > 239 ? 4 : f > 223 ? 3 : f > 191 ? 2 : 1; 1646 if (i + c <= r) switch(c){ 1647 case 1: 1648 f < 128 && (l = f); 1649 break; 1650 case 2: 1651 (192 & (o = t[i + 1])) == 128 && (u = (31 & f) << 6 | 63 & o) > 127 && (l = u); 1652 break; 1653 case 3: 1654 o = t[i + 1], s = t[i + 2], (192 & o) == 128 && (192 & s) == 128 && (u = (15 & f) << 12 | (63 & o) << 6 | 63 & s) > 2047 && (u < 55296 || u > 57343) && (l = u); 1655 break; 1656 case 4: 1657 o = t[i + 1], s = t[i + 2], a = t[i + 3], (192 & o) == 128 && (192 & s) == 128 && (192 & a) == 128 && (u = (15 & f) << 18 | (63 & o) << 12 | (63 & s) << 6 | 63 & a) > 65535 && u < 1114112 && (l = u); 1658 } 1659 null === l ? (l = 65533, c = 1) : l > 65535 && (l -= 65536, _$n.push(l >>> 10 & 1023 | 55296), l = 56320 | 1023 & l), _$n.push(l), i += c; 1660 } 1661 return function(t) { 1662 var _$e = t.length; 1663 if (_$e <= 4096) return String.fromCharCode.apply(String, t); 1664 for(var _$r = "", _$n = 0; _$n < _$e;)_$r += String.fromCharCode.apply(String, t.slice(_$n, _$n += 4096)); 1665 return _$r; 1666 }(_$n); 1667 }; 1668 var v = function v(t, e, r) { 1669 if (t % 1 != 0 || t < 0) throw RangeError("offset is not uint"); 1670 if (t + e > r) throw RangeError("Trying to access beyond buffer length"); 1671 }; 1672 var w = function w(t, e, r, n, i, o) { 1673 if (!a.isBuffer(t)) throw TypeError('"buffer" argument must be a Buffer instance'); 1674 if (e > i || e < o) throw RangeError('"value" argument is out of bounds'); 1675 if (r + n > t.length) throw RangeError("Index out of range"); 1676 }; 1677 var E = function E(t, e, r, n, i, o) { 1678 if (r + n > t.length || r < 0) throw RangeError("Index out of range"); 1679 }; 1680 var O = function O(t, e, r, n, o) { 1681 return e = +e, r >>>= 0, o || E(t, e, r, 4, 34028234663852886e22, -34028234663852886e22), i.write(t, e, r, n, 23, 4), r + 4; 1682 }; 1683 var S = function S(t, e, r, n, o) { 1684 return e = +e, r >>>= 0, o || E(t, e, r, 8, 17976931348623157e292, -17976931348623157e292), i.write(t, e, r, n, 52, 8), r + 8; 1685 }; 1686 var _ = function _(t, e) { 1687 e = e || 1 / 0; 1688 for(var _$r, _$n = t.length, i = null, o = [], s = 0; s < _$n; ++s){ 1689 if ((_$r = t.charCodeAt(s)) > 55295 && _$r < 57344) { 1690 if (!i) { 1691 if (_$r > 56319 || s + 1 === _$n) { 1692 (e -= 3) > -1 && o.push(239, 191, 189); 1693 continue; 1694 } 1695 i = _$r; 1696 continue; 1697 } 1698 if (_$r < 56320) { 1699 (e -= 3) > -1 && o.push(239, 191, 189), i = _$r; 1700 continue; 1701 } 1702 _$r = (i - 55296 << 10 | _$r - 56320) + 65536; 1703 } else i && (e -= 3) > -1 && o.push(239, 191, 189); 1704 if (i = null, _$r < 128) { 1705 if ((e -= 1) < 0) break; 1706 o.push(_$r); 1707 } else if (_$r < 2048) { 1708 if ((e -= 2) < 0) break; 1709 o.push(_$r >> 6 | 192, 63 & _$r | 128); 1710 } else if (_$r < 65536) { 1711 if ((e -= 3) < 0) break; 1712 o.push(_$r >> 12 | 224, _$r >> 6 & 63 | 128, 63 & _$r | 128); 1713 } else if (_$r < 1114112) { 1714 if ((e -= 4) < 0) break; 1715 o.push(_$r >> 18 | 240, _$r >> 12 & 63 | 128, _$r >> 6 & 63 | 128, 63 & _$r | 128); 1716 } else throw Error("Invalid code point"); 1717 } 1718 return o; 1719 }; 1720 var T = function T(t) { 1721 for(var _$e = [], _$r = 0; _$r < t.length; ++_$r)_$e.push(255 & t.charCodeAt(_$r)); 1722 return _$e; 1723 }; 1724 var x = function x(t) { 1725 return _$n.toByteArray(function(t) { 1726 if ((t = (t = t.split("=")[0]).trim().replace(A, "")).length < 2) return ""; 1727 for(; t.length % 4 != 0;)t += "="; 1728 return t; 1729 }(t)); 1730 }; 1731 var R = function R(t, e, r, n) { 1732 for(var i = 0; i < n && !(i + r >= e.length) && !(i >= t.length); ++i)e[i + r] = t[i]; 1733 return i; 1734 }; 1735 var C = function C(t, e) { 1736 return _instanceof(t, e) || null != t && null != t.constructor && null != t.constructor.name && t.constructor.name === e.
1736name; 1737 }; 1738 var _$n = r(675), i = r(783), o = "function" == typeof Symbol && "function" == typeof Symbol.for ? Symbol.for("nodejs.util.inspect.custom") : null; 1739 e.Buffer = a, e.SlowBuffer = function(t) { 1740 return +t != t && (t = 0), a.alloc(+t); 1741 }, e.INSPECT_MAX_BYTES = 50, e.kMaxLength = 2147483647, a.TYPED_ARRAY_SUPPORT = function() { 1742 try { 1743 var _$t = new Uint8Array(1), _$e = { 1744 foo: function foo() { 1745 return 42; 1746 } 1747 }; 1748 return Object.setPrototypeOf(_$e, Uint8Array.prototype), Object.setPrototypeOf(_$t, _$e), 42 === _$t.foo(); 1749 } catch (t) { 1750 return !1; 1751 } 1752 }(), a.TYPED_ARRAY_SUPPORT || "undefined" == typeof console || "function" != typeof console.error || console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."), Object.defineProperty(a.prototype, "parent", { 1753 enumerable: !0, 1754 get: function get() { 1755 if (a.isBuffer(this)) return this.buffer; 1756 } 1757 }), Object.defineProperty(a.prototype, "offset", { 1758 enumerable: !0, 1759 get: function get() { 1760 if (a.isBuffer(this)) return this.byteOffset; 1761 } 1762 }), a.poolSize = 8192, a.from = function(t, e, r) { 1763 return u(t, e, r); 1764 }, Object.setPrototypeOf(a.prototype, Uint8Array.prototype), Object.setPrototypeOf(a, Uint8Array), a.alloc = function(t, e, r) { 1765 return (f(t), t <= 0) ? s(t) : void 0 !== e ? "string" == typeof r ? s(t).fill(e, r) : s(t).fill(e) : s(t); 1766 }, a.allocUnsafe = function(t) { 1767 return l(t); 1768 }, a.allocUnsafeSlow = function(t) { 1769 return l(t); 1770 }, a.isBuffer = function(t) { 1771 return null != t && !0 === t._isBuffer && t !== a.prototype; 1772 }, a.compare = function(t, e) { 1773 if (C(t, Uint8Array) && (t = a.from(t, t.offset, t.byteLength)), C(e, Uint8Array) && (e = a.from(e, e.offset, e.byteLength)), !a.isBuffer(t) || !a.isBuffer(e)) throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'); 1774 if (t === e) return 0; 1775 for(var _$r = t.length, _$n = e.length, i = 0, o = Math.min(_$r, _$n); i < o; ++i)if (t[i] !== e[i]) { 1776 _$r = t[i], _$n = e[i]; 1777 break; 1778 } 1779 return _$r < _$n ? -1 : _$n < _$r ? 1 : 0; 1780 }, a.isEncoding = function(t) { 1781 switch(String(t).toLowerCase()){ 1782 case "hex": 1783 case "utf8": 1784 case "utf-8": 1785 case "ascii": 1786 case "latin1": 1787 case "binary": 1788 case "base64": 1789 case "ucs2": 1790 case "ucs-2": 1791 case "utf16le": 1792 case "utf-16le": 1793 return !0; 1794 default: 1795 return !1; 1796 } 1797 }, a.concat = function(t, e) { 1798 if (!Array.isArray(t)) throw TypeError('"list" argument must be an Array of Buffers'); 1799 if (0 === t.length) return a.alloc(0); 1800 if (void 0 === e) for(_$r = 0, e = 0; _$r < t.length; ++_$r)e += t[_$r].length; 1801 var _$r, _$n = a.allocUnsafe(e), i = 0; 1802 for(_$r = 0; _$r < t.length; ++_$r){ 1803 var o = t[_$r]; 1804 if (C(o, Uint8Array) && (o = a.from(o)), !a.isBuffer(o)) throw TypeError('"list" argument must be an Array of Buffers'); 1805 o.copy(_$n, i), i += o.length; 1806 } 1807 return _$n; 1808 }, a.byteLength = p, a.prototype._isBuffer = !0, a.prototype.swap16 = function() { 1809 var _$t = this.length; 1810 if (_$t % 2 != 0) throw RangeError("Buffer size must be a multiple of 16-bits"); 1811 for(var _$e = 0; _$e < _$t; _$e += 2)y(this, _$e, _$e + 1); 1812 return this; 1813 }, a.prototype.swap32 = function() { 1814 var _$t = this.length; 1815 if (_$t % 4 != 0) throw RangeError("Buffer size must be a multiple of 32-bits"); 1816 for(var _$e = 0; _$e < _$t; _$e += 4)y(this, _$e, _$e + 3), y(this, _$e + 1, _$e + 2); 1817 return this; 1818 }, a.prototype.swap64 = function() { 1819 var _$t = this.length; 1820 if (_$t % 8 != 0) throw RangeError("Buffer size must be a multiple of 64-bits"); 1821 for(var _$e = 0; _$e < _$t; _$e += 8)y(this, _$e, _$e + 7), y(this, _$e + 1, _$e + 6), y(this, _$e + 2, _$e + 5), y(this, _$e + 3, _$e + 4); 1822 return this; 1823 }, a.prototype.toString = function() { 1824 var _$t = this.length; 1825 return 0 === _$t ? "" : 0 == arguments.length ? b(this, 0, _$t) : d.apply(this, arguments); 1826 }
1826, a.prototype.toLocaleString = a.prototype.toString, a.prototype.equals = function(t) { 1827 if (!a.isBuffer(t)) throw TypeError("Argument must be a Buffer"); 1828 return this === t || 0 === a.compare(this, t); 1829 }, a.prototype.inspect = function() { 1830 var _$t = "", _$r = e.INSPECT_MAX_BYTES; 1831 return _$t = this.toString("hex", 0, _$r).replace(/(.{2})/g, "$1 ").trim(), this.length > _$r && (_$t += " ... "), "<Buffer " + _$t + ">"; 1832 }, o && (a.prototype[o] = a.prototype.inspect), a.prototype.compare = function(t, e, r, n, i) { 1833 if (C(t, Uint8Array) && (t = a.from(t, t.offset, t.byteLength)), !a.isBuffer(t)) throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type ' + (typeof t === "undefined" ? "undefined" : _type_of(t))); 1834 if (void 0 === e && (e = 0), void 0 === r && (r = t ? t.length : 0), void 0 === n && (n = 0), void 0 === i && (i = this.length), e < 0 || r > t.length || n < 0 || i > this.length) throw RangeError("out of range index"); 1835 if (n >= i && e >= r) return 0; 1836 if (n >= i) return -1; 1837 if (e >= r) return 1; 1838 if (e >>>= 0, r >>>= 0, n >>>= 0, i >>>= 0, this === t) return 0; 1839 for(var o = i - n, s = r - e, u = Math.min(o, s), f = this.slice(n, i), l = t.slice(e, r), c = 0; c < u; ++c)if (f[c] !== l[c]) { 1840 o = f[c], s = l[c]; 1841 break; 1842 } 1843 return o < s ? -1 : s < o ? 1 : 0; 1844 }, a.prototype.includes = function(t, e, r) { 1845 return -1 !== this.indexOf(t, e, r); 1846 }, a.prototype.indexOf = function(t, e, r) { 1847 return g(this, t, e, r, !0); 1848 }, a.prototype.lastIndexOf = function(t, e, r) { 1849 return g(this, t, e, r, !1); 1850 }, a.prototype.write = function(t, e, r, n) { 1851 if (void 0 === e) n = "utf8", r = this.length, e = 0; 1852 else if (void 0 === r && "string" == typeof e) n = e, r = this.length, e = 0; 1853 else if (isFinite(e)) e >>>= 0, isFinite(r) ? (r >>>= 0, void 0 === n && (n = "utf8")) : (n = r, r = void 0); 1854 else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported"); 1855 var i, o, s, a, u, f, l, c, h, p, d, y, g = this.length - e; 1856 if ((void 0 === r || r > g) && (r = g), t.length > 0 && (r < 0 || e < 0) || e > this.length) throw RangeError("Attempt to write outside buffer bounds"); 1857 n || (n = "utf8"); 1858 for(var m = !1;;)switch(n){ 1859 case "hex": 1860 return function(t, e, r, n) { 1861 r = Number(r) || 0; 1862 var i = t.length - r; 1863 n ? (n = Number(n)) > i && (n = i) : n = i; 1864 var o = e.length; 1865 n > o / 2 && (n = o / 2); 1866 for(var s = 0; s < n; ++s){ 1867 var a = parseInt(e.substr(2 * s, 2), 16); 1868 if (a != a) break; 1869 t[r + s] = a; 1870 } 1871 return s; 1872 }(this, t, e, r); 1873 case "utf8": 1874 case "utf-8": 1875 return u = e, f = r, R(_(t, this.length - u), this, u, f); 1876 case "ascii": 1877 return l = e, c = r, R(T(t), this, l, c); 1878 case "latin1": 1879 case "binary": 1880 return i = this, o = t, s = e, a = r, R(T(o), i, s, a); 1881 case "base64": 1882 return h = e, p = r, R(x(t), this, h, p); 1883 case "ucs2": 1884 case "ucs-2": 1885 case "utf16le": 1886 case "utf-16le": 1887 return d = e, y = r, R(function(t, e) { 1888 for(var _$r, _$n, i = [], o = 0; o < t.length && !((e -= 2) < 0); ++o)_$n = (_$r = t.charCodeAt(o)) >> 8, i.push(_$r % 256), i.push(_$n); 1889 return i; 1890 }(t, this.length - d), this, d, y); 1891 default: 1892 if (m) throw TypeError("Unknown encoding: " + n); 1893 n = ("" + n).toLowerCase(), m = !0; 1894 } 1895 }, a.prototype.toJSON = function() { 1896 return { 1897 type: "Buffer", 1898 data: Array.prototype.slice.call(this._arr || this, 0) 1899 }; 1900 }, a.prototype.slice = function(t, e) { 1901 var _$r = this.length; 1902 t = ~~t, e = void 0 === e ? _$r : ~~e, t < 0 ? (t += _$r) < 0 && (t = 0) : t > _$r && (t = _$r), e < 0 ? (e += _$r) < 0 && (e = 0) : e > _$r && (e = _$r), e < t && (e = t); 1903 var _$n = this.subarray(t, e); 1904 return Object.setPrototypeOf(_$n, a.prototype), _$n; 1905 }, a.prototype.readUIntLE = function(t, e, r) { 1906 t >>>= 0, e >>>= 0, r || v(t, e, this.length); 1907 for(var _$n = this[t], i = 1, o = 0; ++o < e && (i *= 256);)_$n += this[t + o] * i; 1908 return _$n; 1909 }, a.prototype.readUIntBE = function(t, e, r) { 1910 t >>>= 0, e >>>= 0, r || v(t, e, this.length); 1911 for(var _$n = this[t + --e], i = 1; e > 0 && (i *= 256);)_$n += this[t + --e] * i; 1912 return _$n; 1913 }, a.prototype.readUInt8 = function(t, e) { 1914 return t >>>= 0, e || v(t, 1, this.length), this[t]; 1915 }, a.prototype.readUInt16LE = function(t, e) { 1916 return t >>>= 0, e || v(t, 2, this.length), this[t] | this[t + 1] << 8; 1917 }, a.prototype.readUInt16BE = function(t, e) { 1918 return t >>>= 0, e || v(t, 2, this.length), this[t] << 8 | this[t + 1]; 1919 }, a.prototype.readUInt32LE = function(t, e) { 1920 return t >>>= 0, e || v(t, 4, this.length), (this[t] | this[t + 1] << 8 | this[t + 2] << 16) + 16777216 * this[t + 3]; 1921 }, a.prototype.readUInt32BE = function(t, e) { 1922 return t >>>= 0, e || v(t, 4, this.length), 16777216 * this[t] + (this[t + 1] << 16 | this[t + 2] << 8 | this[t + 3]); 1923 }, a.prototype.readIntLE = function(t, e, r) { 1924 t >>>= 0, e >>>= 0, r || v(t, e, this.length); 1925 for(var _$n = this[t], i = 1, o = 0; ++o < e && (i *= 256);)_$n += this[t + o] * i; 1926 return _$n >= (i *= 128) && (_$n -= Math.pow(2, 8 * e)), _$n; 1927 }, a.prototype.readIntBE = function(t, e, r) { 1928 t >>>= 0, e >>>= 0, r || v(t, e, this.length); 1929 for(var _$n = e, i = 1, o = this[t + --_$n]; _$n > 0 && (i *= 256);)o += this[t + --_$n] * i; 1930 return o >= (i *= 128) && (o -= Math.pow(2, 8 * e)), o; 1931 }, a.prototype.readInt8 = function(t, e) { 1932 return (t >>>= 0, e || v(t, 1, this.length), 128 & this[t]) ? -((255 - this[t] + 1) * 1) : this[t]; 1933 }, a.prototype.readInt16LE = function(t, e) { 1934 t >>>= 0, e || v(t, 2, this.length); 1935 var _$r = this[t] | this[t + 1] << 8; 1936 return 32768 & _$r ? 4294901760 | _$r : _$r; 1937 }, a.prototype.readInt16BE = function(t, e) { 1938 t >>>= 0, e || v(t, 2, this.length); 1939 var _$r = this[t + 1] | this[t] << 8; 1940 return 32768 & _$r ? 4294901760 | _$r : _$r; 1941 }, a.prototype.readInt32LE = function(t, e) { 1942 return t >>>= 0, e || v(t, 4, this.length), this[t] | this[t + 1] << 8 | this[t + 2] << 16 | this[t + 3] << 24; 1943 }, a.prototype.readInt32BE = function(t, e) { 1944 return t >>>= 0, e || v(t, 4, this.length), this[t] << 24 | this[t + 1] << 16 | this[t + 2] << 8 | this[t + 3]; 1945 }, a.prototype.readFloatLE = function(t, e) { 1946 return t >>>= 0, e || v(t, 4, this.length), i.read(this, t, !0, 23, 4); 1947 }, a.prototype.readFloatBE = function(t, e) { 1948 return t >>>= 0, e || v(t, 4, this.length), i.read(this, t, !1, 23, 4); 1949 }, a.prototype.readDoubleLE = function(t, e) { 1950 return t >>>= 0, e || v(t, 8, this.length), i.read(this, t, !0, 52, 8); 1951 }, a.prototype.readDoubleBE = function(t, e) { 1952 return t >>>= 0, e || v(t, 8, this.length), i.read(this, t, !1, 52, 8); 1953 }, a.prototype.writeUIntLE = function(t, e, r, n) { 1954 if (t = +t, e >>>= 0, r >>>= 0, !n) { 1955 var i = Math.pow(2, 8 * r) - 1; 1956 w(this, t, e, r, i, 0); 1957 } 1958 var o = 1, s = 0; 1959 for(this[e] = 255 & t; ++s < r && (o *= 256);)this[e + s] = t / o & 255; 1960 return e + r; 1961 }, a.prototype.writeUIntBE = function(t, e, r, n) { 1962 if (t = +t, e >>>= 0, r >>>= 0, !n) { 1963 var i = Math.pow(2, 8 * r) - 1; 1964 w(this, t, e, r, i, 0); 1965 } 1966 var o = r - 1, s = 1; 1967 for(this[e + o] = 255 & t; --o >= 0 && (s *= 256);)this[e + o] = t / s & 255; 1968 return e + r; 1969 }, a.prototype.writeUInt8 = function(t, e, r) { 1970 return t = +t, e >>>= 0, r || w(this, t, e, 1, 255, 0), this[e] = 255 & t, e + 1; 1971 }, a.prototype.writeUInt16LE = function(t, e, r) { 1972 return t = +t, e >>>= 0, r || w(this, t, e, 2, 65535, 0), this[e] = 255 & t, this[e + 1] = t >>> 8, e + 2; 1973 }, a.prototype.writeUInt16BE = function(t, e, r) { 1974 return t = +t, e >>>= 0, r || w(this, t, e, 2, 65535, 0), this[e] = t >>> 8, this[e + 1] = 255 & t, e + 2; 1975 }, a.prototype.writeUInt32LE = function(t, e, r) { 1976 return t = +t, e >>>= 0, r || w(this, t, e, 4, 4294967295, 0), this[e + 3] = t >>> 24, this[e + 2] = t >>> 16, this[e + 1] = t >>> 8, this[e] = 255 & t, e + 4; 1977 }, a.prototype.writeUInt32BE = function(t, e, r) { 1978 return t = +t, e >>>= 0, r || w(this, t, e, 4, 4294967295, 0), this[e] = t >>> 24, this[e + 1] = t >>> 16, this[e + 2] = t >>> 8, this[e + 3] = 255 & t, e + 4; 1979 }, a.prototype.writeIntLE = function(t, e, r, n) { 1980 if (t = +t, e >>>= 0, !n) { 1981 var i = Math.pow(2, 8 * r - 1); 1982 w(this, t, e, r, i - 1, -i); 1983 } 1984 var o = 0, s = 1, a = 0; 1985 for(this[e] = 255 & t; ++o < r && (s *= 256);)t < 0 && 0 === a && 0 !== this[e + o - 1] && (a = 1), this[e + o] = (t / s >> 0) - a & 255; 1986 return e + r; 1987 }, a.prototype.writeIntBE = function(t, e, r, n) { 1988 if (t = +t, e >>>= 0, !n) { 1989 var i = Math.pow(2, 8 * r - 1); 1990 w(this, t, e, r, i - 1, -i); 1991 } 1992 var o = r - 1, s = 1, a = 0; 1993 for(this[e + o] = 255 & t; --o >= 0 && (s *= 256);)t < 0 && 0 === a && 0 !== this[e + o + 1] && (a = 1), this[e + o] = (t / s >> 0) - a & 255; 1994 return e + r; 1995 }, a.prototype.writeInt8 = function(t, e, r) { 1996 return t = +t, e >>>= 0, r || w(this, t, e, 1, 127, -128), t < 0 && (t = 255 + t + 1), this[e] = 255 & t, e + 1; 1997 }
1997, a.prototype.writeInt16LE = function(t, e, r) { 1998 return t = +t, e >>>= 0, r || w(this, t, e, 2, 32767, -32768), this[e] = 255 & t, this[e + 1] = t >>> 8, e + 2; 1999 }, a.prototype.writeInt16BE = function(t, e, r) { 2000 return t = +t, e >>>= 0, r || w(this, t, e, 2, 32767, -32768), this[e] = t >>> 8, this[e + 1] = 255 & t, e + 2; 2001 }, a.prototype.writeInt32LE = function(t, e, r) { 2002 return t = +t, e >>>= 0, r || w(this, t, e, 4, 2147483647, -2147483648), this[e] = 255 & t, this[e + 1] = t >>> 8, this[e + 2] = t >>> 16, this[e + 3] = t >>> 24, e + 4; 2003 }, a.prototype.writeInt32BE = function(t, e, r) { 2004 return t = +t, e >>>= 0, r || w(this, t, e, 4, 2147483647, -2147483648), t < 0 && (t = 4294967295 + t + 1), this[e] = t >>> 24, this[e + 1] = t >>> 16, this[e + 2] = t >>> 8, this[e + 3] = 255 & t, e + 4; 2005 }, a.prototype.writeFloatLE = function(t, e, r) { 2006 return O(this, t, e, !0, r); 2007 }, a.prototype.writeFloatBE = function(t, e, r) { 2008 return O(this, t, e, !1, r); 2009 }, a.prototype.writeDoubleLE = function(t, e, r) { 2010 return S(this, t, e, !0, r); 2011 }, a.prototype.writeDoubleBE = function(t, e, r) { 2012 return S(this, t, e, !1, r); 2013 }, a.prototype.copy = function(t, e, r, n) { 2014 if (!a.isBuffer(t)) throw TypeError("argument should be a Buffer"); 2015 if (r || (r = 0), n || 0 === n || (n = this.length), e >= t.length && (e = t.length), e || (e = 0), n > 0 && n < r && (n = r), n === r || 0 === t.length || 0 === this.length) return 0; 2016 if (e < 0) throw RangeError("targetStart out of bounds"); 2017 if (r < 0 || r >= this.length) throw RangeError("Index out of range"); 2018 if (n < 0) throw RangeError("sourceEnd out of bounds"); 2019 n > this.length && (n = this.length), t.length - e < n - r && (n = t.length - e + r); 2020 var i = n - r; 2021 if (this === t && "function" == typeof Uint8Array.prototype.copyWithin) this.copyWithin(e, r, n); 2022 else if (this === t && r < e && e < n) for(var o = i - 1; o >= 0; --o)t[o + e] = this[o + r]; 2023 else Uint8Array.prototype.set.call(t, this.subarray(r, n), e); 2024 return i; 2025 }, a.prototype.fill = function(t, e, r, n) { 2026 if ("string" == typeof t) { 2027 if ("string" == typeof e ? (n = e, e = 0, r = this.length) : "string" == typeof r && (n = r, r = this.length), void 0 !== n && "string" != typeof n) throw TypeError("encoding must be a string"); 2028 if ("string" == typeof n && !a.isEncoding(n)) throw TypeError("Unknown encoding: " + n); 2029 if (1 === t.length) { 2030 var i, o = t.charCodeAt(0); 2031 ("utf8" === n && o < 128 || "latin1" === n) && (t = o); 2032 } 2033 } else "number" == typeof t ? t &= 255 : "boolean" == typeof t && (t = Number(t)); 2034 if (e < 0 || this.length < e || this.length < r) throw RangeError("Out of range index"); 2035 if (r <= e) return this; 2036 if (e >>>= 0, r = void 0 === r ? this.length : r >>> 0, t || (t = 0), "number" == typeof t) for(i = e; i < r; ++i)this[i] = t; 2037 else { 2038 var s = a.isBuffer(t) ? t : a.from(t, n), u = s.length; 2039 if (0 === u) throw TypeError('The value "' + t + '" is invalid for argument "value"'); 2040 for(i = 0; i < r - e; ++i)this[i + e] = s[i % u]; 2041 } 2042 return this; 2043 }; 2044 var A = /[^+/0-9A-Za-z-_]/g; 2045 var B = function() { 2046 for(var _$t = "0123456789abcdef", _$e = Array(256), _$r = 0; _$r < 16; ++_$r)for(var _$n = 16 * _$r, i = 0; i < 16; ++i)_$e[_$n + i] = _$t[_$r] + _$t[i]; 2047 return _$e; 2048 }(); 2049 }, 2050 783: function(t, e) { 2051 e.read = function(t, e, r, n, i) { 2052 var o, s, a = 8 * i - n - 1, u = (1 << a) - 1, f = u >> 1, l = -7, c = r ? i - 1 : 0, h = r ? -1 : 1, p = t[e + c]; 2053 for(c += h, o = p & (1 << -l) - 1, p >>= -l, l += a; l > 0; o = 256 * o + t[e + c], c += h, l -= 8); 2054 for(s = o & (1 << -l) - 1, o >>= -l, l += n; l > 0; s = 256 * s + t[e + c], c += h, l -= 8); 2055 if (0 === o) o = 1 - f; 2056 else { 2057 if (o === u) return s ? NaN : (p ? -1 : 1) * (1 / 0); 2058 s += Math.pow(2, n), o -= f; 2059 } 2060 return (p ? -1 : 1) * s * Math.pow(2, o - n); 2061 }, e.write = function(t, e, r, n, i, o) { 2062 var s, a, u, f = 8 * o - i - 1, l = (1 << f) - 1, c = l >> 1, h = 23 === i ? 5960464477539062e-23 : 0, p = n ? 0 : o - 1, d = n ? 1 : -1, y = e < 0 || 0 === e && 1 / e < 0 ? 1 : 0; 2063 for(isNaN(e = Math.abs(e)) || e === 1 / 0 ? (a = isNaN(e) ? 1 : 0, s = l) : (s = Math.floor(Math.log(e) / Math.LN2), e * (u = Math.pow(2, -s)) < 1 && (s--, u *= 2), s + c >= 1 ? e += h / u : e += h * Math.pow(2, 1 - c), e * u >= 2 && (s++, u /= 2), s + c >= l ? (a = 0, s = l) : s + c >= 1 ? (a = (e * u - 1) * Math.pow(2, i), s += c) : (a = e * Math.pow(2, c - 1) * Math.pow(2, i), s = 0)); i >= 8; t[r + p] = 255 & a, p += d, a /= 256, i -= 8); 2064 for(s = s << i | a, f += i; f > 0; t[r + p] = 255 & s, p += d, s /= 256, f -= 8); 2065 t[r + p - d] |= 128 * y; 2066 }; 2067 } 2068 }, r = {}; 2069 function n(t) { 2070 var i = r[t]; 2071 if (void 0 !== i) return i.exports; 2072 var o = r[t] = { 2073 exports: {} 2074 }, s = !0; 2075 try { 2076 e[t](o, o.exports, n), s = !1; 2077 } finally{ 2078 s && delete r[t]; 2079 } 2080 return o.exports; 2081 } 2082 n.ab = "//"; 2083 var i = n(72); 2084 t.exports = i; 2085 }(); 2086 }, 2087 93967: function(t, e) { 2088 var r; /*! 2089 Copyright (c) 2018 Jed Watson. 2090 Licensed under the MIT License (MIT), see 2091 http://jedwatson.github.io/classnames 2092*/ 2093 !function() { 2094 "use strict"; 2095 var o = function o(t, e) { 2096 return e ? t ? t + " " + e : t + e : t; 2097 }; 2098 var n = {}.hasOwnProperty; 2099 function i() { 2100 for(var _$t = "", _$e = 0; _$e < arguments.length; _$e++){ 2101 var r = arguments[_$e]; 2102 r && (_$t = o(_$t, function(t) { 2103 if ("string" == typeof t || "number" == typeof t) return t; 2104 if ("object" != typeof t) return ""; 2105 if (Array.isArray(t)) return i.apply(null, t); 2106 if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]")) return t.toString(); 2107 var _$e = ""; 2108 for(var r in t)n.call(t, r) && t[r] && (_$e = o(_$e, r)); 2109 return _$e; 2110 }(r))); 2111 } 2112 return _$t; 2113 } 2114 t.exports ? (i.default = i, t.exports = i) : void 0 !== (r = (function() { 2115 return i; 2116 }).apply(e, [])) && (t.exports = r); 2117 }(); 2118 }, 2119 30907: function(t, e, r) { 2120 "use strict"; 2121 var n = function n(t, e) { 2122 (null == e || e > t.length) && (e = t.length); 2123 for(var _$r = 0, n = Array(e); _$r < e; _$r++)n[_$r] = t[_$r]; 2124 return n; 2125 }; 2126 r.d(e, { 2127 Z: function Z() { 2128 return n; 2129 } 2130 }); 2131 }, 2132 4942: function(t, e, r) { 2133 "use strict"; 2134 var i = function i(t, e, r) { 2135 return (e = (0, n.Z)(e)) in t ? Object.defineProperty(t, e, { 2136 value: r, 2137 enumerable: !0, 2138 configurable: !0, 2139 writable: !0 2140 }) : t[e] = r, t; 2141 }; 2142 r.d(e, { 2143 Z: function Z() { 2144 return i; 2145 } 2146 }); 2147 var n = r(83997); 2148 }, 2149 87462: function(t, e, r) { 2150 "use strict"; 2151 function n() { 2152 return (n = Object.assign ? Object.assign.bind() : function n(t) { 2153 for(var _$e = 1; _$e < arguments.length; _$e++){ 2154 var _$r = arguments[_$e]; 2155 for(var _$n in _$r)Object.prototype.hasOwnProperty.call(_$r, _$n) && (t[_$n] = _$r[_$n]); 2156 } 2157 return t; 2158 }).apply(this, arguments); 2159 } 2160 r.d(e, { 2161 Z: function Z() { 2162 return n; 2163 } 2164 }); 2165 }, 2166 45987: function(t, e, r) { 2167 "use strict"; 2168 var i = function i(t, e) { 2169 if (null == t) return {}; 2170 var _$r, i, o = (0, n.Z)(t, e); 2171 if (Object.getOwnPropertySymbols) { 2172 var s = Object.getOwnPropertySymbols(t); 2173 for(i = 0; i < s.length; i++)_$r = s[i], !(e.indexOf(_$r) >= 0) && Object.prototype.propertyIsEnumerable.call(t, _$r) && (o[_$r] = t[_$r]); 2174 } 2175 return o; 2176 }; 2177 r.d(e, { 2178 Z: function Z() { 2179 return i; 2180 } 2181 }); 2182 var n = r(63366); 2183 }, 2184 63366: function(t, e, r) { 2185 "use strict"; 2186 var n = function n(t, e) { 2187 if (null == t) return {}; 2188 var _$r, n, i = {}, o = Object.keys(t); 2189 for(n = 0; n < o.length; n++)_$r = o[n], e.indexOf(_$r) >= 0 || (i[_$r] = t[_$r]); 2190 return i; 2191 }; 2192 r.d(e, { 2193 Z: function Z() { 2194 return n; 2195 } 2196 }); 2197 }, 2198 89611: function(t, e, r) { 2199 "use strict"; 2200 function n(t, e) { 2201 return (n = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function n(t, e) { 2202 return t.__proto__ = e, t; 2203 })(t, e); 2204 } 2205 r.d(e, { 2206 Z: function Z() { 2207 return n; 2208 } 2209 }); 2210 }, 2211 86854: function(t, e, r) { 2212 "use strict"; 2213 var i = function i(t, e) { 2214 return function(t) { 2215 if (Array.isArray(t)) return t; 2216 }(t) || function(t, e) { 2217 var _$r = null == t ? null : "undefined" != typeof Symbol && t[Symbol.iterator] || t["@@iterator"]; 2218 if (null != _$r) { 2219 var n, i, o, s, a = [], u = !0, f = !1; 2220 try { 2221 if (o = (_$r = _$r.call(t)).next, 0 === e) { 2222 if (Object(_$r) !== _$r) return; 2223 u = !1; 2224 } else for(; !(u = (n = o.call(_$r)).done) && (a.push(n.value), a.length !== e); u = !0); 2225 } catch (t) { 2226 f = !0, i = t; 2227 } finally{ 2228 try { 2229 if (!u && null != _$r.return && (s = _$r.return(), Object(s) !== s)) return; 2230 } finally{ 2231 if (f) throw i; 2232 } 2233 } 2234 return a; 2235 } 2236 }(t, e) || (0, n.Z)(t, e) || function() {
2237 throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); 2238 }(); 2239 }; 2240 r.d(e, { 2241 Z: function Z() { 2242 return i; 2243 } 2244 }); 2245 var n = r(40181); 2246 }, 2247 83997: function(t, e, r) { 2248 "use strict"; 2249 var i = function i(t) { 2250 var _$e = function(t, e) { 2251 if ("object" != (0, n.Z)(t) || !t) return t; 2252 var _$r = t[Symbol.toPrimitive]; 2253 if (void 0 !== _$r) { 2254 var i = _$r.call(t, e || "default"); 2255 if ("object" != (0, n.Z)(i)) return i; 2256 throw TypeError("@@toPrimitive must return a primitive value."); 2257 } 2258 return ("string" === e ? String : Number)(t); 2259 }(t, "string"); 2260 return "symbol" == (0, n.Z)(_$e) ? _$e : String(_$e); 2261 }; 2262 r.d(e, { 2263 Z: function Z() { 2264 return i; 2265 } 2266 }); 2267 var n = r(71002); 2268 }, 2269 71002: function(t, e, r) { 2270 "use strict"; 2271 function n(t) { 2272 return (n = "function" == typeof Symbol && "symbol" == _type_of(Symbol.iterator) ? function n(t) { 2273 return typeof t === "undefined" ? "undefined" : _type_of(t); 2274 } : function(t) { 2275 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t === "undefined" ? "undefined" : _type_of(t); 2276 })(t); 2277 } 2278 r.d(e, { 2279 Z: function Z() { 2280 return n; 2281 } 2282 }); 2283 }, 2284 40181: function(t, e, r) { 2285 "use strict"; 2286 var i = function i(t, e) { 2287 if (t) { 2288 if ("string" == typeof t) return (0, n.Z)(t, e); 2289 var _$r = Object.prototype.toString.call(t).slice(8, -1); 2290 if ("Object" === _$r && t.constructor && (_$r = t.constructor.name), "Map" === _$r || "Set" === _$r) return Array.from(t); 2291 if ("Arguments" === _$r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_$r)) return (0, n.Z)(t, e); 2292 } 2293 }; 2294 r.d(e, { 2295 Z: function Z() { 2296 return i; 2297 } 2298 }); 2299 var n = r(30907); 2300 }, 2301 6154: function(t, e, r) { 2302 "use strict"; 2303 var i = function i(t, e) { 2304 return function() { 2305 return t.apply(e, arguments); 2306 }; 2307 }; 2308 var S = function S(t, e) { 2309 var _ref = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, tmp = _ref.allOwnKeys, _$r = tmp === void 0 ? !1 : tmp; 2310 var n, i; 2311 if (null != t) { 2312 if ("object" != typeof t && (t = [ 2313 t 2314 ]), l(t)) for(n = 0, i = t.length; n < i; n++)e.call(null, t[n], n, t); 2315 else { 2316 var i1; 2317 var o = _$r ? Object.getOwnPropertyNames(t) : Object.keys(t), s = o.length; 2318 for(n = 0; n < s; n++)i1 = o[n], e.call(null, t[i1], i1, t); 2319 } 2320 } 2321 }; 2322 var A = function A(t, e) { 2323 var _$r; 2324 e = e.toLowerCase(); 2325 var n = Object.keys(t), i = n.length; 2326 for(; i-- > 0;)if (e === (_$r = n[i]).toLowerCase()) return _$r; 2327 return null; 2328 }; 2329 var M = function M(t, e, r, n, i) { 2330 Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), r && (this.config = r), n && (this.request = n), i && (this.response = i
2330); 2331 }; 2332 var H = function H(t) { 2333 return N.isPlainObject(t) || N.isArray(t); 2334 }; 2335 var K = function K(t) { 2336 return N.endsWith(t, "[]") ? t.slice(0, -2) : t; 2337 }; 2338 var V = function V(t, e, r) { 2339 return t ? t.concat(e).map(function(t, e) { 2340 return t = K(t), !r && e ? "[" + t + "]" : t; 2341 }).join(r ? "." : "") : e; 2342 }; 2343 var W = function W(t) { 2344 var _$e = { 2345 "!": "%21", 2346 "'": "%27", 2347 "(": "%28", 2348 ")": "%29", 2349 "~": "%7E", 2350 "%20": "+", 2351 "%00": "\x00" 2352 }; 2353 return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g, function(t) { 2354 return _$e[t]; 2355 }); 2356 }; 2357 var $ = function $(t, e) { 2358 this._pairs = [], t && Z(t, this, e); 2359 }; 2360 var X = function X(t) { 2361 return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]"); 2362 }; 2363 var Y = function Y(t, e, r) { 2364 var n; 2365 if (!e) return t; 2366 var i = r && r.encode || X, o = r && r.serialize; 2367 if (n = o ? o(e, r) : N.isURLSearchParams(e) ? e.toString() : new $(e, r).toString(i)) { 2368 var _$e = t.indexOf("#"); 2369 -1 !== _$e && (t = t.slice(0, _$e)), t += (-1 === t.indexOf("?") ? "?" : "&") + n; 2370 } 2371 return t; 2372 }; 2373 var tp = function tp(t) { 2374 return t && String(t).trim().toLowerCase(); 2375 }; 2376 var tg = function tg(t, e, r, n, i) { 2377 if (N.isFunction(n)) return n.call(this, e, r); 2378 if (i && (e = r), N.isString(e)) { 2379 if (N.isString(n)) return -1 !== e.indexOf(n); 2380 if (N.isRegExp(n)) return n.test(e); 2381 } 2382 }; 2383 var tb = function tb(t, e) { 2384 var _$r = this || tf, n = e || _$r, i = tm.from(n.headers), o = n.data; 2385 return N.forEach(t, function(t) { 2386 o = t.call(_$r, o, i.normalize(), e ? e.status : void 0); 2387 }), i.normalize(), o; 2388 }; 2389 var tv = function tv(t) { 2390 return !!(t && t.__CANCEL__); 2391 }; 2392 var tw = function tw(t, e, r) { 2393 M.call(this, null == t ? "canceled" : t, M.ERR_CANCELED, e, r), this.name = "CanceledError"; 2394 }; 2395 var tO = function tO(t, e) { 2396 return t && !/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e) ? e ? t.replace(/\/+$/, "") + "/" + e.replace(/^\/+/, "") : t : e; 2397 }; 2398 var t_ = function t_(t, e) { 2399 var _$r = 0, n = tA(50, 250); 2400 return function(i) { 2401 var o = i.loaded, s = i.lengthComputable ? i.total : void 0, a = o - _$r, u = n(a), f = o <= s; 2402 _$r = o; 2403 var l = { 2404 loaded: o, 2405 total: s, 2406 progress: s ? o / s : void 0, 2407 bytes: a, 2408 rate: u || void 0, 2409 estimated: u && s && f ? (s - o) / u : void 0, 2410 event: i 2411 }; 2412 l[e ? "download" : "upload"] = !0, t(l); 2413 }; 2414 }; 2415 var tB = function tB(t) { 2416 if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted) throw new tw(null, t); 2417 }; 2418 var tj = function tj(t) { 2419 tB(t), t.headers = tm.from(t.headers), t.data = tb.call(t, t.transformRequest), -1 !== [ 2420 "post", 2421 "put", 2422 "patch" 2423 ].indexOf(t.method) && t.headers.setContentType("application/x-www-form-urlencoded", !1); 2424 var _$e = tC.getAdapter(t.adapter || tf.adapter); 2425 return _$e(t).then(function(e) { 2426 return tB(t), e.data = tb.call(t, t.transformResponse, e), e.headers = tm.from(e.headers), e; 2427 }, function(e) { 2428 return !tv(e) && (tB(t), e && e.response && (e.response.data = tb.call(t, t.transformResponse, e.response), e.response.headers = tm.from(e.response.headers))), Promise.reject(e); 2429 }); 2430 }; 2431 var tk = function tk(t, e) { 2432 e = e || {}; 2433 var _$r = {}; 2434 function n(t, e, r) { 2435 return N.isPlainObject(t) && N.isPlainObject(e) ? N.merge.call({ 2436 caseless: r 2437 }, t, e) : N.isPlainObject(e) ? N.merge({}, e) : N.isArray(e) ? e.slice() : e; 2438 } 2439 function i(t, e, r) { 2440 return N.isUndefined(e) ? N.isUndefined(t) ? void 0 : n(void 0, t, r) : n(t, e, r); 2441 } 2442 function o(t, e) { 2443 if (!N.isUndefined(e)) return n(void 0, e); 2444 } 2445 function s(t, e) { 2446 return N.isUndefined(e) ? N.isUndefined(t) ? void 0 : n(void 0, t) : n(void 0, e); 2447 } 2448 function a(r, i, o) { 2449 return o in e ? n(r, i) : o in t ? n(void 0, r) : void 0; 2450 } 2451 var u = { 2452 url: o, 2453 method: o, 2454 data: o, 2455 baseURL: s, 2456 transformRequest: s, 2457 transformResponse: s, 2458 paramsSerializer: s, 2459 timeout: s, 2460 timeoutMessage: s, 2461 withCredentials: s, 2462 adapter: s, 2463 responseType: s, 2464 xsrfCookieName: s, 2465 xsrfHeaderName: s, 2466 onUploadProgress: s, 2467 onDownloadProgress: s, 2468 decompress: s, 2469 maxContentLength: s,
2470 maxBodyLength: s, 2471 beforeRedirect: s, 2472 transport: s, 2473 httpAgent: s, 2474 httpsAgent: s, 2475 cancelToken: s, 2476 socketPath: s, 2477 responseEncoding: s, 2478 validateStatus: a, 2479 headers: function(t, e) { 2480 return i(tP(t), tP(e), !0); 2481 } 2482 }; 2483 return N.forEach(Object.keys(Object.assign({}, t, e)), function(n) { 2484 var _$o = u[n] || i, _$s = _$o(t[n], e[n], n); 2485 N.isUndefined(_$s) && _$o !== a || (_$r[n] = _$s); 2486 }), _$r; 2487 }; 2488 var n; 2489 r.d(e, { 2490 Z: function Z() { 2491 return tH; 2492 } 2493 }); 2494 var _Object_prototype = Object.prototype, o = _Object_prototype.toString, s = Object.getPrototypeOf, a = (I = Object.create(null), function(t) { 2495 var _$e = o.call(t); 2496 return I[_$e] || (I[_$e] = _$e.slice(8, -1).toLowerCase()); 2497 }), u = function(t) { 2498 return t = t.toLowerCase(), function(e) { 2499 return a(e) === t; 2500 }; 2501 }, f = function(t) { 2502 return function(e) { 2503 return (typeof e === "undefined" ? "undefined" : _type_of(e)) === t; 2504 }; 2505 }, l = Array.isArray, c = f("undefined"), h = u("ArrayBuffer"), p = f("string"), d = f("function"), y = f("number"), g = function(t) { 2506 return null !== t && "object" == typeof t; 2507 }, m = function(t) { 2508 if ("object" !== a(t)) return !1; 2509 var _$e = s(t); 2510 return (null === _$e || _$e === Object.prototype || null === Object.getPrototypeOf(_$e)) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t); 2511 }, b = u("Date"), v = u("File"), w = u("Blob"), E = u("FileList"), O = u("URLSearchParams"); 2512 var _ = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : "undefined" != typeof window ? window : global, T = function(t) { 2513 return !c(t) && t !== _; 2514 }, x = (D = "undefined" != typeof Uint8Array && s(Uint8Array), function(t) { 2515 return D && _instanceof(t, D); 2516 }), R = u("HTMLFormElement"), C = function(param) { 2517 var t = param.hasOwnProperty; 2518 return function(e, r) { 2519 return t.call(e, r); 2520 }; 2521 }(Object.prototype), B = u("RegExp"), j = function(t, e) { 2522 var _$r = Object.getOwnPropertyDescriptors(t), n = {}; 2523 S(_$r, function(r, i) { 2524 !1 !== e(r, i, t) && (n[i] = r); 2525 }), Object.defineProperties(t, n); 2526 }, P = "abcdefghijklmnopqrstuvwxyz", k = "0123456789", U = { 2527 DIGIT: k, 2528 ALPHA: P, 2529 ALPHA_DIGIT: P + P.toUpperCase() + k 2530 }, L = u("AsyncFunction"); 2531 var I, D, N = { 2532 isArray: l, 2533 isArrayBuffer: h, 2534 isBuffer: function isBuffer(t) { 2535 return null !== t && !c(t) && null !== t.constructor && !c(t.constructor) && d(t.constructor.isBuffer) && t.constructor.isBuffer(t); 2536 }, 2537 isFormData: function(t) { 2538 var _$e; 2539 return t && ("function" == typeof FormData && _instanceof(t, FormData) || d(t.append) && ("formdata" === (_$e = a(t)) || "object" === _$e && d(t.toString) && "[object FormData]" === t.toString())); 2540 }, 2541 isArrayBufferView: function isArrayBufferView(t) { 2542 return "undefined" != typeof ArrayBuffer && ArrayBuffer.isView ? ArrayBuffer.isView(t) : t && t.buffer && h(t.buffer); 2543 }, 2544 isString: p, 2545 isNumber: y, 2546 isBoolean: function(t) { 2547 return !0 === t || !1 === t; 2548 }, 2549 isObject: g, 2550 isPlainObject: m, 2551 isUndefined: c, 2552 isDate: b, 2553 isFile: v, 2554 isBlob: w, 2555 isRegExp: B, 2556 isFunction: d, 2557 isStream: function(t) { 2558 return g(t) && d(t.pipe); 2559 }, 2560 isURLSearchParams: O, 2561 isTypedArray: x, 2562 isFileList: E,
2563 forEach: S, 2564 merge: function t() { 2565 var _ref = T(this) && this || {}, _$e = _ref.caseless, _$r = {}, n = function(n, i) { 2566 var o = _$e && A(_$r, i) || i; 2567 m(_$r[o]) && m(n) ? _$r[o] = t(_$r[o], n) : m(n) ? _$r[o] = t({}, n) : l(n) ? _$r[o] = n.slice() : _$r[o] = n; 2568 }; 2569 for(var t1 = 0, _$e1 = arguments.length; t1 < _$e1; t1++)arguments[t1] && S(arguments[t1], n); 2570 return _$r; 2571 }, 2572 extend: function(t, e, r) { 2573 var _ref = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, n = _ref.allOwnKeys; 2574 return S(e, function(e, n) { 2575 r && d(e) ? t[n] = i(e, r) : t[n] = e; 2576 }, { 2577 allOwnKeys: n 2578 }), t; 2579 }, 2580 trim: function(t) { 2581 return t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ""); 2582 }, 2583 stripBOM: function(t) { 2584 return 65279 === t.charCodeAt(0) && (t = t.slice(1)), t; 2585 }, 2586 inherits: function(t, e, r, n) { 2587 t.prototype = Object.create(e.prototype, n), t.prototype.constructor = t, Object.defineProperty(t, "super", { 2588 value: e.prototype 2589 }), r && Object.assign(t.prototype, r); 2590 }, 2591 toFlatObject: function(t, e, r, n) { 2592 var i, o, a; 2593 var u = {}; 2594 if (e = e || {}, null == t) return e; 2595 do { 2596 for(o = (i = Object.getOwnPropertyNames(t)).length; o-- > 0;)a = i[o], (!n || n(a, t, e)) && !u[a] && (e[a] = t[a], u[a] = !0); 2597 t = !1 !== r && s(t); 2598 }while (t && (!r || r(t, e)) && t !== Object.prototype); 2599 return e; 2600 }, 2601 kindOf: a, 2602 kindOfTest: u, 2603 endsWith: function(t, e, r) { 2604 t = String(t), (void 0 === r || r > t.length) && (r = t.length), r -= e.length; 2605 var n = t.indexOf(e, r); 2606 return -1 !== n && n === r; 2607 }, 2608 toArray: function(t) { 2609 if (!t) return null; 2610 if (l(t)) return t; 2611 var _$e = t.length; 2612 if (!y(_$e)) return null; 2613 var _$r = Array(_$e); 2614 for(; _$e-- > 0;)_$r[_$e] = t[_$e]; 2615 return _$r; 2616 }, 2617 forEachEntry: function(t, e) { 2618 var _$r; 2619 var n = t && t[Symbol.iterator], i = n.call(t); 2620 for(; (_$r = i.next()) && !_$r.done;){ 2621 var n1 = _$r.value; 2622 e.call(t, n1[0], n1[1]); 2623 } 2624 }, 2625 matchAll: function(t, e) { 2626 var _$r; 2627 var n = []; 2628 for(; null !== (_$r = t.exec(e));)n.push(_$r); 2629 return n; 2630 }, 2631 isHTMLForm: R, 2632 hasOwnProperty: C, 2633 hasOwnProp: C, 2634 reduceDescriptors: j, 2635 freezeMethods: function(t) { 2636 j(t, function(e, r) { 2637 if (d(t) && -1 !== [ 2638 "arguments", 2639 "caller", 2640 "callee" 2641 ].indexOf(r)) return !1; 2642 var n = t[r]; 2643 if (d(n)) { 2644 if (e.enumerable = !1, "writable" in e) { 2645 e.writable = !1; 2646 return; 2647 } 2648 e.set || (e.set = function() { 2649 throw Error("Can not rewrite read-only method '" + r + "'"); 2650 }); 2651 } 2652 }); 2653 }, 2654 toObjectSet: function(t, e) { 2655 var _$r = {}; 2656 return function(t) { 2657 t.forEach(function(t) { 2658 _$r[t] = !0; 2659 }); 2660 }(l(t) ? t : String(t).split(e)), _$r; 2661 }, 2662 toCamelCase: function(t) { 2663 return t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(t, e, r) { 2664 return e.toUpperCase() + r; 2665 }); 2666 }, 2667 noop: function() {}, 2668 toFiniteNumber: function(t, e) { 2669 return Number.isFinite(t = +t) ? t : e; 2670 }, 2671 findKey: A, 2672 global: _, 2673 isContextDefined: T, 2674 ALPHABET: U, 2675 generateString: function() { 2676 var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 16, _$e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : U.ALPHA_DIGIT; 2677 var _$r = "", n = _$e.length; 2678 for(; t--;)_$r += _$e[Math.random() * n | 0]; 2679 return _$r; 2680 }, 2681 isSpecCompliantForm: function isSpecCompliantForm(t) { 2682 return !!(t && d(t.append) && "FormData" === t[Symbol.toStringTag] && t[Symbol.iterator]); 2683 }, 2684 toJSONObject: function(t) { 2685 var _$e = Array(10), _$r = function(t, n) { 2686 if (g(t)) { 2687 if (_$e.indexOf(t) >= 0) return; 2688 if (!("toJSON" in t)) { 2689 _$e[n] = t; 2690 var i = l(t) ? [] : {}; 2691 return S(t, function(t, e) { 2692 var o = _$r(t, n + 1); 2693 c(o) || (i[e] = o); 2694 }), _$e[n] = void 0, i; 2695 } 2696 } 2697 return t; 2698 }; 2699 return _$r(t, 0); 2700 }, 2701 isAsyncFn: L, 2702 isThenable: function(t) { 2703 return t && (g(t) || d(t)) && d(t.then) && d(t.catch); 2704 } 2705 }; 2706 N.inherits(M, Error, { 2707 toJSON: function toJSON() { 2708 return { 2709 message: this.message, 2710 name: this.name, 2711 description: this.description, 2712 number: this.number, 2713 fileName: this.fileName, 2714 lineNumber: this.lineNumber, 2715 columnNumber: this.columnNumber, 2716 stack: this.stack, 2717 config: N.toJSONObject(this.config),
2718 code: this.code, 2719 status: this.response && this.response.status ? this.response.status : null 2720 }; 2721 } 2722 }); 2723 var F = M.prototype, z = {}; 2724 [ 2725 "ERR_BAD_OPTION_VALUE", 2726 "ERR_BAD_OPTION", 2727 "ECONNABORTED", 2728 "ETIMEDOUT", 2729 "ERR_NETWORK", 2730 "ERR_FR_TOO_MANY_REDIRECTS", 2731 "ERR_DEPRECATED", 2732 "ERR_BAD_RESPONSE", 2733 "ERR_BAD_REQUEST", 2734 "ERR_CANCELED", 2735 "ERR_NOT_SUPPORT", 2736 "ERR_INVALID_URL" 2737 ].forEach(function(t) { 2738 z[t] = { 2739 value: t 2740 }; 2741 }), Object.defineProperties(M, z), Object.defineProperty(F, "isAxiosError", { 2742 value: !0 2743 }), M.from = function(t, e, r, n, i, o) { 2744 var s = Object.create(F); 2745 return N.toFlatObject(t, s, function(t) { 2746 return t !== Error.prototype; 2747 }, function(t) { 2748 return "isAxiosError" !== t; 2749 }), M.call(s, t.message, e, r, n, i), s.cause = t, s.name = t.name, o && Object.assign(s, o), s; 2750 }; 2751 var q = r(21876).Buffer; 2752 var J = N.toFlatObject(N, {}, null, function(t) { 2753 return /^is[A-Z]/.test(t); 2754 }); 2755 var Z = function Z(t, e, r) { 2756 var f = function f(t) { 2757 if (null === t) return ""; 2758 if (N.isDate(t)) return t.toISOString(); 2759 if (!u && N.isBlob(t)) throw new M("Blob is not supported. Use a Buffer instead."); 2760 return N.isArrayBuffer(t) || N.isTypedArray(t) ? u && "function" == typeof Blob ? new Blob([ 2761 t 2762 ]) : q.from(t) : t; 2763 }; 2764 var l = function l(t, r, i) { 2765 var a = t; 2766 if (t && !i && "object" == typeof t) { 2767 if (N.endsWith(r, "{}")) r = n ? r : r.slice(0, -2), t = JSON.stringify(t); 2768 else { 2769 var u; 2770 if (N.isArray(t) && (u = t, N.isArray(u) && !u.some(H)) || (N.isFileList(t) || N.endsWith(r, "[]")) && (a = N.toArray(t))) return r = K(r), a.forEach(function(t, n) { 2771 N.isUndefined(t) || null === t || e.append(!0 === s ? V([ 2772 r 2773 ], n, o) : null === s ? r : r + "[]", f(t)); 2774 }), !1; 2775 } 2776 } 2777 return !!H(t) || (e.append(V(i, r, o), f(t)), !1); 2778 }; 2779 if (!N.isObject(t)) throw TypeError("target must be an object"); 2780 e = e || new FormData, r = N.toFlatObject(r, { 2781 metaTokens: !0, 2782 dots: !1, 2783 indexes: !1 2784 }, !1, function(t, e) { 2785 return !N.isUndefined(e[t]); 2786 }); 2787 var n = r.metaTokens, i = r.visitor || l, o = r.dots, s = r.indexes, a = r.Blob || "undefined" != typeof Blob && Blob, u = a && N.isSpecCompliantForm(e); 2788 if (!N.isFunction(i)) throw TypeError("visitor must be a function"); 2789 var c = [], h = Object.assign(J, { 2790 defaultVisitor: l, 2791 convertValue: f, 2792 isVisitable: H 2793 }); 2794 if (!N.isObject(t)) throw TypeError("data must be an object"); 2795 return !function t(r, n) { 2796 if (!N.isUndefined(r)) { 2797 if (-1 !== c.indexOf(r)) throw Error("Circular reference detected in " + n.join(".")); 2798 c.push(r), N.forEach(r, function(r, o) { 2799 var s = !(N.isUndefined(r) || null === r) && i.call(e, r, N.isString(o) ? o.trim() : o, n, h); 2800 !0 === s && t(r, n ? n.concat(o) : [ 2801 o 2802 ]); 2803 }), c.pop(); 2804 } 2805 }(t), e; 2806 }; 2807 var G = $.prototype; 2808 G.append = function(t, e) { 2809 this._pairs.push([ 2810 t, 2811 e 2812 ]); 2813 }, G.toString = function(t) { 2814 var _$e = t ? function e(e) { 2815 return t.call(this, e, W); 2816 } : W; 2817 return this._pairs.map(function(t) { 2818 return _$e(t[0]) + "=" + _$e(t[1]); 2819 }, "").join("&"); 2820 }; 2821 var Q = /*#__PURE__*/ function() { 2822 function Q() { 2823 _class_call_check(this, Q); 2824 this.handlers = []; 2825 } 2826 _create_class(Q, [ 2827 { 2828 key: "use", 2829 value: function use(t, e, r) { 2830 return this.handlers.push({ 2831 fulfilled: t, 2832 rejected: e, 2833 synchronous: !!r && r.synchronous, 2834 runWhen: r ? r.runWhen : null 2835 }), this.handlers.length - 1; 2836 } 2837 }, 2838 { 2839 key: "eject", 2840 value: function eject(t) { 2841 this.handlers[t] && (this.handlers[t] = null); 2842 } 2843 }, 2844 { 2845 key: "clear", 2846 value: function clear() { 2847 this.handlers && (this.handlers = []); 2848 } 2849 }, 2850 { 2851 key: "forEach", 2852 value: function forEach(t) {
2853 N.forEach(this.handlers, function(e) { 2854 null !== e && t(e); 2855 }); 2856 } 2857 } 2858 ]); 2859 return Q; 2860 }(), tt = { 2861 silentJSONParsing: !0, 2862 forcedJSONParsing: !0, 2863 clarifyTimeoutError: !1 2864 }, te = "undefined" != typeof URLSearchParams ? URLSearchParams : $, tr = "undefined" != typeof FormData ? FormData : null, tn = "undefined" != typeof Blob ? Blob : null; 2865 var ti = ("undefined" == typeof navigator || "ReactNative" !== (n = navigator.product) && "NativeScript" !== n && "NS" !== n) && "undefined" != typeof window && "undefined" != typeof document, to = "undefined" != typeof WorkerGlobalScope && _instanceof(self, WorkerGlobalScope) && "function" == typeof self.importScripts; 2866 var ts = { 2867 isBrowser: !0, 2868 classes: { 2869 URLSearchParams: te, 2870 FormData: tr, 2871 Blob: tn 2872 }, 2873 isStandardBrowserEnv: ti, 2874 isStandardBrowserWebWorkerEnv: to, 2875 protocols: [ 2876 "http", 2877 "https", 2878 "file", 2879 "blob", 2880 "url", 2881 "data" 2882 ] 2883 }, ta = function ta(t) { 2884 if (N.isFormData(t) && N.isFunction(t.entries)) { 2885 var _$e = {}; 2886 return N.forEachEntry(t, function(t, r) { 2887 !function t(e, r, n, i) { 2888 var o = e[i++], s = Number.isFinite(+o), a = i >= e.length; 2889 if (o = !o && N.isArray(n) ? n.length : o, a) return N.hasOwnProp(n, o) ? n[o] = [ 2890 n[o], 2891 r 2892 ] : n[o] = r, !s; 2893 n[o] && N.isObject(n[o]) || (n[o] = []); 2894 var u = t(e, r, n[o], i); 2895 return u && N.isArray(n[o]) && (n[o] = function(t) { 2896 var _$e, _$r; 2897 var _$n = {}, _$i = Object.keys(t), o = _$i.length; 2898 for(_$e = 0; _$e < o; _$e++)_$n[_$r = _$i[_$e]] = t[_$r]; 2899 return _$n; 2900 }(n[o])), !s; 2901 }(N.matchAll(/\w+|\[(\w*)]/g, t).map(function(t) { 2902 return "[]" === t[0] ? "" : t[1] || t[0]; 2903 }), r, _$e, 0); 2904 }), _$e; 2905 } 2906 return null; 2907 }; 2908 var tu = { 2909 "Content-Type": void 0 2910 }, tf = { 2911 transitional: tt, 2912 adapter: [ 2913 "xhr", 2914 "http" 2915 ], 2916 transformRequest: [ 2917 function(t, e) { 2918 var _$r; 2919 var n = e.getContentType() || "", i = n.indexOf("application/json") > -1, o = N.isObject(t); 2920 o && N.isHTMLForm(t) && (t = new FormData(t)); 2921 var s = N.isFormData(t); 2922 if (s) return i && i ? JSON.stringify(ta(t)) : t; 2923 if (N.isArrayBuffer(t) || N.isBuffer(t) || N.isStream(t) || N.isFile(t) || N.isBlob(t)) return t; 2924 if (N.isArrayBufferView(t)) return t.buffer; 2925 if (N.isURLSearchParams(t)) return e.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString(); 2926 if (o) { 2927 if (n.indexOf("application/x-www-form-urlencoded") > -1) { 2928 var a, u; 2929 return (a = t, u = this.formSerializer, Z(a, new ts.classes.URLSearchParams, Object.assign({ 2930 visitor: function visitor(t, e, r, n) { 2931 return ts.isNode && N.isBuffer(t) ? (this.append(e, t.toString("base64")), !1) : n.defaultVisitor.apply(this, arguments); 2932 } 2933 }, u))).toString(); 2934 } 2935 if ((_$r = N.isFileList(t)) || n.indexOf("multipart/form-data") > -1) { 2936 var _$e = this.env && this.env.FormData; 2937 return Z(_$r ? { 2938 "files[]": t 2939 }
2939 : t, _$e && new _$e, this.formSerializer); 2940 } 2941 } 2942 return o || i ? (e.setContentType("application/json", !1), function(t, e, r) { 2943 if (N.isString(t)) try { 2944 return (0, JSON.parse)(t), N.trim(t); 2945 } catch (t) { 2946 if ("SyntaxError" !== t.name) throw t; 2947 } 2948 return (0, JSON.stringify)(t); 2949 }(t)) : t; 2950 } 2951 ], 2952 transformResponse: [ 2953 function(t) { 2954 var _$e = this.transitional || tf.transitional, _$r = _$e && _$e.forcedJSONParsing, n = "json" === this.responseType; 2955 if (t && N.isString(t) && (_$r && !this.responseType || n)) { 2956 var _$r1 = _$e && _$e.silentJSONParsing; 2957 try { 2958 return JSON.parse(t); 2959 } catch (t) { 2960 if (!_$r1 && n) { 2961 if ("SyntaxError" === t.name) throw M.from(t, M.ERR_BAD_RESPONSE, this, null, this.response); 2962 throw t; 2963 } 2964 } 2965 } 2966 return t; 2967 } 2968 ], 2969 timeout: 0, 2970 xsrfCookieName: "XSRF-TOKEN", 2971 xsrfHeaderName: "X-XSRF-TOKEN", 2972 maxContentLength: -1, 2973 maxBodyLength: -1, 2974 env: { 2975 FormData: ts.classes.FormData, 2976 Blob: ts.classes.Blob 2977 }, 2978 validateStatus: function validateStatus(t) { 2979 return t >= 200 && t < 300; 2980 }, 2981 headers: { 2982 common: { 2983 Accept: "application/json, text/plain, */*" 2984 } 2985 } 2986 }; 2987 N.forEach([ 2988 "delete", 2989 "get", 2990 "head" 2991 ], function(t) { 2992 tf.headers[t] = {}; 2993 }), N.forEach([ 2994 "post", 2995 "put", 2996 "patch" 2997 ], function(t) { 2998 tf.headers[t] = N.merge(tu); 2999 }); 3000 var tl = N.toObjectSet([ 3001 "age", 3002 "authorization", 3003 "content-length", 3004 "content-type", 3005 "etag", 3006 "expires", 3007 "from", 3008 "host", 3009 "if-modified-since", 3010 "if-unmodified-since", 3011 "last-modified", 3012 "location", 3013 "max-forwards", 3014 "proxy-authorization", 3015 "referer", 3016 "retry-after", 3017 "user-agent" 3018 ]); 3019 var tc = function(t) { 3020 var _$e, _$r, n; 3021 var i = {}; 3022 return t && t.split("\n").forEach(function(t) { 3023 n = t.indexOf(":"), _$e = t.substring(0, n).trim().toLowerCase(), _$r = t.substring(n + 1).trim(), !_$e || i[_$e] && tl[_$e] || ("set-cookie" === _$e ? i[_$e] ? i[_$e].push(_$r) : i[_$e] = [ 3024 _$r 3025 ] : i[_$e] = i[_$e] ? i[_$e] + ", " + _$r : _$r); 3026 }), i; 3027 }; 3028 var th = Symbol("internals"); 3029 function td(t) { 3030 return !1 === t || null == t ? t : N.isArray(t) ? t.map(td) : String(t); 3031 } 3032 var ty = function(t) { 3033 return /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()); 3034 }; 3035 var tm = /*#__PURE__*/ function() { 3036 function tm(t) { 3037 _class_call_check(this, tm); 3038 t && this.set(t); 3039 } 3040 _create_class(tm, [ 3041 { 3042 key: "set", 3043 value: function set(t, e, r) { 3044 var i = function i(t, e, r) { 3045 var i = tp(e); 3046 if (!i) throw Error("header name must be a non-empty string"); 3047 var o = N.findKey(n, i); 3048 o && void 0 !== n[o] && !0 !== r && (void 0 !== r || !1 === n[o]) || (n[o || e] = td(t)); 3049 }; 3050 var n = this; 3051 var o = function(t, e) {
3052 return N.forEach(t, function(t, r) { 3053 return i(t, r, e); 3054 }); 3055 }; 3056 return N.isPlainObject(t) || _instanceof(t, this.constructor) ? o(t, e) : N.isString(t) && (t = t.trim()) && !ty(t) ? o(tc(t), e) : null != t && i(e, t, r), this; 3057 } 3058 }, 3059 { 3060 key: "get", 3061 value: function get(t, e) { 3062 if (t = tp(t)) { 3063 var _$r = N.findKey(this, t); 3064 if (_$r) { 3065 var _$t = this[_$r]; 3066 if (!e) return _$t; 3067 if (!0 === e) return function(t) { 3068 var _$e; 3069 var _$r = Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g; 3070 for(; _$e = n.exec(t);)_$r[_$e[1]] = _$e[2]; 3071 return _$r; 3072 }(_$t); 3073 if (N.isFunction(e)) return e.call(this, _$t, _$r); 3074 if (N.isRegExp(e)) return e.exec(_$t); 3075 throw TypeError("parser must be boolean|regexp|function"); 3076 } 3077 } 3078 } 3079 }, 3080 { 3081 key: "has", 3082 value: function has(t, e) { 3083 if (t = tp(t)) { 3084 var _$r = N.findKey(this, t); 3085 return !!(_$r && void 0 !== this[_$r] && (!e || tg(this, this[_$r], _$r, e))); 3086 } 3087 return !1; 3088 } 3089 }, 3090 { 3091 key: "delete", 3092 value: function _delete(t, e) { 3093 var i = function i(t) { 3094 if (t = tp(t)) { 3095 var i = N.findKey(_$r, t); 3096 i && (!e || tg(_$r, _$r[i], i, e)) && (delete _$r[i], n = !0); 3097 } 3098 }; 3099 var _$r = this, n = !1; 3100 return N.isArray(t) ? t.forEach(i) : i(t), n; 3101 } 3102 }, 3103 { 3104 key: "clear", 3105 value: function clear(t) { 3106 var _$e = Object.keys(this), _$r = _$e.length, n = !1; 3107 for(; _$r--;){ 3108 var i = _$e[_$r]; 3109 (!t || tg(this, this[i], i, t, !0)) && (delete this[i], n = !0); 3110 } 3111 return n; 3112 } 3113 }, 3114 { 3115 key: "normalize", 3116 value: function normalize(t) { 3117 var _$e = this, _$r = {}; 3118 return N.forEach(this, function(n, i) { 3119 var o = N.findKey(_$r, i); 3120 if (o) { 3121 _$e[o] = td(n), delete _$e[i]; 3122 return; 3123 } 3124 var s = t ? i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, function(t, e, r) { 3125 return e.toUpperCase() + r; 3126 }) : String(i).trim(); 3127 s !== i && delete _$e[i], _$e[s] = td(n), _$r[s] = !0; 3128 }), this; 3129 } 3130 }, 3131 { 3132 key: "concat", 3133 value: function concat() { 3134 for(var _len = arguments.length, t = new Array(_len), _key = 0; _key < _len; _key++){ 3135 t[_key] = arguments[_key]; 3136 } 3137 var _this_constructor; 3138 return (_this_constructor = this.constructor).concat.apply(_this_constructor, [ 3139 this 3140 ].concat(_to_consumable_array(t))); 3141 } 3142 }, 3143 { 3144 key: "toJSON", 3145 value: function toJSON(t) { 3146 var _$e = Object.create(null);
3147 return N.forEach(this, function(r, n) { 3148 null != r && !1 !== r && (_$e[n] = t && N.isArray(r) ? r.join(", ") : r); 3149 }), _$e; 3150 } 3151 }, 3152 { 3153 key: Symbol.iterator, 3154 value: function value() { 3155 return Object.entries(this.toJSON())[Symbol.iterator](); 3156 } 3157 }, 3158 { 3159 key: "toString", 3160 value: function toString() { 3161 return Object.entries(this.toJSON()).map(function(param) { 3162 var _param = _sliced_to_array(param, 2), t = _param[0], _$e = _param[1]; 3163 return t + ": " + _$e; 3164 }).join("\n"); 3165 } 3166 }, 3167 { 3168 key: Symbol.toStringTag, 3169 get: function get() { 3170 return "AxiosHeaders"; 3171 } 3172 } 3173 ], [ 3174 { 3175 key: "from", 3176 value: function from(t) { 3177 return _instanceof(t, this) ? t : new this(t); 3178 } 3179 }, 3180 { 3181 key: "concat", 3182 value: function concat(t) { 3183 for(var _len = arguments.length, _$e = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){ 3184 _$e[_key - 1] = arguments[_key]; 3185 } 3186 var _$r = new this(t); 3187 return _$e.forEach(function(t) { 3188 return _$r.set(t); 3189 }), _$r; 3190 } 3191 }, 3192 { 3193 key: "accessor", 3194 value: function accessor(t) { 3195 var i = function i(t) { 3196 var _$e = tp(t); 3197 _$r[_$e] || (!function(t, e) { 3198 var _$r = N.toCamelCase(" " + e); 3199 [ 3200 "get", 3201 "set", 3202 "has" 3203 ].forEach(function(n) { 3204 Object.defineProperty(t, n + _$r, { 3205 value: function value(t, r, i) { 3206 return this[n].call(this, e, t, r, i); 3207 }, 3208 configurable: !0 3209 }); 3210 }); 3211 }(n, t), _$r[_$e] = !0); 3212 }; 3213 var _$e = this[th] = this[th] = { 3214 accessors: {} 3215 }, _$r = _$e.accessors, n = this.prototype; 3216 return N.isArray(t) ? t.forEach(i) : i(t), this; 3217 } 3218 } 3219 ]); 3220 return tm; 3221 }(); 3222 tm.accessor([ 3223 "Content-Type", 3224 "Content-Length", 3225 "Accept", 3226 "Accept-Encoding", 3227 "User-Agent", 3228 "Authorization" 3229 ]), N.freezeMethods(tm.prototype), N.freezeMethods(tm), N.inherits(tw, M, { 3230 __CANCEL__: !0 3231 }); 3232 var tE = ts.isStandardBrowserEnv ? { 3233 write: function write(t, e, r, n, i, o) { 3234 var s = []; 3235 s.push(t + "=" + encodeURIComponent(e)), N.isNumber(r) && s.push("expires=" + new Date(r).toGMTString()), N.isString(n) && s.push("path=" + n), N.isString(i) && s.push("domain=" + i), !0 === o && s.push("secure"), document.cookie = s.join("; "); 3236 }, 3237 read: function read(t) { 3238 var _$e = document.cookie.match(RegExp("(^|;\\s*)(" + t + ")=([^;]*)")); 3239 return _$e ? decodeURIComponent(_$e[3]) : null; 3240 }, 3241 remove: function remove(t) { 3242 this.write(t, "", Date.now() - 864e5); 3243 } 3244 } : { 3245 write: function write() {}, 3246 read: function read() { 3247 return null; 3248 }, 3249 remove: function remove() {} 3250 }; 3251 var tS = ts.isStandardBrowserEnv ? function() { 3252 var n = function n(t) { 3253 var n = t; 3254 return _$e && (_$r.setAttribute("href", n), n = _$r.href), _$r.setAttribute("href", n), { 3255 href: _$r.href, 3256 protocol: _$r.protocol ? _$r.protocol.replace(/:$/, "") : "", 3257 host: _$r.host, 3258 search: _$r.search ? _$r.search.replace(/^\?/, "") : "", 3259 hash: _$r.hash ? _$r.hash.replace(/^#/, "") : "", 3260 hostname: _$r.hostname, 3261 port: _$r.port, 3262 pathname: "/" === _$r.pathname.charAt(0) ? _$r.pathname : "/" + _$r.pathname 3263 }; 3264 }; 3265 var t; 3266 var _$e = /(msie|trident)/i.test(navigator.userAgent), _$r = document.createElement("a"); 3267 return t = n(window.location.href), function(e) { 3268 var _$r = N.isString(e) ? n(e) : e; 3269 return _$r.protocol === t.protocol && _$r.host === t.host; 3270 }; 3271 }() : function tS() { 3272 return !0; 3273 }, tA = function tA(t, e) { 3274 var _$r; 3275 t = t || 10; 3276 var n = Array(t), i = Array(t), o = 0, s = 0; 3277 return e = void 0 !== e ? e : 1e3, function(a) { 3278 var u = Date.now(), f = i[s]; 3279 _$r || (_$r = u), n[o] = a, i[o] = u; 3280 var l = s, c = 0; 3281 for(; l !== o;)c += n[l++], l %= t;
3282 if ((o = (o + 1) % t) === s && (s = (s + 1) % t), u - _$r < e) return; 3283 var h = f && u - f; 3284 return h ? Math.round(1e3 * c / h) : void 0; 3285 }; 3286 }; 3287 var tT = "undefined" != typeof XMLHttpRequest; 3288 var tx = tT && function(t) { 3289 return new Promise(function(e, r) { 3290 var a = function a() { 3291 t.cancelToken && t.cancelToken.unsubscribe(n), t.signal && t.signal.removeEventListener("abort", n); 3292 }; 3293 var l = function l() { 3294 if (!u) return; 3295 var n = tm.from("getAllResponseHeaders" in u && u.getAllResponseHeaders()), i = s && "text" !== s && "json" !== s ? u.response : u.responseText, o = { 3296 data: i, 3297 status: u.status, 3298 statusText: u.statusText, 3299 headers: n, 3300 config: t, 3301 request: u 3302 }; 3303 !function(t, e, r) { 3304 var n = r.config.validateStatus; 3305 !r.status || !n || n(r.status) ? t(r) : e(new M("Request failed with status code " + r.status, [ 3306 M.ERR_BAD_REQUEST, 3307 M.ERR_BAD_RESPONSE 3308 ][Math.floor(r.status / 100) - 4], r.config, r.request, r)); 3309 }(function(t) { 3310 e(t), a(); 3311 }, function(t) { 3312 r(t), a(); 3313 }, o), u = null; 3314 }; 3315 var n, i = t.data, o = tm.from(t.headers).normalize(), s = t.responseType; 3316 N.isFormData(i) && (ts.isStandardBrowserEnv || ts.isStandardBrowserWebWorkerEnv ? o.setContentType(!1) : o.setContentType("multipart/form-data;", !1)); 3317 var u = new XMLHttpRequest; 3318 if (t.auth) { 3319 var _$e = t.auth.username || "", _$r = t.auth.password ? unescape(encodeURIComponent(t.auth.password)) : ""; 3320 o.set("Authorization", "Basic " + btoa(_$e + ":" + _$r)); 3321 } 3322 var f = tO(t.baseURL, t.url); 3323 if (u.open(t.method.toUpperCase(), Y(f, t.params, t.paramsSerializer), !0), u.timeout = t.timeout, "onloadend" in u ? u.onloadend = l : u.onreadystatechange = function() { 3324 u && 4 === u.readyState && (0 !== u.status || u.responseURL && 0 === u.responseURL.indexOf("file:")) && setTimeout(l); 3325 }, u.onabort = function() { 3326 u && (r(new M("Request aborted", M.ECONNABORTED, t, u)), u = null); 3327 }, u.onerror = function() { 3328 r(new M("Network Error", M.ERR_NETWORK, t, u)), u = null; 3329 }, u.ontimeout = function() { 3330 var _$e = t.timeout ? "timeout of " + t.timeout + "ms exceeded" : "timeout exceeded", n = t.transitional || tt; 3331 t.timeoutErrorMessage && (_$e = t.timeoutErrorMessage), r(new M(_$e, n.clarifyTimeoutError ? M.ETIMEDOUT : M.ECONNABORTED, t, u)), u = null; 3332 }, ts.isStandardBrowserEnv) { 3333 var _$e1 = (t.withCredentials || tS(f)) && t.xsrfCookieName && tE.read(t.xsrfCookieName); 3334 _$e1 && o.set(t.xsrfHeaderName, _$e1); 3335 } 3336 void 0 === i && o.setContentType(null), "setRequestHeader" in u && N.forEach(o.toJSON(), function(t, e) { 3337 u.setRequestHeader(e, t); 3338 }
3338), N.isUndefined(t.withCredentials) || (u.withCredentials = !!t.withCredentials), s && "json" !== s && (u.responseType = t.responseType), "function" == typeof t.onDownloadProgress && u.addEventListener("progress", t_(t.onDownloadProgress, !0)), "function" == typeof t.onUploadProgress && u.upload && u.upload.addEventListener("progress", t_(t.onUploadProgress)), (t.cancelToken || t.signal) && (n = function(e) { 3339 u && (r(!e || e.type ? new tw(null, t, u) : e), u.abort(), u = null); 3340 }, t.cancelToken && t.cancelToken.subscribe(n), t.signal && (t.signal.aborted ? n() : t.signal.addEventListener("abort", n))); 3341 var c = function(t) { 3342 var _$e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t); 3343 return _$e && _$e[1] || ""; 3344 }(f); 3345 if (c && -1 === ts.protocols.indexOf(c)) { 3346 r(new M("Unsupported protocol " + c + ":", M.ERR_BAD_REQUEST, t)); 3347 return; 3348 } 3349 u.send(i || null); 3350 }); 3351 }; 3352 var tR = { 3353 http: null, 3354 xhr: tx 3355 }; 3356 N.forEach(tR, function(t, e) { 3357 if (t) { 3358 try { 3359 Object.defineProperty(t, "name", { 3360 value: e 3361 }); 3362 } catch (t) {} 3363 Object.defineProperty(t, "adapterName", { 3364 value: e 3365 }); 3366 } 3367 }); 3368 var tC = { 3369 getAdapter: function(t) { 3370 var _$e, _$r; 3371 t = N.isArray(t) ? t : [ 3372 t 3373 ]; 3374 var n = t.length; 3375 for(var i = 0; i < n && (_$e = t[i], !(_$r = N.isString(_$e) ? tR[_$e.toLowerCase()] : _$e)); i++); 3376 if (!_$r) { 3377 if (!1 === _$r) throw new M("Adapter ".concat(_$e, " is not supported by the environment"), "ERR_NOT_SUPPORT"); 3378 throw Error(N.hasOwnProp(tR, _$e) ? "Adapter '".concat(_$e, "' is not available in the build") : "Unknown adapter '".concat(_$e, "'")); 3379 } 3380 if (!N.isFunction(_$r)) throw TypeError("adapter is not a function"); 3381 return _$r; 3382 }, 3383 adapters: tR 3384 }; 3385 var tP = function(t) { 3386 return _instanceof(t, tm) ? t.toJSON() : t; 3387 }; 3388 var tU = "1.4.0", tL = {}; 3389 [ 3390 "object", 3391 "boolean", 3392 "number", 3393 "function", 3394 "string", 3395 "symbol" 3396 ].forEach(function(t, e) { 3397 tL[t] = function(r) { 3398 return (typeof r === "undefined" ? "undefined" : _type_of(r)) === t || "a" + (e < 1 ? "n " : " ") + t; 3399 }; 3400 }); 3401 var tI = {}; 3402 tL.transitional = function(t, e, r) { 3403 var n = function n(t, e) { 3404 return "[Axios v" + tU + "] Transitional option '" + t + "'" + e + (r ? ". " + r : ""); 3405 }; 3406 return function(r, i, o) { 3407 if (!1 === t) throw new M(n(i, " has been removed" + (e ? " in " + e : "")), M.ERR_DEPRECATED); 3408 return e && !tI[i] && (tI[i] = !0, console.warn(n(i, " has been deprecated since v" + e + " and will be removed in the near future"))), !t || t(r, i, o); 3409 }; 3410 }; 3411 var tD = { 3412 assertOptions: function assertOptions(t, e, r) { 3413 if ("object" != typeof t) throw new M("options must be an object", M.ERR_BAD_OPTION_VALUE); 3414 var n = Object.keys(t), i = n.length; 3415 for(; i-- > 0;){ 3416 var o = n[i], s = e[o]; 3417 if (s) { 3418 var _$e = t[o], _$r = void 0 === _$e || s(_$e, o, t); 3419 if (!0 !== _$r) throw new M("option " + o + " must be " + _$r, M.ERR_BAD_OPTION_VALUE); 3420 continue; 3421 } 3422 if (!0 !== r) throw new M("Unknown option " + o, M.ERR_BAD_OPTION); 3423 } 3424 }, 3425 validators: tL 3426 }; 3427 var tN = tD.validators; 3428 var tM = /*#__PURE__*/ function() { 3429 function tM(t) { 3430 _class_call_check(this, tM); 3431 this.defaults = t, this.interceptors = { 3432 request: new Q, 3433 response: new Q 3434 }; 3435 } 3436 _create_class(tM, [ 3437 { 3438 key: "request", 3439 value: function request(t, e) { 3440 var _$r, n, i; 3441 "string" == typeof t ? (e = e || {}).url = t : e = t || {}, e = tk(this.defaults, e); 3442 var o = e.transitional, s = e.paramsSerializer, a = e.headers; 3443 void 0 !== o && tD.assertOptions(o, { 3444 silentJSONParsing: tN.transitional(tN.boolean), 3445 forcedJSONParsing: tN.transitional(tN.boolean), 3446 clarifyTimeoutError: tN.transitional(tN.boolean) 3447 }, !1), null != s && (N.isFunction(s) ? e.paramsSerializer = { 3448 serialize: s 3449 } : tD.assertOptions(s, {
3450 encode: tN.function, 3451 serialize: tN.function 3452 }, !0)), e.method = (e.method || this.defaults.method || "get").toLowerCase(), (_$r = a && N.merge(a.common, a[e.method])) && N.forEach([ 3453 "delete", 3454 "get", 3455 "head", 3456 "post", 3457 "put", 3458 "patch", 3459 "common" 3460 ], function(t) { 3461 delete a[t]; 3462 }), e.headers = tm.concat(_$r, a); 3463 var u = [], f = !0; 3464 this.interceptors.request.forEach(function(t) { 3465 ("function" != typeof t.runWhen || !1 !== t.runWhen(e)) && (f = f && t.synchronous, u.unshift(t.fulfilled, t.rejected)); 3466 }); 3467 var l = []; 3468 this.interceptors.response.forEach(function(t) { 3469 l.push(t.fulfilled, t.rejected); 3470 }); 3471 var c = 0; 3472 if (!f) { 3473 var _$t = [ 3474 tj.bind(this), 3475 void 0 3476 ]; 3477 for(_$t.unshift.apply(_$t, u), _$t.push.apply(_$t, l), i = _$t.length, n = Promise.resolve(e); c < i;)n = n.then(_$t[c++], _$t[c++]); 3478 return n; 3479 } 3480 i = u.length; 3481 var h = e; 3482 for(c = 0; c < i;){ 3483 var _$t1 = u[c++], _$e = u[c++]; 3484 try { 3485 h = _$t1(h); 3486 } catch (t) { 3487 _$e.call(this, t); 3488 break; 3489 } 3490 } 3491 try { 3492 n = tj.call(this, h); 3493 } catch (t) { 3494 return Promise.reject(t); 3495 } 3496 for(c = 0, i = l.length; c < i;)n = n.then(l[c++], l[c++]); 3497 return n; 3498 } 3499 }, 3500 { 3501 key: "getUri", 3502 value: function getUri(t) { 3503 t = tk(this.defaults, t); 3504 var _$e = tO(t.baseURL, t.url); 3505 return Y(_$e, t.params, t.paramsSerializer); 3506 } 3507 } 3508 ]); 3509 return tM; 3510 }(); 3511 N.forEach([ 3512 "delete", 3513 "get", 3514 "head", 3515 "options" 3516 ], function(t) { 3517 tM.prototype[t] = function(e, r) { 3518 return this.request(tk(r || {}, { 3519 method: t, 3520 url: e, 3521 data: (r || {}).data 3522 })); 3523 }; 3524 }), N.forEach([ 3525 "post", 3526 "put", 3527 "patch" 3528 ], function(t) { 3529 var _$e = function _$e(e) { 3530 return function(r, n, i) { 3531 return this.request(tk(i || {}, { 3532 method: t, 3533 headers: e ? { 3534 "Content-Type": "multipart/form-data" 3535 } : {}, 3536 url: r, 3537 data: n 3538 })); 3539 }; 3540 }; 3541 tM.prototype[t] = _$e(), tM.prototype[t + "Form"] = _$e(!0); 3542 }); 3543 var tF = /*#__PURE__*/ function() { 3544 function tF(t) { 3545 _class_call_check(this, tF); 3546 var _$e; 3547 if ("function" != typeof t) throw TypeError("executor must be a function."); 3548 this.promise = new Promise(function(t) { 3549 _$e = t; 3550 }); 3551 var _$r = this; 3552 this.promise.then(function(t) { 3553 if (!_$r._listeners) return; 3554 var _$e = _$r._listeners.length; 3555 for(; _$e-- > 0;)_$r._listeners[_$e](t); 3556 _$r._listeners = null; 3557 }), this.promise.then = function(t) { 3558 var _$e; 3559 var n = new Promise(function(t) { 3560 _$r.subscribe(t), _$e = t; 3561 }).then(t); 3562 return n.cancel = function() { 3563 _$r.unsubscribe(_$e); 3564 }, n; 3565 }, t(function(t, n, i) { 3566 _$r.reason || (_$r.reason = new tw(t, n, i), _$e(_$r.reason)); 3567 }); 3568 } 3569 _create_class(tF, [ 3570 { 3571 key: "throwIfRequested", 3572 value: function throwIfRequested() { 3573 if (this.reason) throw this.reason; 3574 } 3575 }, 3576 { 3577 key: "subscribe", 3578 value: function subscribe(t) { 3579 if (this.reason) { 3580 t(this.reason); 3581 return; 3582 } 3583 this._listeners ? this._listeners.push(t) : this._listeners = [ 3584 t 3585 ]; 3586 } 3587 }, 3588 { 3589 key: "unsubscribe", 3590 value: function unsubscribe(t) { 3591 if (!this._listeners) return; 3592 var _$e = this._listeners.indexOf(t); 3593 -1 !== _$e && this._listeners.splice(_$e, 1); 3594 } 3595 } 3596 ], [ 3597 { 3598 key: "source", 3599 value: function source() { 3600 var t; 3601 var _$e = new tF(function(e) { 3602 t = e; 3603 }); 3604 return { 3605 token: _$e, 3606 cancel: t 3607 }; 3608 } 3609 } 3610 ]); 3611 return tF; 3612 }(); 3613 var tz = { 3614 Continue: 100, 3615 SwitchingProtocols: 101, 3616 Processing: 102, 3617 EarlyHints: 103, 3618 Ok: 200, 3619 Created: 201, 3620 Accepted: 202, 3621 NonAuthoritativeInformation: 203, 3622 NoContent: 204, 3623 ResetContent: 205,
3624 PartialContent: 206, 3625 MultiStatus: 207, 3626 AlreadyReported: 208, 3627 ImUsed: 226, 3628 MultipleChoices: 300, 3629 MovedPermanently: 301, 3630 Found: 302, 3631 SeeOther: 303, 3632 NotModified: 304, 3633 UseProxy: 305, 3634 Unused: 306, 3635 TemporaryRedirect: 307, 3636 PermanentRedirect: 308, 3637 BadRequest: 400, 3638 Unauthorized: 401, 3639 PaymentRequired: 402, 3640 Forbidden: 403, 3641 NotFound: 404, 3642 MethodNotAllowed: 405, 3643 NotAcceptable: 406, 3644 ProxyAuthenticationRequired: 407, 3645 RequestTimeout: 408, 3646 Conflict: 409, 3647 Gone: 410, 3648 LengthRequired: 411, 3649 PreconditionFailed: 412, 3650 PayloadTooLarge: 413, 3651 UriTooLong: 414, 3652 UnsupportedMediaType: 415, 3653 RangeNotSatisfiable: 416, 3654 ExpectationFailed: 417, 3655 ImATeapot: 418, 3656 MisdirectedRequest: 421, 3657 UnprocessableEntity: 422, 3658 Locked: 423, 3659 FailedDependency: 424, 3660 TooEarly: 425, 3661 UpgradeRequired: 426, 3662 PreconditionRequired: 428, 3663 TooManyRequests: 429, 3664 RequestHeaderFieldsTooLarge: 431, 3665 UnavailableForLegalReasons: 451, 3666 InternalServerError: 500, 3667 NotImplemented: 501, 3668 BadGateway: 502, 3669 ServiceUnavailable: 503, 3670 GatewayTimeout: 504, 3671 HttpVersionNotSupported: 505, 3672 VariantAlsoNegotiates: 506, 3673 InsufficientStorage: 507, 3674 LoopDetected: 508, 3675 NotExtended: 510, 3676 NetworkAuthenticationRequired: 511 3677 }; 3678 Object.entries(tz).forEach(function(param) { 3679 var _param = _sliced_to_array(param, 2), t = _param[0], _$e = _param[1]; 3680 tz[_$e] = t; 3681 }); 3682 var tq = function t(e) { 3683 var _$r = new tM(e), n = i(tM.prototype.request, _$r); 3684 return N.extend(n, tM.prototype, _$r, { 3685 allOwnKeys: !0 3686 }), N.extend(n, _$r, null, { 3687 allOwnKeys: !0 3688 }), n.create = function(r) { 3689 return t(tk(e, r)); 3690 }, n; 3691 }(tf); 3692 tq.Axios = tM, tq.CanceledError = tw, tq.CancelToken = tF, tq.isCancel = tv, tq.VERSION = tU, tq.toFormData = Z, tq.AxiosError = M, tq.Cancel = tq.CanceledError, tq.all = function(t) { 3693 return Promise.all(t); 3694 }, tq.spread = function(t) { 3695 return function(e) { 3696 return t.apply(null, e); 3697 }; 3698 }, tq.isAxiosError = function(t) { 3699 return N.isObject(t) && !0 === t.isAxiosError; 3700 }, tq.mergeConfig = tk, tq.AxiosHeaders = tm, tq.formToJSON = function(t) { 3701 return ta(N.isHTMLForm(t) ? new FormData(t) : t); 3702 }, tq.HttpStatusCode = tz, tq.default = tq; 3703 var tH = tq; 3704 } 3705 } 3706]);
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.