videomail-client 7.0.0 → 8.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.browserslistrc +1 -1
- package/.eslintrc.js +4 -12
- package/.nvmrc +1 -1
- package/.prettierrc.js +13 -0
- package/TODO.md +4 -4
- package/audit-ci.json +5 -2
- package/babel.config.js +38 -0
- package/package.json +28 -42
- package/prototype/index.html +29 -9
- package/prototype/js/videomail-client.js +982 -9293
- package/prototype/js/videomail-client.min.js +15 -15
- package/prototype/js/videomail-client.min.js.map +1 -1
- package/prototype/user_media_on_record.html +32 -0
- package/src/js/events.js +2 -1
- package/src/js/options.js +4 -2
- package/src/js/wrappers/buttons.js +25 -14
- package/src/js/wrappers/visuals/notifier.js +11 -4
- package/src/js/wrappers/visuals/recorder.js +41 -11
- package/src/js/wrappers/visuals.js +9 -3
- package/src/styles/css/main.min.css.js +1 -1
- package/src/styles/styl/main.styl +3 -0
- package/.prettierrc +0 -18
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).VideomailClient=e()}}((function(){return function e(t,n,r){function i(
|
|
1
|
+
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).VideomailClient=e()}}((function(){return function e(t,n,r){function i(a,u){if(!n[a]){if(!t[a]){var s="function"==typeof require&&require;if(!u&&s)return s(a,!0);if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};t[a][0].call(c.exports,(function(e){return i(t[a][1][e]||e)}),c,c.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,t,n){t.exports=function(e){return e&&e.__esModule?e:{default:e}},t.exports.__esModule=!0,t.exports.default=t.exports},{}],2:[function(e,t,n){function r(e){return t.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},{}],3:[function(e,t,n){var r,i;r=this,i=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,i){var o,a,u,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"passive";if(void 0!==e.addEventListener){var l=r.SupportMap[s]?Object.assign({},i,(u=!0,(a=s)in(o={})?Object.defineProperty(o,a,{value:u,enumerable:!0,configurable:!0,writable:!0}):o[a]=u,o)):i;e.addEventListener(t,n,l)}};var r=n(1)},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SupportMap=void 0;var i=n(2);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=(o(r={},i.PASSIVE,!1),o(r,i.CAPTURE,!1),o(r,i.ONCE,!1),r);t.SupportMap=(Object.keys(a).forEach((function(e,t){a[e]=function(e){if(a[e])return a[e];try{var t=Object.defineProperty({},e,{get:function(){a[e]=!0}});window.addEventListener("test",null,t),window.removeListener("test",null)}catch(e){}return a[e]}(e)})),a)},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PASSIVE="passive",t.CAPTURE="capture",t.ONCE="once"}])},"object"==typeof n&&"object"==typeof t?t.exports=i():"object"==typeof n?n["add-eventlistener-with-options"]=i():r["add-eventlistener-with-options"]=i()},{}],4:[function(e,t,n){var r,i=e("events").EventEmitter,o=e("inherits"),a=e("raf"),u={requestAnimationFrame:a,cancelAnimationFrame:a.cancel};function s(){return!0}function l(e){e=e||{},this.__delay=e.delay||0,this.fixedDelta=!!e.fixedDelta,this.frameCount=0,this.deltaTime=0,this.elapsedTime=0,this.__running=!1,this.__completed=!1,this.setFPS(e.fps||1/0),this.setRequestAnimationFrameObject(e.requestAnimationFrameObject||u)}function c(e){var t,r=Date.now();if(e.__running)return e;n.running+=1,e.__running=!0,e.__lastTime=r,e.deltaTime=0,e.emit("start",e.deltaTime,0,e.frameCount);var i=e.requestAnimationFrameObject,o=function(){if(i!==e.requestAnimationFrameObject)return i=e.requestAnimationFrameObject,void e.requestAnimationFrameObject.requestAnimationFrame(o);e.__isReadyForUpdate()&&e.update(),e.__running?t=e.requestAnimationFrameObject.requestAnimationFrame(o):e.requestAnimationFrameObject.cancelAnimationFrame(t)};return e.requestAnimationFrameObject.requestAnimationFrame(o),e}for(var f in o(l,i),r={off:i.prototype.removeListener,trigger:i.prototype.emit,complete:function(){return this.stop(),this.__completed=!0,this.emit("complete",this.frameCount,this.deltaTime),this},dispose:function(){return this.stop(),this.removeAllListeners(),this},getDeltaTime:function(){return this.deltaTime},getElapsedTime:function(){return this.elapsedTime},getFPS:function(){return this.deltaTime>0?1e3/this.deltaTime:0},getFPSLimit:function(){return this.__fps},getFrameCount:function(){return this.frameCount},getRequestAnimationFrameObject:function(){return this.requestAnimationFrameObject},isRunning:function(){return this.__running},isCompleted:function(){return this.__completed},reset:function(){return this.stop(),this.__completed=!1,this.__lastTime=0,this.deltaTime=0,this.elapsedTime=0,this.frameCount=0,this.emit("reset",0,0,this.frameCount),this},setFPS:function(e){return this.__fps=e,this.__isReadyForUpdate=function(e){var t=1e3/e,n=Date.now();if(e<=0||e===1/0)return s;var r=Math.ceil(1e3/60)/2;return function(){var e=Date.now();return!(e-n<t-r||(n=e,0))}}(e),this},setRequestAnimationFrameObject:function(e){if("function"!=typeof e.requestAnimationFrame||"function"!=typeof e.cancelAnimationFrame)throw new Error("Invalid object provide to `setRequestAnimationFrameObject`");return this.requestAnimationFrameObject=e,this},start:function(){var e=this;return this.__delay?setTimeout((function(){c(e)}),this.__delay):c(this),this},stop:function(){return this.__running&&(this.__running=!1,n.running-=1,this.emit("stop",this.deltaTime,this.elapsedTime,this.frameCount)),this},update:function(){this.frameCount++;var e=Date.now();return this.__lastTime=this.__lastTime||e,this.deltaTime=this.fixedDelta||n.globalFixedDelta?1e3/Math.min(60,this.__fps):e-this.__lastTime,this.elapsedTime+=this.deltaTime,this.__lastTime=e,this.emit("update",this.deltaTime,this.elapsedTime,this.frameCount),this}})l.prototype[f]=r[f];function d(e,t){1===arguments.length&&"function"==typeof e&&(t=e,e={});var n=new l(e);return t&&n.on("update",t),n}function p(e,t){return"function"==typeof e.bind?e.bind(t):function(){return e.apply(t,arguments)}}t.exports=n=d,n.bound=function(e,t){for(var n,r=d(e,t),i=function(e){for(var t=Object.keys(e),n=[],r=0;r<t.length;r++)"function"==typeof e[t[r]]&&n.push(t[r]);return n}(l.prototype),o=!!Function.prototype.bind,a=0;a<i.length;a++)r[n=i[a]]=o?r[n].bind(r):p(r[n],r);return r},n.Animitter=l,n.globalFixedDelta=!1,n.EventEmitter=i,n.running=0,Date.now=Date.now||function(){return(new Date).getTime()}},{events:37,inherits:61,raf:85}],5:[function(e,t,n){(function(e){(function(){!function(n){"use strict";var r,i="function"==typeof(r=n.atob)?r:"function"==typeof e?function(t){
|
|
2
2
|
//!! Deliberately using an API that's deprecated in node.js because
|
|
3
3
|
//!! this file is for browsers and we expect them to cope with it.
|
|
4
4
|
//!! Discussion: github.com/node-browser-compat/atob/pull/9
|
|
5
|
-
return new e(t,"base64").toString("binary")}:"object"==typeof n.base64js?function(e){var t=n.base64js.b64ToByteArray(e);return Array.prototype.map.call(t,(function(e){return String.fromCharCode(e)})).join("")}:function(){throw new Error("You're probably in an old browser or an iOS webworker. It might help to include beatgammit's base64-js.")};n.atob=i,"object"==typeof t&&t&&t.exports&&(t.exports=i)}(window)}).call(this)}).call(this,e("buffer").Buffer)},{buffer:11}],6:[function(e,t,n){var r=e("typedarray-to-buffer"),i=e("validate.io-float32array");t.exports=function(e){if(!e)throw new Error("A Float32Array parameter is missing.");if(!i(e))throw new Error("The parameter is not a Float32Array.");this.toBuffer=function(){var t,n=e.length,i=new Int16Array(n);for(t=0;t<n;t++)i[t]=32767*Math.min(1,e[t]);return r(i)}}},{"typedarray-to-buffer":
|
|
5
|
+
return new e(t,"base64").toString("binary")}:"object"==typeof n.base64js?function(e){var t=n.base64js.b64ToByteArray(e);return Array.prototype.map.call(t,(function(e){return String.fromCharCode(e)})).join("")}:function(){throw new Error("You're probably in an old browser or an iOS webworker. It might help to include beatgammit's base64-js.")};n.atob=i,"object"==typeof t&&t&&t.exports&&(t.exports=i)}(window)}).call(this)}).call(this,e("buffer").Buffer)},{buffer:11}],6:[function(e,t,n){var r=e("typedarray-to-buffer"),i=e("validate.io-float32array");t.exports=function(e){if(!e)throw new Error("A Float32Array parameter is missing.");if(!i(e))throw new Error("The parameter is not a Float32Array.");this.toBuffer=function(){var t,n=e.length,i=new Int16Array(n);for(t=0;t<n;t++)i[t]=32767*Math.min(1,e[t]);return r(i)}}},{"typedarray-to-buffer":111,"validate.io-float32array":117}],7:[function(e,t,n){(function(n){(function(){"use strict";var r=e("possible-typed-array-names"),i="undefined"==typeof globalThis?n:globalThis;t.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"==typeof i[r[t]]&&(e[e.length]=r[t]);return e}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"possible-typed-array-names":77}],8:[function(e,t,n){"use strict";n.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},n.toByteArray=function(e){var t,n,r=s(e),a=r[0],u=r[1],l=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,u)),c=0,f=u>0?a-4:a;for(n=0;n<f;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],l[c++]=t>>16&255,l[c++]=t>>8&255,l[c++]=255&t;2===u&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[c++]=255&t);1===u&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t);return l},n.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=16383,u=0,s=n-i;u<s;u+=a)o.push(l(e,u,u+a>s?s:u+a));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0;u<64;++u)r[u]=a[u],i[a.charCodeAt(u)]=u;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var i,o,a=[],u=t;u<n;u+=3)i=(e[u]<<16&16711680)+(e[u+1]<<8&65280)+(255&e[u+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],9:[function(e,t,n){},{}],10:[function(e,t,n){
|
|
6
6
|
/*!
|
|
7
7
|
* Cross-Browser Split 1.1.1
|
|
8
8
|
* Copyright 2007-2012 Steven Levithan <stevenlevithan.com>
|
|
9
9
|
* Available under the MIT License
|
|
10
10
|
* ECMAScript compliant, uniform cross-browser split method
|
|
11
11
|
*/
|
|
12
|
-
t.exports=function(e){var t,n=String.prototype.split,r=/()??/.exec("")[1]===e;return t=function(t,i,o){if("[object RegExp]"!==Object.prototype.toString.call(i))return n.call(t,i,o);var
|
|
12
|
+
t.exports=function(e){var t,n=String.prototype.split,r=/()??/.exec("")[1]===e;return t=function(t,i,o){if("[object RegExp]"!==Object.prototype.toString.call(i))return n.call(t,i,o);var a,u,s,l,c=[],f=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.extended?"x":"")+(i.sticky?"y":""),d=0;i=new RegExp(i.source,f+"g");for(t+="",r||(a=new RegExp("^"+i.source+"$(?!\\s)",f)),o=o===e?-1>>>0:o>>>0;(u=i.exec(t))&&!((s=u.index+u[0].length)>d&&(c.push(t.slice(d,u.index)),!r&&u.length>1&&u[0].replace(a,(function(){for(var t=1;t<arguments.length-2;t++)arguments[t]===e&&(u[t]=e)})),u.length>1&&u.index<t.length&&Array.prototype.push.apply(c,u.slice(1)),l=u[0].length,d=s,c.length>=o));)i.lastIndex===u.index&&i.lastIndex++;return d===t.length?!l&&i.test("")||c.push(""):c.push(t.slice(d)),c.length>o?c.slice(0,o):c},t}()},{}],11:[function(e,t,n){(function(t){(function(){
|
|
13
13
|
/*!
|
|
14
14
|
* The buffer module from node.js, for the browser.
|
|
15
15
|
*
|
|
16
16
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
17
17
|
* @license MIT
|
|
18
18
|
*/
|
|
19
|
-
"use strict";var t=e("base64-js"),r=e("ieee754");n.Buffer=s,n.SlowBuffer=function(e){+e!=e&&(e=0);return s.alloc(+e)},n.INSPECT_MAX_BYTES=50;var i=2147483647;function o(e){if(e>i)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=s.prototype,t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return l(e)}return a(e,t,n)}function a(e,t,n){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!s.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|d(e,t),r=o(n),i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t);if(ArrayBuffer.isView(e))return c(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(F(e,ArrayBuffer)||e&&F(e.buffer,ArrayBuffer))return function(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n);return r.__proto__=s.prototype,r}(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return s.from(r,t,n);var i=function(e){if(s.isBuffer(e)){var t=0|f(e.length),n=o(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||q(e.length)?o(0):c(e);if("Buffer"===e.type&&Array.isArray(e.data))return c(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return u(e),o(e<0?0:0|f(e))}function c(e){for(var t=e.length<0?0:0|f(e.length),n=o(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function f(e){if(e>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function d(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||F(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return D(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return B(e).length;default:if(i)return r?-1:D(e).length;t=(""+t).toLowerCase(),i=!0}}function p(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return k(this,t,n);case"utf8":case"utf-8":return _(this,t,n);case"ascii":return A(this,t,n);case"latin1":case"binary":return R(this,t,n);case"base64":return x(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function h(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),q(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:m(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):m(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,n,r,i){var o,s=1,a=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,n/=2}function l(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var c=-1;for(o=n;o<a;o++)if(l(e,o)===l(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*s}else-1!==c&&(o-=o-c),c=-1}else for(n+u>a&&(n=a-u),o=n;o>=0;o--){for(var f=!0,d=0;d<u;d++)if(l(e,o+d)!==l(t,d)){f=!1;break}if(f)return o}return-1}function b(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(q(a))return s;e[n+s]=a}return s}function g(e,t,n,r){return U(D(t,e.length-n),e,n,r)}function v(e,t,n,r){return U(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function w(e,t,n,r){return v(e,t,n,r)}function j(e,t,n,r){return U(B(t),e,n,r)}function E(e,t,n,r){return U(function(e,t){for(var n,r,i,o=[],s=0;s<e.length&&!((t-=2)<0);++s)r=(n=e.charCodeAt(s))>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function x(e,n,r){return 0===n&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function _(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,s,a,u,l=e[i],c=null,f=l>239?4:l>223?3:l>191?2:1;if(i+f<=n)switch(f){case 1:l<128&&(c=l);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&(u=(15&l)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&l)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(c=u)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=f}return function(e){var t=e.length;if(t<=S)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=S));return n}(r)}n.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}(),s.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(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),s.poolSize=8192,s.from=function(e,t,n){return a(e,t,n)},s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,s.alloc=function(e,t,n){return function(e,t,n){return u(e),e<=0?o(e):void 0!==t?"string"==typeof n?o(e).fill(t,n):o(e).fill(t):o(e)}(e,t,n)},s.allocUnsafe=function(e){return l(e)},s.allocUnsafeSlow=function(e){return l(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(F(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),F(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=s.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(F(o,Uint8Array)&&(o=s.from(o)),!s.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},s.byteLength=d,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)h(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)h(this,t,t+3),h(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)h(this,t,t+7),h(this,t+1,t+6),h(this,t+2,t+5),h(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?_(this,0,e):p.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",t=n.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},s.prototype.compare=function(e,t,n,r,i){if(F(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),u=Math.min(o,a),l=this.slice(r,i),c=e.slice(t,n),f=0;f<u;++f)if(l[f]!==c[f]){o=l[f],a=c[f];break}return o<a?-1:a<o?1:0},s.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},s.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},s.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return g(this,e,t,n);case"ascii":return v(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return j(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var S=4096;function A(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function R(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function k(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=L(e[o]);return i}function O(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function T(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,r,i,o){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function M(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function P(e,t,n,i,o){return t=+t,n>>>=0,o||M(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function C(e,t,n,i,o){return t=+t,n>>>=0,o||M(e,0,n,8),r.write(e,t,n,i,52,8),n+8}s.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return r.__proto__=s.prototype,r},s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||T(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||T(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||T(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||T(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),r.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),r.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),r.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),r.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||I(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},s.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||I(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);I(this,e,t,n,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<n&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);I(this,e,t,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,n){return P(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return P(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return C(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return C(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var o=i-1;o>=0;--o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},s.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var i=e.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(e=i)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=s.isBuffer(e)?e:s.from(e,r),u=a.length;if(0===u)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=a[o%u]}return this};var N=/[^+/0-9A-Za-z-_]/g;function L(e){return e<16?"0"+e.toString(16):e.toString(16)}function D(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function B(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(N,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function U(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function F(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function q(e){return e!=e}}).call(this)}).call(this,e("buffer").Buffer)},{"base64-js":8,buffer:11,ieee754:303}],12:[function(e,t,n){"use strict";var r=e("get-intrinsic"),i=e("./"),o=i(r("String.prototype.indexOf"));t.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i(n):n}},{"./":13,"get-intrinsic":288}],13:[function(e,t,n){"use strict";var r=e("function-bind"),i=e("get-intrinsic"),o=e("set-function-length"),s=i("%TypeError%"),a=i("%Function.prototype.apply%"),u=i("%Function.prototype.call%"),l=i("%Reflect.apply%",!0)||r.call(u,a),c=i("%Object.defineProperty%",!0),f=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}t.exports=function(e){if("function"!=typeof e)throw new s("a function is required");var t=l(r,u,arguments);return o(t,1+f(0,e.length-(arguments.length-1)),!0)};var d=function(){return l(r,a,arguments)};c?c(t.exports,"apply",{value:d}):t.exports.apply=d},{"function-bind":286,"get-intrinsic":288,"set-function-length":345}],14:[function(e,t,n){var r,i=e("typedarray-to-buffer"),o=e("atob"),s="undefined"!=typeof document&&"function"==typeof document.createElement;t.exports=function(e,t){void 0===t&&(t={});var n=this;if(t.image=t.image?t.image:{},t.image.types=t.image.types?t.image.types:[],t.image.types.length>2)throw new Error("Too many image types are specified!");t.image.types.length<1&&(t.image.types=s?["webp","jpeg"]:["png"]),t.image.quality||(t.image.quality=.5);var a=parseFloat(t.image.quality);function u(e){var n;return t.image.types[e]&&(n="image/"+t.image.types[e]),n}function l(e,n){var r=e&&e.match(n);return r&&t.debug&&t.debug("Image type %s verified",n),r}function c(){var t;return s?(t=document.createElement("canvas")).width=t.height=1:t=e,t}function f(e,t){try{c().toDataURL(e,(function(n,r){n?t(n):t(null,l(r,e))}))}catch(e){t(null,!1)}}function d(e){var n;try{var r=c();n=l(r.toDataURL&&r.toDataURL(e),e)}catch(n){t.debug&&t.logger.debug("Failed to call toDataURL() on canvas for image type %s",e)}return n}function p(e){var n=u(0);if(!e)return function(e){return d(e)||t.image.types[1]&&d(e=u(1))||(e=null),!e&&t.debug&&t.logger.debug("Unable to verify image type"),e}(n);!function(e,t){f(e,(function(n,r){n?t(n):r?t(null,e):f(e=u(1),(function(n,r){n?t(n):t(null,r?e:null)}))}))}(n,e)}function h(e){var t,r=e.split(",")[1];if("function"==typeof o)t=o(r);else{if("function"!=typeof n.constructor.atob)throw new Error("atob function is missing");t=n.constructor.atob(r)}for(var s=new Uint8Array(t.length),a=0,u=t.length;a<u;a++)s[a]=t.charCodeAt(a);return i(s)}this.toBuffer=function(t){if(!t)return(i=n.getImageType())&&(r=h(e.toDataURL(i,a))),r;var r,i;!function(t){n.getImageType((function(n,r){n?t(n):r?e.toDataURL(r,(function(e,n){e?t(e):t(null,h(n))})):t()}))}(t)},this.getImageType=function(e){if(!e)return r&&s||(r=p()),r;r&&s?e(null,r):p((function(t,n){t?e(t):e(null,r=n)}))}}},{atob:5,"typedarray-to-buffer":354}],15:[function(e,t,n){var r=e("indexof");function i(e){return!!e}t.exports=function(e){var t=e.classList;if(t)return t;var n={add:o,remove:s,contains:a,toggle:function(e){return a(e)?(s(e),!1):(o(e),!0)},toString:function(){return e.className},length:0,item:function(e){return u()[e]||null}};return n;function o(e){var t=u();r(t,e)>-1||(t.push(e),l(t))}function s(e){var t=u(),n=r(t,e);-1!==n&&(t.splice(n,1),l(t))}function a(e){return r(u(),e)>-1}function u(){return function(e,t){for(var n=[],r=0;r<e.length;r++)t(e[r])&&n.push(e[r]);return n}(e.className.split(" "),i)}function l(t){var r=t.length;e.className=t.join(" "),n.length=r;for(var i=0;i<t.length;i++)n[i]=t[i];delete t[r]}}},{indexof:304}],16:[function(e,t,n){
|
|
19
|
+
"use strict";var t=e("base64-js"),r=e("ieee754");n.Buffer=a,n.SlowBuffer=function(e){+e!=e&&(e=0);return a.alloc(+e)},n.INSPECT_MAX_BYTES=50;var i=2147483647;function o(e){if(e>i)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=a.prototype,t}function a(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return l(e)}return u(e,t,n)}function u(e,t,n){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!a.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|d(e,t),r=o(n),i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t);if(ArrayBuffer.isView(e))return c(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(F(e,ArrayBuffer)||e&&F(e.buffer,ArrayBuffer))return function(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n);return r.__proto__=a.prototype,r}(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return a.from(r,t,n);var i=function(e){if(a.isBuffer(e)){var t=0|f(e.length),n=o(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||W(e.length)?o(0):c(e);if("Buffer"===e.type&&Array.isArray(e.data))return c(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function s(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return s(e),o(e<0?0:0|f(e))}function c(e){for(var t=e.length<0?0:0|f(e.length),n=o(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function f(e){if(e>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function d(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||F(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return L(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return B(e).length;default:if(i)return r?-1:L(e).length;t=(""+t).toLowerCase(),i=!0}}function p(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,n);case"utf8":case"utf-8":return R(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return k(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function h(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),W(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=a.from(t,r)),a.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,u=e.length,s=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,u/=2,s/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;o<u;o++)if(l(e,o)===l(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===s)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(n+s>u&&(n=u-s),o=n;o>=0;o--){for(var f=!0,d=0;d<s;d++)if(l(e,o+d)!==l(t,d)){f=!1;break}if(f)return o}return-1}function b(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var a=0;a<r;++a){var u=parseInt(t.substr(2*a,2),16);if(W(u))return a;e[n+a]=u}return a}function g(e,t,n,r){return U(L(t,e.length-n),e,n,r)}function v(e,t,n,r){return U(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function w(e,t,n,r){return v(e,t,n,r)}function E(e,t,n,r){return U(B(t),e,n,r)}function _(e,t,n,r){return U(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function S(e,n,r){return 0===n&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function R(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,u,s,l=e[i],c=null,f=l>239?4:l>223?3:l>191?2:1;if(i+f<=n)switch(f){case 1:l<128&&(c=l);break;case 2:128==(192&(o=e[i+1]))&&(s=(31&l)<<6|63&o)>127&&(c=s);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(s=(15&l)<<12|(63&o)<<6|63&a)>2047&&(s<55296||s>57343)&&(c=s);break;case 4:o=e[i+1],a=e[i+2],u=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&u)&&(s=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&u)>65535&&s<1114112&&(c=s)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=f}return function(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=A));return n}(r)}n.kMaxLength=i,a.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}(),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",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),a.poolSize=8192,a.from=function(e,t,n){return u(e,t,n)},a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,a.alloc=function(e,t,n){return function(e,t,n){return s(e),e<=0?o(e):void 0!==t?"string"==typeof n?o(e).fill(t,n):o(e).fill(t):o(e)}(e,t,n)},a.allocUnsafe=function(e){return l(e)},a.allocUnsafeSlow=function(e){return l(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(F(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),F(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=a.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(F(o,Uint8Array)&&(o=a.from(o)),!a.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},a.byteLength=d,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)h(this,t,t+1);return this},a.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)h(this,t,t+3),h(this,t+1,t+2);return this},a.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)h(this,t,t+7),h(this,t+1,t+6),h(this,t+2,t+5),h(this,t+3,t+4);return this},a.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?R(this,0,e):p.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){var e="",t=n.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},a.prototype.compare=function(e,t,n,r,i){if(F(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),u=(n>>>=0)-(t>>>=0),s=Math.min(o,u),l=this.slice(r,i),c=e.slice(t,n),f=0;f<s;++f)if(l[f]!==c[f]){o=l[f],u=c[f];break}return o<u?-1:u<o?1:0},a.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},a.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},a.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},a.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return g(this,e,t,n);case"ascii":return v(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function O(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function k(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function T(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=P(e[o]);return i}function x(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function j(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,n,r,i,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function D(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function C(e,t,n,i,o){return t=+t,n>>>=0,o||D(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function N(e,t,n,i,o){return t=+t,n>>>=0,o||D(e,0,n,8),r.write(e,t,n,i,52,8),n+8}a.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return r.__proto__=a.prototype,r},a.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},a.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},a.prototype.readUInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},a.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||j(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(e,t){e>>>=0,t||j(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return e>>>=0,t||j(e,4,this.length),r.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||j(e,4,this.length),r.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||j(e,8,this.length),r.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||j(e,8,this.length),r.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||M(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},a.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||M(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},a.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);M(this,e,t,n,i-1,-i)}var o=0,a=1,u=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===u&&0!==this[t+o-1]&&(u=1),this[t+o]=(e/a>>0)-u&255;return t+n},a.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);M(this,e,t,n,i-1,-i)}var o=n-1,a=1,u=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===u&&0!==this[t+o+1]&&(u=1),this[t+o]=(e/a>>0)-u&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeFloatLE=function(e,t,n){return C(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return C(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return N(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return N(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,r){if(!a.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var o=i-1;o>=0;--o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},a.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var i=e.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(e=i)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var u=a.isBuffer(e)?e:a.from(e,r),s=u.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=u[o%s]}return this};var I=/[^+/0-9A-Za-z-_]/g;function P(e){return e<16?"0"+e.toString(16):e.toString(16)}function L(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function B(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(I,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function U(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function F(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function W(e){return e!=e}}).call(this)}).call(this,e("buffer").Buffer)},{"base64-js":8,buffer:11,ieee754:59}],12:[function(e,t,n){"use strict";var r=e("get-intrinsic"),i=e("./"),o=i(r("String.prototype.indexOf"));t.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i(n):n}},{"./":13,"get-intrinsic":44}],13:[function(e,t,n){"use strict";var r=e("function-bind"),i=e("get-intrinsic"),o=e("set-function-length"),a=e("es-errors/type"),u=i("%Function.prototype.apply%"),s=i("%Function.prototype.call%"),l=i("%Reflect.apply%",!0)||r.call(s,u),c=e("es-define-property"),f=i("%Math.max%");t.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=l(r,s,arguments);return o(t,1+f(0,e.length-(arguments.length-1)),!0)};var d=function(){return l(r,u,arguments)};c?c(t.exports,"apply",{value:d}):t.exports.apply=d},{"es-define-property":29,"es-errors/type":35,"function-bind":42,"get-intrinsic":44,"set-function-length":102}],14:[function(e,t,n){var r,i=e("typedarray-to-buffer"),o=e("atob"),a="undefined"!=typeof document&&"function"==typeof document.createElement;t.exports=function(e,t){void 0===t&&(t={});var n=this;if(t.image=t.image?t.image:{},t.image.types=t.image.types?t.image.types:[],t.image.types.length>2)throw new Error("Too many image types are specified!");t.image.types.length<1&&(t.image.types=a?["webp","jpeg"]:["png"]),t.image.quality||(t.image.quality=.5);var u=parseFloat(t.image.quality);function s(e){var n;return t.image.types[e]&&(n="image/"+t.image.types[e]),n}function l(e,n){var r=e&&e.match(n);return r&&t.debug&&t.debug("Image type %s verified",n),r}function c(){var t;return a?(t=document.createElement("canvas")).width=t.height=1:t=e,t}function f(e,t){try{c().toDataURL(e,(function(n,r){n?t(n):t(null,l(r,e))}))}catch(e){t(null,!1)}}function d(e){var n;try{var r=c();n=l(r.toDataURL&&r.toDataURL(e),e)}catch(n){t.debug&&t.logger.debug("Failed to call toDataURL() on canvas for image type %s",e)}return n}function p(e){var n=s(0);if(!e)return function(e){return d(e)||t.image.types[1]&&d(e=s(1))||(e=null),!e&&t.debug&&t.logger.debug("Unable to verify image type"),e}(n);!function(e,t){f(e,(function(n,r){n?t(n):r?t(null,e):f(e=s(1),(function(n,r){n?t(n):t(null,r?e:null)}))}))}(n,e)}function h(e){var t,r=e.split(",")[1];if("function"==typeof o)t=o(r);else{if("function"!=typeof n.constructor.atob)throw new Error("atob function is missing");t=n.constructor.atob(r)}for(var a=new Uint8Array(t.length),u=0,s=t.length;u<s;u++)a[u]=t.charCodeAt(u);return i(a)}this.toBuffer=function(t){if(!t)return(i=n.getImageType())&&(r=h(e.toDataURL(i,u))),r;var r,i;!function(t){n.getImageType((function(n,r){n?t(n):r?e.toDataURL(r,(function(e,n){e?t(e):t(null,h(n))})):t()}))}(t)},this.getImageType=function(e){if(!e)return r&&a||(r=p()),r;r&&a?e(null,r):p((function(t,n){t?e(t):e(null,r=n)}))}}},{atob:5,"typedarray-to-buffer":111}],15:[function(e,t,n){var r=e("indexof");function i(e){return!!e}t.exports=function(e){var t=e.classList;if(t)return t;var n={add:o,remove:a,contains:u,toggle:function(e){return u(e)?(a(e),!1):(o(e),!0)},toString:function(){return e.className},length:0,item:function(e){return s()[e]||null}};return n;function o(e){var t=s();r(t,e)>-1||(t.push(e),l(t))}function a(e){var t=s(),n=r(t,e);-1!==n&&(t.splice(n,1),l(t))}function u(e){return r(s(),e)>-1}function s(){return function(e,t){for(var n=[],r=0;r<e.length;r++)t(e[r])&&n.push(e[r]);return n}(e.className.split(" "),i)}function l(t){var r=t.length;e.className=t.join(" "),n.length=r;for(var i=0;i<t.length;i++)n[i]=t[i];delete t[r]}}},{indexof:60}],16:[function(e,t,n){
|
|
20
20
|
/*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */
|
|
21
|
-
"document"in self&&(!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g"))?function(e){"use strict";if("Element"in e){var t="classList",n="prototype",r=e.Element[n],i=Object,o=String[n].trim||function(){return this.replace(/^\s+|\s+$/g,"")},s=Array[n].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1},a=function(e,t){this.name=e,this.code=DOMException[e],this.message=t},u=function(e,t){if(""===t)throw new a("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(t))throw new a("INVALID_CHARACTER_ERR","String contains an invalid character");return s.call(e,t)},l=function(e){for(var t=o.call(e.getAttribute("class")||""),n=t?t.split(/\s+/):[],r=0,i=n.length;r<i;r++)this.push(n[r]);this._updateClassName=function(){e.setAttribute("class",this.toString())}},c=l[n]=[],f=function(){return new l(this)};if(a[n]=Error[n],c.item=function(e){return this[e]||null},c.contains=function(e){return-1!==u(this,e+="")},c.add=function(){var e,t=arguments,n=0,r=t.length,i=!1;do{-1===u(this,e=t[n]+"")&&(this.push(e),i=!0)}while(++n<r);i&&this._updateClassName()},c.remove=function(){var e,t,n=arguments,r=0,i=n.length,o=!1;do{for(t=u(this,e=n[r]+"");-1!==t;)this.splice(t,1),o=!0,t=u(this,e)}while(++r<i);o&&this._updateClassName()},c.toggle=function(e,t){e+="";var n=this.contains(e),r=n?!0!==t&&"remove":!1!==t&&"add";return r&&this[r](e),!0===t||!1===t?t:!n},c.toString=function(){return this.join(" ")},i.defineProperty){var d={get:f,enumerable:!0,configurable:!0};try{i.defineProperty(r,t,d)}catch(e){-2146823252===e.number&&(d.enumerable=!1,i.defineProperty(r,t,d))}}else i[n].__defineGetter__&&r.__defineGetter__(t,f)}}(self):function(){"use strict";var e=document.createElement("_");if(e.classList.add("c1","c2"),!e.classList.contains("c2")){var t=function(e){var t=DOMTokenList.prototype[e];DOMTokenList.prototype[e]=function(e){var n,r=arguments.length;for(n=0;n<r;n++)e=arguments[n],t.call(this,e)}};t("add"),t("remove")}if(e.classList.toggle("c3",!1),e.classList.contains("c3")){var n=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return 1 in arguments&&!this.contains(e)==!t?t:n.call(this,e)}}e=null}())},{}],17:[function(e,t,n){function r(e){if(e)return function(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}(e)}void 0!==t&&(t.exports=r),r.prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<r.length;i++)if((n=r[i])===t||n.fn===t){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},r.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,t)}return this},r.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},r.prototype.hasListeners=function(e){return!!this.listeners(e).length}},{}],18:[function(e,t,n){t.exports=function(e,t){if(e.contains)return e.contains(t);var n=e.compareDocumentPosition(t);return 0===n||16&n}},{}],19:[function(e,t,n){"use strict";var r=e("../internals/is-callable"),i=e("../internals/try-to-string"),o=TypeError;t.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a function")}},{"../internals/is-callable":110,"../internals/try-to-string":193}],20:[function(e,t,n){"use strict";var r=e("../internals/is-constructor"),i=e("../internals/try-to-string"),o=TypeError;t.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a constructor")}},{"../internals/is-constructor":111,"../internals/try-to-string":193}],21:[function(e,t,n){"use strict";var r=e("../internals/is-callable"),i=String,o=TypeError;t.exports=function(e){if("object"==typeof e||r(e))return e;throw new o("Can't set "+i(e)+" as a prototype")}},{"../internals/is-callable":110}],22:[function(e,t,n){"use strict";var r=e("../internals/well-known-symbol"),i=e("../internals/object-create"),o=e("../internals/object-define-property").f,s=r("unscopables"),a=Array.prototype;void 0===a[s]&&o(a,s,{configurable:!0,value:i(null)}),t.exports=function(e){a[s][e]=!0}},{"../internals/object-create":135,"../internals/object-define-property":137,"../internals/well-known-symbol":205}],23:[function(e,t,n){"use strict";var r=e("../internals/string-multibyte").charAt;t.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},{"../internals/string-multibyte":172}],24:[function(e,t,n){"use strict";var r=e("../internals/object-is-prototype-of"),i=TypeError;t.exports=function(e,t){if(r(t,e))return e;throw new i("Incorrect invocation")}},{"../internals/object-is-prototype-of":143}],25:[function(e,t,n){"use strict";var r=e("../internals/is-object"),i=String,o=TypeError;t.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not an object")}},{"../internals/is-object":115}],26:[function(e,t,n){"use strict";t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},{}],27:[function(e,t,n){"use strict";var r,i,o,s=e("../internals/array-buffer-basic-detection"),a=e("../internals/descriptors"),u=e("../internals/global"),l=e("../internals/is-callable"),c=e("../internals/is-object"),f=e("../internals/has-own-property"),d=e("../internals/classof"),p=e("../internals/try-to-string"),h=e("../internals/create-non-enumerable-property"),y=e("../internals/define-built-in"),m=e("../internals/define-built-in-accessor"),b=e("../internals/object-is-prototype-of"),g=e("../internals/object-get-prototype-of"),v=e("../internals/object-set-prototype-of"),w=e("../internals/well-known-symbol"),j=e("../internals/uid"),E=e("../internals/internal-state"),x=E.enforce,_=E.get,S=u.Int8Array,A=S&&S.prototype,R=u.Uint8ClampedArray,k=R&&R.prototype,O=S&&g(S),T=A&&g(A),I=Object.prototype,M=u.TypeError,P=w("toStringTag"),C=j("TYPED_ARRAY_TAG"),N="TypedArrayConstructor",L=s&&!!v&&"Opera"!==d(u.opera),D=!1,B={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},U={BigInt64Array:8,BigUint64Array:8},F=function(e){var t=g(e);if(c(t)){var n=_(t);return n&&f(n,N)?n[N]:F(t)}},q=function(e){if(!c(e))return!1;var t=d(e);return f(B,t)||f(U,t)};for(r in B)(o=(i=u[r])&&i.prototype)?x(o)[N]=i:L=!1;for(r in U)(o=(i=u[r])&&i.prototype)&&(x(o)[N]=i);if((!L||!l(O)||O===Function.prototype)&&(O=function(){throw new M("Incorrect invocation")},L))for(r in B)u[r]&&v(u[r],O);if((!L||!T||T===I)&&(T=O.prototype,L))for(r in B)u[r]&&v(u[r].prototype,T);if(L&&g(k)!==T&&v(k,T),a&&!f(T,P))for(r in D=!0,m(T,P,{configurable:!0,get:function(){return c(this)?this[C]:void 0}}),B)u[r]&&h(u[r],C,r);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:L,TYPED_ARRAY_TAG:D&&C,aTypedArray:function(e){if(q(e))return e;throw new M("Target is not a typed array")},aTypedArrayConstructor:function(e){if(l(e)&&(!v||b(O,e)))return e;throw new M(p(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,r){if(a){if(n)for(var i in B){var o=u[i];if(o&&f(o.prototype,e))try{delete o.prototype[e]}catch(n){try{o.prototype[e]=t}catch(e){}}}T[e]&&!n||y(T,e,n?t:L&&A[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,i;if(a){if(v){if(n)for(r in B)if((i=u[r])&&f(i,e))try{delete i[e]}catch(e){}if(O[e]&&!n)return;try{return y(O,e,n?t:L&&O[e]||t)}catch(e){}}for(r in B)!(i=u[r])||i[e]&&!n||y(i,e,t)}},getTypedArrayConstructor:F,isView:function(e){if(!c(e))return!1;var t=d(e);return"DataView"===t||f(B,t)||f(U,t)},isTypedArray:q,TypedArray:O,TypedArrayPrototype:T}},{"../internals/array-buffer-basic-detection":26,"../internals/classof":48,"../internals/create-non-enumerable-property":52,"../internals/define-built-in":56,"../internals/define-built-in-accessor":55,"../internals/descriptors":60,"../internals/global":96,"../internals/has-own-property":97,"../internals/internal-state":106,"../internals/is-callable":110,"../internals/is-object":115,"../internals/object-get-prototype-of":142,"../internals/object-is-prototype-of":143,"../internals/object-set-prototype-of":147,"../internals/try-to-string":193,"../internals/uid":199,"../internals/well-known-symbol":205}],28:[function(e,t,n){"use strict";var r=e("../internals/global"),i=e("../internals/function-uncurry-this"),o=e("../internals/descriptors"),s=e("../internals/array-buffer-basic-detection"),a=e("../internals/function-name"),u=e("../internals/create-non-enumerable-property"),l=e("../internals/define-built-in-accessor"),c=e("../internals/define-built-ins"),f=e("../internals/fails"),d=e("../internals/an-instance"),p=e("../internals/to-integer-or-infinity"),h=e("../internals/to-length"),y=e("../internals/to-index"),m=e("../internals/math-fround"),b=e("../internals/ieee754"),g=e("../internals/object-get-prototype-of"),v=e("../internals/object-set-prototype-of"),w=e("../internals/object-get-own-property-names").f,j=e("../internals/array-fill"),E=e("../internals/array-slice-simple"),x=e("../internals/set-to-string-tag"),_=e("../internals/internal-state"),S=a.PROPER,A=a.CONFIGURABLE,R="ArrayBuffer",k="DataView",O="prototype",T="Wrong index",I=_.getterFor(R),M=_.getterFor(k),P=_.set,C=r[R],N=C,L=N&&N[O],D=r[k],B=D&&D[O],U=Object.prototype,F=r.Array,q=r.RangeError,W=i(j),H=i([].reverse),z=b.pack,V=b.unpack,G=function(e){return[255&e]},$=function(e){return[255&e,e>>8&255]},Y=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},J=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},K=function(e){return z(m(e),23,4)},X=function(e){return z(e,52,8)},Q=function(e,t,n){l(e[O],t,{configurable:!0,get:function(){return n(this)[t]}})},Z=function(e,t,n,r){var i=M(e),o=y(n),s=!!r;if(o+t>i.byteLength)throw new q(T);var a=i.bytes,u=o+i.byteOffset,l=E(a,u,u+t);return s?l:H(l)},ee=function(e,t,n,r,i,o){var s=M(e),a=y(n),u=r(+i),l=!!o;if(a+t>s.byteLength)throw new q(T);for(var c=s.bytes,f=a+s.byteOffset,d=0;d<t;d++)c[f+d]=u[l?d:t-d-1]};if(s){var te=S&&C.name!==R;if(f((function(){C(1)}))&&f((function(){new C(-1)}))&&!f((function(){return new C,new C(1.5),new C(NaN),1!==C.length||te&&!A})))te&&A&&u(C,"name",R);else{(N=function(e){return d(this,L),new C(y(e))})[O]=L;for(var ne,re=w(C),ie=0;re.length>ie;)(ne=re[ie++])in N||u(N,ne,C[ne]);L.constructor=N}v&&g(B)!==U&&v(B,U);var oe=new D(new N(2)),se=i(B.setInt8);oe.setInt8(0,2147483648),oe.setInt8(1,2147483649),!oe.getInt8(0)&&oe.getInt8(1)||c(B,{setInt8:function(e,t){se(this,e,t<<24>>24)},setUint8:function(e,t){se(this,e,t<<24>>24)}},{unsafe:!0})}else L=(N=function(e){d(this,L);var t=y(e);P(this,{type:R,bytes:W(F(t),0),byteLength:t}),o||(this.byteLength=t,this.detached=!1)})[O],B=(D=function(e,t,n){d(this,B),d(e,L);var r=I(e),i=r.byteLength,s=p(t);if(s<0||s>i)throw new q("Wrong offset");if(s+(n=void 0===n?i-s:h(n))>i)throw new q("Wrong length");P(this,{type:k,buffer:e,byteLength:n,byteOffset:s,bytes:r.bytes}),o||(this.buffer=e,this.byteLength=n,this.byteOffset=s)})[O],o&&(Q(N,"byteLength",I),Q(D,"buffer",M),Q(D,"byteLength",M),Q(D,"byteOffset",M)),c(B,{getInt8:function(e){return Z(this,1,e)[0]<<24>>24},getUint8:function(e){return Z(this,1,e)[0]},getInt16:function(e){var t=Z(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Z(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return J(Z(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return J(Z(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return V(Z(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return V(Z(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){ee(this,1,e,G,t)},setUint8:function(e,t){ee(this,1,e,G,t)},setInt16:function(e,t){ee(this,2,e,$,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){ee(this,2,e,$,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){ee(this,4,e,Y,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){ee(this,4,e,Y,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){ee(this,4,e,K,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){ee(this,8,e,X,t,arguments.length>2&&arguments[2])}});x(N,R),x(D,k),t.exports={ArrayBuffer:N,DataView:D}},{"../internals/an-instance":24,"../internals/array-buffer-basic-detection":26,"../internals/array-fill":30,"../internals/array-slice-simple":40,"../internals/create-non-enumerable-property":52,"../internals/define-built-in-accessor":55,"../internals/define-built-ins":57,"../internals/descriptors":60,"../internals/fails":80,"../internals/function-name":87,"../internals/function-uncurry-this":90,"../internals/global":96,"../internals/ieee754":102,"../internals/internal-state":106,"../internals/math-fround":127,"../internals/object-get-own-property-names":140,"../internals/object-get-prototype-of":142,"../internals/object-set-prototype-of":147,"../internals/set-to-string-tag":167,"../internals/to-index":181,"../internals/to-integer-or-infinity":183,"../internals/to-length":184}],29:[function(e,t,n){"use strict";var r=e("../internals/to-object"),i=e("../internals/to-absolute-index"),o=e("../internals/length-of-array-like"),s=e("../internals/delete-property-or-throw"),a=Math.min;t.exports=[].copyWithin||function(e,t){var n=r(this),u=o(n),l=i(e,u),c=i(t,u),f=arguments.length>2?arguments[2]:void 0,d=a((void 0===f?u:i(f,u))-c,u-l),p=1;for(c<l&&l<c+d&&(p=-1,c+=d-1,l+=d-1);d-- >0;)c in n?n[l]=n[c]:s(n,l),l+=p,c+=p;return n}},{"../internals/delete-property-or-throw":59,"../internals/length-of-array-like":124,"../internals/to-absolute-index":179,"../internals/to-object":185}],30:[function(e,t,n){"use strict";var r=e("../internals/to-object"),i=e("../internals/to-absolute-index"),o=e("../internals/length-of-array-like");t.exports=function(e){for(var t=r(this),n=o(t),s=arguments.length,a=i(s>1?arguments[1]:void 0,n),u=s>2?arguments[2]:void 0,l=void 0===u?n:i(u,n);l>a;)t[a++]=e;return t}},{"../internals/length-of-array-like":124,"../internals/to-absolute-index":179,"../internals/to-object":185}],31:[function(e,t,n){"use strict";var r=e("../internals/array-iteration").forEach,i=e("../internals/array-method-is-strict")("forEach");t.exports=i?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},{"../internals/array-iteration":35,"../internals/array-method-is-strict":38}],32:[function(e,t,n){"use strict";var r=e("../internals/length-of-array-like");t.exports=function(e,t){for(var n=0,i=r(t),o=new e(i);i>n;)o[n]=t[n++];return o}},{"../internals/length-of-array-like":124}],33:[function(e,t,n){"use strict";var r=e("../internals/function-bind-context"),i=e("../internals/function-call"),o=e("../internals/to-object"),s=e("../internals/call-with-safe-iteration-closing"),a=e("../internals/is-array-iterator-method"),u=e("../internals/is-constructor"),l=e("../internals/length-of-array-like"),c=e("../internals/create-property"),f=e("../internals/get-iterator"),d=e("../internals/get-iterator-method"),p=Array;t.exports=function(e){var t=o(e),n=u(this),h=arguments.length,y=h>1?arguments[1]:void 0,m=void 0!==y;m&&(y=r(y,h>2?arguments[2]:void 0));var b,g,v,w,j,E,x=d(t),_=0;if(!x||this===p&&a(x))for(b=l(t),g=n?new this(b):p(b);b>_;_++)E=m?y(t[_],_):t[_],c(g,_,E);else for(j=(w=f(t,x)).next,g=n?new this:[];!(v=i(j,w)).done;_++)E=m?s(w,y,[v.value,_],!0):v.value,c(g,_,E);return g.length=_,g}},{"../internals/call-with-safe-iteration-closing":45,"../internals/create-property":54,"../internals/function-bind-context":83,"../internals/function-call":86,"../internals/get-iterator":93,"../internals/get-iterator-method":92,"../internals/is-array-iterator-method":107,"../internals/is-constructor":111,"../internals/length-of-array-like":124,"../internals/to-object":185}],34:[function(e,t,n){"use strict";var r=e("../internals/to-indexed-object"),i=e("../internals/to-absolute-index"),o=e("../internals/length-of-array-like"),s=function(e){return function(t,n,s){var a,u=r(t),l=o(u),c=i(s,l);if(e&&n!=n){for(;l>c;)if((a=u[c++])!=a)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},{"../internals/length-of-array-like":124,"../internals/to-absolute-index":179,"../internals/to-indexed-object":182}],35:[function(e,t,n){"use strict";var r=e("../internals/function-bind-context"),i=e("../internals/function-uncurry-this"),o=e("../internals/indexed-object"),s=e("../internals/to-object"),a=e("../internals/length-of-array-like"),u=e("../internals/array-species-create"),l=i([].push),c=function(e){var t=1===e,n=2===e,i=3===e,c=4===e,f=6===e,d=7===e,p=5===e||f;return function(h,y,m,b){for(var g,v,w=s(h),j=o(w),E=r(y,m),x=a(j),_=0,S=b||u,A=t?S(h,x):n||d?S(h,0):void 0;x>_;_++)if((p||_ in j)&&(v=E(g=j[_],_,w),e))if(t)A[_]=v;else if(v)switch(e){case 3:return!0;case 5:return g;case 6:return _;case 2:l(A,g)}else switch(e){case 4:return!1;case 7:l(A,g)}return f?-1:i||c?c:A}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},{"../internals/array-species-create":44,"../internals/function-bind-context":83,"../internals/function-uncurry-this":90,"../internals/indexed-object":103,"../internals/length-of-array-like":124,"../internals/to-object":185}],36:[function(e,t,n){"use strict";var r=e("../internals/function-apply"),i=e("../internals/to-indexed-object"),o=e("../internals/to-integer-or-infinity"),s=e("../internals/length-of-array-like"),a=e("../internals/array-method-is-strict"),u=Math.min,l=[].lastIndexOf,c=!!l&&1/[1].lastIndexOf(1,-0)<0,f=a("lastIndexOf"),d=c||!f;t.exports=d?function(e){if(c)return r(l,this,arguments)||0;var t=i(this),n=s(t),a=n-1;for(arguments.length>1&&(a=u(a,o(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in t&&t[a]===e)return a||0;return-1}:l},{"../internals/array-method-is-strict":38,"../internals/function-apply":82,"../internals/length-of-array-like":124,"../internals/to-indexed-object":182,"../internals/to-integer-or-infinity":183}],37:[function(e,t,n){"use strict";var r=e("../internals/fails"),i=e("../internals/well-known-symbol"),o=e("../internals/engine-v8-version"),s=i("species");t.exports=function(e){return o>=51||!r((function(){var t=[];return(t.constructor={})[s]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},{"../internals/engine-v8-version":76,"../internals/fails":80,"../internals/well-known-symbol":205}],38:[function(e,t,n){"use strict";var r=e("../internals/fails");t.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},{"../internals/fails":80}],39:[function(e,t,n){"use strict";var r=e("../internals/a-callable"),i=e("../internals/to-object"),o=e("../internals/indexed-object"),s=e("../internals/length-of-array-like"),a=TypeError,u=function(e){return function(t,n,u,l){r(n);var c=i(t),f=o(c),d=s(c),p=e?d-1:0,h=e?-1:1;if(u<2)for(;;){if(p in f){l=f[p],p+=h;break}if(p+=h,e?p<0:d<=p)throw new a("Reduce of empty array with no initial value")}for(;e?p>=0:d>p;p+=h)p in f&&(l=n(l,f[p],p,c));return l}};t.exports={left:u(!1),right:u(!0)}},{"../internals/a-callable":19,"../internals/indexed-object":103,"../internals/length-of-array-like":124,"../internals/to-object":185}],40:[function(e,t,n){"use strict";var r=e("../internals/to-absolute-index"),i=e("../internals/length-of-array-like"),o=e("../internals/create-property"),s=Array,a=Math.max;t.exports=function(e,t,n){for(var u=i(e),l=r(t,u),c=r(void 0===n?u:n,u),f=s(a(c-l,0)),d=0;l<c;l++,d++)o(f,d,e[l]);return f.length=d,f}},{"../internals/create-property":54,"../internals/length-of-array-like":124,"../internals/to-absolute-index":179}],41:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this");t.exports=r([].slice)},{"../internals/function-uncurry-this":90}],42:[function(e,t,n){"use strict";var r=e("../internals/array-slice-simple"),i=Math.floor,o=function(e,t){var n=e.length,u=i(n/2);return n<8?s(e,t):a(e,o(r(e,0,u),t),o(r(e,u),t),t)},s=function(e,t){for(var n,r,i=e.length,o=1;o<i;){for(r=o,n=e[o];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==o++&&(e[r]=n)}return e},a=function(e,t,n,r){for(var i=t.length,o=n.length,s=0,a=0;s<i||a<o;)e[s+a]=s<i&&a<o?r(t[s],n[a])<=0?t[s++]:n[a++]:s<i?t[s++]:n[a++];return e};t.exports=o},{"../internals/array-slice-simple":40}],43:[function(e,t,n){"use strict";var r=e("../internals/is-array"),i=e("../internals/is-constructor"),o=e("../internals/is-object"),s=e("../internals/well-known-symbol")("species"),a=Array;t.exports=function(e){var t;return r(e)&&(t=e.constructor,(i(t)&&(t===a||r(t.prototype))||o(t)&&null===(t=t[s]))&&(t=void 0)),void 0===t?a:t}},{"../internals/is-array":108,"../internals/is-constructor":111,"../internals/is-object":115,"../internals/well-known-symbol":205}],44:[function(e,t,n){"use strict";var r=e("../internals/array-species-constructor");t.exports=function(e,t){return new(r(e))(0===t?0:t)}},{"../internals/array-species-constructor":43}],45:[function(e,t,n){"use strict";var r=e("../internals/an-object"),i=e("../internals/iterator-close");t.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){i(e,"throw",t)}}},{"../internals/an-object":25,"../internals/iterator-close":119}],46:[function(e,t,n){"use strict";var r=e("../internals/well-known-symbol")("iterator"),i=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){i=!0}};s[r]=function(){return this},Array.from(s,(function(){throw 2}))}catch(e){}t.exports=function(e,t){try{if(!t&&!i)return!1}catch(e){return!1}var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},{"../internals/well-known-symbol":205}],47:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=r({}.toString),o=r("".slice);t.exports=function(e){return o(i(e),8,-1)}},{"../internals/function-uncurry-this":90}],48:[function(e,t,n){"use strict";var r=e("../internals/to-string-tag-support"),i=e("../internals/is-callable"),o=e("../internals/classof-raw"),s=e("../internals/well-known-symbol")("toStringTag"),a=Object,u="Arguments"===o(function(){return arguments}());t.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=a(e),s))?n:u?o(t):"Object"===(r=o(t))&&i(t.callee)?"Arguments":r}},{"../internals/classof-raw":47,"../internals/is-callable":110,"../internals/to-string-tag-support":190,"../internals/well-known-symbol":205}],49:[function(e,t,n){"use strict";var r=e("../internals/has-own-property"),i=e("../internals/own-keys"),o=e("../internals/object-get-own-property-descriptor"),s=e("../internals/object-define-property");t.exports=function(e,t,n){for(var a=i(t),u=s.f,l=o.f,c=0;c<a.length;c++){var f=a[c];r(e,f)||n&&r(n,f)||u(e,f,l(t,f))}}},{"../internals/has-own-property":97,"../internals/object-define-property":137,"../internals/object-get-own-property-descriptor":138,"../internals/own-keys":150}],50:[function(e,t,n){"use strict";var r=e("../internals/fails");t.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},{"../internals/fails":80}],51:[function(e,t,n){"use strict";t.exports=function(e,t){return{value:e,done:t}}},{}],52:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/object-define-property"),o=e("../internals/create-property-descriptor");t.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},{"../internals/create-property-descriptor":53,"../internals/descriptors":60,"../internals/object-define-property":137}],53:[function(e,t,n){"use strict";t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],54:[function(e,t,n){"use strict";var r=e("../internals/to-property-key"),i=e("../internals/object-define-property"),o=e("../internals/create-property-descriptor");t.exports=function(e,t,n){var s=r(t);s in e?i.f(e,s,o(0,n)):e[s]=n}},{"../internals/create-property-descriptor":53,"../internals/object-define-property":137,"../internals/to-property-key":189}],55:[function(e,t,n){"use strict";var r=e("../internals/make-built-in"),i=e("../internals/object-define-property");t.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),i.f(e,t,n)}},{"../internals/make-built-in":125,"../internals/object-define-property":137}],56:[function(e,t,n){"use strict";var r=e("../internals/is-callable"),i=e("../internals/object-define-property"),o=e("../internals/make-built-in"),s=e("../internals/define-global-property");t.exports=function(e,t,n,a){a||(a={});var u=a.enumerable,l=void 0!==a.name?a.name:t;if(r(n)&&o(n,l,a),a.global)u?e[t]=n:s(t,n);else{try{a.unsafe?e[t]&&(u=!0):delete e[t]}catch(e){}u?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},{"../internals/define-global-property":58,"../internals/is-callable":110,"../internals/make-built-in":125,"../internals/object-define-property":137}],57:[function(e,t,n){"use strict";var r=e("../internals/define-built-in");t.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},{"../internals/define-built-in":56}],58:[function(e,t,n){"use strict";var r=e("../internals/global"),i=Object.defineProperty;t.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},{"../internals/global":96}],59:[function(e,t,n){"use strict";var r=e("../internals/try-to-string"),i=TypeError;t.exports=function(e,t){if(!delete e[t])throw new i("Cannot delete property "+r(t)+" of "+r(e))}},{"../internals/try-to-string":193}],60:[function(e,t,n){"use strict";var r=e("../internals/fails");t.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},{"../internals/fails":80}],61:[function(e,t,n){"use strict";var r="object"==typeof document&&document.all,i=void 0===r&&void 0!==r;t.exports={all:r,IS_HTMLDDA:i}},{}],62:[function(e,t,n){"use strict";var r=e("../internals/global"),i=e("../internals/is-object"),o=r.document,s=i(o)&&i(o.createElement);t.exports=function(e){return s?o.createElement(e):{}}},{"../internals/global":96,"../internals/is-object":115}],63:[function(e,t,n){"use strict";var r=TypeError;t.exports=function(e){if(e>9007199254740991)throw r("Maximum allowed index exceeded");return e}},{}],64:[function(e,t,n){"use strict";t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},{}],65:[function(e,t,n){"use strict";var r=e("../internals/document-create-element")("span").classList,i=r&&r.constructor&&r.constructor.prototype;t.exports=i===Object.prototype?void 0:i},{"../internals/document-create-element":62}],66:[function(e,t,n){"use strict";var r=e("../internals/engine-user-agent").match(/firefox\/(\d+)/i);t.exports=!!r&&+r[1]},{"../internals/engine-user-agent":75}],67:[function(e,t,n){"use strict";var r=e("../internals/engine-is-deno"),i=e("../internals/engine-is-node");t.exports=!r&&!i&&"object"==typeof window&&"object"==typeof document},{"../internals/engine-is-deno":69,"../internals/engine-is-node":73}],68:[function(e,t,n){"use strict";t.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},{}],69:[function(e,t,n){"use strict";t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},{}],70:[function(e,t,n){"use strict";var r=e("../internals/engine-user-agent");t.exports=/MSIE|Trident/.test(r)},{"../internals/engine-user-agent":75}],71:[function(e,t,n){"use strict";var r=e("../internals/engine-user-agent");t.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},{"../internals/engine-user-agent":75}],72:[function(e,t,n){"use strict";var r=e("../internals/engine-user-agent");t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},{"../internals/engine-user-agent":75}],73:[function(e,t,n){"use strict";var r=e("../internals/global"),i=e("../internals/classof-raw");t.exports="process"===i(r.process)},{"../internals/classof-raw":47,"../internals/global":96}],74:[function(e,t,n){"use strict";var r=e("../internals/engine-user-agent");t.exports=/web0s(?!.*chrome)/i.test(r)},{"../internals/engine-user-agent":75}],75:[function(e,t,n){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},{}],76:[function(e,t,n){"use strict";var r,i,o=e("../internals/global"),s=e("../internals/engine-user-agent"),a=o.process,u=o.Deno,l=a&&a.versions||u&&u.version,c=l&&l.v8;c&&(i=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&s&&(!(r=s.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},{"../internals/engine-user-agent":75,"../internals/global":96}],77:[function(e,t,n){"use strict";var r=e("../internals/engine-user-agent").match(/AppleWebKit\/(\d+)\./);t.exports=!!r&&+r[1]},{"../internals/engine-user-agent":75}],78:[function(e,t,n){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],79:[function(e,t,n){"use strict";var r=e("../internals/global"),i=e("../internals/object-get-own-property-descriptor").f,o=e("../internals/create-non-enumerable-property"),s=e("../internals/define-built-in"),a=e("../internals/define-global-property"),u=e("../internals/copy-constructor-properties"),l=e("../internals/is-forced");t.exports=function(e,t){var n,c,f,d,p,h=e.target,y=e.global,m=e.stat;if(n=y?r:m?r[h]||a(h,{}):(r[h]||{}).prototype)for(c in t){if(d=t[c],f=e.dontCallGetSet?(p=i(n,c))&&p.value:n[c],!l(y?c:h+(m?".":"#")+c,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;u(d,f)}(e.sham||f&&f.sham)&&o(d,"sham",!0),s(n,c,d,e)}}},{"../internals/copy-constructor-properties":49,"../internals/create-non-enumerable-property":52,"../internals/define-built-in":56,"../internals/define-global-property":58,"../internals/global":96,"../internals/is-forced":112,"../internals/object-get-own-property-descriptor":138}],80:[function(e,t,n){"use strict";t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],81:[function(e,t,n){"use strict";e("../modules/es.regexp.exec");var r=e("../internals/function-uncurry-this-clause"),i=e("../internals/define-built-in"),o=e("../internals/regexp-exec"),s=e("../internals/fails"),a=e("../internals/well-known-symbol"),u=e("../internals/create-non-enumerable-property"),l=a("species"),c=RegExp.prototype;t.exports=function(e,t,n,f){var d=a(e),p=!s((function(){var t={};return t[d]=function(){return 7},7!==""[e](t)})),h=p&&!s((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[l]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return t=!0,null},n[d](""),!t}));if(!p||!h||n){var y=r(/./[d]),m=t(d,""[e],(function(e,t,n,i,s){var a=r(e),u=t.exec;return u===o||u===c.exec?p&&!s?{done:!0,value:y(t,n,i)}:{done:!0,value:a(n,t,i)}:{done:!1}}));i(String.prototype,e,m[0]),i(c,d,m[1])}f&&u(c[d],"sham",!0)}},{"../internals/create-non-enumerable-property":52,"../internals/define-built-in":56,"../internals/fails":80,"../internals/function-uncurry-this-clause":89,"../internals/regexp-exec":158,"../internals/well-known-symbol":205,"../modules/es.regexp.exec":234}],82:[function(e,t,n){"use strict";var r=e("../internals/function-bind-native"),i=Function.prototype,o=i.apply,s=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?s.bind(o):function(){return s.apply(o,arguments)})},{"../internals/function-bind-native":84}],83:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this-clause"),i=e("../internals/a-callable"),o=e("../internals/function-bind-native"),s=r(r.bind);t.exports=function(e,t){return i(e),void 0===t?e:o?s(e,t):function(){return e.apply(t,arguments)}}},{"../internals/a-callable":19,"../internals/function-bind-native":84,"../internals/function-uncurry-this-clause":89}],84:[function(e,t,n){"use strict";var r=e("../internals/fails");t.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},{"../internals/fails":80}],85:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/a-callable"),o=e("../internals/is-object"),s=e("../internals/has-own-property"),a=e("../internals/array-slice"),u=e("../internals/function-bind-native"),l=Function,c=r([].concat),f=r([].join),d={};t.exports=u?l.bind:function(e){var t=i(this),n=t.prototype,r=a(arguments,1),u=function(){var n=c(r,a(arguments));return this instanceof u?function(e,t,n){if(!s(d,t)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";d[t]=l("C,a","return new C("+f(r,",")+")")}return d[t](e,n)}(t,n.length,n):t.apply(e,n)};return o(n)&&(u.prototype=n),u}},{"../internals/a-callable":19,"../internals/array-slice":41,"../internals/function-bind-native":84,"../internals/function-uncurry-this":90,"../internals/has-own-property":97,"../internals/is-object":115}],86:[function(e,t,n){"use strict";var r=e("../internals/function-bind-native"),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},{"../internals/function-bind-native":84}],87:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/has-own-property"),o=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,a=i(o,"name"),u=a&&"something"===function(){}.name,l=a&&(!r||r&&s(o,"name").configurable);t.exports={EXISTS:a,PROPER:u,CONFIGURABLE:l}},{"../internals/descriptors":60,"../internals/has-own-property":97}],88:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/a-callable");t.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},{"../internals/a-callable":19,"../internals/function-uncurry-this":90}],89:[function(e,t,n){"use strict";var r=e("../internals/classof-raw"),i=e("../internals/function-uncurry-this");t.exports=function(e){if("Function"===r(e))return i(e)}},{"../internals/classof-raw":47,"../internals/function-uncurry-this":90}],90:[function(e,t,n){"use strict";var r=e("../internals/function-bind-native"),i=Function.prototype,o=i.call,s=r&&i.bind.bind(o,o);t.exports=r?s:function(e){return function(){return o.apply(e,arguments)}}},{"../internals/function-bind-native":84}],91:[function(e,t,n){"use strict";var r=e("../internals/global"),i=e("../internals/is-callable");t.exports=function(e,t){return arguments.length<2?(n=r[e],i(n)?n:void 0):r[e]&&r[e][t];var n}},{"../internals/global":96,"../internals/is-callable":110}],92:[function(e,t,n){"use strict";var r=e("../internals/classof"),i=e("../internals/get-method"),o=e("../internals/is-null-or-undefined"),s=e("../internals/iterators"),a=e("../internals/well-known-symbol")("iterator");t.exports=function(e){if(!o(e))return i(e,a)||i(e,"@@iterator")||s[r(e)]}},{"../internals/classof":48,"../internals/get-method":94,"../internals/is-null-or-undefined":114,"../internals/iterators":123,"../internals/well-known-symbol":205}],93:[function(e,t,n){"use strict";var r=e("../internals/function-call"),i=e("../internals/a-callable"),o=e("../internals/an-object"),s=e("../internals/try-to-string"),a=e("../internals/get-iterator-method"),u=TypeError;t.exports=function(e,t){var n=arguments.length<2?a(e):t;if(i(n))return o(r(n,e));throw new u(s(e)+" is not iterable")}},{"../internals/a-callable":19,"../internals/an-object":25,"../internals/function-call":86,"../internals/get-iterator-method":92,"../internals/try-to-string":193}],94:[function(e,t,n){"use strict";var r=e("../internals/a-callable"),i=e("../internals/is-null-or-undefined");t.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},{"../internals/a-callable":19,"../internals/is-null-or-undefined":114}],95:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/to-object"),o=Math.floor,s=r("".charAt),a=r("".replace),u=r("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;t.exports=function(e,t,n,r,f,d){var p=n+e.length,h=r.length,y=c;return void 0!==f&&(f=i(f),y=l),a(d,y,(function(i,a){var l;switch(s(a,0)){case"$":return"$";case"&":return e;case"`":return u(t,0,n);case"'":return u(t,p);case"<":l=f[u(a,1,-1)];break;default:var c=+a;if(0===c)return i;if(c>h){var d=o(c/10);return 0===d?i:d<=h?void 0===r[d-1]?s(a,1):r[d-1]+s(a,1):i}l=r[c-1]}return void 0===l?"":l}))}},{"../internals/function-uncurry-this":90,"../internals/to-object":185}],96:[function(e,t,n){(function(e){(function(){"use strict";var n=function(e){return e&&e.Math===Math&&e};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||this||Function("return this")()}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],97:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/to-object"),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},{"../internals/function-uncurry-this":90,"../internals/to-object":185}],98:[function(e,t,n){"use strict";t.exports={}},{}],99:[function(e,t,n){"use strict";t.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}},{}],100:[function(e,t,n){"use strict";var r=e("../internals/get-built-in");t.exports=r("document","documentElement")},{"../internals/get-built-in":91}],101:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/fails"),o=e("../internals/document-create-element");t.exports=!r&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},{"../internals/descriptors":60,"../internals/document-create-element":62,"../internals/fails":80}],102:[function(e,t,n){"use strict";var r=Array,i=Math.abs,o=Math.pow,s=Math.floor,a=Math.log,u=Math.LN2;t.exports={pack:function(e,t,n){var l,c,f,d=r(n),p=8*n-t-1,h=(1<<p)-1,y=h>>1,m=23===t?o(2,-24)-o(2,-77):0,b=e<0||0===e&&1/e<0?1:0,g=0;for((e=i(e))!=e||e===1/0?(c=e!=e?1:0,l=h):(l=s(a(e)/u),e*(f=o(2,-l))<1&&(l--,f*=2),(e+=l+y>=1?m/f:m*o(2,1-y))*f>=2&&(l++,f/=2),l+y>=h?(c=0,l=h):l+y>=1?(c=(e*f-1)*o(2,t),l+=y):(c=e*o(2,y-1)*o(2,t),l=0));t>=8;)d[g++]=255&c,c/=256,t-=8;for(l=l<<t|c,p+=t;p>0;)d[g++]=255&l,l/=256,p-=8;return d[--g]|=128*b,d},unpack:function(e,t){var n,r=e.length,i=8*r-t-1,s=(1<<i)-1,a=s>>1,u=i-7,l=r-1,c=e[l--],f=127&c;for(c>>=7;u>0;)f=256*f+e[l--],u-=8;for(n=f&(1<<-u)-1,f>>=-u,u+=t;u>0;)n=256*n+e[l--],u-=8;if(0===f)f=1-a;else{if(f===s)return n?NaN:c?-1/0:1/0;n+=o(2,t),f-=a}return(c?-1:1)*n*o(2,f-t)}}},{}],103:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/fails"),o=e("../internals/classof-raw"),s=Object,a=r("".split);t.exports=i((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"===o(e)?a(e,""):s(e)}:s},{"../internals/classof-raw":47,"../internals/fails":80,"../internals/function-uncurry-this":90}],104:[function(e,t,n){"use strict";var r=e("../internals/is-callable"),i=e("../internals/is-object"),o=e("../internals/object-set-prototype-of");t.exports=function(e,t,n){var s,a;return o&&r(s=t.constructor)&&s!==n&&i(a=s.prototype)&&a!==n.prototype&&o(e,a),e}},{"../internals/is-callable":110,"../internals/is-object":115,"../internals/object-set-prototype-of":147}],105:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/is-callable"),o=e("../internals/shared-store"),s=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return s(e)}),t.exports=o.inspectSource},{"../internals/function-uncurry-this":90,"../internals/is-callable":110,"../internals/shared-store":169}],106:[function(e,t,n){"use strict";var r,i,o,s=e("../internals/weak-map-basic-detection"),a=e("../internals/global"),u=e("../internals/is-object"),l=e("../internals/create-non-enumerable-property"),c=e("../internals/has-own-property"),f=e("../internals/shared-store"),d=e("../internals/shared-key"),p=e("../internals/hidden-keys"),h="Object already initialized",y=a.TypeError,m=a.WeakMap;if(s||f.state){var b=f.state||(f.state=new m);b.get=b.get,b.has=b.has,b.set=b.set,r=function(e,t){if(b.has(e))throw new y(h);return t.facade=e,b.set(e,t),t},i=function(e){return b.get(e)||{}},o=function(e){return b.has(e)}}else{var g=d("state");p[g]=!0,r=function(e,t){if(c(e,g))throw new y(h);return t.facade=e,l(e,g,t),t},i=function(e){return c(e,g)?e[g]:{}},o=function(e){return c(e,g)}}t.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=i(t)).type!==e)throw new y("Incompatible receiver, "+e+" required");return n}}}},{"../internals/create-non-enumerable-property":52,"../internals/global":96,"../internals/has-own-property":97,"../internals/hidden-keys":98,"../internals/is-object":115,"../internals/shared-key":168,"../internals/shared-store":169,"../internals/weak-map-basic-detection":204}],107:[function(e,t,n){"use strict";var r=e("../internals/well-known-symbol"),i=e("../internals/iterators"),o=r("iterator"),s=Array.prototype;t.exports=function(e){return void 0!==e&&(i.Array===e||s[o]===e)}},{"../internals/iterators":123,"../internals/well-known-symbol":205}],108:[function(e,t,n){"use strict";var r=e("../internals/classof-raw");t.exports=Array.isArray||function(e){return"Array"===r(e)}},{"../internals/classof-raw":47}],109:[function(e,t,n){"use strict";var r=e("../internals/classof");t.exports=function(e){var t=r(e);return"BigInt64Array"===t||"BigUint64Array"===t}},{"../internals/classof":48}],110:[function(e,t,n){"use strict";var r=e("../internals/document-all"),i=r.all;t.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===i}:function(e){return"function"==typeof e}},{"../internals/document-all":61}],111:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/fails"),o=e("../internals/is-callable"),s=e("../internals/classof"),a=e("../internals/get-built-in"),u=e("../internals/inspect-source"),l=function(){},c=[],f=a("Reflect","construct"),d=/^\s*(?:class|function)\b/,p=r(d.exec),h=!d.test(l),y=function(e){if(!o(e))return!1;try{return f(l,c,e),!0}catch(e){return!1}},m=function(e){if(!o(e))return!1;switch(s(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!p(d,u(e))}catch(e){return!0}};m.sham=!0,t.exports=!f||i((function(){var e;return y(y.call)||!y(Object)||!y((function(){e=!0}))||e}))?m:y},{"../internals/classof":48,"../internals/fails":80,"../internals/function-uncurry-this":90,"../internals/get-built-in":91,"../internals/inspect-source":105,"../internals/is-callable":110}],112:[function(e,t,n){"use strict";var r=e("../internals/fails"),i=e("../internals/is-callable"),o=/#|\.prototype\./,s=function(e,t){var n=u[a(e)];return n===c||n!==l&&(i(t)?r(t):!!t)},a=s.normalize=function(e){return String(e).replace(o,".").toLowerCase()},u=s.data={},l=s.NATIVE="N",c=s.POLYFILL="P";t.exports=s},{"../internals/fails":80,"../internals/is-callable":110}],113:[function(e,t,n){"use strict";var r=e("../internals/is-object"),i=Math.floor;t.exports=Number.isInteger||function(e){return!r(e)&&isFinite(e)&&i(e)===e}},{"../internals/is-object":115}],114:[function(e,t,n){"use strict";t.exports=function(e){return null==e}},{}],115:[function(e,t,n){"use strict";var r=e("../internals/is-callable"),i=e("../internals/document-all"),o=i.all;t.exports=i.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===o}:function(e){return"object"==typeof e?null!==e:r(e)}},{"../internals/document-all":61,"../internals/is-callable":110}],116:[function(e,t,n){"use strict";t.exports=!1},{}],117:[function(e,t,n){"use strict";var r=e("../internals/get-built-in"),i=e("../internals/is-callable"),o=e("../internals/object-is-prototype-of"),s=e("../internals/use-symbol-as-uid"),a=Object;t.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&o(t.prototype,a(e))}},{"../internals/get-built-in":91,"../internals/is-callable":110,"../internals/object-is-prototype-of":143,"../internals/use-symbol-as-uid":201}],118:[function(e,t,n){"use strict";var r=e("../internals/function-bind-context"),i=e("../internals/function-call"),o=e("../internals/an-object"),s=e("../internals/try-to-string"),a=e("../internals/is-array-iterator-method"),u=e("../internals/length-of-array-like"),l=e("../internals/object-is-prototype-of"),c=e("../internals/get-iterator"),f=e("../internals/get-iterator-method"),d=e("../internals/iterator-close"),p=TypeError,h=function(e,t){this.stopped=e,this.result=t},y=h.prototype;t.exports=function(e,t,n){var m,b,g,v,w,j,E,x=n&&n.that,_=!(!n||!n.AS_ENTRIES),S=!(!n||!n.IS_RECORD),A=!(!n||!n.IS_ITERATOR),R=!(!n||!n.INTERRUPTED),k=r(t,x),O=function(e){return m&&d(m,"normal",e),new h(!0,e)},T=function(e){return _?(o(e),R?k(e[0],e[1],O):k(e[0],e[1])):R?k(e,O):k(e)};if(S)m=e.iterator;else if(A)m=e;else{if(!(b=f(e)))throw new p(s(e)+" is not iterable");if(a(b)){for(g=0,v=u(e);v>g;g++)if((w=T(e[g]))&&l(y,w))return w;return new h(!1)}m=c(e,b)}for(j=S?e.next:m.next;!(E=i(j,m)).done;){try{w=T(E.value)}catch(e){d(m,"throw",e)}if("object"==typeof w&&w&&l(y,w))return w}return new h(!1)}},{"../internals/an-object":25,"../internals/function-bind-context":83,"../internals/function-call":86,"../internals/get-iterator":93,"../internals/get-iterator-method":92,"../internals/is-array-iterator-method":107,"../internals/iterator-close":119,"../internals/length-of-array-like":124,"../internals/object-is-prototype-of":143,"../internals/try-to-string":193}],119:[function(e,t,n){"use strict";var r=e("../internals/function-call"),i=e("../internals/an-object"),o=e("../internals/get-method");t.exports=function(e,t,n){var s,a;i(e);try{if(!(s=o(e,"return"))){if("throw"===t)throw n;return n}s=r(s,e)}catch(e){a=!0,s=e}if("throw"===t)throw n;if(a)throw s;return i(s),n}},{"../internals/an-object":25,"../internals/function-call":86,"../internals/get-method":94}],120:[function(e,t,n){"use strict";var r=e("../internals/iterators-core").IteratorPrototype,i=e("../internals/object-create"),o=e("../internals/create-property-descriptor"),s=e("../internals/set-to-string-tag"),a=e("../internals/iterators"),u=function(){return this};t.exports=function(e,t,n,l){var c=t+" Iterator";return e.prototype=i(r,{next:o(+!l,n)}),s(e,c,!1,!0),a[c]=u,e}},{"../internals/create-property-descriptor":53,"../internals/iterators":123,"../internals/iterators-core":122,"../internals/object-create":135,"../internals/set-to-string-tag":167}],121:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/function-call"),o=e("../internals/is-pure"),s=e("../internals/function-name"),a=e("../internals/is-callable"),u=e("../internals/iterator-create-constructor"),l=e("../internals/object-get-prototype-of"),c=e("../internals/object-set-prototype-of"),f=e("../internals/set-to-string-tag"),d=e("../internals/create-non-enumerable-property"),p=e("../internals/define-built-in"),h=e("../internals/well-known-symbol"),y=e("../internals/iterators"),m=e("../internals/iterators-core"),b=s.PROPER,g=s.CONFIGURABLE,v=m.IteratorPrototype,w=m.BUGGY_SAFARI_ITERATORS,j=h("iterator"),E="keys",x="values",_="entries",S=function(){return this};t.exports=function(e,t,n,s,h,m,A){u(n,t,s);var R,k,O,T=function(e){if(e===h&&N)return N;if(!w&&e&&e in P)return P[e];switch(e){case E:case x:case _:return function(){return new n(this,e)}}return function(){return new n(this)}},I=t+" Iterator",M=!1,P=e.prototype,C=P[j]||P["@@iterator"]||h&&P[h],N=!w&&C||T(h),L="Array"===t&&P.entries||C;if(L&&(R=l(L.call(new e)))!==Object.prototype&&R.next&&(o||l(R)===v||(c?c(R,v):a(R[j])||p(R,j,S)),f(R,I,!0,!0),o&&(y[I]=S)),b&&h===x&&C&&C.name!==x&&(!o&&g?d(P,"name",x):(M=!0,N=function(){return i(C,this)})),h)if(k={values:T(x),keys:m?N:T(E),entries:T(_)},A)for(O in k)(w||M||!(O in P))&&p(P,O,k[O]);else r({target:t,proto:!0,forced:w||M},k);return o&&!A||P[j]===N||p(P,j,N,{name:h}),y[t]=N,k}},{"../internals/create-non-enumerable-property":52,"../internals/define-built-in":56,"../internals/export":79,"../internals/function-call":86,"../internals/function-name":87,"../internals/is-callable":110,"../internals/is-pure":116,"../internals/iterator-create-constructor":120,"../internals/iterators":123,"../internals/iterators-core":122,"../internals/object-get-prototype-of":142,"../internals/object-set-prototype-of":147,"../internals/set-to-string-tag":167,"../internals/well-known-symbol":205}],122:[function(e,t,n){"use strict";var r,i,o,s=e("../internals/fails"),a=e("../internals/is-callable"),u=e("../internals/is-object"),l=e("../internals/object-create"),c=e("../internals/object-get-prototype-of"),f=e("../internals/define-built-in"),d=e("../internals/well-known-symbol"),p=e("../internals/is-pure"),h=d("iterator"),y=!1;[].keys&&("next"in(o=[].keys())?(i=c(c(o)))!==Object.prototype&&(r=i):y=!0),!u(r)||s((function(){var e={};return r[h].call(e)!==e}))?r={}:p&&(r=l(r)),a(r[h])||f(r,h,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:y}},{"../internals/define-built-in":56,"../internals/fails":80,"../internals/is-callable":110,"../internals/is-object":115,"../internals/is-pure":116,"../internals/object-create":135,"../internals/object-get-prototype-of":142,"../internals/well-known-symbol":205}],123:[function(e,t,n){arguments[4][98][0].apply(n,arguments)},{dup:98}],124:[function(e,t,n){"use strict";var r=e("../internals/to-length");t.exports=function(e){return r(e.length)}},{"../internals/to-length":184}],125:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/fails"),o=e("../internals/is-callable"),s=e("../internals/has-own-property"),a=e("../internals/descriptors"),u=e("../internals/function-name").CONFIGURABLE,l=e("../internals/inspect-source"),c=e("../internals/internal-state"),f=c.enforce,d=c.get,p=String,h=Object.defineProperty,y=r("".slice),m=r("".replace),b=r([].join),g=a&&!i((function(){return 8!==h((function(){}),"length",{value:8}).length})),v=String(String).split("String"),w=t.exports=function(e,t,n){"Symbol("===y(p(t),0,7)&&(t="["+m(p(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!s(e,"name")||u&&e.name!==t)&&(a?h(e,"name",{value:t,configurable:!0}):e.name=t),g&&n&&s(n,"arity")&&e.length!==n.arity&&h(e,"length",{value:n.arity});try{n&&s(n,"constructor")&&n.constructor?a&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=f(e);return s(r,"source")||(r.source=b(v,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return o(this)&&d(this).source||l(this)}),"toString")},{"../internals/descriptors":60,"../internals/fails":80,"../internals/function-name":87,"../internals/function-uncurry-this":90,"../internals/has-own-property":97,"../internals/inspect-source":105,"../internals/internal-state":106,"../internals/is-callable":110}],126:[function(e,t,n){"use strict";var r=e("../internals/math-sign"),i=Math.abs,o=2220446049250313e-31,s=1/o;t.exports=function(e,t,n,a){var u=+e,l=i(u),c=r(u);if(l<a)return c*function(e){return e+s-s}(l/a/t)*a*t;var f=(1+t/o)*l,d=f-(f-l);return d>n||d!=d?c*(1/0):c*d}},{"../internals/math-sign":128}],127:[function(e,t,n){"use strict";var r=e("../internals/math-float-round");t.exports=Math.fround||function(e){return r(e,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}},{"../internals/math-float-round":126}],128:[function(e,t,n){"use strict";t.exports=Math.sign||function(e){var t=+e;return 0===t||t!=t?t:t<0?-1:1}},{}],129:[function(e,t,n){"use strict";var r=Math.ceil,i=Math.floor;t.exports=Math.trunc||function(e){var t=+e;return(t>0?i:r)(t)}},{}],130:[function(e,t,n){"use strict";var r,i,o,s,a,u=e("../internals/global"),l=e("../internals/function-bind-context"),c=e("../internals/object-get-own-property-descriptor").f,f=e("../internals/task").set,d=e("../internals/queue"),p=e("../internals/engine-is-ios"),h=e("../internals/engine-is-ios-pebble"),y=e("../internals/engine-is-webos-webkit"),m=e("../internals/engine-is-node"),b=u.MutationObserver||u.WebKitMutationObserver,g=u.document,v=u.process,w=u.Promise,j=c(u,"queueMicrotask"),E=j&&j.value;if(!E){var x=new d,_=function(){var e,t;for(m&&(e=v.domain)&&e.exit();t=x.get();)try{t()}catch(e){throw x.head&&r(),e}e&&e.enter()};p||m||y||!b||!g?!h&&w&&w.resolve?((s=w.resolve(void 0)).constructor=w,a=l(s.then,s),r=function(){a(_)}):m?r=function(){v.nextTick(_)}:(f=l(f,u),r=function(){f(_)}):(i=!0,o=g.createTextNode(""),new b(_).observe(o,{characterData:!0}),r=function(){o.data=i=!i}),E=function(e){x.head||r(),x.add(e)}}t.exports=E},{"../internals/engine-is-ios":72,"../internals/engine-is-ios-pebble":71,"../internals/engine-is-node":73,"../internals/engine-is-webos-webkit":74,"../internals/function-bind-context":83,"../internals/global":96,"../internals/object-get-own-property-descriptor":138,"../internals/queue":156,"../internals/task":177}],131:[function(e,t,n){"use strict";var r=e("../internals/a-callable"),i=TypeError,o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw new i("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};t.exports.f=function(e){return new o(e)}},{"../internals/a-callable":19}],132:[function(e,t,n){"use strict";var r=e("../internals/global"),i=e("../internals/fails"),o=e("../internals/function-uncurry-this"),s=e("../internals/to-string"),a=e("../internals/string-trim").trim,u=e("../internals/whitespaces"),l=o("".charAt),c=r.parseFloat,f=r.Symbol,d=f&&f.iterator,p=1/c(u+"-0")!=-1/0||d&&!i((function(){c(Object(d))}));t.exports=p?function(e){var t=a(s(e)),n=c(t);return 0===n&&"-"===l(t,0)?-0:n}:c},{"../internals/fails":80,"../internals/function-uncurry-this":90,"../internals/global":96,"../internals/string-trim":175,"../internals/to-string":191,"../internals/whitespaces":206}],133:[function(e,t,n){"use strict";var r=e("../internals/global"),i=e("../internals/fails"),o=e("../internals/function-uncurry-this"),s=e("../internals/to-string"),a=e("../internals/string-trim").trim,u=e("../internals/whitespaces"),l=r.parseInt,c=r.Symbol,f=c&&c.iterator,d=/^[+-]?0x/i,p=o(d.exec),h=8!==l(u+"08")||22!==l(u+"0x16")||f&&!i((function(){l(Object(f))}));t.exports=h?function(e,t){var n=a(s(e));return l(n,t>>>0||(p(d,n)?16:10))}:l},{"../internals/fails":80,"../internals/function-uncurry-this":90,"../internals/global":96,"../internals/string-trim":175,"../internals/to-string":191,"../internals/whitespaces":206}],134:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/function-uncurry-this"),o=e("../internals/function-call"),s=e("../internals/fails"),a=e("../internals/object-keys"),u=e("../internals/object-get-own-property-symbols"),l=e("../internals/object-property-is-enumerable"),c=e("../internals/to-object"),f=e("../internals/indexed-object"),d=Object.assign,p=Object.defineProperty,h=i([].concat);t.exports=!d||s((function(){if(r&&1!==d({b:1},d(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!==d({},e)[n]||a(d({},t)).join("")!==i}))?function(e,t){for(var n=c(e),i=arguments.length,s=1,d=u.f,p=l.f;i>s;)for(var y,m=f(arguments[s++]),b=d?h(a(m),d(m)):a(m),g=b.length,v=0;g>v;)y=b[v++],r&&!o(p,m,y)||(n[y]=m[y]);return n}:d},{"../internals/descriptors":60,"../internals/fails":80,"../internals/function-call":86,"../internals/function-uncurry-this":90,"../internals/indexed-object":103,"../internals/object-get-own-property-symbols":141,"../internals/object-keys":145,"../internals/object-property-is-enumerable":146,"../internals/to-object":185}],135:[function(e,t,n){"use strict";var r,i=e("../internals/an-object"),o=e("../internals/object-define-properties"),s=e("../internals/enum-bug-keys"),a=e("../internals/hidden-keys"),u=e("../internals/html"),l=e("../internals/document-create-element"),c=e("../internals/shared-key"),f="prototype",d="script",p=c("IE_PROTO"),h=function(){},y=function(e){return"<"+d+">"+e+"</"+d+">"},m=function(e){e.write(y("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;b="undefined"!=typeof document?document.domain&&r?m(r):(t=l("iframe"),n="java"+d+":",t.style.display="none",u.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(y("document.F=Object")),e.close(),e.F):m(r);for(var i=s.length;i--;)delete b[f][s[i]];return b()};a[p]=!0,t.exports=Object.create||function(e,t){var n;return null!==e?(h[f]=i(e),n=new h,h[f]=null,n[p]=e):n=b(),void 0===t?n:o.f(n,t)}},{"../internals/an-object":25,"../internals/document-create-element":62,"../internals/enum-bug-keys":78,"../internals/hidden-keys":98,"../internals/html":100,"../internals/object-define-properties":136,"../internals/shared-key":168}],136:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/v8-prototype-define-bug"),o=e("../internals/object-define-property"),s=e("../internals/an-object"),a=e("../internals/to-indexed-object"),u=e("../internals/object-keys");n.f=r&&!i?Object.defineProperties:function(e,t){s(e);for(var n,r=a(t),i=u(t),l=i.length,c=0;l>c;)o.f(e,n=i[c++],r[n]);return e}},{"../internals/an-object":25,"../internals/descriptors":60,"../internals/object-define-property":137,"../internals/object-keys":145,"../internals/to-indexed-object":182,"../internals/v8-prototype-define-bug":202}],137:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/ie8-dom-define"),o=e("../internals/v8-prototype-define-bug"),s=e("../internals/an-object"),a=e("../internals/to-property-key"),u=TypeError,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",p="writable";n.f=r?o?function(e,t,n){if(s(e),t=a(t),s(n),"function"==typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var r=c(e,t);r&&r[p]&&(e[t]=n.value,n={configurable:d in n?n[d]:r[d],enumerable:f in n?n[f]:r[f],writable:!1})}return l(e,t,n)}:l:function(e,t,n){if(s(e),t=a(t),s(n),i)try{return l(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new u("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},{"../internals/an-object":25,"../internals/descriptors":60,"../internals/ie8-dom-define":101,"../internals/to-property-key":189,"../internals/v8-prototype-define-bug":202}],138:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/function-call"),o=e("../internals/object-property-is-enumerable"),s=e("../internals/create-property-descriptor"),a=e("../internals/to-indexed-object"),u=e("../internals/to-property-key"),l=e("../internals/has-own-property"),c=e("../internals/ie8-dom-define"),f=Object.getOwnPropertyDescriptor;n.f=r?f:function(e,t){if(e=a(e),t=u(t),c)try{return f(e,t)}catch(e){}if(l(e,t))return s(!i(o.f,e,t),e[t])}},{"../internals/create-property-descriptor":53,"../internals/descriptors":60,"../internals/function-call":86,"../internals/has-own-property":97,"../internals/ie8-dom-define":101,"../internals/object-property-is-enumerable":146,"../internals/to-indexed-object":182,"../internals/to-property-key":189}],139:[function(e,t,n){"use strict";var r=e("../internals/classof-raw"),i=e("../internals/to-indexed-object"),o=e("../internals/object-get-own-property-names").f,s=e("../internals/array-slice-simple"),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(e){return a&&"Window"===r(e)?function(e){try{return o(e)}catch(e){return s(a)}}(e):o(i(e))}},{"../internals/array-slice-simple":40,"../internals/classof-raw":47,"../internals/object-get-own-property-names":140,"../internals/to-indexed-object":182}],140:[function(e,t,n){"use strict";var r=e("../internals/object-keys-internal"),i=e("../internals/enum-bug-keys").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},{"../internals/enum-bug-keys":78,"../internals/object-keys-internal":144}],141:[function(e,t,n){"use strict";n.f=Object.getOwnPropertySymbols},{}],142:[function(e,t,n){"use strict";var r=e("../internals/has-own-property"),i=e("../internals/is-callable"),o=e("../internals/to-object"),s=e("../internals/shared-key"),a=e("../internals/correct-prototype-getter"),u=s("IE_PROTO"),l=Object,c=l.prototype;t.exports=a?l.getPrototypeOf:function(e){var t=o(e);if(r(t,u))return t[u];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof l?c:null}},{"../internals/correct-prototype-getter":50,"../internals/has-own-property":97,"../internals/is-callable":110,"../internals/shared-key":168,"../internals/to-object":185}],143:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this");t.exports=r({}.isPrototypeOf)},{"../internals/function-uncurry-this":90}],144:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/has-own-property"),o=e("../internals/to-indexed-object"),s=e("../internals/array-includes").indexOf,a=e("../internals/hidden-keys"),u=r([].push);t.exports=function(e,t){var n,r=o(e),l=0,c=[];for(n in r)!i(a,n)&&i(r,n)&&u(c,n);for(;t.length>l;)i(r,n=t[l++])&&(~s(c,n)||u(c,n));return c}},{"../internals/array-includes":34,"../internals/function-uncurry-this":90,"../internals/has-own-property":97,"../internals/hidden-keys":98,"../internals/to-indexed-object":182}],145:[function(e,t,n){"use strict";var r=e("../internals/object-keys-internal"),i=e("../internals/enum-bug-keys");t.exports=Object.keys||function(e){return r(e,i)}},{"../internals/enum-bug-keys":78,"../internals/object-keys-internal":144}],146:[function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);n.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},{}],147:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this-accessor"),i=e("../internals/an-object"),o=e("../internals/a-possible-prototype");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return i(n),o(r),t?e(n,r):n.__proto__=r,n}}():void 0)},{"../internals/a-possible-prototype":21,"../internals/an-object":25,"../internals/function-uncurry-this-accessor":88}],148:[function(e,t,n){"use strict";var r=e("../internals/to-string-tag-support"),i=e("../internals/classof");t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},{"../internals/classof":48,"../internals/to-string-tag-support":190}],149:[function(e,t,n){"use strict";var r=e("../internals/function-call"),i=e("../internals/is-callable"),o=e("../internals/is-object"),s=TypeError;t.exports=function(e,t){var n,a;if("string"===t&&i(n=e.toString)&&!o(a=r(n,e)))return a;if(i(n=e.valueOf)&&!o(a=r(n,e)))return a;if("string"!==t&&i(n=e.toString)&&!o(a=r(n,e)))return a;throw new s("Can't convert object to primitive value")}},{"../internals/function-call":86,"../internals/is-callable":110,"../internals/is-object":115}],150:[function(e,t,n){"use strict";var r=e("../internals/get-built-in"),i=e("../internals/function-uncurry-this"),o=e("../internals/object-get-own-property-names"),s=e("../internals/object-get-own-property-symbols"),a=e("../internals/an-object"),u=i([].concat);t.exports=r("Reflect","ownKeys")||function(e){var t=o.f(a(e)),n=s.f;return n?u(t,n(e)):t}},{"../internals/an-object":25,"../internals/function-uncurry-this":90,"../internals/get-built-in":91,"../internals/object-get-own-property-names":140,"../internals/object-get-own-property-symbols":141}],151:[function(e,t,n){"use strict";t.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},{}],152:[function(e,t,n){"use strict";var r=e("../internals/global"),i=e("../internals/promise-native-constructor"),o=e("../internals/is-callable"),s=e("../internals/is-forced"),a=e("../internals/inspect-source"),u=e("../internals/well-known-symbol"),l=e("../internals/engine-is-browser"),c=e("../internals/engine-is-deno"),f=e("../internals/is-pure"),d=e("../internals/engine-v8-version"),p=i&&i.prototype,h=u("species"),y=!1,m=o(r.PromiseRejectionEvent),b=s("Promise",(function(){var e=a(i),t=e!==String(i);if(!t&&66===d)return!0;if(f&&(!p.catch||!p.finally))return!0;if(!d||d<51||!/native code/.test(e)){var n=new i((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[h]=r,!(y=n.then((function(){}))instanceof r))return!0}return!t&&(l||c)&&!m}));t.exports={CONSTRUCTOR:b,REJECTION_EVENT:m,SUBCLASSING:y}},{"../internals/engine-is-browser":67,"../internals/engine-is-deno":69,"../internals/engine-v8-version":76,"../internals/global":96,"../internals/inspect-source":105,"../internals/is-callable":110,"../internals/is-forced":112,"../internals/is-pure":116,"../internals/promise-native-constructor":153,"../internals/well-known-symbol":205}],153:[function(e,t,n){"use strict";var r=e("../internals/global");t.exports=r.Promise},{"../internals/global":96}],154:[function(e,t,n){"use strict";var r=e("../internals/an-object"),i=e("../internals/is-object"),o=e("../internals/new-promise-capability");t.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},{"../internals/an-object":25,"../internals/is-object":115,"../internals/new-promise-capability":131}],155:[function(e,t,n){"use strict";var r=e("../internals/promise-native-constructor"),i=e("../internals/check-correctness-of-iteration"),o=e("../internals/promise-constructor-detection").CONSTRUCTOR;t.exports=o||!i((function(e){r.all(e).then(void 0,(function(){}))}))},{"../internals/check-correctness-of-iteration":46,"../internals/promise-constructor-detection":152,"../internals/promise-native-constructor":153}],156:[function(e,t,n){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},t.exports=r},{}],157:[function(e,t,n){"use strict";var r=e("../internals/function-call"),i=e("../internals/an-object"),o=e("../internals/is-callable"),s=e("../internals/classof-raw"),a=e("../internals/regexp-exec"),u=TypeError;t.exports=function(e,t){var n=e.exec;if(o(n)){var l=r(n,e,t);return null!==l&&i(l),l}if("RegExp"===s(e))return r(a,e,t);throw new u("RegExp#exec called on incompatible receiver")}},{"../internals/an-object":25,"../internals/classof-raw":47,"../internals/function-call":86,"../internals/is-callable":110,"../internals/regexp-exec":158}],158:[function(e,t,n){"use strict";var r,i,o=e("../internals/function-call"),s=e("../internals/function-uncurry-this"),a=e("../internals/to-string"),u=e("../internals/regexp-flags"),l=e("../internals/regexp-sticky-helpers"),c=e("../internals/shared"),f=e("../internals/object-create"),d=e("../internals/internal-state").get,p=e("../internals/regexp-unsupported-dot-all"),h=e("../internals/regexp-unsupported-ncg"),y=c("native-string-replace",String.prototype.replace),m=RegExp.prototype.exec,b=m,g=s("".charAt),v=s("".indexOf),w=s("".replace),j=s("".slice),E=(i=/b*/g,o(m,r=/a/,"a"),o(m,i,"a"),0!==r.lastIndex||0!==i.lastIndex),x=l.BROKEN_CARET,_=void 0!==/()??/.exec("")[1];(E||_||x||p||h)&&(b=function(e){var t,n,r,i,s,l,c,p=this,h=d(p),S=a(e),A=h.raw;if(A)return A.lastIndex=p.lastIndex,t=o(b,A,S),p.lastIndex=A.lastIndex,t;var R=h.groups,k=x&&p.sticky,O=o(u,p),T=p.source,I=0,M=S;if(k&&(O=w(O,"y",""),-1===v(O,"g")&&(O+="g"),M=j(S,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==g(S,p.lastIndex-1))&&(T="(?: "+T+")",M=" "+M,I++),n=new RegExp("^(?:"+T+")",O)),_&&(n=new RegExp("^"+T+"$(?!\\s)",O)),E&&(r=p.lastIndex),i=o(m,k?n:p,M),k?i?(i.input=j(i.input,I),i[0]=j(i[0],I),i.index=p.lastIndex,p.lastIndex+=i[0].length):p.lastIndex=0:E&&i&&(p.lastIndex=p.global?i.index+i[0].length:r),_&&i&&i.length>1&&o(y,i[0],n,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(i[s]=void 0)})),i&&R)for(i.groups=l=f(null),s=0;s<R.length;s++)l[(c=R[s])[0]]=i[c[1]];return i}),t.exports=b},{"../internals/function-call":86,"../internals/function-uncurry-this":90,"../internals/internal-state":106,"../internals/object-create":135,"../internals/regexp-flags":159,"../internals/regexp-sticky-helpers":161,"../internals/regexp-unsupported-dot-all":162,"../internals/regexp-unsupported-ncg":163,"../internals/shared":170,"../internals/to-string":191}],159:[function(e,t,n){"use strict";var r=e("../internals/an-object");t.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},{"../internals/an-object":25}],160:[function(e,t,n){"use strict";var r=e("../internals/function-call"),i=e("../internals/has-own-property"),o=e("../internals/object-is-prototype-of"),s=e("../internals/regexp-flags"),a=RegExp.prototype;t.exports=function(e){var t=e.flags;return void 0!==t||"flags"in a||i(e,"flags")||!o(a,e)?t:r(s,e)}},{"../internals/function-call":86,"../internals/has-own-property":97,"../internals/object-is-prototype-of":143,"../internals/regexp-flags":159}],161:[function(e,t,n){"use strict";var r=e("../internals/fails"),i=e("../internals/global").RegExp,o=r((function(){var e=i("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),s=o||r((function(){return!i("a","y").sticky})),a=o||r((function(){var e=i("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));t.exports={BROKEN_CARET:a,MISSED_STICKY:s,UNSUPPORTED_Y:o}},{"../internals/fails":80,"../internals/global":96}],162:[function(e,t,n){"use strict";var r=e("../internals/fails"),i=e("../internals/global").RegExp;t.exports=r((function(){var e=i(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},{"../internals/fails":80,"../internals/global":96}],163:[function(e,t,n){"use strict";var r=e("../internals/fails"),i=e("../internals/global").RegExp;t.exports=r((function(){var e=i("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},{"../internals/fails":80,"../internals/global":96}],164:[function(e,t,n){"use strict";var r=e("../internals/is-null-or-undefined"),i=TypeError;t.exports=function(e){if(r(e))throw new i("Can't call method on "+e);return e}},{"../internals/is-null-or-undefined":114}],165:[function(e,t,n){"use strict";var r,i=e("../internals/global"),o=e("../internals/function-apply"),s=e("../internals/is-callable"),a=e("../internals/engine-is-bun"),u=e("../internals/engine-user-agent"),l=e("../internals/array-slice"),c=e("../internals/validate-arguments-length"),f=i.Function,d=/MSIE .\./.test(u)||a&&((r=i.Bun.version.split(".")).length<3||"0"===r[0]&&(r[1]<3||"3"===r[1]&&"0"===r[2]));t.exports=function(e,t){var n=t?2:1;return d?function(r,i){var a=c(arguments.length,1)>n,u=s(r)?r:f(r),d=a?l(arguments,n):[],p=a?function(){o(u,this,d)}:u;return t?e(p,i):e(p)}:e}},{"../internals/array-slice":41,"../internals/engine-is-bun":68,"../internals/engine-user-agent":75,"../internals/function-apply":82,"../internals/global":96,"../internals/is-callable":110,"../internals/validate-arguments-length":203}],166:[function(e,t,n){"use strict";var r=e("../internals/get-built-in"),i=e("../internals/define-built-in-accessor"),o=e("../internals/well-known-symbol"),s=e("../internals/descriptors"),a=o("species");t.exports=function(e){var t=r(e);s&&t&&!t[a]&&i(t,a,{configurable:!0,get:function(){return this}})}},{"../internals/define-built-in-accessor":55,"../internals/descriptors":60,"../internals/get-built-in":91,"../internals/well-known-symbol":205}],167:[function(e,t,n){"use strict";var r=e("../internals/object-define-property").f,i=e("../internals/has-own-property"),o=e("../internals/well-known-symbol")("toStringTag");t.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!i(e,o)&&r(e,o,{configurable:!0,value:t})}},{"../internals/has-own-property":97,"../internals/object-define-property":137,"../internals/well-known-symbol":205}],168:[function(e,t,n){"use strict";var r=e("../internals/shared"),i=e("../internals/uid"),o=r("keys");t.exports=function(e){return o[e]||(o[e]=i(e))}},{"../internals/shared":170,"../internals/uid":199}],169:[function(e,t,n){"use strict";var r=e("../internals/global"),i=e("../internals/define-global-property"),o="__core-js_shared__",s=r[o]||i(o,{});t.exports=s},{"../internals/define-global-property":58,"../internals/global":96}],170:[function(e,t,n){"use strict";var r=e("../internals/is-pure"),i=e("../internals/shared-store");(t.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.33.2",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":116,"../internals/shared-store":169}],171:[function(e,t,n){"use strict";var r=e("../internals/an-object"),i=e("../internals/a-constructor"),o=e("../internals/is-null-or-undefined"),s=e("../internals/well-known-symbol")("species");t.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||o(n=r(a)[s])?t:i(n)}},{"../internals/a-constructor":20,"../internals/an-object":25,"../internals/is-null-or-undefined":114,"../internals/well-known-symbol":205}],172:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/to-integer-or-infinity"),o=e("../internals/to-string"),s=e("../internals/require-object-coercible"),a=r("".charAt),u=r("".charCodeAt),l=r("".slice),c=function(e){return function(t,n){var r,c,f=o(s(t)),d=i(n),p=f.length;return d<0||d>=p?e?"":void 0:(r=u(f,d))<55296||r>56319||d+1===p||(c=u(f,d+1))<56320||c>57343?e?a(f,d):r:e?l(f,d,d+2):c-56320+(r-55296<<10)+65536}};t.exports={codeAt:c(!1),charAt:c(!0)}},{"../internals/function-uncurry-this":90,"../internals/require-object-coercible":164,"../internals/to-integer-or-infinity":183,"../internals/to-string":191}],173:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=2147483647,o=/[^\0-\u007E]/,s=/[.\u3002\uFF0E\uFF61]/g,a="Overflow: input needs wider integers to process",u=RangeError,l=r(s.exec),c=Math.floor,f=String.fromCharCode,d=r("".charCodeAt),p=r([].join),h=r([].push),y=r("".replace),m=r("".split),b=r("".toLowerCase),g=function(e){return e+22+75*(e<26)},v=function(e,t,n){var r=0;for(e=n?c(e/700):e>>1,e+=c(e/t);e>455;)e=c(e/35),r+=36;return c(r+36*e/(e+38))},w=function(e){var t=[];e=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=d(e,n++);if(i>=55296&&i<=56319&&n<r){var o=d(e,n++);56320==(64512&o)?h(t,((1023&i)<<10)+(1023&o)+65536):(h(t,i),n--)}else h(t,i)}return t}(e);var n,r,o=e.length,s=128,l=0,y=72;for(n=0;n<e.length;n++)(r=e[n])<128&&h(t,f(r));var m=t.length,b=m;for(m&&h(t,"-");b<o;){var w=i;for(n=0;n<e.length;n++)(r=e[n])>=s&&r<w&&(w=r);var j=b+1;if(w-s>c((i-l)/j))throw new u(a);for(l+=(w-s)*j,s=w,n=0;n<e.length;n++){if((r=e[n])<s&&++l>i)throw new u(a);if(r===s){for(var E=l,x=36;;){var _=x<=y?1:x>=y+26?26:x-y;if(E<_)break;var S=E-_,A=36-_;h(t,f(g(_+S%A))),E=c(S/A),x+=36}h(t,f(g(E))),y=v(l,j,b===m),l=0,b++}}l++,s++}return p(t,"")};t.exports=function(e){var t,n,r=[],i=m(y(b(e),s,"."),".");for(t=0;t<i.length;t++)n=i[t],h(r,l(o,n)?"xn--"+w(n):n);return p(r,".")}},{"../internals/function-uncurry-this":90}],174:[function(e,t,n){"use strict";var r=e("../internals/to-integer-or-infinity"),i=e("../internals/to-string"),o=e("../internals/require-object-coercible"),s=RangeError;t.exports=function(e){var t=i(o(this)),n="",a=r(e);if(a<0||a===1/0)throw new s("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(t+=t))1&a&&(n+=t);return n}},{"../internals/require-object-coercible":164,"../internals/to-integer-or-infinity":183,"../internals/to-string":191}],175:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/require-object-coercible"),o=e("../internals/to-string"),s=e("../internals/whitespaces"),a=r("".replace),u=RegExp("^["+s+"]+"),l=RegExp("(^|[^"+s+"])["+s+"]+$"),c=function(e){return function(t){var n=o(i(t));return 1&e&&(n=a(n,u,"")),2&e&&(n=a(n,l,"$1")),n}};t.exports={start:c(1),end:c(2),trim:c(3)}},{"../internals/function-uncurry-this":90,"../internals/require-object-coercible":164,"../internals/to-string":191,"../internals/whitespaces":206}],176:[function(e,t,n){"use strict";var r=e("../internals/engine-v8-version"),i=e("../internals/fails"),o=e("../internals/global").String;t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},{"../internals/engine-v8-version":76,"../internals/fails":80,"../internals/global":96}],177:[function(e,t,n){"use strict";var r,i,o,s,a=e("../internals/global"),u=e("../internals/function-apply"),l=e("../internals/function-bind-context"),c=e("../internals/is-callable"),f=e("../internals/has-own-property"),d=e("../internals/fails"),p=e("../internals/html"),h=e("../internals/array-slice"),y=e("../internals/document-create-element"),m=e("../internals/validate-arguments-length"),b=e("../internals/engine-is-ios"),g=e("../internals/engine-is-node"),v=a.setImmediate,w=a.clearImmediate,j=a.process,E=a.Dispatch,x=a.Function,_=a.MessageChannel,S=a.String,A=0,R={},k="onreadystatechange";d((function(){r=a.location}));var O=function(e){if(f(R,e)){var t=R[e];delete R[e],t()}},T=function(e){return function(){O(e)}},I=function(e){O(e.data)},M=function(e){a.postMessage(S(e),r.protocol+"//"+r.host)};v&&w||(v=function(e){m(arguments.length,1);var t=c(e)?e:x(e),n=h(arguments,1);return R[++A]=function(){u(t,void 0,n)},i(A),A},w=function(e){delete R[e]},g?i=function(e){j.nextTick(T(e))}:E&&E.now?i=function(e){E.now(T(e))}:_&&!b?(s=(o=new _).port2,o.port1.onmessage=I,i=l(s.postMessage,s)):a.addEventListener&&c(a.postMessage)&&!a.importScripts&&r&&"file:"!==r.protocol&&!d(M)?(i=M,a.addEventListener("message",I,!1)):i=k in y("script")?function(e){p.appendChild(y("script"))[k]=function(){p.removeChild(this),O(e)}}:function(e){setTimeout(T(e),0)}),t.exports={set:v,clear:w}},{"../internals/array-slice":41,"../internals/document-create-element":62,"../internals/engine-is-ios":72,"../internals/engine-is-node":73,"../internals/fails":80,"../internals/function-apply":82,"../internals/function-bind-context":83,"../internals/global":96,"../internals/has-own-property":97,"../internals/html":100,"../internals/is-callable":110,"../internals/validate-arguments-length":203}],178:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this");t.exports=r(1..valueOf)},{"../internals/function-uncurry-this":90}],179:[function(e,t,n){"use strict";var r=e("../internals/to-integer-or-infinity"),i=Math.max,o=Math.min;t.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},{"../internals/to-integer-or-infinity":183}],180:[function(e,t,n){"use strict";var r=e("../internals/to-primitive"),i=TypeError;t.exports=function(e){var t=r(e,"number");if("number"==typeof t)throw new i("Can't convert number to bigint");return BigInt(t)}},{"../internals/to-primitive":188}],181:[function(e,t,n){"use strict";var r=e("../internals/to-integer-or-infinity"),i=e("../internals/to-length"),o=RangeError;t.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw new o("Wrong length or index");return n}},{"../internals/to-integer-or-infinity":183,"../internals/to-length":184}],182:[function(e,t,n){"use strict";var r=e("../internals/indexed-object"),i=e("../internals/require-object-coercible");t.exports=function(e){return r(i(e))}},{"../internals/indexed-object":103,"../internals/require-object-coercible":164}],183:[function(e,t,n){"use strict";var r=e("../internals/math-trunc");t.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},{"../internals/math-trunc":129}],184:[function(e,t,n){"use strict";var r=e("../internals/to-integer-or-infinity"),i=Math.min;t.exports=function(e){return e>0?i(r(e),9007199254740991):0}},{"../internals/to-integer-or-infinity":183}],185:[function(e,t,n){"use strict";var r=e("../internals/require-object-coercible"),i=Object;t.exports=function(e){return i(r(e))}},{"../internals/require-object-coercible":164}],186:[function(e,t,n){"use strict";var r=e("../internals/to-positive-integer"),i=RangeError;t.exports=function(e,t){var n=r(e);if(n%t)throw new i("Wrong offset");return n}},{"../internals/to-positive-integer":187}],187:[function(e,t,n){"use strict";var r=e("../internals/to-integer-or-infinity"),i=RangeError;t.exports=function(e){var t=r(e);if(t<0)throw new i("The argument can't be less than 0");return t}},{"../internals/to-integer-or-infinity":183}],188:[function(e,t,n){"use strict";var r=e("../internals/function-call"),i=e("../internals/is-object"),o=e("../internals/is-symbol"),s=e("../internals/get-method"),a=e("../internals/ordinary-to-primitive"),u=e("../internals/well-known-symbol"),l=TypeError,c=u("toPrimitive");t.exports=function(e,t){if(!i(e)||o(e))return e;var n,u=s(e,c);if(u){if(void 0===t&&(t="default"),n=r(u,e,t),!i(n)||o(n))return n;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},{"../internals/function-call":86,"../internals/get-method":94,"../internals/is-object":115,"../internals/is-symbol":117,"../internals/ordinary-to-primitive":149,"../internals/well-known-symbol":205}],189:[function(e,t,n){"use strict";var r=e("../internals/to-primitive"),i=e("../internals/is-symbol");t.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},{"../internals/is-symbol":117,"../internals/to-primitive":188}],190:[function(e,t,n){"use strict";var r={};r[e("../internals/well-known-symbol")("toStringTag")]="z",t.exports="[object z]"===String(r)},{"../internals/well-known-symbol":205}],191:[function(e,t,n){"use strict";var r=e("../internals/classof"),i=String;t.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},{"../internals/classof":48}],192:[function(e,t,n){"use strict";var r=Math.round;t.exports=function(e){var t=r(e);return t<0?0:t>255?255:255&t}},{}],193:[function(e,t,n){"use strict";var r=String;t.exports=function(e){try{return r(e)}catch(e){return"Object"}}},{}],194:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/global"),o=e("../internals/function-call"),s=e("../internals/descriptors"),a=e("../internals/typed-array-constructors-require-wrappers"),u=e("../internals/array-buffer-view-core"),l=e("../internals/array-buffer"),c=e("../internals/an-instance"),f=e("../internals/create-property-descriptor"),d=e("../internals/create-non-enumerable-property"),p=e("../internals/is-integral-number"),h=e("../internals/to-length"),y=e("../internals/to-index"),m=e("../internals/to-offset"),b=e("../internals/to-uint8-clamped"),g=e("../internals/to-property-key"),v=e("../internals/has-own-property"),w=e("../internals/classof"),j=e("../internals/is-object"),E=e("../internals/is-symbol"),x=e("../internals/object-create"),_=e("../internals/object-is-prototype-of"),S=e("../internals/object-set-prototype-of"),A=e("../internals/object-get-own-property-names").f,R=e("../internals/typed-array-from"),k=e("../internals/array-iteration").forEach,O=e("../internals/set-species"),T=e("../internals/define-built-in-accessor"),I=e("../internals/object-define-property"),M=e("../internals/object-get-own-property-descriptor"),P=e("../internals/internal-state"),C=e("../internals/inherit-if-required"),N=P.get,L=P.set,D=P.enforce,B=I.f,U=M.f,F=i.RangeError,q=l.ArrayBuffer,W=q.prototype,H=l.DataView,z=u.NATIVE_ARRAY_BUFFER_VIEWS,V=u.TYPED_ARRAY_TAG,G=u.TypedArray,$=u.TypedArrayPrototype,Y=u.aTypedArrayConstructor,J=u.isTypedArray,K="BYTES_PER_ELEMENT",X="Wrong length",Q=function(e,t){Y(e);for(var n=0,r=t.length,i=new e(r);r>n;)i[n]=t[n++];return i},Z=function(e,t){T(e,t,{configurable:!0,get:function(){return N(this)[t]}})},ee=function(e){var t;return _(W,e)||"ArrayBuffer"===(t=w(e))||"SharedArrayBuffer"===t},te=function(e,t){return J(e)&&!E(t)&&t in e&&p(+t)&&t>=0},ne=function(e,t){return t=g(t),te(e,t)?f(2,e[t]):U(e,t)},re=function(e,t,n){return t=g(t),!(te(e,t)&&j(n)&&v(n,"value"))||v(n,"get")||v(n,"set")||n.configurable||v(n,"writable")&&!n.writable||v(n,"enumerable")&&!n.enumerable?B(e,t,n):(e[t]=n.value,e)};s?(z||(M.f=ne,I.f=re,Z($,"buffer"),Z($,"byteOffset"),Z($,"byteLength"),Z($,"length")),r({target:"Object",stat:!0,forced:!z},{getOwnPropertyDescriptor:ne,defineProperty:re}),t.exports=function(e,t,n){var s=e.match(/\d+/)[0]/8,u=e+(n?"Clamped":"")+"Array",l="get"+e,f="set"+e,p=i[u],g=p,v=g&&g.prototype,w={},E=function(e,t){B(e,t,{get:function(){return function(e,t){var n=N(e);return n.view[l](t*s+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var i=N(e);i.view[f](t*s+i.byteOffset,n?b(r):r,!0)}(this,t,e)},enumerable:!0})};z?a&&(g=t((function(e,t,n,r){return c(e,v),C(j(t)?ee(t)?void 0!==r?new p(t,m(n,s),r):void 0!==n?new p(t,m(n,s)):new p(t):J(t)?Q(g,t):o(R,g,t):new p(y(t)),e,g)})),S&&S(g,G),k(A(p),(function(e){e in g||d(g,e,p[e])})),g.prototype=v):(g=t((function(e,t,n,r){c(e,v);var i,a,u,l=0,f=0;if(j(t)){if(!ee(t))return J(t)?Q(g,t):o(R,g,t);i=t,f=m(n,s);var d=t.byteLength;if(void 0===r){if(d%s)throw new F(X);if((a=d-f)<0)throw new F(X)}else if((a=h(r)*s)+f>d)throw new F(X);u=a/s}else u=y(t),i=new q(a=u*s);for(L(e,{buffer:i,byteOffset:f,byteLength:a,length:u,view:new H(i)});l<u;)E(e,l++)})),S&&S(g,G),v=g.prototype=x($)),v.constructor!==g&&d(v,"constructor",g),D(v).TypedArrayConstructor=g,V&&d(v,V,u);var _=g!==p;w[u]=g,r({global:!0,constructor:!0,forced:_,sham:!z},w),K in g||d(g,K,s),K in v||d(v,K,s),O(u)}):t.exports=function(){}},{"../internals/an-instance":24,"../internals/array-buffer":28,"../internals/array-buffer-view-core":27,"../internals/array-iteration":35,"../internals/classof":48,"../internals/create-non-enumerable-property":52,"../internals/create-property-descriptor":53,"../internals/define-built-in-accessor":55,"../internals/descriptors":60,"../internals/export":79,"../internals/function-call":86,"../internals/global":96,"../internals/has-own-property":97,"../internals/inherit-if-required":104,"../internals/internal-state":106,"../internals/is-integral-number":113,"../internals/is-object":115,"../internals/is-symbol":117,"../internals/object-create":135,"../internals/object-define-property":137,"../internals/object-get-own-property-descriptor":138,"../internals/object-get-own-property-names":140,"../internals/object-is-prototype-of":143,"../internals/object-set-prototype-of":147,"../internals/set-species":166,"../internals/to-index":181,"../internals/to-length":184,"../internals/to-offset":186,"../internals/to-property-key":189,"../internals/to-uint8-clamped":192,"../internals/typed-array-constructors-require-wrappers":195,"../internals/typed-array-from":197}],195:[function(e,t,n){"use strict";var r=e("../internals/global"),i=e("../internals/fails"),o=e("../internals/check-correctness-of-iteration"),s=e("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS,a=r.ArrayBuffer,u=r.Int8Array;t.exports=!s||!i((function(){u(1)}))||!i((function(){new u(-1)}))||!o((function(e){new u,new u(null),new u(1.5),new u(e)}),!0)||i((function(){return 1!==new u(new a(2),1,void 0).length}))},{"../internals/array-buffer-view-core":27,"../internals/check-correctness-of-iteration":46,"../internals/fails":80,"../internals/global":96}],196:[function(e,t,n){"use strict";var r=e("../internals/array-from-constructor-and-list"),i=e("../internals/typed-array-species-constructor");t.exports=function(e,t){return r(i(e),t)}},{"../internals/array-from-constructor-and-list":32,"../internals/typed-array-species-constructor":198}],197:[function(e,t,n){"use strict";var r=e("../internals/function-bind-context"),i=e("../internals/function-call"),o=e("../internals/a-constructor"),s=e("../internals/to-object"),a=e("../internals/length-of-array-like"),u=e("../internals/get-iterator"),l=e("../internals/get-iterator-method"),c=e("../internals/is-array-iterator-method"),f=e("../internals/is-big-int-array"),d=e("../internals/array-buffer-view-core").aTypedArrayConstructor,p=e("../internals/to-big-int");t.exports=function(e){var t,n,h,y,m,b,g,v,w=o(this),j=s(e),E=arguments.length,x=E>1?arguments[1]:void 0,_=void 0!==x,S=l(j);if(S&&!c(S))for(v=(g=u(j,S)).next,j=[];!(b=i(v,g)).done;)j.push(b.value);for(_&&E>2&&(x=r(x,arguments[2])),n=a(j),h=new(d(w))(n),y=f(h),t=0;n>t;t++)m=_?x(j[t],t):j[t],h[t]=y?p(m):+m;return h}},{"../internals/a-constructor":20,"../internals/array-buffer-view-core":27,"../internals/function-bind-context":83,"../internals/function-call":86,"../internals/get-iterator":93,"../internals/get-iterator-method":92,"../internals/is-array-iterator-method":107,"../internals/is-big-int-array":109,"../internals/length-of-array-like":124,"../internals/to-big-int":180,"../internals/to-object":185}],198:[function(e,t,n){"use strict";var r=e("../internals/array-buffer-view-core"),i=e("../internals/species-constructor"),o=r.aTypedArrayConstructor,s=r.getTypedArrayConstructor;t.exports=function(e){return o(i(e,s(e)))}},{"../internals/array-buffer-view-core":27,"../internals/species-constructor":171}],199:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=0,o=Math.random(),s=r(1..toString);t.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++i+o,36)}},{"../internals/function-uncurry-this":90}],200:[function(e,t,n){"use strict";var r=e("../internals/fails"),i=e("../internals/well-known-symbol"),o=e("../internals/descriptors"),s=e("../internals/is-pure"),a=i("iterator");t.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),n.delete("a",2),n.delete("b",void 0),s&&(!e.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!t.size&&(s||!o)||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},{"../internals/descriptors":60,"../internals/fails":80,"../internals/is-pure":116,"../internals/well-known-symbol":205}],201:[function(e,t,n){"use strict";var r=e("../internals/symbol-constructor-detection");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},{"../internals/symbol-constructor-detection":176}],202:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/fails");t.exports=r&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},{"../internals/descriptors":60,"../internals/fails":80}],203:[function(e,t,n){"use strict";var r=TypeError;t.exports=function(e,t){if(e<t)throw new r("Not enough arguments");return e}},{}],204:[function(e,t,n){"use strict";var r=e("../internals/global"),i=e("../internals/is-callable"),o=r.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},{"../internals/global":96,"../internals/is-callable":110}],205:[function(e,t,n){"use strict";var r=e("../internals/global"),i=e("../internals/shared"),o=e("../internals/has-own-property"),s=e("../internals/uid"),a=e("../internals/symbol-constructor-detection"),u=e("../internals/use-symbol-as-uid"),l=r.Symbol,c=i("wks"),f=u?l.for||l:l&&l.withoutSetter||s;t.exports=function(e){return o(c,e)||(c[e]=a&&o(l,e)?l[e]:f("Symbol."+e)),c[e]}},{"../internals/global":96,"../internals/has-own-property":97,"../internals/shared":170,"../internals/symbol-constructor-detection":176,"../internals/uid":199,"../internals/use-symbol-as-uid":201}],206:[function(e,t,n){"use strict";t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},{}],207:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/global"),o=e("../internals/array-buffer"),s=e("../internals/set-species"),a="ArrayBuffer",u=o[a];r({global:!0,constructor:!0,forced:i[a]!==u},{ArrayBuffer:u}),s(a)},{"../internals/array-buffer":28,"../internals/export":79,"../internals/global":96,"../internals/set-species":166}],208:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/function-uncurry-this-clause"),o=e("../internals/fails"),s=e("../internals/array-buffer"),a=e("../internals/an-object"),u=e("../internals/to-absolute-index"),l=e("../internals/to-length"),c=e("../internals/species-constructor"),f=s.ArrayBuffer,d=s.DataView,p=d.prototype,h=i(f.prototype.slice),y=i(p.getUint8),m=i(p.setUint8);r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:o((function(){return!new f(2).slice(1,void 0).byteLength}))},{slice:function(e,t){if(h&&void 0===t)return h(a(this),e);for(var n=a(this).byteLength,r=u(e,n),i=u(void 0===t?n:t,n),o=new(c(this,f))(l(i-r)),s=new d(this),p=new d(o),b=0;r<i;)m(p,b++,y(s,r++));return o}})},{"../internals/an-object":25,"../internals/array-buffer":28,"../internals/export":79,"../internals/fails":80,"../internals/function-uncurry-this-clause":89,"../internals/species-constructor":171,"../internals/to-absolute-index":179,"../internals/to-length":184}],209:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/fails"),o=e("../internals/is-array"),s=e("../internals/is-object"),a=e("../internals/to-object"),u=e("../internals/length-of-array-like"),l=e("../internals/does-not-exceed-safe-integer"),c=e("../internals/create-property"),f=e("../internals/array-species-create"),d=e("../internals/array-method-has-species-support"),p=e("../internals/well-known-symbol"),h=e("../internals/engine-v8-version"),y=p("isConcatSpreadable"),m=h>=51||!i((function(){var e=[];return e[y]=!1,e.concat()[0]!==e})),b=function(e){if(!s(e))return!1;var t=e[y];return void 0!==t?!!t:o(e)};r({target:"Array",proto:!0,arity:1,forced:!m||!d("concat")},{concat:function(e){var t,n,r,i,o,s=a(this),d=f(s,0),p=0;for(t=-1,r=arguments.length;t<r;t++)if(b(o=-1===t?s:arguments[t]))for(i=u(o),l(p+i),n=0;n<i;n++,p++)n in o&&c(d,p,o[n]);else l(p+1),c(d,p++,o);return d.length=p,d}})},{"../internals/array-method-has-species-support":37,"../internals/array-species-create":44,"../internals/create-property":54,"../internals/does-not-exceed-safe-integer":63,"../internals/engine-v8-version":76,"../internals/export":79,"../internals/fails":80,"../internals/is-array":108,"../internals/is-object":115,"../internals/length-of-array-like":124,"../internals/to-object":185,"../internals/well-known-symbol":205}],210:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/array-for-each");r({target:"Array",proto:!0,forced:[].forEach!==i},{forEach:i})},{"../internals/array-for-each":31,"../internals/export":79}],211:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/function-uncurry-this-clause"),o=e("../internals/array-includes").indexOf,s=e("../internals/array-method-is-strict"),a=i([].indexOf),u=!!a&&1/a([1],1,-0)<0;r({target:"Array",proto:!0,forced:u||!s("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return u?a(this,e,t)||0:o(this,e,t)}})},{"../internals/array-includes":34,"../internals/array-method-is-strict":38,"../internals/export":79,"../internals/function-uncurry-this-clause":89}],212:[function(e,t,n){"use strict";e("../internals/export")({target:"Array",stat:!0},{isArray:e("../internals/is-array")})},{"../internals/export":79,"../internals/is-array":108}],213:[function(e,t,n){"use strict";var r=e("../internals/to-indexed-object"),i=e("../internals/add-to-unscopables"),o=e("../internals/iterators"),s=e("../internals/internal-state"),a=e("../internals/object-define-property").f,u=e("../internals/iterator-define"),l=e("../internals/create-iter-result-object"),c=e("../internals/is-pure"),f=e("../internals/descriptors"),d="Array Iterator",p=s.set,h=s.getterFor(d);t.exports=u(Array,"Array",(function(e,t){p(this,{type:d,target:r(e),index:0,kind:t})}),(function(){var e=h(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,l(void 0,!0);switch(e.kind){case"keys":return l(n,!1);case"values":return l(t[n],!1)}return l([n,t[n]],!1)}),"values");var y=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!c&&f&&"values"!==y.name)try{a(y,"name",{value:"values"})}catch(e){}},{"../internals/add-to-unscopables":22,"../internals/create-iter-result-object":51,"../internals/descriptors":60,"../internals/internal-state":106,"../internals/is-pure":116,"../internals/iterator-define":121,"../internals/iterators":123,"../internals/object-define-property":137,"../internals/to-indexed-object":182}],214:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/function-uncurry-this"),o=e("../internals/indexed-object"),s=e("../internals/to-indexed-object"),a=e("../internals/array-method-is-strict"),u=i([].join);r({target:"Array",proto:!0,forced:o!==Object||!a("join",",")},{join:function(e){return u(s(this),void 0===e?",":e)}})},{"../internals/array-method-is-strict":38,"../internals/export":79,"../internals/function-uncurry-this":90,"../internals/indexed-object":103,"../internals/to-indexed-object":182}],215:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/is-array"),o=e("../internals/is-constructor"),s=e("../internals/is-object"),a=e("../internals/to-absolute-index"),u=e("../internals/length-of-array-like"),l=e("../internals/to-indexed-object"),c=e("../internals/create-property"),f=e("../internals/well-known-symbol"),d=e("../internals/array-method-has-species-support"),p=e("../internals/array-slice"),h=d("slice"),y=f("species"),m=Array,b=Math.max;r({target:"Array",proto:!0,forced:!h},{slice:function(e,t){var n,r,f,d=l(this),h=u(d),g=a(e,h),v=a(void 0===t?h:t,h);if(i(d)&&(n=d.constructor,(o(n)&&(n===m||i(n.prototype))||s(n)&&null===(n=n[y]))&&(n=void 0),n===m||void 0===n))return p(d,g,v);for(r=new(void 0===n?m:n)(b(v-g,0)),f=0;g<v;g++,f++)g in d&&c(r,f,d[g]);return r.length=f,r}})},{"../internals/array-method-has-species-support":37,"../internals/array-slice":41,"../internals/create-property":54,"../internals/export":79,"../internals/is-array":108,"../internals/is-constructor":111,"../internals/is-object":115,"../internals/length-of-array-like":124,"../internals/to-absolute-index":179,"../internals/to-indexed-object":182,"../internals/well-known-symbol":205}],216:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/function-uncurry-this"),o=Date,s=i(o.prototype.getTime);r({target:"Date",stat:!0},{now:function(){return s(new o)}})},{"../internals/export":79,"../internals/function-uncurry-this":90}],217:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/define-built-in"),o=Date.prototype,s="Invalid Date",a="toString",u=r(o[a]),l=r(o.getTime);String(new Date(NaN))!==s&&i(o,a,(function(){var e=l(this);return e==e?u(this):s}))},{"../internals/define-built-in":56,"../internals/function-uncurry-this":90}],218:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/function-bind");r({target:"Function",proto:!0,forced:Function.bind!==i},{bind:i})},{"../internals/export":79,"../internals/function-bind":85}],219:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/function-name").EXISTS,o=e("../internals/function-uncurry-this"),s=e("../internals/define-built-in-accessor"),a=Function.prototype,u=o(a.toString),l=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=o(l.exec);r&&!i&&s(a,"name",{configurable:!0,get:function(){try{return c(l,u(this))[1]}catch(e){return""}}})},{"../internals/define-built-in-accessor":55,"../internals/descriptors":60,"../internals/function-name":87,"../internals/function-uncurry-this":90}],220:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/function-uncurry-this"),o=e("../internals/to-integer-or-infinity"),s=e("../internals/this-number-value"),a=e("../internals/string-repeat"),u=e("../internals/fails"),l=RangeError,c=String,f=Math.floor,d=i(a),p=i("".slice),h=i(1..toFixed),y=function(e,t,n){return 0===t?n:t%2==1?y(e,t-1,n*e):y(e*e,t/2,n)},m=function(e,t,n){for(var r=-1,i=n;++r<6;)i+=t*e[r],e[r]=i%1e7,i=f(i/1e7)},b=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=f(r/t),r=r%t*1e7},g=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=c(e[t]);n=""===n?r:n+d("0",7-r.length)+r}return n};r({target:"Number",proto:!0,forced:u((function(){return"0.000"!==h(8e-5,3)||"1"!==h(.9,0)||"1.25"!==h(1.255,2)||"1000000000000000128"!==h(0xde0b6b3a7640080,0)}))||!u((function(){h({})}))},{toFixed:function(e){var t,n,r,i,a=s(this),u=o(e),f=[0,0,0,0,0,0],h="",v="0";if(u<0||u>20)throw new l("Incorrect fraction digits");if(a!=a)return"NaN";if(a<=-1e21||a>=1e21)return c(a);if(a<0&&(h="-",a=-a),a>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(a*y(2,69,1))-69)<0?a*y(2,-t,1):a/y(2,t,1),n*=4503599627370496,(t=52-t)>0){for(m(f,0,n),r=u;r>=7;)m(f,1e7,0),r-=7;for(m(f,y(10,r,1),0),r=t-1;r>=23;)b(f,1<<23),r-=23;b(f,1<<r),m(f,1,1),b(f,2),v=g(f)}else m(f,0,n),m(f,1<<-t,0),v=g(f)+d("0",u);return v=u>0?h+((i=v.length)<=u?"0."+d("0",u-i)+v:p(v,0,i-u)+"."+p(v,i-u)):h+v}})},{"../internals/export":79,"../internals/fails":80,"../internals/function-uncurry-this":90,"../internals/string-repeat":174,"../internals/this-number-value":178,"../internals/to-integer-or-infinity":183}],221:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/descriptors"),o=e("../internals/object-define-property").f;r({target:"Object",stat:!0,forced:Object.defineProperty!==o,sham:!i},{defineProperty:o})},{"../internals/descriptors":60,"../internals/export":79,"../internals/object-define-property":137}],222:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/fails"),o=e("../internals/object-get-own-property-names-external").f;r({target:"Object",stat:!0,forced:i((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:o})},{"../internals/export":79,"../internals/fails":80,"../internals/object-get-own-property-names-external":139}],223:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/to-object"),o=e("../internals/object-keys");r({target:"Object",stat:!0,forced:e("../internals/fails")((function(){o(1)}))},{keys:function(e){return o(i(e))}})},{"../internals/export":79,"../internals/fails":80,"../internals/object-keys":145,"../internals/to-object":185}],224:[function(e,t,n){"use strict";var r=e("../internals/to-string-tag-support"),i=e("../internals/define-built-in"),o=e("../internals/object-to-string");r||i(Object.prototype,"toString",o,{unsafe:!0})},{"../internals/define-built-in":56,"../internals/object-to-string":148,"../internals/to-string-tag-support":190}],225:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/number-parse-float");r({global:!0,forced:parseFloat!==i},{parseFloat:i})},{"../internals/export":79,"../internals/number-parse-float":132}],226:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/number-parse-int");r({global:!0,forced:parseInt!==i},{parseInt:i})},{"../internals/export":79,"../internals/number-parse-int":133}],227:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/function-call"),o=e("../internals/a-callable"),s=e("../internals/new-promise-capability"),a=e("../internals/perform"),u=e("../internals/iterate");r({target:"Promise",stat:!0,forced:e("../internals/promise-statics-incorrect-iteration")},{all:function(e){var t=this,n=s.f(t),r=n.resolve,l=n.reject,c=a((function(){var n=o(t.resolve),s=[],a=0,c=1;u(e,(function(e){var o=a++,u=!1;c++,i(n,t,e).then((function(e){u||(u=!0,s[o]=e,--c||r(s))}),l)})),--c||r(s)}));return c.error&&l(c.value),n.promise}})},{"../internals/a-callable":19,"../internals/export":79,"../internals/function-call":86,"../internals/iterate":118,"../internals/new-promise-capability":131,"../internals/perform":151,"../internals/promise-statics-incorrect-iteration":155}],228:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/is-pure"),o=e("../internals/promise-constructor-detection").CONSTRUCTOR,s=e("../internals/promise-native-constructor"),a=e("../internals/get-built-in"),u=e("../internals/is-callable"),l=e("../internals/define-built-in"),c=s&&s.prototype;if(r({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&u(s)){var f=a("Promise").prototype.catch;c.catch!==f&&l(c,"catch",f,{unsafe:!0})}},{"../internals/define-built-in":56,"../internals/export":79,"../internals/get-built-in":91,"../internals/is-callable":110,"../internals/is-pure":116,"../internals/promise-constructor-detection":152,"../internals/promise-native-constructor":153}],229:[function(e,t,n){"use strict";var r,i,o,s=e("../internals/export"),a=e("../internals/is-pure"),u=e("../internals/engine-is-node"),l=e("../internals/global"),c=e("../internals/function-call"),f=e("../internals/define-built-in"),d=e("../internals/object-set-prototype-of"),p=e("../internals/set-to-string-tag"),h=e("../internals/set-species"),y=e("../internals/a-callable"),m=e("../internals/is-callable"),b=e("../internals/is-object"),g=e("../internals/an-instance"),v=e("../internals/species-constructor"),w=e("../internals/task").set,j=e("../internals/microtask"),E=e("../internals/host-report-errors"),x=e("../internals/perform"),_=e("../internals/queue"),S=e("../internals/internal-state"),A=e("../internals/promise-native-constructor"),R=e("../internals/promise-constructor-detection"),k=e("../internals/new-promise-capability"),O="Promise",T=R.CONSTRUCTOR,I=R.REJECTION_EVENT,M=R.SUBCLASSING,P=S.getterFor(O),C=S.set,N=A&&A.prototype,L=A,D=N,B=l.TypeError,U=l.document,F=l.process,q=k.f,W=q,H=!!(U&&U.createEvent&&l.dispatchEvent),z="unhandledrejection",V=function(e){var t;return!(!b(e)||!m(t=e.then))&&t},G=function(e,t){var n,r,i,o=t.value,s=1===t.state,a=s?e.ok:e.fail,u=e.resolve,l=e.reject,f=e.domain;try{a?(s||(2===t.rejection&&X(t),t.rejection=1),!0===a?n=o:(f&&f.enter(),n=a(o),f&&(f.exit(),i=!0)),n===e.promise?l(new B("Promise-chain cycle")):(r=V(n))?c(r,n,u,l):u(n)):l(o)}catch(e){f&&!i&&f.exit(),l(e)}},$=function(e,t){e.notified||(e.notified=!0,j((function(){for(var n,r=e.reactions;n=r.get();)G(n,e);e.notified=!1,t&&!e.rejection&&J(e)})))},Y=function(e,t,n){var r,i;H?((r=U.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),l.dispatchEvent(r)):r={promise:t,reason:n},!I&&(i=l["on"+e])?i(r):e===z&&E("Unhandled promise rejection",n)},J=function(e){c(w,l,(function(){var t,n=e.facade,r=e.value;if(K(e)&&(t=x((function(){u?F.emit("unhandledRejection",r,n):Y(z,n,r)})),e.rejection=u||K(e)?2:1,t.error))throw t.value}))},K=function(e){return 1!==e.rejection&&!e.parent},X=function(e){c(w,l,(function(){var t=e.facade;u?F.emit("rejectionHandled",t):Y("rejectionhandled",t,e.value)}))},Q=function(e,t,n){return function(r){e(t,r,n)}},Z=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,$(e,!0))},ee=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new B("Promise can't be resolved itself");var r=V(t);r?j((function(){var n={done:!1};try{c(r,t,Q(ee,n,e),Q(Z,n,e))}catch(t){Z(n,t,e)}})):(e.value=t,e.state=1,$(e,!1))}catch(t){Z({done:!1},t,e)}}};if(T&&(D=(L=function(e){g(this,D),y(e),c(r,this);var t=P(this);try{e(Q(ee,t),Q(Z,t))}catch(e){Z(t,e)}}).prototype,(r=function(e){C(this,{type:O,done:!1,notified:!1,parent:!1,reactions:new _,rejection:!1,state:0,value:void 0})}).prototype=f(D,"then",(function(e,t){var n=P(this),r=q(v(this,L));return n.parent=!0,r.ok=!m(e)||e,r.fail=m(t)&&t,r.domain=u?F.domain:void 0,0===n.state?n.reactions.add(r):j((function(){G(r,n)})),r.promise})),i=function(){var e=new r,t=P(e);this.promise=e,this.resolve=Q(ee,t),this.reject=Q(Z,t)},k.f=q=function(e){return e===L||undefined===e?new i(e):W(e)},!a&&m(A)&&N!==Object.prototype)){o=N.then,M||f(N,"then",(function(e,t){var n=this;return new L((function(e,t){c(o,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete N.constructor}catch(e){}d&&d(N,D)}s({global:!0,constructor:!0,wrap:!0,forced:T},{Promise:L}),p(L,O,!1,!0),h(O)},{"../internals/a-callable":19,"../internals/an-instance":24,"../internals/define-built-in":56,"../internals/engine-is-node":73,"../internals/export":79,"../internals/function-call":86,"../internals/global":96,"../internals/host-report-errors":99,"../internals/internal-state":106,"../internals/is-callable":110,"../internals/is-object":115,"../internals/is-pure":116,"../internals/microtask":130,"../internals/new-promise-capability":131,"../internals/object-set-prototype-of":147,"../internals/perform":151,"../internals/promise-constructor-detection":152,"../internals/promise-native-constructor":153,"../internals/queue":156,"../internals/set-species":166,"../internals/set-to-string-tag":167,"../internals/species-constructor":171,"../internals/task":177}],230:[function(e,t,n){"use strict";e("../modules/es.promise.constructor"),e("../modules/es.promise.all"),e("../modules/es.promise.catch"),e("../modules/es.promise.race"),e("../modules/es.promise.reject"),e("../modules/es.promise.resolve")},{"../modules/es.promise.all":227,"../modules/es.promise.catch":228,"../modules/es.promise.constructor":229,"../modules/es.promise.race":231,"../modules/es.promise.reject":232,"../modules/es.promise.resolve":233}],231:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/function-call"),o=e("../internals/a-callable"),s=e("../internals/new-promise-capability"),a=e("../internals/perform"),u=e("../internals/iterate");r({target:"Promise",stat:!0,forced:e("../internals/promise-statics-incorrect-iteration")},{race:function(e){var t=this,n=s.f(t),r=n.reject,l=a((function(){var s=o(t.resolve);u(e,(function(e){i(s,t,e).then(n.resolve,r)}))}));return l.error&&r(l.value),n.promise}})},{"../internals/a-callable":19,"../internals/export":79,"../internals/function-call":86,"../internals/iterate":118,"../internals/new-promise-capability":131,"../internals/perform":151,"../internals/promise-statics-incorrect-iteration":155}],232:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/function-call"),o=e("../internals/new-promise-capability");r({target:"Promise",stat:!0,forced:e("../internals/promise-constructor-detection").CONSTRUCTOR},{reject:function(e){var t=o.f(this);return i(t.reject,void 0,e),t.promise}})},{"../internals/export":79,"../internals/function-call":86,"../internals/new-promise-capability":131,"../internals/promise-constructor-detection":152}],233:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/get-built-in"),o=e("../internals/is-pure"),s=e("../internals/promise-native-constructor"),a=e("../internals/promise-constructor-detection").CONSTRUCTOR,u=e("../internals/promise-resolve"),l=i("Promise"),c=o&&!a;r({target:"Promise",stat:!0,forced:o||a},{resolve:function(e){return u(c&&this===l?s:this,e)}})},{"../internals/export":79,"../internals/get-built-in":91,"../internals/is-pure":116,"../internals/promise-constructor-detection":152,"../internals/promise-native-constructor":153,"../internals/promise-resolve":154}],234:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/regexp-exec");r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},{"../internals/export":79,"../internals/regexp-exec":158}],235:[function(e,t,n){"use strict";var r=e("../internals/function-name").PROPER,i=e("../internals/define-built-in"),o=e("../internals/an-object"),s=e("../internals/to-string"),a=e("../internals/fails"),u=e("../internals/regexp-get-flags"),l="toString",c=RegExp.prototype[l],f=a((function(){return"/a/b"!==c.call({source:"a",flags:"b"})})),d=r&&c.name!==l;(f||d)&&i(RegExp.prototype,l,(function(){var e=o(this);return"/"+s(e.source)+"/"+s(u(e))}),{unsafe:!0})},{"../internals/an-object":25,"../internals/define-built-in":56,"../internals/fails":80,"../internals/function-name":87,"../internals/regexp-get-flags":160,"../internals/to-string":191}],236:[function(e,t,n){"use strict";var r=e("../internals/string-multibyte").charAt,i=e("../internals/to-string"),o=e("../internals/internal-state"),s=e("../internals/iterator-define"),a=e("../internals/create-iter-result-object"),u="String Iterator",l=o.set,c=o.getterFor(u);s(String,"String",(function(e){l(this,{type:u,string:i(e),index:0})}),(function(){var e,t=c(this),n=t.string,i=t.index;return i>=n.length?a(void 0,!0):(e=r(n,i),t.index+=e.length,a(e,!1))}))},{"../internals/create-iter-result-object":51,"../internals/internal-state":106,"../internals/iterator-define":121,"../internals/string-multibyte":172,"../internals/to-string":191}],237:[function(e,t,n){"use strict";var r=e("../internals/function-apply"),i=e("../internals/function-call"),o=e("../internals/function-uncurry-this"),s=e("../internals/fix-regexp-well-known-symbol-logic"),a=e("../internals/fails"),u=e("../internals/an-object"),l=e("../internals/is-callable"),c=e("../internals/is-null-or-undefined"),f=e("../internals/to-integer-or-infinity"),d=e("../internals/to-length"),p=e("../internals/to-string"),h=e("../internals/require-object-coercible"),y=e("../internals/advance-string-index"),m=e("../internals/get-method"),b=e("../internals/get-substitution"),g=e("../internals/regexp-exec-abstract"),v=e("../internals/well-known-symbol")("replace"),w=Math.max,j=Math.min,E=o([].concat),x=o([].push),_=o("".indexOf),S=o("".slice),A="$0"==="a".replace(/./,"$0"),R=!!/./[v]&&""===/./[v]("a","$0");s("replace",(function(e,t,n){var o=R?"$":"$0";return[function(e,n){var r=h(this),o=c(e)?void 0:m(e,v);return o?i(o,e,r,n):i(t,p(r),e,n)},function(e,i){var s=u(this),a=p(e);if("string"==typeof i&&-1===_(i,o)&&-1===_(i,"$<")){var c=n(t,s,a,i);if(c.done)return c.value}var h=l(i);h||(i=p(i));var m,v=s.global;v&&(m=s.unicode,s.lastIndex=0);for(var A,R=[];null!==(A=g(s,a))&&(x(R,A),v);){""===p(A[0])&&(s.lastIndex=y(a,d(s.lastIndex),m))}for(var k,O="",T=0,I=0;I<R.length;I++){for(var M,P=p((A=R[I])[0]),C=w(j(f(A.index),a.length),0),N=[],L=1;L<A.length;L++)x(N,void 0===(k=A[L])?k:String(k));var D=A.groups;if(h){var B=E([P],N,C,a);void 0!==D&&x(B,D),M=p(r(i,void 0,B))}else M=b(P,a,C,N,D,i);C>=T&&(O+=S(a,T,C)+M,T=C+P.length)}return O+S(a,T)}]}),!!a((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!A||R)},{"../internals/advance-string-index":23,"../internals/an-object":25,"../internals/fails":80,"../internals/fix-regexp-well-known-symbol-logic":81,"../internals/function-apply":82,"../internals/function-call":86,"../internals/function-uncurry-this":90,"../internals/get-method":94,"../internals/get-substitution":95,"../internals/is-callable":110,"../internals/is-null-or-undefined":114,"../internals/regexp-exec-abstract":157,"../internals/require-object-coercible":164,"../internals/to-integer-or-infinity":183,"../internals/to-length":184,"../internals/to-string":191,"../internals/well-known-symbol":205}],238:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/array-buffer-view-core"),o=r(e("../internals/array-copy-within")),s=i.aTypedArray;(0,i.exportTypedArrayMethod)("copyWithin",(function(e,t){return o(s(this),e,t,arguments.length>2?arguments[2]:void 0)}))},{"../internals/array-buffer-view-core":27,"../internals/array-copy-within":29,"../internals/function-uncurry-this":90}],239:[function(e,t,n){"use strict";var r=e("../internals/array-buffer-view-core"),i=e("../internals/array-iteration").every,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("every",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},{"../internals/array-buffer-view-core":27,"../internals/array-iteration":35}],240:[function(e,t,n){"use strict";var r=e("../internals/array-buffer-view-core"),i=e("../internals/array-fill"),o=e("../internals/to-big-int"),s=e("../internals/classof"),a=e("../internals/function-call"),u=e("../internals/function-uncurry-this"),l=e("../internals/fails"),c=r.aTypedArray,f=r.exportTypedArrayMethod,d=u("".slice);f("fill",(function(e){var t=arguments.length;c(this);var n="Big"===d(s(this),0,3)?o(e):+e;return a(i,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),l((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})))},{"../internals/array-buffer-view-core":27,"../internals/array-fill":30,"../internals/classof":48,"../internals/fails":80,"../internals/function-call":86,"../internals/function-uncurry-this":90,"../internals/to-big-int":180}],241:[function(e,t,n){"use strict";var r=e("../internals/array-buffer-view-core"),i=e("../internals/array-iteration").filter,o=e("../internals/typed-array-from-species-and-list"),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("filter",(function(e){var t=i(s(this),e,arguments.length>1?arguments[1]:void 0);return o(this,t)}))},{"../internals/array-buffer-view-core":27,"../internals/array-iteration":35,"../internals/typed-array-from-species-and-list":196}],242:[function(e,t,n){"use strict";var r=e("../internals/array-buffer-view-core"),i=e("../internals/array-iteration").findIndex,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},{"../internals/array-buffer-view-core":27,"../internals/array-iteration":35}],243:[function(e,t,n){"use strict";var r=e("../internals/array-buffer-view-core"),i=e("../internals/array-iteration").find,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("find",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},{"../internals/array-buffer-view-core":27,"../internals/array-iteration":35}],244:[function(e,t,n){"use strict";var r=e("../internals/array-buffer-view-core"),i=e("../internals/array-iteration").forEach,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("forEach",(function(e){i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},{"../internals/array-buffer-view-core":27,"../internals/array-iteration":35}],245:[function(e,t,n){"use strict";var r=e("../internals/array-buffer-view-core"),i=e("../internals/array-includes").includes,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("includes",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},{"../internals/array-buffer-view-core":27,"../internals/array-includes":34}],246:[function(e,t,n){"use strict";var r=e("../internals/array-buffer-view-core"),i=e("../internals/array-includes").indexOf,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("indexOf",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},{"../internals/array-buffer-view-core":27,"../internals/array-includes":34}],247:[function(e,t,n){"use strict";var r=e("../internals/global"),i=e("../internals/fails"),o=e("../internals/function-uncurry-this"),s=e("../internals/array-buffer-view-core"),a=e("../modules/es.array.iterator"),u=e("../internals/well-known-symbol")("iterator"),l=r.Uint8Array,c=o(a.values),f=o(a.keys),d=o(a.entries),p=s.aTypedArray,h=s.exportTypedArrayMethod,y=l&&l.prototype,m=!i((function(){y[u].call([1])})),b=!!y&&y.values&&y[u]===y.values&&"values"===y.values.name,g=function(){return c(p(this))};h("entries",(function(){return d(p(this))}),m),h("keys",(function(){return f(p(this))}),m),h("values",g,m||!b,{name:"values"}),h(u,g,m||!b,{name:"values"})},{"../internals/array-buffer-view-core":27,"../internals/fails":80,"../internals/function-uncurry-this":90,"../internals/global":96,"../internals/well-known-symbol":205,"../modules/es.array.iterator":213}],248:[function(e,t,n){"use strict";var r=e("../internals/array-buffer-view-core"),i=e("../internals/function-uncurry-this"),o=r.aTypedArray,s=r.exportTypedArrayMethod,a=i([].join);s("join",(function(e){return a(o(this),e)}))},{"../internals/array-buffer-view-core":27,"../internals/function-uncurry-this":90}],249:[function(e,t,n){"use strict";var r=e("../internals/array-buffer-view-core"),i=e("../internals/function-apply"),o=e("../internals/array-last-index-of"),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return i(o,s(this),t>1?[e,arguments[1]]:[e])}))},{"../internals/array-buffer-view-core":27,"../internals/array-last-index-of":36,"../internals/function-apply":82}],250:[function(e,t,n){"use strict";var r=e("../internals/array-buffer-view-core"),i=e("../internals/array-iteration").map,o=e("../internals/typed-array-species-constructor"),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("map",(function(e){return i(s(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(o(e))(t)}))}))},{"../internals/array-buffer-view-core":27,"../internals/array-iteration":35,"../internals/typed-array-species-constructor":198}],251:[function(e,t,n){"use strict";var r=e("../internals/array-buffer-view-core"),i=e("../internals/array-reduce").right,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return i(o(this),e,t,t>1?arguments[1]:void 0)}))},{"../internals/array-buffer-view-core":27,"../internals/array-reduce":39}],252:[function(e,t,n){"use strict";var r=e("../internals/array-buffer-view-core"),i=e("../internals/array-reduce").left,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return i(o(this),e,t,t>1?arguments[1]:void 0)}))},{"../internals/array-buffer-view-core":27,"../internals/array-reduce":39}],253:[function(e,t,n){"use strict";var r=e("../internals/array-buffer-view-core"),i=r.aTypedArray,o=r.exportTypedArrayMethod,s=Math.floor;o("reverse",(function(){for(var e,t=this,n=i(t).length,r=s(n/2),o=0;o<r;)e=t[o],t[o++]=t[--n],t[n]=e;return t}))},{"../internals/array-buffer-view-core":27}],254:[function(e,t,n){"use strict";var r=e("../internals/global"),i=e("../internals/function-call"),o=e("../internals/array-buffer-view-core"),s=e("../internals/length-of-array-like"),a=e("../internals/to-offset"),u=e("../internals/to-object"),l=e("../internals/fails"),c=r.RangeError,f=r.Int8Array,d=f&&f.prototype,p=d&&d.set,h=o.aTypedArray,y=o.exportTypedArrayMethod,m=!l((function(){var e=new Uint8ClampedArray(2);return i(p,e,{length:1,0:3},1),3!==e[1]})),b=m&&o.NATIVE_ARRAY_BUFFER_VIEWS&&l((function(){var e=new f(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));y("set",(function(e){h(this);var t=a(arguments.length>1?arguments[1]:void 0,1),n=u(e);if(m)return i(p,this,n,t);var r=this.length,o=s(n),l=0;if(o+t>r)throw new c("Wrong length");for(;l<o;)this[t+l]=n[l++]}),!m||b)},{"../internals/array-buffer-view-core":27,"../internals/fails":80,"../internals/function-call":86,"../internals/global":96,"../internals/length-of-array-like":124,"../internals/to-object":185,"../internals/to-offset":186}],255:[function(e,t,n){"use strict";var r=e("../internals/array-buffer-view-core"),i=e("../internals/typed-array-species-constructor"),o=e("../internals/fails"),s=e("../internals/array-slice"),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("slice",(function(e,t){for(var n=s(a(this),e,t),r=i(this),o=0,u=n.length,l=new r(u);u>o;)l[o]=n[o++];return l}),o((function(){new Int8Array(1).slice()})))},{"../internals/array-buffer-view-core":27,"../internals/array-slice":41,"../internals/fails":80,"../internals/typed-array-species-constructor":198}],256:[function(e,t,n){"use strict";var r=e("../internals/array-buffer-view-core"),i=e("../internals/array-iteration").some,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("some",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},{"../internals/array-buffer-view-core":27,"../internals/array-iteration":35}],257:[function(e,t,n){"use strict";var r=e("../internals/global"),i=e("../internals/function-uncurry-this-clause"),o=e("../internals/fails"),s=e("../internals/a-callable"),a=e("../internals/array-sort"),u=e("../internals/array-buffer-view-core"),l=e("../internals/engine-ff-version"),c=e("../internals/engine-is-ie-or-edge"),f=e("../internals/engine-v8-version"),d=e("../internals/engine-webkit-version"),p=u.aTypedArray,h=u.exportTypedArrayMethod,y=r.Uint16Array,m=y&&i(y.prototype.sort),b=!(!m||o((function(){m(new y(2),null)}))&&o((function(){m(new y(2),{})}))),g=!!m&&!o((function(){if(f)return f<74;if(l)return l<67;if(c)return!0;if(d)return d<602;var e,t,n=new y(516),r=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(m(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==r[e])return!0}));h("sort",(function(e){return void 0!==e&&s(e),g?m(this,e):a(p(this),function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!=n?-1:t!=t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e))}),!g||b)},{"../internals/a-callable":19,"../internals/array-buffer-view-core":27,"../internals/array-sort":42,"../internals/engine-ff-version":66,"../internals/engine-is-ie-or-edge":70,"../internals/engine-v8-version":76,"../internals/engine-webkit-version":77,"../internals/fails":80,"../internals/function-uncurry-this-clause":89,"../internals/global":96}],258:[function(e,t,n){"use strict";var r=e("../internals/array-buffer-view-core"),i=e("../internals/to-length"),o=e("../internals/to-absolute-index"),s=e("../internals/typed-array-species-constructor"),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("subarray",(function(e,t){var n=a(this),r=n.length,u=o(e,r);return new(s(n))(n.buffer,n.byteOffset+u*n.BYTES_PER_ELEMENT,i((void 0===t?r:o(t,r))-u))}))},{"../internals/array-buffer-view-core":27,"../internals/to-absolute-index":179,"../internals/to-length":184,"../internals/typed-array-species-constructor":198}],259:[function(e,t,n){"use strict";var r=e("../internals/global"),i=e("../internals/function-apply"),o=e("../internals/array-buffer-view-core"),s=e("../internals/fails"),a=e("../internals/array-slice"),u=r.Int8Array,l=o.aTypedArray,c=o.exportTypedArrayMethod,f=[].toLocaleString,d=!!u&&s((function(){f.call(new u(1))}));c("toLocaleString",(function(){return i(f,d?a(l(this)):l(this),a(arguments))}),s((function(){return[1,2].toLocaleString()!==new u([1,2]).toLocaleString()}))||!s((function(){u.prototype.toLocaleString.call([1,2])})))},{"../internals/array-buffer-view-core":27,"../internals/array-slice":41,"../internals/fails":80,"../internals/function-apply":82,"../internals/global":96}],260:[function(e,t,n){"use strict";var r=e("../internals/array-buffer-view-core").exportTypedArrayMethod,i=e("../internals/fails"),o=e("../internals/global"),s=e("../internals/function-uncurry-this"),a=o.Uint8Array,u=a&&a.prototype||{},l=[].toString,c=s([].join);i((function(){l.call({})}))&&(l=function(){return c(this)});var f=u.toString!==l;r("toString",l,f)},{"../internals/array-buffer-view-core":27,"../internals/fails":80,"../internals/function-uncurry-this":90,"../internals/global":96}],261:[function(e,t,n){"use strict";e("../internals/typed-array-constructor")("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},{"../internals/typed-array-constructor":194}],262:[function(e,t,n){"use strict";var r=e("../internals/global"),i=e("../internals/dom-iterables"),o=e("../internals/dom-token-list-prototype"),s=e("../internals/array-for-each"),a=e("../internals/create-non-enumerable-property"),u=function(e){if(e&&e.forEach!==s)try{a(e,"forEach",s)}catch(t){e.forEach=s}};for(var l in i)i[l]&&u(r[l]&&r[l].prototype);u(o)},{"../internals/array-for-each":31,"../internals/create-non-enumerable-property":52,"../internals/dom-iterables":64,"../internals/dom-token-list-prototype":65,"../internals/global":96}],263:[function(e,t,n){"use strict";var r=e("../internals/global"),i=e("../internals/dom-iterables"),o=e("../internals/dom-token-list-prototype"),s=e("../modules/es.array.iterator"),a=e("../internals/create-non-enumerable-property"),u=e("../internals/well-known-symbol"),l=u("iterator"),c=u("toStringTag"),f=s.values,d=function(e,t){if(e){if(e[l]!==f)try{a(e,l,f)}catch(t){e[l]=f}if(e[c]||a(e,c,t),i[t])for(var n in s)if(e[n]!==s[n])try{a(e,n,s[n])}catch(t){e[n]=s[n]}}};for(var p in i)d(r[p]&&r[p].prototype,p);d(o,"DOMTokenList")},{"../internals/create-non-enumerable-property":52,"../internals/dom-iterables":64,"../internals/dom-token-list-prototype":65,"../internals/global":96,"../internals/well-known-symbol":205,"../modules/es.array.iterator":213}],264:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/global"),o=e("../internals/schedulers-fix")(i.setInterval,!0);r({global:!0,bind:!0,forced:i.setInterval!==o},{setInterval:o})},{"../internals/export":79,"../internals/global":96,"../internals/schedulers-fix":165}],265:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/global"),o=e("../internals/schedulers-fix")(i.setTimeout,!0);r({global:!0,bind:!0,forced:i.setTimeout!==o},{setTimeout:o})},{"../internals/export":79,"../internals/global":96,"../internals/schedulers-fix":165}],266:[function(e,t,n){"use strict";e("../modules/web.set-interval"),e("../modules/web.set-timeout")},{"../modules/web.set-interval":264,"../modules/web.set-timeout":265}],267:[function(e,t,n){"use strict";e("../modules/es.array.iterator");var r=e("../internals/export"),i=e("../internals/global"),o=e("../internals/function-call"),s=e("../internals/function-uncurry-this"),a=e("../internals/descriptors"),u=e("../internals/url-constructor-detection"),l=e("../internals/define-built-in"),c=e("../internals/define-built-in-accessor"),f=e("../internals/define-built-ins"),d=e("../internals/set-to-string-tag"),p=e("../internals/iterator-create-constructor"),h=e("../internals/internal-state"),y=e("../internals/an-instance"),m=e("../internals/is-callable"),b=e("../internals/has-own-property"),g=e("../internals/function-bind-context"),v=e("../internals/classof"),w=e("../internals/an-object"),j=e("../internals/is-object"),E=e("../internals/to-string"),x=e("../internals/object-create"),_=e("../internals/create-property-descriptor"),S=e("../internals/get-iterator"),A=e("../internals/get-iterator-method"),R=e("../internals/create-iter-result-object"),k=e("../internals/validate-arguments-length"),O=e("../internals/well-known-symbol"),T=e("../internals/array-sort"),I=O("iterator"),M="URLSearchParams",P=M+"Iterator",C=h.set,N=h.getterFor(M),L=h.getterFor(P),D=Object.getOwnPropertyDescriptor,B=function(e){if(!a)return i[e];var t=D(i,e);return t&&t.value},U=B("fetch"),F=B("Request"),q=B("Headers"),W=F&&F.prototype,H=q&&q.prototype,z=i.RegExp,V=i.TypeError,G=i.decodeURIComponent,$=i.encodeURIComponent,Y=s("".charAt),J=s([].join),K=s([].push),X=s("".replace),Q=s([].shift),Z=s([].splice),ee=s("".split),te=s("".slice),ne=/\+/g,re=Array(4),ie=function(e){return re[e-1]||(re[e-1]=z("((?:%[\\da-f]{2}){"+e+"})","gi"))},oe=function(e){try{return G(e)}catch(t){return e}},se=function(e){var t=X(e,ne," "),n=4;try{return G(t)}catch(e){for(;n;)t=X(t,ie(n--),oe);return t}},ae=/[!'()~]|%20/g,ue={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},le=function(e){return ue[e]},ce=function(e){return X($(e),ae,le)},fe=p((function(e,t){C(this,{type:P,target:N(e).entries,index:0,kind:t})}),M,(function(){var e=L(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,R(void 0,!0);var r=t[n];switch(e.kind){case"keys":return R(r.key,!1);case"values":return R(r.value,!1)}return R([r.key,r.value],!1)}),!0),de=function(e){this.entries=[],this.url=null,void 0!==e&&(j(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Y(e,0)?te(e,1):e:E(e)))};de.prototype={type:M,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,i,s,a,u,l=this.entries,c=A(e);if(c)for(n=(t=S(e,c)).next;!(r=o(n,t)).done;){if(s=(i=S(w(r.value))).next,(a=o(s,i)).done||(u=o(s,i)).done||!o(s,i).done)throw new V("Expected sequence with length 2");K(l,{key:E(a.value),value:E(u.value)})}else for(var f in e)b(e,f)&&K(l,{key:f,value:E(e[f])})},parseQuery:function(e){if(e)for(var t,n,r=this.entries,i=ee(e,"&"),o=0;o<i.length;)(t=i[o++]).length&&(n=ee(t,"="),K(r,{key:se(Q(n)),value:se(J(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],K(n,ce(e.key)+"="+ce(e.value));return J(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var pe=function(){y(this,he);var e=C(this,new de(arguments.length>0?arguments[0]:void 0));a||(this.size=e.entries.length)},he=pe.prototype;if(f(he,{append:function(e,t){var n=N(this);k(arguments.length,2),K(n.entries,{key:E(e),value:E(t)}),a||this.length++,n.updateURL()},delete:function(e){for(var t=N(this),n=k(arguments.length,1),r=t.entries,i=E(e),o=n<2?void 0:arguments[1],s=void 0===o?o:E(o),u=0;u<r.length;){var l=r[u];if(l.key!==i||void 0!==s&&l.value!==s)u++;else if(Z(r,u,1),void 0!==s)break}a||(this.size=r.length),t.updateURL()},get:function(e){var t=N(this).entries;k(arguments.length,1);for(var n=E(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){var t=N(this).entries;k(arguments.length,1);for(var n=E(e),r=[],i=0;i<t.length;i++)t[i].key===n&&K(r,t[i].value);return r},has:function(e){for(var t=N(this).entries,n=k(arguments.length,1),r=E(e),i=n<2?void 0:arguments[1],o=void 0===i?i:E(i),s=0;s<t.length;){var a=t[s++];if(a.key===r&&(void 0===o||a.value===o))return!0}return!1},set:function(e,t){var n=N(this);k(arguments.length,1);for(var r,i=n.entries,o=!1,s=E(e),u=E(t),l=0;l<i.length;l++)(r=i[l]).key===s&&(o?Z(i,l--,1):(o=!0,r.value=u));o||K(i,{key:s,value:u}),a||(this.size=i.length),n.updateURL()},sort:function(){var e=N(this);T(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=N(this).entries,r=g(e,arguments.length>1?arguments[1]:void 0),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new fe(this,"keys")},values:function(){return new fe(this,"values")},entries:function(){return new fe(this,"entries")}},{enumerable:!0}),l(he,I,he.entries,{name:"entries"}),l(he,"toString",(function(){return N(this).serialize()}),{enumerable:!0}),a&&c(he,"size",{get:function(){return N(this).entries.length},configurable:!0,enumerable:!0}),d(pe,M),r({global:!0,constructor:!0,forced:!u},{URLSearchParams:pe}),!u&&m(q)){var ye=s(H.has),me=s(H.set),be=function(e){if(j(e)){var t,n=e.body;if(v(n)===M)return t=e.headers?new q(e.headers):new q,ye(t,"content-type")||me(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),x(e,{body:_(0,E(n)),headers:_(0,t)})}return e};if(m(U)&&r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return U(e,arguments.length>1?be(arguments[1]):{})}}),m(F)){var ge=function(e){return y(this,W),new F(e,arguments.length>1?be(arguments[1]):{})};W.constructor=ge,ge.prototype=W,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ge})}}t.exports={URLSearchParams:pe,getState:N}},{"../internals/an-instance":24,"../internals/an-object":25,"../internals/array-sort":42,"../internals/classof":48,"../internals/create-iter-result-object":51,"../internals/create-property-descriptor":53,"../internals/define-built-in":56,"../internals/define-built-in-accessor":55,"../internals/define-built-ins":57,"../internals/descriptors":60,"../internals/export":79,"../internals/function-bind-context":83,"../internals/function-call":86,"../internals/function-uncurry-this":90,"../internals/get-iterator":93,"../internals/get-iterator-method":92,"../internals/global":96,"../internals/has-own-property":97,"../internals/internal-state":106,"../internals/is-callable":110,"../internals/is-object":115,"../internals/iterator-create-constructor":120,"../internals/object-create":135,"../internals/set-to-string-tag":167,"../internals/to-string":191,"../internals/url-constructor-detection":200,"../internals/validate-arguments-length":203,"../internals/well-known-symbol":205,"../modules/es.array.iterator":213}],268:[function(e,t,n){"use strict";e("../modules/web.url-search-params.constructor")},{"../modules/web.url-search-params.constructor":267}],269:[function(e,t,n){"use strict";e("../modules/es.string.iterator");var r,i=e("../internals/export"),o=e("../internals/descriptors"),s=e("../internals/url-constructor-detection"),a=e("../internals/global"),u=e("../internals/function-bind-context"),l=e("../internals/function-uncurry-this"),c=e("../internals/define-built-in"),f=e("../internals/define-built-in-accessor"),d=e("../internals/an-instance"),p=e("../internals/has-own-property"),h=e("../internals/object-assign"),y=e("../internals/array-from"),m=e("../internals/array-slice-simple"),b=e("../internals/string-multibyte").codeAt,g=e("../internals/string-punycode-to-ascii"),v=e("../internals/to-string"),w=e("../internals/set-to-string-tag"),j=e("../internals/validate-arguments-length"),E=e("../modules/web.url-search-params.constructor"),x=e("../internals/internal-state"),_=x.set,S=x.getterFor("URL"),A=E.URLSearchParams,R=E.getState,k=a.URL,O=a.TypeError,T=a.parseInt,I=Math.floor,M=Math.pow,P=l("".charAt),C=l(/./.exec),N=l([].join),L=l(1..toString),D=l([].pop),B=l([].push),U=l("".replace),F=l([].shift),q=l("".split),W=l("".slice),H=l("".toLowerCase),z=l([].unshift),V="Invalid scheme",G="Invalid host",$="Invalid port",Y=/[a-z]/i,J=/[\d+-.a-z]/i,K=/\d/,X=/^0x/i,Q=/^[0-7]+$/,Z=/^\d+$/,ee=/^[\da-f]+$/i,te=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ne=/[\0\t\n\r #/:<>?@[\\\]^|]/,re=/^[\u0000-\u0020]+/,ie=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,oe=/[\t\n\r]/g,se=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)z(t,e%256),e=I(e/256);return N(t,".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,i=0,o=0;o<8;o++)0!==e[o]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n&&(t=r,n=i),t}(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=L(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},ae={},ue=h({},ae,{" ":1,'"':1,"<":1,">":1,"`":1}),le=h({},ue,{"#":1,"?":1,"{":1,"}":1}),ce=h({},le,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),fe=function(e,t){var n=b(e,0);return n>32&&n<127&&!p(t,e)?e:encodeURIComponent(e)},de={ftp:21,file:null,http:80,https:443,ws:80,wss:443},pe=function(e,t){var n;return 2===e.length&&C(Y,P(e,0))&&(":"===(n=P(e,1))||!t&&"|"===n)},he=function(e){var t;return e.length>1&&pe(W(e,0,2))&&(2===e.length||"/"===(t=P(e,2))||"\\"===t||"?"===t||"#"===t)},ye=function(e){return"."===e||"%2e"===H(e)},me={},be={},ge={},ve={},we={},je={},Ee={},xe={},_e={},Se={},Ae={},Re={},ke={},Oe={},Te={},Ie={},Me={},Pe={},Ce={},Ne={},Le={},De=function(e,t,n){var r,i,o,s=v(e);if(t){if(i=this.parse(s))throw new O(i);this.searchParams=null}else{if(void 0!==n&&(r=new De(n,!0)),i=this.parse(s,null,r))throw new O(i);(o=R(new A)).bindURL(this),this.searchParams=o}};De.prototype={type:"URL",parse:function(e,t,n){var i,o,s,a,u,l=this,c=t||me,f=0,d="",h=!1,b=!1,g=!1;for(e=v(e),t||(l.scheme="",l.username="",l.password="",l.host=null,l.port=null,l.path=[],l.query=null,l.fragment=null,l.cannotBeABaseURL=!1,e=U(e,re,""),e=U(e,ie,"$1")),e=U(e,oe,""),i=y(e);f<=i.length;){switch(o=i[f],c){case me:if(!o||!C(Y,o)){if(t)return V;c=ge;continue}d+=H(o),c=be;break;case be:if(o&&(C(J,o)||"+"===o||"-"===o||"."===o))d+=H(o);else{if(":"!==o){if(t)return V;d="",c=ge,f=0;continue}if(t&&(l.isSpecial()!==p(de,d)||"file"===d&&(l.includesCredentials()||null!==l.port)||"file"===l.scheme&&!l.host))return;if(l.scheme=d,t)return void(l.isSpecial()&&de[l.scheme]===l.port&&(l.port=null));d="","file"===l.scheme?c=Oe:l.isSpecial()&&n&&n.scheme===l.scheme?c=ve:l.isSpecial()?c=xe:"/"===i[f+1]?(c=we,f++):(l.cannotBeABaseURL=!0,B(l.path,""),c=Ce)}break;case ge:if(!n||n.cannotBeABaseURL&&"#"!==o)return V;if(n.cannotBeABaseURL&&"#"===o){l.scheme=n.scheme,l.path=m(n.path),l.query=n.query,l.fragment="",l.cannotBeABaseURL=!0,c=Le;break}c="file"===n.scheme?Oe:je;continue;case ve:if("/"!==o||"/"!==i[f+1]){c=je;continue}c=_e,f++;break;case we:if("/"===o){c=Se;break}c=Pe;continue;case je:if(l.scheme=n.scheme,o===r)l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=m(n.path),l.query=n.query;else if("/"===o||"\\"===o&&l.isSpecial())c=Ee;else if("?"===o)l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=m(n.path),l.query="",c=Ne;else{if("#"!==o){l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=m(n.path),l.path.length--,c=Pe;continue}l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=m(n.path),l.query=n.query,l.fragment="",c=Le}break;case Ee:if(!l.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,c=Pe;continue}c=Se}else c=_e;break;case xe:if(c=_e,"/"!==o||"/"!==P(d,f+1))continue;f++;break;case _e:if("/"!==o&&"\\"!==o){c=Se;continue}break;case Se:if("@"===o){h&&(d="%40"+d),h=!0,s=y(d);for(var w=0;w<s.length;w++){var j=s[w];if(":"!==j||g){var E=fe(j,ce);g?l.password+=E:l.username+=E}else g=!0}d=""}else if(o===r||"/"===o||"?"===o||"#"===o||"\\"===o&&l.isSpecial()){if(h&&""===d)return"Invalid authority";f-=y(d).length+1,d="",c=Ae}else d+=o;break;case Ae:case Re:if(t&&"file"===l.scheme){c=Ie;continue}if(":"!==o||b){if(o===r||"/"===o||"?"===o||"#"===o||"\\"===o&&l.isSpecial()){if(l.isSpecial()&&""===d)return G;if(t&&""===d&&(l.includesCredentials()||null!==l.port))return;if(a=l.parseHost(d))return a;if(d="",c=Me,t)return;continue}"["===o?b=!0:"]"===o&&(b=!1),d+=o}else{if(""===d)return G;if(a=l.parseHost(d))return a;if(d="",c=ke,t===Re)return}break;case ke:if(!C(K,o)){if(o===r||"/"===o||"?"===o||"#"===o||"\\"===o&&l.isSpecial()||t){if(""!==d){var x=T(d,10);if(x>65535)return $;l.port=l.isSpecial()&&x===de[l.scheme]?null:x,d=""}if(t)return;c=Me;continue}return $}d+=o;break;case Oe:if(l.scheme="file","/"===o||"\\"===o)c=Te;else{if(!n||"file"!==n.scheme){c=Pe;continue}switch(o){case r:l.host=n.host,l.path=m(n.path),l.query=n.query;break;case"?":l.host=n.host,l.path=m(n.path),l.query="",c=Ne;break;case"#":l.host=n.host,l.path=m(n.path),l.query=n.query,l.fragment="",c=Le;break;default:he(N(m(i,f),""))||(l.host=n.host,l.path=m(n.path),l.shortenPath()),c=Pe;continue}}break;case Te:if("/"===o||"\\"===o){c=Ie;break}n&&"file"===n.scheme&&!he(N(m(i,f),""))&&(pe(n.path[0],!0)?B(l.path,n.path[0]):l.host=n.host),c=Pe;continue;case Ie:if(o===r||"/"===o||"\\"===o||"?"===o||"#"===o){if(!t&&pe(d))c=Pe;else if(""===d){if(l.host="",t)return;c=Me}else{if(a=l.parseHost(d))return a;if("localhost"===l.host&&(l.host=""),t)return;d="",c=Me}continue}d+=o;break;case Me:if(l.isSpecial()){if(c=Pe,"/"!==o&&"\\"!==o)continue}else if(t||"?"!==o)if(t||"#"!==o){if(o!==r&&(c=Pe,"/"!==o))continue}else l.fragment="",c=Le;else l.query="",c=Ne;break;case Pe:if(o===r||"/"===o||"\\"===o&&l.isSpecial()||!t&&("?"===o||"#"===o)){if(".."===(u=H(u=d))||"%2e."===u||".%2e"===u||"%2e%2e"===u?(l.shortenPath(),"/"===o||"\\"===o&&l.isSpecial()||B(l.path,"")):ye(d)?"/"===o||"\\"===o&&l.isSpecial()||B(l.path,""):("file"===l.scheme&&!l.path.length&&pe(d)&&(l.host&&(l.host=""),d=P(d,0)+":"),B(l.path,d)),d="","file"===l.scheme&&(o===r||"?"===o||"#"===o))for(;l.path.length>1&&""===l.path[0];)F(l.path);"?"===o?(l.query="",c=Ne):"#"===o&&(l.fragment="",c=Le)}else d+=fe(o,le);break;case Ce:"?"===o?(l.query="",c=Ne):"#"===o?(l.fragment="",c=Le):o!==r&&(l.path[0]+=fe(o,ae));break;case Ne:t||"#"!==o?o!==r&&("'"===o&&l.isSpecial()?l.query+="%27":l.query+="#"===o?"%23":fe(o,ae)):(l.fragment="",c=Le);break;case Le:o!==r&&(l.fragment+=fe(o,ue))}f++}},parseHost:function(e){var t,n,r;if("["===P(e,0)){if("]"!==P(e,e.length-1))return G;if(t=function(e){var t,n,r,i,o,s,a,u=[0,0,0,0,0,0,0,0],l=0,c=null,f=0,d=function(){return P(e,f)};if(":"===d()){if(":"!==P(e,1))return;f+=2,c=++l}for(;d();){if(8===l)return;if(":"!==d()){for(t=n=0;n<4&&C(ee,d());)t=16*t+T(d(),16),f++,n++;if("."===d()){if(0===n)return;if(f-=n,l>6)return;for(r=0;d();){if(i=null,r>0){if(!("."===d()&&r<4))return;f++}if(!C(K,d()))return;for(;C(K,d());){if(o=T(d(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;f++}u[l]=256*u[l]+i,2!=++r&&4!==r||l++}if(4!==r)return;break}if(":"===d()){if(f++,!d())return}else if(d())return;u[l++]=t}else{if(null!==c)return;f++,c=++l}}if(null!==c)for(s=l-c,l=7;0!==l&&s>0;)a=u[l],u[l--]=u[c+s-1],u[c+--s]=a;else if(8!==l)return;return u}(W(e,1,-1)),!t)return G;this.host=t}else if(this.isSpecial()){if(e=g(e),C(te,e))return G;if(t=function(e){var t,n,r,i,o,s,a,u=q(e,".");if(u.length&&""===u[u.length-1]&&u.length--,(t=u.length)>4)return e;for(n=[],r=0;r<t;r++){if(""===(i=u[r]))return e;if(o=10,i.length>1&&"0"===P(i,0)&&(o=C(X,i)?16:8,i=W(i,8===o?1:2)),""===i)s=0;else{if(!C(10===o?Z:8===o?Q:ee,i))return e;s=T(i,o)}B(n,s)}for(r=0;r<t;r++)if(s=n[r],r===t-1){if(s>=M(256,5-t))return null}else if(s>255)return null;for(a=D(n),r=0;r<n.length;r++)a+=n[r]*M(256,3-r);return a}(e),null===t)return G;this.host=t}else{if(C(ne,e))return G;for(t="",n=y(e),r=0;r<n.length;r++)t+=fe(n[r],ae);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return p(de,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&pe(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,s=e.path,a=e.query,u=e.fragment,l=t+":";return null!==i?(l+="//",e.includesCredentials()&&(l+=n+(r?":"+r:"")+"@"),l+=se(i),null!==o&&(l+=":"+o)):"file"===t&&(l+="//"),l+=e.cannotBeABaseURL?s[0]:s.length?"/"+N(s,"/"):"",null!==a&&(l+="?"+a),null!==u&&(l+="#"+u),l},setHref:function(e){var t=this.parse(e);if(t)throw new O(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new Be(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+se(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(v(e)+":",me)},getUsername:function(){return this.username},setUsername:function(e){var t=y(v(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=fe(t[n],ce)}},getPassword:function(){return this.password},setPassword:function(e){var t=y(v(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=fe(t[n],ce)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?se(e):se(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Ae)},getHostname:function(){var e=this.host;return null===e?"":se(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Re)},getPort:function(){var e=this.port;return null===e?"":v(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=v(e))?this.port=null:this.parse(e,ke))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+N(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Me))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=v(e))?this.query=null:("?"===P(e,0)&&(e=W(e,1)),this.query="",this.parse(e,Ne)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=v(e))?("#"===P(e,0)&&(e=W(e,1)),this.fragment="",this.parse(e,Le)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Be=function(e){var t=d(this,Ue),n=j(arguments.length,1)>1?arguments[1]:void 0,r=_(t,new De(e,!1,n));o||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},Ue=Be.prototype,Fe=function(e,t){return{get:function(){return S(this)[e]()},set:t&&function(e){return S(this)[t](e)},configurable:!0,enumerable:!0}};if(o&&(f(Ue,"href",Fe("serialize","setHref")),f(Ue,"origin",Fe("getOrigin")),f(Ue,"protocol",Fe("getProtocol","setProtocol")),f(Ue,"username",Fe("getUsername","setUsername")),f(Ue,"password",Fe("getPassword","setPassword")),f(Ue,"host",Fe("getHost","setHost")),f(Ue,"hostname",Fe("getHostname","setHostname")),f(Ue,"port",Fe("getPort","setPort")),f(Ue,"pathname",Fe("getPathname","setPathname")),f(Ue,"search",Fe("getSearch","setSearch")),f(Ue,"searchParams",Fe("getSearchParams")),f(Ue,"hash",Fe("getHash","setHash"))),c(Ue,"toJSON",(function(){return S(this).serialize()}),{enumerable:!0}),c(Ue,"toString",(function(){return S(this).serialize()}),{enumerable:!0}),k){var qe=k.createObjectURL,We=k.revokeObjectURL;qe&&c(Be,"createObjectURL",u(qe,k)),We&&c(Be,"revokeObjectURL",u(We,k))}w(Be,"URL"),i({global:!0,constructor:!0,forced:!s,sham:!o},{URL:Be})},{"../internals/an-instance":24,"../internals/array-from":33,"../internals/array-slice-simple":40,"../internals/define-built-in":56,"../internals/define-built-in-accessor":55,"../internals/descriptors":60,"../internals/export":79,"../internals/function-bind-context":83,"../internals/function-uncurry-this":90,"../internals/global":96,"../internals/has-own-property":97,"../internals/internal-state":106,"../internals/object-assign":134,"../internals/set-to-string-tag":167,"../internals/string-multibyte":172,"../internals/string-punycode-to-ascii":173,"../internals/to-string":191,"../internals/url-constructor-detection":200,"../internals/validate-arguments-length":203,"../modules/es.string.iterator":236,"../modules/web.url-search-params.constructor":267}],270:[function(e,t,n){"use strict";e("../modules/web.url.constructor")},{"../modules/web.url.constructor":269}],271:[function(e,t,n){function r(e){return Object.prototype.toString.call(e)}n.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},n.isBoolean=function(e){return"boolean"==typeof e},n.isNull=function(e){return null===e},n.isNullOrUndefined=function(e){return null==e},n.isNumber=function(e){return"number"==typeof e},n.isString=function(e){return"string"==typeof e},n.isSymbol=function(e){return"symbol"==typeof e},n.isUndefined=function(e){return void 0===e},n.isRegExp=function(e){return"[object RegExp]"===r(e)},n.isObject=function(e){return"object"==typeof e&&null!==e},n.isDate=function(e){return"[object Date]"===r(e)},n.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},n.isFunction=function(e){return"function"==typeof e},n.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},n.isBuffer=e("buffer").Buffer.isBuffer},{buffer:11}],272:[function(e,t,n){!function(e){"use strict";!function(e){if("object"==typeof n)t.exports=e();else{var r=this,i=r.createError,o=r.createError=e();o.noConflict=function(){return r.createError=i,o}}}((function(){var e=Object.prototype.toString;return function(){for(var e=new Array(arguments.length),r=0;r<e.length;++r)e[r]=arguments[r];var i=function(e){return 0===e.length?"":t(e[0])?e[1]||"":e[0]}(e),o=function(e){return 0===e.length?Error:t(e[0])?e[0]:Error}(e),s=function(e){return 0===e.length?null:t(e[0])?e[2]:e[1]}(e);function a(e,t){n(this,s),n(this,t),this.message=e||this.message,e instanceof Error?(this.message=e.message,this.stack=e.stack):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}function u(){this.constructor=a}return u.prototype=o.prototype,a.prototype=new u,a.prototype.name=""+i||"CustomError",a};function t(e){return"function"==typeof e}function n(t,n){if((a=n)&&"object"==typeof a&&"[object Object]"===e.call(a))for(var i=function(e){var t=[];for(var n in e)t.push(n);return t}(n),o=0,s=i.length;o<s;++o)t[i[o]]=r(n[i[o]]);var a}function r(e){if(null==e||"object"!=typeof e)return e;var t=e.constructor?e.constructor():Object.create(null);for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}}))}()},{}],273:[function(e,t,n){"use strict";var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===i}(e)}(e)};var i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function s(e,t,n){return e.concat(t).map((function(e){return o(e,n)}))}function a(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function u(e,t){try{return t in e}catch(e){return!1}}function l(e,t,n){var r={};return n.isMergeableObject(e)&&a(e).forEach((function(t){r[t]=o(e[t],n)})),a(t).forEach((function(i){(function(e,t){return u(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(u(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return c;var n=t.customMerge(e);return"function"==typeof n?n:c}(i,n)(e[i],t[i],n):r[i]=o(t[i],n))})),r}function c(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||s,n.isMergeableObject=n.isMergeableObject||r,n.cloneUnlessOtherwiseSpecified=o;var i=Array.isArray(t);return i===Array.isArray(e)?i?n.arrayMerge(e,t,n):l(e,t,n):o(t,n)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return c(e,n,t)}),{})};var f=c;t.exports=f},{}],274:[function(e,t,n){"use strict";var r=e("has-property-descriptors")(),i=e("get-intrinsic"),o=r&&i("%Object.defineProperty%",!0);if(o)try{o({},"a",{value:1})}catch(e){o=!1}var s=i("%SyntaxError%"),a=i("%TypeError%"),u=e("gopd");t.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new a("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new a("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new a("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new a("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new a("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new a("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],f=!!u&&u(e,t);if(o)o(e,t,{configurable:null===l&&f?f.configurable:!l,enumerable:null===r&&f?f.enumerable:!r,value:n,writable:null===i&&f?f.writable:!i});else{if(!c&&(r||i||l))throw new s("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},{"get-intrinsic":288,gopd:293,"has-property-descriptors":294}],275:[function(e,t,n){"use strict";t.exports=function(){for(var e=0;e<arguments.length;e++)if(void 0!==arguments[e])return arguments[e]}},{}],276:[function(e,t,n){var r,i=e("util"),o=e("global"),s=e("events");t.exports=(r=function(){if(o._singletonDespotInstance)return o._singletonDespotInstance;o._singletonDespotInstance=this,s.call(this)},i.inherits(r,s),new r)},{events:281,global:292,util:359}],277:[function(e,t,n){"use strict";var r=e("global/document"),i=e("geval"),o=e("./keys");function s(){}t.exports=function(){var e=o(r);return e?{visible:t,onChange:i((function(n){r.addEventListener(e.event,(function(){n(t())}))}))}:function(){return{visible:function(){return!0},onChange:s}}();function t(){return!r[e.hidden]}}},{"./keys":278,geval:290,"global/document":291}],278:[function(e,t,n){"use strict";t.exports=function(e){var t=function(e){if(null!=e.hidden)return"";if(null!=e.mozHidden)return"moz";if(null!=e.msHidden)return"ms";if(null!=e.webkitHidden)return"webkit"}(e);if(null==t)return;return{hidden:(n=t+"Hidden",n.substring(0,1).toLowerCase()+n.substring(1)),event:t+"visibilitychange"};var n}},{}],279:[function(e,t,n){t.exports=function(e){var t=e.Element.prototype;"function"!=typeof t.matches&&(t.matches=t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||function(e){for(var t=this,n=(t.document||t.ownerDocument).querySelectorAll(e),r=0;n[r]&&n[r]!==t;)++r;return Boolean(n[r])}),"function"!=typeof t.closest&&(t.closest=function(e){for(var t=this;t&&1===t.nodeType;){if(t.matches(e))return t;t=t.parentNode}return null})}},{}],280:[function(e,t,n){(function(n){(function(){var r=e("once"),i=function(){},o=function(e,t,s){if("function"==typeof t)return o(e,null,t);t||(t={}),s=r(s||i);var a=e._writableState,u=e._readableState,l=t.readable||!1!==t.readable&&e.readable,c=t.writable||!1!==t.writable&&e.writable,f=!1,d=function(){e.writable||p()},p=function(){c=!1,l||s.call(e)},h=function(){l=!1,c||s.call(e)},y=function(t){s.call(e,t?new Error("exited with error code: "+t):null)},m=function(t){s.call(e,t)},b=function(){n.nextTick(g)},g=function(){if(!f)return(!l||u&&u.ended&&!u.destroyed)&&(!c||a&&a.ended&&!a.destroyed)?void 0:s.call(e,new Error("premature close"))},v=function(){e.req.on("finish",p)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(e)?c&&!a&&(e.on("end",d),e.on("close",d)):(e.on("complete",p),e.on("abort",b),e.req?v():e.on("request",v)),function(e){return e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length}(e)&&e.on("exit",y),e.on("end",h),e.on("finish",p),!1!==t.error&&e.on("error",m),e.on("close",b),function(){f=!0,e.removeListener("complete",p),e.removeListener("abort",b),e.removeListener("request",v),e.req&&e.req.removeListener("finish",p),e.removeListener("end",d),e.removeListener("close",d),e.removeListener("finish",p),e.removeListener("exit",y),e.removeListener("end",h),e.removeListener("error",m),e.removeListener("close",b)}};t.exports=o}).call(this)}).call(this,e("_process"))},{_process:322,once:319}],281:[function(e,t,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}t.exports=a,t.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}b(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&b(e,"error",t,n)}(e,i,{once:!0})}))},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var u=10;function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function f(e,t,n,r){var i,o,s,a;if(l(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=c(e))>0&&s.length>i&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,a=u,console&&console.warn&&console.warn(a)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=d.bind(r);return i.listener=n,r.wrapFn=i,i}function h(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):m(i,i.length)}function y(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function m(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function b(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){r.once&&e.removeEventListener(t,i),n(o)}))}}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");u=e}}),a.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},a.prototype.getMaxListeners=function(){return c(this)},a.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)o(u,this,t);else{var l=u.length,c=m(u,l);for(n=0;n<l;++n)o(c[n],this,t)}return!0},a.prototype.addListener=function(e,t){return f(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return f(this,e,t,!0)},a.prototype.once=function(e,t){return l(t),this.on(e,p(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,p(this,e,t)),this},a.prototype.removeListener=function(e,t){var n,r,i,o,s;if(l(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},a.prototype.listeners=function(e){return h(this,e,!0)},a.prototype.rawListeners=function(e){return h(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):y.call(e,t)},a.prototype.listenerCount=y,a.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},{}],282:[function(e,t,n){t.exports=u,u.default=u,u.stable=d,u.stableStringify=d;var r="[...]",i="[Circular]",o=[],s=[];function a(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function u(e,t,n,r){var i;void 0===r&&(r=a()),c(e,"",0,[],void 0,0,r);try{i=0===s.length?JSON.stringify(e,t,n):JSON.stringify(e,h(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var u=o.pop();4===u.length?Object.defineProperty(u[0],u[1],u[3]):u[0][u[1]]=u[2]}}return i}function l(e,t,n,r){var i=Object.getOwnPropertyDescriptor(r,n);void 0!==i.get?i.configurable?(Object.defineProperty(r,n,{value:e}),o.push([r,n,t,i])):s.push([t,n,e]):(r[n]=e,o.push([r,n,t]))}function c(e,t,n,o,s,a,u){var f;if(a+=1,"object"==typeof e&&null!==e){for(f=0;f<o.length;f++)if(o[f]===e)return void l(i,e,t,s);if(void 0!==u.depthLimit&&a>u.depthLimit)return void l(r,e,t,s);if(void 0!==u.edgesLimit&&n+1>u.edgesLimit)return void l(r,e,t,s);if(o.push(e),Array.isArray(e))for(f=0;f<e.length;f++)c(e[f],f,f,o,e,a,u);else{var d=Object.keys(e);for(f=0;f<d.length;f++){var p=d[f];c(e[p],p,f,o,e,a,u)}}o.pop()}}function f(e,t){return e<t?-1:e>t?1:0}function d(e,t,n,r){void 0===r&&(r=a());var i,u=p(e,"",0,[],void 0,0,r)||e;try{i=0===s.length?JSON.stringify(u,t,n):JSON.stringify(u,h(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var l=o.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return i}function p(e,t,n,s,a,u,c){var d;if(u+=1,"object"==typeof e&&null!==e){for(d=0;d<s.length;d++)if(s[d]===e)return void l(i,e,t,a);try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==c.depthLimit&&u>c.depthLimit)return void l(r,e,t,a);if(void 0!==c.edgesLimit&&n+1>c.edgesLimit)return void l(r,e,t,a);if(s.push(e),Array.isArray(e))for(d=0;d<e.length;d++)p(e[d],d,d,s,e,u,c);else{var h={},y=Object.keys(e).sort(f);for(d=0;d<y.length;d++){var m=y[d];p(e[m],m,d,s,e,u,c),h[m]=e[m]}if(void 0===a)return h;o.push([a,t,e]),a[t]=h}s.pop()}}function h(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(s.length>0)for(var r=0;r<s.length;r++){var i=s[r];if(i[1]===t&&i[0]===n){n=i[2],s.splice(r,1);break}}return e.call(this,t,n)}}},{}],283:[function(e,t,n){
|
|
21
|
+
"document"in self&&(!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g"))?function(e){"use strict";if("Element"in e){var t="classList",n="prototype",r=e.Element[n],i=Object,o=String[n].trim||function(){return this.replace(/^\s+|\s+$/g,"")},a=Array[n].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1},u=function(e,t){this.name=e,this.code=DOMException[e],this.message=t},s=function(e,t){if(""===t)throw new u("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(t))throw new u("INVALID_CHARACTER_ERR","String contains an invalid character");return a.call(e,t)},l=function(e){for(var t=o.call(e.getAttribute("class")||""),n=t?t.split(/\s+/):[],r=0,i=n.length;r<i;r++)this.push(n[r]);this._updateClassName=function(){e.setAttribute("class",this.toString())}},c=l[n]=[],f=function(){return new l(this)};if(u[n]=Error[n],c.item=function(e){return this[e]||null},c.contains=function(e){return-1!==s(this,e+="")},c.add=function(){var e,t=arguments,n=0,r=t.length,i=!1;do{-1===s(this,e=t[n]+"")&&(this.push(e),i=!0)}while(++n<r);i&&this._updateClassName()},c.remove=function(){var e,t,n=arguments,r=0,i=n.length,o=!1;do{for(t=s(this,e=n[r]+"");-1!==t;)this.splice(t,1),o=!0,t=s(this,e)}while(++r<i);o&&this._updateClassName()},c.toggle=function(e,t){e+="";var n=this.contains(e),r=n?!0!==t&&"remove":!1!==t&&"add";return r&&this[r](e),!0===t||!1===t?t:!n},c.toString=function(){return this.join(" ")},i.defineProperty){var d={get:f,enumerable:!0,configurable:!0};try{i.defineProperty(r,t,d)}catch(e){-2146823252===e.number&&(d.enumerable=!1,i.defineProperty(r,t,d))}}else i[n].__defineGetter__&&r.__defineGetter__(t,f)}}(self):function(){"use strict";var e=document.createElement("_");if(e.classList.add("c1","c2"),!e.classList.contains("c2")){var t=function(e){var t=DOMTokenList.prototype[e];DOMTokenList.prototype[e]=function(e){var n,r=arguments.length;for(n=0;n<r;n++)e=arguments[n],t.call(this,e)}};t("add"),t("remove")}if(e.classList.toggle("c3",!1),e.classList.contains("c3")){var n=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return 1 in arguments&&!this.contains(e)==!t?t:n.call(this,e)}}e=null}())},{}],17:[function(e,t,n){function r(e){if(e)return function(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}(e)}void 0!==t&&(t.exports=r),r.prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<r.length;i++)if((n=r[i])===t||n.fn===t){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},r.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,t)}return this},r.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},r.prototype.hasListeners=function(e){return!!this.listeners(e).length}},{}],18:[function(e,t,n){t.exports=function(e,t){if(e.contains)return e.contains(t);var n=e.compareDocumentPosition(t);return 0===n||16&n}},{}],19:[function(e,t,n){function r(e){return Object.prototype.toString.call(e)}n.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},n.isBoolean=function(e){return"boolean"==typeof e},n.isNull=function(e){return null===e},n.isNullOrUndefined=function(e){return null==e},n.isNumber=function(e){return"number"==typeof e},n.isString=function(e){return"string"==typeof e},n.isSymbol=function(e){return"symbol"==typeof e},n.isUndefined=function(e){return void 0===e},n.isRegExp=function(e){return"[object RegExp]"===r(e)},n.isObject=function(e){return"object"==typeof e&&null!==e},n.isDate=function(e){return"[object Date]"===r(e)},n.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},n.isFunction=function(e){return"function"==typeof e},n.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},n.isBuffer=e("buffer").Buffer.isBuffer},{buffer:11}],20:[function(e,t,n){!function(e){"use strict";!function(e){if("object"==typeof n)t.exports=e();else{var r=this,i=r.createError,o=r.createError=e();o.noConflict=function(){return r.createError=i,o}}}((function(){var e=Object.prototype.toString;return function(){for(var e=new Array(arguments.length),r=0;r<e.length;++r)e[r]=arguments[r];var i=function(e){return 0===e.length?"":t(e[0])?e[1]||"":e[0]}(e),o=function(e){return 0===e.length?Error:t(e[0])?e[0]:Error}(e),a=function(e){return 0===e.length?null:t(e[0])?e[2]:e[1]}(e);function u(e,t){n(this,a),n(this,t),this.message=e||this.message,e instanceof Error?(this.message=e.message,this.stack=e.stack):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}function s(){this.constructor=u}return s.prototype=o.prototype,u.prototype=new s,u.prototype.name=""+i||"CustomError",u};function t(e){return"function"==typeof e}function n(t,n){if((u=n)&&"object"==typeof u&&"[object Object]"===e.call(u))for(var i=function(e){var t=[];for(var n in e)t.push(n);return t}(n),o=0,a=i.length;o<a;++o)t[i[o]]=r(n[i[o]]);var u}function r(e){if(null==e||"object"!=typeof e)return e;var t=e.constructor?e.constructor():Object.create(null);for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}}))}()},{}],21:[function(e,t,n){"use strict";var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===i}(e)}(e)};var i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function a(e,t,n){return e.concat(t).map((function(e){return o(e,n)}))}function u(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function s(e,t){try{return t in e}catch(e){return!1}}function l(e,t,n){var r={};return n.isMergeableObject(e)&&u(e).forEach((function(t){r[t]=o(e[t],n)})),u(t).forEach((function(i){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(s(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return c;var n=t.customMerge(e);return"function"==typeof n?n:c}(i,n)(e[i],t[i],n):r[i]=o(t[i],n))})),r}function c(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||a,n.isMergeableObject=n.isMergeableObject||r,n.cloneUnlessOtherwiseSpecified=o;var i=Array.isArray(t);return i===Array.isArray(e)?i?n.arrayMerge(e,t,n):l(e,t,n):o(t,n)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return c(e,n,t)}),{})};var f=c;t.exports=f},{}],22:[function(e,t,n){"use strict";var r=e("es-define-property"),i=e("es-errors/syntax"),o=e("es-errors/type"),a=e("gopd");t.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,s=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],f=!!a&&a(e,t);if(r)r(e,t,{configurable:null===l&&f?f.configurable:!l,enumerable:null===u&&f?f.enumerable:!u,value:n,writable:null===s&&f?f.writable:!s});else{if(!c&&(u||s||l))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},{"es-define-property":29,"es-errors/syntax":34,"es-errors/type":35,gopd:49}],23:[function(e,t,n){"use strict";t.exports=function(){for(var e=0;e<arguments.length;e++)if(void 0!==arguments[e])return arguments[e]}},{}],24:[function(e,t,n){var r,i=e("util"),o=e("global"),a=e("events");t.exports=(r=function(){if(o._singletonDespotInstance)return o._singletonDespotInstance;o._singletonDespotInstance=this,a.call(this)},i.inherits(r,a),new r)},{events:37,global:48,util:116}],25:[function(e,t,n){"use strict";var r=e("global/document"),i=e("geval"),o=e("./keys");function a(){}t.exports=function(){var e=o(r);return e?{visible:t,onChange:i((function(n){r.addEventListener(e.event,(function(){n(t())}))}))}:function(){return{visible:function(){return!0},onChange:a}}();function t(){return!r[e.hidden]}}},{"./keys":26,geval:46,"global/document":47}],26:[function(e,t,n){"use strict";t.exports=function(e){var t=function(e){if(null!=e.hidden)return"";if(null!=e.mozHidden)return"moz";if(null!=e.msHidden)return"ms";if(null!=e.webkitHidden)return"webkit"}(e);if(null==t)return;return{hidden:(n=t+"Hidden",n.substring(0,1).toLowerCase()+n.substring(1)),event:t+"visibilitychange"};var n}},{}],27:[function(e,t,n){t.exports=function(e){var t=e.Element.prototype;"function"!=typeof t.matches&&(t.matches=t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||function(e){for(var t=this,n=(t.document||t.ownerDocument).querySelectorAll(e),r=0;n[r]&&n[r]!==t;)++r;return Boolean(n[r])}),"function"!=typeof t.closest&&(t.closest=function(e){for(var t=this;t&&1===t.nodeType;){if(t.matches(e))return t;t=t.parentNode}return null})}},{}],28:[function(e,t,n){(function(n){(function(){var r=e("once"),i=function(){},o=function(e,t,a){if("function"==typeof t)return o(e,null,t);t||(t={}),a=r(a||i);var u=e._writableState,s=e._readableState,l=t.readable||!1!==t.readable&&e.readable,c=t.writable||!1!==t.writable&&e.writable,f=!1,d=function(){e.writable||p()},p=function(){c=!1,l||a.call(e)},h=function(){l=!1,c||a.call(e)},m=function(t){a.call(e,t?new Error("exited with error code: "+t):null)},y=function(t){a.call(e,t)},b=function(){n.nextTick(g)},g=function(){if(!f)return(!l||s&&s.ended&&!s.destroyed)&&(!c||u&&u.ended&&!u.destroyed)?void 0:a.call(e,new Error("premature close"))},v=function(){e.req.on("finish",p)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(e)?c&&!u&&(e.on("end",d),e.on("close",d)):(e.on("complete",p),e.on("abort",b),e.req?v():e.on("request",v)),function(e){return e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length}(e)&&e.on("exit",m),e.on("end",h),e.on("finish",p),!1!==t.error&&e.on("error",y),e.on("close",b),function(){f=!0,e.removeListener("complete",p),e.removeListener("abort",b),e.removeListener("request",v),e.req&&e.req.removeListener("finish",p),e.removeListener("end",d),e.removeListener("close",d),e.removeListener("finish",p),e.removeListener("exit",m),e.removeListener("end",h),e.removeListener("error",y),e.removeListener("close",b)}};t.exports=o}).call(this)}).call(this,e("_process"))},{_process:79,once:75}],29:[function(e,t,n){"use strict";var r=e("get-intrinsic")("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch(e){r=!1}t.exports=r},{"get-intrinsic":44}],30:[function(e,t,n){"use strict";t.exports=EvalError},{}],31:[function(e,t,n){"use strict";t.exports=Error},{}],32:[function(e,t,n){"use strict";t.exports=RangeError},{}],33:[function(e,t,n){"use strict";t.exports=ReferenceError},{}],34:[function(e,t,n){"use strict";t.exports=SyntaxError},{}],35:[function(e,t,n){"use strict";t.exports=TypeError},{}],36:[function(e,t,n){"use strict";t.exports=URIError},{}],37:[function(e,t,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function u(){u.init.call(this)}t.exports=u,t.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}b(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&b(e,"error",t,n)}(e,i,{once:!0})}))},u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var s=10;function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?u.defaultMaxListeners:e._maxListeners}function f(e,t,n,r){var i,o,a,u;if(l(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=c(e))>0&&a.length>i&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,u=s,console&&console.warn&&console.warn(u)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=d.bind(r);return i.listener=n,r.wrapFn=i,i}function h(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):y(i,i.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function y(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function b(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){r.once&&e.removeEventListener(t,i),n(o)}))}}Object.defineProperty(u,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),u.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},u.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},u.prototype.getMaxListeners=function(){return c(this)},u.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var u=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw u.context=a,u}var s=i[e];if(void 0===s)return!1;if("function"==typeof s)o(s,this,t);else{var l=s.length,c=y(s,l);for(n=0;n<l;++n)o(c[n],this,t)}return!0},u.prototype.addListener=function(e,t){return f(this,e,t,!1)},u.prototype.on=u.prototype.addListener,u.prototype.prependListener=function(e,t){return f(this,e,t,!0)},u.prototype.once=function(e,t){return l(t),this.on(e,p(this,e,t)),this},u.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,p(this,e,t)),this},u.prototype.removeListener=function(e,t){var n,r,i,o,a;if(l(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},u.prototype.off=u.prototype.removeListener,u.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},u.prototype.listeners=function(e){return h(this,e,!0)},u.prototype.rawListeners=function(e){return h(this,e,!1)},u.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},u.prototype.listenerCount=m,u.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},{}],38:[function(e,t,n){t.exports=s,s.default=s,s.stable=d,s.stableStringify=d;var r="[...]",i="[Circular]",o=[],a=[];function u(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function s(e,t,n,r){var i;void 0===r&&(r=u()),c(e,"",0,[],void 0,0,r);try{i=0===a.length?JSON.stringify(e,t,n):JSON.stringify(e,h(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var s=o.pop();4===s.length?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return i}function l(e,t,n,r){var i=Object.getOwnPropertyDescriptor(r,n);void 0!==i.get?i.configurable?(Object.defineProperty(r,n,{value:e}),o.push([r,n,t,i])):a.push([t,n,e]):(r[n]=e,o.push([r,n,t]))}function c(e,t,n,o,a,u,s){var f;if(u+=1,"object"==typeof e&&null!==e){for(f=0;f<o.length;f++)if(o[f]===e)return void l(i,e,t,a);if(void 0!==s.depthLimit&&u>s.depthLimit)return void l(r,e,t,a);if(void 0!==s.edgesLimit&&n+1>s.edgesLimit)return void l(r,e,t,a);if(o.push(e),Array.isArray(e))for(f=0;f<e.length;f++)c(e[f],f,f,o,e,u,s);else{var d=Object.keys(e);for(f=0;f<d.length;f++){var p=d[f];c(e[p],p,f,o,e,u,s)}}o.pop()}}function f(e,t){return e<t?-1:e>t?1:0}function d(e,t,n,r){void 0===r&&(r=u());var i,s=p(e,"",0,[],void 0,0,r)||e;try{i=0===a.length?JSON.stringify(s,t,n):JSON.stringify(s,h(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var l=o.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return i}function p(e,t,n,a,u,s,c){var d;if(s+=1,"object"==typeof e&&null!==e){for(d=0;d<a.length;d++)if(a[d]===e)return void l(i,e,t,u);try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==c.depthLimit&&s>c.depthLimit)return void l(r,e,t,u);if(void 0!==c.edgesLimit&&n+1>c.edgesLimit)return void l(r,e,t,u);if(a.push(e),Array.isArray(e))for(d=0;d<e.length;d++)p(e[d],d,d,a,e,s,c);else{var h={},m=Object.keys(e).sort(f);for(d=0;d<m.length;d++){var y=m[d];p(e[y],y,d,a,e,s,c),h[y]=e[y]}if(void 0===u)return h;o.push([u,t,e]),u[t]=h}a.pop()}}function h(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(a.length>0)for(var r=0;r<a.length;r++){var i=a[r];if(i[1]===t&&i[0]===n){n=i[2],a.splice(r,1);break}}return e.call(this,t,n)}}},{}],39:[function(e,t,n){
|
|
22
22
|
/**
|
|
23
23
|
* filesize
|
|
24
24
|
*
|
|
25
|
-
* @copyright
|
|
25
|
+
* @copyright 2024 Jason Mulligan <jason.mulligan@avoidwork.com>
|
|
26
26
|
* @license BSD-3-Clause
|
|
27
|
-
* @version 10.1.
|
|
27
|
+
* @version 10.1.2
|
|
28
28
|
*/
|
|
29
|
-
"use strict";const r="array",i="bit",o="bits",s="byte",a="bytes",u="",l="exponent",c="function",f="iec",d="Invalid number",p="Invalid rounding method",h="jedec",y="object",m=".",b="round",g="s",v="si",w="kbit",j="kB",E=" ",x="string",_="0",S={symbol:{iec:{bits:["bit","Kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["bit","Kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},fullform:{iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]}};function A(e,{bits:t=!1,pad:n=!1,base:A=-1,round:R=2,locale:k=u,localeOptions:O={},separator:T=u,spacer:I=E,symbols:M={},standard:P=u,output:C=x,fullform:N=!1,fullforms:L=[],exponent:D=-1,roundingMethod:B=b,precision:U=0}={}){let F=D,q=Number(e),W=[],H=0,z=u;P===v?(A=10,P=h):P===f||P===h?A=2:2===A?P=f:(A=10,P=h);const V=10===A?1e3:1024,G=!0===N,$=q<0,Y=Math[B];if("bigint"!=typeof e&&isNaN(e))throw new TypeError(d);if(typeof Y!==c)throw new TypeError(p);if($&&(q=-q),(-1===F||isNaN(F))&&(F=Math.floor(Math.log(q)/Math.log(V)),F<0&&(F=0)),F>8&&(U>0&&(U+=8-F),F=8),C===l)return F;if(0===q)W[0]=0,z=W[1]=S.symbol[P][t?o:a][F];else{H=q/(2===A?Math.pow(2,10*F):Math.pow(1e3,F)),t&&(H*=8,H>=V&&F<8&&(H/=V,F++));const e=Math.pow(10,F>0?R:0);W[0]=Y(H*e)/e,W[0]===V&&F<8&&-1===D&&(W[0]=1,F++),z=W[1]=10===A&&1===F?t?w:j:S.symbol[P][t?o:a][F]}if($&&(W[0]=-W[0]),U>0&&(W[0]=W[0].toPrecision(U)),W[1]=M[W[1]]||W[1],!0===k?W[0]=W[0].toLocaleString():k.length>0?W[0]=W[0].toLocaleString(k,O):T.length>0&&(W[0]=W[0].toString().replace(m,T)),n&&!1===Number.isInteger(W[0])&&R>0){const e=T||m,t=W[0].toString().split(e),n=t[1]||u,r=n.length,i=R-r;W[0]=`${t[0]}${e}${n.padEnd(r+i,_)}`}return G&&(W[1]=L[F]?L[F]:S.fullform[P][F]+(t?i:s)+(1===W[0]?u:g)),C===r?W:C===y?{value:W[0],symbol:W[1],exponent:F,unit:z}:W.join(I)}n.filesize=A,n.partial=function({bits:e=!1,pad:t=!1,base:n=-1,round:r=2,locale:i=u,localeOptions:o={},separator:s=u,spacer:a=E,symbols:l={},standard:c=u,output:f=x,fullform:d=!1,fullforms:p=[],exponent:h=-1,roundingMethod:y=b,precision:m=0}={}){return u=>A(u,{bits:e,pad:t,base:n,round:r,locale:i,localeOptions:o,separator:s,spacer:a,symbols:l,standard:c,output:f,fullform:d,fullforms:p,exponent:h,roundingMethod:y,precision:m})}},{}],284:[function(e,t,n){"use strict";var r=e("is-callable"),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty;t.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var s;arguments.length>=3&&(s=n),"[object Array]"===i.call(e)?function(e,t,n){for(var r=0,i=e.length;r<i;r++)o.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,s):"string"==typeof e?function(e,t,n){for(var r=0,i=e.length;r<i;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)}(e,t,s):function(e,t,n){for(var r in e)o.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,s)}},{"is-callable":310}],285:[function(e,t,n){"use strict";var r=Object.prototype.toString,i=Math.max,o=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n};t.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==r.apply(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var n,s=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n}(arguments,1),a=i(0,t.length-s.length),u=[],l=0;l<a;l++)u[l]="$"+l;if(n=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(u,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof n){var r=t.apply(this,o(s,arguments));return Object(r)===r?r:this}return t.apply(e,o(s,arguments))})),t.prototype){var c=function(){};c.prototype=t.prototype,n.prototype=new c,c.prototype=null}return n}},{}],286:[function(e,t,n){"use strict";var r=e("./implementation");t.exports=Function.prototype.bind||r},{"./implementation":285}],287:[function(e,t,n){"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.__esModule=!0,n.default=c,n.getFieldData=f;var i={"[object HTMLCollection]":!0,"[object NodeList]":!0,"[object RadioNodeList]":!0},o={button:!0,fieldset:!0,reset:!0,submit:!0},s={checkbox:!0,radio:!0},a=/^\s+|\s+$/g,u=Array.prototype.slice,l=Object.prototype.toString;function c(e,t){if(!e)throw new Error("A form is required by getFormData, was given form="+e);t=r({includeDisabled:!1,trim:!1},t);for(var n,i={},s=[],a={},u=0,l=e.elements.length;u<l;u++){var c=e.elements[u];o[c.type]||c.disabled&&!t.includeDisabled||(n=c.name||c.id)&&!a[n]&&(s.push(n),a[n]=!0)}for(var d=0,p=s.length;d<p;d++){var h=f(e,n=s[d],t);null!=h&&(i[n]=h)}return i}function f(e,t,n){if(!e)throw new Error("A form is required by getFieldData, was given form="+e);if(!t&&"[object String]"!==l.call(t))throw new Error("A field name is required by getFieldData, was given fieldName="+t);n=r({includeDisabled:!1,trim:!1},n);var o=e.elements[t];if(!o||o.disabled&&!n.includeDisabled)return null;if(!i[l.call(o)])return d(o,n.trim);for(var s=[],a=!0,u=0,c=o.length;u<c;u++)if(!o[u].disabled||n.includeDisabled){a&&"radio"!==o[u].type&&(a=!1);var f=d(o[u],n.trim);null!=f&&(s=s.concat(f))}return a&&1===s.length?s[0]:s.length>0?s:null}function d(e,t){var n=null,r=e.type;if("select-one"===r)return e.options.length&&(n=e.options[e.selectedIndex].value),n;if("select-multiple"===r){n=[];for(var i=0,o=e.options.length;i<o;i++)e.options[i].selected&&n.push(e.options[i].value);return 0===n.length&&(n=null),n}return"file"===r&&"files"in e?(e.multiple?0===(n=u.call(e.files)).length&&(n=null):n=e.files[0],n):(s[r]?e.checked&&(n="checkbox"===r&&!e.hasAttribute("value")||e.value):n=t?e.value.replace(a,""):e.value,n)}c.getFieldData=f},{}],288:[function(e,t,n){"use strict";var r,i=SyntaxError,o=Function,s=TypeError,a=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(e){u=null}var l=function(){throw new s},c=u?function(){try{return l}catch(e){try{return u(arguments,"callee").get}catch(e){return l}}}():l,f=e("has-symbols")(),d=e("has-proto")(),p=Object.getPrototypeOf||(d?function(e){return e.__proto__}:null),h={},y="undefined"!=typeof Uint8Array&&p?p(Uint8Array):r,m={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":f&&p?p([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f&&p?p(p([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f&&p?p((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f&&p?p((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f&&p?p(""[Symbol.iterator]()):r,"%Symbol%":f?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":c,"%TypedArray%":y,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(p)try{null.error}catch(e){var b=p(p(e));m["%Error.prototype%"]=b}var g=function e(t){var n;if("%AsyncFunction%"===t)n=a("async function () {}");else if("%GeneratorFunction%"===t)n=a("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=a("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&p&&(n=p(i.prototype))}return m[t]=n,n},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},w=e("function-bind"),j=e("hasown"),E=w.call(Function.call,Array.prototype.concat),x=w.call(Function.apply,Array.prototype.splice),_=w.call(Function.call,String.prototype.replace),S=w.call(Function.call,String.prototype.slice),A=w.call(Function.call,RegExp.prototype.exec),R=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,k=/\\(\\)?/g,O=function(e,t){var n,r=e;if(j(v,r)&&(r="%"+(n=v[r])[0]+"%"),j(m,r)){var o=m[r];if(o===h&&(o=g(r)),void 0===o&&!t)throw new s("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new i("intrinsic "+e+" does not exist!")};t.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new s('"allowMissing" argument must be a boolean');if(null===A(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=S(e,0,1),n=S(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return _(e,R,(function(e,t,n,i){r[r.length]=n?_(i,k,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=O("%"+r+"%",t),a=o.name,l=o.value,c=!1,f=o.alias;f&&(r=f[0],x(n,E([0,1],f)));for(var d=1,p=!0;d<n.length;d+=1){var h=n[d],y=S(h,0,1),b=S(h,-1);if(('"'===y||"'"===y||"`"===y||'"'===b||"'"===b||"`"===b)&&y!==b)throw new i("property names with quotes must have matching quotes");if("constructor"!==h&&p||(c=!0),j(m,a="%"+(r+="."+h)+"%"))l=m[a];else if(null!=l){if(!(h in l)){if(!t)throw new s("base intrinsic for "+e+" exists, but the property is not available.");return}if(u&&d+1>=n.length){var g=u(l,h);l=(p=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:l[h]}else p=j(l,h),l=l[h];p&&!c&&(m[a]=l)}}return l}},{"function-bind":286,"has-proto":295,"has-symbols":296,hasown:299}],289:[function(e,t,n){t.exports=function(){var e=[];return{broadcast:function(t){for(var n=0;n<e.length;n++)e[n](t)},listen:function(t){return e.push(t),n;function n(){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}}},{}],290:[function(e,t,n){var r=e("./event.js");t.exports=function(e){var t=r();return e(t.broadcast),t.listen}},{"./event.js":289}],291:[function(e,t,n){(function(n){(function(){var r,i=void 0!==n?n:"undefined"!=typeof window?window:{},o=e("min-document");"undefined"!=typeof document?r=document:(r=i["__GLOBAL_DOCUMENT_CACHE@4"])||(r=i["__GLOBAL_DOCUMENT_CACHE@4"]=o),t.exports=r}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"min-document":9}],292:[function(e,t,n){(function(e){(function(){var n;n="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},t.exports=n}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],293:[function(e,t,n){"use strict";var r=e("get-intrinsic")("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}t.exports=r},{"get-intrinsic":288}],294:[function(e,t,n){"use strict";var r=e("get-intrinsic")("%Object.defineProperty%",!0),i=function(){if(r)try{return r({},"a",{value:1}),!0}catch(e){return!1}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},t.exports=i},{"get-intrinsic":288}],295:[function(e,t,n){"use strict";var r={foo:{}},i=Object;t.exports=function(){return{__proto__:r}.foo===r.foo&&!({__proto__:null}instanceof i)}},{}],296:[function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=e("./shams");t.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&i())))}},{"./shams":297}],297:[function(e,t,n){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},{}],298:[function(e,t,n){"use strict";var r=e("has-symbols/shams");t.exports=function(){return r()&&!!Symbol.toStringTag}},{"has-symbols/shams":297}],299:[function(e,t,n){"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=e("function-bind");t.exports=o.call(r,i)},{"function-bind":286}],300:[function(e,t,n){t.exports=function(e,t){if(void 0===t)return"none"===e.style.display;e.style.display=t?"none":""}},{}],301:[function(e,t,n){!function(){var e=r((function(e){return 1===e?"χρόνος":"χρόνια"}),(function(e){return 1===e?"μήνας":"μήνες"}),(function(e){return 1===e?"εβδομάδα":"εβδομάδες"}),(function(e){return 1===e?"μέρα":"μέρες"}),(function(e){return 1===e?"ώρα":"ώρες"}),(function(e){return 1===e?"λεπτό":"λεπτά"}),(function(e){return 1===e?"δευτερόλεπτο":"δευτερόλεπτα"}),(function(e){return(1===e?"χιλιοστό":"χιλιοστά")+" του δευτερολέπτου"}),","),n={af:r("jaar",(function(e){return"maand"+(1===e?"":"e")}),(function(e){return 1===e?"week":"weke"}),(function(e){return 1===e?"dag":"dae"}),(function(e){return 1===e?"uur":"ure"}),(function(e){return 1===e?"minuut":"minute"}),(function(e){return"sekonde"+(1===e?"":"s")}),(function(e){return"millisekonde"+(1===e?"":"s")}),","),ar:c(r((function(e){return["سنة","سنتان","سنوات"][i(e)]}),(function(e){return["شهر","شهران","أشهر"][i(e)]}),(function(e){return["أسبوع","أسبوعين","أسابيع"][i(e)]}),(function(e){return["يوم","يومين","أيام"][i(e)]}),(function(e){return["ساعة","ساعتين","ساعات"][i(e)]}),(function(e){return["دقيقة","دقيقتان","دقائق"][i(e)]}),(function(e){return["ثانية","ثانيتان","ثواني"][i(e)]}),(function(e){return["جزء من الثانية","جزآن من الثانية","أجزاء من الثانية"][i(e)]}),","),{delimiter:" ﻭ ",_digitReplacements:["۰","١","٢","٣","٤","٥","٦","٧","٨","٩"]}),bg:r((function(e){return["години","година","години"][s(e)]}),(function(e){return["месеца","месец","месеца"][s(e)]}),(function(e){return["седмици","седмица","седмици"][s(e)]}),(function(e){return["дни","ден","дни"][s(e)]}),(function(e){return["часа","час","часа"][s(e)]}),(function(e){return["минути","минута","минути"][s(e)]}),(function(e){return["секунди","секунда","секунди"][s(e)]}),(function(e){return["милисекунди","милисекунда","милисекунди"][s(e)]}),","),bn:r("বছর","মাস","সপ্তাহ","দিন","ঘন্টা","মিনিট","সেকেন্ড","মিলিসেকেন্ড"),ca:r((function(e){return"any"+(1===e?"":"s")}),(function(e){return"mes"+(1===e?"":"os")}),(function(e){return"setman"+(1===e?"a":"es")}),(function(e){return"di"+(1===e?"a":"es")}),(function(e){return"hor"+(1===e?"a":"es")}),(function(e){return"minut"+(1===e?"":"s")}),(function(e){return"segon"+(1===e?"":"s")}),(function(e){return"milisegon"+(1===e?"":"s")}),","),ckb:r("ساڵ","مانگ","هەفتە","ڕۆژ","کاژێر","خولەک","چرکە","میلی چرکە","."),cs:r((function(e){return["rok","roku","roky","let"][a(e)]}),(function(e){return["měsíc","měsíce","měsíce","měsíců"][a(e)]}),(function(e){return["týden","týdne","týdny","týdnů"][a(e)]}),(function(e){return["den","dne","dny","dní"][a(e)]}),(function(e){return["hodina","hodiny","hodiny","hodin"][a(e)]}),(function(e){return["minuta","minuty","minuty","minut"][a(e)]}),(function(e){return["sekunda","sekundy","sekundy","sekund"][a(e)]}),(function(e){return["milisekunda","milisekundy","milisekundy","milisekund"][a(e)]}),","),cy:r("flwyddyn","mis","wythnos","diwrnod","awr","munud","eiliad","milieiliad"),da:r("år",(function(e){return"måned"+(1===e?"":"er")}),(function(e){return"uge"+(1===e?"":"r")}),(function(e){return"dag"+(1===e?"":"e")}),(function(e){return"time"+(1===e?"":"r")}),(function(e){return"minut"+(1===e?"":"ter")}),(function(e){return"sekund"+(1===e?"":"er")}),(function(e){return"millisekund"+(1===e?"":"er")}),","),de:r((function(e){return"Jahr"+(1===e?"":"e")}),(function(e){return"Monat"+(1===e?"":"e")}),(function(e){return"Woche"+(1===e?"":"n")}),(function(e){return"Tag"+(1===e?"":"e")}),(function(e){return"Stunde"+(1===e?"":"n")}),(function(e){return"Minute"+(1===e?"":"n")}),(function(e){return"Sekunde"+(1===e?"":"n")}),(function(e){return"Millisekunde"+(1===e?"":"n")}),","),el:e,en:r((function(e){return"year"+(1===e?"":"s")}),(function(e){return"month"+(1===e?"":"s")}),(function(e){return"week"+(1===e?"":"s")}),(function(e){return"day"+(1===e?"":"s")}),(function(e){return"hour"+(1===e?"":"s")}),(function(e){return"minute"+(1===e?"":"s")}),(function(e){return"second"+(1===e?"":"s")}),(function(e){return"millisecond"+(1===e?"":"s")})),eo:r((function(e){return"jaro"+(1===e?"":"j")}),(function(e){return"monato"+(1===e?"":"j")}),(function(e){return"semajno"+(1===e?"":"j")}),(function(e){return"tago"+(1===e?"":"j")}),(function(e){return"horo"+(1===e?"":"j")}),(function(e){return"minuto"+(1===e?"":"j")}),(function(e){return"sekundo"+(1===e?"":"j")}),(function(e){return"milisekundo"+(1===e?"":"j")}),","),es:r((function(e){return"año"+(1===e?"":"s")}),(function(e){return"mes"+(1===e?"":"es")}),(function(e){return"semana"+(1===e?"":"s")}),(function(e){return"día"+(1===e?"":"s")}),(function(e){return"hora"+(1===e?"":"s")}),(function(e){return"minuto"+(1===e?"":"s")}),(function(e){return"segundo"+(1===e?"":"s")}),(function(e){return"milisegundo"+(1===e?"":"s")}),","),et:r((function(e){return"aasta"+(1===e?"":"t")}),(function(e){return"kuu"+(1===e?"":"d")}),(function(e){return"nädal"+(1===e?"":"at")}),(function(e){return"päev"+(1===e?"":"a")}),(function(e){return"tund"+(1===e?"":"i")}),(function(e){return"minut"+(1===e?"":"it")}),(function(e){return"sekund"+(1===e?"":"it")}),(function(e){return"millisekund"+(1===e?"":"it")}),","),eu:r("urte","hilabete","aste","egun","ordu","minutu","segundo","milisegundo",","),fa:r("سال","ماه","هفته","روز","ساعت","دقیقه","ثانیه","میلی ثانیه"),fi:r((function(e){return 1===e?"vuosi":"vuotta"}),(function(e){return 1===e?"kuukausi":"kuukautta"}),(function(e){return"viikko"+(1===e?"":"a")}),(function(e){return"päivä"+(1===e?"":"ä")}),(function(e){return"tunti"+(1===e?"":"a")}),(function(e){return"minuutti"+(1===e?"":"a")}),(function(e){return"sekunti"+(1===e?"":"a")}),(function(e){return"millisekunti"+(1===e?"":"a")}),","),fo:r("ár",(function(e){return 1===e?"mánaður":"mánaðir"}),(function(e){return 1===e?"vika":"vikur"}),(function(e){return 1===e?"dagur":"dagar"}),(function(e){return 1===e?"tími":"tímar"}),(function(e){return 1===e?"minuttur":"minuttir"}),"sekund","millisekund",","),fr:r((function(e){return"an"+(e>=2?"s":"")}),"mois",(function(e){return"semaine"+(e>=2?"s":"")}),(function(e){return"jour"+(e>=2?"s":"")}),(function(e){return"heure"+(e>=2?"s":"")}),(function(e){return"minute"+(e>=2?"s":"")}),(function(e){return"seconde"+(e>=2?"s":"")}),(function(e){return"milliseconde"+(e>=2?"s":"")}),","),gr:e,he:r((function(e){return 1===e?"שנה":"שנים"}),(function(e){return 1===e?"חודש":"חודשים"}),(function(e){return 1===e?"שבוע":"שבועות"}),(function(e){return 1===e?"יום":"ימים"}),(function(e){return 1===e?"שעה":"שעות"}),(function(e){return 1===e?"דקה":"דקות"}),(function(e){return 1===e?"שניה":"שניות"}),(function(e){return 1===e?"מילישנייה":"מילישניות"})),hr:r((function(e){return e%10==2||e%10==3||e%10==4?"godine":"godina"}),(function(e){return 1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci"}),(function(e){return e%10==1&&11!==e?"tjedan":"tjedna"}),(function(e){return 1===e?"dan":"dana"}),(function(e){return 1===e?"sat":2===e||3===e||4===e?"sata":"sati"}),(function(e){var t=e%10;return 2!==t&&3!==t&&4!==t||!(e<10||e>14)?"minuta":"minute"}),(function(e){var t=e%10;return 5===t||Math.floor(e)===e&&e>=10&&e<=19?"sekundi":1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi"}),(function(e){return 1===e?"milisekunda":e%10==2||e%10==3||e%10==4?"milisekunde":"milisekundi"}),","),hi:r("साल",(function(e){return 1===e?"महीना":"महीने"}),(function(e){return 1===e?"हफ़्ता":"हफ्ते"}),"दिन",(function(e){return 1===e?"घंटा":"घंटे"}),"मिनट","सेकंड","मिलीसेकंड"),hu:r("év","hónap","hét","nap","óra","perc","másodperc","ezredmásodperc",","),id:r("tahun","bulan","minggu","hari","jam","menit","detik","milidetik"),is:r("ár",(function(e){return"mánuð"+(1===e?"ur":"ir")}),(function(e){return"vik"+(1===e?"a":"ur")}),(function(e){return"dag"+(1===e?"ur":"ar")}),(function(e){return"klukkutím"+(1===e?"i":"ar")}),(function(e){return"mínút"+(1===e?"a":"ur")}),(function(e){return"sekúnd"+(1===e?"a":"ur")}),(function(e){return"millisekúnd"+(1===e?"a":"ur")})),it:r((function(e){return"ann"+(1===e?"o":"i")}),(function(e){return"mes"+(1===e?"e":"i")}),(function(e){return"settiman"+(1===e?"a":"e")}),(function(e){return"giorn"+(1===e?"o":"i")}),(function(e){return"or"+(1===e?"a":"e")}),(function(e){return"minut"+(1===e?"o":"i")}),(function(e){return"second"+(1===e?"o":"i")}),(function(e){return"millisecond"+(1===e?"o":"i")}),","),ja:r("年","ヶ月","週","日","時間","分","秒","ミリ秒"),km:r("ឆ្នាំ","ខែ","សប្តាហ៍","ថ្ងៃ","ម៉ោង","នាទី","វិនាទី","មិល្លីវិនាទី"),kn:r((function(e){return 1===e?"ವರ್ಷ":"ವರ್ಷಗಳು"}),(function(e){return 1===e?"ತಿಂಗಳು":"ತಿಂಗಳುಗಳು"}),(function(e){return 1===e?"ವಾರ":"ವಾರಗಳು"}),(function(e){return 1===e?"ದಿನ":"ದಿನಗಳು"}),(function(e){return 1===e?"ಗಂಟೆ":"ಗಂಟೆಗಳು"}),(function(e){return 1===e?"ನಿಮಿಷ":"ನಿಮಿಷಗಳು"}),(function(e){return 1===e?"ಸೆಕೆಂಡ್":"ಸೆಕೆಂಡುಗಳು"}),(function(e){return 1===e?"ಮಿಲಿಸೆಕೆಂಡ್":"ಮಿಲಿಸೆಕೆಂಡುಗಳು"})),ko:r("년","개월","주일","일","시간","분","초","밀리 초"),ku:r("sal","meh","hefte","roj","seet","deqe","saniye","mîlîçirk",","),lo:r("ປີ","ເດືອນ","ອາທິດ","ມື້","ຊົ່ວໂມງ","ນາທີ","ວິນາທີ","ມິນລິວິນາທີ",","),lt:r((function(e){return e%10==0||e%100>=10&&e%100<=20?"metų":"metai"}),(function(e){return["mėnuo","mėnesiai","mėnesių"][u(e)]}),(function(e){return["savaitė","savaitės","savaičių"][u(e)]}),(function(e){return["diena","dienos","dienų"][u(e)]}),(function(e){return["valanda","valandos","valandų"][u(e)]}),(function(e){return["minutė","minutės","minučių"][u(e)]}),(function(e){return["sekundė","sekundės","sekundžių"][u(e)]}),(function(e){return["milisekundė","milisekundės","milisekundžių"][u(e)]}),","),lv:r((function(e){return l(e)?"gads":"gadi"}),(function(e){return l(e)?"mēnesis":"mēneši"}),(function(e){return l(e)?"nedēļa":"nedēļas"}),(function(e){return l(e)?"diena":"dienas"}),(function(e){return l(e)?"stunda":"stundas"}),(function(e){return l(e)?"minūte":"minūtes"}),(function(e){return l(e)?"sekunde":"sekundes"}),(function(e){return l(e)?"milisekunde":"milisekundes"}),","),mk:r((function(e){return 1===e?"година":"години"}),(function(e){return 1===e?"месец":"месеци"}),(function(e){return 1===e?"недела":"недели"}),(function(e){return 1===e?"ден":"дена"}),(function(e){return 1===e?"час":"часа"}),(function(e){return 1===e?"минута":"минути"}),(function(e){return 1===e?"секунда":"секунди"}),(function(e){return 1===e?"милисекунда":"милисекунди"}),","),mn:r("жил","сар","долоо хоног","өдөр","цаг","минут","секунд","миллисекунд"),mr:r((function(e){return 1===e?"वर्ष":"वर्षे"}),(function(e){return 1===e?"महिना":"महिने"}),(function(e){return 1===e?"आठवडा":"आठवडे"}),"दिवस","तास",(function(e){return 1===e?"मिनिट":"मिनिटे"}),"सेकंद","मिलिसेकंद"),ms:r("tahun","bulan","minggu","hari","jam","minit","saat","milisaat"),nl:r("jaar",(function(e){return 1===e?"maand":"maanden"}),(function(e){return 1===e?"week":"weken"}),(function(e){return 1===e?"dag":"dagen"}),"uur",(function(e){return 1===e?"minuut":"minuten"}),(function(e){return 1===e?"seconde":"seconden"}),(function(e){return 1===e?"milliseconde":"milliseconden"}),","),no:r("år",(function(e){return"måned"+(1===e?"":"er")}),(function(e){return"uke"+(1===e?"":"r")}),(function(e){return"dag"+(1===e?"":"er")}),(function(e){return"time"+(1===e?"":"r")}),(function(e){return"minutt"+(1===e?"":"er")}),(function(e){return"sekund"+(1===e?"":"er")}),(function(e){return"millisekund"+(1===e?"":"er")}),","),pl:r((function(e){return["rok","roku","lata","lat"][o(e)]}),(function(e){return["miesiąc","miesiąca","miesiące","miesięcy"][o(e)]}),(function(e){return["tydzień","tygodnia","tygodnie","tygodni"][o(e)]}),(function(e){return["dzień","dnia","dni","dni"][o(e)]}),(function(e){return["godzina","godziny","godziny","godzin"][o(e)]}),(function(e){return["minuta","minuty","minuty","minut"][o(e)]}),(function(e){return["sekunda","sekundy","sekundy","sekund"][o(e)]}),(function(e){return["milisekunda","milisekundy","milisekundy","milisekund"][o(e)]}),","),pt:r((function(e){return"ano"+(1===e?"":"s")}),(function(e){return 1===e?"mês":"meses"}),(function(e){return"semana"+(1===e?"":"s")}),(function(e){return"dia"+(1===e?"":"s")}),(function(e){return"hora"+(1===e?"":"s")}),(function(e){return"minuto"+(1===e?"":"s")}),(function(e){return"segundo"+(1===e?"":"s")}),(function(e){return"milissegundo"+(1===e?"":"s")}),","),ro:r((function(e){return 1===e?"an":"ani"}),(function(e){return 1===e?"lună":"luni"}),(function(e){return 1===e?"săptămână":"săptămâni"}),(function(e){return 1===e?"zi":"zile"}),(function(e){return 1===e?"oră":"ore"}),(function(e){return 1===e?"minut":"minute"}),(function(e){return 1===e?"secundă":"secunde"}),(function(e){return 1===e?"milisecundă":"milisecunde"}),","),ru:r((function(e){return["лет","год","года"][s(e)]}),(function(e){return["месяцев","месяц","месяца"][s(e)]}),(function(e){return["недель","неделя","недели"][s(e)]}),(function(e){return["дней","день","дня"][s(e)]}),(function(e){return["часов","час","часа"][s(e)]}),(function(e){return["минут","минута","минуты"][s(e)]}),(function(e){return["секунд","секунда","секунды"][s(e)]}),(function(e){return["миллисекунд","миллисекунда","миллисекунды"][s(e)]}),","),sq:r((function(e){return 1===e?"vit":"vjet"}),"muaj","javë","ditë","orë",(function(e){return"minut"+(1===e?"ë":"a")}),(function(e){return"sekond"+(1===e?"ë":"a")}),(function(e){return"milisekond"+(1===e?"ë":"a")}),","),sr:r((function(e){return["години","година","године"][s(e)]}),(function(e){return["месеци","месец","месеца"][s(e)]}),(function(e){return["недељи","недеља","недеље"][s(e)]}),(function(e){return["дани","дан","дана"][s(e)]}),(function(e){return["сати","сат","сата"][s(e)]}),(function(e){return["минута","минут","минута"][s(e)]}),(function(e){return["секунди","секунда","секунде"][s(e)]}),(function(e){return["милисекунди","милисекунда","милисекунде"][s(e)]}),","),ta:r((function(e){return 1===e?"வருடம்":"ஆண்டுகள்"}),(function(e){return 1===e?"மாதம்":"மாதங்கள்"}),(function(e){return 1===e?"வாரம்":"வாரங்கள்"}),(function(e){return 1===e?"நாள்":"நாட்கள்"}),(function(e){return 1===e?"மணி":"மணிநேரம்"}),(function(e){return"நிமிட"+(1===e?"ம்":"ங்கள்")}),(function(e){return"வினாடி"+(1===e?"":"கள்")}),(function(e){return"மில்லி விநாடி"+(1===e?"":"கள்")})),te:r((function(e){return"సంవత్స"+(1===e?"రం":"రాల")}),(function(e){return"నెల"+(1===e?"":"ల")}),(function(e){return 1===e?"వారం":"వారాలు"}),(function(e){return"రోజు"+(1===e?"":"లు")}),(function(e){return"గంట"+(1===e?"":"లు")}),(function(e){return 1===e?"నిమిషం":"నిమిషాలు"}),(function(e){return 1===e?"సెకను":"సెకన్లు"}),(function(e){return 1===e?"మిల్లీసెకన్":"మిల్లీసెకన్లు"})),uk:r((function(e){return["років","рік","роки"][s(e)]}),(function(e){return["місяців","місяць","місяці"][s(e)]}),(function(e){return["тижнів","тиждень","тижні"][s(e)]}),(function(e){return["днів","день","дні"][s(e)]}),(function(e){return["годин","година","години"][s(e)]}),(function(e){return["хвилин","хвилина","хвилини"][s(e)]}),(function(e){return["секунд","секунда","секунди"][s(e)]}),(function(e){return["мілісекунд","мілісекунда","мілісекунди"][s(e)]}),","),ur:r("سال",(function(e){return 1===e?"مہینہ":"مہینے"}),(function(e){return 1===e?"ہفتہ":"ہفتے"}),"دن",(function(e){return 1===e?"گھنٹہ":"گھنٹے"}),"منٹ","سیکنڈ","ملی سیکنڈ"),sk:r((function(e){return["rok","roky","roky","rokov"][a(e)]}),(function(e){return["mesiac","mesiace","mesiace","mesiacov"][a(e)]}),(function(e){return["týždeň","týždne","týždne","týždňov"][a(e)]}),(function(e){return["deň","dni","dni","dní"][a(e)]}),(function(e){return["hodina","hodiny","hodiny","hodín"][a(e)]}),(function(e){return["minúta","minúty","minúty","minút"][a(e)]}),(function(e){return["sekunda","sekundy","sekundy","sekúnd"][a(e)]}),(function(e){return["milisekunda","milisekundy","milisekundy","milisekúnd"][a(e)]}),","),sl:r((function(e){return e%10==1?"leto":e%100==2?"leti":e%100==3||e%100==4||Math.floor(e)!==e&&e%100<=5?"leta":"let"}),(function(e){return e%10==1?"mesec":e%100==2||Math.floor(e)!==e&&e%100<=5?"meseca":e%10==3||e%10==4?"mesece":"mesecev"}),(function(e){return e%10==1?"teden":e%10==2||Math.floor(e)!==e&&e%100<=4?"tedna":e%10==3||e%10==4?"tedne":"tednov"}),(function(e){return e%100==1?"dan":"dni"}),(function(e){return e%10==1?"ura":e%100==2?"uri":e%10==3||e%10==4||Math.floor(e)!==e?"ure":"ur"}),(function(e){return e%10==1?"minuta":e%10==2?"minuti":e%10==3||e%10==4||Math.floor(e)!==e&&e%100<=4?"minute":"minut"}),(function(e){return e%10==1?"sekunda":e%100==2?"sekundi":e%100==3||e%100==4||Math.floor(e)!==e?"sekunde":"sekund"}),(function(e){return e%10==1?"milisekunda":e%100==2?"milisekundi":e%100==3||e%100==4||Math.floor(e)!==e?"milisekunde":"milisekund"}),","),sv:r("år",(function(e){return"månad"+(1===e?"":"er")}),(function(e){return"veck"+(1===e?"a":"or")}),(function(e){return"dag"+(1===e?"":"ar")}),(function(e){return"timm"+(1===e?"e":"ar")}),(function(e){return"minut"+(1===e?"":"er")}),(function(e){return"sekund"+(1===e?"":"er")}),(function(e){return"millisekund"+(1===e?"":"er")}),","),sw:c(r((function(e){return 1===e?"mwaka":"miaka"}),(function(e){return 1===e?"mwezi":"miezi"}),"wiki",(function(e){return 1===e?"siku":"masiku"}),(function(e){return 1===e?"saa":"masaa"}),"dakika","sekunde","milisekunde"),{_numberFirst:!0}),tr:r("yıl","ay","hafta","gün","saat","dakika","saniye","milisaniye",","),th:r("ปี","เดือน","สัปดาห์","วัน","ชั่วโมง","นาที","วินาที","มิลลิวินาที"),uz:r("yil","oy","hafta","kun","soat","minut","sekund","millisekund"),uz_CYR:r("йил","ой","ҳафта","кун","соат","минут","секунд","миллисекунд"),vi:r("năm","tháng","tuần","ngày","giờ","phút","giây","mili giây",","),zh_CN:r("年","个月","周","天","小时","分钟","秒","毫秒"),zh_TW:r("年","個月","周","天","小時","分鐘","秒","毫秒")};function r(e,t,n,r,i,o,s,a,u){var l={y:e,mo:t,w:n,d:r,h:i,m:o,s:s,ms:a};return void 0!==u&&(l.decimal=u),l}function i(e){return 2===e?1:e>2&&e<11?2:0}function o(e){return 1===e?0:Math.floor(e)!==e?1:e%10>=2&&e%10<=4&&!(e%100>10&&e%100<20)?2:3}function s(e){return Math.floor(e)!==e?2:e%100>=5&&e%100<=20||e%10>=5&&e%10<=9||e%10==0?0:e%10==1?1:e>1?2:0}function a(e){return 1===e?0:Math.floor(e)!==e?1:e%10>=2&&e%10<=4&&e%100<10?2:3}function u(e){return 1===e||e%10==1&&e%100>20?0:Math.floor(e)!==e||e%10>=2&&e%100>20||e%10>=2&&e%100<10?1:2}function l(e){return e%10==1&&e%100!=11}function c(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])d(t,r)&&(e[r]=t[r]);return e}var f=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function p(e,t,n){var r,i,o,s=e.unitName,a=e.unitCount,u=n.spacer,l=n.maxDecimalPoints;r=d(n,"decimal")?n.decimal:d(t,"decimal")?t.decimal:".","digitReplacements"in n?i=n.digitReplacements:"_digitReplacements"in t&&(i=t._digitReplacements);var c=(void 0===l?a:Math.floor(a*Math.pow(10,l))/Math.pow(10,l)).toString();if(i){o="";for(var f=0;f<c.length;f++){var p=c[f];o+="."===p?r:i[p]}}else o=c.replace(".",r);var h,y=t[s];return h="function"==typeof y?y(a):y,t._numberFirst?h+u+o:o+u+h}function h(e,t){var r=function(e){var t=[e.language];if(d(e,"fallbacks")){if(!f(e.fallbacks)||!e.fallbacks.length)throw new Error("fallbacks must be an array with at least one element");t=t.concat(e.fallbacks)}for(var r=0;r<t.length;r++){var i=t[r];if(d(e.languages,i))return e.languages[i];if(d(n,i))return n[i]}throw new Error("No language found.")}(t);if(!e.length){var i=t.units;return p({unitName:i[i.length-1],unitCount:0},r,t)}var o,s=t.conjunction,a=t.serialComma;o=d(t,"delimiter")?t.delimiter:d(r,"delimiter")?r.delimiter:", ";for(var u=[],l=0;l<e.length;l++)u.push(p(e[l],r,t));return s&&1!==e.length?2===e.length?u.join(s):u.slice(0,-1).join(o)+(a?",":"")+s+u.slice(-1):u.join(o)}function y(e){var t=function(e,n){e=Math.abs(e);var r=c({},t,n||{}),i=function(e,t){var n,r,i,o,s=t.units,a=t.unitMeasures,u="largest"in t?t.largest:1/0;if(!s.length)return[];var l={};for(o=e,r=0;r<s.length;r++){var c=a[n=s[r]];i=r===s.length-1?o/c:Math.floor(o/c),l[n]=i,o-=i*c}if(t.round){var f=u;for(r=0;r<s.length;r++)if(0!==(i=l[n=s[r]])&&0==--f){for(var d=r+1;d<s.length;d++){var p=s[d],h=l[p];l[n]+=h*a[p]/a[n],l[p]=0}break}for(r=s.length-1;r>=0;r--)if(0!==(i=l[n=s[r]])){var y=Math.round(i);if(l[n]=y,0===r)break;var m=s[r-1],b=a[m],g=Math.floor(y*a[n]/b);if(!g)break;l[m]+=g,l[n]=0}}var v=[];for(r=0;r<s.length&&v.length<u;r++)(i=l[n=s[r]])&&v.push({unitName:n,unitCount:i});return v}(e,r);return h(i,r)};return c(t,{language:"en",spacer:" ",conjunction:"",serialComma:!0,units:["y","mo","w","d","h","m","s"],languages:{},round:!1,unitMeasures:{y:315576e5,mo:26298e5,w:6048e5,d:864e5,h:36e5,m:6e4,s:1e3,ms:1}},e)}var m=y({});m.getSupportedLanguages=function(){var e=[];for(var t in n)d(n,t)&&"gr"!==t&&e.push(t);return e},m.humanizer=y,void 0!==t&&t.exports?t.exports=m:this.humanizeDuration=m}()},{}],302:[function(e,t,n){var r=e("browser-split"),i=e("class-list"),o="undefined"==typeof window?e("html-element"):window,s=o.document,a=o.Text;function u(){var e=[];function t(){var t=[].slice.call(arguments),n=null;function o(t){var u,f,d;if(null==t);else if("string"==typeof t)n?n.appendChild(u=s.createTextNode(t)):(d=r(t,/([\.#]?[^\s#.]+)/),/^\.|#/.test(d[1])&&(n=s.createElement("div")),c(d,(function(e){var t=e.substring(1,e.length);e&&(n?"."===e[0]?i(n).add(t):"#"===e[0]&&n.setAttribute("id",t):n=s.createElement(e))})));else if("number"==typeof t||"boolean"==typeof t||t instanceof Date||t instanceof RegExp)n.appendChild(u=s.createTextNode(t.toString()));else if(f=t,"[object Array]"==Object.prototype.toString.call(f))c(t,o);else if(l(t))n.appendChild(u=t);else if(t instanceof a)n.appendChild(u=t);else if("object"==typeof t)for(var p in t)if("function"==typeof t[p])/^on\w+/.test(p)?function(t,r){n.addEventListener?(n.addEventListener(t.substring(2),r[t],!1),e.push((function(){n.removeEventListener(t.substring(2),r[t],!1)}))):(n.attachEvent(t,r[t]),e.push((function(){n.detachEvent(t,r[t])})))}(p,t):(n[p]=t[p](),e.push(t[p]((function(e){n[p]=e}))));else if("style"===p)if("string"==typeof t[p])n.style.cssText=t[p];else for(var h in t[p])!function(r,i){if("function"==typeof i)n.style.setProperty(r,i()),e.push(i((function(e){n.style.setProperty(r,e)})));else var o=t[p][r].match(/(.*)\W+!important\W*$/);o?n.style.setProperty(r,o[1],"important"):n.style.setProperty(r,t[p][r])}(h,t[p][h]);else if("attrs"===p)for(var y in t[p])n.setAttribute(y,t[p][y]);else"data-"===p.substr(0,5)?n.setAttribute(p,t[p]):n[p]=t[p];else if("function"==typeof t){y=t();n.appendChild(u=l(y)?y:s.createTextNode(y)),e.push(t((function(e){l(e)&&u.parentElement?(u.parentElement.replaceChild(e,u),u=e):u.textContent=e})))}return u}for(;t.length;)o(t.shift());return n}return t.cleanup=function(){for(var t=0;t<e.length;t++)e[t]();e.length=0},t}function l(e){return e&&e.nodeName&&e.nodeType}function c(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n)}(t.exports=u()).context=u},{"browser-split":10,"class-list":15,"html-element":9}],303:[function(e,t,n){
|
|
29
|
+
"use strict";const r="array",i="bit",o="bits",a="byte",u="bytes",s="",l="exponent",c="function",f="iec",d="Invalid number",p="Invalid rounding method",h="jedec",m="object",y=".",b="round",g="s",v="si",w="kbit",E="kB",_=" ",S="string",R="0",A={symbol:{iec:{bits:["bit","Kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["bit","Kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},fullform:{iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]}};function O(e,{bits:t=!1,pad:n=!1,base:O=-1,round:k=2,locale:T=s,localeOptions:x={},separator:j=s,spacer:M=_,symbols:D={},standard:C=s,output:N=S,fullform:I=!1,fullforms:P=[],exponent:L=-1,roundingMethod:B=b,precision:U=0}={}){let F=L,W=Number(e),q=[],H=0,z=s;C===v?(O=10,C=h):C===f||C===h?O=2:2===O?C=f:(O=10,C=h);const V=10===O?1e3:1024,G=!0===I,$=W<0,Y=Math[B];if("bigint"!=typeof e&&isNaN(e))throw new TypeError(d);if(typeof Y!==c)throw new TypeError(p);if($&&(W=-W),(-1===F||isNaN(F))&&(F=Math.floor(Math.log(W)/Math.log(V)),F<0&&(F=0)),F>8&&(U>0&&(U+=8-F),F=8),N===l)return F;if(0===W)q[0]=0,z=q[1]=A.symbol[C][t?o:u][F];else{H=W/(2===O?Math.pow(2,10*F):Math.pow(1e3,F)),t&&(H*=8,H>=V&&F<8&&(H/=V,F++));const e=Math.pow(10,F>0?k:0);q[0]=Y(H*e)/e,q[0]===V&&F<8&&-1===L&&(q[0]=1,F++),z=q[1]=10===O&&1===F?t?w:E:A.symbol[C][t?o:u][F]}if($&&(q[0]=-q[0]),U>0&&(q[0]=q[0].toPrecision(U)),q[1]=D[q[1]]||q[1],!0===T?q[0]=q[0].toLocaleString():T.length>0?q[0]=q[0].toLocaleString(T,x):j.length>0&&(q[0]=q[0].toString().replace(y,j)),n&&!1===Number.isInteger(q[0])&&k>0){const e=j||y,t=q[0].toString().split(e),n=t[1]||s,r=n.length,i=k-r;q[0]=`${t[0]}${e}${n.padEnd(r+i,R)}`}return G&&(q[1]=P[F]?P[F]:A.fullform[C][F]+(t?i:a)+(1===q[0]?s:g)),N===r?q:N===m?{value:q[0],symbol:q[1],exponent:F,unit:z}:q.join(M)}n.filesize=O,n.partial=function({bits:e=!1,pad:t=!1,base:n=-1,round:r=2,locale:i=s,localeOptions:o={},separator:a=s,spacer:u=_,symbols:l={},standard:c=s,output:f=S,fullform:d=!1,fullforms:p=[],exponent:h=-1,roundingMethod:m=b,precision:y=0}={}){return s=>O(s,{bits:e,pad:t,base:n,round:r,locale:i,localeOptions:o,separator:a,spacer:u,symbols:l,standard:c,output:f,fullform:d,fullforms:p,exponent:h,roundingMethod:m,precision:y})}},{}],40:[function(e,t,n){"use strict";var r=e("is-callable"),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty;t.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=n),"[object Array]"===i.call(e)?function(e,t,n){for(var r=0,i=e.length;r<i;r++)o.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a):"string"==typeof e?function(e,t,n){for(var r=0,i=e.length;r<i;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)}(e,t,a):function(e,t,n){for(var r in e)o.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a)}},{"is-callable":66}],41:[function(e,t,n){"use strict";var r=Object.prototype.toString,i=Math.max,o=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n};t.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==r.apply(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var n,a=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n}(arguments,1),u=i(0,t.length-a.length),s=[],l=0;l<u;l++)s[l]="$"+l;if(n=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(s,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof n){var r=t.apply(this,o(a,arguments));return Object(r)===r?r:this}return t.apply(e,o(a,arguments))})),t.prototype){var c=function(){};c.prototype=t.prototype,n.prototype=new c,c.prototype=null}return n}},{}],42:[function(e,t,n){"use strict";var r=e("./implementation");t.exports=Function.prototype.bind||r},{"./implementation":41}],43:[function(e,t,n){"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.__esModule=!0,n.default=c,n.getFieldData=f;var i={"[object HTMLCollection]":!0,"[object NodeList]":!0,"[object RadioNodeList]":!0},o={button:!0,fieldset:!0,reset:!0,submit:!0},a={checkbox:!0,radio:!0},u=/^\s+|\s+$/g,s=Array.prototype.slice,l=Object.prototype.toString;function c(e,t){if(!e)throw new Error("A form is required by getFormData, was given form="+e);t=r({includeDisabled:!1,trim:!1},t);for(var n,i={},a=[],u={},s=0,l=e.elements.length;s<l;s++){var c=e.elements[s];o[c.type]||c.disabled&&!t.includeDisabled||(n=c.name||c.id)&&!u[n]&&(a.push(n),u[n]=!0)}for(var d=0,p=a.length;d<p;d++){var h=f(e,n=a[d],t);null!=h&&(i[n]=h)}return i}function f(e,t,n){if(!e)throw new Error("A form is required by getFieldData, was given form="+e);if(!t&&"[object String]"!==l.call(t))throw new Error("A field name is required by getFieldData, was given fieldName="+t);n=r({includeDisabled:!1,trim:!1},n);var o=e.elements[t];if(!o||o.disabled&&!n.includeDisabled)return null;if(!i[l.call(o)])return d(o,n.trim);for(var a=[],u=!0,s=0,c=o.length;s<c;s++)if(!o[s].disabled||n.includeDisabled){u&&"radio"!==o[s].type&&(u=!1);var f=d(o[s],n.trim);null!=f&&(a=a.concat(f))}return u&&1===a.length?a[0]:a.length>0?a:null}function d(e,t){var n=null,r=e.type;if("select-one"===r)return e.options.length&&(n=e.options[e.selectedIndex].value),n;if("select-multiple"===r){n=[];for(var i=0,o=e.options.length;i<o;i++)e.options[i].selected&&n.push(e.options[i].value);return 0===n.length&&(n=null),n}return"file"===r&&"files"in e?(e.multiple?0===(n=s.call(e.files)).length&&(n=null):n=e.files[0],n):(a[r]?e.checked&&(n="checkbox"===r&&!e.hasAttribute("value")||e.value):n=t?e.value.replace(u,""):e.value,n)}c.getFieldData=f},{}],44:[function(e,t,n){"use strict";var r,i=e("es-errors"),o=e("es-errors/eval"),a=e("es-errors/range"),u=e("es-errors/ref"),s=e("es-errors/syntax"),l=e("es-errors/type"),c=e("es-errors/uri"),f=Function,d=function(e){try{return f('"use strict"; return ('+e+").constructor;")()}catch(e){}},p=Object.getOwnPropertyDescriptor;if(p)try{p({},"")}catch(e){p=null}var h=function(){throw new l},m=p?function(){try{return h}catch(e){try{return p(arguments,"callee").get}catch(e){return h}}}():h,y=e("has-symbols")(),b=e("has-proto")(),g=Object.getPrototypeOf||(b?function(e){return e.__proto__}:null),v={},w="undefined"!=typeof Uint8Array&&g?g(Uint8Array):r,E={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":y&&g?g([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":o,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":f,"%GeneratorFunction%":v,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":y&&g?g(g([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&y&&g?g((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":a,"%ReferenceError%":u,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&y&&g?g((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y&&g?g(""[Symbol.iterator]()):r,"%Symbol%":y?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":m,"%TypedArray%":w,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(g)try{null.error}catch(e){var _=g(g(e));E["%Error.prototype%"]=_}var S=function e(t){var n;if("%AsyncFunction%"===t)n=d("async function () {}");else if("%GeneratorFunction%"===t)n=d("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=d("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&g&&(n=g(i.prototype))}return E[t]=n,n},R={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},A=e("function-bind"),O=e("hasown"),k=A.call(Function.call,Array.prototype.concat),T=A.call(Function.apply,Array.prototype.splice),x=A.call(Function.call,String.prototype.replace),j=A.call(Function.call,String.prototype.slice),M=A.call(Function.call,RegExp.prototype.exec),D=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,N=function(e,t){var n,r=e;if(O(R,r)&&(r="%"+(n=R[r])[0]+"%"),O(E,r)){var i=E[r];if(i===v&&(i=S(r)),void 0===i&&!t)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new s("intrinsic "+e+" does not exist!")};t.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===M(/^%?[^%]*%?$/,e))throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=j(e,0,1),n=j(e,-1);if("%"===t&&"%"!==n)throw new s("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new s("invalid intrinsic syntax, expected opening `%`");var r=[];return x(e,D,(function(e,t,n,i){r[r.length]=n?x(i,C,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",i=N("%"+r+"%",t),o=i.name,a=i.value,u=!1,c=i.alias;c&&(r=c[0],T(n,k([0,1],c)));for(var f=1,d=!0;f<n.length;f+=1){var h=n[f],m=j(h,0,1),y=j(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===y||"'"===y||"`"===y)&&m!==y)throw new s("property names with quotes must have matching quotes");if("constructor"!==h&&d||(u=!0),O(E,o="%"+(r+="."+h)+"%"))a=E[o];else if(null!=a){if(!(h in a)){if(!t)throw new l("base intrinsic for "+e+" exists, but the property is not available.");return}if(p&&f+1>=n.length){var b=p(a,h);a=(d=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:a[h]}else d=O(a,h),a=a[h];d&&!u&&(E[o]=a)}}return a}},{"es-errors":31,"es-errors/eval":30,"es-errors/range":32,"es-errors/ref":33,"es-errors/syntax":34,"es-errors/type":35,"es-errors/uri":36,"function-bind":42,"has-proto":51,"has-symbols":52,hasown:55}],45:[function(e,t,n){t.exports=function(){var e=[];return{broadcast:function(t){for(var n=0;n<e.length;n++)e[n](t)},listen:function(t){return e.push(t),n;function n(){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}}},{}],46:[function(e,t,n){var r=e("./event.js");t.exports=function(e){var t=r();return e(t.broadcast),t.listen}},{"./event.js":45}],47:[function(e,t,n){(function(n){(function(){var r,i=void 0!==n?n:"undefined"!=typeof window?window:{},o=e("min-document");"undefined"!=typeof document?r=document:(r=i["__GLOBAL_DOCUMENT_CACHE@4"])||(r=i["__GLOBAL_DOCUMENT_CACHE@4"]=o),t.exports=r}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"min-document":9}],48:[function(e,t,n){(function(e){(function(){var n;n="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},t.exports=n}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],49:[function(e,t,n){"use strict";var r=e("get-intrinsic")("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}t.exports=r},{"get-intrinsic":44}],50:[function(e,t,n){"use strict";var r=e("es-define-property"),i=function(){return!!r};i.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},t.exports=i},{"es-define-property":29}],51:[function(e,t,n){"use strict";var r={__proto__:null,foo:{}},i=Object;t.exports=function(){return{__proto__:r}.foo===r.foo&&!(r instanceof i)}},{}],52:[function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=e("./shams");t.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&i())))}},{"./shams":53}],53:[function(e,t,n){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},{}],54:[function(e,t,n){"use strict";var r=e("has-symbols/shams");t.exports=function(){return r()&&!!Symbol.toStringTag}},{"has-symbols/shams":53}],55:[function(e,t,n){"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=e("function-bind");t.exports=o.call(r,i)},{"function-bind":42}],56:[function(e,t,n){t.exports=function(e,t){if(void 0===t)return"none"===e.style.display;e.style.display=t?"none":""}},{}],57:[function(e,t,n){!function(){var e=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])d(t,r)&&(e[r]=t[r]);return e},n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},r=o((function(e){return 1===e?"χρόνος":"χρόνια"}),(function(e){return 1===e?"μήνας":"μήνες"}),(function(e){return 1===e?"εβδομάδα":"εβδομάδες"}),(function(e){return 1===e?"μέρα":"μέρες"}),(function(e){return 1===e?"ώρα":"ώρες"}),(function(e){return 1===e?"λεπτό":"λεπτά"}),(function(e){return 1===e?"δευτερόλεπτο":"δευτερόλεπτα"}),(function(e){return(1===e?"χιλιοστό":"χιλιοστά")+" του δευτερολέπτου"}),","),i={af:o("jaar",(function(e){return"maand"+(1===e?"":"e")}),(function(e){return 1===e?"week":"weke"}),(function(e){return 1===e?"dag":"dae"}),(function(e){return 1===e?"uur":"ure"}),(function(e){return 1===e?"minuut":"minute"}),(function(e){return"sekonde"+(1===e?"":"s")}),(function(e){return"millisekonde"+(1===e?"":"s")}),","),am:o("ዓመት","ወር","ሳምንት","ቀን","ሰዓት","ደቂቃ","ሰከንድ","ሚሊሰከንድ"),ar:e(o((function(e){return["سنة","سنتان","سنوات"][a(e)]}),(function(e){return["شهر","شهران","أشهر"][a(e)]}),(function(e){return["أسبوع","أسبوعين","أسابيع"][a(e)]}),(function(e){return["يوم","يومين","أيام"][a(e)]}),(function(e){return["ساعة","ساعتين","ساعات"][a(e)]}),(function(e){return["دقيقة","دقيقتان","دقائق"][a(e)]}),(function(e){return["ثانية","ثانيتان","ثواني"][a(e)]}),(function(e){return["جزء من الثانية","جزآن من الثانية","أجزاء من الثانية"][a(e)]}),","),{delimiter:" ﻭ ",_hideCountIf2:!0,_digitReplacements:["۰","١","٢","٣","٤","٥","٦","٧","٨","٩"]}),bg:o((function(e){return["години","година","години"][s(e)]}),(function(e){return["месеца","месец","месеца"][s(e)]}),(function(e){return["седмици","седмица","седмици"][s(e)]}),(function(e){return["дни","ден","дни"][s(e)]}),(function(e){return["часа","час","часа"][s(e)]}),(function(e){return["минути","минута","минути"][s(e)]}),(function(e){return["секунди","секунда","секунди"][s(e)]}),(function(e){return["милисекунди","милисекунда","милисекунди"][s(e)]}),","),bn:o("বছর","মাস","সপ্তাহ","দিন","ঘন্টা","মিনিট","সেকেন্ড","মিলিসেকেন্ড"),ca:o((function(e){return"any"+(1===e?"":"s")}),(function(e){return"mes"+(1===e?"":"os")}),(function(e){return"setman"+(1===e?"a":"es")}),(function(e){return"di"+(1===e?"a":"es")}),(function(e){return"hor"+(1===e?"a":"es")}),(function(e){return"minut"+(1===e?"":"s")}),(function(e){return"segon"+(1===e?"":"s")}),(function(e){return"milisegon"+(1===e?"":"s")}),","),ckb:o("ساڵ","مانگ","هەفتە","ڕۆژ","کاژێر","خولەک","چرکە","میلی چرکە","."),cs:o((function(e){return["rok","roku","roky","let"][l(e)]}),(function(e){return["měsíc","měsíce","měsíce","měsíců"][l(e)]}),(function(e){return["týden","týdne","týdny","týdnů"][l(e)]}),(function(e){return["den","dne","dny","dní"][l(e)]}),(function(e){return["hodina","hodiny","hodiny","hodin"][l(e)]}),(function(e){return["minuta","minuty","minuty","minut"][l(e)]}),(function(e){return["sekunda","sekundy","sekundy","sekund"][l(e)]}),(function(e){return["milisekunda","milisekundy","milisekundy","milisekund"][l(e)]}),","),cy:o("flwyddyn","mis","wythnos","diwrnod","awr","munud","eiliad","milieiliad"),da:o("år",(function(e){return"måned"+(1===e?"":"er")}),(function(e){return"uge"+(1===e?"":"r")}),(function(e){return"dag"+(1===e?"":"e")}),(function(e){return"time"+(1===e?"":"r")}),(function(e){return"minut"+(1===e?"":"ter")}),(function(e){return"sekund"+(1===e?"":"er")}),(function(e){return"millisekund"+(1===e?"":"er")}),","),de:o((function(e){return"Jahr"+(1===e?"":"e")}),(function(e){return"Monat"+(1===e?"":"e")}),(function(e){return"Woche"+(1===e?"":"n")}),(function(e){return"Tag"+(1===e?"":"e")}),(function(e){return"Stunde"+(1===e?"":"n")}),(function(e){return"Minute"+(1===e?"":"n")}),(function(e){return"Sekunde"+(1===e?"":"n")}),(function(e){return"Millisekunde"+(1===e?"":"n")}),","),el:r,en:o((function(e){return"year"+(1===e?"":"s")}),(function(e){return"month"+(1===e?"":"s")}),(function(e){return"week"+(1===e?"":"s")}),(function(e){return"day"+(1===e?"":"s")}),(function(e){return"hour"+(1===e?"":"s")}),(function(e){return"minute"+(1===e?"":"s")}),(function(e){return"second"+(1===e?"":"s")}),(function(e){return"millisecond"+(1===e?"":"s")})),eo:o((function(e){return"jaro"+(1===e?"":"j")}),(function(e){return"monato"+(1===e?"":"j")}),(function(e){return"semajno"+(1===e?"":"j")}),(function(e){return"tago"+(1===e?"":"j")}),(function(e){return"horo"+(1===e?"":"j")}),(function(e){return"minuto"+(1===e?"":"j")}),(function(e){return"sekundo"+(1===e?"":"j")}),(function(e){return"milisekundo"+(1===e?"":"j")}),","),es:o((function(e){return"año"+(1===e?"":"s")}),(function(e){return"mes"+(1===e?"":"es")}),(function(e){return"semana"+(1===e?"":"s")}),(function(e){return"día"+(1===e?"":"s")}),(function(e){return"hora"+(1===e?"":"s")}),(function(e){return"minuto"+(1===e?"":"s")}),(function(e){return"segundo"+(1===e?"":"s")}),(function(e){return"milisegundo"+(1===e?"":"s")}),","),et:o((function(e){return"aasta"+(1===e?"":"t")}),(function(e){return"kuu"+(1===e?"":"d")}),(function(e){return"nädal"+(1===e?"":"at")}),(function(e){return"päev"+(1===e?"":"a")}),(function(e){return"tund"+(1===e?"":"i")}),(function(e){return"minut"+(1===e?"":"it")}),(function(e){return"sekund"+(1===e?"":"it")}),(function(e){return"millisekund"+(1===e?"":"it")}),","),eu:o("urte","hilabete","aste","egun","ordu","minutu","segundo","milisegundo",","),fa:o("سال","ماه","هفته","روز","ساعت","دقیقه","ثانیه","میلی ثانیه"),fi:o((function(e){return 1===e?"vuosi":"vuotta"}),(function(e){return 1===e?"kuukausi":"kuukautta"}),(function(e){return"viikko"+(1===e?"":"a")}),(function(e){return"päivä"+(1===e?"":"ä")}),(function(e){return"tunti"+(1===e?"":"a")}),(function(e){return"minuutti"+(1===e?"":"a")}),(function(e){return"sekunti"+(1===e?"":"a")}),(function(e){return"millisekunti"+(1===e?"":"a")}),","),fo:o("ár",(function(e){return 1===e?"mánaður":"mánaðir"}),(function(e){return 1===e?"vika":"vikur"}),(function(e){return 1===e?"dagur":"dagar"}),(function(e){return 1===e?"tími":"tímar"}),(function(e){return 1===e?"minuttur":"minuttir"}),"sekund","millisekund",","),fr:o((function(e){return"an"+(e>=2?"s":"")}),"mois",(function(e){return"semaine"+(e>=2?"s":"")}),(function(e){return"jour"+(e>=2?"s":"")}),(function(e){return"heure"+(e>=2?"s":"")}),(function(e){return"minute"+(e>=2?"s":"")}),(function(e){return"seconde"+(e>=2?"s":"")}),(function(e){return"milliseconde"+(e>=2?"s":"")}),","),gr:r,he:o((function(e){return 1===e?"שנה":"שנים"}),(function(e){return 1===e?"חודש":"חודשים"}),(function(e){return 1===e?"שבוע":"שבועות"}),(function(e){return 1===e?"יום":"ימים"}),(function(e){return 1===e?"שעה":"שעות"}),(function(e){return 1===e?"דקה":"דקות"}),(function(e){return 1===e?"שניה":"שניות"}),(function(e){return 1===e?"מילישנייה":"מילישניות"})),hr:o((function(e){return e%10==2||e%10==3||e%10==4?"godine":"godina"}),(function(e){return 1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci"}),(function(e){return e%10==1&&11!==e?"tjedan":"tjedna"}),(function(e){return 1===e?"dan":"dana"}),(function(e){return 1===e?"sat":2===e||3===e||4===e?"sata":"sati"}),(function(e){var t=e%10;return 2!==t&&3!==t&&4!==t||!(e<10||e>14)?"minuta":"minute"}),(function(e){var t=e%10;return 5===t||Math.floor(e)===e&&e>=10&&e<=19?"sekundi":1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi"}),(function(e){return 1===e?"milisekunda":e%10==2||e%10==3||e%10==4?"milisekunde":"milisekundi"}),","),hi:o("साल",(function(e){return 1===e?"महीना":"महीने"}),(function(e){return 1===e?"हफ़्ता":"हफ्ते"}),"दिन",(function(e){return 1===e?"घंटा":"घंटे"}),"मिनट","सेकंड","मिलीसेकंड"),hu:o("év","hónap","hét","nap","óra","perc","másodperc","ezredmásodperc",","),id:o("tahun","bulan","minggu","hari","jam","menit","detik","milidetik"),is:o("ár",(function(e){return"mánuð"+(1===e?"ur":"ir")}),(function(e){return"vik"+(1===e?"a":"ur")}),(function(e){return"dag"+(1===e?"ur":"ar")}),(function(e){return"klukkutím"+(1===e?"i":"ar")}),(function(e){return"mínút"+(1===e?"a":"ur")}),(function(e){return"sekúnd"+(1===e?"a":"ur")}),(function(e){return"millisekúnd"+(1===e?"a":"ur")})),it:o((function(e){return"ann"+(1===e?"o":"i")}),(function(e){return"mes"+(1===e?"e":"i")}),(function(e){return"settiman"+(1===e?"a":"e")}),(function(e){return"giorn"+(1===e?"o":"i")}),(function(e){return"or"+(1===e?"a":"e")}),(function(e){return"minut"+(1===e?"o":"i")}),(function(e){return"second"+(1===e?"o":"i")}),(function(e){return"millisecond"+(1===e?"o":"i")}),","),ja:o("年","ヶ月","週","日","時間","分","秒","ミリ秒"),km:o("ឆ្នាំ","ខែ","សប្តាហ៍","ថ្ងៃ","ម៉ោង","នាទី","វិនាទី","មិល្លីវិនាទី"),kn:o((function(e){return 1===e?"ವರ್ಷ":"ವರ್ಷಗಳು"}),(function(e){return 1===e?"ತಿಂಗಳು":"ತಿಂಗಳುಗಳು"}),(function(e){return 1===e?"ವಾರ":"ವಾರಗಳು"}),(function(e){return 1===e?"ದಿನ":"ದಿನಗಳು"}),(function(e){return 1===e?"ಗಂಟೆ":"ಗಂಟೆಗಳು"}),(function(e){return 1===e?"ನಿಮಿಷ":"ನಿಮಿಷಗಳು"}),(function(e){return 1===e?"ಸೆಕೆಂಡ್":"ಸೆಕೆಂಡುಗಳು"}),(function(e){return 1===e?"ಮಿಲಿಸೆಕೆಂಡ್":"ಮಿಲಿಸೆಕೆಂಡುಗಳು"})),ko:o("년","개월","주일","일","시간","분","초","밀리 초"),ku:o("sal","meh","hefte","roj","seet","deqe","saniye","mîlîçirk",","),lo:o("ປີ","ເດືອນ","ອາທິດ","ມື້","ຊົ່ວໂມງ","ນາທີ","ວິນາທີ","ມິນລິວິນາທີ",","),lt:o((function(e){return e%10==0||e%100>=10&&e%100<=20?"metų":"metai"}),(function(e){return["mėnuo","mėnesiai","mėnesių"][c(e)]}),(function(e){return["savaitė","savaitės","savaičių"][c(e)]}),(function(e){return["diena","dienos","dienų"][c(e)]}),(function(e){return["valanda","valandos","valandų"][c(e)]}),(function(e){return["minutė","minutės","minučių"][c(e)]}),(function(e){return["sekundė","sekundės","sekundžių"][c(e)]}),(function(e){return["milisekundė","milisekundės","milisekundžių"][c(e)]}),","),lv:o((function(e){return f(e)?"gads":"gadi"}),(function(e){return f(e)?"mēnesis":"mēneši"}),(function(e){return f(e)?"nedēļa":"nedēļas"}),(function(e){return f(e)?"diena":"dienas"}),(function(e){return f(e)?"stunda":"stundas"}),(function(e){return f(e)?"minūte":"minūtes"}),(function(e){return f(e)?"sekunde":"sekundes"}),(function(e){return f(e)?"milisekunde":"milisekundes"}),","),mk:o((function(e){return 1===e?"година":"години"}),(function(e){return 1===e?"месец":"месеци"}),(function(e){return 1===e?"недела":"недели"}),(function(e){return 1===e?"ден":"дена"}),(function(e){return 1===e?"час":"часа"}),(function(e){return 1===e?"минута":"минути"}),(function(e){return 1===e?"секунда":"секунди"}),(function(e){return 1===e?"милисекунда":"милисекунди"}),","),mn:o("жил","сар","долоо хоног","өдөр","цаг","минут","секунд","миллисекунд"),mr:o((function(e){return 1===e?"वर्ष":"वर्षे"}),(function(e){return 1===e?"महिना":"महिने"}),(function(e){return 1===e?"आठवडा":"आठवडे"}),"दिवस","तास",(function(e){return 1===e?"मिनिट":"मिनिटे"}),"सेकंद","मिलिसेकंद"),ms:o("tahun","bulan","minggu","hari","jam","minit","saat","milisaat"),nl:o("jaar",(function(e){return 1===e?"maand":"maanden"}),(function(e){return 1===e?"week":"weken"}),(function(e){return 1===e?"dag":"dagen"}),"uur",(function(e){return 1===e?"minuut":"minuten"}),(function(e){return 1===e?"seconde":"seconden"}),(function(e){return 1===e?"milliseconde":"milliseconden"}),","),no:o("år",(function(e){return"måned"+(1===e?"":"er")}),(function(e){return"uke"+(1===e?"":"r")}),(function(e){return"dag"+(1===e?"":"er")}),(function(e){return"time"+(1===e?"":"r")}),(function(e){return"minutt"+(1===e?"":"er")}),(function(e){return"sekund"+(1===e?"":"er")}),(function(e){return"millisekund"+(1===e?"":"er")}),","),pl:o((function(e){return["rok","roku","lata","lat"][u(e)]}),(function(e){return["miesiąc","miesiąca","miesiące","miesięcy"][u(e)]}),(function(e){return["tydzień","tygodnia","tygodnie","tygodni"][u(e)]}),(function(e){return["dzień","dnia","dni","dni"][u(e)]}),(function(e){return["godzina","godziny","godziny","godzin"][u(e)]}),(function(e){return["minuta","minuty","minuty","minut"][u(e)]}),(function(e){return["sekunda","sekundy","sekundy","sekund"][u(e)]}),(function(e){return["milisekunda","milisekundy","milisekundy","milisekund"][u(e)]}),","),pt:o((function(e){return"ano"+(1===e?"":"s")}),(function(e){return 1===e?"mês":"meses"}),(function(e){return"semana"+(1===e?"":"s")}),(function(e){return"dia"+(1===e?"":"s")}),(function(e){return"hora"+(1===e?"":"s")}),(function(e){return"minuto"+(1===e?"":"s")}),(function(e){return"segundo"+(1===e?"":"s")}),(function(e){return"milissegundo"+(1===e?"":"s")}),","),ro:o((function(e){return 1===e?"an":"ani"}),(function(e){return 1===e?"lună":"luni"}),(function(e){return 1===e?"săptămână":"săptămâni"}),(function(e){return 1===e?"zi":"zile"}),(function(e){return 1===e?"oră":"ore"}),(function(e){return 1===e?"minut":"minute"}),(function(e){return 1===e?"secundă":"secunde"}),(function(e){return 1===e?"milisecundă":"milisecunde"}),","),ru:o((function(e){return["лет","год","года"][s(e)]}),(function(e){return["месяцев","месяц","месяца"][s(e)]}),(function(e){return["недель","неделя","недели"][s(e)]}),(function(e){return["дней","день","дня"][s(e)]}),(function(e){return["часов","час","часа"][s(e)]}),(function(e){return["минут","минута","минуты"][s(e)]}),(function(e){return["секунд","секунда","секунды"][s(e)]}),(function(e){return["миллисекунд","миллисекунда","миллисекунды"][s(e)]}),","),sq:o((function(e){return 1===e?"vit":"vjet"}),"muaj","javë","ditë","orë",(function(e){return"minut"+(1===e?"ë":"a")}),(function(e){return"sekond"+(1===e?"ë":"a")}),(function(e){return"milisekond"+(1===e?"ë":"a")}),","),sr:o((function(e){return["години","година","године"][s(e)]}),(function(e){return["месеци","месец","месеца"][s(e)]}),(function(e){return["недељи","недеља","недеље"][s(e)]}),(function(e){return["дани","дан","дана"][s(e)]}),(function(e){return["сати","сат","сата"][s(e)]}),(function(e){return["минута","минут","минута"][s(e)]}),(function(e){return["секунди","секунда","секунде"][s(e)]}),(function(e){return["милисекунди","милисекунда","милисекунде"][s(e)]}),","),ta:o((function(e){return 1===e?"வருடம்":"ஆண்டுகள்"}),(function(e){return 1===e?"மாதம்":"மாதங்கள்"}),(function(e){return 1===e?"வாரம்":"வாரங்கள்"}),(function(e){return 1===e?"நாள்":"நாட்கள்"}),(function(e){return 1===e?"மணி":"மணிநேரம்"}),(function(e){return"நிமிட"+(1===e?"ம்":"ங்கள்")}),(function(e){return"வினாடி"+(1===e?"":"கள்")}),(function(e){return"மில்லி விநாடி"+(1===e?"":"கள்")})),te:o((function(e){return"సంవత్స"+(1===e?"రం":"రాల")}),(function(e){return"నెల"+(1===e?"":"ల")}),(function(e){return 1===e?"వారం":"వారాలు"}),(function(e){return"రోజు"+(1===e?"":"లు")}),(function(e){return"గంట"+(1===e?"":"లు")}),(function(e){return 1===e?"నిమిషం":"నిమిషాలు"}),(function(e){return 1===e?"సెకను":"సెకన్లు"}),(function(e){return 1===e?"మిల్లీసెకన్":"మిల్లీసెకన్లు"})),uk:o((function(e){return["років","рік","роки"][s(e)]}),(function(e){return["місяців","місяць","місяці"][s(e)]}),(function(e){return["тижнів","тиждень","тижні"][s(e)]}),(function(e){return["днів","день","дні"][s(e)]}),(function(e){return["годин","година","години"][s(e)]}),(function(e){return["хвилин","хвилина","хвилини"][s(e)]}),(function(e){return["секунд","секунда","секунди"][s(e)]}),(function(e){return["мілісекунд","мілісекунда","мілісекунди"][s(e)]}),","),ur:o("سال",(function(e){return 1===e?"مہینہ":"مہینے"}),(function(e){return 1===e?"ہفتہ":"ہفتے"}),"دن",(function(e){return 1===e?"گھنٹہ":"گھنٹے"}),"منٹ","سیکنڈ","ملی سیکنڈ"),sk:o((function(e){return["rok","roky","roky","rokov"][l(e)]}),(function(e){return["mesiac","mesiace","mesiace","mesiacov"][l(e)]}),(function(e){return["týždeň","týždne","týždne","týždňov"][l(e)]}),(function(e){return["deň","dni","dni","dní"][l(e)]}),(function(e){return["hodina","hodiny","hodiny","hodín"][l(e)]}),(function(e){return["minúta","minúty","minúty","minút"][l(e)]}),(function(e){return["sekunda","sekundy","sekundy","sekúnd"][l(e)]}),(function(e){return["milisekunda","milisekundy","milisekundy","milisekúnd"][l(e)]}),","),sl:o((function(e){return e%10==1?"leto":e%100==2?"leti":e%100==3||e%100==4||Math.floor(e)!==e&&e%100<=5?"leta":"let"}),(function(e){return e%10==1?"mesec":e%100==2||Math.floor(e)!==e&&e%100<=5?"meseca":e%10==3||e%10==4?"mesece":"mesecev"}),(function(e){return e%10==1?"teden":e%10==2||Math.floor(e)!==e&&e%100<=4?"tedna":e%10==3||e%10==4?"tedne":"tednov"}),(function(e){return e%100==1?"dan":"dni"}),(function(e){return e%10==1?"ura":e%100==2?"uri":e%10==3||e%10==4||Math.floor(e)!==e?"ure":"ur"}),(function(e){return e%10==1?"minuta":e%10==2?"minuti":e%10==3||e%10==4||Math.floor(e)!==e&&e%100<=4?"minute":"minut"}),(function(e){return e%10==1?"sekunda":e%100==2?"sekundi":e%100==3||e%100==4||Math.floor(e)!==e?"sekunde":"sekund"}),(function(e){return e%10==1?"milisekunda":e%100==2?"milisekundi":e%100==3||e%100==4||Math.floor(e)!==e?"milisekunde":"milisekund"}),","),sv:o("år",(function(e){return"månad"+(1===e?"":"er")}),(function(e){return"veck"+(1===e?"a":"or")}),(function(e){return"dag"+(1===e?"":"ar")}),(function(e){return"timm"+(1===e?"e":"ar")}),(function(e){return"minut"+(1===e?"":"er")}),(function(e){return"sekund"+(1===e?"":"er")}),(function(e){return"millisekund"+(1===e?"":"er")}),","),sw:e(o((function(e){return 1===e?"mwaka":"miaka"}),(function(e){return 1===e?"mwezi":"miezi"}),"wiki",(function(e){return 1===e?"siku":"masiku"}),(function(e){return 1===e?"saa":"masaa"}),"dakika","sekunde","milisekunde"),{_numberFirst:!0}),tr:o("yıl","ay","hafta","gün","saat","dakika","saniye","milisaniye",","),th:o("ปี","เดือน","สัปดาห์","วัน","ชั่วโมง","นาที","วินาที","มิลลิวินาที"),uz:o("yil","oy","hafta","kun","soat","minut","sekund","millisekund"),uz_CYR:o("йил","ой","ҳафта","кун","соат","минут","секунд","миллисекунд"),vi:o("năm","tháng","tuần","ngày","giờ","phút","giây","mili giây",","),zh_CN:o("年","个月","周","天","小时","分钟","秒","毫秒"),zh_TW:o("年","個月","周","天","小時","分鐘","秒","毫秒")};function o(e,t,n,r,i,o,a,u,s){var l={y:e,mo:t,w:n,d:r,h:i,m:o,s:a,ms:u};return void 0!==s&&(l.decimal=s),l}function a(e){return 2===e?1:e>2&&e<11?2:0}function u(e){return 1===e?0:Math.floor(e)!==e?1:e%10>=2&&e%10<=4&&!(e%100>10&&e%100<20)?2:3}function s(e){return Math.floor(e)!==e?2:e%100>=5&&e%100<=20||e%10>=5&&e%10<=9||e%10==0?0:e%10==1?1:e>1?2:0}function l(e){return 1===e?0:Math.floor(e)!==e?1:e%10>=2&&e%10<=4&&e%100<10?2:3}function c(e){return 1===e||e%10==1&&e%100>20?0:Math.floor(e)!==e||e%10>=2&&e%100>20||e%10>=2&&e%100<10?1:2}function f(e){return e%10==1&&e%100!=11}function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function p(e,t,n){var r,i,o,a=e.unitName,u=e.unitCount,s=n.spacer,l=n.maxDecimalPoints;r=d(n,"decimal")?n.decimal:d(t,"decimal")?t.decimal:".","digitReplacements"in n?i=n.digitReplacements:"_digitReplacements"in t&&(i=t._digitReplacements);var c=(void 0===l?u:Math.floor(u*Math.pow(10,l))/Math.pow(10,l)).toString();if(t._hideCountIf2&&2===u)o="",s="";else if(i){o="";for(var f=0;f<c.length;f++){var p=c[f];o+="."===p?r:i[p]}}else o=c.replace(".",r);var h,m=t[a];return h="function"==typeof m?m(u):m,t._numberFirst?h+s+o:o+s+h}function h(e,t){var r=function(e){var t=[e.language];if(d(e,"fallbacks")){if(!n(e.fallbacks)||!e.fallbacks.length)throw new Error("fallbacks must be an array with at least one element");t=t.concat(e.fallbacks)}for(var r=0;r<t.length;r++){var o=t[r];if(d(e.languages,o))return e.languages[o];if(d(i,o))return i[o]}throw new Error("No language found.")}(t);if(!e.length){var o=t.units;return p({unitName:o[o.length-1],unitCount:0},r,t)}var a,u=t.conjunction,s=t.serialComma;a=d(t,"delimiter")?t.delimiter:d(r,"delimiter")?r.delimiter:", ";for(var l=[],c=0;c<e.length;c++)l.push(p(e[c],r,t));return u&&1!==e.length?2===e.length?l.join(u):l.slice(0,-1).join(a)+(s?",":"")+u+l.slice(-1):l.join(a)}function m(t){var n=function(t,r){t=Math.abs(t);var i=e({},n,r||{}),o=function(e,t){var n,r,i,o,a=t.units,u=t.unitMeasures,s="largest"in t?t.largest:1/0;if(!a.length)return[];var l={};for(o=e,r=0;r<a.length;r++){var c=u[n=a[r]];i=r===a.length-1?o/c:Math.floor(o/c),l[n]=i,o-=i*c}if(t.round){var f=s;for(r=0;r<a.length;r++)if(0!==(i=l[n=a[r]])&&0==--f){for(var d=r+1;d<a.length;d++){var p=a[d],h=l[p];l[n]+=h*u[p]/u[n],l[p]=0}break}for(r=a.length-1;r>=0;r--)if(0!==(i=l[n=a[r]])){var m=Math.round(i);if(l[n]=m,0===r)break;var y=a[r-1],b=u[y],g=Math.floor(m*u[n]/b);if(!g)break;l[y]+=g,l[n]=0}}var v=[];for(r=0;r<a.length&&v.length<s;r++)(i=l[n=a[r]])&&v.push({unitName:n,unitCount:i});return v}(t,i);return h(o,i)};return e(n,{language:"en",spacer:" ",conjunction:"",serialComma:!0,units:["y","mo","w","d","h","m","s"],languages:{},round:!1,unitMeasures:{y:315576e5,mo:26298e5,w:6048e5,d:864e5,h:36e5,m:6e4,s:1e3,ms:1}},t)}var y=e(m({}),{getSupportedLanguages:function(){var e=[];for(var t in i)d(i,t)&&"gr"!==t&&e.push(t);return e},humanizer:m});void 0!==t&&t.exports?t.exports=y:this.humanizeDuration=y}()},{}],58:[function(e,t,n){var r=e("browser-split"),i=e("class-list"),o="undefined"==typeof window?e("html-element"):window,a=o.document,u=o.Text;function s(){var e=[];function t(){var t=[].slice.call(arguments),n=null;function o(t){var s,f,d;if(null==t);else if("string"==typeof t)n?n.appendChild(s=a.createTextNode(t)):(d=r(t,/([\.#]?[^\s#.]+)/),/^\.|#/.test(d[1])&&(n=a.createElement("div")),c(d,(function(e){var t=e.substring(1,e.length);e&&(n?"."===e[0]?i(n).add(t):"#"===e[0]&&n.setAttribute("id",t):n=a.createElement(e))})));else if("number"==typeof t||"boolean"==typeof t||t instanceof Date||t instanceof RegExp)n.appendChild(s=a.createTextNode(t.toString()));else if(f=t,"[object Array]"==Object.prototype.toString.call(f))c(t,o);else if(l(t))n.appendChild(s=t);else if(t instanceof u)n.appendChild(s=t);else if("object"==typeof t)for(var p in t)if("function"==typeof t[p])/^on\w+/.test(p)?function(t,r){n.addEventListener?(n.addEventListener(t.substring(2),r[t],!1),e.push((function(){n.removeEventListener(t.substring(2),r[t],!1)}))):(n.attachEvent(t,r[t]),e.push((function(){n.detachEvent(t,r[t])})))}(p,t):(n[p]=t[p](),e.push(t[p]((function(e){n[p]=e}))));else if("style"===p)if("string"==typeof t[p])n.style.cssText=t[p];else for(var h in t[p])!function(r,i){if("function"==typeof i)n.style.setProperty(r,i()),e.push(i((function(e){n.style.setProperty(r,e)})));else var o=t[p][r].match(/(.*)\W+!important\W*$/);o?n.style.setProperty(r,o[1],"important"):n.style.setProperty(r,t[p][r])}(h,t[p][h]);else if("attrs"===p)for(var m in t[p])n.setAttribute(m,t[p][m]);else"data-"===p.substr(0,5)?n.setAttribute(p,t[p]):n[p]=t[p];else if("function"==typeof t){m=t();n.appendChild(s=l(m)?m:a.createTextNode(m)),e.push(t((function(e){l(e)&&s.parentElement?(s.parentElement.replaceChild(e,s),s=e):s.textContent=e})))}return s}for(;t.length;)o(t.shift());return n}return t.cleanup=function(){for(var t=0;t<e.length;t++)e[t]();e.length=0},t}function l(e){return e&&e.nodeName&&e.nodeType}function c(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n)}(t.exports=s()).context=s},{"browser-split":10,"class-list":15,"html-element":9}],59:[function(e,t,n){
|
|
30
30
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
31
|
-
n.read=function(e,t,n,r,i){var o,
|
|
31
|
+
n.read=function(e,t,n,r,i){var o,a,u=8*i-r-1,s=(1<<u)-1,l=s>>1,c=-7,f=n?i-1:0,d=n?-1:1,p=e[t+f];for(f+=d,o=p&(1<<-c)-1,p>>=-c,c+=u;c>0;o=256*o+e[t+f],f+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=d,c-=8);if(0===o)o=1-l;else{if(o===s)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=l}return(p?-1:1)*a*Math.pow(2,o-r)},n.write=function(e,t,n,r,i,o){var a,u,s,l=8*o-i-1,c=(1<<l)-1,f=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),(t+=a+f>=1?d/s:d*Math.pow(2,1-f))*s>=2&&(a++,s/=2),a+f>=c?(u=0,a=c):a+f>=1?(u=(t*s-1)*Math.pow(2,i),a+=f):(u=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&u,p+=h,u/=256,i-=8);for(a=a<<i|u,l+=i;l>0;e[n+p]=255&a,p+=h,a/=256,l-=8);e[n+p-h]|=128*m}},{}],60:[function(e,t,n){var r=[].indexOf;t.exports=function(e,t){if(r)return e.indexOf(t);for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1}},{}],61:[function(e,t,n){"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},{}],62:[function(e,t,n){var r=[],i=[];function o(e,t){if(t=t||{},void 0===e)throw new Error("insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).");var n,o=!0===t.prepend?"prepend":"append",a=void 0!==t.container?t.container:document.querySelector("head"),u=r.indexOf(a);return-1===u&&(u=r.push(a)-1,i[u]={}),void 0!==i[u]&&void 0!==i[u][o]?n=i[u][o]:(n=i[u][o]=function(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}(),"prepend"===o?a.insertBefore(n,a.childNodes[0]):a.appendChild(n)),65279===e.charCodeAt(0)&&(e=e.substr(1,e.length)),n.styleSheet?n.styleSheet.cssText+=e:n.textContent+=e,n}t.exports=o,t.exports.insertCss=o},{}],63:[function(e,t,n){
|
|
32
32
|
/*! npm.im/intervalometer */
|
|
33
|
-
"use strict";function r(e,t,n,r){var i,o;function
|
|
33
|
+
"use strict";function r(e,t,n,r){var i,o;function a(n){i=t(a,r),e(n-(o||n)),o=n}return{start:function(){i||a(0)},stop:function(){n(i),i=null,o=0}}}Object.defineProperty(n,"__esModule",{value:!0}),n.intervalometer=r,n.frameIntervalometer=function(e){return r(e,requestAnimationFrame,cancelAnimationFrame)},n.timerIntervalometer=function(e,t){return r(e,setTimeout,clearTimeout,t)}},{}],64:[function(e,t,n){
|
|
34
34
|
/*! npm.im/iphone-inline-video 2.2.2 */
|
|
35
|
-
"use strict";var r=e("intervalometer");function i(e,t,n){function r(r){n&&!n(e,t)||r.stopImmediatePropagation()}return e.addEventListener(t,r),r}function o(e,t,n,r){function i(e){n[t]=e}r&&i(e[t]),Object.defineProperty(e,t,{get:function(){return n[t]},set:i})}function s(e,t,n){n.addEventListener(t,(function(){return e.dispatchEvent(new Event(t))}))}function a(e,t){Promise.resolve().then((function(){e.dispatchEvent(new Event(t))}))}var u="object"==typeof document&&"object-fit"in document.head.style&&!matchMedia("(-webkit-video-playable-inline)").matches,l="bfred-it:iphone-inline-video",c="bfred-it:iphone-inline-video:event",f="bfred-it:iphone-inline-video:nativeplay",d="bfred-it:iphone-inline-video:nativepause";var p,h=[],y=0;function m(e,t,n){(p||0)+200<Date.now()&&(e[c]=!0,p=Date.now()),n||(e.currentTime=t),h[++y%3]=100*t|0}function b(e){return e.driver.currentTime>=e.video.duration}function g(e){var t=this;t.video.readyState>=t.video.HAVE_FUTURE_DATA?(t.hasAudio||(t.driver.currentTime=t.video.currentTime+e*t.video.playbackRate/1e3,t.video.loop&&b(t)&&(t.driver.currentTime=0)),m(t.video,t.driver.currentTime)):t.video.networkState===t.video.NETWORK_IDLE&&0===t.video.buffered.length&&t.video.load(),t.video.ended&&(delete t.video[c],t.video.pause(!0))}function v(){var e=this,t=e[l];e.webkitDisplayingFullscreen?e[f]():("data:"!==t.driver.src&&t.driver.src!==e.src&&(m(e,0,!0),t.driver.src=e.src),e.paused&&(t.paused=!1,0===e.buffered.length&&e.load(),t.driver.play(),t.updater.start(),t.hasAudio||(a(e,"play"),t.video.readyState>=t.video.HAVE_ENOUGH_DATA&&a(e,"playing"))))}function w(e){var t=this,n=t[l];n.driver.pause(),n.updater.stop(),t.webkitDisplayingFullscreen&&t[d](),n.paused&&!e||(n.paused=!0,n.hasAudio||a(t,"pause"),t.ended&&!t.webkitDisplayingFullscreen&&(t[c]=!0,a(t,"ended")))}function j(e,t){var n={};e[l]=n,n.paused=!0,n.hasAudio=t,n.video=e,n.updater=r.frameIntervalometer(g.bind(n)),t?n.driver=function(e){var t=new Audio;return s(e,"play",t),s(e,"playing",t),s(e,"pause",t),t.crossOrigin=e.crossOrigin,t.src=e.src||e.currentSrc||"data:",t}(e):(e.addEventListener("canplay",(function(){e.paused||a(e,"playing")})),n.driver={src:e.src||e.currentSrc||"data:",muted:!0,paused:!0,pause:function(){n.driver.paused=!0},play:function(){n.driver.paused=!1,b(n)&&m(e,0)},get ended(){return b(n)}}),e.addEventListener("emptied",(function(){var r=!n.driver.src||"data:"===n.driver.src;n.driver.src&&n.driver.src!==e.src&&(m(e,0,!0),n.driver.src=e.src,r||!t&&e.autoplay?n.driver.play():n.updater.stop())}),!1),e.addEventListener("webkitbeginfullscreen",(function(){e.paused?t&&0===n.driver.buffered.length&&n.driver.load():(e.pause(),e[f]())})),t&&(e.addEventListener("webkitendfullscreen",(function(){n.driver.currentTime=e.currentTime})),e.addEventListener("seeking",(function(){h.indexOf(100*e.currentTime|0)<0&&(n.driver.currentTime=e.currentTime)})))}function E(e){var t=e[c];return delete e[c],!e.webkitDisplayingFullscreen&&!t}t.exports=function(e,t){if(void 0===t&&(t={}),!e[l]){if(!t.everywhere){if(!u)return;if(!(t.iPad||t.ipad?/iPhone|iPod|iPad/:/iPhone|iPod/).test(navigator.userAgent))return}e.pause();var n=e.autoplay;e.autoplay=!1,j(e,!e.muted),function(e){var t=e[l];e[f]=e.play,e[d]=e.pause,e.play=v,e.pause=w,o(e,"paused",t.driver),o(e,"muted",t.driver,!0),o(e,"playbackRate",t.driver,!0),o(e,"ended",t.driver),o(e,"loop",t.driver,!0),i(e,"seeking",(function(e){return!e.webkitDisplayingFullscreen})),i(e,"seeked",(function(e){return!e.webkitDisplayingFullscreen})),i(e,"timeupdate",E),i(e,"ended",E)}(e),e.classList.add("IIV"),e.muted&&n&&(e.play(),e.addEventListener("playing",(function t(){e.autoplay=!0,e.removeEventListener("playing",t)}))),/iPhone|iPod|iPad/.test(navigator.platform)||console.warn("iphone-inline-video is not guaranteed to work in emulated environments")}}},{intervalometer:307}],309:[function(e,t,n){"use strict";var r=e("has-tostringtag/shams")(),i=e("call-bind/callBound")("Object.prototype.toString"),o=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},s=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},a=function(){return o(arguments)}();o.isLegacyArguments=s,t.exports=a?o:s},{"call-bind/callBound":12,"has-tostringtag/shams":298}],310:[function(e,t,n){"use strict";var r,i,o=Function.prototype.toString,s="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof s&&"function"==typeof Object.defineProperty)try{r=Object.defineProperty({},"length",{get:function(){throw i}}),i={},s((function(){throw 42}),null,r)}catch(e){e!==i&&(s=null)}else s=null;var a=/^\s*class\b/,u=function(e){try{var t=o.call(e);return a.test(t)}catch(e){return!1}},l=function(e){try{return!u(e)&&(o.call(e),!0)}catch(e){return!1}},c=Object.prototype.toString,f="function"==typeof Symbol&&!!Symbol.toStringTag,d=!(0 in[,]),p=function(){return!1};if("object"==typeof document){var h=document.all;c.call(h)===c.call(document.all)&&(p=function(e){if((d||!e)&&(void 0===e||"object"==typeof e))try{var t=c.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}t.exports=s?function(e){if(p(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{s(e,null,r)}catch(e){if(e!==i)return!1}return!u(e)&&l(e)}:function(e){if(p(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(f)return l(e);if(u(e))return!1;var t=c.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&l(e)}},{}],311:[function(e,t,n){"use strict";t.exports=Number.isFinite||function(e){return!("number"!=typeof e||e!=e||e===1/0||e===-1/0)}},{}],312:[function(e,t,n){"use strict";var r,i=Object.prototype.toString,o=Function.prototype.toString,s=/^\s*(?:function)?\*/,a=e("has-tostringtag/shams")(),u=Object.getPrototypeOf;t.exports=function(e){if("function"!=typeof e)return!1;if(s.test(o.call(e)))return!0;if(!a)return"[object GeneratorFunction]"===i.call(e);if(!u)return!1;if(void 0===r){var t=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch(e){}}();r=!!t&&u(t)}return u(e)===r}},{"has-tostringtag/shams":298}],313:[function(e,t,n){t.exports=function(e){return 0!==e&&0==(e&e-1)}},{}],314:[function(e,t,n){"use strict";var r=e("which-typed-array");t.exports=function(e){return!!r(e)}},{"which-typed-array":364}],315:[function(e,t,n){var r={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},{}],316:[function(e,t,n){"use strict";t.exports=function(e){var t,n={};if(!(e instanceof Object)||Array.isArray(e))throw new Error("keyMirror(...): Argument must be an object.");for(t in e)e.hasOwnProperty(t)&&(n[t]=t);return n}},{}],317:[function(e,t,n){"use strict";var r=e("is-finite");t.exports=Number.isInteger||function(e){return r(e)&&Math.floor(e)===e}},{"is-finite":311}],318:[function(e,t,n){(function(n){(function(){var r="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"==typeof i.get?i.get:null,s=r&&Map.prototype.forEach,a="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=a&&u&&"function"==typeof u.get?u.get:null,c=a&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,y=Object.prototype.toString,m=Function.prototype.toString,b=String.prototype.match,g=String.prototype.slice,v=String.prototype.replace,w=String.prototype.toUpperCase,j=String.prototype.toLowerCase,E=RegExp.prototype.test,x=Array.prototype.concat,_=Array.prototype.join,S=Array.prototype.slice,A=Math.floor,R="function"==typeof BigInt?BigInt.prototype.valueOf:null,k=Object.getOwnPropertySymbols,O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,T="function"==typeof Symbol&&"object"==typeof Symbol.iterator,I="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===T||"symbol")?Symbol.toStringTag:null,M=Object.prototype.propertyIsEnumerable,P=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function C(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||E.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-A(-e):A(e);if(r!==e){var i=String(r),o=g.call(t,i.length+1);return v.call(i,n,"$&_")+"."+v.call(v.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,n,"$&_")}var N=e("./util.inspect"),L=N.custom,D=W(L)?L:null;function B(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function U(e){return v.call(String(e),/"/g,""")}function F(e){return!("[object Array]"!==V(e)||I&&"object"==typeof e&&I in e)}function q(e){return!("[object RegExp]"!==V(e)||I&&"object"==typeof e&&I in e)}function W(e){if(T)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!O)return!1;try{return O.call(e),!0}catch(e){}return!1}t.exports=function e(t,r,i,a){var u=r||{};if(z(u,"quoteStyle")&&"single"!==u.quoteStyle&&"double"!==u.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(z(u,"maxStringLength")&&("number"==typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var y=!z(u,"customInspect")||u.customInspect;if("boolean"!=typeof y&&"symbol"!==y)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(z(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(z(u,"numericSeparator")&&"boolean"!=typeof u.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=u.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return $(t,u);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var E=String(t);return w?C(t,E):E}if("bigint"==typeof t){var A=String(t)+"n";return w?C(t,A):A}var k=void 0===u.depth?5:u.depth;if(void 0===i&&(i=0),i>=k&&k>0&&"object"==typeof t)return F(t)?"[Array]":"[Object]";var L=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=_.call(Array(e.indent+1)," ")}return{base:n,prev:_.call(Array(t+1),n)}}(u,i);if(void 0===a)a=[];else if(G(a,t)>=0)return"[Circular]";function H(t,n,r){if(n&&(a=S.call(a)).push(n),r){var o={depth:u.depth};return z(u,"quoteStyle")&&(o.quoteStyle=u.quoteStyle),e(t,o,i+1,a)}return e(t,u,i+1,a)}if("function"==typeof t&&!q(t)){var Y=function(e){if(e.name)return e.name;var t=b.call(m.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),ee=Z(t,H);return"[Function"+(Y?": "+Y:" (anonymous)")+"]"+(ee.length>0?" { "+_.call(ee,", ")+" }":"")}if(W(t)){var te=T?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):O.call(t);return"object"!=typeof t||T?te:J(te)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var ne="<"+j.call(String(t.nodeName)),re=t.attributes||[],ie=0;ie<re.length;ie++)ne+=" "+re[ie].name+"="+B(U(re[ie].value),"double",u);return ne+=">",t.childNodes&&t.childNodes.length&&(ne+="..."),ne+="</"+j.call(String(t.nodeName))+">"}if(F(t)){if(0===t.length)return"[]";var oe=Z(t,H);return L&&!function(e){for(var t=0;t<e.length;t++)if(G(e[t],"\n")>=0)return!1;return!0}(oe)?"["+Q(oe,L)+"]":"[ "+_.call(oe,", ")+" ]"}if(function(e){return!("[object Error]"!==V(e)||I&&"object"==typeof e&&I in e)}(t)){var se=Z(t,H);return"cause"in Error.prototype||!("cause"in t)||M.call(t,"cause")?0===se.length?"["+String(t)+"]":"{ ["+String(t)+"] "+_.call(se,", ")+" }":"{ ["+String(t)+"] "+_.call(x.call("[cause]: "+H(t.cause),se),", ")+" }"}if("object"==typeof t&&y){if(D&&"function"==typeof t[D]&&N)return N(t,{depth:k-i});if("symbol"!==y&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{l.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ae=[];return s&&s.call(t,(function(e,n){ae.push(H(n,t,!0)+" => "+H(e,t))})),X("Map",o.call(t),ae,L)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ue=[];return c&&c.call(t,(function(e){ue.push(H(e,t))})),X("Set",l.call(t),ue,L)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return K("WeakMap");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return K("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(e){}return!1}(t))return K("WeakRef");if(function(e){return!("[object Number]"!==V(e)||I&&"object"==typeof e&&I in e)}(t))return J(H(Number(t)));if(function(e){if(!e||"object"!=typeof e||!R)return!1;try{return R.call(e),!0}catch(e){}return!1}(t))return J(H(R.call(t)));if(function(e){return!("[object Boolean]"!==V(e)||I&&"object"==typeof e&&I in e)}(t))return J(h.call(t));if(function(e){return!("[object String]"!==V(e)||I&&"object"==typeof e&&I in e)}(t))return J(H(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if(t===n)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==V(e)||I&&"object"==typeof e&&I in e)}(t)&&!q(t)){var le=Z(t,H),ce=P?P(t)===Object.prototype:t instanceof Object||t.constructor===Object,fe=t instanceof Object?"":"null prototype",de=!ce&&I&&Object(t)===t&&I in t?g.call(V(t),8,-1):fe?"Object":"",pe=(ce||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(de||fe?"["+_.call(x.call([],de||[],fe||[]),": ")+"] ":"");return 0===le.length?pe+"{}":L?pe+"{"+Q(le,L)+"}":pe+"{ "+_.call(le,", ")+" }"}return String(t)};var H=Object.prototype.hasOwnProperty||function(e){return e in this};function z(e,t){return H.call(e,t)}function V(e){return y.call(e)}function G(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function $(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return $(g.call(e,0,t.maxStringLength),t)+r}return B(v.call(v.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Y),"single",t)}function Y(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function J(e){return"Object("+e+")"}function K(e){return e+" { ? }"}function X(e,t,n,r){return e+" ("+t+") {"+(r?Q(n,r):_.call(n,", "))+"}"}function Q(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+_.call(e,","+n)+"\n"+t.prev}function Z(e,t){var n=F(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=z(e,i)?t(e[i],e):""}var o,s="function"==typeof k?k(e):[];if(T){o={};for(var a=0;a<s.length;a++)o["$"+s[a]]=s[a]}for(var u in e)z(e,u)&&(n&&String(Number(u))===u&&u<e.length||T&&o["$"+u]instanceof Symbol||(E.call(/[^\w$]/,u)?r.push(t(u,e)+": "+t(e[u],e)):r.push(u+": "+t(e[u],e))));if("function"==typeof k)for(var l=0;l<s.length;l++)M.call(e,s[l])&&r.push("["+t(s[l])+"]: "+t(e[s[l]],e));return r}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./util.inspect":9}],319:[function(e,t,n){var r=e("wrappy");function i(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function o(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},n=e.name||"Function wrapped with `once`";return t.onceError=n+" shouldn't be called more than once",t.called=!1,t}t.exports=r(i),t.exports.strict=r(o),i.proto=i((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return o(this)},configurable:!0})}))},{wrappy:365}],320:[function(e,t,n){(function(e){(function(){(function(){var n,r,i,o,s,a;"undefined"!=typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:null!=e&&e.hrtime?(t.exports=function(){return(n()-s)/1e6},r=e.hrtime,o=(n=function(){var e;return 1e9*(e=r())[0]+e[1]})(),a=1e9*e.uptime(),s=o-a):Date.now?(t.exports=function(){return Date.now()-i},i=Date.now()):(t.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(this)}).call(this,e("_process"))},{_process:322}],321:[function(e,t,n){(function(e){(function(){"use strict";void 0===e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:function(t,n,r,i){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var o,s,a=arguments.length;switch(a){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,n)}));case 3:return e.nextTick((function(){t.call(null,n,r)}));case 4:return e.nextTick((function(){t.call(null,n,r,i)}));default:for(o=new Array(a-1),s=0;s<o.length;)o[s++]=arguments[s];return e.nextTick((function(){t.apply(null,o)}))}}}:t.exports=e}).call(this)}).call(this,e("_process"))},{_process:322}],322:[function(e,t,n){var r,i,o=t.exports={};function s(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(e){if(r===setTimeout)return setTimeout(e,0);if((r===s||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:s}catch(e){r=s}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(e){i=a}}();var l,c=[],f=!1,d=-1;function p(){f&&l&&(f=!1,l.length?c=l.concat(c):d=-1,c.length&&h())}function h(){if(!f){var e=u(p);f=!0;for(var t=c.length;t;){for(l=c,c=[];++d<t;)l&&l[d].run();d=-1,t=c.length}l=null,f=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{return i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function y(e,t){this.fun=e,this.array=t}function m(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new y(e,t)),1!==c.length||f||u(h)},y.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],323:[function(e,t,n){"use strict";var r=String.prototype.replace,i=/%20/g,o="RFC1738",s="RFC3986";t.exports={default:s,formatters:{RFC1738:function(e){return r.call(e,i,"+")},RFC3986:function(e){return String(e)}},RFC1738:o,RFC3986:s}},{}],324:[function(e,t,n){"use strict";var r=e("./stringify"),i=e("./parse"),o=e("./formats");t.exports={formats:o,parse:i,stringify:r}},{"./formats":323,"./parse":325,"./stringify":326}],325:[function(e,t,n){"use strict";var r=e("./utils"),i=Object.prototype.hasOwnProperty,o=Array.isArray,s={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},u=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,a=n.depth>0&&/(\[[^[\]]*])/.exec(o),l=a?o.slice(0,a.index):o,c=[];if(l){if(!n.plainObjects&&i.call(Object.prototype,l)&&!n.allowPrototypes)return;c.push(l)}for(var f=0;n.depth>0&&null!==(a=s.exec(o))&&f<n.depth;){if(f+=1,!n.plainObjects&&i.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(a[1])}return a&&c.push("["+o.slice(a.index)+"]"),function(e,t,n,r){for(var i=r?t:u(t,n),o=e.length-1;o>=0;--o){var s,a=e[o];if("[]"===a&&n.parseArrays)s=[].concat(i);else{s=n.plainObjects?Object.create(null):{};var l="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,c=parseInt(l,10);n.parseArrays||""!==l?!isNaN(c)&&a!==l&&String(c)===l&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(s=[])[c]=i:"__proto__"!==l&&(s[l]=i):s={0:i}}i=s}return i}(c,t,n,r)}};t.exports=function(e,t){var n=function(e){if(!e)return s;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?s.charset:e.charset;return{allowDots:void 0===e.allowDots?s.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:s.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:s.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:s.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:s.comma,decoder:"function"==typeof e.decoder?e.decoder:s.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:s.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:s.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:s.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:s.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:s.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var c="string"==typeof e?function(e,t){var n,l={},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,d=c.split(t.delimiter,f),p=-1,h=t.charset;if(t.charsetSentinel)for(n=0;n<d.length;++n)0===d[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[n]?h="utf-8":"utf8=%26%2310003%3B"===d[n]&&(h="iso-8859-1"),p=n,n=d.length);for(n=0;n<d.length;++n)if(n!==p){var y,m,b=d[n],g=b.indexOf("]="),v=-1===g?b.indexOf("="):g+1;-1===v?(y=t.decoder(b,s.decoder,h,"key"),m=t.strictNullHandling?null:""):(y=t.decoder(b.slice(0,v),s.decoder,h,"key"),m=r.maybeMap(u(b.slice(v+1),t),(function(e){return t.decoder(e,s.decoder,h,"value")}))),m&&t.interpretNumericEntities&&"iso-8859-1"===h&&(m=a(m)),b.indexOf("[]=")>-1&&(m=o(m)?[m]:m),i.call(l,y)?l[y]=r.combine(l[y],m):l[y]=m}return l}(e,n):e,f=n.plainObjects?Object.create(null):{},d=Object.keys(c),p=0;p<d.length;++p){var h=d[p],y=l(h,c[h],n,"string"==typeof e);f=r.merge(f,y,n)}return!0===n.allowSparse?f:r.compact(f)}},{"./utils":327}],326:[function(e,t,n){"use strict";var r=e("side-channel"),i=e("./utils"),o=e("./formats"),s=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},u=Array.isArray,l=String.prototype.split,c=Array.prototype.push,f=function(e,t){c.apply(e,u(t)?t:[t])},d=Date.prototype.toISOString,p=o.default,h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:p,formatter:o.formatters[p],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},y={},m=function e(t,n,o,s,a,c,d,p,m,b,g,v,w,j,E,x){for(var _,S=t,A=x,R=0,k=!1;void 0!==(A=A.get(y))&&!k;){var O=A.get(t);if(R+=1,void 0!==O){if(O===R)throw new RangeError("Cyclic object value");k=!0}void 0===A.get(y)&&(R=0)}if("function"==typeof p?S=p(n,S):S instanceof Date?S=g(S):"comma"===o&&u(S)&&(S=i.maybeMap(S,(function(e){return e instanceof Date?g(e):e}))),null===S){if(a)return d&&!j?d(n,h.encoder,E,"key",v):n;S=""}if("string"==typeof(_=S)||"number"==typeof _||"boolean"==typeof _||"symbol"==typeof _||"bigint"==typeof _||i.isBuffer(S)){if(d){var T=j?n:d(n,h.encoder,E,"key",v);if("comma"===o&&j){for(var I=l.call(String(S),","),M="",P=0;P<I.length;++P)M+=(0===P?"":",")+w(d(I[P],h.encoder,E,"value",v));return[w(T)+(s&&u(S)&&1===I.length?"[]":"")+"="+M]}return[w(T)+"="+w(d(S,h.encoder,E,"value",v))]}return[w(n)+"="+w(String(S))]}var C,N=[];if(void 0===S)return N;if("comma"===o&&u(S))C=[{value:S.length>0?S.join(",")||null:void 0}];else if(u(p))C=p;else{var L=Object.keys(S);C=m?L.sort(m):L}for(var D=s&&u(S)&&1===S.length?n+"[]":n,B=0;B<C.length;++B){var U=C[B],F="object"==typeof U&&void 0!==U.value?U.value:S[U];if(!c||null!==F){var q=u(S)?"function"==typeof o?o(D,U):D:D+(b?"."+U:"["+U+"]");x.set(t,R);var W=r();W.set(y,x),f(N,e(F,q,o,s,a,c,d,p,m,b,g,v,w,j,E,W))}}return N};t.exports=function(e,t){var n,i=e,l=function(e){if(!e)return h;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||h.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==e.format){if(!s.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=o.formatters[n],i=h.filter;return("function"==typeof e.filter||u(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:h.addQueryPrefix,allowDots:void 0===e.allowDots?h.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:h.charsetSentinel,delimiter:void 0===e.delimiter?h.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:h.encode,encoder:"function"==typeof e.encoder?e.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:h.encodeValuesOnly,filter:i,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:h.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:h.strictNullHandling}}(t);"function"==typeof l.filter?i=(0,l.filter)("",i):u(l.filter)&&(n=l.filter);var c,d=[];if("object"!=typeof i||null===i)return"";c=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var p=a[c];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var y="comma"===p&&t&&t.commaRoundTrip;n||(n=Object.keys(i)),l.sort&&n.sort(l.sort);for(var b=r(),g=0;g<n.length;++g){var v=n[g];l.skipNulls&&null===i[v]||f(d,m(i[v],v,p,y,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,b))}var w=d.join(l.delimiter),j=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?j+="utf8=%26%2310003%3B&":j+="utf8=%E2%9C%93&"),w.length>0?j+w:""}},{"./formats":323,"./utils":327,"side-channel":346}],327:[function(e,t,n){"use strict";var r=e("./formats"),i=Object.prototype.hasOwnProperty,o=Array.isArray,s=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};t.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],s=i.obj[i.prop],a=Object.keys(s),u=0;u<a.length;++u){var l=a[u],c=s[l];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:s,prop:l}),n.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,i,o){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===n)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var u="",l=0;l<a.length;++l){var c=a.charCodeAt(l);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===r.RFC1738&&(40===c||41===c)?u+=a.charAt(l):c<128?u+=s[c]:c<2048?u+=s[192|c>>6]+s[128|63&c]:c<55296||c>=57344?u+=s[224|c>>12]+s[128|c>>6&63]+s[128|63&c]:(l+=1,c=65536+((1023&c)<<10|1023&a.charCodeAt(l)),u+=s[240|c>>18]+s[128|c>>12&63]+s[128|c>>6&63]+s[128|63&c])}return u},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(o(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var s=t;return o(t)&&!o(n)&&(s=a(t,r)),o(t)&&o(n)?(n.forEach((function(n,o){if(i.call(t,o)){var s=t[o];s&&"object"==typeof s&&n&&"object"==typeof n?t[o]=e(s,n,r):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var s=n[o];return i.call(t,o)?t[o]=e(t[o],s,r):t[o]=s,t}),s)}}},{"./formats":323}],328:[function(e,t,n){(function(n){(function(){for(var r=e("performance-now"),i="undefined"==typeof window?n:window,o=["moz","webkit"],s="AnimationFrame",a=i["request"+s],u=i["cancel"+s]||i["cancelRequest"+s],l=0;!a&&l<o.length;l++)a=i[o[l]+"Request"+s],u=i[o[l]+"Cancel"+s]||i[o[l]+"CancelRequest"+s];if(!a||!u){var c=0,f=0,d=[];a=function(e){if(0===d.length){var t=r(),n=Math.max(0,16.666666666666668-(t-c));c=n+t,setTimeout((function(){var e=d.slice(0);d.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(c)}catch(e){setTimeout((function(){throw e}),0)}}),Math.round(n))}return d.push({handle:++f,callback:e,cancelled:!1}),f},u=function(e){for(var t=0;t<d.length;t++)d[t].handle===e&&(d[t].cancelled=!0)}}t.exports=function(e){return a.call(i,e)},t.exports.cancel=function(){u.apply(i,arguments)},t.exports.polyfill=function(e){e||(e=i),e.requestAnimationFrame=a,e.cancelAnimationFrame=u}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"performance-now":320}],329:[function(e,t,n){"use strict";var r=e("process-nextick-args"),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=f;var o=Object.create(e("core-util-is"));o.inherits=e("inherits");var s=e("./_stream_readable"),a=e("./_stream_writable");o.inherits(f,s);for(var u=i(a.prototype),l=0;l<u.length;l++){var c=u[l];f.prototype[c]||(f.prototype[c]=a.prototype[c])}function f(e){if(!(this instanceof f))return new f(e);s.call(this,e),a.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||r.nextTick(p,this)}function p(e){e.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),f.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},{"./_stream_readable":331,"./_stream_writable":333,"core-util-is":271,inherits:305,"process-nextick-args":321}],330:[function(e,t,n){"use strict";t.exports=o;var r=e("./_stream_transform"),i=Object.create(e("core-util-is"));function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}i.inherits=e("inherits"),i.inherits(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},{"./_stream_transform":332,"core-util-is":271,inherits:305}],331:[function(e,t,n){(function(n,r){(function(){"use strict";var i=e("process-nextick-args");t.exports=v;var o,s=e("isarray");v.ReadableState=g;e("events").EventEmitter;var a=function(e,t){return e.listeners(t).length},u=e("./internal/streams/stream"),l=e("safe-buffer").Buffer,c=(void 0!==r?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var f=Object.create(e("core-util-is"));f.inherits=e("inherits");var d=e("util"),p=void 0;p=d&&d.debuglog?d.debuglog("stream"):function(){};var h,y=e("./internal/streams/BufferList"),m=e("./internal/streams/destroy");f.inherits(v,u);var b=["error","close","destroy","pause","resume"];function g(t,n){t=t||{};var r=n instanceof(o=o||e("./_stream_duplex"));this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,s=t.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(s||0===s)?s:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new y,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(h||(h=e("string_decoder/").StringDecoder),this.decoder=new h(t.encoding),this.encoding=t.encoding)}function v(t){if(o=o||e("./_stream_duplex"),!(this instanceof v))return new v(t);this._readableState=new g(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),u.call(this)}function w(e,t,n,r,i){var o,s=e._readableState;null===t?(s.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,_(e)}(e,s)):(i||(o=function(e,t){var n;r=t,l.isBuffer(r)||r instanceof c||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(s,t)),o?e.emit("error",o):s.objectMode||t&&t.length>0?("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=function(e){return l.from(e)}(t)),r?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):j(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||0!==t.length?j(e,s,t,!1):A(e,s)):j(e,s,t,!1))):r||(s.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(s)}function j(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&_(e)),A(e,t)}Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),v.prototype.destroy=m.destroy,v.prototype._undestroy=m.undestroy,v.prototype._destroy=function(e,t){this.push(null),t(e)},v.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=l.from(e,t),t=""),n=!0),w(this,e,t,!1,n)},v.prototype.unshift=function(e){return w(this,e,null,!0,!1)},v.prototype.isPaused=function(){return!1===this._readableState.flowing},v.prototype.setEncoding=function(t){return h||(h=e("string_decoder/").StringDecoder),this._readableState.decoder=new h(t),this._readableState.encoding=t,this};var E=8388608;function x(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=E?e=E:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function _(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(p("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(S,e):S(e))}function S(e){p("emit readable"),e.emit("readable"),T(e)}function A(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(R,e,t))}function R(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(p("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function k(e){p("readable nexttick read 0"),e.read(0)}function O(e,t){t.reading||(p("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),T(e),t.flowing&&!t.reading&&e.read(0)}function T(e){var t=e._readableState;for(p("flow",t.flowing);t.flowing&&null!==e.read(););}function I(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;e-=i.length;for(;n=n.next;){var o=n.data,s=e>o.length?o.length:e;if(s===o.length?i+=o:i+=o.slice(0,e),0===(e-=s)){s===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(s));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=l.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var o=r.data,s=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,s),0===(e-=s)){s===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(s));break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function M(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(P,t,e))}function P(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function C(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}v.prototype.read=function(e){p("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return p("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?M(this):_(this),null;if(0===(e=x(e,t))&&t.ended)return 0===t.length&&M(this),null;var r,i=t.needReadable;return p("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&p("length less than watermark",i=!0),t.ended||t.reading?p("reading or ended",i=!1):i&&(p("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=x(n,t))),null===(r=e>0?I(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&M(this)),null!==r&&this.emit("data",r),r},v.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,p("pipe count=%d opts=%j",o.pipesCount,t);var u=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?c:v;function l(t,n){p("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,p("cleanup"),e.removeListener("close",b),e.removeListener("finish",g),e.removeListener("drain",f),e.removeListener("error",m),e.removeListener("unpipe",l),r.removeListener("end",c),r.removeListener("end",v),r.removeListener("data",y),d=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}function c(){p("onend"),e.end()}o.endEmitted?i.nextTick(u):r.once("end",u),e.on("unpipe",l);var f=function(e){return function(){var t=e._readableState;p("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,T(e))}}(r);e.on("drain",f);var d=!1;var h=!1;function y(t){p("ondata"),h=!1,!1!==e.write(t)||h||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==C(o.pipes,e))&&!d&&(p("false write response, pause",o.awaitDrain),o.awaitDrain++,h=!0),r.pause())}function m(t){p("onerror",t),v(),e.removeListener("error",m),0===a(e,"error")&&e.emit("error",t)}function b(){e.removeListener("finish",g),v()}function g(){p("onfinish"),e.removeListener("close",b),v()}function v(){p("unpipe"),r.unpipe(e)}return r.on("data",y),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?s(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",m),e.once("close",b),e.once("finish",g),e.emit("pipe",r),o.flowing||(p("pipe resume"),r.resume()),e},v.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=C(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},v.prototype.on=function(e,t){var n=u.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&_(this):i.nextTick(k,this))}return n},v.prototype.addListener=v.prototype.on,v.prototype.resume=function(){var e=this._readableState;return e.flowing||(p("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(O,e,t))}(this,e)),this},v.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this},v.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(p("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(p("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i)||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<b.length;o++)e.on(b[o],this.emit.bind(this,b[o]));return this._read=function(t){p("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(v.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),v._fromList=I}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":329,"./internal/streams/BufferList":334,"./internal/streams/destroy":335,"./internal/streams/stream":336,_process:322,"core-util-is":271,events:281,inherits:305,isarray:315,"process-nextick-args":321,"safe-buffer":337,"string_decoder/":338,util:9}],332:[function(e,t,n){"use strict";t.exports=s;var r=e("./_stream_duplex"),i=Object.create(e("core-util-is"));function o(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function s(e){if(!(this instanceof s))return new s(e);r.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",a)}function a(){var e=this;"function"==typeof this._flush?this._flush((function(t,n){u(e,t,n)})):u(this,null,null)}function u(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=e("inherits"),i.inherits(s,r),s.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},s.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},s.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},s.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},s.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,(function(e){t(e),n.emit("close")}))}},{"./_stream_duplex":329,"core-util-is":271,inherits:305}],333:[function(e,t,n){(function(n,r,i){(function(){"use strict";var o=e("process-nextick-args");function s(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}t.exports=g;var a,u=!n.browser&&["v0.10","v0.9."].indexOf(n.version.slice(0,5))>-1?i:o.nextTick;g.WritableState=b;var l=Object.create(e("core-util-is"));l.inherits=e("inherits");var c={deprecate:e("util-deprecate")},f=e("./internal/streams/stream"),d=e("safe-buffer").Buffer,p=(void 0!==r?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var h,y=e("./internal/streams/destroy");function m(){}function b(t,n){a=a||e("./_stream_duplex"),t=t||{};var r=n instanceof a;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,l=t.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(l||0===l)?l:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===t.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(o.nextTick(i,r),o.nextTick(_,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(i(r),e._writableState.errorEmitted=!0,e.emit("error",r),_(e,t))}(e,n,r,t,i);else{var s=E(n);s||n.corked||n.bufferProcessing||!n.bufferedRequest||j(e,n),r?u(w,e,n,s,i):w(e,n,s,i)}}(n,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function g(t){if(a=a||e("./_stream_duplex"),!(h.call(g,this)||this instanceof a))return new g(t);this._writableState=new b(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),f.call(this)}function v(e,t,n,r,i,o,s){t.writelen=r,t.writecb=s,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function w(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),_(e,t)}function j(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var a=0,u=!0;n;)i[a]=n,n.isBuf||(u=!1),n=n.next,a+=1;i.allBuffers=u,v(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new s(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,c=n.encoding,f=n.callback;if(v(e,t,!1,t.objectMode?1:l.length,l,c,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function E(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function x(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),_(e,t)}))}function _(e,t){var n=E(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(x,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}l.inherits(g,f),b.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(b.prototype,"buffer",{get:c.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(g,Symbol.hasInstance,{value:function(e){return!!h.call(this,e)||this===g&&(e&&e._writableState instanceof b)}})):h=function(e){return e instanceof this},g.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},g.prototype.write=function(e,t,n){var r,i=this._writableState,s=!1,a=!i.objectMode&&(r=e,d.isBuffer(r)||r instanceof p);return a&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(n=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=m),i.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),o.nextTick(t,n)}(this,n):(a||function(e,t,n,r){var i=!0,s=!1;return null===n?s=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),o.nextTick(r,s),i=!1),i}(this,i,e,n))&&(i.pendingcb++,s=function(e,t,n,r,i,o){if(!n){var s=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,n));return t}(t,r,i);r!==s&&(n=!0,i="buffer",r=s)}var a=t.objectMode?1:r.length;t.length+=a;var u=t.length<t.highWaterMark;u||(t.needDrain=!0);if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else v(e,t,!1,a,r,i,o);return u}(this,i,a,e,t,n)),s},g.prototype.cork=function(){this._writableState.corked++},g.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||j(this,e))},g.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(g.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),g.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},g.prototype._writev=null,g.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,_(e,t),n&&(t.finished?o.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(g.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),g.prototype.destroy=y.destroy,g.prototype._undestroy=y.undestroy,g.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("timers").setImmediate)},{"./_stream_duplex":329,"./internal/streams/destroy":335,"./internal/streams/stream":336,_process:322,"core-util-is":271,inherits:305,"process-nextick-args":321,"safe-buffer":337,timers:353,"util-deprecate":356}],334:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,i=e("util");t.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);for(var t,n,i,o=r.allocUnsafe(e>>>0),s=this.head,a=0;s;)t=s.data,n=o,i=a,t.copy(n,i),a+=s.data.length,s=s.next;return o},e}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":337,util:9}],335:[function(e,t,n){"use strict";var r=e("process-nextick-args");function i(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var n=this,o=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return o||s?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(i,this,e)):r.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?n._writableState?n._writableState.errorEmitted||(n._writableState.errorEmitted=!0,r.nextTick(i,n,e)):r.nextTick(i,n,e):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":321}],336:[function(e,t,n){t.exports=e("events").EventEmitter},{events:281}],337:[function(e,t,n){var r=e("buffer"),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function s(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,n),n.Buffer=s),o(i,s),s.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},s.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},{buffer:11}],338:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=l,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=c,this.end=f,t=3;break;default:return this.write=d,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function c(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}n.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=s(t[r]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--r<n||-2===i)return 0;if(i=s(t[r]),i>=0)return i>0&&(e.lastNeed=i-2),i;if(--r<n||-2===i)return 0;if(i=s(t[r]),i>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":337}],339:[function(e,t,n){(n=t.exports=e("./lib/_stream_readable.js")).Stream=n,n.Readable=n,n.Writable=e("./lib/_stream_writable.js"),n.Duplex=e("./lib/_stream_duplex.js"),n.Transform=e("./lib/_stream_transform.js"),n.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":329,"./lib/_stream_passthrough.js":330,"./lib/_stream_readable.js":331,"./lib/_stream_transform.js":332,"./lib/_stream_writable.js":333}],340:[function(e,t,n){"use strict";var r=t.exports=e("./readystate"),i=new Function("return this")(),o="complete",s=!0,a=i?i.document:null,u=a?a.documentElement:null,l=function(){return a?a.readyState:null};!function(){if(o===l())return r.change(o);var e=a&&!!a.addEventListener,t=e?"":"on",n=e?"addEventListener":"attachEvent",c=e?"removeEventListener":"detachEvent",f=u?u.doScroll:null;if(!e&&"function"==typeof f){try{s=!i.frameElement}catch(e){}s&&function e(){try{f("left")}catch(t){return setTimeout(e,50)}r.change("interactive")}()}function d(e){"readystatechange"===(e=e||i.event).type&&(r.change(l()),o!==l())||("load"===e.type?r.change("complete"):r.change("interactive"),("load"===e.type?i:a)[c](e.type,d,!1))}a[n](t+"DOMContentLoaded",d,!1),a[n](t+"readystatechange",d,!1),i[n](t+"load",d,!1)}()},{"./readystate":341}],341:[function(e,t,n){"use strict";function r(e){return function(t,n){var r=this;return r.is(e)?setTimeout((function(){t.call(n,r.readyState)}),0):(r._events[e]||(r._events[e]=[]),r._events[e].push({fn:t,context:n})),r}}function i(){this.readyState=i.UNKNOWN,this._events={}}i.states="ALL,UNKNOWN,LOADING,INTERACTIVE,COMPLETE".split(",");for(var o,s=0;s<i.states.length;s++)i[o=i.states[s]]=i.prototype[o]=s,i.prototype[o.toLowerCase()]=r(o);i.prototype.change=function(e){e=this.clean(e,!0);var t,n,r,o=0,s=this,a=s.readyState;if(a>=e)return s;for(s.readyState=e;o<i.states.length&&!(o>e);o++)if((n=i.states[o])in s._events){for(t=0;t<s._events[n].length;t++)(r=s._events[n][t]).fn.call(r.context||s,a);delete s._events[n]}return s},i.prototype.is=function(e){return this.readyState>=this.clean(e,!0)},i.prototype.clean=function(e,t){var n=typeof e;return t?"number"!==n?+i[e.toUpperCase()]||0:e:("number"===n?i.states[e]:e).toUpperCase()},i.prototype.removeAllListeners=function(){return this._events={},this},t.exports=new i},{}],342:[function(e,t,n){
|
|
35
|
+
"use strict";var r=e("intervalometer");function i(e,t,n){function r(r){n&&!n(e,t)||r.stopImmediatePropagation()}return e.addEventListener(t,r),r}function o(e,t,n,r){function i(e){n[t]=e}r&&i(e[t]),Object.defineProperty(e,t,{get:function(){return n[t]},set:i})}function a(e,t,n){n.addEventListener(t,(function(){return e.dispatchEvent(new Event(t))}))}function u(e,t){Promise.resolve().then((function(){e.dispatchEvent(new Event(t))}))}var s="object"==typeof document&&"object-fit"in document.head.style&&!matchMedia("(-webkit-video-playable-inline)").matches,l="bfred-it:iphone-inline-video",c="bfred-it:iphone-inline-video:event",f="bfred-it:iphone-inline-video:nativeplay",d="bfred-it:iphone-inline-video:nativepause";var p,h=[],m=0;function y(e,t,n){(p||0)+200<Date.now()&&(e[c]=!0,p=Date.now()),n||(e.currentTime=t),h[++m%3]=100*t|0}function b(e){return e.driver.currentTime>=e.video.duration}function g(e){var t=this;t.video.readyState>=t.video.HAVE_FUTURE_DATA?(t.hasAudio||(t.driver.currentTime=t.video.currentTime+e*t.video.playbackRate/1e3,t.video.loop&&b(t)&&(t.driver.currentTime=0)),y(t.video,t.driver.currentTime)):t.video.networkState===t.video.NETWORK_IDLE&&0===t.video.buffered.length&&t.video.load(),t.video.ended&&(delete t.video[c],t.video.pause(!0))}function v(){var e=this,t=e[l];e.webkitDisplayingFullscreen?e[f]():("data:"!==t.driver.src&&t.driver.src!==e.src&&(y(e,0,!0),t.driver.src=e.src),e.paused&&(t.paused=!1,0===e.buffered.length&&e.load(),t.driver.play(),t.updater.start(),t.hasAudio||(u(e,"play"),t.video.readyState>=t.video.HAVE_ENOUGH_DATA&&u(e,"playing"))))}function w(e){var t=this,n=t[l];n.driver.pause(),n.updater.stop(),t.webkitDisplayingFullscreen&&t[d](),n.paused&&!e||(n.paused=!0,n.hasAudio||u(t,"pause"),t.ended&&!t.webkitDisplayingFullscreen&&(t[c]=!0,u(t,"ended")))}function E(e,t){var n={};e[l]=n,n.paused=!0,n.hasAudio=t,n.video=e,n.updater=r.frameIntervalometer(g.bind(n)),t?n.driver=function(e){var t=new Audio;return a(e,"play",t),a(e,"playing",t),a(e,"pause",t),t.crossOrigin=e.crossOrigin,t.src=e.src||e.currentSrc||"data:",t}(e):(e.addEventListener("canplay",(function(){e.paused||u(e,"playing")})),n.driver={src:e.src||e.currentSrc||"data:",muted:!0,paused:!0,pause:function(){n.driver.paused=!0},play:function(){n.driver.paused=!1,b(n)&&y(e,0)},get ended(){return b(n)}}),e.addEventListener("emptied",(function(){var r=!n.driver.src||"data:"===n.driver.src;n.driver.src&&n.driver.src!==e.src&&(y(e,0,!0),n.driver.src=e.src,r||!t&&e.autoplay?n.driver.play():n.updater.stop())}),!1),e.addEventListener("webkitbeginfullscreen",(function(){e.paused?t&&0===n.driver.buffered.length&&n.driver.load():(e.pause(),e[f]())})),t&&(e.addEventListener("webkitendfullscreen",(function(){n.driver.currentTime=e.currentTime})),e.addEventListener("seeking",(function(){h.indexOf(100*e.currentTime|0)<0&&(n.driver.currentTime=e.currentTime)})))}function _(e){var t=e[c];return delete e[c],!e.webkitDisplayingFullscreen&&!t}t.exports=function(e,t){if(void 0===t&&(t={}),!e[l]){if(!t.everywhere){if(!s)return;if(!(t.iPad||t.ipad?/iPhone|iPod|iPad/:/iPhone|iPod/).test(navigator.userAgent))return}e.pause();var n=e.autoplay;e.autoplay=!1,E(e,!e.muted),function(e){var t=e[l];e[f]=e.play,e[d]=e.pause,e.play=v,e.pause=w,o(e,"paused",t.driver),o(e,"muted",t.driver,!0),o(e,"playbackRate",t.driver,!0),o(e,"ended",t.driver),o(e,"loop",t.driver,!0),i(e,"seeking",(function(e){return!e.webkitDisplayingFullscreen})),i(e,"seeked",(function(e){return!e.webkitDisplayingFullscreen})),i(e,"timeupdate",_),i(e,"ended",_)}(e),e.classList.add("IIV"),e.muted&&n&&(e.play(),e.addEventListener("playing",(function t(){e.autoplay=!0,e.removeEventListener("playing",t)}))),/iPhone|iPod|iPad/.test(navigator.platform)||console.warn("iphone-inline-video is not guaranteed to work in emulated environments")}}},{intervalometer:63}],65:[function(e,t,n){"use strict";var r=e("has-tostringtag/shams")(),i=e("call-bind/callBound")("Object.prototype.toString"),o=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},a=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},u=function(){return o(arguments)}();o.isLegacyArguments=a,t.exports=u?o:a},{"call-bind/callBound":12,"has-tostringtag/shams":54}],66:[function(e,t,n){"use strict";var r,i,o=Function.prototype.toString,a="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof a&&"function"==typeof Object.defineProperty)try{r=Object.defineProperty({},"length",{get:function(){throw i}}),i={},a((function(){throw 42}),null,r)}catch(e){e!==i&&(a=null)}else a=null;var u=/^\s*class\b/,s=function(e){try{var t=o.call(e);return u.test(t)}catch(e){return!1}},l=function(e){try{return!s(e)&&(o.call(e),!0)}catch(e){return!1}},c=Object.prototype.toString,f="function"==typeof Symbol&&!!Symbol.toStringTag,d=!(0 in[,]),p=function(){return!1};if("object"==typeof document){var h=document.all;c.call(h)===c.call(document.all)&&(p=function(e){if((d||!e)&&(void 0===e||"object"==typeof e))try{var t=c.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}t.exports=a?function(e){if(p(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{a(e,null,r)}catch(e){if(e!==i)return!1}return!s(e)&&l(e)}:function(e){if(p(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(f)return l(e);if(s(e))return!1;var t=c.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&l(e)}},{}],67:[function(e,t,n){"use strict";t.exports=Number.isFinite||function(e){return!("number"!=typeof e||e!=e||e===1/0||e===-1/0)}},{}],68:[function(e,t,n){"use strict";var r,i=Object.prototype.toString,o=Function.prototype.toString,a=/^\s*(?:function)?\*/,u=e("has-tostringtag/shams")(),s=Object.getPrototypeOf;t.exports=function(e){if("function"!=typeof e)return!1;if(a.test(o.call(e)))return!0;if(!u)return"[object GeneratorFunction]"===i.call(e);if(!s)return!1;if(void 0===r){var t=function(){if(!u)return!1;try{return Function("return function*() {}")()}catch(e){}}();r=!!t&&s(t)}return s(e)===r}},{"has-tostringtag/shams":54}],69:[function(e,t,n){t.exports=function(e){return 0!==e&&0==(e&e-1)}},{}],70:[function(e,t,n){"use strict";var r=e("which-typed-array");t.exports=function(e){return!!r(e)}},{"which-typed-array":121}],71:[function(e,t,n){var r={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},{}],72:[function(e,t,n){"use strict";t.exports=function(e){var t,n={};if(!(e instanceof Object)||Array.isArray(e))throw new Error("keyMirror(...): Argument must be an object.");for(t in e)e.hasOwnProperty(t)&&(n[t]=t);return n}},{}],73:[function(e,t,n){"use strict";var r=e("is-finite");t.exports=Number.isInteger||function(e){return r(e)&&Math.floor(e)===e}},{"is-finite":67}],74:[function(e,t,n){(function(n){(function(){var r="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"==typeof i.get?i.get:null,a=r&&Map.prototype.forEach,u="function"==typeof Set&&Set.prototype,s=Object.getOwnPropertyDescriptor&&u?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=u&&s&&"function"==typeof s.get?s.get:null,c=u&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,m=Object.prototype.toString,y=Function.prototype.toString,b=String.prototype.match,g=String.prototype.slice,v=String.prototype.replace,w=String.prototype.toUpperCase,E=String.prototype.toLowerCase,_=RegExp.prototype.test,S=Array.prototype.concat,R=Array.prototype.join,A=Array.prototype.slice,O=Math.floor,k="function"==typeof BigInt?BigInt.prototype.valueOf:null,T=Object.getOwnPropertySymbols,x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,j="function"==typeof Symbol&&"object"==typeof Symbol.iterator,M="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===j||"symbol")?Symbol.toStringTag:null,D=Object.prototype.propertyIsEnumerable,C=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function N(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||_.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-O(-e):O(e);if(r!==e){var i=String(r),o=g.call(t,i.length+1);return v.call(i,n,"$&_")+"."+v.call(v.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,n,"$&_")}var I=e("./util.inspect"),P=I.custom,L=q(P)?P:null;function B(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function U(e){return v.call(String(e),/"/g,""")}function F(e){return!("[object Array]"!==V(e)||M&&"object"==typeof e&&M in e)}function W(e){return!("[object RegExp]"!==V(e)||M&&"object"==typeof e&&M in e)}function q(e){if(j)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!x)return!1;try{return x.call(e),!0}catch(e){}return!1}t.exports=function e(t,r,i,u){var s=r||{};if(z(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(z(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!z(s,"customInspect")||s.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(z(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(z(s,"numericSeparator")&&"boolean"!=typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=s.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return $(t,s);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var _=String(t);return w?N(t,_):_}if("bigint"==typeof t){var O=String(t)+"n";return w?N(t,O):O}var T=void 0===s.depth?5:s.depth;if(void 0===i&&(i=0),i>=T&&T>0&&"object"==typeof t)return F(t)?"[Array]":"[Object]";var P=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=R.call(Array(e.indent+1)," ")}return{base:n,prev:R.call(Array(t+1),n)}}(s,i);if(void 0===u)u=[];else if(G(u,t)>=0)return"[Circular]";function H(t,n,r){if(n&&(u=A.call(u)).push(n),r){var o={depth:s.depth};return z(s,"quoteStyle")&&(o.quoteStyle=s.quoteStyle),e(t,o,i+1,u)}return e(t,s,i+1,u)}if("function"==typeof t&&!W(t)){var Y=function(e){if(e.name)return e.name;var t=b.call(y.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),ee=Z(t,H);return"[Function"+(Y?": "+Y:" (anonymous)")+"]"+(ee.length>0?" { "+R.call(ee,", ")+" }":"")}if(q(t)){var te=j?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):x.call(t);return"object"!=typeof t||j?te:J(te)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var ne="<"+E.call(String(t.nodeName)),re=t.attributes||[],ie=0;ie<re.length;ie++)ne+=" "+re[ie].name+"="+B(U(re[ie].value),"double",s);return ne+=">",t.childNodes&&t.childNodes.length&&(ne+="..."),ne+="</"+E.call(String(t.nodeName))+">"}if(F(t)){if(0===t.length)return"[]";var oe=Z(t,H);return P&&!function(e){for(var t=0;t<e.length;t++)if(G(e[t],"\n")>=0)return!1;return!0}(oe)?"["+Q(oe,P)+"]":"[ "+R.call(oe,", ")+" ]"}if(function(e){return!("[object Error]"!==V(e)||M&&"object"==typeof e&&M in e)}(t)){var ae=Z(t,H);return"cause"in Error.prototype||!("cause"in t)||D.call(t,"cause")?0===ae.length?"["+String(t)+"]":"{ ["+String(t)+"] "+R.call(ae,", ")+" }":"{ ["+String(t)+"] "+R.call(S.call("[cause]: "+H(t.cause),ae),", ")+" }"}if("object"==typeof t&&m){if(L&&"function"==typeof t[L]&&I)return I(t,{depth:T-i});if("symbol"!==m&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{l.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ue=[];return a&&a.call(t,(function(e,n){ue.push(H(n,t,!0)+" => "+H(e,t))})),X("Map",o.call(t),ue,P)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var se=[];return c&&c.call(t,(function(e){se.push(H(e,t))})),X("Set",l.call(t),se,P)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return K("WeakMap");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return K("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(e){}return!1}(t))return K("WeakRef");if(function(e){return!("[object Number]"!==V(e)||M&&"object"==typeof e&&M in e)}(t))return J(H(Number(t)));if(function(e){if(!e||"object"!=typeof e||!k)return!1;try{return k.call(e),!0}catch(e){}return!1}(t))return J(H(k.call(t)));if(function(e){return!("[object Boolean]"!==V(e)||M&&"object"==typeof e&&M in e)}(t))return J(h.call(t));if(function(e){return!("[object String]"!==V(e)||M&&"object"==typeof e&&M in e)}(t))return J(H(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if(t===n)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==V(e)||M&&"object"==typeof e&&M in e)}(t)&&!W(t)){var le=Z(t,H),ce=C?C(t)===Object.prototype:t instanceof Object||t.constructor===Object,fe=t instanceof Object?"":"null prototype",de=!ce&&M&&Object(t)===t&&M in t?g.call(V(t),8,-1):fe?"Object":"",pe=(ce||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(de||fe?"["+R.call(S.call([],de||[],fe||[]),": ")+"] ":"");return 0===le.length?pe+"{}":P?pe+"{"+Q(le,P)+"}":pe+"{ "+R.call(le,", ")+" }"}return String(t)};var H=Object.prototype.hasOwnProperty||function(e){return e in this};function z(e,t){return H.call(e,t)}function V(e){return m.call(e)}function G(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function $(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return $(g.call(e,0,t.maxStringLength),t)+r}return B(v.call(v.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Y),"single",t)}function Y(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function J(e){return"Object("+e+")"}function K(e){return e+" { ? }"}function X(e,t,n,r){return e+" ("+t+") {"+(r?Q(n,r):R.call(n,", "))+"}"}function Q(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+R.call(e,","+n)+"\n"+t.prev}function Z(e,t){var n=F(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=z(e,i)?t(e[i],e):""}var o,a="function"==typeof T?T(e):[];if(j){o={};for(var u=0;u<a.length;u++)o["$"+a[u]]=a[u]}for(var s in e)z(e,s)&&(n&&String(Number(s))===s&&s<e.length||j&&o["$"+s]instanceof Symbol||(_.call(/[^\w$]/,s)?r.push(t(s,e)+": "+t(e[s],e)):r.push(s+": "+t(e[s],e))));if("function"==typeof T)for(var l=0;l<a.length;l++)D.call(e,a[l])&&r.push("["+t(a[l])+"]: "+t(e[a[l]],e));return r}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./util.inspect":9}],75:[function(e,t,n){var r=e("wrappy");function i(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function o(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},n=e.name||"Function wrapped with `once`";return t.onceError=n+" shouldn't be called more than once",t.called=!1,t}t.exports=r(i),t.exports.strict=r(o),i.proto=i((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return o(this)},configurable:!0})}))},{wrappy:122}],76:[function(e,t,n){(function(e){(function(){(function(){var n,r,i,o,a,u;"undefined"!=typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:null!=e&&e.hrtime?(t.exports=function(){return(n()-a)/1e6},r=e.hrtime,o=(n=function(){var e;return 1e9*(e=r())[0]+e[1]})(),u=1e9*e.uptime(),a=o-u):Date.now?(t.exports=function(){return Date.now()-i},i=Date.now()):(t.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(this)}).call(this,e("_process"))},{_process:79}],77:[function(e,t,n){"use strict";t.exports=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},{}],78:[function(e,t,n){(function(e){(function(){"use strict";void 0===e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:function(t,n,r,i){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var o,a,u=arguments.length;switch(u){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,n)}));case 3:return e.nextTick((function(){t.call(null,n,r)}));case 4:return e.nextTick((function(){t.call(null,n,r,i)}));default:for(o=new Array(u-1),a=0;a<o.length;)o[a++]=arguments[a];return e.nextTick((function(){t.apply(null,o)}))}}}:t.exports=e}).call(this)}).call(this,e("_process"))},{_process:79}],79:[function(e,t,n){var r,i,o=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(e){r=a}try{i="function"==typeof clearTimeout?clearTimeout:u}catch(e){i=u}}();var l,c=[],f=!1,d=-1;function p(){f&&l&&(f=!1,l.length?c=l.concat(c):d=-1,c.length&&h())}function h(){if(!f){var e=s(p);f=!0;for(var t=c.length;t;){for(l=c,c=[];++d<t;)l&&l[d].run();d=-1,t=c.length}l=null,f=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===u||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{return i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function y(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new m(e,t)),1!==c.length||f||s(h)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],80:[function(e,t,n){"use strict";var r=String.prototype.replace,i=/%20/g,o="RFC1738",a="RFC3986";t.exports={default:a,formatters:{RFC1738:function(e){return r.call(e,i,"+")},RFC3986:function(e){return String(e)}},RFC1738:o,RFC3986:a}},{}],81:[function(e,t,n){"use strict";var r=e("./stringify"),i=e("./parse"),o=e("./formats");t.exports={formats:o,parse:i,stringify:r}},{"./formats":80,"./parse":82,"./stringify":83}],82:[function(e,t,n){"use strict";var r=e("./utils"),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},u=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},s=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,u=n.depth>0&&/(\[[^[\]]*])/.exec(o),l=u?o.slice(0,u.index):o,c=[];if(l){if(!n.plainObjects&&i.call(Object.prototype,l)&&!n.allowPrototypes)return;c.push(l)}for(var f=0;n.depth>0&&null!==(u=a.exec(o))&&f<n.depth;){if(f+=1,!n.plainObjects&&i.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(u[1])}return u&&c.push("["+o.slice(u.index)+"]"),function(e,t,n,r){for(var i=r?t:s(t,n),o=e.length-1;o>=0;--o){var a,u=e[o];if("[]"===u&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var l="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,c=parseInt(l,10);n.parseArrays||""!==l?!isNaN(c)&&u!==l&&String(c)===l&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(a=[])[c]=i:"__proto__"!==l&&(a[l]=i):a={0:i}}i=a}return i}(c,t,n,r)}};t.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var c="string"==typeof e?function(e,t){var n,l={},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,d=c.split(t.delimiter,f),p=-1,h=t.charset;if(t.charsetSentinel)for(n=0;n<d.length;++n)0===d[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[n]?h="utf-8":"utf8=%26%2310003%3B"===d[n]&&(h="iso-8859-1"),p=n,n=d.length);for(n=0;n<d.length;++n)if(n!==p){var m,y,b=d[n],g=b.indexOf("]="),v=-1===g?b.indexOf("="):g+1;-1===v?(m=t.decoder(b,a.decoder,h,"key"),y=t.strictNullHandling?null:""):(m=t.decoder(b.slice(0,v),a.decoder,h,"key"),y=r.maybeMap(s(b.slice(v+1),t),(function(e){return t.decoder(e,a.decoder,h,"value")}))),y&&t.interpretNumericEntities&&"iso-8859-1"===h&&(y=u(y)),b.indexOf("[]=")>-1&&(y=o(y)?[y]:y),i.call(l,m)?l[m]=r.combine(l[m],y):l[m]=y}return l}(e,n):e,f=n.plainObjects?Object.create(null):{},d=Object.keys(c),p=0;p<d.length;++p){var h=d[p],m=l(h,c[h],n,"string"==typeof e);f=r.merge(f,m,n)}return!0===n.allowSparse?f:r.compact(f)}},{"./utils":84}],83:[function(e,t,n){"use strict";var r=e("side-channel"),i=e("./utils"),o=e("./formats"),a=Object.prototype.hasOwnProperty,u={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,l=String.prototype.split,c=Array.prototype.push,f=function(e,t){c.apply(e,s(t)?t:[t])},d=Date.prototype.toISOString,p=o.default,h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:p,formatter:o.formatters[p],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},m={},y=function e(t,n,o,a,u,c,d,p,y,b,g,v,w,E,_,S){for(var R,A=t,O=S,k=0,T=!1;void 0!==(O=O.get(m))&&!T;){var x=O.get(t);if(k+=1,void 0!==x){if(x===k)throw new RangeError("Cyclic object value");T=!0}void 0===O.get(m)&&(k=0)}if("function"==typeof p?A=p(n,A):A instanceof Date?A=g(A):"comma"===o&&s(A)&&(A=i.maybeMap(A,(function(e){return e instanceof Date?g(e):e}))),null===A){if(u)return d&&!E?d(n,h.encoder,_,"key",v):n;A=""}if("string"==typeof(R=A)||"number"==typeof R||"boolean"==typeof R||"symbol"==typeof R||"bigint"==typeof R||i.isBuffer(A)){if(d){var j=E?n:d(n,h.encoder,_,"key",v);if("comma"===o&&E){for(var M=l.call(String(A),","),D="",C=0;C<M.length;++C)D+=(0===C?"":",")+w(d(M[C],h.encoder,_,"value",v));return[w(j)+(a&&s(A)&&1===M.length?"[]":"")+"="+D]}return[w(j)+"="+w(d(A,h.encoder,_,"value",v))]}return[w(n)+"="+w(String(A))]}var N,I=[];if(void 0===A)return I;if("comma"===o&&s(A))N=[{value:A.length>0?A.join(",")||null:void 0}];else if(s(p))N=p;else{var P=Object.keys(A);N=y?P.sort(y):P}for(var L=a&&s(A)&&1===A.length?n+"[]":n,B=0;B<N.length;++B){var U=N[B],F="object"==typeof U&&void 0!==U.value?U.value:A[U];if(!c||null!==F){var W=s(A)?"function"==typeof o?o(L,U):L:L+(b?"."+U:"["+U+"]");S.set(t,k);var q=r();q.set(m,S),f(I,e(F,W,o,a,u,c,d,p,y,b,g,v,w,E,_,q))}}return I};t.exports=function(e,t){var n,i=e,l=function(e){if(!e)return h;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||h.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==e.format){if(!a.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=o.formatters[n],i=h.filter;return("function"==typeof e.filter||s(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:h.addQueryPrefix,allowDots:void 0===e.allowDots?h.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:h.charsetSentinel,delimiter:void 0===e.delimiter?h.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:h.encode,encoder:"function"==typeof e.encoder?e.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:h.encodeValuesOnly,filter:i,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:h.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:h.strictNullHandling}}(t);"function"==typeof l.filter?i=(0,l.filter)("",i):s(l.filter)&&(n=l.filter);var c,d=[];if("object"!=typeof i||null===i)return"";c=t&&t.arrayFormat in u?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var p=u[c];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var m="comma"===p&&t&&t.commaRoundTrip;n||(n=Object.keys(i)),l.sort&&n.sort(l.sort);for(var b=r(),g=0;g<n.length;++g){var v=n[g];l.skipNulls&&null===i[v]||f(d,y(i[v],v,p,m,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,b))}var w=d.join(l.delimiter),E=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?E+="utf8=%26%2310003%3B&":E+="utf8=%E2%9C%93&"),w.length>0?E+w:""}},{"./formats":80,"./utils":84,"side-channel":103}],84:[function(e,t,n){"use strict";var r=e("./formats"),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),u=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};t.exports={arrayToObject:u,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],u=Object.keys(a),s=0;s<u.length;++s){var l=u[s],c=a[l];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:a,prop:l}),n.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,i,o){if(0===e.length)return e;var u=e;if("symbol"==typeof e?u=Symbol.prototype.toString.call(e):"string"!=typeof e&&(u=String(e)),"iso-8859-1"===n)return escape(u).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var s="",l=0;l<u.length;++l){var c=u.charCodeAt(l);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===r.RFC1738&&(40===c||41===c)?s+=u.charAt(l):c<128?s+=a[c]:c<2048?s+=a[192|c>>6]+a[128|63&c]:c<55296||c>=57344?s+=a[224|c>>12]+a[128|c>>6&63]+a[128|63&c]:(l+=1,c=65536+((1023&c)<<10|1023&u.charCodeAt(l)),s+=a[240|c>>18]+a[128|c>>12&63]+a[128|c>>6&63]+a[128|63&c])}return s},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(o(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return o(t)&&!o(n)&&(a=u(t,r)),o(t)&&o(n)?(n.forEach((function(n,o){if(i.call(t,o)){var a=t[o];a&&"object"==typeof a&&n&&"object"==typeof n?t[o]=e(a,n,r):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var a=n[o];return i.call(t,o)?t[o]=e(t[o],a,r):t[o]=a,t}),a)}}},{"./formats":80}],85:[function(e,t,n){(function(n){(function(){for(var r=e("performance-now"),i="undefined"==typeof window?n:window,o=["moz","webkit"],a="AnimationFrame",u=i["request"+a],s=i["cancel"+a]||i["cancelRequest"+a],l=0;!u&&l<o.length;l++)u=i[o[l]+"Request"+a],s=i[o[l]+"Cancel"+a]||i[o[l]+"CancelRequest"+a];if(!u||!s){var c=0,f=0,d=[];u=function(e){if(0===d.length){var t=r(),n=Math.max(0,16.666666666666668-(t-c));c=n+t,setTimeout((function(){var e=d.slice(0);d.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(c)}catch(e){setTimeout((function(){throw e}),0)}}),Math.round(n))}return d.push({handle:++f,callback:e,cancelled:!1}),f},s=function(e){for(var t=0;t<d.length;t++)d[t].handle===e&&(d[t].cancelled=!0)}}t.exports=function(e){return u.call(i,e)},t.exports.cancel=function(){s.apply(i,arguments)},t.exports.polyfill=function(e){e||(e=i),e.requestAnimationFrame=u,e.cancelAnimationFrame=s}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"performance-now":76}],86:[function(e,t,n){"use strict";var r=e("process-nextick-args"),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=f;var o=Object.create(e("core-util-is"));o.inherits=e("inherits");var a=e("./_stream_readable"),u=e("./_stream_writable");o.inherits(f,a);for(var s=i(u.prototype),l=0;l<s.length;l++){var c=s[l];f.prototype[c]||(f.prototype[c]=u.prototype[c])}function f(e){if(!(this instanceof f))return new f(e);a.call(this,e),u.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||r.nextTick(p,this)}function p(e){e.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),f.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},{"./_stream_readable":88,"./_stream_writable":90,"core-util-is":19,inherits:61,"process-nextick-args":78}],87:[function(e,t,n){"use strict";t.exports=o;var r=e("./_stream_transform"),i=Object.create(e("core-util-is"));function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}i.inherits=e("inherits"),i.inherits(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},{"./_stream_transform":89,"core-util-is":19,inherits:61}],88:[function(e,t,n){(function(n,r){(function(){"use strict";var i=e("process-nextick-args");t.exports=v;var o,a=e("isarray");v.ReadableState=g;e("events").EventEmitter;var u=function(e,t){return e.listeners(t).length},s=e("./internal/streams/stream"),l=e("safe-buffer").Buffer,c=(void 0!==r?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var f=Object.create(e("core-util-is"));f.inherits=e("inherits");var d=e("util"),p=void 0;p=d&&d.debuglog?d.debuglog("stream"):function(){};var h,m=e("./internal/streams/BufferList"),y=e("./internal/streams/destroy");f.inherits(v,s);var b=["error","close","destroy","pause","resume"];function g(t,n){t=t||{};var r=n instanceof(o=o||e("./_stream_duplex"));this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,a=t.readableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(a||0===a)?a:u,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(h||(h=e("string_decoder/").StringDecoder),this.decoder=new h(t.encoding),this.encoding=t.encoding)}function v(t){if(o=o||e("./_stream_duplex"),!(this instanceof v))return new v(t);this._readableState=new g(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),s.call(this)}function w(e,t,n,r,i){var o,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,R(e)}(e,a)):(i||(o=function(e,t){var n;r=t,l.isBuffer(r)||r instanceof c||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=function(e){return l.from(e)}(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):E(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?E(e,a,t,!1):O(e,a)):E(e,a,t,!1))):r||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(a)}function E(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&R(e)),O(e,t)}Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),v.prototype.destroy=y.destroy,v.prototype._undestroy=y.undestroy,v.prototype._destroy=function(e,t){this.push(null),t(e)},v.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=l.from(e,t),t=""),n=!0),w(this,e,t,!1,n)},v.prototype.unshift=function(e){return w(this,e,null,!0,!1)},v.prototype.isPaused=function(){return!1===this._readableState.flowing},v.prototype.setEncoding=function(t){return h||(h=e("string_decoder/").StringDecoder),this._readableState.decoder=new h(t),this._readableState.encoding=t,this};var _=8388608;function S(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=_?e=_:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function R(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(p("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(A,e):A(e))}function A(e){p("emit readable"),e.emit("readable"),j(e)}function O(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(k,e,t))}function k(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(p("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function T(e){p("readable nexttick read 0"),e.read(0)}function x(e,t){t.reading||(p("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),j(e),t.flowing&&!t.reading&&e.read(0)}function j(e){var t=e._readableState;for(p("flow",t.flowing);t.flowing&&null!==e.read(););}function M(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;e-=i.length;for(;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=l.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),0===(e-=a)){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function D(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(C,t,e))}function C(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function N(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}v.prototype.read=function(e){p("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return p("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?D(this):R(this),null;if(0===(e=S(e,t))&&t.ended)return 0===t.length&&D(this),null;var r,i=t.needReadable;return p("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&p("length less than watermark",i=!0),t.ended||t.reading?p("reading or ended",i=!1):i&&(p("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=S(n,t))),null===(r=e>0?M(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&D(this)),null!==r&&this.emit("data",r),r},v.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,p("pipe count=%d opts=%j",o.pipesCount,t);var s=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?c:v;function l(t,n){p("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,p("cleanup"),e.removeListener("close",b),e.removeListener("finish",g),e.removeListener("drain",f),e.removeListener("error",y),e.removeListener("unpipe",l),r.removeListener("end",c),r.removeListener("end",v),r.removeListener("data",m),d=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}function c(){p("onend"),e.end()}o.endEmitted?i.nextTick(s):r.once("end",s),e.on("unpipe",l);var f=function(e){return function(){var t=e._readableState;p("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&u(e,"data")&&(t.flowing=!0,j(e))}}(r);e.on("drain",f);var d=!1;var h=!1;function m(t){p("ondata"),h=!1,!1!==e.write(t)||h||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==N(o.pipes,e))&&!d&&(p("false write response, pause",o.awaitDrain),o.awaitDrain++,h=!0),r.pause())}function y(t){p("onerror",t),v(),e.removeListener("error",y),0===u(e,"error")&&e.emit("error",t)}function b(){e.removeListener("finish",g),v()}function g(){p("onfinish"),e.removeListener("close",b),v()}function v(){p("unpipe"),r.unpipe(e)}return r.on("data",m),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",y),e.once("close",b),e.once("finish",g),e.emit("pipe",r),o.flowing||(p("pipe resume"),r.resume()),e},v.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=N(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},v.prototype.on=function(e,t){var n=s.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&R(this):i.nextTick(T,this))}return n},v.prototype.addListener=v.prototype.on,v.prototype.resume=function(){var e=this._readableState;return e.flowing||(p("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(x,e,t))}(this,e)),this},v.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this},v.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(p("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(p("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i)||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<b.length;o++)e.on(b[o],this.emit.bind(this,b[o]));return this._read=function(t){p("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(v.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),v._fromList=M}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":86,"./internal/streams/BufferList":91,"./internal/streams/destroy":92,"./internal/streams/stream":93,_process:79,"core-util-is":19,events:37,inherits:61,isarray:71,"process-nextick-args":78,"safe-buffer":94,"string_decoder/":95,util:9}],89:[function(e,t,n){"use strict";t.exports=a;var r=e("./_stream_duplex"),i=Object.create(e("core-util-is"));function o(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);r.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",u)}function u(){var e=this;"function"==typeof this._flush?this._flush((function(t,n){s(e,t,n)})):s(this,null,null)}function s(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=e("inherits"),i.inherits(a,r),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,(function(e){t(e),n.emit("close")}))}},{"./_stream_duplex":86,"core-util-is":19,inherits:61}],90:[function(e,t,n){(function(n,r,i){(function(){"use strict";var o=e("process-nextick-args");function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}t.exports=g;var u,s=!n.browser&&["v0.10","v0.9."].indexOf(n.version.slice(0,5))>-1?i:o.nextTick;g.WritableState=b;var l=Object.create(e("core-util-is"));l.inherits=e("inherits");var c={deprecate:e("util-deprecate")},f=e("./internal/streams/stream"),d=e("safe-buffer").Buffer,p=(void 0!==r?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var h,m=e("./internal/streams/destroy");function y(){}function b(t,n){u=u||e("./_stream_duplex"),t=t||{};var r=n instanceof u;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,l=t.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(l||0===l)?l:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===t.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(o.nextTick(i,r),o.nextTick(R,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(i(r),e._writableState.errorEmitted=!0,e.emit("error",r),R(e,t))}(e,n,r,t,i);else{var a=_(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||E(e,n),r?s(w,e,n,a,i):w(e,n,a,i)}}(n,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function g(t){if(u=u||e("./_stream_duplex"),!(h.call(g,this)||this instanceof u))return new g(t);this._writableState=new b(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),f.call(this)}function v(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function w(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),R(e,t)}function E(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var u=0,s=!0;n;)i[u]=n,n.isBuf||(s=!1),n=n.next,u+=1;i.allBuffers=s,v(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,c=n.encoding,f=n.callback;if(v(e,t,!1,t.objectMode?1:l.length,l,c,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function _(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function S(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),R(e,t)}))}function R(e,t){var n=_(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(S,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}l.inherits(g,f),b.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(b.prototype,"buffer",{get:c.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(g,Symbol.hasInstance,{value:function(e){return!!h.call(this,e)||this===g&&(e&&e._writableState instanceof b)}})):h=function(e){return e instanceof this},g.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},g.prototype.write=function(e,t,n){var r,i=this._writableState,a=!1,u=!i.objectMode&&(r=e,d.isBuffer(r)||r instanceof p);return u&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(n=t,t=null),u?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=y),i.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),o.nextTick(t,n)}(this,n):(u||function(e,t,n,r){var i=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(r,a),i=!1),i}(this,i,e,n))&&(i.pendingcb++,a=function(e,t,n,r,i,o){if(!n){var a=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,n));return t}(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var u=t.objectMode?1:r.length;t.length+=u;var s=t.length<t.highWaterMark;s||(t.needDrain=!0);if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else v(e,t,!1,u,r,i,o);return s}(this,i,u,e,t,n)),a},g.prototype.cork=function(){this._writableState.corked++},g.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||E(this,e))},g.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(g.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),g.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},g.prototype._writev=null,g.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,R(e,t),n&&(t.finished?o.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(g.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),g.prototype.destroy=m.destroy,g.prototype._undestroy=m.undestroy,g.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("timers").setImmediate)},{"./_stream_duplex":86,"./internal/streams/destroy":92,"./internal/streams/stream":93,_process:79,"core-util-is":19,inherits:61,"process-nextick-args":78,"safe-buffer":94,timers:110,"util-deprecate":113}],91:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,i=e("util");t.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);for(var t,n,i,o=r.allocUnsafe(e>>>0),a=this.head,u=0;a;)t=a.data,n=o,i=u,t.copy(n,i),u+=a.data.length,a=a.next;return o},e}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":94,util:9}],92:[function(e,t,n){"use strict";var r=e("process-nextick-args");function i(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var n=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(i,this,e)):r.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?n._writableState?n._writableState.errorEmitted||(n._writableState.errorEmitted=!0,r.nextTick(i,n,e)):r.nextTick(i,n,e):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":78}],93:[function(e,t,n){t.exports=e("events").EventEmitter},{events:37}],94:[function(e,t,n){var r=e("buffer"),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,n),n.Buffer=a),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},{buffer:11}],95:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=s,this.end=l,t=4;break;case"utf8":this.fillLast=u,t=4;break;case"base64":this.text=c,this.end=f,t=3;break;default:return this.write=d,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function u(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function s(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function c(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}n.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=a(t[r]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--r<n||-2===i)return 0;if(i=a(t[r]),i>=0)return i>0&&(e.lastNeed=i-2),i;if(--r<n||-2===i)return 0;if(i=a(t[r]),i>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":94}],96:[function(e,t,n){(n=t.exports=e("./lib/_stream_readable.js")).Stream=n,n.Readable=n,n.Writable=e("./lib/_stream_writable.js"),n.Duplex=e("./lib/_stream_duplex.js"),n.Transform=e("./lib/_stream_transform.js"),n.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":86,"./lib/_stream_passthrough.js":87,"./lib/_stream_readable.js":88,"./lib/_stream_transform.js":89,"./lib/_stream_writable.js":90}],97:[function(e,t,n){"use strict";var r=t.exports=e("./readystate"),i=new Function("return this")(),o="complete",a=!0,u=i?i.document:null,s=u?u.documentElement:null,l=function(){return u?u.readyState:null};!function(){if(o===l())return r.change(o);var e=u&&!!u.addEventListener,t=e?"":"on",n=e?"addEventListener":"attachEvent",c=e?"removeEventListener":"detachEvent",f=s?s.doScroll:null;if(!e&&"function"==typeof f){try{a=!i.frameElement}catch(e){}a&&function e(){try{f("left")}catch(t){return setTimeout(e,50)}r.change("interactive")}()}function d(e){"readystatechange"===(e=e||i.event).type&&(r.change(l()),o!==l())||("load"===e.type?r.change("complete"):r.change("interactive"),("load"===e.type?i:u)[c](e.type,d,!1))}u[n](t+"DOMContentLoaded",d,!1),u[n](t+"readystatechange",d,!1),i[n](t+"load",d,!1)}()},{"./readystate":98}],98:[function(e,t,n){"use strict";function r(e){return function(t,n){var r=this;return r.is(e)?setTimeout((function(){t.call(n,r.readyState)}),0):(r._events[e]||(r._events[e]=[]),r._events[e].push({fn:t,context:n})),r}}function i(){this.readyState=i.UNKNOWN,this._events={}}i.states="ALL,UNKNOWN,LOADING,INTERACTIVE,COMPLETE".split(",");for(var o,a=0;a<i.states.length;a++)i[o=i.states[a]]=i.prototype[o]=a,i.prototype[o.toLowerCase()]=r(o);i.prototype.change=function(e){e=this.clean(e,!0);var t,n,r,o=0,a=this,u=a.readyState;if(u>=e)return a;for(a.readyState=e;o<i.states.length&&!(o>e);o++)if((n=i.states[o])in a._events){for(t=0;t<a._events[n].length;t++)(r=a._events[n][t]).fn.call(r.context||a,u);delete a._events[n]}return a},i.prototype.is=function(e){return this.readyState>=this.clean(e,!0)},i.prototype.clean=function(e,t){var n=typeof e;return t?"number"!==n?+i[e.toUpperCase()]||0:e:("number"===n?i.states[e]:e).toUpperCase()},i.prototype.removeAllListeners=function(){return this._events={},this},t.exports=new i},{}],99:[function(e,t,n){
|
|
36
36
|
/**
|
|
37
37
|
* request-frame - requestAnimationFrame & cancelAnimationFrame polyfill for optimal cross-browser development.
|
|
38
38
|
* @version v1.5.3
|
|
39
39
|
* @license MIT
|
|
40
40
|
* Copyright Julien Etienne 2015 All Rights Reserved.
|
|
41
41
|
*/
|
|
42
|
-
!function(e,r){"object"==typeof n&&void 0!==t?t.exports=r():e.requestFrame=r()}(this,(function(){"use strict";return function(e){var t,n,r,i=["moz","webkit"],o="AnimationFrame",
|
|
42
|
+
!function(e,r){"object"==typeof n&&void 0!==t?t.exports=r():e.requestFrame=r()}(this,(function(){"use strict";return function(e){var t,n,r,i=["moz","webkit"],o="AnimationFrame",a="Request"+o,u=window.mozRequestAnimationFrame,s=window.mozCancelAnimationFrame,l=u&&!s,c=0;
|
|
43
43
|
/**
|
|
44
44
|
* hasIOS6RequestAnimationFrameBug.
|
|
45
45
|
* @See {@Link https://gist.github.com/julienetie/86ac394ec41f1271ff0a}
|
|
@@ -47,9 +47,9 @@ n.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,u=(1<<a)-1,l=u>>1,c=-7,f=n?i-1:0,d=
|
|
|
47
47
|
* @Copyright 2015 - Julien Etienne.
|
|
48
48
|
* @License: MIT.
|
|
49
49
|
*/
|
|
50
|
-
function f(){var e,t,n,r,i,o=window.webkitRequestAnimationFrame,
|
|
50
|
+
function f(){var e,t,n,r,i,o=window.webkitRequestAnimationFrame,a=window.requestAnimationFrame,u=screen.width<=768,s=!(o&&a),l=!window.performance;return e="setTimeout is being used as a substitiue for \n requestAnimationFrame due to a bug within iOS 6 builds",t=o,n=a,!(!(s&&u&&l)||(r=n,i=e,!t&&!r||(console.warn(i),0)))}function d(e){clearTimeout(e)}function p(e){var t=Date.now(),n=Math.max(c+16,t);return setTimeout((function(){e(c=n)}),n-t)}function h(){return Array.prototype.filter?(t=window["request"+o]||window[i.filter((function(e){if(void 0!==window[e+a])return e}))+a]||p,f()?p:t):p}function m(){var e=[];if(!Array.prototype.map)return d;return i.map((function(t){return["Cancel","CancelRequest"].map((function(n){e.push(t+n+o)}))})),n=window["cancel"+o]||function(e,t){for(var n=void 0;t<e.length;t++)if(window[e[t]]){n=window[e[t]];break}return n}(e,0)||d,f()?d:n}switch(Date.now||(Date.now=function(){return(new Date).getTime()}),e){case"request":case"":r=l?p:h();break;case"cancel":r=m();break;case"native":l?(window.requestAnimationFrame=p,window.cancelAnimationFrame=d):(window.requestAnimationFrame=h(),window.cancelAnimationFrame=m());break;default:throw new Error("RequestFrame parameter is not a type.")}return r}}))},{}],100:[function(e,t,n){
|
|
51
51
|
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
52
|
-
var r=e("buffer"),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function s(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,n),n.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},s.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},{buffer:11}],344:[function(e,t,n){var r=Object.prototype.hasOwnProperty;function i(e){return"[Throws: "+(e?e.message:"?")+"]"}function o(e){var t=[];return function e(n){if(null===n||"object"!=typeof n)return n;if(-1!==t.indexOf(n))return"[Circular]";if(t.push(n),"function"==typeof n.toJSON)try{var o=e(n.toJSON());return t.pop(),o}catch(e){return i(e)}if(Array.isArray(n)){var s=n.map(e);return t.pop(),s}var a=Object.keys(n).reduce((function(t,o){return t[o]=e(function(e,t){if(r.call(e,t))try{return e[t]}catch(e){return i(e)}return e[t]}(n,o)),t}),{});return t.pop(),a}(e)}t.exports=function(e,t,n){return JSON.stringify(o(e),t,n)},t.exports.ensureProperties=o},{}],345:[function(e,t,n){"use strict";var r=e("get-intrinsic"),i=e("define-data-property"),o=e("has-property-descriptors")(),s=e("gopd"),a=r("%TypeError%"),u=r("%Math.floor%");t.exports=function(e,t){if("function"!=typeof e)throw new a("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||u(t)!==t)throw new a("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,l=!0;if("length"in e&&s){var c=s(e,"length");c&&!c.configurable&&(r=!1),c&&!c.writable&&(l=!1)}return(r||l||!n)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},{"define-data-property":274,"get-intrinsic":288,gopd:293,"has-property-descriptors":294}],346:[function(e,t,n){"use strict";var r=e("get-intrinsic"),i=e("call-bind/callBound"),o=e("object-inspect"),s=r("%TypeError%"),a=r("%WeakMap%",!0),u=r("%Map%",!0),l=i("WeakMap.prototype.get",!0),c=i("WeakMap.prototype.set",!0),f=i("WeakMap.prototype.has",!0),d=i("Map.prototype.get",!0),p=i("Map.prototype.set",!0),h=i("Map.prototype.has",!0),y=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};t.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new s("Side channel does not contain "+o(e))},get:function(r){if(a&&r&&("object"==typeof r||"function"==typeof r)){if(e)return l(e,r)}else if(u){if(t)return d(t,r)}else if(n)return function(e,t){var n=y(e,t);return n&&n.value}(n,r)},has:function(r){if(a&&r&&("object"==typeof r||"function"==typeof r)){if(e)return f(e,r)}else if(u){if(t)return h(t,r)}else if(n)return function(e,t){return!!y(e,t)}(n,r);return!1},set:function(r,i){a&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new a),c(e,r,i)):u?(t||(t=new u),p(t,r,i)):(n||(n={key:{},next:null}),function(e,t,n){var r=y(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,i))}};return r}},{"call-bind/callBound":12,"get-intrinsic":288,"object-inspect":318}],347:[function(e,t,n){t.exports=function(e){var t=e._readableState;return t?t.objectMode||"number"==typeof e._duplexState?e.read():e.read(function(e){if(e.buffer.length)return e.buffer.head?e.buffer.head.data.length:e.buffer[0].length;return e.length}(t)):null}},{}],348:[function(e,t,n){"use strict";function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,s=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw s}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(){this._defaults=[]}for(var s=0,a=["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"];s<a.length;s++){const e=a[s];o.prototype[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this._defaults.push({fn:e,args:n}),this}}o.prototype._setDefaults=function(e){var t,n=r(this._defaults);try{for(n.s();!(t=n.n()).done;){const n=t.value;e[n.fn](...n.args)}}catch(e){n.e(e)}finally{n.f()}},t.exports=o},{}],349:[function(e,t,n){"use strict";function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,s=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw s}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}let o;"undefined"!=typeof window?o=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),o=void 0):o=self;const s=e("component-emitter"),a=e("fast-safe-stringify"),u=e("qs"),l=e("./request-base"),c=e("./utils"),f=c.isObject,d=c.mixin,p=c.hasOwn,h=e("./response-base"),y=e("./agent-base");function m(){}t.exports=function(e,t){return"function"==typeof t?new n.Request("GET",e).end(t):1===arguments.length?new n.Request("GET",e):new n.Request(e,t)};const b=n=t.exports;n.Request=_,b.getXHR=()=>{if(o.XMLHttpRequest)return new o.XMLHttpRequest;throw new Error("Browser-only version of superagent could not find XHR")};const g="".trim?e=>e.trim():e=>e.replace(/(^\s*|\s*$)/g,"");function v(e){if(!f(e))return e;const t=[];for(const n in e)p(e,n)&&w(t,n,e[n]);return t.join("&")}function w(e,t,n){if(void 0!==n)if(null!==n)if(Array.isArray(n)){var i,o=r(n);try{for(o.s();!(i=o.n()).done;){w(e,t,i.value)}}catch(e){o.e(e)}finally{o.f()}}else if(f(n))for(const r in n)p(n,r)&&w(e,`${t}[${r}]`,n[r]);else e.push(encodeURI(t)+"="+encodeURIComponent(n));else e.push(encodeURI(t))}function j(e){const t={},n=e.split("&");let r,i;for(let e=0,o=n.length;e<o;++e)r=n[e],i=r.indexOf("="),-1===i?t[decodeURIComponent(r)]="":t[decodeURIComponent(r.slice(0,i))]=decodeURIComponent(r.slice(i+1));return t}function E(e){return/[/+]json($|[^-\w])/i.test(e)}function x(e){this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;let t=this.xhr.status;1223===t&&(t=204),this._setStatusProperties(t),this.headers=function(e){const t=e.split(/\r?\n/),n={};let r,i,o,s;for(let e=0,a=t.length;e<a;++e)i=t[e],r=i.indexOf(":"),-1!==r&&(o=i.slice(0,r).toLowerCase(),s=g(i.slice(r+1)),n[o]=s);return n}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&e._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function _(e,t){const n=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",(()=>{let e,t=null,r=null;try{r=new x(n)}catch(e){return t=new Error("Parser is unable to parse the response"),t.parse=!0,t.original=e,n.xhr?(t.rawResponse=void 0===n.xhr.responseType?n.xhr.responseText:n.xhr.response,t.status=n.xhr.status?n.xhr.status:null,t.statusCode=t.status):(t.rawResponse=null,t.status=null),n.callback(t)}n.emit("response",r);try{n._isResponseOK(r)||(e=new Error(r.statusText||r.text||"Unsuccessful HTTP response"))}catch(t){e=t}e?(e.original=t,e.response=r,e.status=e.status||r.status,n.callback(e,r)):n.callback(null,r)}))}b.serializeObject=v,b.parseString=j,b.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},b.serialize={"application/x-www-form-urlencoded":u.stringify,"application/json":a},b.parse={"application/x-www-form-urlencoded":j,"application/json":JSON.parse},d(x.prototype,h.prototype),x.prototype._parseBody=function(e){let t=b.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&E(this.type)&&(t=b.parse["application/json"]),t&&e&&(e.length>0||e instanceof Object)?t(e):null)},x.prototype.toError=function(){const e=this.req,t=e.method,n=e.url,r=`cannot ${t} ${n} (${this.status})`,i=new Error(r);return i.status=this.status,i.method=t,i.url=n,i},b.Response=x,s(_.prototype),d(_.prototype,l.prototype),_.prototype.type=function(e){return this.set("Content-Type",b.types[e]||e),this},_.prototype.accept=function(e){return this.set("Accept",b.types[e]||e),this},_.prototype.auth=function(e,t,n){1===arguments.length&&(t=""),"object"==typeof t&&null!==t&&(n=t,t=""),n||(n={type:"function"==typeof btoa?"basic":"auto"});const r=n.encoder?n.encoder:e=>{if("function"==typeof btoa)return btoa(e);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(e,t,n,r)},_.prototype.query=function(e){return"string"!=typeof e&&(e=v(e)),e&&this._query.push(e),this},_.prototype.attach=function(e,t,n){if(t){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,n||t.name)}return this},_.prototype._getFormData=function(){return this._formData||(this._formData=new o.FormData),this._formData},_.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();const n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)},_.prototype.crossDomainError=function(){const e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},_.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},_.prototype.ca=_.prototype.agent,_.prototype.buffer=_.prototype.ca,_.prototype.write=()=>{throw new Error("Streaming is not supported in browser version of superagent")},_.prototype.pipe=_.prototype.write,_.prototype._isHost=function(e){return e&&"object"==typeof e&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},_.prototype.end=function(e){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||m,this._finalizeQueryString(),this._end()},_.prototype._setUploadTimeout=function(){const e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((()=>{e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},_.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));const e=this;this.xhr=b.getXHR();const t=this.xhr;let n=this._formData||this._data;this._setTimeouts(),t.addEventListener("readystatechange",(()=>{const n=t.readyState;if(n>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4!==n)return;let r;try{r=t.status}catch(e){r=0}if(!r){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}));const r=(t,n)=>{n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(e._uploadTimeoutTimer)),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.addEventListener("progress",r.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",r.bind(null,"upload"))}catch(e){}t.upload&&this._setUploadTimeout();try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof n&&!this._isHost(n)){const e=this._header["content-type"];let t=this._serializer||b.serialize[e?e.split(";")[0]:""];!t&&E(e)&&(t=b.serialize["application/json"]),t&&(n=t(n))}for(const e in this.header)null!==this.header[e]&&p(this.header,e)&&t.setRequestHeader(e,this.header[e]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===n?null:n)},b.agent=()=>new y;for(var S=0,A=["GET","POST","OPTIONS","PATCH","PUT","DELETE"];S<A.length;S++){const e=A[S];y.prototype[e.toLowerCase()]=function(t,n){const r=new b.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}}function R(e,t,n){const r=b("DELETE",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}y.prototype.del=y.prototype.delete,b.get=(e,t,n)=>{const r=b("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},b.head=(e,t,n)=>{const r=b("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},b.options=(e,t,n)=>{const r=b("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},b.del=R,b.delete=R,b.patch=(e,t,n)=>{const r=b("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},b.post=(e,t,n)=>{const r=b("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},b.put=(e,t,n)=>{const r=b("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}},{"./agent-base":348,"./request-base":350,"./response-base":351,"./utils":352,"component-emitter":17,"fast-safe-stringify":282,qs:324}],350:[function(e,t,n){(function(n){(function(){"use strict";const r=e("semver"),i=e("./utils"),o=i.isObject,s=i.hasOwn;function a(){}t.exports=a,a.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},a.prototype.parse=function(e){return this._parser=e,this},a.prototype.responseType=function(e){return this._responseType=e,this},a.prototype.serialize=function(e){return this._serializer=e,this},a.prototype.timeout=function(e){if(!e||"object"!=typeof e)return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(const t in e)if(s(e,t))switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;case"upload":this._uploadTimeout=e.upload;break;default:console.warn("Unknown timeout option",t)}return this},a.prototype.retry=function(e,t){return 0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};const u=new Set(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),l=new Set([408,413,429,500,502,503,504,521,522,524]);a.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{const n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){console.error(e)}if(t&&t.status&&l.has(t.status))return!0;if(e){if(e.code&&u.has(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},a.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},a.prototype.then=function(e,t){if(!this._fullfilledPromise){const e=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(((t,n)=>{e.on("abort",(()=>{if(this._maxRetries&&this._maxRetries>this._retries)return;if(this.timedout&&this.timedoutError)return void n(this.timedoutError);const e=new Error("Aborted");e.code="ABORTED",e.status=this.status,e.method=this.method,e.url=this.url,n(e)})),e.end(((e,r)=>{e?n(e):t(r)}))}))}return this._fullfilledPromise.then(e,t)},a.prototype.catch=function(e){return this.then(void 0,e)},a.prototype.use=function(e){return e(this),this},a.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},a.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},a.prototype.get=function(e){return this._header[e.toLowerCase()]},a.prototype.getHeader=a.prototype.get,a.prototype.set=function(e,t){if(o(e)){for(const t in e)s(e,t)&&this.set(t,e[t]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},a.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},a.prototype.field=function(e,t,n){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(o(e)){for(const t in e)s(e,t)&&this.field(t,e[t]);return this}if(Array.isArray(t)){for(const n in t)s(t,n)&&this.field(e,t[n]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=String(t)),n?this._getFormData().append(e,t,n):this._getFormData().append(e,t),this},a.prototype.abort=function(){if(this._aborted)return this;if(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req){if(r.gte(n.version,"v13.0.0")&&r.lt(n.version,"v14.0.0"))throw new Error("Superagent does not work in v13 properly with abort() due to Node.js core changes");this.req.abort()}return this.clearTimeout(),this.emit("abort"),this},a.prototype._auth=function(e,t,n,r){switch(n.type){case"basic":this.set("Authorization",`Basic ${r(`${e}:${t}`)}`);break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization",`Bearer ${e}`)}return this},a.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},a.prototype.redirects=function(e){return this._maxRedirects=e,this},a.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},a.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},a.prototype.send=function(e){const t=o(e);let n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(t&&o(this._data))for(const t in e){if("bigint"==typeof e[t]&&!e[t].toJSON)throw new Error("Cannot serialize BigInt value to json");s(e,t)&&(this._data[t]=e[t])}else{if("bigint"==typeof e)throw new Error("Cannot send value of type BigInt");"string"==typeof e?(n||this.type("form"),n=this._header["content-type"],n&&(n=n.toLowerCase().trim()),this._data="application/x-www-form-urlencoded"===n?this._data?`${this._data}&${e}`:e:(this._data||"")+e):this._data=e}return!t||this._isHost(e)||n||this.type("json"),this},a.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},a.prototype._finalizeQueryString=function(){const e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){const e=this.url.indexOf("?");if(e>=0){const t=this.url.slice(e+1).split("&");"function"==typeof this._sort?t.sort(this._sort):t.sort(),this.url=this.url.slice(0,e)+"?"+t.join("&")}}},a.prototype._appendQueryString=()=>{console.warn("Unsupported")},a.prototype._timeoutError=function(e,t,n){if(this._aborted)return;const r=new Error(`${e+t}ms exceeded`);r.timeout=t,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.timedoutError=r,this.abort(),this.callback(r)},a.prototype._setTimeouts=function(){const e=this;this._timeout&&!this._timer&&(this._timer=setTimeout((()=>{e._timeoutError("Timeout of ",e._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((()=>{e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))}}).call(this)}).call(this,e("_process"))},{"./utils":352,_process:322,semver:9}],351:[function(e,t,n){"use strict";const r=e("./utils");function i(){}t.exports=i,i.prototype.get=function(e){return this.header[e.toLowerCase()]},i.prototype._setHeaderProperties=function(e){const t=e["content-type"]||"";this.type=r.type(t);const n=r.params(t);for(const e in n)Object.prototype.hasOwnProperty.call(n,e)&&(this[e]=n[e]);this.links={};try{e.link&&(this.links=r.parseLinks(e.link))}catch(e){}},i.prototype._setStatusProperties=function(e){const t=Math.trunc(e/100);this.statusCode=e,this.status=this.statusCode,this.statusType=t,this.info=1===t,this.ok=2===t,this.redirect=3===t,this.clientError=4===t,this.serverError=5===t,this.error=(4===t||5===t)&&this.toError(),this.created=201===e,this.accepted=202===e,this.noContent=204===e,this.badRequest=400===e,this.unauthorized=401===e,this.notAcceptable=406===e,this.forbidden=403===e,this.notFound=404===e,this.unprocessableEntity=422===e}},{"./utils":352}],352:[function(e,t,n){"use strict";function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,s=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw s}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.type=e=>e.split(/ *; */).shift(),n.params=e=>{const t={};var n,i=r(e.split(/ *; */));try{for(i.s();!(n=i.n()).done;){const e=n.value.split(/ *= */),r=e.shift(),i=e.shift();r&&i&&(t[r]=i)}}catch(e){i.e(e)}finally{i.f()}return t},n.parseLinks=e=>{const t={};var n,i=r(e.split(/ *, */));try{for(i.s();!(n=i.n()).done;){const e=n.value.split(/ *; */),r=e[0].slice(1,-1);t[e[1].split(/ *= */)[1].slice(1,-1)]=r}}catch(e){i.e(e)}finally{i.f()}return t},n.cleanHeader=(e,t)=>(delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e),n.isObject=e=>null!==e&&"object"==typeof e,n.hasOwn=Object.hasOwn||function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(new Object(e),t)},n.mixin=(e,t)=>{for(const r in t)n.hasOwn(t,r)&&(e[r]=t[r])}},{}],353:[function(e,t,n){(function(t,r){(function(){var i=e("process/browser.js").nextTick,o=Function.prototype.apply,s=Array.prototype.slice,a={},u=0;function l(e,t){this._id=e,this._clearFn=t}n.setTimeout=function(){return new l(o.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new l(o.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(e){e.close()},l.prototype.unref=l.prototype.ref=function(){},l.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},n.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},n._unrefActive=n.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n.setImmediate="function"==typeof t?t:function(e){var t=u++,r=!(arguments.length<2)&&s.call(arguments,1);return a[t]=!0,i((function(){a[t]&&(r?e.apply(null,r):e.call(null),n.clearImmediate(t))})),t},n.clearImmediate="function"==typeof r?r:function(e){delete a[e]}}).call(this)}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":322,timers:353}],354:[function(e,t,n){(function(e){(function(){
|
|
52
|
+
var r=e("buffer"),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,n),n.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},{buffer:11}],101:[function(e,t,n){var r=Object.prototype.hasOwnProperty;function i(e){return"[Throws: "+(e?e.message:"?")+"]"}function o(e){var t=[];return function e(n){if(null===n||"object"!=typeof n)return n;if(-1!==t.indexOf(n))return"[Circular]";if(t.push(n),"function"==typeof n.toJSON)try{var o=e(n.toJSON());return t.pop(),o}catch(e){return i(e)}if(Array.isArray(n)){var a=n.map(e);return t.pop(),a}var u=Object.keys(n).reduce((function(t,o){return t[o]=e(function(e,t){if(r.call(e,t))try{return e[t]}catch(e){return i(e)}return e[t]}(n,o)),t}),{});return t.pop(),u}(e)}t.exports=function(e,t,n){return JSON.stringify(o(e),t,n)},t.exports.ensureProperties=o},{}],102:[function(e,t,n){"use strict";var r=e("get-intrinsic"),i=e("define-data-property"),o=e("has-property-descriptors")(),a=e("gopd"),u=e("es-errors/type"),s=r("%Math.floor%");t.exports=function(e,t){if("function"!=typeof e)throw new u("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||s(t)!==t)throw new u("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,l=!0;if("length"in e&&a){var c=a(e,"length");c&&!c.configurable&&(r=!1),c&&!c.writable&&(l=!1)}return(r||l||!n)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},{"define-data-property":22,"es-errors/type":35,"get-intrinsic":44,gopd:49,"has-property-descriptors":50}],103:[function(e,t,n){"use strict";var r=e("get-intrinsic"),i=e("call-bind/callBound"),o=e("object-inspect"),a=e("es-errors/type"),u=r("%WeakMap%",!0),s=r("%Map%",!0),l=i("WeakMap.prototype.get",!0),c=i("WeakMap.prototype.set",!0),f=i("WeakMap.prototype.has",!0),d=i("Map.prototype.get",!0),p=i("Map.prototype.set",!0),h=i("Map.prototype.has",!0),m=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};t.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+o(e))},get:function(r){if(u&&r&&("object"==typeof r||"function"==typeof r)){if(e)return l(e,r)}else if(s){if(t)return d(t,r)}else if(n)return function(e,t){var n=m(e,t);return n&&n.value}(n,r)},has:function(r){if(u&&r&&("object"==typeof r||"function"==typeof r)){if(e)return f(e,r)}else if(s){if(t)return h(t,r)}else if(n)return function(e,t){return!!m(e,t)}(n,r);return!1},set:function(r,i){u&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new u),c(e,r,i)):s?(t||(t=new s),p(t,r,i)):(n||(n={key:{},next:null}),function(e,t,n){var r=m(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,i))}};return r}},{"call-bind/callBound":12,"es-errors/type":35,"get-intrinsic":44,"object-inspect":74}],104:[function(e,t,n){t.exports=function(e){var t=e._readableState;return t?t.objectMode||"number"==typeof e._duplexState?e.read():e.read(function(e){if(e.buffer.length){var t=e.bufferIndex||0;if(e.buffer.head)return e.buffer.head.data.length;if(e.buffer.length-t>0&&e.buffer[t])return e.buffer[t].length}return e.length}(t)):null}},{}],105:[function(e,t,n){"use strict";function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return u=e.done,e},e:function(e){s=!0,a=e},f:function(){try{u||null==n.return||n.return()}finally{if(s)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(){this._defaults=[]}for(var a=0,u=["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"];a<u.length;a++){const e=u[a];o.prototype[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this._defaults.push({fn:e,args:n}),this}}o.prototype._setDefaults=function(e){var t,n=r(this._defaults);try{for(n.s();!(t=n.n()).done;){const n=t.value;e[n.fn](...n.args)}}catch(e){n.e(e)}finally{n.f()}},t.exports=o},{}],106:[function(e,t,n){"use strict";function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return u=e.done,e},e:function(e){s=!0,a=e},f:function(){try{u||null==n.return||n.return()}finally{if(s)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}let o;"undefined"!=typeof window?o=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),o=void 0):o=self;const a=e("component-emitter"),u=e("fast-safe-stringify"),s=e("qs"),l=e("./request-base"),c=e("./utils"),f=c.isObject,d=c.mixin,p=c.hasOwn,h=e("./response-base"),m=e("./agent-base");function y(){}t.exports=function(e,t){return"function"==typeof t?new n.Request("GET",e).end(t):1===arguments.length?new n.Request("GET",e):new n.Request(e,t)};const b=n=t.exports;n.Request=R,b.getXHR=()=>{if(o.XMLHttpRequest)return new o.XMLHttpRequest;throw new Error("Browser-only version of superagent could not find XHR")};const g="".trim?e=>e.trim():e=>e.replace(/(^\s*|\s*$)/g,"");function v(e){if(!f(e))return e;const t=[];for(const n in e)p(e,n)&&w(t,n,e[n]);return t.join("&")}function w(e,t,n){if(void 0!==n)if(null!==n)if(Array.isArray(n)){var i,o=r(n);try{for(o.s();!(i=o.n()).done;){w(e,t,i.value)}}catch(e){o.e(e)}finally{o.f()}}else if(f(n))for(const r in n)p(n,r)&&w(e,`${t}[${r}]`,n[r]);else e.push(encodeURI(t)+"="+encodeURIComponent(n));else e.push(encodeURI(t))}function E(e){const t={},n=e.split("&");let r,i;for(let e=0,o=n.length;e<o;++e)r=n[e],i=r.indexOf("="),-1===i?t[decodeURIComponent(r)]="":t[decodeURIComponent(r.slice(0,i))]=decodeURIComponent(r.slice(i+1));return t}function _(e){return/[/+]json($|[^-\w])/i.test(e)}function S(e){this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;let t=this.xhr.status;1223===t&&(t=204),this._setStatusProperties(t),this.headers=function(e){const t=e.split(/\r?\n/),n={};let r,i,o,a;for(let e=0,u=t.length;e<u;++e)i=t[e],r=i.indexOf(":"),-1!==r&&(o=i.slice(0,r).toLowerCase(),a=g(i.slice(r+1)),n[o]=a);return n}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&e._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function R(e,t){const n=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",(()=>{let e,t=null,r=null;try{r=new S(n)}catch(e){return t=new Error("Parser is unable to parse the response"),t.parse=!0,t.original=e,n.xhr?(t.rawResponse=void 0===n.xhr.responseType?n.xhr.responseText:n.xhr.response,t.status=n.xhr.status?n.xhr.status:null,t.statusCode=t.status):(t.rawResponse=null,t.status=null),n.callback(t)}n.emit("response",r);try{n._isResponseOK(r)||(e=new Error(r.statusText||r.text||"Unsuccessful HTTP response"))}catch(t){e=t}e?(e.original=t,e.response=r,e.status=e.status||r.status,n.callback(e,r)):n.callback(null,r)}))}b.serializeObject=v,b.parseString=E,b.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},b.serialize={"application/x-www-form-urlencoded":s.stringify,"application/json":u},b.parse={"application/x-www-form-urlencoded":E,"application/json":JSON.parse},d(S.prototype,h.prototype),S.prototype._parseBody=function(e){let t=b.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&_(this.type)&&(t=b.parse["application/json"]),t&&e&&(e.length>0||e instanceof Object)?t(e):null)},S.prototype.toError=function(){const e=this.req,t=e.method,n=e.url,r=`cannot ${t} ${n} (${this.status})`,i=new Error(r);return i.status=this.status,i.method=t,i.url=n,i},b.Response=S,a(R.prototype),d(R.prototype,l.prototype),R.prototype.type=function(e){return this.set("Content-Type",b.types[e]||e),this},R.prototype.accept=function(e){return this.set("Accept",b.types[e]||e),this},R.prototype.auth=function(e,t,n){1===arguments.length&&(t=""),"object"==typeof t&&null!==t&&(n=t,t=""),n||(n={type:"function"==typeof btoa?"basic":"auto"});const r=n.encoder?n.encoder:e=>{if("function"==typeof btoa)return btoa(e);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(e,t,n,r)},R.prototype.query=function(e){return"string"!=typeof e&&(e=v(e)),e&&this._query.push(e),this},R.prototype.attach=function(e,t,n){if(t){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,n||t.name)}return this},R.prototype._getFormData=function(){return this._formData||(this._formData=new o.FormData),this._formData},R.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();const n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)},R.prototype.crossDomainError=function(){const e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},R.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},R.prototype.ca=R.prototype.agent,R.prototype.buffer=R.prototype.ca,R.prototype.write=()=>{throw new Error("Streaming is not supported in browser version of superagent")},R.prototype.pipe=R.prototype.write,R.prototype._isHost=function(e){return e&&"object"==typeof e&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},R.prototype.end=function(e){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||y,this._finalizeQueryString(),this._end()},R.prototype._setUploadTimeout=function(){const e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((()=>{e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},R.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));const e=this;this.xhr=b.getXHR();const t=this.xhr;let n=this._formData||this._data;this._setTimeouts(),t.addEventListener("readystatechange",(()=>{const n=t.readyState;if(n>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4!==n)return;let r;try{r=t.status}catch(e){r=0}if(!r){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}));const r=(t,n)=>{n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(e._uploadTimeoutTimer)),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.addEventListener("progress",r.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",r.bind(null,"upload"))}catch(e){}t.upload&&this._setUploadTimeout();try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof n&&!this._isHost(n)){const e=this._header["content-type"];let t=this._serializer||b.serialize[e?e.split(";")[0]:""];!t&&_(e)&&(t=b.serialize["application/json"]),t&&(n=t(n))}for(const e in this.header)null!==this.header[e]&&p(this.header,e)&&t.setRequestHeader(e,this.header[e]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===n?null:n)},b.agent=()=>new m;for(var A=0,O=["GET","POST","OPTIONS","PATCH","PUT","DELETE"];A<O.length;A++){const e=O[A];m.prototype[e.toLowerCase()]=function(t,n){const r=new b.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}}function k(e,t,n){const r=b("DELETE",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}m.prototype.del=m.prototype.delete,b.get=(e,t,n)=>{const r=b("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},b.head=(e,t,n)=>{const r=b("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},b.options=(e,t,n)=>{const r=b("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},b.del=k,b.delete=k,b.patch=(e,t,n)=>{const r=b("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},b.post=(e,t,n)=>{const r=b("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},b.put=(e,t,n)=>{const r=b("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}},{"./agent-base":105,"./request-base":107,"./response-base":108,"./utils":109,"component-emitter":17,"fast-safe-stringify":38,qs:81}],107:[function(e,t,n){(function(n){(function(){"use strict";const r=e("semver"),i=e("./utils"),o=i.isObject,a=i.hasOwn;function u(){}t.exports=u,u.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},u.prototype.parse=function(e){return this._parser=e,this},u.prototype.responseType=function(e){return this._responseType=e,this},u.prototype.serialize=function(e){return this._serializer=e,this},u.prototype.timeout=function(e){if(!e||"object"!=typeof e)return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(const t in e)if(a(e,t))switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;case"upload":this._uploadTimeout=e.upload;break;default:console.warn("Unknown timeout option",t)}return this},u.prototype.retry=function(e,t){return 0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};const s=new Set(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),l=new Set([408,413,429,500,502,503,504,521,522,524]);u.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{const n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){console.error(e)}if(t&&t.status&&l.has(t.status))return!0;if(e){if(e.code&&s.has(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},u.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},u.prototype.then=function(e,t){if(!this._fullfilledPromise){const e=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(((t,n)=>{e.on("abort",(()=>{if(this._maxRetries&&this._maxRetries>this._retries)return;if(this.timedout&&this.timedoutError)return void n(this.timedoutError);const e=new Error("Aborted");e.code="ABORTED",e.status=this.status,e.method=this.method,e.url=this.url,n(e)})),e.end(((e,r)=>{e?n(e):t(r)}))}))}return this._fullfilledPromise.then(e,t)},u.prototype.catch=function(e){return this.then(void 0,e)},u.prototype.use=function(e){return e(this),this},u.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},u.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},u.prototype.get=function(e){return this._header[e.toLowerCase()]},u.prototype.getHeader=u.prototype.get,u.prototype.set=function(e,t){if(o(e)){for(const t in e)a(e,t)&&this.set(t,e[t]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},u.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},u.prototype.field=function(e,t,n){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(o(e)){for(const t in e)a(e,t)&&this.field(t,e[t]);return this}if(Array.isArray(t)){for(const n in t)a(t,n)&&this.field(e,t[n]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=String(t)),n?this._getFormData().append(e,t,n):this._getFormData().append(e,t),this},u.prototype.abort=function(){if(this._aborted)return this;if(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req){if(r.gte(n.version,"v13.0.0")&&r.lt(n.version,"v14.0.0"))throw new Error("Superagent does not work in v13 properly with abort() due to Node.js core changes");this.req.abort()}return this.clearTimeout(),this.emit("abort"),this},u.prototype._auth=function(e,t,n,r){switch(n.type){case"basic":this.set("Authorization",`Basic ${r(`${e}:${t}`)}`);break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization",`Bearer ${e}`)}return this},u.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},u.prototype.redirects=function(e){return this._maxRedirects=e,this},u.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},u.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},u.prototype.send=function(e){const t=o(e);let n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(t&&o(this._data))for(const t in e){if("bigint"==typeof e[t]&&!e[t].toJSON)throw new Error("Cannot serialize BigInt value to json");a(e,t)&&(this._data[t]=e[t])}else{if("bigint"==typeof e)throw new Error("Cannot send value of type BigInt");"string"==typeof e?(n||this.type("form"),n=this._header["content-type"],n&&(n=n.toLowerCase().trim()),this._data="application/x-www-form-urlencoded"===n?this._data?`${this._data}&${e}`:e:(this._data||"")+e):this._data=e}return!t||this._isHost(e)||n||this.type("json"),this},u.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},u.prototype._finalizeQueryString=function(){const e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){const e=this.url.indexOf("?");if(e>=0){const t=this.url.slice(e+1).split("&");"function"==typeof this._sort?t.sort(this._sort):t.sort(),this.url=this.url.slice(0,e)+"?"+t.join("&")}}},u.prototype._appendQueryString=()=>{console.warn("Unsupported")},u.prototype._timeoutError=function(e,t,n){if(this._aborted)return;const r=new Error(`${e+t}ms exceeded`);r.timeout=t,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.timedoutError=r,this.abort(),this.callback(r)},u.prototype._setTimeouts=function(){const e=this;this._timeout&&!this._timer&&(this._timer=setTimeout((()=>{e._timeoutError("Timeout of ",e._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((()=>{e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))}}).call(this)}).call(this,e("_process"))},{"./utils":109,_process:79,semver:9}],108:[function(e,t,n){"use strict";const r=e("./utils");function i(){}t.exports=i,i.prototype.get=function(e){return this.header[e.toLowerCase()]},i.prototype._setHeaderProperties=function(e){const t=e["content-type"]||"";this.type=r.type(t);const n=r.params(t);for(const e in n)Object.prototype.hasOwnProperty.call(n,e)&&(this[e]=n[e]);this.links={};try{e.link&&(this.links=r.parseLinks(e.link))}catch(e){}},i.prototype._setStatusProperties=function(e){const t=Math.trunc(e/100);this.statusCode=e,this.status=this.statusCode,this.statusType=t,this.info=1===t,this.ok=2===t,this.redirect=3===t,this.clientError=4===t,this.serverError=5===t,this.error=(4===t||5===t)&&this.toError(),this.created=201===e,this.accepted=202===e,this.noContent=204===e,this.badRequest=400===e,this.unauthorized=401===e,this.notAcceptable=406===e,this.forbidden=403===e,this.notFound=404===e,this.unprocessableEntity=422===e}},{"./utils":109}],109:[function(e,t,n){"use strict";function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return u=e.done,e},e:function(e){s=!0,a=e},f:function(){try{u||null==n.return||n.return()}finally{if(s)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.type=e=>e.split(/ *; */).shift(),n.params=e=>{const t={};var n,i=r(e.split(/ *; */));try{for(i.s();!(n=i.n()).done;){const e=n.value.split(/ *= */),r=e.shift(),i=e.shift();r&&i&&(t[r]=i)}}catch(e){i.e(e)}finally{i.f()}return t},n.parseLinks=e=>{const t={};var n,i=r(e.split(/ *, */));try{for(i.s();!(n=i.n()).done;){const e=n.value.split(/ *; */),r=e[0].slice(1,-1);t[e[1].split(/ *= */)[1].slice(1,-1)]=r}}catch(e){i.e(e)}finally{i.f()}return t},n.cleanHeader=(e,t)=>(delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e),n.isObject=e=>null!==e&&"object"==typeof e,n.hasOwn=Object.hasOwn||function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(new Object(e),t)},n.mixin=(e,t)=>{for(const r in t)n.hasOwn(t,r)&&(e[r]=t[r])}},{}],110:[function(e,t,n){(function(t,r){(function(){var i=e("process/browser.js").nextTick,o=Function.prototype.apply,a=Array.prototype.slice,u={},s=0;function l(e,t){this._id=e,this._clearFn=t}n.setTimeout=function(){return new l(o.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new l(o.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(e){e.close()},l.prototype.unref=l.prototype.ref=function(){},l.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},n.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},n._unrefActive=n.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n.setImmediate="function"==typeof t?t:function(e){var t=s++,r=!(arguments.length<2)&&a.call(arguments,1);return u[t]=!0,i((function(){u[t]&&(r?e.apply(null,r):e.call(null),n.clearImmediate(t))})),t},n.clearImmediate="function"==typeof r?r:function(e){delete u[e]}}).call(this)}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":79,timers:110}],111:[function(e,t,n){(function(e){(function(){
|
|
53
53
|
/*! typedarray-to-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
54
|
-
t.exports=function(t){return ArrayBuffer.isView(t)?e.from(t.buffer,t.byteOffset,t.byteLength):e.from(t)}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:11}],355:[function(e,t,n){!function(e,r){"use strict";var i="function",o="undefined",s="object",a="string",u="major",l="model",c="name",f="type",d="vendor",p="version",h="architecture",y="console",m="mobile",b="tablet",g="smarttv",v="wearable",w="embedded",j="Amazon",E="Apple",x="ASUS",_="BlackBerry",S="Browser",A="Chrome",R="Firefox",k="Google",O="Huawei",T="LG",I="Microsoft",M="Motorola",P="Opera",C="Samsung",N="Sharp",L="Sony",D="Xiaomi",B="Zebra",U="Facebook",F="Chromium OS",q="Mac OS",W=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},H=function(e,t){return typeof e===a&&-1!==z(t).indexOf(z(e))},z=function(e){return e.toLowerCase()},V=function(e,t){if(typeof e===a)return e=e.replace(/^\s\s*/,""),typeof t===o?e:e.substring(0,500)},G=function(e,t){for(var n,o,a,u,l,c,f=0;f<t.length&&!l;){var d=t[f],p=t[f+1];for(n=o=0;n<d.length&&!l&&d[n];)if(l=d[n++].exec(e))for(a=0;a<p.length;a++)c=l[++o],typeof(u=p[a])===s&&u.length>0?2===u.length?typeof u[1]==i?this[u[0]]=u[1].call(this,c):this[u[0]]=u[1]:3===u.length?typeof u[1]!==i||u[1].exec&&u[1].test?this[u[0]]=c?c.replace(u[1],u[2]):r:this[u[0]]=c?u[1].call(this,c,u[2]):r:4===u.length&&(this[u[0]]=c?u[3].call(this,c.replace(u[1],u[2])):r):this[u]=c||r;f+=2}},$=function(e,t){for(var n in t)if(typeof t[n]===s&&t[n].length>0){for(var i=0;i<t[n].length;i++)if(H(t[n][i],e))return"?"===n?r:n}else if(H(t[n],e))return"?"===n?r:n;return e},Y={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},J={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[c,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[c,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[c,p],[/opios[\/ ]+([\w\.]+)/i],[p,[c,P+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[c,P]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[p,[c,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[c,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[c,"UC"+S]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[p,[c,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[c,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[c,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[p,[c,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[p,[c,"Smart Lenovo "+S]],[/(avast|avg)\/([\w\.]+)/i],[[c,/(.+)/,"$1 Secure "+S],p],[/\bfocus\/([\w\.]+)/i],[p,[c,R+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[c,P+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[c,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[c,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[c,P+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[c,"MIUI "+S]],[/fxios\/([-\w\.]+)/i],[p,[c,R]],[/\bqihu|(qi?ho?o?|360)browser/i],[[c,"360 "+S]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[c,/(.+)/,"$1 "+S],p],[/samsungbrowser\/([\w\.]+)/i],[p,[c,C+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[c,/_/g," "],p],[/metasr[\/ ]?([\d\.]+)/i],[p,[c,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[c,"Sogou Mobile"],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[c,p],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[c],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[c,U],p],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[c,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[c,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[p,[c,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[c,A+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[c,A+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[c,"Android "+S]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[c,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[c,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,c],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[c,[p,$,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[c,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[c,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[c,R+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[c,p],[/(cobalt)\/([\w\.]+)/i],[c,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[h,"amd64"]],[/(ia32(?=;))/i],[[h,z]],[/((?:i[346]|x)86)[;\)]/i],[[h,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[h,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[h,"armhf"]],[/windows (ce|mobile); ppc;/i],[[h,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[h,/ower/,"",z]],[/(sun4\w)[;\)]/i],[[h,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[h,z]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[l,[d,C],[f,b]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[l,[d,C],[f,m]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[l,[d,E],[f,m]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[d,E],[f,b]],[/(macintosh);/i],[l,[d,E]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[d,N],[f,m]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[l,[d,O],[f,b]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[l,[d,O],[f,m]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[l,/_/g," "],[d,D],[f,m]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[l,/_/g," "],[d,D],[f,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[l,[d,"OPPO"],[f,m]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[d,"Vivo"],[f,m]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[l,[d,"Realme"],[f,m]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[l,[d,M],[f,m]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[d,M],[f,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[d,T],[f,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[d,T],[f,m]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[l,[d,"Lenovo"],[f,b]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[l,/_/g," "],[d,"Nokia"],[f,m]],[/(pixel c)\b/i],[l,[d,k],[f,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[l,[d,k],[f,m]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[l,[d,L],[f,m]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[d,L],[f,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[d,"OnePlus"],[f,m]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[d,j],[f,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[d,j],[f,m]],[/(playbook);[-\w\),; ]+(rim)/i],[l,d,[f,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[l,[d,_],[f,m]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[d,x],[f,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[d,x],[f,m]],[/(nexus 9)/i],[l,[d,"HTC"],[f,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[l,/_/g," "],[f,m]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[d,"Acer"],[f,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[d,"Meizu"],[f,m]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[l,[d,"Ulefone"],[f,m]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[d,l,[f,m]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[d,l,[f,b]],[/(surface duo)/i],[l,[d,I],[f,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[d,"Fairphone"],[f,m]],[/(u304aa)/i],[l,[d,"AT&T"],[f,m]],[/\bsie-(\w*)/i],[l,[d,"Siemens"],[f,m]],[/\b(rct\w+) b/i],[l,[d,"RCA"],[f,b]],[/\b(venue[\d ]{2,7}) b/i],[l,[d,"Dell"],[f,b]],[/\b(q(?:mv|ta)\w+) b/i],[l,[d,"Verizon"],[f,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[l,[d,"Barnes & Noble"],[f,b]],[/\b(tm\d{3}\w+) b/i],[l,[d,"NuVision"],[f,b]],[/\b(k88) b/i],[l,[d,"ZTE"],[f,b]],[/\b(nx\d{3}j) b/i],[l,[d,"ZTE"],[f,m]],[/\b(gen\d{3}) b.+49h/i],[l,[d,"Swiss"],[f,m]],[/\b(zur\d{3}) b/i],[l,[d,"Swiss"],[f,b]],[/\b((zeki)?tb.*\b) b/i],[l,[d,"Zeki"],[f,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],l,[f,b]],[/\b(ns-?\w{0,9}) b/i],[l,[d,"Insignia"],[f,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[l,[d,"NextBook"],[f,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],l,[f,m]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],l,[f,m]],[/\b(ph-1) /i],[l,[d,"Essential"],[f,m]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[l,[d,"Envizen"],[f,b]],[/\b(trio[-\w\. ]+) b/i],[l,[d,"MachSpeed"],[f,b]],[/\btu_(1491) b/i],[l,[d,"Rotor"],[f,b]],[/(shield[\w ]+) b/i],[l,[d,"Nvidia"],[f,b]],[/(sprint) (\w+)/i],[d,l,[f,m]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[d,I],[f,m]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[d,B],[f,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[d,B],[f,m]],[/smart-tv.+(samsung)/i],[d,[f,g]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[d,C],[f,g]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,T],[f,g]],[/(apple) ?tv/i],[d,[l,E+" TV"],[f,g]],[/crkey/i],[[l,A+"cast"],[d,k],[f,g]],[/droid.+aft(\w+)( bui|\))/i],[l,[d,j],[f,g]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[l,[d,N],[f,g]],[/(bravia[\w ]+)( bui|\))/i],[l,[d,L],[f,g]],[/(mitv-\w{5}) bui/i],[l,[d,D],[f,g]],[/Hbbtv.*(technisat) (.*);/i],[d,l,[f,g]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,V],[l,V],[f,g]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,g]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,l,[f,y]],[/droid.+; (shield) bui/i],[l,[d,"Nvidia"],[f,y]],[/(playstation [345portablevi]+)/i],[l,[d,L],[f,y]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[d,I],[f,y]],[/((pebble))app/i],[d,l,[f,v]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[l,[d,E],[f,v]],[/droid.+; (glass) \d/i],[l,[d,k],[f,v]],[/droid.+; (wt63?0{2,3})\)/i],[l,[d,B],[f,v]],[/(quest( 2| pro)?)/i],[l,[d,U],[f,v]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[f,w]],[/(aeobc)\b/i],[l,[d,j],[f,w]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[l,[f,m]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[l,[f,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,m]],[/(android[-\w\. ]{0,9});.+buil/i],[l,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[c,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[c,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[c,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,c]],os:[[/microsoft (windows) (vista|xp)/i],[c,p],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[c,[p,$,Y]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[p,$,Y],[c,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[c,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[c,q],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,c],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[c,p],[/\(bb(10);/i],[p,[c,_]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[c,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[c,R+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[c,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[p,[c,"watchOS"]],[/crkey\/([\d\.]+)/i],[p,[c,A+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[c,F],p],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[c,p],[/(sunos) ?([\w\.\d]*)/i],[[c,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[c,p]]},K=function(t,n){if(typeof t===s&&(n=t,t=r),!(this instanceof K))return new K(t,n).getResult();var y=typeof e!==o&&e.navigator?e.navigator:r,g=t||(y&&y.userAgent?y.userAgent:""),v=y&&y.userAgentData?y.userAgentData:r,w=n?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(J,n):J,j=y&&y.userAgent==g;return this.getBrowser=function(){var e,t={};return t[c]=r,t[p]=r,G.call(t,g,w.browser),t[u]=typeof(e=t[p])===a?e.replace(/[^\d\.]/g,"").split(".")[0]:r,j&&y&&y.brave&&typeof y.brave.isBrave==i&&(t[c]="Brave"),t},this.getCPU=function(){var e={};return e[h]=r,G.call(e,g,w.cpu),e},this.getDevice=function(){var e={};return e[d]=r,e[l]=r,e[f]=r,G.call(e,g,w.device),j&&!e[f]&&v&&v.mobile&&(e[f]=m),j&&"Macintosh"==e[l]&&y&&typeof y.standalone!==o&&y.maxTouchPoints&&y.maxTouchPoints>2&&(e[l]="iPad",e[f]=b),e},this.getEngine=function(){var e={};return e[c]=r,e[p]=r,G.call(e,g,w.engine),e},this.getOS=function(){var e={};return e[c]=r,e[p]=r,G.call(e,g,w.os),j&&!e[c]&&v&&"Unknown"!=v.platform&&(e[c]=v.platform.replace(/chrome os/i,F).replace(/macos/i,q)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return g},this.setUA=function(e){return g=typeof e===a&&e.length>500?V(e,500):e,this},this.setUA(g),this};K.VERSION="1.0.37",K.BROWSER=W([c,p,u]),K.CPU=W([h]),K.DEVICE=W([l,d,f,y,m,g,b,v,w]),K.ENGINE=K.OS=W([c,p]),typeof n!==o?(typeof t!==o&&t.exports&&(n=t.exports=K),n.UAParser=K):typeof e!==o&&(e.UAParser=K);var X=typeof e!==o&&(e.jQuery||e.Zepto);if(X&&!X.ua){var Q=new K;X.ua=Q.getResult(),X.ua.get=function(){return Q.getUA()},X.ua.set=function(e){Q.setUA(e);var t=Q.getResult();for(var n in t)X.ua[n]=t[n]}}}("object"==typeof window?window:this)},{}],356:[function(e,t,n){(function(e){(function(){function n(t){try{if(!e.localStorage)return!1}catch(e){return!1}var n=e.localStorage[t];return null!=n&&"true"===String(n).toLowerCase()}t.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],357:[function(e,t,n){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],358:[function(e,t,n){"use strict";var r=e("is-arguments"),i=e("is-generator-function"),o=e("which-typed-array"),s=e("is-typed-array");function a(e){return e.call.bind(e)}var u="undefined"!=typeof BigInt,l="undefined"!=typeof Symbol,c=a(Object.prototype.toString),f=a(Number.prototype.valueOf),d=a(String.prototype.valueOf),p=a(Boolean.prototype.valueOf);if(u)var h=a(BigInt.prototype.valueOf);if(l)var y=a(Symbol.prototype.valueOf);function m(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function b(e){return"[object Map]"===c(e)}function g(e){return"[object Set]"===c(e)}function v(e){return"[object WeakMap]"===c(e)}function w(e){return"[object WeakSet]"===c(e)}function j(e){return"[object ArrayBuffer]"===c(e)}function E(e){return"undefined"!=typeof ArrayBuffer&&(j.working?j(e):e instanceof ArrayBuffer)}function x(e){return"[object DataView]"===c(e)}function _(e){return"undefined"!=typeof DataView&&(x.working?x(e):e instanceof DataView)}n.isArgumentsObject=r,n.isGeneratorFunction=i,n.isTypedArray=s,n.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},n.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):s(e)||_(e)},n.isUint8Array=function(e){return"Uint8Array"===o(e)},n.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},n.isUint16Array=function(e){return"Uint16Array"===o(e)},n.isUint32Array=function(e){return"Uint32Array"===o(e)},n.isInt8Array=function(e){return"Int8Array"===o(e)},n.isInt16Array=function(e){return"Int16Array"===o(e)},n.isInt32Array=function(e){return"Int32Array"===o(e)},n.isFloat32Array=function(e){return"Float32Array"===o(e)},n.isFloat64Array=function(e){return"Float64Array"===o(e)},n.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},n.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},b.working="undefined"!=typeof Map&&b(new Map),n.isMap=function(e){return"undefined"!=typeof Map&&(b.working?b(e):e instanceof Map)},g.working="undefined"!=typeof Set&&g(new Set),n.isSet=function(e){return"undefined"!=typeof Set&&(g.working?g(e):e instanceof Set)},v.working="undefined"!=typeof WeakMap&&v(new WeakMap),n.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(v.working?v(e):e instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),n.isWeakSet=function(e){return w(e)},j.working="undefined"!=typeof ArrayBuffer&&j(new ArrayBuffer),n.isArrayBuffer=E,x.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&x(new DataView(new ArrayBuffer(1),0,1)),n.isDataView=_;var S="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function A(e){return"[object SharedArrayBuffer]"===c(e)}function R(e){return void 0!==S&&(void 0===A.working&&(A.working=A(new S)),A.working?A(e):e instanceof S)}function k(e){return m(e,f)}function O(e){return m(e,d)}function T(e){return m(e,p)}function I(e){return u&&m(e,h)}function M(e){return l&&m(e,y)}n.isSharedArrayBuffer=R,n.isAsyncFunction=function(e){return"[object AsyncFunction]"===c(e)},n.isMapIterator=function(e){return"[object Map Iterator]"===c(e)},n.isSetIterator=function(e){return"[object Set Iterator]"===c(e)},n.isGeneratorObject=function(e){return"[object Generator]"===c(e)},n.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===c(e)},n.isNumberObject=k,n.isStringObject=O,n.isBooleanObject=T,n.isBigIntObject=I,n.isSymbolObject=M,n.isBoxedPrimitive=function(e){return k(e)||O(e)||T(e)||I(e)||M(e)},n.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(E(e)||R(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(n,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},{"is-arguments":309,"is-generator-function":312,"is-typed-array":314,"which-typed-array":364}],359:[function(e,t,n){(function(t){(function(){var r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},i=/%[sdj%]/g;n.format=function(e){if(!g(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(u(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,o=r.length,s=String(e).replace(i,(function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),a=r[n];n<o;a=r[++n])m(a)||!j(a)?s+=" "+a:s+=" "+u(a);return s},n.deprecate=function(e,r){if(void 0!==t&&!0===t.noDeprecation)return e;if(void 0===t)return function(){return n.deprecate(e,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(t.throwDeprecation)throw new Error(r);t.traceDeprecation?console.trace(r):console.error(r),i=!0}return e.apply(this,arguments)}};var o={},s=/^$/;if(t.env.NODE_DEBUG){var a=t.env.NODE_DEBUG;a=a.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+a+"$","i")}function u(e,t){var r={seen:[],stylize:c};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(t)?r.showHidden=t:t&&n._extend(r,t),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=l),f(r,e,r.depth)}function l(e,t){var n=u.styles[t];return n?"["+u.colors[n][0]+"m"+e+"["+u.colors[n][1]+"m":e}function c(e,t){return e}function f(e,t,r){if(e.customInspect&&t&&_(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(r,e);return g(i)||(i=f(e,i,r)),i}var o=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(g(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(b(t))return e.stylize(""+t,"number");if(y(t))return e.stylize(""+t,"boolean");if(m(t))return e.stylize("null","null")}(e,t);if(o)return o;var s=Object.keys(t),a=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(t)),x(t)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return d(t);if(0===s.length){if(_(t)){var u=t.name?": "+t.name:"";return e.stylize("[Function"+u+"]","special")}if(w(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(E(t))return e.stylize(Date.prototype.toString.call(t),"date");if(x(t))return d(t)}var l,c="",j=!1,S=["{","}"];(h(t)&&(j=!0,S=["[","]"]),_(t))&&(c=" [Function"+(t.name?": "+t.name:"")+"]");return w(t)&&(c=" "+RegExp.prototype.toString.call(t)),E(t)&&(c=" "+Date.prototype.toUTCString.call(t)),x(t)&&(c=" "+d(t)),0!==s.length||j&&0!=t.length?r<0?w(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),l=j?function(e,t,n,r,i){for(var o=[],s=0,a=t.length;s<a;++s)k(t,String(s))?o.push(p(e,t,n,r,String(s),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(p(e,t,n,r,i,!0))})),o}(e,t,r,a,s):s.map((function(n){return p(e,t,r,a,n,j)})),e.seen.pop(),function(e,t,n){var r=e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(r>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(l,c,S)):S[0]+c+S[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,r,i,o){var s,a,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(a=e.stylize("[Setter]","special")),k(r,i)||(s="["+i+"]"),a||(e.seen.indexOf(u.value)<0?(a=m(n)?f(e,u.value,null):f(e,u.value,n-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n")):a=e.stylize("[Circular]","special")),v(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function h(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function m(e){return null===e}function b(e){return"number"==typeof e}function g(e){return"string"==typeof e}function v(e){return void 0===e}function w(e){return j(e)&&"[object RegExp]"===S(e)}function j(e){return"object"==typeof e&&null!==e}function E(e){return j(e)&&"[object Date]"===S(e)}function x(e){return j(e)&&("[object Error]"===S(e)||e instanceof Error)}function _(e){return"function"==typeof e}function S(e){return Object.prototype.toString.call(e)}function A(e){return e<10?"0"+e.toString(10):e.toString(10)}n.debuglog=function(e){if(e=e.toUpperCase(),!o[e])if(s.test(e)){var r=t.pid;o[e]=function(){var t=n.format.apply(n,arguments);console.error("%s %d: %s",e,r,t)}}else o[e]=function(){};return o[e]},n.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.types=e("./support/types"),n.isArray=h,n.isBoolean=y,n.isNull=m,n.isNullOrUndefined=function(e){return null==e},n.isNumber=b,n.isString=g,n.isSymbol=function(e){return"symbol"==typeof e},n.isUndefined=v,n.isRegExp=w,n.types.isRegExp=w,n.isObject=j,n.isDate=E,n.types.isDate=E,n.isError=x,n.types.isNativeError=x,n.isFunction=_,n.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},n.isBuffer=e("./support/isBuffer");var R=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function k(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n.log=function(){var e,t;console.log("%s - %s",(e=new Date,t=[A(e.getHours()),A(e.getMinutes()),A(e.getSeconds())].join(":"),[e.getDate(),R[e.getMonth()],t].join(" ")),n.format.apply(n,arguments))},n.inherits=e("inherits"),n._extend=function(e,t){if(!t||!j(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var O="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function T(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}n.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(O&&e[O]){var t;if("function"!=typeof(t=e[O]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,O,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,i)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),O&&Object.defineProperty(t,O,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,r(e))},n.promisify.custom=O,n.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function n(){for(var n=[],r=0;r<arguments.length;r++)n.push(arguments[r]);var i=n.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var o=this,s=function(){return i.apply(o,arguments)};e.apply(this,n).then((function(e){t.nextTick(s.bind(null,null,e))}),(function(e){t.nextTick(T.bind(null,e,s))}))}return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),Object.defineProperties(n,r(e)),n}}).call(this)}).call(this,e("_process"))},{"./support/isBuffer":357,"./support/types":358,_process:322,inherits:305}],360:[function(e,t,n){"use strict";var r=Object.prototype.toString;t.exports=function(e){return"[object Float32Array]"===r.call(e)}},{}],361:[function(e,t,n){(function(n,r){(function(){var i=e("readable-stream"),o=e("end-of-stream"),s=e("inherits"),a=e("stream-shift"),u=r.from&&r.from!==Uint8Array.from?r.from([0]):new r([0]),l=function(e,t){e._corked?e.once("uncork",t):t()},c=function(e,t){return function(n){n?function(e,t){e._autoDestroy&&e.destroy(t)}(e,"premature close"===n.message?null:n):t&&!e._ended&&e.end()}},f=function(e,t,n){if(!(this instanceof f))return new f(e,t,n);i.Duplex.call(this,n),this._writable=null,this._readable=null,this._readable2=null,this._autoDestroy=!n||!1!==n.autoDestroy,this._forwardDestroy=!n||!1!==n.destroy,this._forwardEnd=!n||!1!==n.end,this._corked=1,this._ondrain=null,this._drained=!1,this._forwarding=!1,this._unwrite=null,this._unread=null,this._ended=!1,this.destroyed=!1,e&&this.setWritable(e),t&&this.setReadable(t)};s(f,i.Duplex),f.obj=function(e,t,n){return n||(n={}),n.objectMode=!0,n.highWaterMark=16,new f(e,t,n)},f.prototype.cork=function(){1==++this._corked&&this.emit("cork")},f.prototype.uncork=function(){this._corked&&0==--this._corked&&this.emit("uncork")},f.prototype.setWritable=function(e){if(this._unwrite&&this._unwrite(),this.destroyed)e&&e.destroy&&e.destroy();else if(null!==e&&!1!==e){var t=this,r=o(e,{writable:!0,readable:!1},c(this,this._forwardEnd)),i=function(){var e=t._ondrain;t._ondrain=null,e&&e()};this._unwrite&&n.nextTick(i),this._writable=e,this._writable.on("drain",i),this._unwrite=function(){t._writable.removeListener("drain",i),r()},this.uncork()}else this.end()},f.prototype.setReadable=function(e){if(this._unread&&this._unread(),this.destroyed)e&&e.destroy&&e.destroy();else{if(null===e||!1===e)return this.push(null),void this.resume();var t,n=this,r=o(e,{writable:!1,readable:!0},c(this)),s=function(){n._forward()},a=function(){n.push(null)};this._drained=!0,this._readable=e,this._readable2=e._readableState?e:(t=e,new i.Readable({objectMode:!0,highWaterMark:16}).wrap(t)),this._readable2.on("readable",s),this._readable2.on("end",a),this._unread=function(){n._readable2.removeListener("readable",s),n._readable2.removeListener("end",a),r()},this._forward()}},f.prototype._read=function(){this._drained=!0,this._forward()},f.prototype._forward=function(){if(!this._forwarding&&this._readable2&&this._drained){var e;for(this._forwarding=!0;this._drained&&null!==(e=a(this._readable2));)this.destroyed||(this._drained=this.push(e));this._forwarding=!1}},f.prototype.destroy=function(e){if(!this.destroyed){this.destroyed=!0;var t=this;n.nextTick((function(){t._destroy(e)}))}},f.prototype._destroy=function(e){if(e){var t=this._ondrain;this._ondrain=null,t?t(e):this.emit("error",e)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit("close")},f.prototype._write=function(e,t,n){return this.destroyed?n():this._corked?l(this,this._write.bind(this,e,t,n)):e===u?this._finish(n):this._writable?void(!1===this._writable.write(e)?this._ondrain=n:n()):n()},f.prototype._finish=function(e){var t=this;this.emit("preend"),l(this,(function(){var n,r;n=t._forwardEnd&&t._writable,r=function(){!1===t._writableState.prefinished&&(t._writableState.prefinished=!0),t.emit("prefinish"),l(t,e)},n?n._writableState&&n._writableState.finished?r():n._writableState?n.end(r):(n.end(),r()):r()}))},f.prototype.end=function(e,t,n){return"function"==typeof e?this.end(null,null,e):"function"==typeof t?this.end(e,null,t):(this._ended=!0,e&&this.write(e),this._writableState.ending||this.write(u),i.Writable.prototype.end.call(this,n))},t.exports=f}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{_process:322,buffer:11,"end-of-stream":280,inherits:305,"readable-stream":339,"stream-shift":347}],362:[function(e,t,n){(function(n,r){(function(){"use strict";var i=e("readable-stream").Transform,o=e("duplexify"),s=e("ws"),a=e("safe-buffer").Buffer;t.exports=function(e,t,u){var l,c,f="browser"===n.title,d=!!r.WebSocket,p=f?function e(t,n,r){if(c.bufferedAmount>y)return void setTimeout(e,m,t,n,r);g&&"string"==typeof t&&(t=a.from(t,"utf8"));try{c.send(t)}catch(e){return r(e)}r()}:function(e,t,n){if(c.readyState!==c.OPEN)return void n();g&&"string"==typeof e&&(e=a.from(e,"utf8"));c.send(e,n)};t&&!Array.isArray(t)&&"object"==typeof t&&(u=t,t=null,("string"==typeof u.protocol||Array.isArray(u.protocol))&&(t=u.protocol));u||(u={});void 0===u.objectMode&&(u.objectMode=!(!0===u.binary||void 0===u.binary));var h=function(e,t,n){var r=new i({objectMode:e.objectMode});return r._write=t,r._flush=n,r}(u,p,(function(e){c.close(),e()}));u.objectMode||(h._writev=x);var y=u.browserBufferSize||524288,m=u.browserBufferTimeout||1e3;"object"==typeof e?c=e:(c=d&&f?new s(e,t):new s(e,t,u)).binaryType="arraybuffer";var b=void 0===c.addEventListener;c.readyState===c.OPEN?l=h:(l=l=o(void 0,void 0,u),u.objectMode||(l._writev=x),b?c.addEventListener("open",v):c.onopen=v);l.socket=c,b?(c.addEventListener("close",w),c.addEventListener("error",j),c.addEventListener("message",E)):(c.onclose=w,c.onerror=j,c.onmessage=E);h.on("close",(function(){c.close()}));var g=!u.objectMode;function v(){l.setReadable(h),l.setWritable(h),l.emit("connect")}function w(){l.end(),l.destroy()}function j(e){l.destroy(e)}function E(e){var t=e.data;t=t instanceof ArrayBuffer?a.from(t):a.from(t,"utf8"),h.push(t)}function x(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)"string"==typeof e[r].chunk?n[r]=a.from(e[r],"utf8"):n[r]=e[r].chunk;this._write(a.concat(n),"binary",t)}return l}}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:322,duplexify:361,"readable-stream":339,"safe-buffer":343,ws:363}],363:[function(e,t,n){var r=null;"undefined"!=typeof WebSocket?r=WebSocket:"undefined"!=typeof MozWebSocket?r=MozWebSocket:"undefined"!=typeof window&&(r=window.WebSocket||window.MozWebSocket),t.exports=r},{}],364:[function(e,t,n){(function(n){(function(){"use strict";var r=e("for-each"),i=e("available-typed-arrays"),o=e("call-bind"),s=e("call-bind/callBound"),a=e("gopd"),u=s("Object.prototype.toString"),l=e("has-tostringtag/shams")(),c="undefined"==typeof globalThis?n:globalThis,f=i(),d=s("String.prototype.slice"),p=Object.getPrototypeOf,h=s("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},y={__proto__:null};r(f,l&&a&&p?function(e){var t=new c[e];if(Symbol.toStringTag in t){var n=p(t),r=a(n,Symbol.toStringTag);if(!r){var i=p(n);r=a(i,Symbol.toStringTag)}y["$"+e]=o(r.get)}}:function(e){var t=new c[e],n=t.slice||t.set;n&&(y["$"+e]=o(n))});t.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!l){var t=d(u(e),8,-1);return h(f,t)>-1?t:"Object"===t&&function(e){var t=!1;return r(y,(function(n,r){if(!t)try{n(e),t=d(r,1)}catch(e){}})),t}(e)}return a?function(e){var t=!1;return r(y,(function(n,r){if(!t)try{"$"+n(e)===r&&(t=d(r,1))}catch(e){}})),t}(e):null}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"available-typed-arrays":7,"call-bind":13,"call-bind/callBound":12,"for-each":284,gopd:293,"has-tostringtag/shams":298}],365:[function(e,t,n){t.exports=function e(t,n){if(t&&n)return e(t)(n);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){r[e]=t[e]})),r;function r(){for(var e=new Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];var r=t.apply(this,e),i=e[e.length-1];return"function"==typeof r&&r!==i&&Object.keys(i).forEach((function(e){r[e]=i[e]})),r}}},{}],366:[function(e,t,n){t.exports={name:"videomail-client",version:"7.0.0",description:"A wicked npm package to record videos directly in the browser, wohooo!",author:"Michael Heuberger <michael.heuberger@binarykitchen.com>",contributors:[{name:"Michael Heuberger",email:"michael.heuberger@binarykitchen.com"}],homepage:"https://videomail.io",repository:{type:"git",url:"https://github.com/binarykitchen/videomail-client.git"},license:"CC0-1.0",readmeFilename:"README.md",module:"src/js/index.js",main:"prototype/js/videomail-client.js",scripts:{build:"gulp build",test:"gulp test",watch:"NODE_NO_HTTP2=1 gulp watch",audit:"npx audit-ci --config audit-ci.json",patch:"./env/dev/release.sh --importance=patch",minor:"./env/dev/release.sh --importance=minor",major:"./env/dev/release.sh --importance=major",lint:"eslint --color --ext .js ./src ./test ./gulpfile.js","lint-fix":"npm --silent run lint -- --fix; exit 0",prettier:"prettier --check ./src ./test gulpfile.js","prettier-fix":"prettier --write ./src ./test gulpfile.js"},engines:{node:">=18.12.1",npm:">=8.19.2"},keywords:["webcam","video","videomail","encoder","getusermedia","audio","recorder"],babel:{presets:[["@babel/env",{useBuiltIns:"usage",corejs:3}]],plugins:["@babel/transform-runtime"]},dependencies:{"@babel/runtime":"7.23.2","add-eventlistener-with-options":"1.25.5",animitter:"3.0.0","audio-sample":"3.0.1","canvas-to-buffer":"3.0.1","classlist.js":"1.1.20150312",contains:"0.1.1","core-js":"3.33.2","create-error":"0.3.1",deepmerge:"4.3.1",defined:"1.0.1",despot:"1.1.3","document-visibility":"1.0.1","element-closest":"3.0.2",filesize:"10.1.0","get-form-data":"3.0.0",hidden:"1.1.1","humanize-duration":"3.31.0",hyperscript:"2.0.2","insert-css":"2.0.0","iphone-inline-video":"2.2.2","is-power-of-two":"1.0.0",keymirror:"0.1.1","number-is-integer":"2.0.0",readystate:"0.4.1","request-frame":"1.5.3","safe-json-stringify":"1.2.0",superagent:"8.1.2","ua-parser-js":"1.0.37","websocket-stream":"5.5.2"},devDependencies:{"@babel/core":"7.23.3","@babel/eslint-parser":"7.23.3","@babel/plugin-transform-runtime":"7.23.3","@babel/preset-env":"7.23.3","audit-ci":"6.6.1",autoprefixer:"10.4.16",babelify:"10.0.0","body-parser":"1.20.2",browserify:"17.0.0","connect-send-json":"1.0.0",cssnano:"6.0.1",del:"6.1.1",eslint:"8.54.0","eslint-config-prettier":"8.8.0","eslint-plugin-import":"2.29.0","eslint-plugin-node":"11.1.0","eslint-plugin-promise":"6.1.1","fancy-log":"2.0.0",glob:"8.0.3",gulp:"4.0.2","gulp-bump":"3.2.0","gulp-bytediff":"1.0.0","gulp-concat":"2.6.1","gulp-connect":"5.7.0","gulp-derequire":"3.0.0","gulp-if":"3.0.0","gulp-inject-string":"1.1.2","gulp-load-plugins":"2.0.8","gulp-plumber":"1.2.1","gulp-postcss":"9.0.1","gulp-rename":"2.0.0","gulp-sourcemaps":"3.0.0","gulp-stylus":"2.7.1","gulp-terser":"2.1.0","gulp-todo":"7.1.1",minimist:"1.2.8",nib:"1.2.0",postcss:"8.4.31",prettier:"2.8.8",router:"1.3.8",tape:"5.7.2","tape-catch":"1.0.6","tape-run":"10.0.0","vinyl-buffer":"1.0.1","vinyl-source-stream":"2.0.0",watchify:"4.0.0"}}},{}],367:[function(e,t,n){"use strict";e("core-js/modules/es.object.define-property.js");var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,e("core-js/modules/web.timers.js"),e("core-js/modules/es.array.for-each.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js");var i,o,s=r(e("deepmerge")),a=r(e("readystate")),u=r(e("util")),l=r(e("./options")),c=r(e("./constants")),f=r(e("./events")),d=r(e("./util/collectLogger")),p=r(e("./util/eventEmitter")),h=r(e("./wrappers/container")),y=r(e("./wrappers/visuals/replay")),m=r(e("./wrappers/optionsWrapper")),b=r(e("./util/browser")),g=r(e("./resource"));var v=function(e){var t,n,r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,s.default)(l.default,e,{arrayMerge:function(e,t){return t}});return i=i||new d.default(t),t.logger=i,t.debug=t.logger.debug,m.default.addFunctions(t),t}(e),u=new h.default(r),c=r.debug;p.default.call(this,r,"VideomailClient"),this.events=f.default,this.show=function(){u.isBuilt()?u.show():this.once(f.default.BUILT,u.show)},this.replay=function(e,n){a.default.interactive((function(){if("string"==typeof n&&(n=document.getElementById(n)),n)u.isOutsideElementOf(n)&&(t=new y.default(n,r)).build();else if(u.isBuilt()||u.build(),!u.hasElement())throw a.default.removeAllListeners(),new Error("Unable to replay video without a container nor parent element.");t||(t=u.getReplay()),n||(n=t.getParentElement()),e&&(e=u.addPlayerDimensions(e,n)),u.isOutsideElementOf(n)?u.hideForm({deep:!0}):u.loadForm(e),setTimeout((function(){t.setVideomail(e),u.showReplayOnly()}),1e3)}))},this.startOver=function(e){t&&(t.hide(),t.reset()),u.startOver(e)},this.unload=function(e){a.default.removeAllListeners(),u.unload(e)},this.hide=function(){u.hide()},this.get=function(e,t){new g.default(r).get(e,(function(e,n){e?t(e):t(null,u.addPlayerDimensions(n))}))},this.canRecord=function(){return function(e){return o||(o=new b.default(e)),o}(r).canRecord()},this.isDirty=function(){return u.isDirty()},this.isRecording=function(){return u.isRecording()},this.submit=function(){u.submit()},this.getLogLines=function(){if(r.logger&&r.logger.getLines)return r.logger.getLines()},n=!1,a.default.interactive((function(e){c("Client: interactive(),","previousState =",e+",","!building =",!n+",","!isBuilt() =",!u.isBuilt()),n||u.isBuilt()||(n=!0,u.build(),n=!1)}))};u.default.inherits(v,p.default),Object.keys(c.default.public).forEach((function(e){v[e]=c.default.public[e]})),v.events=f.default;n.default=v},{"./constants":368,"./events":369,"./options":370,"./resource":371,"./util/browser":373,"./util/collectLogger":374,"./util/eventEmitter":375,"./wrappers/container":382,"./wrappers/optionsWrapper":385,"./wrappers/visuals/replay":395,"@babel/runtime/helpers/interopRequireDefault":1,"core-js/modules/es.array.for-each.js":210,"core-js/modules/es.object.define-property.js":221,"core-js/modules/es.object.keys.js":223,"core-js/modules/es.object.to-string.js":224,"core-js/modules/web.dom-collections.for-each.js":262,"core-js/modules/web.timers.js":266,deepmerge:273,readystate:340,util:359}],368:[function(e,t,n){"use strict";e("core-js/modules/es.object.define-property.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;n.default={SITE_NAME_LABEL:"x-videomail-site-name",VERSION_LABEL:"videomailClientVersion",public:{ENC_TYPE_APP_JSON:"application/json",ENC_TYPE_FORM:"application/x-www-form-urlencoded"}}},{"core-js/modules/es.object.define-property.js":221}],369:[function(e,t,n){"use strict";e("core-js/modules/es.object.define-property.js");var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("keymirror"));n.default=(0,i.default)({BUILT:null,FORM_READY:null,LOADING_USER_MEDIA:null,USER_MEDIA_READY:null,CONNECTING:null,CONNECTED:null,DISCONNECTED:null,COUNTDOWN:null,RECORDING:null,STOPPING:null,STOPPED:null,PROGRESS:null,BEGIN_AUDIO_ENCODING:null,BEGIN_VIDEO_ENCODING:null,RESETTING:null,PAUSED:null,RESUMING:null,PREVIEW:null,PREVIEW_SHOWN:null,REPLAY_SHOWN:null,INVALID:null,VALIDATING:null,VALID:null,SUBMITTING:null,SUBMITTED:null,ERROR:null,BLOCKING:null,SENDING_FIRST_FRAME:null,FIRST_FRAME_SENT:null,HIDE:null,NOTIFYING:null,ENABLING_AUDIO:null,DISABLING_AUDIO:null,LOADED_META_DATA:null,EVENT_EMITTED:null,GOING_BACK:null,STARTING_OVER:null,ASKING_WEBCAM_PERMISSION:null,VISIBLE:null,INVISIBLE:null,SWITCH_FACING_MODE:null})},{"@babel/runtime/helpers/interopRequireDefault":1,"core-js/modules/es.object.define-property.js":221,keymirror:316}],370:[function(e,t,n){(function(t){(function(){"use strict";e("core-js/modules/es.object.define-property.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=e("../../package.json"),i="production"===t.env.NODE_ENV;n.default={logger:null,logStackSize:30,verbose:!i,baseUrl:"https://videomail.io",socketUrl:"wss://videomail.io",siteName:"videomail-client-demo",cache:!0,insertCss:!0,enablePause:!0,enableAutoPause:!0,enableSpace:!0,submitWithVideomail:!1,disableSubmit:!1,enableAutoValidation:!0,enableAutoSubmission:!0,enctype:"application/json",selectors:{containerId:"videomail",replayClass:"replay",userMediaClass:"userMedia",visualsClass:"visuals",buttonClass:null,buttonsClass:"buttons",recordButtonClass:"record",pauseButtonClass:"pause",resumeButtonClass:"resume",previewButtonClass:"preview",recordAgainButtonClass:"recordAgain",submitButtonClass:"submit",subjectInputName:"subject",fromInputName:"from",toInputName:"to",ccInputName:"cc",bccInputName:"bcc",bodyInputName:"body",sendCopyInputName:"sendCopy",keyInputName:"videomail_key",parentKeyInputName:"videomail_parent_key",aliasInputName:"videomail_alias",formId:null,submitButtonId:null,submitButtonSelector:null},audio:{enabled:!1,switch:!1,volume:.2,bufferSize:"auto"},video:{fps:15,limitSeconds:30,countdown:3,width:"auto",height:"auto",facingMode:"user",facingModeButton:!1},image:{quality:.44,types:["webp","jpeg"]},text:{pausedHeader:"Paused",pausedHint:null,sending:"Teleporting",encoding:"Encoding",limitReached:"Limit reached",audioOff:"Audio off",audioOn:"Audio on",buttons:{record:"Record video",recordAgain:"Record again",resume:"Resume",pause:"Pause",preview:"Preview"}},notifier:{entertain:!1,entertainClass:"bg",entertainLimit:6,entertainInterval:9e3},timeouts:{userMedia:2e4,connection:1e4,pingInterval:35e3},callbacks:{adjustFormDataBeforePosting:null},defaults:{from:null,to:null,cc:null,bcc:null,subject:null,body:null},playerOnly:!1,displayErrors:!0,adjustFormOnBrowserError:!1,reportErrors:!1,fakeUaString:null,version:r.version}}).call(this)}).call(this,e("_process"))},{"../../package.json":366,_process:322,"core-js/modules/es.object.define-property.js":221}],371:[function(e,t,n){"use strict";e("core-js/modules/es.object.define-property.js");var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var t={};function n(t,n){return e.defaults[n]&&!t[n]&&(t[n]=e.defaults[n]),t}function r(e,t){return t&&t.body&&t.body.error&&!(e=t.body.error).message&&t.text&&(e.message=t.text),e}function u(n,u,l,c){c||(c=l,l=null);var f={},d=e.baseUrl+"/videomail/";l&&(d+=l);var p=(0,i.default)(n,d);f[o.default.SITE_NAME_LABEL]=e.siteName,p.query(f).set("Timezone-Id",a).send(u).timeout(e.timeout).end((function(n,i){if(n=r(n,i))c(n);else{var o=i.body&&i.body.videomail?i.body.videomail:null;e.cache&&u[s]&&(t[u[s]]=o),c(null,o,i.body)}}))}this.get=function(n,u){e.cache&&t[n]?setTimeout((function(){u(null,t[n])}),0):function(n,u){i.default.get("/videomail/"+n+"/snapshot").set("Accept","application/json").set("Timezone-Id",a).set(o.default.SITE_NAME_LABEL,e.siteName).timeout(e.timeouts.connection).end((function(n,i){if(n=r(n,i))u(n);else{var o=i.body?i.body:null;e.cache&&(t[s]=o),u(null,o)}}))}(n,u)},this.reportError=function(t,n){var s={},a=e.baseUrl+"/client-error/",u=(0,i.default)("post",a);s[o.default.SITE_NAME_LABEL]=e.siteName,u.query(s).send(t).timeout(e.timeout).end((function(e,t){(e=r(e,t))?n&&n(e):n&&n()}))},this.post=function(t,r){(t=function(t){return e.defaults&&(t=n(t,"from"),t=n(t,"to"),t=n(t,"cc"),t=n(t,"bcc"),t=n(t,"subject"),t=n(t,"body")),t}(t))[o.default.VERSION_LABEL]=e.version,e.callbacks.adjustFormDataBeforePosting?e.callbacks.adjustFormDataBeforePosting(t,(function(e,t){e?r(e):u("post",t,r)})):u("post",t,r)},this.put=function(e,t){u("put",e,e.key,t)},this.form=function(t,n,s){var u;switch(e.enctype){case o.default.public.ENC_TYPE_APP_JSON:u="json";break;case o.default.public.ENC_TYPE_FORM:u="form";break;default:setTimeout((function(){s(new Error("Invalid enctype given: "+e.enctype))}),0)}u&&i.default.post(n).type(u).set("Timezone-Id",a).send(t).timeout(e.timeout).end((function(e,t){(e=r(e,t))?s(e):s(null,t)}))}},e("core-js/modules/web.timers.js");var i=r(e("superagent")),o=r(e("./constants")),s="alias",a=Intl.DateTimeFormat().resolvedOptions().timeZone},{"./constants":368,"@babel/runtime/helpers/interopRequireDefault":1,"core-js/modules/es.object.define-property.js":221,"core-js/modules/web.timers.js":266,superagent:349}],372:[function(e,t,n){"use strict";e("core-js/modules/es.object.define-property.js");var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){var n,r,l,c=new o.default(t);function f(){return window.AudioContext||window.webkitAudioContext}function d(){return!!f()&&!!p()}function p(){if(!l){var e=f();l=new e}return l}this.init=function(e){t.debug("AudioRecorder: init()");var i=p().createGain();try{r=p().createMediaStreamSource(e)}catch(e){throw s.default.create("Webcam has no audio",e.toString(),t)}var o=t.audio.bufferSize;if("auto"===o&&(o=c.isFirefox()?512:2048),!(0,a.default)(o))throw s.default.create("Audio buffer size must be a power of two.",t);if(!t.audio.volume||t.audio.volume>1)throw s.default.create("Audio volume must be between zero and one.",t);i.gain.value=t.audio.volume,n=p().createScriptProcessor(o,u,u),r.connect(n),n.connect(p().destination),r.connect(i),i.connect(n)},this.record=function(r){t.debug("AudioRecorder: record()"),n.onaudioprocess=function(t){!function(t,n){if(e.isRecording()&&!e.isPaused()){var r=t.inputBuffer.getChannelData(0);n(new i.default(r))}}(t,r)}},this.stop=function(){t.debug("AudioRecorder: stop()"),n&&(n.onaudioprocess=void 0),r&&r.disconnect(),d()&&(p().close?p().close().then((function(){t.debug("AudioRecorder: audio context is closed"),l=null})).catch((function(e){throw s.default.create(e,t)})):l=null)},this.getSampleRate=function(){return d()?p().sampleRate:-1}},e("core-js/modules/es.date.to-string.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js");var i=r(e("audio-sample")),o=r(e("./browser")),s=r(e("./videomailError")),a=r(e("is-power-of-two")),u=1},{"./browser":373,"./videomailError":380,"@babel/runtime/helpers/interopRequireDefault":1,"audio-sample":6,"core-js/modules/es.date.to-string.js":217,"core-js/modules/es.object.define-property.js":221,"core-js/modules/es.object.to-string.js":224,"core-js/modules/es.regexp.to-string.js":235,"is-power-of-two":313}],373:[function(e,t,n){"use strict";e("core-js/modules/es.object.define-property.js");var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("@babel/runtime/helpers/typeof"));e("core-js/modules/es.function.name.js"),e("core-js/modules/es.parse-float.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.array-buffer.constructor.js"),e("core-js/modules/es.array-buffer.slice.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.array.iterator.js"),e("core-js/modules/es.typed-array.uint8-array.js"),e("core-js/modules/es.typed-array.copy-within.js"),e("core-js/modules/es.typed-array.every.js"),e("core-js/modules/es.typed-array.fill.js"),e("core-js/modules/es.typed-array.filter.js"),e("core-js/modules/es.typed-array.find.js"),e("core-js/modules/es.typed-array.find-index.js"),e("core-js/modules/es.typed-array.for-each.js"),e("core-js/modules/es.typed-array.includes.js"),e("core-js/modules/es.typed-array.index-of.js"),e("core-js/modules/es.typed-array.iterator.js"),e("core-js/modules/es.typed-array.join.js"),e("core-js/modules/es.typed-array.last-index-of.js"),e("core-js/modules/es.typed-array.map.js"),e("core-js/modules/es.typed-array.reduce.js"),e("core-js/modules/es.typed-array.reduce-right.js"),e("core-js/modules/es.typed-array.reverse.js"),e("core-js/modules/es.typed-array.set.js"),e("core-js/modules/es.typed-array.slice.js"),e("core-js/modules/es.typed-array.some.js"),e("core-js/modules/es.typed-array.sort.js"),e("core-js/modules/es.typed-array.subarray.js"),e("core-js/modules/es.typed-array.to-locale-string.js"),e("core-js/modules/es.typed-array.to-string.js");var o=r(e("defined")),s=r(e("ua-parser-js")),a=r(e("./videomailError"));n.default=function(e){e=e||{};var t,n="http://www.mozilla.org/firefox/update/",r="https://www.microsoft.com/en-us/download/details.aspx?id=48126",u="http://www.google.com/chrome/",l="http://www.chromium.org/getting-involved/download-chromium",c=(0,o.default)(e.fakeUaString,"undefined"!=typeof window&&window.navigator&&window.navigator.userAgent,""),f=new s.default(c).getResult(),d="iOS"===f.os.name,p=parseFloat(f.browser.version),h="Chrome"===f.browser.name,y="Brave"===f.browser.name,m="Chromium"===f.browser.name,b="Firefox"===f.browser.name,g=parseFloat(f.os.version),v="Windows"===f.os.name,w="Edge"===f.browser.name||v&&g>=10,j=/IE/.test(f.browser.name),E=/Safari/.test(f.browser.name),x=/Opera/.test(f.browser.name),_=/Android/.test(f.os.name),S=h||m,A="Facebook"===f.browser.name,R=d||_,k=E&&p>=11,O=d&&g>=11,T=d&&g<11,I=e.fakeHttps||"https:"===window.location.protocol,M=S||b||_||x||w||k||O||y,P=this;function C(){var e;return(e=T?"On iPads or iPhones below iOS v11 this camera feature is missing.<br/><br/>For now, we recommend you to upgrade iOS or to use an Android device.":function(){var e;return b?e=d?"Firefox on iOS is not ready for cameras yet. Hopefully in near future ...":'Probably you need to <a href="'+n+'" target="_blank">upgrade Firefox</a> to fix this.':h?e=d?"Use Safari instead. Apple doesn't give Chrome access to iPhone cameras (booo).":'Probably you need to <a href="'+u+'" target="_blank">upgrade Chrome</a> to fix this.':m?e='Probably you need to <a href="'+l+'" target="_blank">upgrade Chromium</a> to fix this.':j?e='Instead of Internet Explorer you need to upgrade to <a href="'+r+'" target="_blank">Edge</a>.':k?e="Probably you need to shut down Safari and restart it, this for correct webcam access.":E&&(e='Safari below version 11 has no webcam support.<br/>Better upgrade Safari or pick <a href="'+u+'" target="_blank">Chrome</a>, <a href="'+n+'" target="_blank">Firefox</a> or Android.'),e}())||(e=P.isChromeBased()||P.isFirefox()||E?"For the webcam feature, your browser needs an upgrade.":A?'Hence we recommend you to use a real browser like <a href="'+u+'" target="_blank">Chrome</a>, <a href="'+n+'" target="_blank">Firefox</a> or <a href="'+r+'" target="_blank">Edge</a>.':'Hence we recommend you to use either <a href="'+u+'" target="_blank">Chrome</a>, <a href="'+n+'" target="_blank">Firefox</a>, <a href="'+r+'" target="_blank">Edge</a> or Android.'),e}function N(e,t){var n;return e&&e.canPlayType&&(n=e.canPlayType("video/"+t)),""!==n&&n}this.canRecord=function(){var e="undefined"!=typeof navigator,t=!1;e&&navigator.mediaDevices&&navigator.mediaDevices.getUserMedia?t=!0:t="function"===(e&&(0,i.default)(navigator.getUserMedia_));return t},this.checkRecordingCapabilities=function(){var t;if(I){if(!M||!this.canRecord()){var n,r=[];T?r.push(a.default.IOS_PROBLEM):r.push(a.default.BROWSER_PROBLEM),n=M?R?A?"Sorry, the Facebook app cannot record from your mobile camera":"Sorry, your browser cannot record from your mobile camera":"Sorry, your browser cannot record from webcams":R?"Sorry, your browser is unable to use your mobile camera":"Sorry, your browser is unable to use webcams",T&&(e.reportErrors=!1),t=a.default.create({message:n},C(),e,{classList:r})}}else t=a.default.create({message:"Sorry, your page is insecure"},"Please switch to HTTPS to ensure all is encrypted.",e,{classList:[a.default.BROWSER_PROBLEM]});return t},this.checkBufferTypes=function(){var t;return"undefined"==typeof window||void 0===window.atob?t=a.default.create("atob is not supported",e):void 0===window.ArrayBuffer?t=a.default.create("ArrayBuffers are not supported",e):void 0===window.Uint8Array&&(t=a.default.create("Uint8Arrays are not supported",e)),t},this.getVideoType=function(e){return!t&&e&&(N(e,"mp4")?t="mp4":N(e,"webm")&&(t="webm")),"webm"!==t&&"mp4"!==t&&(t="mp4"),t&&""!==t||(t="mp4"),t},this.getNoAccessIssue=function(){var t;return t=this.isChromeBased()?"Click on the allow button to grant access to your webcam.":this.isFirefox()?"Please grant Firefox access to your webcam.":"Your system does not let your browser access your webcam.",a.default.create("Unable to access webcam",t,e)},this.isChromeBased=function(){return S},this.isFirefox=function(){return b},this.isEdge=function(){return w},this.isAndroid=function(){return _},this.isMobile=function(){return"mobile"===f.device.type},this.isOkSafari=function(){return k},this.isIOS=function(){return d},this.getUsefulData=function(){return{browser:f.browser,device:f.device,os:f.os,engine:f.engine,userAgent:c}}}},{"./videomailError":380,"@babel/runtime/helpers/interopRequireDefault":1,"@babel/runtime/helpers/typeof":2,"core-js/modules/es.array-buffer.constructor.js":207,"core-js/modules/es.array-buffer.slice.js":208,"core-js/modules/es.array.iterator.js":213,"core-js/modules/es.function.name.js":219,"core-js/modules/es.object.define-property.js":221,"core-js/modules/es.object.to-string.js":224,"core-js/modules/es.parse-float.js":225,"core-js/modules/es.regexp.exec.js":234,"core-js/modules/es.typed-array.copy-within.js":238,"core-js/modules/es.typed-array.every.js":239,"core-js/modules/es.typed-array.fill.js":240,"core-js/modules/es.typed-array.filter.js":241,"core-js/modules/es.typed-array.find-index.js":242,"core-js/modules/es.typed-array.find.js":243,"core-js/modules/es.typed-array.for-each.js":244,"core-js/modules/es.typed-array.includes.js":245,"core-js/modules/es.typed-array.index-of.js":246,"core-js/modules/es.typed-array.iterator.js":247,"core-js/modules/es.typed-array.join.js":248,"core-js/modules/es.typed-array.last-index-of.js":249,"core-js/modules/es.typed-array.map.js":250,"core-js/modules/es.typed-array.reduce-right.js":251,"core-js/modules/es.typed-array.reduce.js":252,"core-js/modules/es.typed-array.reverse.js":253,"core-js/modules/es.typed-array.set.js":254,"core-js/modules/es.typed-array.slice.js":255,"core-js/modules/es.typed-array.some.js":256,"core-js/modules/es.typed-array.sort.js":257,"core-js/modules/es.typed-array.subarray.js":258,"core-js/modules/es.typed-array.to-locale-string.js":259,"core-js/modules/es.typed-array.to-string.js":260,"core-js/modules/es.typed-array.uint8-array.js":261,defined:275,"ua-parser-js":355}],374:[function(e,t,n){"use strict";e("core-js/modules/es.object.define-property.js");var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new o.default(e),n=e.logger||console,r=e.selectors&&e.selectors.containerId||"undefined container id",s=[];function a(t,n){var r=i.default.format.apply(i.default,n);return s.length>e.logStackSize&&s.pop(),s.push("["+t+"] "+r),r}function u(e){return"#"+r+" ["+(new Date).toLocaleTimeString()+"] > "+e}this.debug=function(){var r=[].slice.call(arguments,0);r[0]=u(r[0]);var i=a("debug",r);e.verbose&&(t.isFirefox()?n.debug(i):n.groupCollapsed?(n.groupCollapsed(i),n.trace("Trace"),n.groupEnd()):n.debug?n.debug(i):console.log(i))},this.error=function(){var e=[].slice.call(arguments,0);e[0]=u(e[0]),n.error(a("error",e))},this.warn=function(){var e=[].slice.call(arguments,0);e[0]=u(e[0]),n.warn(a("warn",e))},this.getLines=function(){return s}},e("core-js/modules/es.date.to-string.js"),e("core-js/modules/es.array.slice.js");var i=r(e("util")),o=r(e("./browser"))},{"./browser":373,"@babel/runtime/helpers/interopRequireDefault":1,"core-js/modules/es.array.slice.js":215,"core-js/modules/es.date.to-string.js":217,"core-js/modules/es.object.define-property.js":221,util:359}],375:[function(e,t,n){"use strict";e("core-js/modules/es.object.define-property.js");var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){this.emit=function(n){var r,a=Array.prototype.slice.call(arguments,0);if(!n)throw o.default.create("You cannot emit without an event.",e);if(n===s.default.ERROR){var u=a[1];u=o.default.create(u,e),a[1]=u}e.debug&&("removeListener"!==n&&"newListener"!==n&&(a[1]&&(r=a.slice(1)),r?e.debug("%s emits: %s",t,n,r):e.debug("%s emits: %s",t,n)));return i.default.emit.apply(i.default,a)},this.on=function(e,t){return i.default.on(e,t)},this.once=function(e,t){return i.default.once(e,t)},this.listeners=function(e){return i.default.listeners(e)},this.removeListener=function(e,t){return i.default.removeListener(e,t)},this.removeAllListeners=function(){i.default.removeAllListeners()}},e("core-js/modules/es.array.slice.js");var i=r(e("despot")),o=r(e("./videomailError")),s=r(e("./../events"))},{"./../events":369,"./videomailError":380,"@babel/runtime/helpers/interopRequireDefault":1,"core-js/modules/es.array.slice.js":215,"core-js/modules/es.object.define-property.js":221,despot:276}],376:[function(e,t,n){"use strict";e("core-js/modules/es.object.define-property.js");var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=e("filesize"),o=r(e("humanize-duration"));n.default={filesize:function(e,t){return(0,i.filesize)(e,{round:t})},toTime:function(e){return(0,o.default)(e)}}},{"@babel/runtime/helpers/interopRequireDefault":1,"core-js/modules/es.object.define-property.js":221,filesize:283,"humanize-duration":301}],377:[function(e,t,n){"use strict";e("core-js/modules/es.object.define-property.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;n.default=["loadstart","suspend","progress","abort","emptied","stalled","pause","loadeddata","waiting","playing","canplay","canplaythrough","seeking","seeked","ended","ratechange","durationchange","volumechange"]},{"core-js/modules/es.object.define-property.js":221}],378:[function(e,t,n){"use strict";e("core-js/modules/es.object.define-property.js");var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){if(null===e)return"null";if(void 0===e)return"undefined";if("string"==typeof e)return e;if(Array.isArray(e))return function(e){if(e&&e.length>0){var t=[];return e.forEach((function(e){e&&t.push((0,o.default)(e))})),s+t.join(a)}}(e);if("object"===(0,i.default)(e))return function(e,t){var n,r=Object.getOwnPropertyNames(e),i=t&&t.excludes||[],u=[];if(i.push("stack"),r&&r.length>0){var l=!1;r.forEach((function(t){i&&(l=i.indexOf(t)>=0),!l&&e[t]&&u.push((0,o.default)(e[t]))}))}1===u.length?n=u.join():u.length>1&&(n=s+u.join(a));return n}(e,t);return e.toString()};var i=r(e("@babel/runtime/helpers/typeof"));e("core-js/modules/es.array.for-each.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.array.join.js"),e("core-js/modules/es.object.get-own-property-names.js"),e("core-js/modules/es.array.index-of.js"),e("core-js/modules/es.array.is-array.js"),e("core-js/modules/es.date.to-string.js"),e("core-js/modules/es.regexp.to-string.js");var o=r(e("safe-json-stringify")),s="- ",a="<br/>"+s},{"@babel/runtime/helpers/interopRequireDefault":1,"@babel/runtime/helpers/typeof":2,"core-js/modules/es.array.for-each.js":210,"core-js/modules/es.array.index-of.js":211,"core-js/modules/es.array.is-array.js":212,"core-js/modules/es.array.join.js":214,"core-js/modules/es.date.to-string.js":217,"core-js/modules/es.object.define-property.js":221,"core-js/modules/es.object.get-own-property-names.js":222,"core-js/modules/es.object.to-string.js":224,"core-js/modules/es.regexp.to-string.js":235,"core-js/modules/web.dom-collections.for-each.js":262,"safe-json-stringify":344}],379:[function(e,t,n){"use strict";e("core-js/modules/es.object.define-property.js");var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.screen||(e.screen={});(0,i.default)("native"),t.mediaDevices&&t.mediaDevices.getUserMedia||(t.getUserMedia_=t.getUserMedia||t.webkitGetUserMedia||t.mozGetUserMedia||t.msGetUserMedia);!e.AudioContext&&e.webkitAudioContext&&(e.AudioContext=e.webkitAudioContext);e.URL||(e.URL=e.webkitURL||e.mozURL||e.msURL);t.connection||(t.connection=t.mozConnection||t.webkitConnection);var n,r=["debug","groupCollapsed","groupEnd","error","exception","info","log","trace","warn"],o={};e.console?o=e.console:e.console=function(){};var s=r.length;for(;s--;)o[n=r[s]]||(o[n]=function(){})},e("classlist.js");var i=r(e("request-frame"))},{"@babel/runtime/helpers/interopRequireDefault":1,"classlist.js":16,"core-js/modules/es.object.define-property.js":221,"request-frame":342}],380:[function(e,t,n){"use strict";e("core-js/modules/es.object.define-property.js");var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("@babel/runtime/helpers/typeof"));e("core-js/modules/es.function.name.js"),e("core-js/modules/es.date.to-string.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js"),e("core-js/modules/es.array.index-of.js");var o=r(e("./../resource")),s=r(e("create-error")),a=r(e("./pretty")),u=r(e("util")),l="Videomail Error",c=(0,s.default)(Error,l,{explanation:void 0,logLines:void 0,useragent:void 0,url:void 0,stack:void 0}),f=function(e){return(0,a.default)(e,{excludes:["stack"]})};c.PERMISSION_DENIED="PERMISSION_DENIED",c.NOT_ALLOWED_ERROR="NotAllowedError",c.NOT_CONNECTED="Not connected",c.DOM_EXCEPTION="DOMException",c.STARTING_FAILED="Starting video failed",c.MEDIA_DEVICE_NOT_SUPPORTED="MediaDeviceNotSupported",c.BROWSER_PROBLEM="browser-problem",c.WEBCAM_PROBLEM="webcam-problem",c.IOS_PROBLEM="ios-problem",c.OVERCONSTRAINED="OverconstrainedError",c.NOT_FOUND_ERROR="NotFoundError",c.NOT_READABLE_ERROR="NotReadableError",c.SECURITY_ERROR="SecurityError",c.TRACK_START_ERROR="TrackStartError",c.INVALID_STATE_ERROR="InvalidStateError",c.create=function(t,n,r,s){if(t&&t.name===l)return t;!r&&n&&(r=n,n=void 0),s=s||{};var a=(r=r||{})&&r.debug||console.log,d=r&&r.isAudioEnabled&&r.isAudioEnabled();a("VideomailError: create()",t,n||"(no explanation set)");var p,h,y,m=s.classList||[],b=new(0,e("./browser").default)(r);switch("object"===(0,i.default)(t)?t.name===c.TRACK_START_ERROR?p=c.TRACK_START_ERROR:t.name===c.SECURITY_ERROR?p=c.SECURITY_ERROR:8===t.code&&t.name===c.NotFoundError?p=c.NotFoundError:35===t.code||t.name===c.NOT_ALLOWED_ERROR?p=c.NOT_ALLOWED_ERROR:1===t.code&&1===t.PERMISSION_DENIED?p=c.PERMISSION_DENIED:t.constructor&&t.constructor.name===c.DOM_EXCEPTION?p=t.name===c.NOT_READABLE_ERROR?c.NOT_READABLE_ERROR:c.DOM_EXCEPTION:t.constructor&&t.constructor.name===c.OVERCONSTRAINED?p=c.OVERCONSTRAINED:t.message===c.STARTING_FAILED?p=t.message:t.name?p=t.name:"error"===t.type&&0===t.target.bufferedAmount&&(p=c.NOT_CONNECTED):p=t===c.NOT_CONNECTED?c.NOT_CONNECTED:t,y=t&&t.stack?t.stack:(new Error).stack,p){case c.SECURITY_ERROR:h="The operation was insecure",n="Probably you have disallowed Cookies for this page?",m.push(c.BROWSER_PROBLEM);break;case c.OVERCONSTRAINED:h="Invalid webcam constraints",n=t.constraint?"width"===t.constraint?"Your webcam does not meet the width requirement.":"Unmet constraint: "+t.constraint:t.toString();break;case"MediaDeviceFailedDueToShutdown":h="Webcam is shutting down",n="This happens your webcam is already switching off and not giving you permission to use it.";break;case"SourceUnavailableError":h="Source of your webcam cannot be accessed",n="Probably it is locked from another process or has a hardware error.",t.message&&(t.message+=" Details: "+t.message);break;case c.NOT_FOUND_ERROR:case"NO_DEVICES_FOUND":d?(h="No webcam nor microphone found",n="Your browser cannot find a webcam with microphone attached to your machine."):(h="No webcam found",n="Your browser cannot find a webcam attached to your machine."),m.push(c.WEBCAM_PROBLEM);break;case"PermissionDismissedError":h="Ooops, you didn't give me any permissions?",n="Looks like you skipped the webcam permission dialogue.<br/>Please grant access next time the dialogue appears.",m.push(c.WEBCAM_PROBLEM);break;case c.NOT_ALLOWED_ERROR:case c.PERMISSION_DENIED:case"PermissionDeniedError":h="Permission denied",n="Cannot access your webcam. This can have two reasons:<br/>a) you blocked access to webcam; or<br/>b) your webcam is already in use.",m.push(c.WEBCAM_PROBLEM);break;case"HARDWARE_UNAVAILABLE":h="Webcam is unavailable",n="Maybe it is already busy in another window?",(b.isChromeBased()||b.isFirefox())&&(n+=" Or you have to allow access above?"),m.push(c.WEBCAM_PROBLEM);break;case c.NOT_CONNECTED:h="Unable to connect",n="Either the videomail server or your connection is down. Trying to reconnect every few seconds …";break;case"NO_VIDEO_FEED":h="No video feed found!",n="Your webcam is already used in another browser.",m.push(c.WEBCAM_PROBLEM);break;case c.STARTING_FAILED:h="Starting video failed",n="Most likely this happens when the webam is already active in another browser.",m.push(c.WEBCAM_PROBLEM);break;case"DevicesNotFoundError":h="No available webcam could be found",n="Looks like you do not have any webcam attached to your machine; or the one you plugged in is already used.",m.push(c.WEBCAM_PROBLEM);break;case c.NOT_READABLE_ERROR:case c.TRACK_START_ERROR:h="No access to webcam",n="A hardware error occurred which prevented access to your webcam.",m.push(c.WEBCAM_PROBLEM);break;case c.INVALID_STATE_ERROR:h="Invalid state",n="Video recording stream from your webcam already has finished.",m.push(c.WEBCAM_PROBLEM);break;case c.DOM_EXCEPTION:switch(t.code){case 8:h="Requested webcam not found",n="A webcam is needed but could not be found.",m.push(c.WEBCAM_PROBLEM);break;case 9:h="Security upgrade needed",n='Click <a href="'+("https:"+window.location.href.substring(window.location.protocol.length))+'">here</a> to switch to HTTPs which is more safe and enables encrypted videomail transfers.',m.push(c.BROWSER_PROBLEM);break;case 11:h="Invalid State",n="The object is in an invalid, unusable state.",m.push(c.BROWSER_PROBLEM);break;default:h="DOM Exception",n=f(t),m.push(c.BROWSER_PROBLEM)}break;case c.MEDIA_DEVICE_NOT_SUPPORTED:h="Media device not supported",n=f(t);break;default:var g=n;if(n&&"object"===(0,i.default)(n)&&(n=f(n)),!n&&g&&(n=g.message?g.message:"Inspected: "+u.default.inspect(g,{showHidden:!0})),t)if("string"==typeof t)h=t;else if(t.message&&(h=f(t.message)),t.explanation&&(n?n+=";<br/>"+f(t.explanation):n=f(t.explanation)),t.details){var v=f(t.details);n?n+=";<br/>"+v:n=v}h||(p&&(h=p),!n&&t&&(n=f(t)),f(h)===n&&(n=void 0))}var w=null;r.logger&&r.logger.getLines&&(w=r.logger.getLines()),y&&((h=new Error(h)).stack=y);var j="none";t&&(j="code="+(t.code?t.code:"undefined"),j+=", type="+(t.type?t.type:"undefined"),j+=", name="+(t.name?t.name:"undefined"),j+=", message="+(t.message?t.message:"undefined"));var E,x=new c(h,{explanation:n,logLines:w,client:b.getUsefulData(),url:window.location.href,siteName:r.siteName,code:j,stack:y}),_=!1;function S(e){return m.indexOf(e)>=0}return r.reportErrors&&(_="function"==typeof r.reportErrors?r.reportErrors(x):r.reportErrors),_&&(E=new o.default(r)),E&&E.reportError(x,(function(e){e&&console.error("Unable to report error",e)})),x.getClassList=function(){return m},x.removeDimensions=function(){return S(c.IOS_PROBLEM)||b.isMobile()},x.hideButtons=function(){return S(c.BROWSER_PROBLEM)||s.browserProblem||S(c.IOS_PROBLEM)},x.hideForm=function(){return S(c.IOS_PROBLEM)},x};n.default=c},{"./../resource":371,"./browser":373,"./pretty":378,"@babel/runtime/helpers/interopRequireDefault":1,"@babel/runtime/helpers/typeof":2,"core-js/modules/es.array.index-of.js":211,"core-js/modules/es.date.to-string.js":217,"core-js/modules/es.function.name.js":219,"core-js/modules/es.object.define-property.js":221,"core-js/modules/es.object.to-string.js":224,"core-js/modules/es.regexp.to-string.js":235,"create-error":272,util:359}],381:[function(e,t,n){"use strict";e("core-js/modules/es.object.define-property.js");var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,e("core-js/modules/es.array.is-array.js"),e("core-js/modules/es.array.for-each.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.function.name.js");var i=r(e("util")),o=r(e("hyperscript")),s=r(e("hidden")),a=r(e("contains")),u=r(e("./../events")),l=r(e("./../util/eventEmitter")),c=function(e,t){l.default.call(this,t,"Buttons");var n,r,i,c,f,d,p,h,y,m,b=this,g=t.debug;function v(e){e&&!Array.isArray(e)&&(e=[e]),e&&e.forEach((function(e){(0,s.default)(e,!0)}))}function w(e){e&&!Array.isArray(e)&&(e=[e]),e&&e.forEach((function(e){(0,s.default)(e,!1)}))}function j(e){var t=e&&!0;return e&&!Array.isArray(e)&&(e=[e]),e&&e.forEach((function(e){t=t&&e&&!(0,s.default)(e)})),t}function E(e){e&&!Array.isArray(e)&&(e=[e]),e&&e.forEach((function(e){e&&("INPUT"===e.tagName||"BUTTON"===e.tagName?e.disabled=!0:e.classList.add("disabled"))}))}function x(e){e&&!Array.isArray(e)&&(e=[e]),e&&e.forEach((function(e){e&&("INPUT"===e.tagName||"BUTTON"===e.tagName?e.disabled=!1:e.classList.remove("disabled"))}))}function _(e,t,n,r){return r&&E(e),n?e.type=n:e.type||(e.type="button"),!t&&v(e),e}function S(e,t){e.onclick=function(e){e&&e.preventDefault();try{t({event:e})}catch(e){b.emit(u.default.ERROR,e)}}}function A(e){var t,r;return e.id&&(t=document.getElementById(e.id)),t||(t=(0,o.default)("input#"+e.id,{type:"radio",name:e.name,value:e.value,checked:e.checked}),r=(0,o.default)("span.radioGroup",t,(0,o.default)("label",{htmlFor:e.id},e.label)),p&&(0,a.default)(n,p)?n.insertBefore(r,p):n.appendChild(r)),e.changeHandler&&(t.onchange=e.changeHandler),E(t),[t,r]}function R(e,r,i,s,u,l,c){var f,d=!(arguments.length>7&&void 0!==arguments[7])||arguments[7];return(f=u?document.getElementById(u):c?document.querySelector(c):n.querySelector("."+e))?f=_(f,s,l,d):(t.selectors.buttonClass&&(e+="."+t.selectors.buttonClass),(f=_(f=(0,o.default)("button."+e),s,l,d)).innerHTML=r,p&&(0,a.default)(n,p)?n.insertBefore(f,p):n.appendChild(f)),i&&S(f,i),f}function k(e){j(d)||e.paused||w(r),e.paused||(E(f),v(f)),t.enableAutoValidation||x(p)}function O(){v(r),v(d),i&&(w(i),x(i)),x(f),w(f)}function T(){E(d),e.beginWaiting(),e.recordAgain()}function I(){e.submit()}function M(t){E(r),e.record(t)}function P(){g("Buttons: initEvents()"),b.on(u.default.USER_MEDIA_READY,(function(e){e.switchingFacingMode||function(e){k(e),j(r)&&x(r),j(h)&&x(h),j(y)&&x(y),t.enableAutoValidation&&E(p)}(e)})).on(u.default.PREVIEW,(function(){v(r),v(f),E(h),E(y),w(d),x(d),t.enableAutoValidation||x(p)})).on(u.default.PAUSED,(function(){b.adjustButtonsForPause()})).on(u.default.RECORDING,(function(e){!function(e){e>1?O():(E(y),E(h),E(d),E(r))}(e)})).on(u.default.FIRST_FRAME_SENT,(function(){O()})).on(u.default.RESUMING,(function(){v(c),v(r),i&&(x(i),w(i))})).on(u.default.STOPPING,(function(){E(f),v(i),v(c)})).on(u.default.COUNTDOWN,(function(){E(r),E(y),E(h)})).on(u.default.SUBMITTING,(function(){E(p),E(d)})).on(u.default.RESETTING,(function(){E(p),b.reset()})).on(u.default.INVALID,(function(){t.enableAutoValidation&&E(p)})).on(u.default.VALID,(function(){t.enableAutoValidation&&x(p)})).on(u.default.SUBMITTED,(function(){E(f),E(d),E(r),E(p)})).on(u.default.HIDE,(function(){v(r),v(f),v(d),v(c)})).on(u.default.FORM_READY,(function(e){k(e)})).on(u.default.REPLAY_SHOWN,(function(){b.hide()})).on(u.default.GOING_BACK,(function(){v(d),w(r),w(p)})).on(u.default.ENABLING_AUDIO,(function(){E(r),E(h),E(y)})).on(u.default.DISABLING_AUDIO,(function(){E(r),E(h),E(y)})).on(u.default.STARTING_OVER,(function(){w(p)})).on(u.default.ERROR,(function(e){e.hideButtons&&e.hideButtons()&&t.adjustFormOnBrowserError&&b.hide()}))}this.enableSubmit=function(){x(p)},this.adjustButtonsForPause=function(){b.isCountingDown()||(i&&v(i),w(c),x(c),v(r),w(f),x(f))},this.reset=function(){t.debug("Buttons: reset()"),E(i),E(c),E(r),E(f),E(d)},this.isRecordAgainButtonEnabled=function(){return!d.disabled},this.isRecordButtonEnabled=function(){return!r.disabled},this.setSubmitButton=function(e){p=e},this.getSubmitButton=function(){return p},this.build=function(){(n=e.querySelector("."+t.selectors.buttonsClass))||(n=(0,o.default)("div."+t.selectors.buttonsClass),e.appendChild(n)),t.disableSubmit||(p?E(p):p=R(t.selectors.submitButtonClass,"Submit",null,!0,t.selectors.submitButtonId,"submit",t.selectors.submitButtonSelector,t.enableAutoValidation),!e.hasForm()&&p&&S(p,I)),r=R(t.selectors.recordButtonClass,t.text.buttons.record,M,!1),t.enablePause&&(i=R(t.selectors.pauseButtonClass,t.text.buttons.pause,e.pause,!1)),t.enablePause&&(c=R(t.selectors.resumeButtonClass,t.text.buttons.resume,e.resume,!1)),f=R(t.selectors.previewButtonClass,t.text.buttons.preview,e.stop,!1),d=R(t.selectors.recordAgainButtonClass,t.text.buttons.recordAgain,T,!1),t.audio&&t.audio.switch&&(y=A({id:"audioOffOption",name:"audio",value:"off",label:t.text.audioOff,checked:!t.isAudioEnabled(),changeHandler:function(){e.disableAudio()}}),h=A({id:"audioOnOption",name:"audio",value:"on",label:t.text.audioOn,checked:t.isAudioEnabled(),changeHandler:function(){e.enableAudio()}})),!m&&P(),m=!0},this.unload=function(){m=!1},this.hide=function(e){v(n),e&&e.deep&&(v(r),v(i),v(c),v(f),v(d),v(p))},this.show=function(){w(n)},this.isCountingDown=function(){return e.isCountingDown()}};i.default.inherits(c,l.default);n.default=c},{"./../events":369,"./../util/eventEmitter":375,"@babel/runtime/helpers/interopRequireDefault":1,contains:18,"core-js/modules/es.array.for-each.js":210,"core-js/modules/es.array.is-array.js":212,"core-js/modules/es.function.name.js":219,"core-js/modules/es.object.define-property.js":221,"core-js/modules/es.object.to-string.js":224,"core-js/modules/web.dom-collections.for-each.js":262,hidden:300,hyperscript:302,util:359}],382:[function(e,t,n){"use strict";e("core-js/modules/es.object.define-property.js");var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,e("core-js/modules/es.array.for-each.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.function.name.js"),e("core-js/modules/es.function.bind.js");var i=r(e("document-visibility")),o=r(e("element-closest")),s=r(e("hidden")),a=r(e("insert-css")),u=r(e("util")),l=r(e("../../styles/css/main.min.css.js")),c=r(e("../events")),f=r(e("../resource")),d=r(e("../util/eventEmitter")),p=r(e("../util/videomailError")),h=r(e("./buttons")),y=r(e("./dimension")),m=r(e("./form")),b=r(e("./optionsWrapper")),g=r(e("./visuals"));(0,o.default)(window);var v=function(e){d.default.call(this,e,"Container");var t,n,r,o=this,u=(0,i.default)(),v=new g.default(this,e),w=new h.default(this,e),j=new f.default(e),E=document&&document.querySelector&&document.querySelector("html"),x=e.debug,_=!1,S=!1,A=!1;function R(){return"FORM"===t.tagName?t:e.selectors.formId?document.getElementById(e.selectors.formId):t.closest("form")}function k(){x("Container: initEvents()"),window.addEventListener("beforeunload",(function(e){o.unload(e)})),e.playerOnly||u.onChange((function(t){n&&(t?(e.isAutoPauseEnabled()&&o.isCountingDown()&&o.resume(),o.emit(c.default.VISIBLE)):(e.isAutoPauseEnabled()&&(o.isCountingDown()||o.isRecording())&&o.pause("document invisible"),o.emit(c.default.INVISIBLE)))})),e.enableSpace&&(e.playerOnly||window.addEventListener("keypress",(function(t){var n=t.target.tagName;t.target.isContentEditable||"true"===t.target.contentEditable||!0===t.target.contentEditable||"INPUT"===n||"TEXTAREA"===n||32===(t.keyCode?t.keyCode:t.which)&&(t.preventDefault(),e.enablePause?v.pauseOrResume():v.recordOrStop())}))),o.on(c.default.ERROR,(function(n){!function(t){_=!0,t.stack?e.logger.error(t.stack):e.logger.error(t),e.displayErrors?v.error(t):v.reset()}(n),T(n),n.removeDimensions&&n.removeDimensions()&&(t.style.width="auto")})),e.playerOnly||o.on(c.default.LOADED_META_DATA,(function(){O()}))}function O(){var n=v.getRecorderWidth(!0);if(n<1)throw p.default.create("Recorder width cannot be less than 1!",e);t.style.width=n+"px"}function T(e){v.unload(e),w.unload(),o.endWaiting()}function I(t,n,r,i){r&&""!==r||(r=document.baseURI),n&&(t[e.selectors.aliasInputName]=n.videomail.alias,e.submitWithVideomail&&(t.videomail=n.videomail)),j.form(t,r,i)}function M(e,t,n,r,i){o.endWaiting(),e?o.emit(c.default.ERROR,e):(S=!0,r&&i&&i.body&&Object.keys(i.body).forEach((function(e){r[e]=i.body[e]})),o.emit(c.default.SUBMITTED,n,r||i),i&&"text/html"===i.type&&i.text&&(document.body.innerHTML=i.text))}function P(e){return e&&"POST"===e.toUpperCase()}this.addPlayerDimensions=function(e,t){try{return e.playerHeight=this.calculateHeight({responsive:!0,videoWidth:e.width,ratio:e.height/e.width},t),e.playerWidth=this.calculateWidth({responsive:!0,videoHeight:e.playerHeight,ratio:e.height/e.width}),e}catch(e){o.emit(c.default.ERROR,e)}},this.limitWidth=function(n){return y.default.limitWidth(t,n,e)},this.limitHeight=function(t){return y.default.limitHeight(t,e)},this.calculateWidth=function(t){return y.default.calculateWidth(b.default.merge(e,t,!0))},this.calculateHeight=function(n,r){return r||(r=t||document.body),y.default.calculateHeight(r,b.default.merge(e,n,!0))},this.areVisualsHidden=function(){return v.isHidden()},this.hasElement=function(){return!!t},this.build=function(){try{(t=document.getElementById(e.selectors.containerId))&&(e.insertCss&&(0,a.default)(l.default,{prepend:!0}),!n&&k(),function(){if(e.hasDefinedWidth()&&e.video.width%2!=0)throw p.default.create("Width must be divisible by two.",e);if(e.hasDefinedHeight()&&e.video.height%2!=0)throw p.default.create("Height must be divisible by two.",e)}(),O(),e.playerOnly||function(){var t=R();if(t){x("Container: buildForm()");var n=(r=new m.default(o,t,e)).findSubmitButton();n&&w.setSubmitButton(n),r.build()}}(),x("Container: buildChildren()"),t.classList?(t.classList.add("videomail"),e.playerOnly||w.build(),v.build()):o.emit(c.default.ERROR,p.default.create("Sorry, your browser is too old!",e)),_?x("Container: building failed due to an error."):(x("Container: built."),n=!0,o.emit(c.default.BUILT)))}catch(e){if(!v.isNotifierBuilt())throw e;o.emit(c.default.ERROR,e)}},this.getSubmitButton=function(){return w.getSubmitButton()},this.querySelector=function(e){return t.querySelector(e)},this.beginWaiting=function(){E.classList&&E.classList.add("wait")},this.endWaiting=function(){E.classList&&E.classList.remove("wait")},this.appendChild=function(e){t.appendChild(e)},this.insertBefore=function(e,n){t.insertBefore(e,n)},this.unload=function(e){x("Container: unload()",e);try{T(e),this.removeAllListeners(),n=S=!1}catch(e){o.emit(c.default.ERROR,e)}},this.show=function(){if(t&&((0,s.default)(t,!1),v.show(),!_)){var e=o.isPaused();e&&w.adjustButtonsForPause(),w.show(),o.isReplayShown()?o.emit(c.default.PREVIEW):o.emit(c.default.FORM_READY,{paused:e})}},this.hide=function(){x("Container: hide()"),_=!1,this.isRecording()&&this.pause(),v.hide(),S&&(w.hide(),(0,s.default)(t,!0))},this.startOver=function(e){try{o.emit(c.default.STARTING_OVER),S=!1,r.show(),v.back(e,(function(){e&&e.keepHidden?o.enableForm():o.show(e)}))}catch(e){o.emit(c.default.ERROR,e)}},this.showReplayOnly=function(){_=!1,this.isRecording()&&this.pause(),v.showReplayOnly(),S&&w.hide()},this.isNotifying=function(){return v.isNotifying()},this.isPaused=function(){return v.isPaused()},this.pause=function(e){v.pause(e)},this.validate=function(t){var n,i=!0;if(e.enableAutoValidation?t?i=t:o.isNotifying()?i=!1:v.isConnected()?i=v.isUserMediaLoaded()||v.isReplayShown():v.isConnecting()&&(i=!1):(i=!1,A=!0),i){this.emit(c.default.VALIDATING);var s,a=v.validate()&&w.isRecordAgainButtonEnabled();if(r){if(n=r.validate())this.areVisualsHidden()||a||((S||this.isReady()||this.isRecording()||this.isPaused()||this.isCountingDown())&&(n=!1),n||(s="Video is not recorded"));else{var u=r.getInvalidElement();s=u?"Form input named "+u.name+' is invalid. It has the value: "'+u.value+'"':"Form input(s) are invalid"}if(n){var l,f,d,p=r.getRecipients(),h="to"in p,y="cc"in p,m="bcc"in p,b=(null===(l=p.to)||void 0===l?void 0:l.length)>0,g=(null===(f=p.cc)||void 0===f?void 0:f.length)>0,j=(null===(d=p.bcc)||void 0===d?void 0:d.length)>0;h?b||(y&&m?g||j||(n=!1):y?g||(n=!1):m?j||(n=!1):s="Please configure the form to have at least one recipient."):y&&(g||m&&(j||(n=!1))),n||(s="Please enter at least one recipient.")}}else n=a;n?this.emit(c.default.VALID):this.emit(c.default.INVALID,s),A=n}return n},this.disableForm=function(e){r&&r.disable(e)},this.enableForm=function(e){r&&r.enable(e)},this.hasForm=function(){return!!r},this.isReady=function(){return w.isRecordButtonEnabled()},this.submitAll=function(t,n,i){var s=P(n);function a(){o.beginWaiting(),o.disableForm(!0),o.emit(c.default.SUBMITTING)}!!t[e.selectors.keyInputName]?(a(),function(e,t,n){var i=r.transformFormData(e);P(t)||!t?(i.recordingStats=v.getRecordingStats(),i.width=v.getRecorderWidth(!0),i.height=v.getRecorderHeight(!0),navigator.connection&&(i.connection={downlink:navigator.connection.downlink+" Mbit/s",effectiveType:navigator.connection.effectiveType,rtt:navigator.connection.rtt,type:navigator.connection.type}),j.post(i,n)):function(e){return e&&"PUT"===e.toUpperCase()}(t)&&j.put(i,n)}(t,n,(function(e,n,r){e?M(e,0,n,r):s?I(t,r,i,(function(e,t){M(e,0,n,r,t)})):M(null,0,n,r)}))):e.enableAutoSubmission&&(a(),I(t,null,i,(function(e,t){M(e,0,null,null,t)})))},this.isBuilt=function(){return n},this.isReplayShown=function(){return v.isReplayShown()},this.isDirty=function(){var e=!1;return r&&(v.isRecorderUnloaded()?e=!1:(this.isReplayShown()||this.isPaused())&&(e=!0)),e},this.getReplay=function(){return v.getReplay()},this.isOutsideElementOf=function(e){return e.parentNode!==t&&e!==t},this.hideForm=function(e){r&&r.hide(),w&&w.hide(e)},this.loadForm=function(e){r&&(r.loadVideomail(e),this.validate())},this.enableAudio=function(){e.setAudioEnabled(!0),this.emit(c.default.ENABLING_AUDIO)},this.disableAudio=function(){e.setAudioEnabled(!1),this.emit(c.default.DISABLING_AUDIO)},this.submit=function(){A&&r&&r.doTheSubmit()},this.isCountingDown=v.isCountingDown.bind(v),this.isRecording=v.isRecording.bind(v),this.record=v.record.bind(v),this.resume=v.resume.bind(v),this.stop=v.stop.bind(v),this.recordAgain=v.recordAgain.bind(v)};u.default.inherits(v,d.default);n.default=v},{"../../styles/css/main.min.css.js":397,"../events":369,"../resource":371,"../util/eventEmitter":375,"../util/videomailError":380,"./buttons":381,"./dimension":383,"./form":384,"./optionsWrapper":385,"./visuals":386,"@babel/runtime/helpers/interopRequireDefault":1,"core-js/modules/es.array.for-each.js":210,"core-js/modules/es.function.bind.js":218,"core-js/modules/es.function.name.js":219,"core-js/modules/es.object.define-property.js":221,"core-js/modules/es.object.keys.js":223,"core-js/modules/es.object.to-string.js":224,"core-js/modules/web.dom-collections.for-each.js":262,"document-visibility":277,"element-closest":279,hidden:300,"insert-css":306,util:359}],383:[function(e,t,n){"use strict";e("core-js/modules/es.object.define-property.js");var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,e("core-js/modules/es.parse-int.js");var i=r(e("number-is-integer")),o=r(e("./../util/videomailError"));function s(e,t){if(t.hasDefinedHeight()&&(e=e?Math.min(t.video.height,e):t.video.height),(0,i.default)(e)&&e<1)throw o.default.create("Got a video height less than 1 ("+e+") while figuring out the minimum!",t);return e}n.default={limitWidth:function(e,t,n){var r,s=function(e){var t=0,n=e.getBoundingClientRect();return n&&(t=n.right-n.left),t<1&&(t=(n=document.body.getBoundingClientRect()).right-n.left),t}(e);if(r=t?s>0&&s<t?s:t:s,(0,i.default)(r)&&r<1)throw o.default.create("Limited width cannot be less than 1!",n);return r},limitHeight:function(e,t){if((0,i.default)(e)&&e<1)throw o.default.create("Passed limit-height argument cannot be less than 1!",t);var n=Math.min(e,document.documentElement.clientHeight);if(n<1)throw o.default.create("Limited height cannot be less than 1!",t);return n},calculateWidth:function(e){var t=e.videoHeight||null,n=e.ratio||e.getRatio();if(t=s(t,e),e.responsive&&(t=this.limitHeight(t,e)),(0,i.default)(t)&&t<1)throw o.default.create("Height cannot be smaller than 1 when calculating width.",e);var r=parseInt(t/n);if(r<1)throw o.default.create("Calculated width cannot be smaller than 1!",e);return r},calculateHeight:function(e,t){var n,r=t.videoWidth||null,a=t.ratio||t.getRatio();if(t.hasDefinedWidth()&&(r=t.video.width),(0,i.default)(r)&&r<1)throw o.default.create("Unable to calculate height when width is less than 1.",t);if(t.responsive&&(r=this.limitWidth(e,r,t)),r&&(n=parseInt(r*a)),(0,i.default)(n)&&n<1)throw o.default.create("Just calculated a height less than 1 which is wrong.",t);return s(n,t)}}},{"./../util/videomailError":380,"@babel/runtime/helpers/interopRequireDefault":1,"core-js/modules/es.object.define-property.js":221,"core-js/modules/es.parse-int.js":226,"number-is-integer":317}],384:[function(e,t,n){"use strict";e("core-js/modules/es.object.define-property.js");var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/es.array.for-each.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.function.name.js"),e("core-js/modules/web.timers.js"),e("core-js/modules/es.function.bind.js");var i=r(e("get-form-data")),o=r(e("hidden")),s=r(e("hyperscript")),a=r(e("util")),u=r(e("../events")),l=r(e("../util/eventEmitter")),c=r(e("../util/videomailError"));function f(e){return e.replace(/(^[,\s]+)|([,\s]+$)/g,"")}var d=function(e,t,n){l.default.call(this,n,"Form");var r,a=this;function d(){return(0,i.default)(t,{includeDisabled:!0})}function p(e,n){for(var r,i=t.elements.length,o=0;o<i;o++)(n||!n&&("BUTTON"!==(r=t.elements[o]).tagName&&"submit"!==r.type))&&(t.elements[o].disabled=e)}function h(){return t.querySelectorAll("input, textarea")}function y(){return t.querySelectorAll("select")}this.transformFormData=function(e){var t={subject:n.selectors.subjectInputName,from:n.selectors.fromInputName,to:n.selectors.toInputName,cc:n.selectors.ccInputName,bcc:n.selectors.bccInputName,body:n.selectors.bodyInputName,key:n.selectors.keyInputName,parentKey:n.selectors.parentKeyInputName,sendCopy:n.selectors.sendCopyInputName},r={};return Object.keys(t).forEach((function(n){var i=t[n];i in e&&(r[n]=e[i])})),r.from&&(r.from=f(r.from)),r.to&&(r.to=f(r.to)),r.cc&&(r.cc=f(r.cc)),r.bcc&&(r.bcc=f(r.bcc)),r},this.getRecipients=function(){var e=this.transformFormData(d()),t={};return"to"in e&&(t.to=e.to),"cc"in e&&(t.cc=e.cc),"bcc"in e&&(t.bcc=e.bcc),t},this.loadVideomail=function(e){for(var r,i,o=t.elements.length,s=0;s<o;s++)e[i=(r=t.elements[s]).name]&&(r.value=e[i]),i!==n.selectors.subjectInputName&&i!==n.selectors.bodyInputName||(r.disabled=!0);t.setAttribute("method","put")},this.disable=function(e){p(!0,e)},this.enable=function(e){p(!1,e)},this.build=function(){if(n.enableAutoValidation){for(var i,l=h(),f=0,d=l.length;f<d;f++)"radio"===(i=l[f]).type?i.addEventListener("change",(function(){e.validate()})):i.addEventListener("input",(function(){setTimeout((function(){e.validate()}),0)}));for(var p=y(),m=0,b=p.length;m<b;m++)p[m].addEventListener("change",(function(){e.validate()}))}(r=t.querySelector('input[name="'+n.selectors.keyInputName+'"]'))||(r=(0,s.default)("input",{name:n.selectors.keyInputName,type:"hidden"}),t.appendChild(r)),this.on(u.default.PREVIEW,(function(e){e||r.value?e&&(r.value=e):a.emit(u.default.ERROR,c.default.create("Videomail key for preview is missing!",n))})),this.on(u.default.GOING_BACK,(function(){r.value=null})),this.on(u.default.ERROR,(function(e){var r;e.hideForm&&e.hideForm()&&n.adjustFormOnBrowserError?function(){for(var e=t.elements.length,n=0;n<e;n++)(0,o.default)(t.elements[n],!0);(0,o.default)(t,!0)}():e.hideButtons&&e.hideButtons()&&n.adjustFormOnBrowserError&&(r=a.findSubmitButton(),(0,o.default)(r,!0))})),this.on(u.default.BUILT,(function(){e.getSubmitButton().addEventListener("click",a.doTheSubmit.bind(a))}))},this.doTheSubmit=function(n){return n&&n.preventDefault(),e.hasElement()&&e.submitAll(d(),t.getAttribute("method"),t.getAttribute("action")),!1},this.getInvalidElement=function(){for(var e=h(),t=0,n=e.length;t<n;t++)if(!e[t].validity.valid)return e[t];for(var r=y(),i=0,o=r.length;i<o;i++)if(!r[i].validity.valid)return r[i];return null},this.validate=function(){return t.checkValidity()},this.findSubmitButton=function(){return t.querySelector("[type='submit']")},this.hide=function(){t&&(0,o.default)(t,!0)},this.show=function(){t&&(0,o.default)(t,!1)}};a.default.inherits(d,l.default);n.default=d},{"../events":369,"../util/eventEmitter":375,"../util/videomailError":380,"@babel/runtime/helpers/interopRequireDefault":1,"core-js/modules/es.array.for-each.js":210,"core-js/modules/es.function.bind.js":218,"core-js/modules/es.function.name.js":219,"core-js/modules/es.object.define-property.js":221,"core-js/modules/es.object.keys.js":223,"core-js/modules/es.object.to-string.js":224,"core-js/modules/es.regexp.exec.js":234,"core-js/modules/es.string.replace.js":237,"core-js/modules/web.dom-collections.for-each.js":262,"core-js/modules/web.timers.js":266,"get-form-data":287,hidden:300,hyperscript:302,util:359}],385:[function(e,t,n){"use strict";e("core-js/modules/es.object.define-property.js");var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("deepmerge"));n.default={addFunctions:function(e){var t=e.audio&&e.audio.enabled;e.hasDefinedHeight=function(){return this.video.height&&"auto"!==this.video.height},e.hasDefinedWidth=function(){return this.video.width&&"auto"!==this.video.width},e.hasDefinedDimension=function(){return this.hasDefinedWidth()||this.hasDefinedHeight()},e.hasDefinedDimensions=function(){return this.hasDefinedWidth()&&this.hasDefinedHeight()},e.getRatio=function(){var e=1,t=this.videoHeight&&this.videoWidth;return this.hasDefinedDimensions()?e=t&&(this.videoHeight<this.video.height||this.videoWidth<this.video.width)?this.videoHeight/this.videoWidth:this.video.height/this.video.width:t&&(e=this.videoHeight/this.videoWidth),e},e.isAudioEnabled=function(){return t},e.setAudioEnabled=function(e){t=e},e.isAutoPauseEnabled=function(){return this.enableAutoPause&&this.enablePause}},merge:function(e,t){var n=(0,i.default)(e,t,{arrayMerge:function(e,t){return t}});return this.addFunctions(n),n}}},{"@babel/runtime/helpers/interopRequireDefault":1,"core-js/modules/es.object.define-property.js":221,deepmerge:273}],386:[function(e,t,n){"use strict";e("core-js/modules/es.object.define-property.js");var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,e("core-js/modules/es.function.bind.js");var i=r(e("hidden")),o=r(e("hyperscript")),s=r(e("util")),a=r(e("../events")),u=r(e("../util/eventEmitter")),l=r(e("./visuals/inside/recorderInsides")),c=r(e("./visuals/notifier")),f=r(e("./visuals/recorder")),d=r(e("./visuals/replay")),p=function(e,t){u.default.call(this,t,"Visuals");var n,r,s=this,p=new d.default(this,t),h=new f.default(this,p,t),y=new l.default(this,t),m=new c.default(this,t),b=t.debug;function g(){var r;b("Visuals: buildChildren()"),(r=e.querySelector("noscript"))||((r=(0,o.default)("noscript")).innerHTML="Please enable Javascript",n.appendChild(r)),t.playerOnly||(m.build(),y.build()),p.build(),b("Visuals: built.")}function v(){t.playerOnly||(b("Visuals: initEvents()"),s.on(a.default.USER_MEDIA_READY,(function(){r=!0,s.endWaiting(),e.enableForm(!1)})).on(a.default.PREVIEW,(function(){s.endWaiting()})).on(a.default.BLOCKING,(function(n){(n.hideForm||t.adjustFormOnBrowserError)&&e.disableForm(!0)})).on(a.default.PREVIEW_SHOWN,(function(){e.validate(!0)})).on(a.default.LOADED_META_DATA,(function(){w()})).on(a.default.ERROR,(function(e){e.removeDimensions&&e.removeDimensions()&&(n.style.width="auto",n.style.height="auto")})))}function w(){n.style.width=s.getRecorderWidth(!0)+"px",n.style.height=s.getRecorderHeight(!0)+"px"}function j(){return!s.isNotifying()&&!p.isShown()&&!s.isCountingDown()}this.getRatio=function(){return n.clientWidth?n.clientHeight/n.clientWidth:0},this.isCountingDown=function(){return y.isCountingDown()},this.build=function(){if(!(n=e.querySelector("."+t.selectors.visualsClass))){n=(0,o.default)("div."+t.selectors.visualsClass);var i=e.querySelector("."+t.selectors.buttonsClass);i&&!e.isOutsideElementOf(i)?e.insertBefore(n,i):e.appendChild(n)}n.classList.add("visuals"),w(),!r&&v(),g(),s.parentNode=n.parentNode,r=!0},this.querySelector=function(e){return n&&n.querySelector(e)},this.appendChild=function(e){n&&n.appendChild(e)},this.removeChild=function(e){n.removeChild(e)},this.reset=function(){this.endWaiting(),h.reset()},this.beginWaiting=function(){e.beginWaiting()},this.endWaiting=function(){e.endWaiting()},this.stop=function(e){h.stop(e),y.hidePause()},this.back=function(e,t){!t&&e&&(t=e,e={}),p.hide(),m.hide(),e&&e.keepHidden?(h.hide(),t&&t()):h.back(t)},this.recordAgain=function(){this.back((function(){s.once(a.default.USER_MEDIA_READY,(function(){s.record()}))}))},this.unload=function(e){try{h.unload(e),y.unload(e),p.unload(e),r=!1}catch(e){this.emit(a.default.ERROR,e)}},this.isNotifying=function(){return m.isVisible()},this.isReplayShown=function(){return p.isShown()},this.pause=function(e){h.pause(e),y.showPause()},this.resume=function(){y.isCountingDown()?y.resumeCountdown():h.resume(),y.hidePause()},this.pauseOrResume=function(){j.call(this)&&(this.isRecording()?this.pause():h.isPaused()?this.resume():h.isReady()&&this.record())},this.recordOrStop=function(){j()&&(this.isRecording()?this.stop():h.isReady()&&this.record())},this.record=function(){t.video.countdown?(this.emit(a.default.COUNTDOWN),y.startCountdown(h.record.bind(h))):h.record()},this.getRecorder=function(){return h},this.getReplay=function(){return p},this.validate=function(){return h.validate()&&this.isReplayShown()},this.getRecordingStats=function(){return h.getRecordingStats()},this.getAudioSampleRate=function(){return h.getAudioSampleRate()},this.isPaused=function(){return h.isPaused()},this.error=function(e){m.error(e)},this.hide=function(){n&&((0,i.default)(n,!0),this.emit(a.default.HIDE))},this.isHidden=function(){return!r||(n?(0,i.default)(n):void 0)},this.showVisuals=function(){n&&(0,i.default)(n,!1)},this.show=function(){!this.isReplayShown()&&n&&h.build(),this.showVisuals()},this.showReplayOnly=function(){!this.isReplayShown()&&p.show(),this.show(),h.hide(),m.hide()},this.isRecorderUnloaded=function(){return h.isUnloaded()},this.isConnecting=function(){return h.isConnecting()},this.getRecorderWidth=function(e){return h.getRecorderWidth(e)},this.getRecorderHeight=function(e){return h.getRecorderHeight(e)},this.limitWidth=function(n){return e.limitWidth(n,t)},this.limitHeight=function(t){return e.limitHeight(t)},this.calculateWidth=function(t){return e.calculateWidth(t)},this.calculateHeight=function(t){return e.calculateHeight(t)},this.getReplay=function(){return p},this.getBoundingClientRect=function(){return n&&n.getBoundingClientRect()},this.checkTimer=function(e){y.checkTimer(e)},this.isNotifierBuilt=function(){return m&&m.isBuilt()},this.isReplayShown=p.isShown.bind(p),this.hideReplay=p.hide.bind(p),this.hideRecorder=h.hide.bind(h),this.isRecording=h.isRecording.bind(h),this.isUserMediaLoaded=h.isUserMediaLoaded.bind(h),this.isConnected=h.isConnected.bind(h)};s.default.inherits(p,u.default);n.default=p},{"../events":369,"../util/eventEmitter":375,"./visuals/inside/recorderInsides":392,"./visuals/notifier":393,"./visuals/recorder":394,"./visuals/replay":395,"@babel/runtime/helpers/interopRequireDefault":1,"core-js/modules/es.function.bind.js":218,"core-js/modules/es.object.define-property.js":221,hidden:300,hyperscript:302,util:359}],387:[function(e,t,n){"use strict";e("core-js/modules/es.object.define-property.js");var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){var n,r,s,a,u=this;function l(e){a||(t.debug("Countdown",s),--s<1?function(e){u.unload(),u.hide(),setTimeout((function(){e()}),0)}(e):n.innerHTML=s)}this.start=function(e){n.innerHTML=s=t.video.countdown,this.show(),r=setInterval(l.bind(this,e),950)},this.pause=function(){a=!0},this.resume=function(){a=!1},this.build=function(){(n=e.querySelector(".countdown"))?this.hide():(n=(0,i.default)("p.countdown"),this.hide(),e.appendChild(n))},this.show=function(){(0,o.default)(n,!1)},this.isCountingDown=function(){return!!r},this.unload=function(){clearInterval(r),a=!1,r=null},this.hide=function(){(0,o.default)(n,!0),this.unload()}},e("core-js/modules/web.timers.js"),e("core-js/modules/es.function.bind.js");var i=r(e("hyperscript")),o=r(e("hidden"))},{"@babel/runtime/helpers/interopRequireDefault":1,"core-js/modules/es.function.bind.js":218,"core-js/modules/es.object.define-property.js":221,"core-js/modules/web.timers.js":266,hidden:300,hyperscript:302}],388:[function(e,t,n){"use strict";e("core-js/modules/es.object.define-property.js");var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){a.default.call(this,t,"Facing Mode");var n,r=this;this.build=function(){(n=e.querySelector(".facingMode"))?this.hide():((n=(0,i.default)("button.facingMode")).innerHTML="⤾",n.onclick=function(e){e&&e.preventDefault();try{r.emit(s.default.SWITCH_FACING_MODE)}catch(e){r.emit(s.default.ERROR,e)}},this.hide(),e.appendChild(n)),r.on(s.default.ERROR,(function(){r.hide()}))},this.hide=function(){(0,o.default)(n,!0)},this.show=function(){(0,o.default)(n,!1)}};var i=r(e("hyperscript")),o=r(e("hidden")),s=r(e("./../../../../events")),a=r(e("./../../../../util/eventEmitter"))},{"./../../../../events":369,"./../../../../util/eventEmitter":375,"@babel/runtime/helpers/interopRequireDefault":1,"core-js/modules/es.object.define-property.js":221,hidden:300,hyperscript:302}],389:[function(e,t,n){"use strict";e("core-js/modules/es.object.define-property.js");var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){if(!t.text.pausedHeader)throw s.default.create("Paused header cannot be empty",t);var n,r,a;function u(){return t.text.pausedHint}this.build=function(){n=e.querySelector(".paused"),(r=e.querySelector(".pausedHeader"))?(this.hide(),r.innerHTML=t.text.pausedHeader,u()&&(a.innerHTML=t.text.pausedHint)):(n=(0,i.default)("div.paused"),r=(0,i.default)("p.pausedHeader"),this.hide(),r.innerHTML=t.text.pausedHeader,n.appendChild(r),u()&&(a=e.querySelector(".pausedHint"),(a=(0,i.default)("p.pausedHint")).innerHTML=t.text.pausedHint,n.appendChild(a)),e.appendChild(n))},this.hide=function(){(0,o.default)(n,!0)},this.show=function(){(0,o.default)(n,!1)}};var i=r(e("hyperscript")),o=r(e("hidden")),s=r(e("./../../../../util/videomailError"))},{"./../../../../util/videomailError":380,"@babel/runtime/helpers/interopRequireDefault":1,"core-js/modules/es.object.define-property.js":221,hidden:300,hyperscript:302}],390:[function(e,t,n){"use strict";e("core-js/modules/es.object.define-property.js");var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var t;this.build=function(){(t=e.querySelector(".recordNote"))?this.hide():(t=(0,i.default)("p.recordNote"),this.hide(),e.appendChild(t))},this.stop=function(){this.hide(),t.classList.remove("near"),t.classList.remove("nigh")},this.setNear=function(){t.classList.add("near")},this.setNigh=function(){t.classList.add("nigh")},this.hide=function(){(0,o.default)(t,!0)},this.show=function(){(0,o.default)(t,!1)}};var i=r(e("hyperscript")),o=r(e("hidden"))},{"@babel/runtime/helpers/interopRequireDefault":1,"core-js/modules/es.object.define-property.js":221,hidden:300,hyperscript:302}],391:[function(e,t,n){"use strict";e("core-js/modules/es.object.define-property.js");var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t,n){var r,s,a,u=!1,l=!1;function c(e,t){return e>=n.video.limitSeconds*t}function f(){var e,i=parseInt(a/60,10),o=a-60*i;if(!u||!l){var s=n.video.limitSeconds-a;!function(e){return!(u||!c(e,.6)||(u=!0,0))}(s)?function(e){return!(l||!c(e,.8)||(l=!0,0))}(s)&&(t.setNigh(),r.classList.add("nigh"),n.debug("End is nigh, "+a+" seconds to go")):(t.setNear(),r.classList.add("near"),n.debug("End is near, "+a+" seconds to go"))}r.innerHTML=i+":"+((e=o)<10?"0"+e:e)}function d(){(0,o.default)(r,!0)}function p(){return n.video.limitSeconds}this.check=function(t){var n=p()-Math.floor(t.intervalSum/1e3);n!==a&&(a=n,f(),a<1&&e.stop(!0))},this.start=function(){a=p(),u=l=!1,s=!0,f(),r.classList.remove("near"),r.classList.remove("nigh"),(0,o.default)(r,!1)},this.pause=function(){t.hide()},this.resume=function(){t.show()},this.stop=function(){null!==a&&s&&(n.debug("Stopping record timer. Was recording for about ~"+(p()-a)+" seconds."),d(),t.stop(),a=null,s=!1)},this.build=function(){(r=e.querySelector(".recordTimer"))?d():(r=(0,i.default)("p.recordTimer"),d(),e.appendChild(r))}},e("core-js/modules/es.parse-int.js");var i=r(e("hyperscript")),o=r(e("hidden"))},{"@babel/runtime/helpers/interopRequireDefault":1,"core-js/modules/es.object.define-property.js":221,"core-js/modules/es.parse-int.js":226,hidden:300,hyperscript:302}],392:[function(e,t,n){"use strict";e("core-js/modules/es.object.define-property.js");var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("util")),o=r(e("./../../../events")),s=r(e("./../../../util/eventEmitter")),a=r(e("./../../../util/browser")),u=r(e("./recorder/countdown")),l=r(e("./recorder/pausedNote")),c=r(e("./recorder/recordNote")),f=r(e("./recorder/recordTimer")),d=r(e("./recorder/facingMode")),p=function(e,t){s.default.call(this,t,"RecorderInsides");var n,r,i,p,h=this,y=t.debug,m=new c.default(e),b=new f.default(e,m,t),g=new a.default(t);function v(){h.hidePause(),h.hideCountdown(),b.stop(),p&&p.hide()}function w(){y("RecorderInsides: initEvents()"),h.on(o.default.USER_MEDIA_READY,(function(){p&&p.show()})).on(o.default.RECORDING,(function(){b.start()})).on(o.default.RESUMING,(function(){b.resume()})).on(o.default.STOPPING,(function(){b.stop()})).on(o.default.PAUSED,(function(){h.isCountingDown()?n.pause():b.pause()})).on(o.default.RESETTING,v).on(o.default.HIDE,(function(){h.hideCountdown()}))}t.video.countdown&&(n=new u.default(e,t)),t.video.facingModeButton&&g.isMobile()&&(p=new d.default(e,t)),t.enablePause&&(r=new l.default(e,t)),this.build=function(){y("RecorderInsides: build()"),n&&n.build(),r&&r.build(),p&&p.build(),m.build(),b.build(),!i&&w(),i=!0},this.unload=function(){n&&n.unload(),i=!1},this.showPause=function(){r&&r.show()},this.hidePause=function(){r&&r.hide()},this.hideCountdown=function(){n&&n.hide()},this.startCountdown=function(e){n&&n.start(e)},this.resumeCountdown=function(){n&&n.resume()},this.isCountingDown=function(){return n&&n.isCountingDown()},this.checkTimer=function(e){b.check(e)}};i.default.inherits(p,s.default);n.default=p},{"./../../../events":369,"./../../../util/browser":373,"./../../../util/eventEmitter":375,"./recorder/countdown":387,"./recorder/facingMode":388,"./recorder/pausedNote":389,"./recorder/recordNote":390,"./recorder/recordTimer":391,"@babel/runtime/helpers/interopRequireDefault":1,"core-js/modules/es.object.define-property.js":221,util:359}],393:[function(e,t,n){"use strict";e("core-js/modules/es.object.define-property.js");var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,e("core-js/modules/web.timers.js"),e("core-js/modules/es.date.to-string.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js"),e("core-js/modules/es.array.for-each.js"),e("core-js/modules/web.dom-collections.for-each.js");var i=r(e("util")),o=r(e("hyperscript")),s=r(e("hidden")),a=r(e("./../../util/eventEmitter")),u=r(e("./../../events")),l=function(e,t){a.default.call(this,t,"Notifier");var n,r,i,l,c,f,d=this,p=t&&t.debug;function h(){p("Notifier: initEvents()"),d.on(u.default.CONNECTING,(function(){d.notify("Connecting …")})).on(u.default.LOADING_USER_MEDIA,(function(){d.notify("Loading webcam …")})).on(u.default.USER_MEDIA_READY,(function(){d.hide()})).on(u.default.LOADED_META_DATA,(function(){n.style.width=e.getRecorderWidth(!0)+"px",n.style.height=e.getRecorderHeight(!0)+"px"})).on(u.default.PREVIEW,(function(){d.hide()})).on(u.default.STOPPING,(function(n){!function(n){var r="";e.beginWaiting(),n&&(p("Limit reached"),r+=t.text.limitReached+".<br/>"),r+=t.text.sending+" …",d.notify(r,null,{stillWait:!0,entertain:t.notifier.entertain})}(n)})).on(u.default.PROGRESS,(function(e,n){!function(e,n){var r;t.isAudioEnabled()?(r="Video: "+e,n&&(r+=", Audio: "+n)):r=e,d.setExplanation(r)}(e,n)})).on(u.default.BEGIN_VIDEO_ENCODING,(function(){!function(){e.beginWaiting();var n=t.text.encoding+" …";d.notify(n,null,{stillWait:!0,entertain:t.notifier.entertain}),b()}()}))}function y(){if(t.notifier.entertain){if(!c){var e=Math.floor(Math.random()*t.notifier.entertainLimit+1);n.className="notifier entertain "+t.notifier.entertainClass+e,l=setTimeout(y,t.notifier.entertainInterval),c=!0}}else m()}function m(){n&&n.classList.remove("entertain"),clearTimeout(l),l=null,c=!1}function b(){i&&(i.innerHTML=null,(0,s.default)(i,!0))}this.error=function(e){var n=e.message?e.message.toString():e.toString(),r=e.explanation?e.explanation.toString():null;n||t.debug("Weird empty message generated for error",e),d.notify(n,r,{blocking:!0,problem:!0,hideForm:e.hideForm&&e.hideForm(),classList:e.getClassList&&e.getClassList(),removeDimensions:e.removeDimensions&&e.removeDimensions()})},this.setExplanation=function(e){i||(i=(0,o.default)("p"),n?n.appendChild(i):t.logger.warn("Unable to show explanation because notifyElement is empty:",e)),i.innerHTML=e,(0,s.default)(i,!1)},this.build=function(){t.debug("Notifier: build()"),(n=e.querySelector(".notifier"))?this.hide():(n=(0,o.default)(".notifier"),this.hide(),e.appendChild(n)),!f&&h(),f=!0},this.hide=function(){m(),n&&((0,s.default)(n,!0),n.classList.remove("blocking")),r&&(r.innerHTML=null),b()},this.isVisible=function(){return!!f&&(n&&!(0,s.default)(n))},this.isBuilt=function(){return f},this.notify=function(a,l,c){t.debug("Notifier: notify()"),c||(c={});var f=!!c.stillWait&&c.stillWait,d=!!c.entertain&&c.entertain,p=!!c.blocking&&c.blocking,h=!!c.hideForm&&c.hideForm,b=!!c.classList&&c.classList,g=!!c.removeDimensions&&c.removeDimensions;!r&&n&&(r=(0,o.default)("h2"),i?n.insertBefore(r,i):n.appendChild(r)),n&&(d||(n.className="notifier"),b&&b.forEach((function(e){n.classList.add(e)})),g&&(n.style.width="auto",n.style.height="auto")),p?(n&&n.classList.add("blocking"),this.emit(u.default.BLOCKING,{hideForm:h})):this.emit(u.default.NOTIFYING),e.hideReplay(),e.hideRecorder(),function(e,n){var i=!!n.problem&&n.problem;r?r.innerHTML=(i?"☹ ":"")+e:t.logger.warn("Unable to show following because messageElement is empty:",e)}(a,c),l&&l.length>0&&this.setExplanation(l),d?y():m(),e.showVisuals(),n&&(0,s.default)(n,!1),!f&&e.endWaiting()}};i.default.inherits(l,a.default);n.default=l},{"./../../events":369,"./../../util/eventEmitter":375,"@babel/runtime/helpers/interopRequireDefault":1,"core-js/modules/es.array.for-each.js":210,"core-js/modules/es.date.to-string.js":217,"core-js/modules/es.object.define-property.js":221,"core-js/modules/es.object.to-string.js":224,"core-js/modules/es.regexp.to-string.js":235,"core-js/modules/web.dom-collections.for-each.js":262,"core-js/modules/web.timers.js":266,hidden:300,hyperscript:302,util:359}],394:[function(e,t,n){(function(t){(function(){"use strict";e("core-js/modules/es.object.define-property.js");var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,e("core-js/modules/web.timers.js"),e("core-js/modules/es.number.to-fixed.js"),e("core-js/modules/es.date.now.js"),e("core-js/modules/es.date.to-string.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js"),e("core-js/modules/es.function.name.js"),e("core-js/modules/es.function.bind.js"),e("core-js/modules/es.array.concat.js");var i=r(e("animitter")),o=r(e("canvas-to-buffer")),s=r(e("deepmerge")),a=r(e("hidden")),u=r(e("hyperscript")),l=r(e("safe-json-stringify")),c=r(e("util")),f=r(e("websocket-stream")),d=r(e("../../constants")),p=r(e("../../events")),h=r(e("../../util/browser")),y=r(e("../../util/eventEmitter")),m=r(e("../../util/humanize")),b=r(e("../../util/pretty")),g=r(e("../../util/videomailError")),v=r(e("./userMedia")),w="°º¤ø,¸¸,ø¤º°`°º¤ø,¸,ø¤°º¤ø,¸¸,ø¤º°`°º¤ø,¸ ",j=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};y.default.call(this,r,"Recorder");var c=new h.default(r),j=(0,s.default)(r,{image:{quality:c.isMobile()?r.image.quality-.05:r.image.quality}});if(!j.video||!j.video.fps)throw g.default.create("FPS must be defined",j);var E,x,_,S,A,R,k,O,T,I,M,P,C,N,L,D,B,U,F,q,W,H,z,V,G,$,Y=this,J=j.debug,K=null,X=0,Q=0,Z=j.video.facingMode,ee={},te=0,ne=0;function re(e,t){if(D)if(D.destroyed)ie(),Y.emit(p.default.ERROR,g.default.create("Already disconnected","Sorry, connection to the server has been destroyed. Please reload.",j));else{var n=t&&t.onFlushedCallback;try{D.write(e,(function(){n&&n(t)}))}catch(e){Y.emit(p.default.ERROR,g.default.create("Failed writing to server","stream.write() failed because of "+(0,b.default)(e),j))}}}function ie(){clearInterval(z)}function oe(e){X++,re(e.toBuffer())}function se(){x&&(0,a.default)(x,!1)}function ae(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{J("Recorder: onUserMediaReady()",t);var n=t.switchingFacingMode;P=F=N=C=!1,M=!0,n||(e=(0,i.default)({fps:j.video.fps},Se),E=e.getRequestAnimationFrameObject(),K=e),se(),Y.emit(p.default.USER_MEDIA_READY,{switchingFacingMode:t.switchingFacingMode,paused:Y.isPaused()})}catch(e){Y.emit(p.default.ERROR,e)}}function ue(){S&&(J("Recorder: clearUserMediaTimeout()"),S&&clearTimeout(S),S=null)}function le(){return(te/(Q||1)*100).toFixed(2)+"%"}function ce(){return(ne/(X||1)*100).toFixed(2)+"%"}function fe(){k||(k=le()),O||(O=ce()),Y.emit(p.default.PROGRESS,k,O)}function de(e){if(!U){B=!0,J("Recorder: initialising web socket to %s",j.socketUrl),Y.emit(p.default.CONNECTING);var t=j.socketUrl+"?"+encodeURIComponent(d.default.SITE_NAME_LABEL)+"="+encodeURIComponent(j.siteName);try{D=(0,f.default)(t,{perMessageDeflate:!1,objectMode:!0})}catch(e){var n;B=U=!1,n=void 0===f.default?g.default.create("There is no websocket","Cause: "+(0,b.default)(e),j):g.default.create("Failed to connect to server","Please upgrade your browser. Your current version does not seem to support websockets.",j,{browserProblem:!0}),Y.emit(p.default.ERROR,n)}D&&(D.on("close",(function(e){J(w+"Stream has closed"),B=U=!1,e?Y.emit(p.default.ERROR,e||"Unhandled websocket error"):(Y.emit(p.default.DISCONNECTED),je())})),D.on("connect",(function(){J(w+"Stream *connect* event emitted"),U||(U=!0,B=N=!1,Y.emit(p.default.CONNECTED),J("Going to ask for webcam permissons now ..."),e&&e())})),D.on("data",(function(e){var t;J(w+"Stream *data* event emitted");try{t=JSON.parse(e.toString())}catch(t){J("Failed to parse command:",t),Y.emit(p.default.ERROR,g.default.create("Invalid server command","Contact us asap. Bad command was "+e.toString()+". ",j))}finally{be.call(Y,t)}})),D.on("error",(function(e){var t;J(w+"Stream *error* event emitted",e),B=U=!1,t=c.isIOS()?g.default.create(e,"iPhones cannot maintain a live connection for too long. Original error message is: "+e.toString(),j):g.default.create("Data exchange interrupted","Please check your network connection and reload.",j),Y.emit(p.default.ERROR,t)})),D.on("drain",(function(){J(w+"Stream *drain* event emitted (should not happen!)")})),D.on("preend",(function(){J(w+"Stream *preend* event emitted")})),D.on("end",(function(){J(w+"Stream *end* event emitted")})),D.on("drain",(function(){J(w+"Stream *drain* event emitted")})),D.on("pipe",(function(){J(w+"Stream *pipe* event emitted")})),D.on("unpipe",(function(){J(w+"Stream *unpipe* event emitted")})),D.on("resume",(function(){J(w+"Stream *resume* event emitted")})),D.on("uncork",(function(){J(w+"Stream *uncork* event emitted")})),D.on("readable",(function(){J(w+"Stream *preend* event emitted")})),D.on("prefinish",(function(){J(w+"Stream *preend* event emitted")})),D.on("finish",(function(){J(w+"Stream *preend* event emitted")})))}}function pe(e,t,n){P=!1,ue(),J("Recorder: userMediaErrorCallback()",", name:",e.name,", message:",e.message,", Webcam characteristics:",_.getCharacteristics(),", extraA arguments:",t?t.toString():void 0,", extraB arguments:",n?n.toString():void 0);var r=Y.listeners(p.default.ERROR);if(r&&r.length)e.name!==g.default.MEDIA_DEVICE_NOT_SUPPORTED?Y.emit(p.default.ERROR,g.default.create(e,j)):J("Recorder: ignore user media error",e),A=setTimeout(de,j.timeouts.userMedia);else{if(!N)throw J("Recorder: no error listeners attached but throwing error",e),g.default.create(e,"Unable to process this error since there are no error listeners anymore.",j);J("Recorder: already unloaded. Not going to throw error",e)}}function he(e,t){if(J("Recorder: getUserMediaCallback()",t),U&&(ge()||!ve()||F))try{ue(),_.init(e,(function(){ae(t)}),oe.bind(Y),(function(e){Y.emit(p.default.ERROR,e)}),t)}catch(e){Y.emit(p.default.ERROR,e)}}function ye(e){if(!navigator)throw new Error("Navigator is missing!");if(J("Recorder: loadGenuineUserMedia()"),Y.emit(p.default.ASKING_WEBCAM_PERMISSION),navigator.mediaDevices&&navigator.mediaDevices.getUserMedia){var t={video:{facingMode:Z,frameRate:{ideal:j.video.fps}},audio:j.isAudioEnabled()};c.isOkSafari()||(j.hasDefinedWidth()?t.video.width={ideal:j.video.width}:t.video.width={ideal:Y.limitWidth()},j.hasDefinedHeight()&&(t.video.height={ideal:j.video.height})),J("Recorder: navigator.mediaDevices.getUserMedia()",t),navigator.mediaDevices.getSupportedConstraints&&J("Recorder: navigator.mediaDevices.getSupportedConstraints()",navigator.mediaDevices.getSupportedConstraints());var n=navigator.mediaDevices.getUserMedia(t);if(!n)throw g.default.create("Sorry, your browser is unable to use cameras.","Try a different browser with better user media functionalities.",j);n.then((function(t){he(t,e)})).catch(pe)}else J("Recorder: navigator.getUserMedia()"),navigator.getUserMedia_({video:!0,audio:j.isAudioEnabled()},he,pe)}function me(){if(M)return J("Recorder: skipping loadUserMedia() because it is already loaded"),ae(),!1;if(P)return J("Recorder: skipping loadUserMedia() because it is already asking for permission"),!1;J("Recorder: loadUserMedia()"),Y.emit(p.default.LOADING_USER_MEDIA);try{S=setTimeout((function(){Y.isReady()||Y.emit(p.default.ERROR,c.getNoAccessIssue())}),j.timeouts.userMedia),P=!0,ye()}catch(e){if(J("Recorder: failed to load genuine user media"),P=!1,!Y.listeners(p.default.ERROR).length)throw J("Recorder: no error listeners attached but throwing exception",e),e;Y.emit(p.default.ERROR,e)}}function be(e){try{switch(J("Server commanded: %s",e.command,e.args?", "+(0,l.default)(e.args):""),e.command){case"ready":S||me();break;case"preview":!function(e){te=ne=X=Q=0,O=k=null,W=e.key,e.mp4&&n.setMp4Source(e.mp4+d.default.SITE_NAME_LABEL+"/"+j.siteName+"/videomail.mp4",!0),e.webm&&n.setWebMSource(e.webm+d.default.SITE_NAME_LABEL+"/"+j.siteName+"/videomail.webm",!0),Y.hide();var t=Y.getRecorderWidth(!0),r=Y.getRecorderHeight(!0);Y.emit(p.default.PREVIEW,W,t,r),H=Date.now()-L,ee.waitingTime=H,j.debug&&J("While recording, %s have been transferred and waiting time was %s",m.default.filesize(R,2),m.default.toTime(H))}(e.args);break;case"error":this.emit(p.default.ERROR,g.default.create("Oh no, server error!",e.args.err.toString()||"(No explanation given)",j));break;case"confirmFrame":t=e.args,te=t.frame?t.frame:te,k=le(),fe();break;case"confirmSample":!function(e){ne=e.sample?e.sample:ne,O=ce(),fe()}(e.args);break;case"beginAudioEncoding":this.emit(p.default.BEGIN_AUDIO_ENCODING);break;case"beginVideoEncoding":this.emit(p.default.BEGIN_VIDEO_ENCODING);break;default:this.emit(p.default.ERROR,"Unknown server command: "+e.command)}}catch(e){Y.emit(p.default.ERROR,e)}var t}function ge(){return e.isNotifying()}function ve(){return!x||(0,a.default)(x)}function we(e,n,r){if(!r&&n&&n.constructor===Function&&(r=n,n=null),U){if(D){J("$ %s",e,n?(0,l.default)(n):"");var i={command:e,args:n};re(t.from((0,l.default)(i))),r&&setTimeout((function(){r()}),0)}}else J("Reconnecting for the command",e,"…"),de((function(){we(e,n),r&&r()}))}function je(){K&&K.dispose()}function Ee(){return K.getElapsedTime()}function xe(){J("Recorder: reInitialiseAudio()"),ue(),_&&_.stop(),M=W=T=I=null,me()}function _e(e){1===(e&&e.frameNumber)&&Y.emit(p.default.FIRST_FRAME_SENT)}function Se(n,r){try{if(!Y.isPaused()&&D&&I){if(0===Q&&Y.emit(p.default.SENDING_FIRST_FRAME),Q++,I.drawImage(_.getRawVisuals(),0,0,T.width,T.height),$=V.toBuffer(),(G=$.length)<1)throw g.default.create("Failed to extract webcam data.",j);R+=G;var i=t.from((0,l.default)({frameNumber:Q}));re(t.concat([$,i]),{frameNumber:Q,onFlushedCallback:_e}),e.checkTimer({intervalSum:r})}}catch(e){Y.emit(p.default.ERROR,e)}}function Ae(e){if(K){var t=Y.isRecording();K.stop(),K.setRequestAnimationFrameObject(e),t&&K.start()}}function Re(){j.hasDefinedWidth()&&(x.width=Y.getRecorderWidth(!0)),j.hasDefinedHeight()&&(x.height=Y.getRecorderHeight(!0))}function ke(){J("Recorder: initEvents()"),Y.on(p.default.SUBMITTING,(function(){C=!0})).on(p.default.SUBMITTED,(function(){C=!1,Y.unload()})).on(p.default.BLOCKING,(function(){F=!0,ue()})).on(p.default.HIDE,(function(){Y.hide()})).on(p.default.LOADED_META_DATA,(function(){Re()})).on(p.default.DISABLING_AUDIO,(function(){xe()})).on(p.default.ENABLING_AUDIO,(function(){xe()})).on(p.default.INVISIBLE,(function(){!function(){J("Recorder: loopWithTimeouts()");var e,t=1e3/j.video.fps,n=0;Ae({requestAnimationFrame:function(r){return setTimeout((function(){e=Date.now(),r(),n=Date.now()-e}),t-n)},cancelAnimationFrame:function(e){clearTimeout(e)}})}()})).on(p.default.VISIBLE,(function(){J("Recorder: restoreAnimationFrameObject()"),Ae(E)})).on(p.default.SWITCH_FACING_MODE,(function(){!function(){if(!c.isMobile())return!1;"user"===Z?Z="environment":"environment"===Z?Z="user":J("Recorder: unsupported facing mode",Z),ye({switchingFacingMode:!0})}()}))}function Oe(){var t;if(_){var n=_.getVideoWidth();t=n<1?e.getRatio():_.getVideoHeight()/n}else t=j.getRatio();return t}this.getRecordingStats=function(){return ee},this.getAudioSampleRate=function(){return _.getAudioSampleRate()},this.stop=function(e){J("stop()",e);var t=e.limitReached;this.emit(p.default.STOPPING,t),K.complete();var r=this;setTimeout((function(){L=Date.now(),ee={avgFps:Q/Ee()*1e3,wantedFps:j.video.fps,avgInterval:Ee()/Q,wantedInterval:1e3/j.video.fps,intervalSum:Ee(),framesCount:Q,videoType:n.getVideoType()},j.isAudioEnabled()&&(ee.samplesCount=X,ee.sampleRate=_.getAudioSampleRate()),we("stop",ee,(function(){r.emit(p.default.STOPPED,{recordingStats:ee})})),r.reset()}),60)},this.back=function(e){this.emit(p.default.GOING_BACK),se(),this.reset(),we("back",e)},this.unload=function(e){var t;N||(e&&(t=e.name||e.statusText||e.toString()),J("Recorder: unload()"+(t?", cause: "+t:"")),this.reset(),ue(),U&&(J("Recorder: disconnect()"),_&&_.unloadRemainingEventListeners(),C?B=U=!1:D&&(D.end(),D=void 0)),N=!0,q=!1)},this.reset=function(){N||(J("Recorder: reset()"),this.emit(p.default.RESETTING),je(),_&&_.stop(),n.reset(),M=W=T=I=H=null)},this.validate=function(){return U&&Q>0&&null===T},this.isReady=function(){return _.isReady()},this.pause=function(e){var n=e&&e.event;n instanceof window.Event&&(e.eventType=n.type),J("pause() at frame ".concat(Q),e),_.pause(),K.stop(),this.emit(p.default.PAUSED),z=window.setInterval((function(){J("Recorder: pinging..."),re(t.from(""))}),j.timeouts.pingInterval)},this.isPaused=function(){return _&&_.isPaused()},this.resume=function(){J("Recorder: resume() with frame ".concat(Q)),ie(),this.emit(p.default.RESUMING),_.resume(),K.start()},this.record=function(){if(N)return!1;if(!U)return J("Recorder: reconnecting before recording ..."),de((function(){Y.once(p.default.USER_MEDIA_READY,Y.record)})),!1;try{T=_.createCanvas()}catch(e){return Y.emit(p.default.ERROR,g.default.create(e,j)),!1}return I=T.getContext("2d"),T.width?T.height?(R=0,V=new o.default(T,j),J("Recorder: record()"),_.record(),Y.emit(p.default.RECORDING,Q),K.on("update",(function(e,t){var n=Q/t*1e3;J("Recorder: avgFps =",Math.round(n))})),void K.start()):(Y.emit(p.default.ERROR,g.default.create("Canvas has an invalid height.",j)),!1):(Y.emit(p.default.ERROR,g.default.create("Canvas has an invalid width.",j)),!1)},this.build=function(){var t=c.checkRecordingCapabilities();t||(t=c.checkBufferTypes()),t?this.emit(p.default.ERROR,t):((x=e.querySelector("video."+j.selectors.userMediaClass))||(x=(0,u.default)("video."+j.selectors.userMediaClass),e.appendChild(x)),Re(),x.muted=!0,x.setAttribute("playsinline",!0),x.setAttribute("webkit-playsinline","webkit-playsinline"),x.style.transform="rotateY(180deg)",x.style["-webkit-transform"]="rotateY(180deg)",x.style["-moz-transform"]="rotateY(180deg)",_||(_=new v.default(this,j)),se(),q?me():(ke(),U?me():de()),q=!0)},this.isPaused=function(){return _&&_.isPaused()&&!K.isRunning()},this.isRecording=function(){return K&&K.isRunning()&&!this.isPaused()&&!ge()&&D&&!D.destroyed},this.hide=function(){ve()||(x&&(0,a.default)(x,!0),ue(),J("Recorder: clearRetryTimeout()"),A&&clearTimeout(A),A=null)},this.isUnloaded=function(){return N},this.getRecorderWidth=function(e){return _&&_.hasVideoWidth()?_.getRawWidth(e):e&&j.hasDefinedWidth()?this.limitWidth(j.video.width):void 0},this.getRecorderHeight=function(e){return _?_.getRawHeight(e):e&&j.hasDefinedHeight()?this.calculateHeight(e):void 0},this.calculateWidth=function(t){var n;return _?n=_.getVideoHeight():x&&(n=x.videoHeight||x.height),e.calculateWidth({responsive:t,ratio:Oe(),videoHeight:n})},this.calculateHeight=function(t){var n;return _?n=_.getVideoWidth():x&&(n=x.videoWidth||x.width),e.calculateHeight({responsive:t,ratio:Oe(),videoWidth:n})},this.getRawVisualUserMedia=function(){return x},this.isConnected=function(){return U},this.isConnecting=function(){return B},this.limitWidth=function(t){return e.limitWidth(t)},this.limitHeight=function(t){return e.limitHeight(t)},this.isUserMediaLoaded=function(){return M}};c.default.inherits(j,y.default);n.default=j}).call(this)}).call(this,e("buffer").Buffer)},{"../../constants":368,"../../events":369,"../../util/browser":373,"../../util/eventEmitter":375,"../../util/humanize":376,"../../util/pretty":378,"../../util/videomailError":380,"./userMedia":396,"@babel/runtime/helpers/interopRequireDefault":1,animitter:4,buffer:11,"canvas-to-buffer":14,"core-js/modules/es.array.concat.js":209,"core-js/modules/es.date.now.js":216,"core-js/modules/es.date.to-string.js":217,"core-js/modules/es.function.bind.js":218,"core-js/modules/es.function.name.js":219,"core-js/modules/es.number.to-fixed.js":220,"core-js/modules/es.object.define-property.js":221,"core-js/modules/es.object.keys.js":223,"core-js/modules/es.object.to-string.js":224,"core-js/modules/es.regexp.to-string.js":235,"core-js/modules/web.timers.js":266,deepmerge:273,hidden:300,hyperscript:302,"safe-json-stringify":344,util:359,"websocket-stream":362}],395:[function(e,t,n){"use strict";e("core-js/modules/es.object.define-property.js");var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,e("core-js/modules/es.function.name.js"),e("core-js/modules/es.array.for-each.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.date.now.js"),e("core-js/modules/es.date.to-string.js"),e("core-js/modules/web.timers.js"),e("core-js/modules/es.promise.js");var i=r(e("add-eventlistener-with-options")),o=r(e("hidden")),s=r(e("hyperscript")),a=r(e("iphone-inline-video")),u=r(e("util")),l=r(e("../../events")),c=r(e("../../util/browser")),f=r(e("../../util/eventEmitter")),d=r(e("../../util/videomailError")),p=function(e,t){f.default.call(this,t,"Replay");var n,r,u,p=this,h=new c.default(t),y=t.debug;function m(){return"HTMLDivElement"===e.constructor.name}function b(e,n,i){var o=p.getVideoSource(e);if(n&&i&&(n+="?"+Date.now()),o)n?o.setAttribute("src",n):r.removeChild(o);else if(n){var a=1/t.video.fps*2;o=(0,s.default)("source",{src:n+"#t="+a,type:"video/"+e}),r.appendChild(o)}}function g(e){setTimeout((function(){try{r.pause()}catch(e){t.logger.warn(e)}e&&e()}),15)}function v(){if(r&&r.play){var e;try{e=r.play()}catch(e){t.logger.warn("Caught replay exception:",e)}e&&"undefined"!=typeof Promise&&e instanceof Promise&&e.catch((function(e){t.logger.warn("Caught pending replay promise exception: %s",e)}))}}this.setVideomail=function(t){(u=t)&&(u.mp4&&this.setMp4Source(u.mp4),u.webm&&this.setWebMSource(u.webm),u.poster&&r.setAttribute("poster",u.poster),function(t){var n;Object.keys(t).forEach((function(r){(n=e.querySelector("."+r))&&(n.innerHTML=t[r])}))}(u));var n=u&&u.recordingStats&&u.recordingStats.sampleRate>0;this.show(u&&u.width,u&&u.height,n)},this.show=function(n,i,s){u&&function(t){var n,i;u&&u.playerWidth?n=u.playerWidth:e.calculateWidth&&(n=e.calculateWidth(t)),u&&u.playerHeight?i=u.playerHeight:e.calculateHeight&&(i=e.calculateHeight(t)),r.style.width=n>0?n+"px":"auto",r.style.height=i>0?i+"px":"auto"}({responsive:!0,videoWidth:n||r.videoWidth,videoHeight:i||r.videoHeight}),(0,o.default)(r,!1),e&&(e.style?(0,o.default)(e,!1):e.show&&e.show()),s?r.setAttribute("volume",1):t.isAudioEnabled()||r.setAttribute("muted",!0),a.default&&(0,a.default)(r,{iPad:!0}),r.load(),u?p.emit(l.default.REPLAY_SHOWN):p.emit(l.default.PREVIEW_SHOWN)},this.build=function(){y("Replay: build()"),(r=e.querySelector("video."+t.selectors.replayClass))||function(){if(y("Replay: buildElement()"),!(r=(0,s.default)("video."+t.selectors.replayClass)).setAttribute)throw d.default.create("Please upgrade browser",t);e.appendChild(r)}(),this.hide(),r.setAttribute("autoplay",!0),r.setAttribute("autostart",!0),r.setAttribute("autobuffer",!0),r.setAttribute("playsinline",!0),r.setAttribute("webkit-playsinline","webkit-playsinline"),r.setAttribute("controls","controls"),r.setAttribute("preload","auto"),n||(m()||this.on(l.default.PREVIEW,(function(e,t,n){p.show(t,n)})),(0,i.default)(r,"touchstart",(function(e){try{e&&e.preventDefault()}catch(e){}this.paused?v():g()})),r.onclick=function(e){e&&e.preventDefault(),this.paused?v():g()}),n=!0,y("Replay: built.")},this.unload=function(){n=!1},this.getVideoSource=function(e){var t,n,i=r.getElementsByTagName("source"),o=i&&i.length,s="video/"+e;if(o)for(n=0;n<o&&!t;n++)i[n].getAttribute("type")===s&&(t=i[n]);return t},this.setMp4Source=function(e,t){b("mp4",e,t)},this.setWebMSource=function(e,t){b("webm",e,t)},this.getVideoType=function(){return h.getVideoType(r)},this.reset=function(e){g((function(){r&&(p.setMp4Source(null),p.setWebMSource(null)),e&&e()}))},this.hide=function(){m()?(0,o.default)(e,!0):r&&(0,o.default)(r,!0)},this.isShown=function(){return r&&!(0,o.default)(r)},this.getParentElement=function(){return e}};u.default.inherits(p,f.default);n.default=p},{"../../events":369,"../../util/browser":373,"../../util/eventEmitter":375,"../../util/videomailError":380,"@babel/runtime/helpers/interopRequireDefault":1,"add-eventlistener-with-options":3,"core-js/modules/es.array.for-each.js":210,"core-js/modules/es.date.now.js":216,"core-js/modules/es.date.to-string.js":217,"core-js/modules/es.function.name.js":219,"core-js/modules/es.object.define-property.js":221,"core-js/modules/es.object.keys.js":223,"core-js/modules/es.object.to-string.js":224,"core-js/modules/es.promise.js":230,"core-js/modules/web.dom-collections.for-each.js":262,"core-js/modules/web.timers.js":266,hidden:300,hyperscript:302,"iphone-inline-video":308,util:359}],396:[function(e,t,n){"use strict";e("core-js/modules/es.object.define-property.js");var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){s.default.call(this,t,"UserMedia");var n,r,h=e&&e.getRawVisualUserMedia(),y=new o.default(t),m=this,b=!1,g=!1;function v(e){e?function(e){if(r=e,void 0!==h.srcObject)h.srcObject=e;else{if(void 0===h.src)throw l.default.create("Error attaching stream to element.","Contact the developer about this",t);var n=window.URL||window.webkitURL;h.src=n.createObjectURL(e)||e}}(e):(h.removeAttribute("srcObject"),h.removeAttribute("src"),r=null)}function w(){return h.mozSrcObject?h.mozSrcObject:h.srcObject?h.srcObject:r}function j(){if(h.ended)return h.ended;var e=w();return e&&e.ended}function E(){if(h.videoWidth&&h.videoWidth<3||h.height&&h.height<3)return!0}function x(e,n){t.debug("UserMedia: ...",p,"event",e,(0,d.default)(n))}function _(e){x(e.type,{readyState:h.readyState}),h.removeEventListener&&h.removeEventListener(e.type,_)}this.unloadRemainingEventListeners=function(){t.debug("UserMedia: unloadRemainingEventListeners()"),u.default.forEach((function(e){h.removeEventListener(e,_)}))},this.init=function(e,r,o,s){var c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};this.stop(e,{aboutToInitialize:!0,switchingFacingMode:c.switchingFacingMode});var d=!1,p=!1,b=!1;function g(){m.removeListener(a.default.SENDING_FIRST_FRAME,g),n&&n.record(o)}function w(){t.debug("UserMedia: unloadAllEventListeners()"),m.removeListener(a.default.SENDING_FIRST_FRAME,g),h.removeEventListener&&h.removeEventListener("play",R),h.removeEventListener&&h.removeEventListener("loadedmetadata",k),m.unloadRemainingEventListeners()}function S(){try{if(h.load(),h.paused){var e;t.debug("UserMedia: play()","media.readyState="+h.readyState,"media.paused="+h.paused,"media.ended="+h.ended,"media.played="+(0,f.default)(h.played));try{e=h.play()}catch(e){t.logger.warn("Caught raw usermedia play exception:",e)}(n=e)&&"undefined"!=typeof Promise&&n instanceof Promise&&e.then((function(){b||(t.debug("UserMedia: play promise successful. Playing now."),b=!0)})).catch((function(e){t.logger.warn("Caught pending usermedia promise exception: %s",e.toString())}))}}catch(e){w(),s(e)}var n}function A(){var i=h.readyState;if(t.debug("UserMedia: fireCallbacks(readyState="+i+", onPlayReached="+d+", onLoadedMetaDataReached="+p+")"),d&&p&&(r(),n&&o))try{n.init(e),m.on(a.default.SENDING_FIRST_FRAME,g)}catch(e){w(),s(e)}}function R(){try{x("play",{readyState:h.readyState,audio:t.isAudioEnabled(),width:h.width,height:h.height,videoWidth:h.videoWidth,videoHeight:h.videoHeight}),h.removeEventListener&&h.removeEventListener("play",R),j()||E()?s(l.default.create("Already busy","Probably another browser window is using your webcam?",t)):(d=!0,A())}catch(e){w(),s(e)}}function k(){x("loadedmetadata",{readyState:h.readyState,paused:h.paused,width:h.width,height:h.height,videoWidth:h.videoWidth,videoHeight:h.videoHeight}),h.removeEventListener&&h.removeEventListener("loadedmetadata",k),j()||E()||(m.emit(a.default.LOADED_META_DATA),y.isAndroid()&&S(),p=!0,A())}t&&t.isAudioEnabled()&&(n=n||new i.default(this,t));try{var O=function(e){var t,n=function(e){var t;return e&&e.getVideoTracks&&(t=e.getVideoTracks()),t}(e);return n&&n[0]&&(t=n[0]),t}(e);if(O){if(!O.enabled)throw l.default.create("Webcam is disabled","The video track seems to be disabled. Enable it in your system.",t);var T;O.label&&O.label.length>0&&(T=O.label),T+=" with enabled="+O.enabled,T+=", muted="+O.muted,T+=", remote="+O.remote,T+=", readyState="+O.readyState,T+=", error="+O.error,t.debug("UserMedia: "+O.kind+" detected.",T||"")}else t.debug("UserMedia: detected (but no video tracks exist");u.default.forEach((function(e){h.addEventListener(e,_,!1)})),h.addEventListener("loadedmetadata",k),h.addEventListener("play",R),h.addEventListener("error",(function(e){t.logger.warn("Caught video element error event: %s",(0,f.default)(e))})),v(e),S()}catch(e){m.emit(a.default.ERROR,e)}},this.isReady=function(){return!!h.src},this.stop=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{var r=t.aboutToInitialize,i=t.switchingFacingMode;if(!r){e||(e=w());var o=function(e){var t;return e&&e.getTracks&&(t=e.getTracks()),t}(e),s=!1;o&&o.forEach((function(e){e.stop&&(s=!0,e.stop())})),!s&&e&&e.stop&&e.stop(),v(null),n&&n.stop(),n=null}i||(b=g=!1)}catch(e){m.emit(a.default.ERROR,e)}},this.createCanvas=function(){return(0,c.default)("canvas",{width:this.getRawWidth(!0),height:this.getRawHeight(!0)})},this.getVideoHeight=function(){return h.videoHeight},this.getVideoWidth=function(){return h.videoWidth},this.hasVideoWidth=function(){return this.getVideoWidth()>0},this.getRawWidth=function(n){var r=this.getVideoWidth(),i=t.hasDefinedWidth();return(i||t.hasDefinedHeight())&&(r=!n&&i?t.video.width:e.calculateWidth(n)),n&&(r=e.limitWidth(r)),r},this.getRawHeight=function(n){var r;if(t.hasDefinedDimension()){if((r=e.calculateHeight(n))<1)throw l.default.create("Bad dimensions","Calculated raw height cannot be less than 1!",t)}else if((r=this.getVideoHeight())<1)throw l.default.create("Bad dimensions","Raw video height from DOM element cannot be less than 1!",t);return n&&(r=e.limitHeight(r)),r},this.getRawVisuals=function(){return h},this.pause=function(){b=!0},this.isPaused=function(){return b},this.resume=function(){b=!1},this.record=function(){g=!0},this.isRecording=function(){return g},this.getAudioSampleRate=function(){return n?n.getSampleRate():-1},this.getCharacteristics=function(){return{audioSampleRate:this.getAudioSampleRate(),muted:h&&h.muted,width:h&&h.width,height:h&&h.height,videoWidth:h&&h.videoWidth,videoHeight:h&&h.videoHeight}}},e("core-js/modules/es.array.iterator.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.string.iterator.js"),e("core-js/modules/web.dom-collections.iterator.js"),e("core-js/modules/web.url.js"),e("core-js/modules/web.url-search-params.js"),e("core-js/modules/es.promise.js"),e("core-js/modules/es.array.for-each.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.date.to-string.js"),e("core-js/modules/es.regexp.to-string.js");var i=r(e("./../../util/audioRecorder")),o=r(e("./../../util/browser")),s=r(e("./../../util/eventEmitter")),a=r(e("./../../events")),u=r(e("./../../util/mediaEvents")),l=r(e("./../../util/videomailError")),c=r(e("hyperscript")),f=r(e("./../../util/pretty")),d=r(e("safe-json-stringify")),p="|—O—|"},{"./../../events":369,"./../../util/audioRecorder":372,"./../../util/browser":373,"./../../util/eventEmitter":375,"./../../util/mediaEvents":377,"./../../util/pretty":378,"./../../util/videomailError":380,"@babel/runtime/helpers/interopRequireDefault":1,"core-js/modules/es.array.for-each.js":210,"core-js/modules/es.array.iterator.js":213,"core-js/modules/es.date.to-string.js":217,"core-js/modules/es.object.define-property.js":221,"core-js/modules/es.object.to-string.js":224,"core-js/modules/es.promise.js":230,"core-js/modules/es.regexp.to-string.js":235,"core-js/modules/es.string.iterator.js":236,"core-js/modules/web.dom-collections.for-each.js":262,"core-js/modules/web.dom-collections.iterator.js":263,"core-js/modules/web.url-search-params.js":268,"core-js/modules/web.url.js":270,hyperscript:302,"safe-json-stringify":344}],397:[function(e,t,n){"use strict";t.exports='@-webkit-keyframes blink{0%{opacity:.9}35%{opacity:.9}50%{opacity:.1}85%{opacity:.1}to{opacity:.9}}@keyframes blink{0%{opacity:.9}35%{opacity:.9}50%{opacity:.1}85%{opacity:.1}to{opacity:.9}}.IIV::-webkit-media-controls-play-button,.IIV::-webkit-media-controls-start-playback-button{opacity:0;pointer-events:none;width:5px}.videomail .visuals{position:relative}.videomail .visuals video.replay{height:100%;width:100%}.videomail .countdown,.videomail .pausedHeader,.videomail .pausedHint,.videomail .recordNote,.videomail .recordTimer{height:auto;margin:0}.videomail .countdown,.videomail .facingMode,.videomail .paused,.videomail .recordNote,.videomail .recordTimer,.videomail noscript{position:absolute;z-index:100}.videomail .countdown,.videomail .pausedHeader,.videomail .pausedHint,.videomail .recordNote,.videomail .recordTimer,.videomail noscript{font-weight:700}.videomail .countdown,.videomail .paused,.videomail noscript{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:100%}.videomail .countdown,.videomail .pausedHeader,.videomail .pausedHint{letter-spacing:4px;text-align:center;text-shadow:-2px 0 #fff,0 2px #fff,2px 0 #fff,0 -2px #fff}.videomail .countdown,.videomail .pausedHeader{font-size:460%;opacity:.9}.videomail .pausedHint{font-size:150%}.videomail .facingMode{background:rgba(30,30,30,.5);border:none;bottom:.6em;color:hsla(0,0%,96%,.9);font-family:monospace;font-size:1.2em;outline:none;padding:.1em .3em;right:.7em;-webkit-transition:all .2s ease;transition:all .2s ease;z-index:10}.videomail .facingMode:hover{background:rgba(50,50,50,.7);cursor:pointer}.videomail .recordNote,.videomail .recordTimer{background:hsla(0,0%,4%,.8);color:#00d814;font-family:monospace;opacity:.9;padding:.3em .4em;right:.7em;-webkit-transition:all 1s ease;transition:all 1s ease}.videomail .recordNote.near,.videomail .recordTimer.near{color:#eb9369}.videomail .recordNote.nigh,.videomail .recordTimer.nigh{color:#ea4b2a}.videomail .recordTimer{top:.7em}.videomail .recordNote{top:3.6em}.videomail .recordNote:before{-webkit-animation:blink 1s infinite;animation:blink 1s infinite;content:"REC"}.videomail .notifier{-webkit-box-sizing:border-box;box-sizing:border-box;height:100%;overflow:hidden}.videomail .radioGroup{display:block}.videomail video{margin-bottom:0}'},{}],"videomail-client":[function(e,t,n){"use strict";e("core-js/modules/es.object.define-property.js");var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("./util/standardize")),o=r(e("./client"));if(!navigator)throw new Error("Navigator is missing!");(0,i.default)(window,navigator);n.default=o.default;t.exports=o.default},{"./client":367,"./util/standardize":379,"@babel/runtime/helpers/interopRequireDefault":1,"core-js/modules/es.object.define-property.js":221}]},{},["videomail-client"])("videomail-client")}));
|
|
54
|
+
t.exports=function(t){return ArrayBuffer.isView(t)?e.from(t.buffer,t.byteOffset,t.byteLength):e.from(t)}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:11}],112:[function(e,t,n){!function(e,r){"use strict";var i="function",o="undefined",a="object",u="string",s="major",l="model",c="name",f="type",d="vendor",p="version",h="architecture",m="console",y="mobile",b="tablet",g="smarttv",v="wearable",w="embedded",E="Amazon",_="Apple",S="ASUS",R="BlackBerry",A="Browser",O="Chrome",k="Firefox",T="Google",x="Huawei",j="LG",M="Microsoft",D="Motorola",C="Opera",N="Samsung",I="Sharp",P="Sony",L="Xiaomi",B="Zebra",U="Facebook",F="Chromium OS",W="Mac OS",q=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},H=function(e,t){return typeof e===u&&-1!==z(t).indexOf(z(e))},z=function(e){return e.toLowerCase()},V=function(e,t){if(typeof e===u)return e=e.replace(/^\s\s*/,""),typeof t===o?e:e.substring(0,500)},G=function(e,t){for(var n,o,u,s,l,c,f=0;f<t.length&&!l;){var d=t[f],p=t[f+1];for(n=o=0;n<d.length&&!l&&d[n];)if(l=d[n++].exec(e))for(u=0;u<p.length;u++)c=l[++o],typeof(s=p[u])===a&&s.length>0?2===s.length?typeof s[1]==i?this[s[0]]=s[1].call(this,c):this[s[0]]=s[1]:3===s.length?typeof s[1]!==i||s[1].exec&&s[1].test?this[s[0]]=c?c.replace(s[1],s[2]):r:this[s[0]]=c?s[1].call(this,c,s[2]):r:4===s.length&&(this[s[0]]=c?s[3].call(this,c.replace(s[1],s[2])):r):this[s]=c||r;f+=2}},$=function(e,t){for(var n in t)if(typeof t[n]===a&&t[n].length>0){for(var i=0;i<t[n].length;i++)if(H(t[n][i],e))return"?"===n?r:n}else if(H(t[n],e))return"?"===n?r:n;return e},Y={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},J={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[c,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[c,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[c,p],[/opios[\/ ]+([\w\.]+)/i],[p,[c,C+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[p,[c,C+" GX"]],[/\bopr\/([\w\.]+)/i],[p,[c,C]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[p,[c,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[c,p],[/\bddg\/([\w\.]+)/i],[p,[c,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[c,"UC"+A]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[p,[c,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[c,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[c,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[p,[c,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[p,[c,"Smart Lenovo "+A]],[/(avast|avg)\/([\w\.]+)/i],[[c,/(.+)/,"$1 Secure "+A],p],[/\bfocus\/([\w\.]+)/i],[p,[c,k+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[c,C+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[c,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[c,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[c,C+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[c,"MIUI "+A]],[/fxios\/([-\w\.]+)/i],[p,[c,k]],[/\bqihu|(qi?ho?o?|360)browser/i],[[c,"360 "+A]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[c,/(.+)/,"$1 "+A],p],[/samsungbrowser\/([\w\.]+)/i],[p,[c,N+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[c,/_/g," "],p],[/metasr[\/ ]?([\d\.]+)/i],[p,[c,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[c,"Sogou Mobile"],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[c,p],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[c],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[c,U],p],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[c,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[c,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[p,[c,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[c,O+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[c,O+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[c,"Android "+A]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[c,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[c,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,c],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[c,[p,$,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[c,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[c,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[c,k+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[c,p],[/(cobalt)\/([\w\.]+)/i],[c,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[h,"amd64"]],[/(ia32(?=;))/i],[[h,z]],[/((?:i[346]|x)86)[;\)]/i],[[h,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[h,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[h,"armhf"]],[/windows (ce|mobile); ppc;/i],[[h,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[h,/ower/,"",z]],[/(sun4\w)[;\)]/i],[[h,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[h,z]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[l,[d,N],[f,b]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[l,[d,N],[f,y]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[l,[d,_],[f,y]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[d,_],[f,b]],[/(macintosh);/i],[l,[d,_]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[d,I],[f,y]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[l,[d,x],[f,b]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[l,[d,x],[f,y]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[l,/_/g," "],[d,L],[f,y]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[l,/_/g," "],[d,L],[f,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[l,[d,"OPPO"],[f,y]],[/\b(opd2\d{3}a?) bui/i],[l,[d,"OPPO"],[f,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[d,"Vivo"],[f,y]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[l,[d,"Realme"],[f,y]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[l,[d,D],[f,y]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[d,D],[f,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[d,j],[f,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[d,j],[f,y]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[l,[d,"Lenovo"],[f,b]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[l,/_/g," "],[d,"Nokia"],[f,y]],[/(pixel c)\b/i],[l,[d,T],[f,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[l,[d,T],[f,y]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[l,[d,P],[f,y]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[d,P],[f,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[d,"OnePlus"],[f,y]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[d,E],[f,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[d,E],[f,y]],[/(playbook);[-\w\),; ]+(rim)/i],[l,d,[f,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[l,[d,R],[f,y]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[d,S],[f,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[d,S],[f,y]],[/(nexus 9)/i],[l,[d,"HTC"],[f,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[l,/_/g," "],[f,y]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[d,"Acer"],[f,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[d,"Meizu"],[f,y]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[l,[d,"Ulefone"],[f,y]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[d,l,[f,y]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[d,l,[f,b]],[/(surface duo)/i],[l,[d,M],[f,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[d,"Fairphone"],[f,y]],[/(u304aa)/i],[l,[d,"AT&T"],[f,y]],[/\bsie-(\w*)/i],[l,[d,"Siemens"],[f,y]],[/\b(rct\w+) b/i],[l,[d,"RCA"],[f,b]],[/\b(venue[\d ]{2,7}) b/i],[l,[d,"Dell"],[f,b]],[/\b(q(?:mv|ta)\w+) b/i],[l,[d,"Verizon"],[f,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[l,[d,"Barnes & Noble"],[f,b]],[/\b(tm\d{3}\w+) b/i],[l,[d,"NuVision"],[f,b]],[/\b(k88) b/i],[l,[d,"ZTE"],[f,b]],[/\b(nx\d{3}j) b/i],[l,[d,"ZTE"],[f,y]],[/\b(gen\d{3}) b.+49h/i],[l,[d,"Swiss"],[f,y]],[/\b(zur\d{3}) b/i],[l,[d,"Swiss"],[f,b]],[/\b((zeki)?tb.*\b) b/i],[l,[d,"Zeki"],[f,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],l,[f,b]],[/\b(ns-?\w{0,9}) b/i],[l,[d,"Insignia"],[f,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[l,[d,"NextBook"],[f,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],l,[f,y]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],l,[f,y]],[/\b(ph-1) /i],[l,[d,"Essential"],[f,y]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[l,[d,"Envizen"],[f,b]],[/\b(trio[-\w\. ]+) b/i],[l,[d,"MachSpeed"],[f,b]],[/\btu_(1491) b/i],[l,[d,"Rotor"],[f,b]],[/(shield[\w ]+) b/i],[l,[d,"Nvidia"],[f,b]],[/(sprint) (\w+)/i],[d,l,[f,y]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[d,M],[f,y]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[d,B],[f,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[d,B],[f,y]],[/smart-tv.+(samsung)/i],[d,[f,g]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[d,N],[f,g]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,j],[f,g]],[/(apple) ?tv/i],[d,[l,_+" TV"],[f,g]],[/crkey/i],[[l,O+"cast"],[d,T],[f,g]],[/droid.+aft(\w+)( bui|\))/i],[l,[d,E],[f,g]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[l,[d,I],[f,g]],[/(bravia[\w ]+)( bui|\))/i],[l,[d,P],[f,g]],[/(mitv-\w{5}) bui/i],[l,[d,L],[f,g]],[/Hbbtv.*(technisat) (.*);/i],[d,l,[f,g]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,V],[l,V],[f,g]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,g]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,l,[f,m]],[/droid.+; (shield) bui/i],[l,[d,"Nvidia"],[f,m]],[/(playstation [345portablevi]+)/i],[l,[d,P],[f,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[d,M],[f,m]],[/((pebble))app/i],[d,l,[f,v]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[l,[d,_],[f,v]],[/droid.+; (glass) \d/i],[l,[d,T],[f,v]],[/droid.+; (wt63?0{2,3})\)/i],[l,[d,B],[f,v]],[/(quest( \d| pro)?)/i],[l,[d,U],[f,v]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[f,w]],[/(aeobc)\b/i],[l,[d,E],[f,w]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[l,[f,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[l,[f,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,y]],[/(android[-\w\. ]{0,9});.+buil/i],[l,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[c,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[c,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[c,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,c]],os:[[/microsoft (windows) (vista|xp)/i],[c,p],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[c,[p,$,Y]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[p,$,Y],[c,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[c,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[c,W],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,c],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[c,p],[/\(bb(10);/i],[p,[c,R]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[c,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[c,k+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[c,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[p,[c,"watchOS"]],[/crkey\/([\d\.]+)/i],[p,[c,O+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[c,F],p],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[c,p],[/(sunos) ?([\w\.\d]*)/i],[[c,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[c,p]]},K=function(t,n){if(typeof t===a&&(n=t,t=r),!(this instanceof K))return new K(t,n).getResult();var m=typeof e!==o&&e.navigator?e.navigator:r,g=t||(m&&m.userAgent?m.userAgent:""),v=m&&m.userAgentData?m.userAgentData:r,w=n?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(J,n):J,E=m&&m.userAgent==g;return this.getBrowser=function(){var e,t={};return t[c]=r,t[p]=r,G.call(t,g,w.browser),t[s]=typeof(e=t[p])===u?e.replace(/[^\d\.]/g,"").split(".")[0]:r,E&&m&&m.brave&&typeof m.brave.isBrave==i&&(t[c]="Brave"),t},this.getCPU=function(){var e={};return e[h]=r,G.call(e,g,w.cpu),e},this.getDevice=function(){var e={};return e[d]=r,e[l]=r,e[f]=r,G.call(e,g,w.device),E&&!e[f]&&v&&v.mobile&&(e[f]=y),E&&"Macintosh"==e[l]&&m&&typeof m.standalone!==o&&m.maxTouchPoints&&m.maxTouchPoints>2&&(e[l]="iPad",e[f]=b),e},this.getEngine=function(){var e={};return e[c]=r,e[p]=r,G.call(e,g,w.engine),e},this.getOS=function(){var e={};return e[c]=r,e[p]=r,G.call(e,g,w.os),E&&!e[c]&&v&&v.platform&&"Unknown"!=v.platform&&(e[c]=v.platform.replace(/chrome os/i,F).replace(/macos/i,W)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return g},this.setUA=function(e){return g=typeof e===u&&e.length>500?V(e,500):e,this},this.setUA(g),this};K.VERSION="1.0.38",K.BROWSER=q([c,p,s]),K.CPU=q([h]),K.DEVICE=q([l,d,f,m,y,g,b,v,w]),K.ENGINE=K.OS=q([c,p]),typeof n!==o?(typeof t!==o&&t.exports&&(n=t.exports=K),n.UAParser=K):typeof e!==o&&(e.UAParser=K);var X=typeof e!==o&&(e.jQuery||e.Zepto);if(X&&!X.ua){var Q=new K;X.ua=Q.getResult(),X.ua.get=function(){return Q.getUA()},X.ua.set=function(e){Q.setUA(e);var t=Q.getResult();for(var n in t)X.ua[n]=t[n]}}}("object"==typeof window?window:this)},{}],113:[function(e,t,n){(function(e){(function(){function n(t){try{if(!e.localStorage)return!1}catch(e){return!1}var n=e.localStorage[t];return null!=n&&"true"===String(n).toLowerCase()}t.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],114:[function(e,t,n){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],115:[function(e,t,n){"use strict";var r=e("is-arguments"),i=e("is-generator-function"),o=e("which-typed-array"),a=e("is-typed-array");function u(e){return e.call.bind(e)}var s="undefined"!=typeof BigInt,l="undefined"!=typeof Symbol,c=u(Object.prototype.toString),f=u(Number.prototype.valueOf),d=u(String.prototype.valueOf),p=u(Boolean.prototype.valueOf);if(s)var h=u(BigInt.prototype.valueOf);if(l)var m=u(Symbol.prototype.valueOf);function y(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function b(e){return"[object Map]"===c(e)}function g(e){return"[object Set]"===c(e)}function v(e){return"[object WeakMap]"===c(e)}function w(e){return"[object WeakSet]"===c(e)}function E(e){return"[object ArrayBuffer]"===c(e)}function _(e){return"undefined"!=typeof ArrayBuffer&&(E.working?E(e):e instanceof ArrayBuffer)}function S(e){return"[object DataView]"===c(e)}function R(e){return"undefined"!=typeof DataView&&(S.working?S(e):e instanceof DataView)}n.isArgumentsObject=r,n.isGeneratorFunction=i,n.isTypedArray=a,n.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},n.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||R(e)},n.isUint8Array=function(e){return"Uint8Array"===o(e)},n.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},n.isUint16Array=function(e){return"Uint16Array"===o(e)},n.isUint32Array=function(e){return"Uint32Array"===o(e)},n.isInt8Array=function(e){return"Int8Array"===o(e)},n.isInt16Array=function(e){return"Int16Array"===o(e)},n.isInt32Array=function(e){return"Int32Array"===o(e)},n.isFloat32Array=function(e){return"Float32Array"===o(e)},n.isFloat64Array=function(e){return"Float64Array"===o(e)},n.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},n.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},b.working="undefined"!=typeof Map&&b(new Map),n.isMap=function(e){return"undefined"!=typeof Map&&(b.working?b(e):e instanceof Map)},g.working="undefined"!=typeof Set&&g(new Set),n.isSet=function(e){return"undefined"!=typeof Set&&(g.working?g(e):e instanceof Set)},v.working="undefined"!=typeof WeakMap&&v(new WeakMap),n.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(v.working?v(e):e instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),n.isWeakSet=function(e){return w(e)},E.working="undefined"!=typeof ArrayBuffer&&E(new ArrayBuffer),n.isArrayBuffer=_,S.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&S(new DataView(new ArrayBuffer(1),0,1)),n.isDataView=R;var A="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function O(e){return"[object SharedArrayBuffer]"===c(e)}function k(e){return void 0!==A&&(void 0===O.working&&(O.working=O(new A)),O.working?O(e):e instanceof A)}function T(e){return y(e,f)}function x(e){return y(e,d)}function j(e){return y(e,p)}function M(e){return s&&y(e,h)}function D(e){return l&&y(e,m)}n.isSharedArrayBuffer=k,n.isAsyncFunction=function(e){return"[object AsyncFunction]"===c(e)},n.isMapIterator=function(e){return"[object Map Iterator]"===c(e)},n.isSetIterator=function(e){return"[object Set Iterator]"===c(e)},n.isGeneratorObject=function(e){return"[object Generator]"===c(e)},n.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===c(e)},n.isNumberObject=T,n.isStringObject=x,n.isBooleanObject=j,n.isBigIntObject=M,n.isSymbolObject=D,n.isBoxedPrimitive=function(e){return T(e)||x(e)||j(e)||M(e)||D(e)},n.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(_(e)||k(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(n,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},{"is-arguments":65,"is-generator-function":68,"is-typed-array":70,"which-typed-array":121}],116:[function(e,t,n){(function(t){(function(){var r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},i=/%[sdj%]/g;n.format=function(e){if(!g(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(s(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,o=r.length,a=String(e).replace(i,(function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),u=r[n];n<o;u=r[++n])y(u)||!E(u)?a+=" "+u:a+=" "+s(u);return a},n.deprecate=function(e,r){if(void 0!==t&&!0===t.noDeprecation)return e;if(void 0===t)return function(){return n.deprecate(e,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(t.throwDeprecation)throw new Error(r);t.traceDeprecation?console.trace(r):console.error(r),i=!0}return e.apply(this,arguments)}};var o={},a=/^$/;if(t.env.NODE_DEBUG){var u=t.env.NODE_DEBUG;u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),a=new RegExp("^"+u+"$","i")}function s(e,t){var r={seen:[],stylize:c};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(t)?r.showHidden=t:t&&n._extend(r,t),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=l),f(r,e,r.depth)}function l(e,t){var n=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.colors[n][1]+"m":e}function c(e,t){return e}function f(e,t,r){if(e.customInspect&&t&&R(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(r,e);return g(i)||(i=f(e,i,r)),i}var o=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(g(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(b(t))return e.stylize(""+t,"number");if(m(t))return e.stylize(""+t,"boolean");if(y(t))return e.stylize("null","null")}(e,t);if(o)return o;var a=Object.keys(t),u=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),S(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(t);if(0===a.length){if(R(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(w(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(_(t))return e.stylize(Date.prototype.toString.call(t),"date");if(S(t))return d(t)}var l,c="",E=!1,A=["{","}"];(h(t)&&(E=!0,A=["[","]"]),R(t))&&(c=" [Function"+(t.name?": "+t.name:"")+"]");return w(t)&&(c=" "+RegExp.prototype.toString.call(t)),_(t)&&(c=" "+Date.prototype.toUTCString.call(t)),S(t)&&(c=" "+d(t)),0!==a.length||E&&0!=t.length?r<0?w(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),l=E?function(e,t,n,r,i){for(var o=[],a=0,u=t.length;a<u;++a)T(t,String(a))?o.push(p(e,t,n,r,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(p(e,t,n,r,i,!0))})),o}(e,t,r,u,a):a.map((function(n){return p(e,t,r,u,n,E)})),e.seen.pop(),function(e,t,n){var r=e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(r>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(l,c,A)):A[0]+c+A[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,r,i,o){var a,u,s;if((s=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?u=s.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):s.set&&(u=e.stylize("[Setter]","special")),T(r,i)||(a="["+i+"]"),u||(e.seen.indexOf(s.value)<0?(u=y(n)?f(e,s.value,null):f(e,s.value,n-1)).indexOf("\n")>-1&&(u=o?u.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+u.split("\n").map((function(e){return" "+e})).join("\n")):u=e.stylize("[Circular]","special")),v(a)){if(o&&i.match(/^\d+$/))return u;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+u}function h(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function y(e){return null===e}function b(e){return"number"==typeof e}function g(e){return"string"==typeof e}function v(e){return void 0===e}function w(e){return E(e)&&"[object RegExp]"===A(e)}function E(e){return"object"==typeof e&&null!==e}function _(e){return E(e)&&"[object Date]"===A(e)}function S(e){return E(e)&&("[object Error]"===A(e)||e instanceof Error)}function R(e){return"function"==typeof e}function A(e){return Object.prototype.toString.call(e)}function O(e){return e<10?"0"+e.toString(10):e.toString(10)}n.debuglog=function(e){if(e=e.toUpperCase(),!o[e])if(a.test(e)){var r=t.pid;o[e]=function(){var t=n.format.apply(n,arguments);console.error("%s %d: %s",e,r,t)}}else o[e]=function(){};return o[e]},n.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.types=e("./support/types"),n.isArray=h,n.isBoolean=m,n.isNull=y,n.isNullOrUndefined=function(e){return null==e},n.isNumber=b,n.isString=g,n.isSymbol=function(e){return"symbol"==typeof e},n.isUndefined=v,n.isRegExp=w,n.types.isRegExp=w,n.isObject=E,n.isDate=_,n.types.isDate=_,n.isError=S,n.types.isNativeError=S,n.isFunction=R,n.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},n.isBuffer=e("./support/isBuffer");var k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n.log=function(){var e,t;console.log("%s - %s",(e=new Date,t=[O(e.getHours()),O(e.getMinutes()),O(e.getSeconds())].join(":"),[e.getDate(),k[e.getMonth()],t].join(" ")),n.format.apply(n,arguments))},n.inherits=e("inherits"),n._extend=function(e,t){if(!t||!E(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var x="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function j(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}n.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(x&&e[x]){var t;if("function"!=typeof(t=e[x]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,x,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,i)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),x&&Object.defineProperty(t,x,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,r(e))},n.promisify.custom=x,n.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function n(){for(var n=[],r=0;r<arguments.length;r++)n.push(arguments[r]);var i=n.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var o=this,a=function(){return i.apply(o,arguments)};e.apply(this,n).then((function(e){t.nextTick(a.bind(null,null,e))}),(function(e){t.nextTick(j.bind(null,e,a))}))}return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),Object.defineProperties(n,r(e)),n}}).call(this)}).call(this,e("_process"))},{"./support/isBuffer":114,"./support/types":115,_process:79,inherits:61}],117:[function(e,t,n){"use strict";var r=Object.prototype.toString;t.exports=function(e){return"[object Float32Array]"===r.call(e)}},{}],118:[function(e,t,n){(function(n,r){(function(){var i=e("readable-stream"),o=e("end-of-stream"),a=e("inherits"),u=e("stream-shift"),s=r.from&&r.from!==Uint8Array.from?r.from([0]):new r([0]),l=function(e,t){e._corked?e.once("uncork",t):t()},c=function(e,t){return function(n){n?function(e,t){e._autoDestroy&&e.destroy(t)}(e,"premature close"===n.message?null:n):t&&!e._ended&&e.end()}},f=function(e,t,n){if(!(this instanceof f))return new f(e,t,n);i.Duplex.call(this,n),this._writable=null,this._readable=null,this._readable2=null,this._autoDestroy=!n||!1!==n.autoDestroy,this._forwardDestroy=!n||!1!==n.destroy,this._forwardEnd=!n||!1!==n.end,this._corked=1,this._ondrain=null,this._drained=!1,this._forwarding=!1,this._unwrite=null,this._unread=null,this._ended=!1,this.destroyed=!1,e&&this.setWritable(e),t&&this.setReadable(t)};a(f,i.Duplex),f.obj=function(e,t,n){return n||(n={}),n.objectMode=!0,n.highWaterMark=16,new f(e,t,n)},f.prototype.cork=function(){1==++this._corked&&this.emit("cork")},f.prototype.uncork=function(){this._corked&&0==--this._corked&&this.emit("uncork")},f.prototype.setWritable=function(e){if(this._unwrite&&this._unwrite(),this.destroyed)e&&e.destroy&&e.destroy();else if(null!==e&&!1!==e){var t=this,r=o(e,{writable:!0,readable:!1},c(this,this._forwardEnd)),i=function(){var e=t._ondrain;t._ondrain=null,e&&e()};this._unwrite&&n.nextTick(i),this._writable=e,this._writable.on("drain",i),this._unwrite=function(){t._writable.removeListener("drain",i),r()},this.uncork()}else this.end()},f.prototype.setReadable=function(e){if(this._unread&&this._unread(),this.destroyed)e&&e.destroy&&e.destroy();else{if(null===e||!1===e)return this.push(null),void this.resume();var t,n=this,r=o(e,{writable:!1,readable:!0},c(this)),a=function(){n._forward()},u=function(){n.push(null)};this._drained=!0,this._readable=e,this._readable2=e._readableState?e:(t=e,new i.Readable({objectMode:!0,highWaterMark:16}).wrap(t)),this._readable2.on("readable",a),this._readable2.on("end",u),this._unread=function(){n._readable2.removeListener("readable",a),n._readable2.removeListener("end",u),r()},this._forward()}},f.prototype._read=function(){this._drained=!0,this._forward()},f.prototype._forward=function(){if(!this._forwarding&&this._readable2&&this._drained){var e;for(this._forwarding=!0;this._drained&&null!==(e=u(this._readable2));)this.destroyed||(this._drained=this.push(e));this._forwarding=!1}},f.prototype.destroy=function(e){if(!this.destroyed){this.destroyed=!0;var t=this;n.nextTick((function(){t._destroy(e)}))}},f.prototype._destroy=function(e){if(e){var t=this._ondrain;this._ondrain=null,t?t(e):this.emit("error",e)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit("close")},f.prototype._write=function(e,t,n){return this.destroyed?n():this._corked?l(this,this._write.bind(this,e,t,n)):e===s?this._finish(n):this._writable?void(!1===this._writable.write(e)?this._ondrain=n:n()):n()},f.prototype._finish=function(e){var t=this;this.emit("preend"),l(this,(function(){var n,r;n=t._forwardEnd&&t._writable,r=function(){!1===t._writableState.prefinished&&(t._writableState.prefinished=!0),t.emit("prefinish"),l(t,e)},n?n._writableState&&n._writableState.finished?r():n._writableState?n.end(r):(n.end(),r()):r()}))},f.prototype.end=function(e,t,n){return"function"==typeof e?this.end(null,null,e):"function"==typeof t?this.end(e,null,t):(this._ended=!0,e&&this.write(e),this._writableState.ending||this.write(s),i.Writable.prototype.end.call(this,n))},t.exports=f}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{_process:79,buffer:11,"end-of-stream":28,inherits:61,"readable-stream":96,"stream-shift":104}],119:[function(e,t,n){(function(n,r){(function(){"use strict";var i=e("readable-stream").Transform,o=e("duplexify"),a=e("ws"),u=e("safe-buffer").Buffer;t.exports=function(e,t,s){var l,c,f="browser"===n.title,d=!!r.WebSocket,p=f?function e(t,n,r){if(c.bufferedAmount>m)return void setTimeout(e,y,t,n,r);g&&"string"==typeof t&&(t=u.from(t,"utf8"));try{c.send(t)}catch(e){return r(e)}r()}:function(e,t,n){if(c.readyState!==c.OPEN)return void n();g&&"string"==typeof e&&(e=u.from(e,"utf8"));c.send(e,n)};t&&!Array.isArray(t)&&"object"==typeof t&&(s=t,t=null,("string"==typeof s.protocol||Array.isArray(s.protocol))&&(t=s.protocol));s||(s={});void 0===s.objectMode&&(s.objectMode=!(!0===s.binary||void 0===s.binary));var h=function(e,t,n){var r=new i({objectMode:e.objectMode});return r._write=t,r._flush=n,r}(s,p,(function(e){c.close(),e()}));s.objectMode||(h._writev=S);var m=s.browserBufferSize||524288,y=s.browserBufferTimeout||1e3;"object"==typeof e?c=e:(c=d&&f?new a(e,t):new a(e,t,s)).binaryType="arraybuffer";var b=void 0===c.addEventListener;c.readyState===c.OPEN?l=h:(l=l=o(void 0,void 0,s),s.objectMode||(l._writev=S),b?c.addEventListener("open",v):c.onopen=v);l.socket=c,b?(c.addEventListener("close",w),c.addEventListener("error",E),c.addEventListener("message",_)):(c.onclose=w,c.onerror=E,c.onmessage=_);h.on("close",(function(){c.close()}));var g=!s.objectMode;function v(){l.setReadable(h),l.setWritable(h),l.emit("connect")}function w(){l.end(),l.destroy()}function E(e){l.destroy(e)}function _(e){var t=e.data;t=t instanceof ArrayBuffer?u.from(t):u.from(t,"utf8"),h.push(t)}function S(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)"string"==typeof e[r].chunk?n[r]=u.from(e[r],"utf8"):n[r]=e[r].chunk;this._write(u.concat(n),"binary",t)}return l}}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:79,duplexify:118,"readable-stream":96,"safe-buffer":100,ws:120}],120:[function(e,t,n){var r=null;"undefined"!=typeof WebSocket?r=WebSocket:"undefined"!=typeof MozWebSocket?r=MozWebSocket:"undefined"!=typeof window&&(r=window.WebSocket||window.MozWebSocket),t.exports=r},{}],121:[function(e,t,n){(function(n){(function(){"use strict";var r=e("for-each"),i=e("available-typed-arrays"),o=e("call-bind"),a=e("call-bind/callBound"),u=e("gopd"),s=a("Object.prototype.toString"),l=e("has-tostringtag/shams")(),c="undefined"==typeof globalThis?n:globalThis,f=i(),d=a("String.prototype.slice"),p=Object.getPrototypeOf,h=a("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},m={__proto__:null};r(f,l&&u&&p?function(e){var t=new c[e];if(Symbol.toStringTag in t){var n=p(t),r=u(n,Symbol.toStringTag);if(!r){var i=p(n);r=u(i,Symbol.toStringTag)}m["$"+e]=o(r.get)}}:function(e){var t=new c[e],n=t.slice||t.set;n&&(m["$"+e]=o(n))});t.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!l){var t=d(s(e),8,-1);return h(f,t)>-1?t:"Object"===t&&function(e){var t=!1;return r(m,(function(n,r){if(!t)try{n(e),t=d(r,1)}catch(e){}})),t}(e)}return u?function(e){var t=!1;return r(m,(function(n,r){if(!t)try{"$"+n(e)===r&&(t=d(r,1))}catch(e){}})),t}(e):null}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"available-typed-arrays":7,"call-bind":13,"call-bind/callBound":12,"for-each":40,gopd:49,"has-tostringtag/shams":54}],122:[function(e,t,n){t.exports=function e(t,n){if(t&&n)return e(t)(n);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){r[e]=t[e]})),r;function r(){for(var e=new Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];var r=t.apply(this,e),i=e[e.length-1];return"function"==typeof r&&r!==i&&Object.keys(i).forEach((function(e){r[e]=i[e]})),r}}},{}],123:[function(e,t,n){t.exports={name:"videomail-client",version:"8.0.2",description:"A wicked npm package to record videos directly in the browser, wohooo!",author:"Michael Heuberger <michael.heuberger@binarykitchen.com>",contributors:[{name:"Michael Heuberger",email:"michael.heuberger@binarykitchen.com"}],homepage:"https://videomail.io",repository:{type:"git",url:"https://github.com/binarykitchen/videomail-client.git"},license:"CC0-1.0",readmeFilename:"README.md",module:"src/js/index.js",main:"prototype/js/videomail-client.js",scripts:{build:"gulp build",clean:"rm -rf node_modules && rm -rf package-lock.json",test:"gulp test",watch:"NODE_NO_HTTP2=1 gulp watch",audit:"npx audit-ci --config audit-ci.json",patch:"./env/dev/release.sh --importance=patch",minor:"./env/dev/release.sh --importance=minor",major:"./env/dev/release.sh --importance=major",lint:"eslint --color ./src ./test ./gulpfile.js","lint:fix":"npm --silent run lint -- --fix",prettier:"prettier --check ./src ./test gulpfile.js","prettier:fix":"prettier --write ./src ./test gulpfile.js"},engines:{node:">=20.5.1",npm:">=9.8.0"},keywords:["webcam","video","videomail","encoder","getusermedia","audio","recorder"],dependencies:{"@babel/core":"7.24.7","add-eventlistener-with-options":"1.25.5",animitter:"3.0.0","audio-sample":"3.0.1","canvas-to-buffer":"3.0.1","classlist.js":"1.1.20150312",contains:"0.1.1","core-js":"3.37.1","create-error":"0.3.1",deepmerge:"4.3.1",defined:"1.0.1",despot:"1.1.3","document-visibility":"1.0.1","element-closest":"3.0.2",filesize:"10.1.2","get-form-data":"3.0.0",hidden:"1.1.1","humanize-duration":"3.32.1",hyperscript:"2.0.2","insert-css":"2.0.0","iphone-inline-video":"2.2.2","is-power-of-two":"1.0.0",keymirror:"0.1.1","number-is-integer":"2.0.0",readystate:"0.4.1","request-frame":"1.5.3","safe-json-stringify":"1.2.0",superagent:"8.1.2","ua-parser-js":"1.0.38","websocket-stream":"5.5.2"},devDependencies:{"@babel/eslint-parser":"7.24.7","@babel/plugin-transform-runtime":"7.24.7","@babel/preset-env":"7.24.7","audit-ci":"6.6.1",autoprefixer:"10.4.19",babelify:"10.0.0","body-parser":"1.20.2",browserify:"17.0.0","connect-send-json":"1.0.0",cssnano:"6.0.5",del:"6.1.1",eslint:"8.57.0","eslint-config-prettier":"9.1.0","eslint-plugin-import":"2.29.1","eslint-plugin-node":"11.1.0","eslint-plugin-promise":"6.2.0","fancy-log":"2.0.0",glob:"10.4.2",gulp:"4.0.2","gulp-bump":"3.2.0","gulp-bytediff":"1.0.0","gulp-concat":"2.6.1","gulp-connect":"5.7.0","gulp-derequire":"3.0.0","gulp-if":"3.0.0","gulp-inject-string":"1.1.2","gulp-load-plugins":"2.0.8","gulp-plumber":"1.2.1","gulp-postcss":"10.0.0","gulp-rename":"2.0.0","gulp-sourcemaps":"3.0.0","gulp-stylus":"3.0.1","gulp-terser":"2.1.0","gulp-todo":"7.1.1",minimist:"1.2.8",nib:"1.2.0",postcss:"8.4.38",prettier:"3.3.2",router:"1.3.8",tape:"5.8.1","tape-catch":"1.0.6","tape-run":"11.0.0","vinyl-buffer":"1.0.1","vinyl-source-stream":"2.0.0",watchify:"4.0.0"}}},{}],124:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i,o,a=r(e("deepmerge")),u=r(e("readystate")),s=r(e("util")),l=r(e("./options")),c=r(e("./constants")),f=r(e("./events")),d=r(e("./util/collectLogger")),p=r(e("./util/eventEmitter")),h=r(e("./wrappers/container")),m=r(e("./wrappers/visuals/replay")),y=r(e("./wrappers/optionsWrapper")),b=r(e("./util/browser")),g=r(e("./resource"));var v=function(e){var t,n,r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,a.default)(l.default,e,{arrayMerge:function(e,t){return t}});return i=i||new d.default(t),t.logger=i,t.debug=t.logger.debug,y.default.addFunctions(t),t}(e),s=new h.default(r),c=r.debug;p.default.call(this,r,"VideomailClient"),this.events=f.default,this.show=function(){s.isBuilt()?s.show():this.once(f.default.BUILT,s.show)},this.replay=function(e,n){u.default.interactive((function(){if("string"==typeof n&&(n=document.getElementById(n)),n)s.isOutsideElementOf(n)&&(t=new m.default(n,r)).build();else if(s.isBuilt()||s.build(),!s.hasElement())throw u.default.removeAllListeners(),new Error("Unable to replay video without a container nor parent element.");t||(t=s.getReplay()),n||(n=t.getParentElement()),e&&(e=s.addPlayerDimensions(e,n)),s.isOutsideElementOf(n)?s.hideForm({deep:!0}):s.loadForm(e),setTimeout((function(){t.setVideomail(e),s.showReplayOnly()}),1e3)}))},this.startOver=function(e){t&&(t.hide(),t.reset()),s.startOver(e)},this.unload=function(e){u.default.removeAllListeners(),s.unload(e)},this.hide=function(){s.hide()},this.get=function(e,t){new g.default(r).get(e,(function(e,n){e?t(e):t(null,s.addPlayerDimensions(n))}))},this.canRecord=function(){return function(e){return o||(o=new b.default(e)),o}(r).canRecord()},this.isDirty=function(){return s.isDirty()},this.isRecording=function(){return s.isRecording()},this.submit=function(){s.submit()},this.getLogLines=function(){if(r.logger&&r.logger.getLines)return r.logger.getLines()},n=!1,u.default.interactive((function(e){c("Client: interactive(),","previousState =",e+",","!building =",!n+",","!isBuilt() =",!s.isBuilt()),n||s.isBuilt()||(n=!0,s.build(),n=!1)}))};s.default.inherits(v,p.default),Object.keys(c.default.public).forEach((function(e){v[e]=c.default.public[e]})),v.events=f.default;n.default=v},{"./constants":125,"./events":126,"./options":127,"./resource":128,"./util/browser":130,"./util/collectLogger":131,"./util/eventEmitter":132,"./wrappers/container":139,"./wrappers/optionsWrapper":142,"./wrappers/visuals/replay":152,"@babel/runtime/helpers/interopRequireDefault":1,deepmerge:21,readystate:97,util:116}],125:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;n.default={SITE_NAME_LABEL:"x-videomail-site-name",VERSION_LABEL:"videomailClientVersion",public:{ENC_TYPE_APP_JSON:"application/json",ENC_TYPE_FORM:"application/x-www-form-urlencoded"}}},{}],126:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("keymirror"));n.default=(0,i.default)({BUILT:null,FORM_READY:null,LOADING_USER_MEDIA:null,USER_MEDIA_READY:null,CONNECTING:null,CONNECTED:null,DISCONNECTED:null,COUNTDOWN:null,RECORDING:null,STOPPING:null,STOPPED:null,PROGRESS:null,BEGIN_AUDIO_ENCODING:null,BEGIN_VIDEO_ENCODING:null,RESETTING:null,PAUSED:null,RESUMING:null,PREVIEW:null,PREVIEW_SHOWN:null,REPLAY_SHOWN:null,INVALID:null,VALIDATING:null,VALID:null,SUBMITTING:null,SUBMITTED:null,ERROR:null,BLOCKING:null,SENDING_FIRST_FRAME:null,FIRST_FRAME_SENT:null,HIDE:null,NOTIFYING:null,ENABLING_AUDIO:null,DISABLING_AUDIO:null,LOADED_META_DATA:null,EVENT_EMITTED:null,GOING_BACK:null,STARTING_OVER:null,ASKING_WEBCAM_PERMISSION:null,VISIBLE:null,INVISIBLE:null,SWITCH_FACING_MODE:null,SERVER_READY:null})},{"@babel/runtime/helpers/interopRequireDefault":1,keymirror:72}],127:[function(e,t,n){(function(t){(function(){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=e("../../package.json"),i="production"===t.env.NODE_ENV;n.default={logger:null,logStackSize:30,verbose:!i,baseUrl:"https://videomail.io",socketUrl:"wss://videomail.io",siteName:"videomail-client-demo",cache:!0,insertCss:!0,enablePause:!0,enableAutoPause:!0,enableSpace:!0,submitWithVideomail:!1,disableSubmit:!1,enableAutoValidation:!0,enableAutoSubmission:!0,enctype:"application/json",selectors:{containerId:"videomail",replayClass:"replay",userMediaClass:"userMedia",visualsClass:"visuals",buttonClass:null,buttonsClass:"buttons",recordButtonClass:"record",pauseButtonClass:"pause",resumeButtonClass:"resume",previewButtonClass:"preview",recordAgainButtonClass:"recordAgain",submitButtonClass:"submit",subjectInputName:"subject",fromInputName:"from",toInputName:"to",ccInputName:"cc",bccInputName:"bcc",bodyInputName:"body",sendCopyInputName:"sendCopy",keyInputName:"videomail_key",parentKeyInputName:"videomail_parent_key",aliasInputName:"videomail_alias",formId:null,submitButtonId:null,submitButtonSelector:null},audio:{enabled:!1,switch:!1,volume:.2,bufferSize:"auto"},video:{fps:15,limitSeconds:30,countdown:3,width:"auto",height:"auto",facingMode:"user",facingModeButton:!1},image:{quality:.42,types:["webp","jpeg"]},text:{pausedHeader:"Paused",pausedHint:null,sending:"Teleporting",encoding:"Encoding",limitReached:"Limit reached",audioOff:"Audio off",audioOn:"Audio on",buttons:{record:"Record video",recordAgain:"Record again",resume:"Resume",pause:"Pause",preview:"Preview"}},notifier:{entertain:!1,entertainClass:"bg",entertainLimit:6,entertainInterval:9e3},timeouts:{userMedia:2e4,connection:1e4,pingInterval:35e3},loadUserMediaOnRecord:!1,callbacks:{adjustFormDataBeforePosting:null},defaults:{from:null,to:null,cc:null,bcc:null,subject:null,body:null},playerOnly:!1,displayErrors:!0,adjustFormOnBrowserError:!1,reportErrors:!1,fakeUaString:null,version:r.version}}).call(this)}).call(this,e("_process"))},{"../../package.json":123,_process:79}],128:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var t={};function n(t,n){return e.defaults[n]&&!t[n]&&(t[n]=e.defaults[n]),t}function r(e,t){return t&&t.body&&t.body.error&&!(e=t.body.error).message&&t.text&&(e.message=t.text),e}function s(n,s,l,c){c||(c=l,l=null);var f={},d=e.baseUrl+"/videomail/";l&&(d+=l);var p=(0,i.default)(n,d);f[o.default.SITE_NAME_LABEL]=e.siteName,p.query(f).set("Timezone-Id",u).send(s).timeout(e.timeout).end((function(n,i){if(n=r(n,i))c(n);else{var o=i.body&&i.body.videomail?i.body.videomail:null;e.cache&&s[a]&&(t[s[a]]=o),c(null,o,i.body)}}))}this.get=function(n,s){e.cache&&t[n]?setTimeout((function(){s(null,t[n])}),0):function(n,s){i.default.get("/videomail/"+n+"/snapshot").set("Accept","application/json").set("Timezone-Id",u).set(o.default.SITE_NAME_LABEL,e.siteName).timeout(e.timeouts.connection).end((function(n,i){if(n=r(n,i))s(n);else{var o=i.body?i.body:null;e.cache&&(t[a]=o),s(null,o)}}))}(n,s)},this.reportError=function(t,n){var a={},u=e.baseUrl+"/client-error/",s=(0,i.default)("post",u);a[o.default.SITE_NAME_LABEL]=e.siteName,s.query(a).send(t).timeout(e.timeout).end((function(e,t){(e=r(e,t))?n&&n(e):n&&n()}))},this.post=function(t,r){(t=function(t){return e.defaults&&(t=n(t,"from"),t=n(t,"to"),t=n(t,"cc"),t=n(t,"bcc"),t=n(t,"subject"),t=n(t,"body")),t}(t))[o.default.VERSION_LABEL]=e.version,e.callbacks.adjustFormDataBeforePosting?e.callbacks.adjustFormDataBeforePosting(t,(function(e,t){e?r(e):s("post",t,r)})):s("post",t,r)},this.put=function(e,t){s("put",e,e.key,t)},this.form=function(t,n,a){var s;switch(e.enctype){case o.default.public.ENC_TYPE_APP_JSON:s="json";break;case o.default.public.ENC_TYPE_FORM:s="form";break;default:setTimeout((function(){a(new Error("Invalid enctype given: "+e.enctype))}),0)}s&&i.default.post(n).type(s).set("Timezone-Id",u).send(t).timeout(e.timeout).end((function(e,t){(e=r(e,t))?a(e):a(null,t)}))}};var i=r(e("superagent")),o=r(e("./constants")),a="alias",u=Intl.DateTimeFormat().resolvedOptions().timeZone},{"./constants":125,"@babel/runtime/helpers/interopRequireDefault":1,superagent:106}],129:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){var n,r,l,c=new o.default(t);function f(){return window.AudioContext||window.webkitAudioContext}function d(){return!!f()&&!!p()}function p(){if(!l){var e=f();l=new e}return l}this.init=function(e){t.debug("AudioRecorder: init()");var i=p().createGain();try{r=p().createMediaStreamSource(e)}catch(e){throw a.default.create("Webcam has no audio",e.toString(),t)}var o=t.audio.bufferSize;if("auto"===o&&(o=c.isFirefox()?512:2048),!(0,u.default)(o))throw a.default.create("Audio buffer size must be a power of two.",t);if(!t.audio.volume||t.audio.volume>1)throw a.default.create("Audio volume must be between zero and one.",t);i.gain.value=t.audio.volume,n=p().createScriptProcessor(o,s,s),r.connect(n),n.connect(p().destination),r.connect(i),i.connect(n)},this.record=function(r){t.debug("AudioRecorder: record()"),n.onaudioprocess=function(t){!function(t,n){if(e.isRecording()&&!e.isPaused()){var r=t.inputBuffer.getChannelData(0);n(new i.default(r))}}(t,r)}},this.stop=function(){t.debug("AudioRecorder: stop()"),n&&(n.onaudioprocess=void 0),r&&r.disconnect(),d()&&(p().close?p().close().then((function(){t.debug("AudioRecorder: audio context is closed"),l=null})).catch((function(e){throw a.default.create(e,t)})):l=null)},this.getSampleRate=function(){return d()?p().sampleRate:-1}};var i=r(e("audio-sample")),o=r(e("./browser")),a=r(e("./videomailError")),u=r(e("is-power-of-two")),s=1},{"./browser":130,"./videomailError":137,"@babel/runtime/helpers/interopRequireDefault":1,"audio-sample":6,"is-power-of-two":69}],130:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("@babel/runtime/helpers/typeof")),o=r(e("defined")),a=r(e("ua-parser-js")),u=r(e("./videomailError"));n.default=function(e){e=e||{};var t,n="http://www.mozilla.org/firefox/update/",r="https://www.microsoft.com/en-us/download/details.aspx?id=48126",s="http://www.google.com/chrome/",l="http://www.chromium.org/getting-involved/download-chromium",c=(0,o.default)(e.fakeUaString,"undefined"!=typeof window&&window.navigator&&window.navigator.userAgent,""),f=new a.default(c).getResult(),d="iOS"===f.os.name,p=parseFloat(f.browser.version),h="Chrome"===f.browser.name,m="Brave"===f.browser.name,y="Chromium"===f.browser.name,b="Firefox"===f.browser.name,g=parseFloat(f.os.version),v="Windows"===f.os.name,w="Edge"===f.browser.name||v&&g>=10,E=/IE/.test(f.browser.name),_=/Safari/.test(f.browser.name),S=/Opera/.test(f.browser.name),R=/Android/.test(f.os.name),A=h||y,O="Facebook"===f.browser.name,k=d||R,T=_&&p>=11,x=d&&g>=11,j=d&&g<11,M=e.fakeHttps||"https:"===window.location.protocol,D=A||b||R||S||w||T||x||m,C=this;function N(){var e;return(e=j?"On iPads or iPhones below iOS v11 this camera feature is missing.<br/><br/>For now, we recommend you to upgrade iOS or to use an Android device.":function(){var e;return b?e=d?"Firefox on iOS is not ready for cameras yet. Hopefully in near future ...":'Probably you need to <a href="'+n+'" target="_blank">upgrade Firefox</a> to fix this.':h?e=d?"Use Safari instead. Apple doesn't give Chrome access to iPhone cameras (booo).":'Probably you need to <a href="'+s+'" target="_blank">upgrade Chrome</a> to fix this.':y?e='Probably you need to <a href="'+l+'" target="_blank">upgrade Chromium</a> to fix this.':E?e='Instead of Internet Explorer you need to upgrade to <a href="'+r+'" target="_blank">Edge</a>.':T?e="Probably you need to shut down Safari and restart it, this for correct webcam access.":_&&(e='Safari below version 11 has no webcam support.<br/>Better upgrade Safari or pick <a href="'+s+'" target="_blank">Chrome</a>, <a href="'+n+'" target="_blank">Firefox</a> or Android.'),e}())||(e=C.isChromeBased()||C.isFirefox()||_?"For the webcam feature, your browser needs an upgrade.":O?'Hence we recommend you to use a real browser like <a href="'+s+'" target="_blank">Chrome</a>, <a href="'+n+'" target="_blank">Firefox</a> or <a href="'+r+'" target="_blank">Edge</a>.':'Hence we recommend you to use either <a href="'+s+'" target="_blank">Chrome</a>, <a href="'+n+'" target="_blank">Firefox</a>, <a href="'+r+'" target="_blank">Edge</a> or Android.'),e}function I(e,t){var n;return e&&e.canPlayType&&(n=e.canPlayType("video/"+t)),""!==n&&n}this.canRecord=function(){var e="undefined"!=typeof navigator,t=!1;e&&navigator.mediaDevices&&navigator.mediaDevices.getUserMedia?t=!0:t="function"===(e&&(0,i.default)(navigator.getUserMedia_));return t},this.checkRecordingCapabilities=function(){var t;if(M){if(!D||!this.canRecord()){var n,r=[];j?r.push(u.default.IOS_PROBLEM):r.push(u.default.BROWSER_PROBLEM),n=D?k?O?"Sorry, the Facebook app cannot record from your mobile camera":"Sorry, your browser cannot record from your mobile camera":"Sorry, your browser cannot record from webcams":k?"Sorry, your browser is unable to use your mobile camera":"Sorry, your browser is unable to use webcams",j&&(e.reportErrors=!1),t=u.default.create({message:n},N(),e,{classList:r})}}else t=u.default.create({message:"Sorry, your page is insecure"},"Please switch to HTTPS to ensure all is encrypted.",e,{classList:[u.default.BROWSER_PROBLEM]});return t},this.checkBufferTypes=function(){var t;return"undefined"==typeof window||void 0===window.atob?t=u.default.create("atob is not supported",e):void 0===window.ArrayBuffer?t=u.default.create("ArrayBuffers are not supported",e):void 0===window.Uint8Array&&(t=u.default.create("Uint8Arrays are not supported",e)),t},this.getVideoType=function(e){return!t&&e&&(I(e,"mp4")?t="mp4":I(e,"webm")&&(t="webm")),"webm"!==t&&"mp4"!==t&&(t="mp4"),t&&""!==t||(t="mp4"),t},this.getNoAccessIssue=function(){var t;return t=this.isChromeBased()?"Click on the allow button to grant access to your webcam.":this.isFirefox()?"Please grant Firefox access to your webcam.":"Your system does not let your browser access your webcam.",u.default.create("Unable to access webcam",t,e)},this.isChromeBased=function(){return A},this.isFirefox=function(){return b},this.isEdge=function(){return w},this.isAndroid=function(){return R},this.isMobile=function(){return"mobile"===f.device.type},this.isOkSafari=function(){return T},this.isIOS=function(){return d},this.getUsefulData=function(){return{browser:f.browser,device:f.device,os:f.os,engine:f.engine,userAgent:c}}}},{"./videomailError":137,"@babel/runtime/helpers/interopRequireDefault":1,"@babel/runtime/helpers/typeof":2,defined:23,"ua-parser-js":112}],131:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new o.default(e),n=e.logger||console,r=e.selectors&&e.selectors.containerId||"undefined container id",a=[];function u(t,n){var r=i.default.format.apply(i.default,n);return a.length>e.logStackSize&&a.pop(),a.push("["+t+"] "+r),r}function s(e){return"#"+r+" ["+(new Date).toLocaleTimeString()+"] > "+e}this.debug=function(){var r=[].slice.call(arguments,0);r[0]=s(r[0]);var i=u("debug",r);e.verbose&&(t.isFirefox()?n.debug(i):n.groupCollapsed?(n.groupCollapsed(i),n.trace("Trace"),n.groupEnd()):n.debug?n.debug(i):console.log(i))},this.error=function(){var e=[].slice.call(arguments,0);e[0]=s(e[0]),n.error(u("error",e))},this.warn=function(){var e=[].slice.call(arguments,0);e[0]=s(e[0]),n.warn(u("warn",e))},this.getLines=function(){return a}};var i=r(e("util")),o=r(e("./browser"))},{"./browser":130,"@babel/runtime/helpers/interopRequireDefault":1,util:116}],132:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){this.emit=function(n){var r,u=Array.prototype.slice.call(arguments,0);if(!n)throw o.default.create("You cannot emit without an event.",e);if(n===a.default.ERROR){var s=u[1];s=o.default.create(s,e),u[1]=s}e.debug&&("removeListener"!==n&&"newListener"!==n&&(u[1]&&(r=u.slice(1)),r?e.debug("%s emits: %s",t,n,r):e.debug("%s emits: %s",t,n)));return i.default.emit.apply(i.default,u)},this.on=function(e,t){return i.default.on(e,t)},this.once=function(e,t){return i.default.once(e,t)},this.listeners=function(e){return i.default.listeners(e)},this.removeListener=function(e,t){return i.default.removeListener(e,t)},this.removeAllListeners=function(){i.default.removeAllListeners()}};var i=r(e("despot")),o=r(e("./videomailError")),a=r(e("./../events"))},{"./../events":126,"./videomailError":137,"@babel/runtime/helpers/interopRequireDefault":1,despot:24}],133:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=e("filesize"),o=r(e("humanize-duration"));n.default={filesize:function(e,t){return(0,i.filesize)(e,{round:t})},toTime:function(e){return(0,o.default)(e)}}},{"@babel/runtime/helpers/interopRequireDefault":1,filesize:39,"humanize-duration":57}],134:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;n.default=["loadstart","suspend","progress","abort","emptied","stalled","pause","loadeddata","waiting","playing","canplay","canplaythrough","seeking","seeked","ended","ratechange","durationchange","volumechange"]},{}],135:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){if(null===e)return"null";if(void 0===e)return"undefined";if("string"==typeof e)return e;if(Array.isArray(e))return function(e){if(e&&e.length>0){var t=[];return e.forEach((function(e){e&&t.push((0,o.default)(e))})),a+t.join(u)}}(e);if("object"===(0,i.default)(e))return function(e,t){var n,r=Object.getOwnPropertyNames(e),i=t&&t.excludes||[],s=[];if(i.push("stack"),r&&r.length>0){var l=!1;r.forEach((function(t){i&&(l=i.indexOf(t)>=0),!l&&e[t]&&s.push((0,o.default)(e[t]))}))}1===s.length?n=s.join():s.length>1&&(n=a+s.join(u));return n}(e,t);return e.toString()};var i=r(e("@babel/runtime/helpers/typeof")),o=r(e("safe-json-stringify")),a="- ",u="<br/>"+a},{"@babel/runtime/helpers/interopRequireDefault":1,"@babel/runtime/helpers/typeof":2,"safe-json-stringify":101}],136:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.screen||(e.screen={});(0,i.default)("native"),t.mediaDevices&&t.mediaDevices.getUserMedia||(t.getUserMedia_=t.getUserMedia||t.webkitGetUserMedia||t.mozGetUserMedia||t.msGetUserMedia);!e.AudioContext&&e.webkitAudioContext&&(e.AudioContext=e.webkitAudioContext);e.URL||(e.URL=e.webkitURL||e.mozURL||e.msURL);t.connection||(t.connection=t.mozConnection||t.webkitConnection);var n,r=["debug","groupCollapsed","groupEnd","error","exception","info","log","trace","warn"],o={};e.console?o=e.console:e.console=function(){};var a=r.length;for(;a--;)o[n=r[a]]||(o[n]=function(){})},e("classlist.js");var i=r(e("request-frame"))},{"@babel/runtime/helpers/interopRequireDefault":1,"classlist.js":16,"request-frame":99}],137:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("@babel/runtime/helpers/typeof")),o=r(e("./../resource")),a=r(e("create-error")),u=r(e("./pretty")),s=r(e("util")),l="Videomail Error",c=(0,a.default)(Error,l,{explanation:void 0,logLines:void 0,useragent:void 0,url:void 0,stack:void 0}),f=function(e){return(0,u.default)(e,{excludes:["stack"]})};c.PERMISSION_DENIED="PERMISSION_DENIED",c.NOT_ALLOWED_ERROR="NotAllowedError",c.NOT_CONNECTED="Not connected",c.DOM_EXCEPTION="DOMException",c.STARTING_FAILED="Starting video failed",c.MEDIA_DEVICE_NOT_SUPPORTED="MediaDeviceNotSupported",c.BROWSER_PROBLEM="browser-problem",c.WEBCAM_PROBLEM="webcam-problem",c.IOS_PROBLEM="ios-problem",c.OVERCONSTRAINED="OverconstrainedError",c.NOT_FOUND_ERROR="NotFoundError",c.NOT_READABLE_ERROR="NotReadableError",c.SECURITY_ERROR="SecurityError",c.TRACK_START_ERROR="TrackStartError",c.INVALID_STATE_ERROR="InvalidStateError",c.create=function(t,n,r,a){if(t&&t.name===l)return t;!r&&n&&(r=n,n=void 0),a=a||{};var u=(r=r||{})&&r.debug||console.log,d=r&&r.isAudioEnabled&&r.isAudioEnabled();u("VideomailError: create()",t,n||"(no explanation set)");var p,h,m,y=a.classList||[],b=new(0,e("./browser").default)(r);switch("object"===(0,i.default)(t)?t.name===c.TRACK_START_ERROR?p=c.TRACK_START_ERROR:t.name===c.SECURITY_ERROR?p=c.SECURITY_ERROR:8===t.code&&t.name===c.NotFoundError?p=c.NotFoundError:35===t.code||t.name===c.NOT_ALLOWED_ERROR?p=c.NOT_ALLOWED_ERROR:1===t.code&&1===t.PERMISSION_DENIED?p=c.PERMISSION_DENIED:t.constructor&&t.constructor.name===c.DOM_EXCEPTION?p=t.name===c.NOT_READABLE_ERROR?c.NOT_READABLE_ERROR:c.DOM_EXCEPTION:t.constructor&&t.constructor.name===c.OVERCONSTRAINED?p=c.OVERCONSTRAINED:t.message===c.STARTING_FAILED?p=t.message:t.name?p=t.name:"error"===t.type&&0===t.target.bufferedAmount&&(p=c.NOT_CONNECTED):p=t===c.NOT_CONNECTED?c.NOT_CONNECTED:t,m=t&&t.stack?t.stack:(new Error).stack,p){case c.SECURITY_ERROR:h="The operation was insecure",n="Probably you have disallowed Cookies for this page?",y.push(c.BROWSER_PROBLEM);break;case c.OVERCONSTRAINED:h="Invalid webcam constraints",n=t.constraint?"width"===t.constraint?"Your webcam does not meet the width requirement.":"Unmet constraint: "+t.constraint:t.toString();break;case"MediaDeviceFailedDueToShutdown":h="Webcam is shutting down",n="This happens your webcam is already switching off and not giving you permission to use it.";break;case"SourceUnavailableError":h="Source of your webcam cannot be accessed",n="Probably it is locked from another process or has a hardware error.",t.message&&(t.message+=" Details: "+t.message);break;case c.NOT_FOUND_ERROR:case"NO_DEVICES_FOUND":d?(h="No webcam nor microphone found",n="Your browser cannot find a webcam with microphone attached to your machine."):(h="No webcam found",n="Your browser cannot find a webcam attached to your machine."),y.push(c.WEBCAM_PROBLEM);break;case"PermissionDismissedError":h="Ooops, you didn't give me any permissions?",n="Looks like you skipped the webcam permission dialogue.<br/>Please grant access next time the dialogue appears.",y.push(c.WEBCAM_PROBLEM);break;case c.NOT_ALLOWED_ERROR:case c.PERMISSION_DENIED:case"PermissionDeniedError":h="Permission denied",n="Cannot access your webcam. This can have two reasons:<br/>a) you blocked access to webcam; or<br/>b) your webcam is already in use.",y.push(c.WEBCAM_PROBLEM);break;case"HARDWARE_UNAVAILABLE":h="Webcam is unavailable",n="Maybe it is already busy in another window?",(b.isChromeBased()||b.isFirefox())&&(n+=" Or you have to allow access above?"),y.push(c.WEBCAM_PROBLEM);break;case c.NOT_CONNECTED:h="Unable to connect",n="Either the videomail server or your connection is down. Trying to reconnect every few seconds …";break;case"NO_VIDEO_FEED":h="No video feed found!",n="Your webcam is already used in another browser.",y.push(c.WEBCAM_PROBLEM);break;case c.STARTING_FAILED:h="Starting video failed",n="Most likely this happens when the webam is already active in another browser.",y.push(c.WEBCAM_PROBLEM);break;case"DevicesNotFoundError":h="No available webcam could be found",n="Looks like you do not have any webcam attached to your machine; or the one you plugged in is already used.",y.push(c.WEBCAM_PROBLEM);break;case c.NOT_READABLE_ERROR:case c.TRACK_START_ERROR:h="No access to webcam",n="A hardware error occurred which prevented access to your webcam.",y.push(c.WEBCAM_PROBLEM);break;case c.INVALID_STATE_ERROR:h="Invalid state",n="Video recording stream from your webcam already has finished.",y.push(c.WEBCAM_PROBLEM);break;case c.DOM_EXCEPTION:switch(t.code){case 8:h="Requested webcam not found",n="A webcam is needed but could not be found.",y.push(c.WEBCAM_PROBLEM);break;case 9:h="Security upgrade needed",n='Click <a href="'+("https:"+window.location.href.substring(window.location.protocol.length))+'">here</a> to switch to HTTPs which is more safe and enables encrypted videomail transfers.',y.push(c.BROWSER_PROBLEM);break;case 11:h="Invalid State",n="The object is in an invalid, unusable state.",y.push(c.BROWSER_PROBLEM);break;default:h="DOM Exception",n=f(t),y.push(c.BROWSER_PROBLEM)}break;case c.MEDIA_DEVICE_NOT_SUPPORTED:h="Media device not supported",n=f(t);break;default:var g=n;if(n&&"object"===(0,i.default)(n)&&(n=f(n)),!n&&g&&(n=g.message?g.message:"Inspected: "+s.default.inspect(g,{showHidden:!0})),t)if("string"==typeof t)h=t;else if(t.message&&(h=f(t.message)),t.explanation&&(n?n+=";<br/>"+f(t.explanation):n=f(t.explanation)),t.details){var v=f(t.details);n?n+=";<br/>"+v:n=v}h||(p&&(h=p),!n&&t&&(n=f(t)),f(h)===n&&(n=void 0))}var w=null;r.logger&&r.logger.getLines&&(w=r.logger.getLines()),m&&((h=new Error(h)).stack=m);var E="none";t&&(E="code="+(t.code?t.code:"undefined"),E+=", type="+(t.type?t.type:"undefined"),E+=", name="+(t.name?t.name:"undefined"),E+=", message="+(t.message?t.message:"undefined"));var _,S=new c(h,{explanation:n,logLines:w,client:b.getUsefulData(),url:window.location.href,siteName:r.siteName,code:E,stack:m}),R=!1;function A(e){return y.indexOf(e)>=0}return r.reportErrors&&(R="function"==typeof r.reportErrors?r.reportErrors(S):r.reportErrors),R&&(_=new o.default(r)),_&&_.reportError(S,(function(e){e&&console.error("Unable to report error",e)})),S.getClassList=function(){return y},S.removeDimensions=function(){return A(c.IOS_PROBLEM)||b.isMobile()},S.hideButtons=function(){return A(c.BROWSER_PROBLEM)||a.browserProblem||A(c.IOS_PROBLEM)},S.hideForm=function(){return A(c.IOS_PROBLEM)},S};n.default=c},{"./../resource":128,"./browser":130,"./pretty":135,"@babel/runtime/helpers/interopRequireDefault":1,"@babel/runtime/helpers/typeof":2,"create-error":20,util:116}],138:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("contains")),o=r(e("hidden")),a=r(e("hyperscript")),u=r(e("util")),s=r(e("../events")),l=r(e("../util/eventEmitter")),c=function(e,t){l.default.call(this,t,"Buttons");var n,r,u,c,f,d,p,h,m,y,b=this,g=t.debug;function v(e){e&&!Array.isArray(e)&&(e=[e]),e&&e.forEach((function(e){(0,o.default)(e,!0)}))}function w(e){e&&!Array.isArray(e)&&(e=[e]),e&&e.forEach((function(e){(0,o.default)(e,!1)}))}function E(e){var t=e&&!0;return e&&!Array.isArray(e)&&(e=[e]),e&&e.forEach((function(e){t=t&&e&&!(0,o.default)(e)})),t}function _(e){e&&!Array.isArray(e)&&(e=[e]),e&&e.forEach((function(e){e&&("INPUT"===e.tagName||"BUTTON"===e.tagName?e.disabled=!0:e.classList.add("disabled"))}))}function S(e){e&&!Array.isArray(e)&&(e=[e]),e&&e.forEach((function(e){e&&("INPUT"===e.tagName||"BUTTON"===e.tagName?e.disabled=!1:e.classList.remove("disabled"))}))}function R(e,t,n,r){return r&&_(e),n?e.type=n:e.type||(e.type="button"),!t&&v(e),e}function A(e,t){e.onclick=function(e){e&&e.preventDefault();try{t({event:e})}catch(e){b.emit(s.default.ERROR,e)}}}function O(e){var t,r;return e.id&&(t=document.getElementById(e.id)),t||(t=(0,a.default)("input#"+e.id,{type:"radio",name:e.name,value:e.value,checked:e.checked}),r=(0,a.default)("span.radioGroup",t,(0,a.default)("label",{htmlFor:e.id},e.label)),p&&(0,i.default)(n,p)?n.insertBefore(r,p):n.appendChild(r)),e.changeHandler&&(t.onchange=e.changeHandler),_(t),[t,r]}function k(e,r,o,u,s,l,c){var f,d=!(arguments.length>7&&void 0!==arguments[7])||arguments[7];return(f=s?document.getElementById(s):c?document.querySelector(c):n.querySelector("."+e))?f=R(f,u,l,d):(t.selectors.buttonClass&&(e+="."+t.selectors.buttonClass),(f=R(f=(0,a.default)("button."+e),u,l,d)).innerHTML=r,p&&(0,i.default)(n,p)?n.insertBefore(f,p):n.appendChild(f)),o&&A(f,o),f}function T(e){E(d)||e.paused||w(r),e.paused||(_(f),v(f)),t.enableAutoValidation||S(p),e.recordWhenReady||(E(h)&&S(h),E(m)&&S(m))}function x(){v(r),v(d),u&&(w(u),S(u)),S(f),w(f)}function j(){_(d),e.beginWaiting(),e.recordAgain()}function M(){e.submit()}function D(t){_(r),e.record(t)}function C(){g("Buttons: initEvents()"),b.on(s.default.USER_MEDIA_READY,(function(e){e.switchingFacingMode||function(e){T(e),E(r)&&!e.recordWhenReady&&S(r),t.enableAutoValidation&&_(p)}(e)})).on(s.default.PREVIEW,(function(){v(r),v(f),_(h),_(m),w(d),S(d),t.enableAutoValidation||S(p)})).on(s.default.PAUSED,(function(){b.adjustButtonsForPause()})).on(s.default.RECORDING,(function(e){!function(e){e>1?x():(_(m),_(h),_(d),_(r))}(e)})).on(s.default.FIRST_FRAME_SENT,(function(){x()})).on(s.default.RESUMING,(function(){v(c),v(r),u&&(S(u),w(u))})).on(s.default.STOPPING,(function(){_(f),_(r),v(u),v(c)})).on(s.default.COUNTDOWN,(function(){_(r),_(m),_(h)})).on(s.default.SUBMITTING,(function(){_(p),_(d)})).on(s.default.RESETTING,(function(){_(p),b.reset()})).on(s.default.INVALID,(function(){t.enableAutoValidation&&_(p)})).on(s.default.VALID,(function(){t.enableAutoValidation&&S(p)})).on(s.default.SUBMITTED,(function(){_(f),_(d),_(r),_(p)})).on(s.default.HIDE,(function(){v(r),v(f),v(d),v(c)})).on(s.default.FORM_READY,(function(e){T(e)})).on(s.default.REPLAY_SHOWN,(function(){b.hide()})).on(s.default.GOING_BACK,(function(){v(d),w(r),w(p)})).on(s.default.ENABLING_AUDIO,(function(){_(r),_(h),_(m)})).on(s.default.DISABLING_AUDIO,(function(){_(r),_(h),_(m)})).on(s.default.STARTING_OVER,(function(){w(p)})).on(s.default.CONNECTED,(function(){t.loadUserMediaOnRecord&&E(r)&&S(r)})).on(s.default.ERROR,(function(e){e.hideButtons&&e.hideButtons()&&t.adjustFormOnBrowserError&&b.hide()}))}this.enableSubmit=function(){S(p)},this.adjustButtonsForPause=function(){b.isCountingDown()||(u&&v(u),w(c),S(c),v(r),w(f),S(f))},this.reset=function(){t.debug("Buttons: reset()"),_(u),_(c),_(r),_(f),_(d)},this.isRecordAgainButtonEnabled=function(){return!d.disabled},this.isRecordButtonEnabled=function(){return!r.disabled},this.setSubmitButton=function(e){p=e},this.getSubmitButton=function(){return p},this.build=function(){(n=e.querySelector("."+t.selectors.buttonsClass))||(n=(0,a.default)("div."+t.selectors.buttonsClass),e.appendChild(n)),t.disableSubmit||(p?_(p):p=k(t.selectors.submitButtonClass,"Submit",null,!0,t.selectors.submitButtonId,"submit",t.selectors.submitButtonSelector,t.enableAutoValidation),!e.hasForm()&&p&&A(p,M)),r=k(t.selectors.recordButtonClass,t.text.buttons.record,D,!1),t.enablePause&&(u=k(t.selectors.pauseButtonClass,t.text.buttons.pause,e.pause,!1)),t.enablePause&&(c=k(t.selectors.resumeButtonClass,t.text.buttons.resume,e.resume,!1)),f=k(t.selectors.previewButtonClass,t.text.buttons.preview,e.stop,!1),d=k(t.selectors.recordAgainButtonClass,t.text.buttons.recordAgain,j,!1),t.audio&&t.audio.switch&&(m=O({id:"audioOffOption",name:"audio",value:"off",label:t.text.audioOff,checked:!t.isAudioEnabled(),changeHandler:function(){e.disableAudio()}}),h=O({id:"audioOnOption",name:"audio",value:"on",label:t.text.audioOn,checked:t.isAudioEnabled(),changeHandler:function(){e.enableAudio()}})),!y&&C(),y=!0},this.unload=function(){y=!1},this.hide=function(e){v(n),e&&e.deep&&(v(r),v(u),v(c),v(f),v(d),v(p))},this.show=function(){w(n)},this.isCountingDown=function(){return e.isCountingDown()}};u.default.inherits(c,l.default);n.default=c},{"../events":126,"../util/eventEmitter":132,"@babel/runtime/helpers/interopRequireDefault":1,contains:18,hidden:56,hyperscript:58,util:116}],139:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("document-visibility")),o=r(e("element-closest")),a=r(e("hidden")),u=r(e("insert-css")),s=r(e("util")),l=r(e("../../styles/css/main.min.css.js")),c=r(e("../events")),f=r(e("../resource")),d=r(e("../util/eventEmitter")),p=r(e("../util/videomailError")),h=r(e("./buttons")),m=r(e("./dimension")),y=r(e("./form")),b=r(e("./optionsWrapper")),g=r(e("./visuals"));(0,o.default)(window);var v=function(e){d.default.call(this,e,"Container");var t,n,r,o=this,s=(0,i.default)(),v=new g.default(this,e),w=new h.default(this,e),E=new f.default(e),_=document&&document.querySelector&&document.querySelector("html"),S=e.debug,R=!1,A=!1,O=!1;function k(){return"FORM"===t.tagName?t:e.selectors.formId?document.getElementById(e.selectors.formId):t.closest("form")}function T(){S("Container: initEvents()"),window.addEventListener("beforeunload",(function(e){o.unload(e)})),e.playerOnly||s.onChange((function(t){n&&(t?(e.isAutoPauseEnabled()&&o.isCountingDown()&&o.resume(),o.emit(c.default.VISIBLE)):(e.isAutoPauseEnabled()&&(o.isCountingDown()||o.isRecording())&&o.pause("document invisible"),o.emit(c.default.INVISIBLE)))})),e.enableSpace&&(e.playerOnly||window.addEventListener("keypress",(function(t){var n=t.target.tagName;t.target.isContentEditable||"true"===t.target.contentEditable||!0===t.target.contentEditable||"INPUT"===n||"TEXTAREA"===n||32===(t.keyCode?t.keyCode:t.which)&&(t.preventDefault(),e.enablePause?v.pauseOrResume():v.recordOrStop())}))),o.on(c.default.ERROR,(function(n){!function(t){R=!0,t.stack?e.logger.error(t.stack):e.logger.error(t),e.displayErrors?v.error(t):v.reset()}(n),j(n),n.removeDimensions&&n.removeDimensions()&&(t.style.width="auto")})),e.playerOnly||o.on(c.default.LOADED_META_DATA,(function(){x()}))}function x(){var n=v.getRecorderWidth(!0);if(n<1)throw p.default.create("Recorder width cannot be less than 1!",e);t.style.width=n+"px"}function j(e){v.unload(e),w.unload(),o.endWaiting()}function M(t,n,r,i){r&&""!==r||(r=document.baseURI),n&&(t[e.selectors.aliasInputName]=n.videomail.alias,e.submitWithVideomail&&(t.videomail=n.videomail)),E.form(t,r,i)}function D(e,t,n,r,i){o.endWaiting(),e?o.emit(c.default.ERROR,e):(A=!0,r&&i&&i.body&&Object.keys(i.body).forEach((function(e){r[e]=i.body[e]})),o.emit(c.default.SUBMITTED,n,r||i),i&&"text/html"===i.type&&i.text&&(document.body.innerHTML=i.text))}function C(e){return e&&"POST"===e.toUpperCase()}this.addPlayerDimensions=function(e,t){try{return e.playerHeight=this.calculateHeight({responsive:!0,videoWidth:e.width,ratio:e.height/e.width},t),e.playerWidth=this.calculateWidth({responsive:!0,videoHeight:e.playerHeight,ratio:e.height/e.width}),e}catch(e){o.emit(c.default.ERROR,e)}},this.limitWidth=function(n){return m.default.limitWidth(t,n,e)},this.limitHeight=function(t){return m.default.limitHeight(t,e)},this.calculateWidth=function(t){return m.default.calculateWidth(b.default.merge(e,t,!0))},this.calculateHeight=function(n,r){return r||(r=t||document.body),m.default.calculateHeight(r,b.default.merge(e,n,!0))},this.areVisualsHidden=function(){return v.isHidden()},this.hasElement=function(){return!!t},this.build=function(){try{(t=document.getElementById(e.selectors.containerId))&&(e.insertCss&&(0,u.default)(l.default,{prepend:!0}),!n&&T(),function(){if(e.hasDefinedWidth()&&e.video.width%2!=0)throw p.default.create("Width must be divisible by two.",e);if(e.hasDefinedHeight()&&e.video.height%2!=0)throw p.default.create("Height must be divisible by two.",e)}(),x(),e.playerOnly||function(){var t=k();if(t){S("Container: buildForm()");var n=(r=new y.default(o,t,e)).findSubmitButton();n&&w.setSubmitButton(n),r.build()}}(),S("Container: buildChildren()"),t.classList?(t.classList.add("videomail"),e.playerOnly||w.build(),v.build()):o.emit(c.default.ERROR,p.default.create("Sorry, your browser is too old!",e)),R?S("Container: building failed due to an error."):(S("Container: built."),n=!0,o.emit(c.default.BUILT)))}catch(e){if(!v.isNotifierBuilt())throw e;o.emit(c.default.ERROR,e)}},this.getSubmitButton=function(){return w.getSubmitButton()},this.querySelector=function(e){return t.querySelector(e)},this.beginWaiting=function(){_.classList&&_.classList.add("wait")},this.endWaiting=function(){_.classList&&_.classList.remove("wait")},this.appendChild=function(e){t.appendChild(e)},this.insertBefore=function(e,n){t.insertBefore(e,n)},this.unload=function(e){S("Container: unload()",e);try{j(e),this.removeAllListeners(),n=A=!1}catch(e){o.emit(c.default.ERROR,e)}},this.show=function(){if(t&&((0,a.default)(t,!1),v.show(),!R)){var e=o.isPaused();e&&w.adjustButtonsForPause(),w.show(),o.isReplayShown()?o.emit(c.default.PREVIEW):o.emit(c.default.FORM_READY,{paused:e})}},this.hide=function(){S("Container: hide()"),R=!1,this.isRecording()&&this.pause(),v.hide(),A&&(w.hide(),(0,a.default)(t,!0))},this.startOver=function(e){try{o.emit(c.default.STARTING_OVER),A=!1,r.show(),v.back(e,(function(){e&&e.keepHidden?o.enableForm():o.show(e)}))}catch(e){o.emit(c.default.ERROR,e)}},this.showReplayOnly=function(){R=!1,this.isRecording()&&this.pause(),v.showReplayOnly(),A&&w.hide()},this.isNotifying=function(){return v.isNotifying()},this.isPaused=function(){return v.isPaused()},this.pause=function(e){v.pause(e)},this.validate=function(t){var n,i=!0;if(e.enableAutoValidation?t?i=t:o.isNotifying()?i=!1:v.isConnected()?i=v.isUserMediaLoaded()||v.isReplayShown():v.isConnecting()&&(i=!1):(i=!1,O=!0),i){this.emit(c.default.VALIDATING);var a,u=v.validate()&&w.isRecordAgainButtonEnabled();if(r){if(n=r.validate())this.areVisualsHidden()||u||((A||this.isReady()||this.isRecording()||this.isPaused()||this.isCountingDown())&&(n=!1),n||(a="Video is not recorded"));else{var s=r.getInvalidElement();a=s?"Form input named "+s.name+' is invalid. It has the value: "'+s.value+'"':"Form input(s) are invalid"}if(n){var l,f,d,p=r.getRecipients(),h="to"in p,m="cc"in p,y="bcc"in p,b=(null===(l=p.to)||void 0===l?void 0:l.length)>0,g=(null===(f=p.cc)||void 0===f?void 0:f.length)>0,E=(null===(d=p.bcc)||void 0===d?void 0:d.length)>0;h?b||(m&&y?g||E||(n=!1):m?g||(n=!1):y?E||(n=!1):a="Please configure the form to have at least one recipient."):m&&(g||y&&(E||(n=!1))),n||(a="Please enter at least one recipient.")}}else n=u;n?this.emit(c.default.VALID):this.emit(c.default.INVALID,a),O=n}return n},this.disableForm=function(e){r&&r.disable(e)},this.enableForm=function(e){r&&r.enable(e)},this.hasForm=function(){return!!r},this.isReady=function(){return w.isRecordButtonEnabled()},this.submitAll=function(t,n,i){var a=C(n);function u(){o.beginWaiting(),o.disableForm(!0),o.emit(c.default.SUBMITTING)}!!t[e.selectors.keyInputName]?(u(),function(e,t,n){var i=r.transformFormData(e);C(t)||!t?(i.recordingStats=v.getRecordingStats(),i.width=v.getRecorderWidth(!0),i.height=v.getRecorderHeight(!0),navigator.connection&&(i.connection={downlink:navigator.connection.downlink+" Mbit/s",effectiveType:navigator.connection.effectiveType,rtt:navigator.connection.rtt,type:navigator.connection.type}),E.post(i,n)):function(e){return e&&"PUT"===e.toUpperCase()}(t)&&E.put(i,n)}(t,n,(function(e,n,r){e?D(e,0,n,r):a?M(t,r,i,(function(e,t){D(e,0,n,r,t)})):D(null,0,n,r)}))):e.enableAutoSubmission&&(u(),M(t,null,i,(function(e,t){D(e,0,null,null,t)})))},this.isBuilt=function(){return n},this.isReplayShown=function(){return v.isReplayShown()},this.isDirty=function(){var e=!1;return r&&(v.isRecorderUnloaded()?e=!1:(this.isReplayShown()||this.isPaused())&&(e=!0)),e},this.getReplay=function(){return v.getReplay()},this.isOutsideElementOf=function(e){return e.parentNode!==t&&e!==t},this.hideForm=function(e){r&&r.hide(),w&&w.hide(e)},this.loadForm=function(e){r&&(r.loadVideomail(e),this.validate())},this.enableAudio=function(){e.setAudioEnabled(!0),this.emit(c.default.ENABLING_AUDIO)},this.disableAudio=function(){e.setAudioEnabled(!1),this.emit(c.default.DISABLING_AUDIO)},this.submit=function(){O&&r&&r.doTheSubmit()},this.isCountingDown=v.isCountingDown.bind(v),this.isRecording=v.isRecording.bind(v),this.record=v.record.bind(v),this.resume=v.resume.bind(v),this.stop=v.stop.bind(v),this.recordAgain=v.recordAgain.bind(v)};s.default.inherits(v,d.default);n.default=v},{"../../styles/css/main.min.css.js":154,"../events":126,"../resource":128,"../util/eventEmitter":132,"../util/videomailError":137,"./buttons":138,"./dimension":140,"./form":141,"./optionsWrapper":142,"./visuals":143,"@babel/runtime/helpers/interopRequireDefault":1,"document-visibility":25,"element-closest":27,hidden:56,"insert-css":62,util:116}],140:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("number-is-integer")),o=r(e("./../util/videomailError"));function a(e,t){if(t.hasDefinedHeight()&&(e=e?Math.min(t.video.height,e):t.video.height),(0,i.default)(e)&&e<1)throw o.default.create("Got a video height less than 1 ("+e+") while figuring out the minimum!",t);return e}n.default={limitWidth:function(e,t,n){var r,a=function(e){var t=0,n=e.getBoundingClientRect();return n&&(t=n.right-n.left),t<1&&(t=(n=document.body.getBoundingClientRect()).right-n.left),t}(e);if(r=t?a>0&&a<t?a:t:a,(0,i.default)(r)&&r<1)throw o.default.create("Limited width cannot be less than 1!",n);return r},limitHeight:function(e,t){if((0,i.default)(e)&&e<1)throw o.default.create("Passed limit-height argument cannot be less than 1!",t);var n=Math.min(e,document.documentElement.clientHeight);if(n<1)throw o.default.create("Limited height cannot be less than 1!",t);return n},calculateWidth:function(e){var t=e.videoHeight||null,n=e.ratio||e.getRatio();if(t=a(t,e),e.responsive&&(t=this.limitHeight(t,e)),(0,i.default)(t)&&t<1)throw o.default.create("Height cannot be smaller than 1 when calculating width.",e);var r=parseInt(t/n);if(r<1)throw o.default.create("Calculated width cannot be smaller than 1!",e);return r},calculateHeight:function(e,t){var n,r=t.videoWidth||null,u=t.ratio||t.getRatio();if(t.hasDefinedWidth()&&(r=t.video.width),(0,i.default)(r)&&r<1)throw o.default.create("Unable to calculate height when width is less than 1.",t);if(t.responsive&&(r=this.limitWidth(e,r,t)),r&&(n=parseInt(r*u)),(0,i.default)(n)&&n<1)throw o.default.create("Just calculated a height less than 1 which is wrong.",t);return a(n,t)}}},{"./../util/videomailError":137,"@babel/runtime/helpers/interopRequireDefault":1,"number-is-integer":73}],141:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("get-form-data")),o=r(e("hidden")),a=r(e("hyperscript")),u=r(e("util")),s=r(e("../events")),l=r(e("../util/eventEmitter")),c=r(e("../util/videomailError"));function f(e){return e.replace(/(^[,\s]+)|([,\s]+$)/g,"")}var d=function(e,t,n){l.default.call(this,n,"Form");var r,u=this;function d(){return(0,i.default)(t,{includeDisabled:!0})}function p(e,n){for(var r,i=t.elements.length,o=0;o<i;o++)(n||!n&&("BUTTON"!==(r=t.elements[o]).tagName&&"submit"!==r.type))&&(t.elements[o].disabled=e)}function h(){return t.querySelectorAll("input, textarea")}function m(){return t.querySelectorAll("select")}this.transformFormData=function(e){var t={subject:n.selectors.subjectInputName,from:n.selectors.fromInputName,to:n.selectors.toInputName,cc:n.selectors.ccInputName,bcc:n.selectors.bccInputName,body:n.selectors.bodyInputName,key:n.selectors.keyInputName,parentKey:n.selectors.parentKeyInputName,sendCopy:n.selectors.sendCopyInputName},r={};return Object.keys(t).forEach((function(n){var i=t[n];i in e&&(r[n]=e[i])})),r.from&&(r.from=f(r.from)),r.to&&(r.to=f(r.to)),r.cc&&(r.cc=f(r.cc)),r.bcc&&(r.bcc=f(r.bcc)),r},this.getRecipients=function(){var e=this.transformFormData(d()),t={};return"to"in e&&(t.to=e.to),"cc"in e&&(t.cc=e.cc),"bcc"in e&&(t.bcc=e.bcc),t},this.loadVideomail=function(e){for(var r,i,o=t.elements.length,a=0;a<o;a++)e[i=(r=t.elements[a]).name]&&(r.value=e[i]),i!==n.selectors.subjectInputName&&i!==n.selectors.bodyInputName||(r.disabled=!0);t.setAttribute("method","put")},this.disable=function(e){p(!0,e)},this.enable=function(e){p(!1,e)},this.build=function(){if(n.enableAutoValidation){for(var i,l=h(),f=0,d=l.length;f<d;f++)"radio"===(i=l[f]).type?i.addEventListener("change",(function(){e.validate()})):i.addEventListener("input",(function(){setTimeout((function(){e.validate()}),0)}));for(var p=m(),y=0,b=p.length;y<b;y++)p[y].addEventListener("change",(function(){e.validate()}))}(r=t.querySelector('input[name="'+n.selectors.keyInputName+'"]'))||(r=(0,a.default)("input",{name:n.selectors.keyInputName,type:"hidden"}),t.appendChild(r)),this.on(s.default.PREVIEW,(function(e){e||r.value?e&&(r.value=e):u.emit(s.default.ERROR,c.default.create("Videomail key for preview is missing!",n))})),this.on(s.default.GOING_BACK,(function(){r.value=null})),this.on(s.default.ERROR,(function(e){var r;e.hideForm&&e.hideForm()&&n.adjustFormOnBrowserError?function(){for(var e=t.elements.length,n=0;n<e;n++)(0,o.default)(t.elements[n],!0);(0,o.default)(t,!0)}():e.hideButtons&&e.hideButtons()&&n.adjustFormOnBrowserError&&(r=u.findSubmitButton(),(0,o.default)(r,!0))})),this.on(s.default.BUILT,(function(){e.getSubmitButton().addEventListener("click",u.doTheSubmit.bind(u))}))},this.doTheSubmit=function(n){return n&&n.preventDefault(),e.hasElement()&&e.submitAll(d(),t.getAttribute("method"),t.getAttribute("action")),!1},this.getInvalidElement=function(){for(var e=h(),t=0,n=e.length;t<n;t++)if(!e[t].validity.valid)return e[t];for(var r=m(),i=0,o=r.length;i<o;i++)if(!r[i].validity.valid)return r[i];return null},this.validate=function(){return t.checkValidity()},this.findSubmitButton=function(){return t.querySelector("[type='submit']")},this.hide=function(){t&&(0,o.default)(t,!0)},this.show=function(){t&&(0,o.default)(t,!1)}};u.default.inherits(d,l.default);n.default=d},{"../events":126,"../util/eventEmitter":132,"../util/videomailError":137,"@babel/runtime/helpers/interopRequireDefault":1,"get-form-data":43,hidden:56,hyperscript:58,util:116}],142:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("deepmerge"));n.default={addFunctions:function(e){var t=e.audio&&e.audio.enabled;e.hasDefinedHeight=function(){return this.video.height&&"auto"!==this.video.height},e.hasDefinedWidth=function(){return this.video.width&&"auto"!==this.video.width},e.hasDefinedDimension=function(){return this.hasDefinedWidth()||this.hasDefinedHeight()},e.hasDefinedDimensions=function(){return this.hasDefinedWidth()&&this.hasDefinedHeight()},e.getRatio=function(){var e=1,t=this.videoHeight&&this.videoWidth;return this.hasDefinedDimensions()?e=t&&(this.videoHeight<this.video.height||this.videoWidth<this.video.width)?this.videoHeight/this.videoWidth:this.video.height/this.video.width:t&&(e=this.videoHeight/this.videoWidth),e},e.isAudioEnabled=function(){return t},e.setAudioEnabled=function(e){t=e},e.isAutoPauseEnabled=function(){return this.enableAutoPause&&this.enablePause}},merge:function(e,t){var n=(0,i.default)(e,t,{arrayMerge:function(e,t){return t}});return this.addFunctions(n),n}}},{"@babel/runtime/helpers/interopRequireDefault":1,deepmerge:21}],143:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("hidden")),o=r(e("hyperscript")),a=r(e("util")),u=r(e("../events")),s=r(e("../util/eventEmitter")),l=r(e("./visuals/inside/recorderInsides")),c=r(e("./visuals/notifier")),f=r(e("./visuals/recorder")),d=r(e("./visuals/replay")),p=function(e,t){s.default.call(this,t,"Visuals");var n,r,a=this,p=new d.default(this,t),h=new f.default(this,p,t),m=new l.default(this,t),y=new c.default(this,t),b=t.debug;function g(){var r;b("Visuals: buildChildren()"),(r=e.querySelector("noscript"))||((r=(0,o.default)("noscript")).innerHTML="Please enable Javascript",n.appendChild(r)),t.playerOnly||(y.build(),m.build()),p.build(),b("Visuals: built.")}function v(){t.playerOnly||(b("Visuals: initEvents()"),a.on(u.default.USER_MEDIA_READY,(function(){r=!0,a.endWaiting(),e.enableForm(!1)})).on(u.default.PREVIEW,(function(){a.endWaiting()})).on(u.default.BLOCKING,(function(n){(n.hideForm||t.adjustFormOnBrowserError)&&e.disableForm(!0)})).on(u.default.PREVIEW_SHOWN,(function(){e.validate(!0)})).on(u.default.LOADED_META_DATA,(function(){w()})).on(u.default.ERROR,(function(e){e.removeDimensions&&e.removeDimensions()&&(n.style.width="auto",n.style.height="auto")})))}function w(){n.style.width=a.getRecorderWidth(!0)+"px",n.style.height=a.getRecorderHeight(!0)+"px"}function E(){return!a.isNotifying()&&!p.isShown()&&!a.isCountingDown()}this.getRatio=function(){return n.clientWidth?n.clientHeight/n.clientWidth:0},this.isCountingDown=function(){return m.isCountingDown()},this.build=function(){if(!(n=e.querySelector("."+t.selectors.visualsClass))){n=(0,o.default)("div."+t.selectors.visualsClass);var i=e.querySelector("."+t.selectors.buttonsClass);i&&!e.isOutsideElementOf(i)?e.insertBefore(n,i):e.appendChild(n)}n.classList.add("visuals"),w(),!r&&v(),g(),a.parentNode=n.parentNode,r=!0},this.querySelector=function(e){return n&&n.querySelector(e)},this.appendChild=function(e){n&&n.appendChild(e)},this.removeChild=function(e){n.removeChild(e)},this.reset=function(){this.endWaiting(),h.reset()},this.beginWaiting=function(){e.beginWaiting()},this.endWaiting=function(){e.endWaiting()},this.stop=function(e){h.stop(e),m.hidePause()},this.back=function(e,t){!t&&e&&(t=e,e={}),p.hide(),y.hide(),e&&e.keepHidden?(h.hide(),t&&t()):h.back(t)},this.recordAgain=function(){this.back((function(){t.loadUserMediaOnRecord?a.once(u.default.SERVER_READY,(function(){a.record()})):a.once(u.default.USER_MEDIA_READY,(function(){a.record()}))}))},this.unload=function(e){try{h.unload(e),m.unload(e),p.unload(e),r=!1}catch(e){this.emit(u.default.ERROR,e)}},this.isNotifying=function(){return y.isVisible()},this.isReplayShown=function(){return p.isShown()},this.pause=function(e){h.pause(e),m.showPause()},this.resume=function(){m.isCountingDown()?m.resumeCountdown():h.resume(),m.hidePause()},this.pauseOrResume=function(){E.call(this)&&(this.isRecording()?this.pause():h.isPaused()?this.resume():h.isReady()&&this.record())},this.recordOrStop=function(){E()&&(this.isRecording()?this.stop():h.isReady()&&this.record())},this.record=function(){t.video.countdown?(this.emit(u.default.COUNTDOWN),m.startCountdown(h.record.bind(h))):h.record()},this.getRecorder=function(){return h},this.getReplay=function(){return p},this.validate=function(){return h.validate()&&this.isReplayShown()},this.getRecordingStats=function(){return h.getRecordingStats()},this.getAudioSampleRate=function(){return h.getAudioSampleRate()},this.isPaused=function(){return h.isPaused()},this.error=function(e){y.error(e)},this.hide=function(){n&&((0,i.default)(n,!0),this.emit(u.default.HIDE))},this.isHidden=function(){return!r||(n?(0,i.default)(n):void 0)},this.showVisuals=function(){n&&(0,i.default)(n,!1)},this.show=function(){!this.isReplayShown()&&n&&h.build(),this.showVisuals()},this.showReplayOnly=function(){!this.isReplayShown()&&p.show(),this.show(),h.hide(),y.hide()},this.isRecorderUnloaded=function(){return h.isUnloaded()},this.isConnecting=function(){return h.isConnecting()},this.getRecorderWidth=function(e){return h.getRecorderWidth(e)},this.getRecorderHeight=function(e){return h.getRecorderHeight(e)},this.limitWidth=function(n){return e.limitWidth(n,t)},this.limitHeight=function(t){return e.limitHeight(t)},this.calculateWidth=function(t){return e.calculateWidth(t)},this.calculateHeight=function(t){return e.calculateHeight(t)},this.getReplay=function(){return p},this.getBoundingClientRect=function(){return n&&n.getBoundingClientRect()},this.checkTimer=function(e){m.checkTimer(e)},this.isNotifierBuilt=function(){return y&&y.isBuilt()},this.isReplayShown=p.isShown.bind(p),this.hideReplay=p.hide.bind(p),this.hideRecorder=h.hide.bind(h),this.isRecording=h.isRecording.bind(h),this.isUserMediaLoaded=h.isUserMediaLoaded.bind(h),this.isConnected=h.isConnected.bind(h)};a.default.inherits(p,s.default);n.default=p},{"../events":126,"../util/eventEmitter":132,"./visuals/inside/recorderInsides":149,"./visuals/notifier":150,"./visuals/recorder":151,"./visuals/replay":152,"@babel/runtime/helpers/interopRequireDefault":1,hidden:56,hyperscript:58,util:116}],144:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){var n,r,a,u,s=this;function l(e){u||(t.debug("Countdown",a),--a<1?function(e){s.unload(),s.hide(),setTimeout((function(){e()}),0)}(e):n.innerHTML=a)}this.start=function(e){n.innerHTML=a=t.video.countdown,this.show(),r=setInterval(l.bind(this,e),950)},this.pause=function(){u=!0},this.resume=function(){u=!1},this.build=function(){(n=e.querySelector(".countdown"))?this.hide():(n=(0,i.default)("p.countdown"),this.hide(),e.appendChild(n))},this.show=function(){(0,o.default)(n,!1)},this.isCountingDown=function(){return!!r},this.unload=function(){clearInterval(r),u=!1,r=null},this.hide=function(){(0,o.default)(n,!0),this.unload()}};var i=r(e("hyperscript")),o=r(e("hidden"))},{"@babel/runtime/helpers/interopRequireDefault":1,hidden:56,hyperscript:58}],145:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){u.default.call(this,t,"Facing Mode");var n,r=this;this.build=function(){(n=e.querySelector(".facingMode"))?this.hide():((n=(0,i.default)("button.facingMode")).innerHTML="⤾",n.onclick=function(e){e&&e.preventDefault();try{r.emit(a.default.SWITCH_FACING_MODE)}catch(e){r.emit(a.default.ERROR,e)}},this.hide(),e.appendChild(n)),r.on(a.default.ERROR,(function(){r.hide()}))},this.hide=function(){(0,o.default)(n,!0)},this.show=function(){(0,o.default)(n,!1)}};var i=r(e("hyperscript")),o=r(e("hidden")),a=r(e("./../../../../events")),u=r(e("./../../../../util/eventEmitter"))},{"./../../../../events":126,"./../../../../util/eventEmitter":132,"@babel/runtime/helpers/interopRequireDefault":1,hidden:56,hyperscript:58}],146:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){if(!t.text.pausedHeader)throw a.default.create("Paused header cannot be empty",t);var n,r,u;function s(){return t.text.pausedHint}this.build=function(){n=e.querySelector(".paused"),(r=e.querySelector(".pausedHeader"))?(this.hide(),r.innerHTML=t.text.pausedHeader,s()&&(u.innerHTML=t.text.pausedHint)):(n=(0,i.default)("div.paused"),r=(0,i.default)("p.pausedHeader"),this.hide(),r.innerHTML=t.text.pausedHeader,n.appendChild(r),s()&&(u=e.querySelector(".pausedHint"),(u=(0,i.default)("p.pausedHint")).innerHTML=t.text.pausedHint,n.appendChild(u)),e.appendChild(n))},this.hide=function(){(0,o.default)(n,!0)},this.show=function(){(0,o.default)(n,!1)}};var i=r(e("hyperscript")),o=r(e("hidden")),a=r(e("./../../../../util/videomailError"))},{"./../../../../util/videomailError":137,"@babel/runtime/helpers/interopRequireDefault":1,hidden:56,hyperscript:58}],147:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var t;this.build=function(){(t=e.querySelector(".recordNote"))?this.hide():(t=(0,i.default)("p.recordNote"),this.hide(),e.appendChild(t))},this.stop=function(){this.hide(),t.classList.remove("near"),t.classList.remove("nigh")},this.setNear=function(){t.classList.add("near")},this.setNigh=function(){t.classList.add("nigh")},this.hide=function(){(0,o.default)(t,!0)},this.show=function(){(0,o.default)(t,!1)}};var i=r(e("hyperscript")),o=r(e("hidden"))},{"@babel/runtime/helpers/interopRequireDefault":1,hidden:56,hyperscript:58}],148:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t,n){var r,a,u,s=!1,l=!1;function c(e,t){return e>=n.video.limitSeconds*t}function f(){var e,i=parseInt(u/60,10),o=u-60*i;if(!s||!l){var a=n.video.limitSeconds-u;!function(e){return!(s||!c(e,.6)||(s=!0,0))}(a)?function(e){return!(l||!c(e,.8)||(l=!0,0))}(a)&&(t.setNigh(),r.classList.add("nigh"),n.debug("End is nigh, "+u+" seconds to go")):(t.setNear(),r.classList.add("near"),n.debug("End is near, "+u+" seconds to go"))}r.innerHTML=i+":"+((e=o)<10?"0"+e:e)}function d(){(0,o.default)(r,!0)}function p(){return n.video.limitSeconds}this.check=function(t){var n=p()-Math.floor(t.intervalSum/1e3);n!==u&&(u=n,f(),u<1&&e.stop(!0))},this.start=function(){u=p(),s=l=!1,a=!0,f(),r.classList.remove("near"),r.classList.remove("nigh"),(0,o.default)(r,!1)},this.pause=function(){t.hide()},this.resume=function(){t.show()},this.stop=function(){null!==u&&a&&(n.debug("Stopping record timer. Was recording for about ~"+(p()-u)+" seconds."),d(),t.stop(),u=null,a=!1)},this.build=function(){(r=e.querySelector(".recordTimer"))?d():(r=(0,i.default)("p.recordTimer"),d(),e.appendChild(r))}};var i=r(e("hyperscript")),o=r(e("hidden"))},{"@babel/runtime/helpers/interopRequireDefault":1,hidden:56,hyperscript:58}],149:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("util")),o=r(e("./../../../events")),a=r(e("./../../../util/eventEmitter")),u=r(e("./../../../util/browser")),s=r(e("./recorder/countdown")),l=r(e("./recorder/pausedNote")),c=r(e("./recorder/recordNote")),f=r(e("./recorder/recordTimer")),d=r(e("./recorder/facingMode")),p=function(e,t){a.default.call(this,t,"RecorderInsides");var n,r,i,p,h=this,m=t.debug,y=new c.default(e),b=new f.default(e,y,t),g=new u.default(t);function v(){h.hidePause(),h.hideCountdown(),b.stop(),p&&p.hide()}function w(){m("RecorderInsides: initEvents()"),h.on(o.default.USER_MEDIA_READY,(function(){p&&p.show()})).on(o.default.RECORDING,(function(){b.start()})).on(o.default.RESUMING,(function(){b.resume()})).on(o.default.STOPPING,(function(){b.stop()})).on(o.default.PAUSED,(function(){h.isCountingDown()?n.pause():b.pause()})).on(o.default.RESETTING,v).on(o.default.HIDE,(function(){h.hideCountdown()}))}t.video.countdown&&(n=new s.default(e,t)),t.video.facingModeButton&&g.isMobile()&&(p=new d.default(e,t)),t.enablePause&&(r=new l.default(e,t)),this.build=function(){m("RecorderInsides: build()"),n&&n.build(),r&&r.build(),p&&p.build(),y.build(),b.build(),!i&&w(),i=!0},this.unload=function(){n&&n.unload(),i=!1},this.showPause=function(){r&&r.show()},this.hidePause=function(){r&&r.hide()},this.hideCountdown=function(){n&&n.hide()},this.startCountdown=function(e){n&&n.start(e)},this.resumeCountdown=function(){n&&n.resume()},this.isCountingDown=function(){return n&&n.isCountingDown()},this.checkTimer=function(e){b.check(e)}};i.default.inherits(p,a.default);n.default=p},{"./../../../events":126,"./../../../util/browser":130,"./../../../util/eventEmitter":132,"./recorder/countdown":144,"./recorder/facingMode":145,"./recorder/pausedNote":146,"./recorder/recordNote":147,"./recorder/recordTimer":148,"@babel/runtime/helpers/interopRequireDefault":1,util:116}],150:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("hidden")),o=r(e("hyperscript")),a=r(e("util")),u=r(e("../../events")),s=r(e("../../util/eventEmitter")),l=function(e,t){s.default.call(this,t,"Notifier");var n,r,a,l,c,f,d=this,p=t&&t.debug;function h(){p("Notifier: initEvents()"),d.on(u.default.CONNECTING,(function(){d.notify("Connecting …")})).on(u.default.LOADING_USER_MEDIA,(function(){d.notify("Loading webcam …")})).on(u.default.USER_MEDIA_READY,(function(){d.hide()})).on(u.default.LOADED_META_DATA,(function(){n.style.width=e.getRecorderWidth(!0)+"px",n.style.height=e.getRecorderHeight(!0)+"px"})).on(u.default.PREVIEW,(function(){d.hide()})).on(u.default.STOPPING,(function(n){!function(n){var r="";e.beginWaiting(),n&&(p("Limit reached"),r+=t.text.limitReached+".<br/>"),r+=t.text.sending+" …",d.notify(r,null,{stillWait:!0,entertain:t.notifier.entertain})}(n)})).on(u.default.PROGRESS,(function(e,n){!function(e,n){var r;t.isAudioEnabled()?(r="Video: "+e,n&&(r+=", Audio: "+n)):r=e,d.setExplanation(r)}(e,n)})).on(u.default.BEGIN_VIDEO_ENCODING,(function(){!function(){e.beginWaiting();var n=t.text.encoding+" …";d.notify(n,null,{stillWait:!0,entertain:t.notifier.entertain}),b()}()})).on(u.default.CONNECTED,(function(){d.notify("Connected."),t.loadUserMediaOnRecord&&d.hide()}))}function m(){if(t.notifier.entertain){if(!c){var e=Math.floor(Math.random()*t.notifier.entertainLimit+1);n.className="notifier entertain "+t.notifier.entertainClass+e,l=setTimeout(m,t.notifier.entertainInterval),c=!0}}else y()}function y(){n&&n.classList.remove("entertain"),clearTimeout(l),l=null,c=!1}function b(){a&&(a.innerHTML=null,(0,i.default)(a,!0))}this.error=function(e){var n=e.message?e.message.toString():e.toString(),r=e.explanation?e.explanation.toString():null;n||t.debug("Weird empty message generated for error",e),d.notify(n,r,{blocking:!0,problem:!0,hideForm:e.hideForm&&e.hideForm(),classList:e.getClassList&&e.getClassList(),removeDimensions:e.removeDimensions&&e.removeDimensions()})},this.setExplanation=function(e){a||(a=(0,o.default)("p"),n?n.appendChild(a):t.logger.warn("Unable to show explanation because notifyElement is empty:",e)),a.innerHTML=e,(0,i.default)(a,!1)},this.build=function(){t.debug("Notifier: build()"),(n=e.querySelector(".notifier"))?this.hide():(n=(0,o.default)(".notifier"),this.hide(),e.appendChild(n)),!f&&h(),f=!0},this.hide=function(){y(),n&&((0,i.default)(n,!0),n.classList.remove("blocking")),r&&(r.innerHTML=null),b()},this.isVisible=function(){return!!f&&(n&&!(0,i.default)(n))},this.isBuilt=function(){return f},this.notify=function(s,l,c){t.debug("Notifier: notify()"),c||(c={});var f=!!c.stillWait&&c.stillWait,d=!!c.entertain&&c.entertain,p=!!c.blocking&&c.blocking,h=!!c.hideForm&&c.hideForm,b=!!c.classList&&c.classList,g=!!c.removeDimensions&&c.removeDimensions;!r&&n&&(r=(0,o.default)("h2"),a?n.insertBefore(r,a):n.appendChild(r)),n&&(d||(n.className="notifier"),b&&b.forEach((function(e){n.classList.add(e)})),g&&(n.style.width="auto",n.style.height="auto")),p?(n&&n.classList.add("blocking"),this.emit(u.default.BLOCKING,{hideForm:h})):this.emit(u.default.NOTIFYING),e.hideReplay(),e.hideRecorder(),function(e,n){var i=!!n.problem&&n.problem;r?r.innerHTML=(i?"☹ ":"")+e:t.logger.warn("Unable to show following because messageElement is empty:",e)}(s,c),l&&l.length>0&&this.setExplanation(l),d?m():y(),e.showVisuals(),n&&(0,i.default)(n,!1),!f&&e.endWaiting()}};a.default.inherits(l,s.default);n.default=l},{"../../events":126,"../../util/eventEmitter":132,"@babel/runtime/helpers/interopRequireDefault":1,hidden:56,hyperscript:58,util:116}],151:[function(e,t,n){(function(t){(function(){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("animitter")),o=r(e("canvas-to-buffer")),a=r(e("deepmerge")),u=r(e("hidden")),s=r(e("hyperscript")),l=r(e("safe-json-stringify")),c=r(e("util")),f=r(e("websocket-stream")),d=r(e("../../constants")),p=r(e("../../events")),h=r(e("../../util/browser")),m=r(e("../../util/eventEmitter")),y=r(e("../../util/humanize")),b=r(e("../../util/pretty")),g=r(e("../../util/videomailError")),v=r(e("./userMedia")),w="°º¤ø,¸¸,ø¤º°`°º¤ø,¸,ø¤°º¤ø,¸¸,ø¤º°`°º¤ø,¸ ",E=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};m.default.call(this,r,"Recorder");var c=new h.default(r),E=(0,a.default)(r,{image:{quality:c.isMobile()?r.image.quality-.05:r.image.quality}});if(!E.video||!E.video.fps)throw g.default.create("FPS must be defined",E);var _,S,R,A,O,k,T,x,j,M,D,C,N,I,P,L,B,U,F,W,q,H,z,V,G,$,Y=this,J=E.debug,K=null,X=0,Q=0,Z=E.video.facingMode,ee={},te=0,ne=0;function re(e,t){if(L)if(L.destroyed)ie(),Y.emit(p.default.ERROR,g.default.create("Already disconnected","Sorry, connection to the server has been destroyed. Please reload.",E));else{var n=t&&t.onFlushedCallback;try{L.write(e,(function(){n&&n(t)}))}catch(e){Y.emit(p.default.ERROR,g.default.create("Failed writing to server","stream.write() failed because of "+(0,b.default)(e),E))}}}function ie(){clearInterval(z)}function oe(e){X++,re(e.toBuffer())}function ae(){S&&(0,u.default)(S,!1)}function ue(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{J("Recorder: onUserMediaReady()",t);var n=t.switchingFacingMode;C=F=I=N=!1,D=!0,n||(e=(0,i.default)({fps:E.video.fps},Ae),_=e.getRequestAnimationFrameObject(),K=e),ae(),t.recordWhenReady&&Y.record(),Y.emit(p.default.USER_MEDIA_READY,{switchingFacingMode:t.switchingFacingMode,paused:Y.isPaused(),recordWhenReady:t.recordWhenReady})}catch(e){Y.emit(p.default.ERROR,e)}}function se(){A&&(J("Recorder: clearUserMediaTimeout()"),A&&clearTimeout(A),A=null)}function le(){return(te/(Q||1)*100).toFixed(2)+"%"}function ce(){return(ne/(X||1)*100).toFixed(2)+"%"}function fe(){T||(T=le()),x||(x=ce()),Y.emit(p.default.PROGRESS,T,x)}function de(e){if(!U){B=!0,J("Recorder: initialising web socket to %s",E.socketUrl),Y.emit(p.default.CONNECTING);var t=E.socketUrl+"?"+encodeURIComponent(d.default.SITE_NAME_LABEL)+"="+encodeURIComponent(E.siteName);try{L=(0,f.default)(t,{perMessageDeflate:!1,objectMode:!0})}catch(e){var n;B=U=!1,n=void 0===f.default?g.default.create("There is no websocket","Cause: "+(0,b.default)(e),E):g.default.create("Failed to connect to server","Please upgrade your browser. Your current version does not seem to support websockets.",E,{browserProblem:!0}),Y.emit(p.default.ERROR,n)}L&&(L.on("close",(function(e){J(w+"Stream has closed"),B=U=!1,e?Y.emit(p.default.ERROR,e||"Unhandled websocket error"):(Y.emit(p.default.DISCONNECTED),Ee())})),L.on("connect",(function(){J(w+"Stream *connect* event emitted"),U||(U=!0,B=I=!1,Y.emit(p.default.CONNECTED),e&&e())})),L.on("data",(function(e){var t;J(w+"Stream *data* event emitted");try{t=JSON.parse(e.toString())}catch(t){J("Failed to parse command:",t),Y.emit(p.default.ERROR,g.default.create("Invalid server command","Contact us asap. Bad command was "+e.toString()+". ",E))}finally{be.call(Y,t)}})),L.on("error",(function(e){var t;J(w+"Stream *error* event emitted",e),B=U=!1,t=c.isIOS()?g.default.create(e,"iPhones cannot maintain a live connection for too long. Original error message is: "+e.toString(),E):g.default.create("Data exchange interrupted","Please check your network connection and reload.",E),Y.emit(p.default.ERROR,t)})),L.on("drain",(function(){J(w+"Stream *drain* event emitted (should not happen!)")})),L.on("preend",(function(){J(w+"Stream *preend* event emitted")})),L.on("end",(function(){J(w+"Stream *end* event emitted")})),L.on("drain",(function(){J(w+"Stream *drain* event emitted")})),L.on("pipe",(function(){J(w+"Stream *pipe* event emitted")})),L.on("unpipe",(function(){J(w+"Stream *unpipe* event emitted")})),L.on("resume",(function(){J(w+"Stream *resume* event emitted")})),L.on("uncork",(function(){J(w+"Stream *uncork* event emitted")})),L.on("readable",(function(){J(w+"Stream *preend* event emitted")})),L.on("prefinish",(function(){J(w+"Stream *preend* event emitted")})),L.on("finish",(function(){J(w+"Stream *preend* event emitted")})))}}function pe(e,t,n){C=!1,se(),J("Recorder: userMediaErrorCallback()",", name:",e.name,", message:",e.message,", Webcam characteristics:",R.getCharacteristics(),", extraA arguments:",t?t.toString():void 0,", extraB arguments:",n?n.toString():void 0);var r=Y.listeners(p.default.ERROR);if(r&&r.length)e.name!==g.default.MEDIA_DEVICE_NOT_SUPPORTED?Y.emit(p.default.ERROR,g.default.create(e,E)):J("Recorder: ignore user media error",e),O=setTimeout(de,E.timeouts.userMedia);else{if(!I)throw J("Recorder: no error listeners attached but throwing error",e),g.default.create(e,"Unable to process this error since there are no error listeners anymore.",E);J("Recorder: already unloaded. Not going to throw error",e)}}function he(e,t){if(J("Recorder: getUserMediaCallback()",t),U&&(ge()||!ve()||F))try{se(),R.init(e,(function(){ue(t)}),oe.bind(Y),(function(e){Y.emit(p.default.ERROR,e)}),t)}catch(e){Y.emit(p.default.ERROR,e)}}function me(e){if(!navigator)throw new Error("Navigator is missing!");if(J("Recorder: loadGenuineUserMedia()"),Y.emit(p.default.ASKING_WEBCAM_PERMISSION),navigator.mediaDevices&&navigator.mediaDevices.getUserMedia){var t={video:{facingMode:Z,frameRate:{ideal:E.video.fps}},audio:E.isAudioEnabled()};c.isOkSafari()||(E.hasDefinedWidth()?t.video.width={ideal:E.video.width}:t.video.width={ideal:Y.limitWidth()},E.hasDefinedHeight()&&(t.video.height={ideal:E.video.height})),J("Recorder: navigator.mediaDevices.getUserMedia()",t),navigator.mediaDevices.getSupportedConstraints&&J("Recorder: navigator.mediaDevices.getSupportedConstraints()",navigator.mediaDevices.getSupportedConstraints());var n=navigator.mediaDevices.getUserMedia(t);if(!n)throw g.default.create("Sorry, your browser is unable to use cameras.","Try a different browser with better user media functionalities.",E);n.then((function(t){he(t,e)})).catch(pe)}else J("Recorder: navigator.getUserMedia()"),navigator.getUserMedia_({video:!0,audio:E.isAudioEnabled()},he,pe)}function ye(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(D)return J("Recorder: skipping loadUserMedia() because it is already loaded"),ue(e),!1;if(C)return J("Recorder: skipping loadUserMedia() because it is already asking for permission"),!1;J("Recorder: loadUserMedia()",e),Y.emit(p.default.LOADING_USER_MEDIA);try{A=setTimeout((function(){Y.isReady()||Y.emit(p.default.ERROR,c.getNoAccessIssue())}),E.timeouts.userMedia),C=!0,me(e)}catch(e){if(J("Recorder: failed to load genuine user media"),C=!1,!Y.listeners(p.default.ERROR).length)throw J("Recorder: no error listeners attached but throwing exception",e),e;Y.emit(p.default.ERROR,e)}}function be(e){try{switch(J("Server commanded: %s",e.command,e.args?", "+(0,l.default)(e.args):""),e.command){case"ready":this.emit(p.default.SERVER_READY),A||(E.loadUserMediaOnRecord?ae():ye());break;case"preview":!function(e){te=ne=X=Q=0,x=T=null,q=e.key,e.mp4&&n.setMp4Source(e.mp4+d.default.SITE_NAME_LABEL+"/"+E.siteName+"/videomail.mp4",!0),e.webm&&n.setWebMSource(e.webm+d.default.SITE_NAME_LABEL+"/"+E.siteName+"/videomail.webm",!0),Y.hide();var t=Y.getRecorderWidth(!0),r=Y.getRecorderHeight(!0);Y.emit(p.default.PREVIEW,q,t,r),H=Date.now()-P,ee.waitingTime=H,E.debug&&J("While recording, %s have been transferred and waiting time was %s",y.default.filesize(k,2),y.default.toTime(H))}(e.args);break;case"error":this.emit(p.default.ERROR,g.default.create("Oh no, server error!",e.args.err.toString()||"(No explanation given)",E));break;case"confirmFrame":t=e.args,te=t.frame?t.frame:te,T=le(),fe();break;case"confirmSample":!function(e){ne=e.sample?e.sample:ne,x=ce(),fe()}(e.args);break;case"beginAudioEncoding":this.emit(p.default.BEGIN_AUDIO_ENCODING);break;case"beginVideoEncoding":this.emit(p.default.BEGIN_VIDEO_ENCODING);break;default:this.emit(p.default.ERROR,"Unknown server command: "+e.command)}}catch(e){Y.emit(p.default.ERROR,e)}var t}function ge(){return e.isNotifying()}function ve(){return!S||(0,u.default)(S)}function we(e,n,r){if(!r&&n&&n.constructor===Function&&(r=n,n=null),U){if(L){J("$ %s",e,n?(0,l.default)(n):"");var i={command:e,args:n};re(t.from((0,l.default)(i))),r&&setTimeout((function(){r()}),0)}}else J("Reconnecting for the command",e,"…"),de((function(){we(e,n),r&&r()}))}function Ee(){K&&K.dispose()}function _e(){return K.getElapsedTime()}function Se(){J("Recorder: reInitialiseAudio()"),se(),R&&R.stop(),D=q=j=M=null,ye()}function Re(e){1===(e&&e.frameNumber)&&Y.emit(p.default.FIRST_FRAME_SENT)}function Ae(n,r){try{if(!Y.isPaused()&&L&&M){if(0===Q&&Y.emit(p.default.SENDING_FIRST_FRAME),Q++,M.drawImage(R.getRawVisuals(),0,0,j.width,j.height),$=V.toBuffer(),(G=$.length)<1)throw g.default.create("Failed to extract webcam data.",E);k+=G;var i=t.from((0,l.default)({frameNumber:Q}));re(t.concat([$,i]),{frameNumber:Q,onFlushedCallback:Re}),e.checkTimer({intervalSum:r})}}catch(e){Y.emit(p.default.ERROR,e)}}function Oe(e){if(K){var t=Y.isRecording();K.stop(),K.setRequestAnimationFrameObject(e),t&&K.start()}}function ke(){E.hasDefinedWidth()&&(S.width=Y.getRecorderWidth(!0)),E.hasDefinedHeight()&&(S.height=Y.getRecorderHeight(!0))}function Te(){J("Recorder: initEvents()"),Y.on(p.default.SUBMITTING,(function(){N=!0})).on(p.default.SUBMITTED,(function(){N=!1,Y.unload()})).on(p.default.BLOCKING,(function(){F=!0,se()})).on(p.default.HIDE,(function(){Y.hide()})).on(p.default.LOADED_META_DATA,(function(){ke()})).on(p.default.DISABLING_AUDIO,(function(){Se()})).on(p.default.ENABLING_AUDIO,(function(){Se()})).on(p.default.INVISIBLE,(function(){!function(){J("Recorder: loopWithTimeouts()");var e,t=1e3/E.video.fps,n=0;Oe({requestAnimationFrame:function(r){return setTimeout((function(){e=Date.now(),r(),n=Date.now()-e}),t-n)},cancelAnimationFrame:function(e){clearTimeout(e)}})}()})).on(p.default.VISIBLE,(function(){J("Recorder: restoreAnimationFrameObject()"),Oe(_)})).on(p.default.SWITCH_FACING_MODE,(function(){!function(){if(!c.isMobile())return!1;"user"===Z?Z="environment":"environment"===Z?Z="user":J("Recorder: unsupported facing mode",Z),me({switchingFacingMode:!0})}()}))}function xe(){var t;if(R){var n=R.getVideoWidth();t=n<1?e.getRatio():R.getVideoHeight()/n}else t=E.getRatio();return t}this.getRecordingStats=function(){return ee},this.getAudioSampleRate=function(){return R.getAudioSampleRate()},this.stop=function(e){J("stop()",e);var t=e.limitReached;this.emit(p.default.STOPPING,t),K.complete();var r=this;setTimeout((function(){P=Date.now(),ee={avgFps:Q/_e()*1e3,wantedFps:E.video.fps,avgInterval:_e()/Q,wantedInterval:1e3/E.video.fps,intervalSum:_e(),framesCount:Q,videoType:n.getVideoType()},E.isAudioEnabled()&&(ee.samplesCount=X,ee.sampleRate=R.getAudioSampleRate()),we("stop",ee,(function(){r.emit(p.default.STOPPED,{recordingStats:ee})})),r.reset()}),60)},this.back=function(e){this.emit(p.default.GOING_BACK),ae(),this.reset(),we("back",e)},this.unload=function(e){var t;I||(e&&(t=e.name||e.statusText||e.toString()),J("Recorder: unload()"+(t?", cause: "+t:"")),this.reset(),se(),U&&(J("Recorder: disconnect()"),R&&R.unloadRemainingEventListeners(),N?B=U=!1:L&&(L.end(),L=void 0)),I=!0,W=!1)},this.reset=function(){I||(J("Recorder: reset()"),this.emit(p.default.RESETTING),Ee(),R&&R.stop(),n.reset(),D=q=j=M=$=G=null)},this.validate=function(){return U&&Q>0&&null===j},this.isReady=function(){return R.isReady()},this.pause=function(e){var n=e&&e.event;n instanceof window.Event&&(e.eventType=n.type),J("pause() at frame ".concat(Q),e),R.pause(),K.stop(),this.emit(p.default.PAUSED),z=window.setInterval((function(){J("Recorder: pinging..."),re(t.from(""))}),E.timeouts.pingInterval)},this.isPaused=function(){return R&&R.isPaused()},this.resume=function(){J("Recorder: resume() with frame ".concat(Q)),ie(),this.emit(p.default.RESUMING),R.resume(),K.start()},this.record=function(){if(I)return!1;if(!U)return J("Recorder: reconnecting before recording ..."),de((function(){Y.once(p.default.USER_MEDIA_READY,Y.record)})),!1;if(!D)return E.loadUserMediaOnRecord?ye({recordWhenReady:!0}):Y.emit(p.default.ERROR,g.default.create("Load and enable your camera first",E)),!1;try{j=R.createCanvas()}catch(e){return Y.emit(p.default.ERROR,g.default.create(e,E)),!1}return M=j.getContext("2d"),j.width?j.height?(k=0,V=new o.default(j,E),J("Recorder: record()"),R.record(),Y.emit(p.default.RECORDING,Q),K.on("update",(function(e,t){var n=Q/t*1e3;J("Recorder: avgFps =",Math.round(n))})),void K.start()):(Y.emit(p.default.ERROR,g.default.create("Canvas has an invalid height.",E)),!1):(Y.emit(p.default.ERROR,g.default.create("Canvas has an invalid width.",E)),!1)},this.build=function(){var t=c.checkRecordingCapabilities();t||(t=c.checkBufferTypes()),t?this.emit(p.default.ERROR,t):((S=e.querySelector("video."+E.selectors.userMediaClass))||(S=(0,s.default)("video."+E.selectors.userMediaClass),e.appendChild(S)),ke(),S.muted=!0,S.setAttribute("playsinline",!0),S.setAttribute("webkit-playsinline","webkit-playsinline"),S.style.transform="rotateY(180deg)",S.style["-webkit-transform"]="rotateY(180deg)",S.style["-moz-transform"]="rotateY(180deg)",R||(R=new v.default(this,E)),ae(),W?E.loadUserMediaOnRecord&&ye():(Te(),U?E.loadUserMediaOnRecord||ye():de()),W=!0)},this.isPaused=function(){return R&&R.isPaused()&&!K.isRunning()},this.isRecording=function(){return K&&K.isRunning()&&!this.isPaused()&&!ge()&&L&&!L.destroyed},this.hide=function(){ve()||(S&&(0,u.default)(S,!0),se(),J("Recorder: clearRetryTimeout()"),O&&clearTimeout(O),O=null)},this.isUnloaded=function(){return I},this.getRecorderWidth=function(e){return R&&R.hasVideoWidth()?R.getRawWidth(e):e&&E.hasDefinedWidth()?this.limitWidth(E.video.width):void 0},this.getRecorderHeight=function(e){return R?R.getRawHeight(e):e&&E.hasDefinedHeight()?this.calculateHeight(e):void 0},this.calculateWidth=function(t){var n;return R?n=R.getVideoHeight():S&&(n=S.videoHeight||S.height),e.calculateWidth({responsive:t,ratio:xe(),videoHeight:n})},this.calculateHeight=function(t){var n;return R?n=R.getVideoWidth():S&&(n=S.videoWidth||S.width),e.calculateHeight({responsive:t,ratio:xe(),videoWidth:n})},this.getRawVisualUserMedia=function(){return S},this.isConnected=function(){return U},this.isConnecting=function(){return B},this.limitWidth=function(t){return e.limitWidth(t)},this.limitHeight=function(t){return e.limitHeight(t)},this.isUserMediaLoaded=function(){return D}};c.default.inherits(E,m.default);n.default=E}).call(this)}).call(this,e("buffer").Buffer)},{"../../constants":125,"../../events":126,"../../util/browser":130,"../../util/eventEmitter":132,"../../util/humanize":133,"../../util/pretty":135,"../../util/videomailError":137,"./userMedia":153,"@babel/runtime/helpers/interopRequireDefault":1,animitter:4,buffer:11,"canvas-to-buffer":14,deepmerge:21,hidden:56,hyperscript:58,"safe-json-stringify":101,util:116,"websocket-stream":119}],152:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("add-eventlistener-with-options")),o=r(e("hidden")),a=r(e("hyperscript")),u=r(e("iphone-inline-video")),s=r(e("util")),l=r(e("../../events")),c=r(e("../../util/browser")),f=r(e("../../util/eventEmitter")),d=r(e("../../util/videomailError")),p=function(e,t){f.default.call(this,t,"Replay");var n,r,s,p=this,h=new c.default(t),m=t.debug;function y(){return"HTMLDivElement"===e.constructor.name}function b(e,n,i){var o=p.getVideoSource(e);if(n&&i&&(n+="?"+Date.now()),o)n?o.setAttribute("src",n):r.removeChild(o);else if(n){var u=1/t.video.fps*2;o=(0,a.default)("source",{src:n+"#t="+u,type:"video/"+e}),r.appendChild(o)}}function g(e){setTimeout((function(){try{r.pause()}catch(e){t.logger.warn(e)}e&&e()}),15)}function v(){if(r&&r.play){var e;try{e=r.play()}catch(e){t.logger.warn("Caught replay exception:",e)}e&&"undefined"!=typeof Promise&&e instanceof Promise&&e.catch((function(e){t.logger.warn("Caught pending replay promise exception: %s",e)}))}}this.setVideomail=function(t){(s=t)&&(s.mp4&&this.setMp4Source(s.mp4),s.webm&&this.setWebMSource(s.webm),s.poster&&r.setAttribute("poster",s.poster),function(t){var n;Object.keys(t).forEach((function(r){(n=e.querySelector("."+r))&&(n.innerHTML=t[r])}))}(s));var n=s&&s.recordingStats&&s.recordingStats.sampleRate>0;this.show(s&&s.width,s&&s.height,n)},this.show=function(n,i,a){s&&function(t){var n,i;s&&s.playerWidth?n=s.playerWidth:e.calculateWidth&&(n=e.calculateWidth(t)),s&&s.playerHeight?i=s.playerHeight:e.calculateHeight&&(i=e.calculateHeight(t)),r.style.width=n>0?n+"px":"auto",r.style.height=i>0?i+"px":"auto"}({responsive:!0,videoWidth:n||r.videoWidth,videoHeight:i||r.videoHeight}),(0,o.default)(r,!1),e&&(e.style?(0,o.default)(e,!1):e.show&&e.show()),a?r.setAttribute("volume",1):t.isAudioEnabled()||r.setAttribute("muted",!0),u.default&&(0,u.default)(r,{iPad:!0}),r.load(),s?p.emit(l.default.REPLAY_SHOWN):p.emit(l.default.PREVIEW_SHOWN)},this.build=function(){m("Replay: build()"),(r=e.querySelector("video."+t.selectors.replayClass))||function(){if(m("Replay: buildElement()"),!(r=(0,a.default)("video."+t.selectors.replayClass)).setAttribute)throw d.default.create("Please upgrade browser",t);e.appendChild(r)}(),this.hide(),r.setAttribute("autoplay",!0),r.setAttribute("autostart",!0),r.setAttribute("autobuffer",!0),r.setAttribute("playsinline",!0),r.setAttribute("webkit-playsinline","webkit-playsinline"),r.setAttribute("controls","controls"),r.setAttribute("preload","auto"),n||(y()||this.on(l.default.PREVIEW,(function(e,t,n){p.show(t,n)})),(0,i.default)(r,"touchstart",(function(e){try{e&&e.preventDefault()}catch(e){}this.paused?v():g()})),r.onclick=function(e){e&&e.preventDefault(),this.paused?v():g()}),n=!0,m("Replay: built.")},this.unload=function(){n=!1},this.getVideoSource=function(e){var t,n,i=r.getElementsByTagName("source"),o=i&&i.length,a="video/"+e;if(o)for(n=0;n<o&&!t;n++)i[n].getAttribute("type")===a&&(t=i[n]);return t},this.setMp4Source=function(e,t){b("mp4",e,t)},this.setWebMSource=function(e,t){b("webm",e,t)},this.getVideoType=function(){return h.getVideoType(r)},this.reset=function(e){g((function(){r&&(p.setMp4Source(null),p.setWebMSource(null)),e&&e()}))},this.hide=function(){y()?(0,o.default)(e,!0):r&&(0,o.default)(r,!0)},this.isShown=function(){return r&&!(0,o.default)(r)},this.getParentElement=function(){return e}};s.default.inherits(p,f.default);n.default=p},{"../../events":126,"../../util/browser":130,"../../util/eventEmitter":132,"../../util/videomailError":137,"@babel/runtime/helpers/interopRequireDefault":1,"add-eventlistener-with-options":3,hidden:56,hyperscript:58,"iphone-inline-video":64,util:116}],153:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){a.default.call(this,t,"UserMedia");var n,r,h=e&&e.getRawVisualUserMedia(),m=new o.default(t),y=this,b=!1,g=!1;function v(e){e?function(e){if(r=e,void 0!==h.srcObject)h.srcObject=e;else{if(void 0===h.src)throw l.default.create("Error attaching stream to element.","Contact the developer about this",t);var n=window.URL||window.webkitURL;h.src=n.createObjectURL(e)||e}}(e):(h.removeAttribute("srcObject"),h.removeAttribute("src"),r=null)}function w(){return h.mozSrcObject?h.mozSrcObject:h.srcObject?h.srcObject:r}function E(){if(h.ended)return h.ended;var e=w();return e&&e.ended}function _(){if(h.videoWidth&&h.videoWidth<3||h.height&&h.height<3)return!0}function S(e,n){t.debug("UserMedia: ...",p,"event",e,(0,d.default)(n))}function R(e){S(e.type,{readyState:h.readyState}),h.removeEventListener&&h.removeEventListener(e.type,R)}this.unloadRemainingEventListeners=function(){t.debug("UserMedia: unloadRemainingEventListeners()"),s.default.forEach((function(e){h.removeEventListener(e,R)}))},this.init=function(e,r,o,a){var c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};this.stop(e,{aboutToInitialize:!0,switchingFacingMode:c.switchingFacingMode});var d=!1,p=!1,b=!1;function g(){y.removeListener(u.default.SENDING_FIRST_FRAME,g),n&&n.record(o)}function w(){t.debug("UserMedia: unloadAllEventListeners()"),y.removeListener(u.default.SENDING_FIRST_FRAME,g),h.removeEventListener&&h.removeEventListener("play",k),h.removeEventListener&&h.removeEventListener("loadedmetadata",T),y.unloadRemainingEventListeners()}function A(){try{if(h.load(),h.paused){var e;t.debug("UserMedia: play()","media.readyState="+h.readyState,"media.paused="+h.paused,"media.ended="+h.ended,"media.played="+(0,f.default)(h.played));try{e=h.play()}catch(e){t.logger.warn("Caught raw usermedia play exception:",e)}(n=e)&&"undefined"!=typeof Promise&&n instanceof Promise&&e.then((function(){b||(t.debug("UserMedia: play promise successful. Playing now."),b=!0)})).catch((function(e){t.logger.warn("Caught pending usermedia promise exception: %s",e.toString())}))}}catch(e){w(),a(e)}var n}function O(){var i=h.readyState;if(t.debug("UserMedia: fireCallbacks(readyState="+i+", onPlayReached="+d+", onLoadedMetaDataReached="+p+")"),d&&p&&(r(),n&&o))try{n.init(e),y.on(u.default.SENDING_FIRST_FRAME,g)}catch(e){w(),a(e)}}function k(){try{S("play",{readyState:h.readyState,audio:t.isAudioEnabled(),width:h.width,height:h.height,videoWidth:h.videoWidth,videoHeight:h.videoHeight}),h.removeEventListener&&h.removeEventListener("play",k),E()||_()?a(l.default.create("Already busy","Probably another browser window is using your webcam?",t)):(d=!0,O())}catch(e){w(),a(e)}}function T(){S("loadedmetadata",{readyState:h.readyState,paused:h.paused,width:h.width,height:h.height,videoWidth:h.videoWidth,videoHeight:h.videoHeight}),h.removeEventListener&&h.removeEventListener("loadedmetadata",T),E()||_()||(y.emit(u.default.LOADED_META_DATA),m.isAndroid()&&A(),p=!0,O())}t&&t.isAudioEnabled()&&(n=n||new i.default(this,t));try{var x=function(e){var t,n=function(e){var t;return e&&e.getVideoTracks&&(t=e.getVideoTracks()),t}(e);return n&&n[0]&&(t=n[0]),t}(e);if(x){if(!x.enabled)throw l.default.create("Webcam is disabled","The video track seems to be disabled. Enable it in your system.",t);var j;x.label&&x.label.length>0&&(j=x.label),j+=" with enabled="+x.enabled,j+=", muted="+x.muted,j+=", remote="+x.remote,j+=", readyState="+x.readyState,j+=", error="+x.error,t.debug("UserMedia: "+x.kind+" detected.",j||"")}else t.debug("UserMedia: detected (but no video tracks exist");s.default.forEach((function(e){h.addEventListener(e,R,!1)})),h.addEventListener("loadedmetadata",T),h.addEventListener("play",k),h.addEventListener("error",(function(e){t.logger.warn("Caught video element error event: %s",(0,f.default)(e))})),v(e),A()}catch(e){y.emit(u.default.ERROR,e)}},this.isReady=function(){return!!h.src},this.stop=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{var r=t.aboutToInitialize,i=t.switchingFacingMode;if(!r){e||(e=w());var o=function(e){var t;return e&&e.getTracks&&(t=e.getTracks()),t}(e),a=!1;o&&o.forEach((function(e){e.stop&&(a=!0,e.stop())})),!a&&e&&e.stop&&e.stop(),v(null),n&&n.stop(),n=null}i||(b=g=!1)}catch(e){y.emit(u.default.ERROR,e)}},this.createCanvas=function(){return(0,c.default)("canvas",{width:this.getRawWidth(!0),height:this.getRawHeight(!0)})},this.getVideoHeight=function(){return h.videoHeight},this.getVideoWidth=function(){return h.videoWidth},this.hasVideoWidth=function(){return this.getVideoWidth()>0},this.getRawWidth=function(n){var r=this.getVideoWidth(),i=t.hasDefinedWidth();return(i||t.hasDefinedHeight())&&(r=!n&&i?t.video.width:e.calculateWidth(n)),n&&(r=e.limitWidth(r)),r},this.getRawHeight=function(n){var r;if(t.hasDefinedDimension()){if((r=e.calculateHeight(n))<1)throw l.default.create("Bad dimensions","Calculated raw height cannot be less than 1!",t)}else if((r=this.getVideoHeight())<1)throw l.default.create("Bad dimensions","Raw video height from DOM element cannot be less than 1!",t);return n&&(r=e.limitHeight(r)),r},this.getRawVisuals=function(){return h},this.pause=function(){b=!0},this.isPaused=function(){return b},this.resume=function(){b=!1},this.record=function(){g=!0},this.isRecording=function(){return g},this.getAudioSampleRate=function(){return n?n.getSampleRate():-1},this.getCharacteristics=function(){return{audioSampleRate:this.getAudioSampleRate(),muted:h&&h.muted,width:h&&h.width,height:h&&h.height,videoWidth:h&&h.videoWidth,videoHeight:h&&h.videoHeight}}};var i=r(e("./../../util/audioRecorder")),o=r(e("./../../util/browser")),a=r(e("./../../util/eventEmitter")),u=r(e("./../../events")),s=r(e("./../../util/mediaEvents")),l=r(e("./../../util/videomailError")),c=r(e("hyperscript")),f=r(e("./../../util/pretty")),d=r(e("safe-json-stringify")),p="|—O—|"},{"./../../events":126,"./../../util/audioRecorder":129,"./../../util/browser":130,"./../../util/eventEmitter":132,"./../../util/mediaEvents":134,"./../../util/pretty":135,"./../../util/videomailError":137,"@babel/runtime/helpers/interopRequireDefault":1,hyperscript:58,"safe-json-stringify":101}],154:[function(e,t,n){"use strict";t.exports='@-webkit-keyframes blink{0%{opacity:.9}35%{opacity:.9}50%{opacity:.1}85%{opacity:.1}to{opacity:.9}}@keyframes blink{0%{opacity:.9}35%{opacity:.9}50%{opacity:.1}85%{opacity:.1}to{opacity:.9}}.IIV::-webkit-media-controls-play-button,.IIV::-webkit-media-controls-start-playback-button{opacity:0;pointer-events:none;width:5px}.videomail .visuals{position:relative}.videomail .visuals video.replay{height:100%;width:100%}.videomail .countdown,.videomail .pausedHeader,.videomail .pausedHint,.videomail .recordNote,.videomail .recordTimer{height:auto;margin:0}.videomail .countdown,.videomail .facingMode,.videomail .paused,.videomail .recordNote,.videomail .recordTimer,.videomail noscript{position:absolute;z-index:100}.videomail .countdown,.videomail .pausedHeader,.videomail .pausedHint,.videomail .recordNote,.videomail .recordTimer,.videomail noscript{font-weight:700}.videomail .countdown,.videomail .paused,.videomail noscript{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:100%}.videomail .countdown,.videomail .pausedHeader,.videomail .pausedHint{letter-spacing:4px;text-align:center;text-shadow:-2px 0 #fff,0 2px #fff,2px 0 #fff,0 -2px #fff}.videomail .countdown,.videomail .pausedHeader{font-size:460%;opacity:.9}.videomail .pausedHint{font-size:150%}.videomail .facingMode{background:rgba(30,30,30,.5);border:none;bottom:.6em;color:hsla(0,0%,96%,.9);font-family:monospace;font-size:1.2em;outline:none;padding:.1em .3em;right:.7em;-webkit-transition:all .2s ease;transition:all .2s ease;z-index:10}.videomail .facingMode:hover{background:rgba(50,50,50,.7);cursor:pointer}.videomail .recordNote,.videomail .recordTimer{background:hsla(0,0%,4%,.8);color:#00d814;font-family:monospace;opacity:.9;padding:.3em .4em;right:.7em;-webkit-transition:all 1s ease;transition:all 1s ease}.videomail .recordNote.near,.videomail .recordTimer.near{color:#eb9369}.videomail .recordNote.nigh,.videomail .recordTimer.nigh{color:#ea4b2a}.videomail .recordTimer{top:.7em}.videomail .recordNote{top:3.6em}.videomail .recordNote:before{-webkit-animation:blink 1s infinite;animation:blink 1s infinite;content:"REC"}.videomail .notifier{-webkit-box-sizing:border-box;box-sizing:border-box;height:100%;overflow:hidden}.videomail .radioGroup{display:block}.videomail video{margin-bottom:0}.videomail video.userMedia{background-color:rgba(50,50,50,.1)}'},{}],"videomail-client":[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("./util/standardize")),o=r(e("./client"));if(!navigator)throw new Error("Navigator is missing!");(0,i.default)(window,navigator);n.default=o.default;t.exports=o.default},{"./client":124,"./util/standardize":136,"@babel/runtime/helpers/interopRequireDefault":1}]},{},["videomail-client"])("videomail-client")}));
|
|
55
55
|
//# sourceMappingURL=videomail-client.min.js.map
|