From 6ea8fd12a34fec31cb7b70ef0fa9d6e9d71fefeb Mon Sep 17 00:00:00 2001 From: Markos Gogoulos Date: Tue, 14 Mar 2023 13:13:15 +0200 Subject: [PATCH] fix issue with uninitialized video player --- frontend/src/static/js/components/video-player/VideoPlayer.jsx | 2 +- static/js/_commons.js | 2 +- static/js/embed.js | 2 +- static/js/media.js | 2 +- static/js/playlist.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/static/js/components/video-player/VideoPlayer.jsx b/frontend/src/static/js/components/video-player/VideoPlayer.jsx index 28f1758..8cb2d90 100644 --- a/frontend/src/static/js/components/video-player/VideoPlayer.jsx +++ b/frontend/src/static/js/components/video-player/VideoPlayer.jsx @@ -192,7 +192,7 @@ export function VideoPlayer(props) { document.addEventListener('visibilitychange', initPlayer); } - player.player.one('loadedmetadata', () => { + player && player.player.one('loadedmetadata', () => { const urlParams = new URLSearchParams(window.location.search); const paramT = Number(urlParams.get('t')); const timestamp = !isNaN(paramT) ? paramT : 0; diff --git a/static/js/_commons.js b/static/js/_commons.js index 0692433..5eb79f9 100644 --- a/static/js/_commons.js +++ b/static/js/_commons.js @@ -1,2 +1,2 @@ /*! For license information please see _commons.js.LICENSE.txt */ -(self.webpackChunkmediacms_frontend=self.webpackChunkmediacms_frontend||[]).push([[431],{7087:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?n-1:0),i=1;i1?n-1:0),i=1;i1?n-1:0),i=1;i1?n-1:0),i=1;ie.length)&&(n=e.length),e.substring(n-t.length,n)===t}var g="",v="",b="",w="",E={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function S(e){var t=Object.keys(e),n=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){n[t]=e[t]})),Object.defineProperty(n,"message",{value:e.message}),n}function k(e){return h(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var P=function(e){function t(e){var n;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),"object"!==p(e)||null===e)throw new m("options","Object",e);var i=e.message,o=e.operator,s=e.stackStartFn,u=e.actual,c=e.expected,f=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=i)n=a(this,d(t).call(this,String(i)));else if(r.stderr&&r.stderr.isTTY&&(r.stderr&&r.stderr.getColorDepth&&1!==r.stderr.getColorDepth()?(g="",v="",w="",b=""):(g="",v="",w="",b="")),"object"===p(u)&&null!==u&&"object"===p(c)&&null!==c&&"stack"in u&&u instanceof Error&&"stack"in c&&c instanceof Error&&(u=S(u),c=S(c)),"deepStrictEqual"===o||"strictEqual"===o)n=a(this,d(t).call(this,function(e,t,n){var i="",o="",a=0,l="",s=!1,u=k(e),c=u.split("\n"),f=k(t).split("\n"),d=0,h="";if("strictEqual"===n&&"object"===p(e)&&"object"===p(t)&&null!==e&&null!==t&&(n="strictEqualObject"),1===c.length&&1===f.length&&c[0]!==f[0]){var m=c[0].length+f[0].length;if(m<=10){if(!("object"===p(e)&&null!==e||"object"===p(t)&&null!==t||0===e&&0===t))return"".concat(E[n],"\n\n")+"".concat(c[0]," !== ").concat(f[0],"\n")}else if("strictEqualObject"!==n&&m<(r.stderr&&r.stderr.isTTY?r.stderr.columns:80)){for(;c[0][d]===f[0][d];)d++;d>2&&(h="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var n=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,n-e.length)}(" ",d),"^"),d=0)}}for(var S=c[c.length-1],P=f[f.length-1];S===P&&(d++<2?l="\n ".concat(S).concat(l):i=S,c.pop(),f.pop(),0!==c.length&&0!==f.length);)S=c[c.length-1],P=f[f.length-1];var O=Math.max(c.length,f.length);if(0===O){var _=u.split("\n");if(_.length>30)for(_[26]="".concat(g,"...").concat(w);_.length>27;)_.pop();return"".concat(E.notIdentical,"\n\n").concat(_.join("\n"),"\n")}d>3&&(l="\n".concat(g,"...").concat(w).concat(l),s=!0),""!==i&&(l="\n ".concat(i).concat(l),i="");var C=0,x=E[n]+"\n".concat(v,"+ actual").concat(w," ").concat(b,"- expected").concat(w),A=" ".concat(g,"...").concat(w," Lines skipped");for(d=0;d1&&d>2&&(T>4?(o+="\n".concat(g,"...").concat(w),s=!0):T>3&&(o+="\n ".concat(f[d-2]),C++),o+="\n ".concat(f[d-1]),C++),a=d,i+="\n".concat(b,"-").concat(w," ").concat(f[d]),C++;else if(f.length1&&d>2&&(T>4?(o+="\n".concat(g,"...").concat(w),s=!0):T>3&&(o+="\n ".concat(c[d-2]),C++),o+="\n ".concat(c[d-1]),C++),a=d,o+="\n".concat(v,"+").concat(w," ").concat(c[d]),C++;else{var j=f[d],I=c[d],M=I!==j&&(!y(I,",")||I.slice(0,-1)!==j);M&&y(j,",")&&j.slice(0,-1)===I&&(M=!1,I+=","),M?(T>1&&d>2&&(T>4?(o+="\n".concat(g,"...").concat(w),s=!0):T>3&&(o+="\n ".concat(c[d-2]),C++),o+="\n ".concat(c[d-1]),C++),a=d,o+="\n".concat(v,"+").concat(w," ").concat(I),i+="\n".concat(b,"-").concat(w," ").concat(j),C+=2):(o+=i,i="",1!==T&&0!==d||(o+="\n ".concat(I),C++))}if(C>20&&d30)for(P[26]="".concat(g,"...").concat(w);P.length>27;)P.pop();n=1===P.length?a(this,d(t).call(this,"".concat(h," ").concat(P[0]))):a(this,d(t).call(this,"".concat(h,"\n\n").concat(P.join("\n"),"\n")))}else{var O=k(u),_="",C=E[o];"notDeepEqual"===o||"notEqual"===o?(O="".concat(E[o],"\n\n").concat(O)).length>1024&&(O="".concat(O.slice(0,1021),"...")):(_="".concat(k(c)),O.length>512&&(O="".concat(O.slice(0,509),"...")),_.length>512&&(_="".concat(_.slice(0,509),"...")),"deepEqual"===o||"equal"===o?O="".concat(C,"\n\n").concat(O,"\n\nshould equal\n\n"):_=" ".concat(o," ").concat(_)),n=a(this,d(t).call(this,"".concat(O).concat(_)))}return Error.stackTraceLimit=f,n.generatedMessage=!i,Object.defineProperty(l(n),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),n.code="ERR_ASSERTION",n.actual=u,n.expected=c,n.operator=o,Error.captureStackTrace&&Error.captureStackTrace(l(n),s),n.stack,n.name="AssertionError",a(n)}var n,s;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,e),n=t,(s=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:h.custom,value:function(e,t){return h(this,function(e){for(var t=1;t2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}u("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),u("ERR_INVALID_ARG_TYPE",(function(e,t,i){var o,l,s,u,f;if(void 0===a&&(a=n(967)),a("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(l="not ",t.substr(0,l.length)===l)?(o="must not be",t=t.replace(/^not /,"")):o="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))s="The ".concat(e," ").concat(o," ").concat(c(t,"type"));else{var d=("number"!=typeof f&&(f=0),f+".".length>(u=e).length||-1===u.indexOf(".",f)?"argument":"property");s='The "'.concat(e,'" ').concat(d," ").concat(o," ").concat(c(t,"type"))}return s+". Received type ".concat(r(i))}),TypeError),u("ERR_INVALID_ARG_VALUE",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===l&&(l=n(3254));var i=l.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(i)}),TypeError,RangeError),u("ERR_INVALID_RETURN_VALUE",(function(e,t,n){var i;return i=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")}),TypeError),u("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),r=0;r0,"At least one arg needs to be specified");var i="The ",o=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),o){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,o-1).join(", "),i+=", and ".concat(t[o-1]," arguments")}return"".concat(i," must be specified")}),TypeError),e.exports.codes=s},7503:function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e){return(i="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})(e)}var o=void 0!==/a/g.flags,a=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},l=function(e){var t=[];return e.forEach((function(e,n){return t.push([n,e])})),t},s=Object.is?Object.is:n(2042),u=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},c=Number.isNaN?Number.isNaN:n(8385);function f(e){return e.call.bind(e)}var d=f(Object.prototype.hasOwnProperty),p=f(Object.prototype.propertyIsEnumerable),h=f(Object.prototype.toString),m=n(3254).types,y=m.isAnyArrayBuffer,g=m.isArrayBufferView,v=m.isDate,b=m.isMap,w=m.isRegExp,E=m.isSet,S=m.isNativeError,k=m.isBoxedPrimitive,P=m.isNumberObject,O=m.isStringObject,_=m.isBooleanObject,C=m.isBigIntObject,x=m.isSymbolObject,A=m.isFloat32Array,T=m.isFloat64Array;function j(e){if(0===e.length||e.length>10)return!0;for(var t=0;t57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function I(e){return Object.keys(e).filter(j).concat(u(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function M(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),i.forEach(["post","put","patch"],(function(e){u.headers[e]=i.merge(a)})),e.exports=u},4345:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},4346:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},8266:function(e,t,n){"use strict";var r=n(4345),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function a(e){return void 0===e}function l(e){return null!==e&&"object"==typeof e}function s(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===i.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n-1?i(n):n}},7257:function(e,t,n){"use strict";var r=n(4597),i=n(3584),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),l=i("%Reflect.apply%",!0)||r.call(a,o),s=i("%Object.getOwnPropertyDescriptor%",!0),u=i("%Object.defineProperty%",!0),c=i("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){var t=l(r,a,arguments);if(s&&u){var n=s(t,"length");n.configurable&&u(t,"length",{value:1+c(0,e.length-(arguments.length-1))})}return t};var f=function(){return l(r,o,arguments)};u?u(e.exports,"apply",{value:f}):e.exports.apply=f},1283:function(e,t,n){var r=n(3254),i=n(967);function o(){return(new Date).getTime()}var a,l=Array.prototype.slice,s={};a=void 0!==n.g&&n.g.console?n.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var u=[[function(){},"log"],[function(){a.log.apply(a,arguments)},"info"],[function(){a.log.apply(a,arguments)},"warn"],[function(){a.warn.apply(a,arguments)},"error"],[function(e){s[e]=o()},"time"],[function(e){var t=s[e];if(!t)throw new Error("No such label: "+e);delete s[e];var n=o()-t;a.log(e+": "+n+"ms")},"timeEnd"],[function(){var e=new Error;e.name="Trace",e.message=r.format.apply(null,arguments),a.error(e.stack)},"trace"],[function(e){a.log(r.inspect(e)+"\n")},"dir"],[function(e){if(!e){var t=l.call(arguments,1);i.ok(!1,r.format.apply(null,t))}},"assert"]],c=0;c>8&255]},D=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},L=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},F=function(e){return I(e,23,4)},B=function(e){return I(e,52,8)},U=function(e,t){g(e.prototype,t,{get:function(){return E(this)[t]}})},q=function(e,t,n,r){var i=d(n),o=E(e);if(i+t>o.byteLength)throw j(O);var a=E(o.buffer).bytes,l=i+o.byteOffset,s=a.slice(l,l+t);return r?s:s.reverse()},V=function(e,t,n,r,i,o){var a=d(n),l=E(e);if(a+t>l.byteLength)throw j(O);for(var s=E(l.buffer).bytes,u=a+l.byteOffset,c=r(+i),f=0;fQ;)(z=W[Q++])in C||a(C,z,_[z]);H.constructor=C}m&&h(A)!==T&&m(A,T);var $=new x(new C(2)),Y=A.setInt8;$.setInt8(0,2147483648),$.setInt8(1,2147483649),!$.getInt8(0)&&$.getInt8(1)||l(A,{setInt8:function(e,t){Y.call(this,e,t<<24>>24)},setUint8:function(e,t){Y.call(this,e,t<<24>>24)}},{unsafe:!0})}else C=function(e){u(this,C,k);var t=d(e);S(this,{bytes:v.call(new Array(t),0),byteLength:t}),i||(this.byteLength=t)},x=function(e,t,n){u(this,x,P),u(e,C,P);var r=E(e).byteLength,o=c(t);if(o<0||o>r)throw j("Wrong offset");if(o+(n=void 0===n?r-o:f(n))>r)throw j("Wrong length");S(this,{buffer:e,byteLength:n,byteOffset:o}),i||(this.buffer=e,this.byteLength=n,this.byteOffset=o)},i&&(U(C,"byteLength"),U(x,"buffer"),U(x,"byteLength"),U(x,"byteOffset")),l(x.prototype,{getInt8:function(e){return q(this,1,e)[0]<<24>>24},getUint8:function(e){return q(this,1,e)[0]},getInt16:function(e){var t=q(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=q(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return L(q(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return L(q(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return M(q(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return M(q(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){V(this,1,e,R,t)},setUint8:function(e,t){V(this,1,e,R,t)},setInt16:function(e,t){V(this,2,e,N,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){V(this,2,e,N,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){V(this,4,e,D,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){V(this,4,e,D,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){V(this,4,e,F,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){V(this,8,e,B,t,arguments.length>2?arguments[2]:void 0)}});b(C,k),b(x,P),e.exports={ArrayBuffer:C,DataView:x}},8050:function(e,t,n){"use strict";var r=n(1324),i=n(6782),o=n(97),a=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),l=o(n.length),s=i(e,l),u=i(t,l),c=arguments.length>2?arguments[2]:void 0,f=a((void 0===c?l:i(c,l))-u,l-s),d=1;for(u0;)u in n?n[s]=n[u]:delete n[s],s+=d,u+=d;return n}},3579:function(e,t,n){"use strict";var r=n(1324),i=n(6782),o=n(97);e.exports=function(e){for(var t=r(this),n=o(t.length),a=arguments.length,l=i(a>1?arguments[1]:void 0,n),s=a>2?arguments[2]:void 0,u=void 0===s?n:i(s,n);u>l;)t[l++]=e;return t}},3200:function(e,t,n){"use strict";var r=n(4805).forEach,i=n(906)("forEach");e.exports=i?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},5513:function(e,t,n){"use strict";var r=n(2938),i=n(1324),o=n(5294),a=n(114),l=n(97),s=n(5999),u=n(8272);e.exports=function(e){var t,n,c,f,d,p,h=i(e),m="function"==typeof this?this:Array,y=arguments.length,g=y>1?arguments[1]:void 0,v=void 0!==g,b=u(h),w=0;if(v&&(g=r(g,y>2?arguments[2]:void 0,2)),null==b||m==Array&&a(b))for(n=new m(t=l(h.length));t>w;w++)p=v?g(h[w],w):h[w],s(n,w,p);else for(d=(f=b.call(h)).next,n=new m;!(c=d.call(f)).done;w++)p=v?o(f,g,[c.value,w],!0):c.value,s(n,w,p);return n.length=w,n}},5766:function(e,t,n){var r=n(2977),i=n(97),o=n(6782),a=function(e){return function(t,n,a){var l,s=r(t),u=i(s.length),c=o(a,u);if(e&&n!=n){for(;u>c;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},4805:function(e,t,n){var r=n(2938),i=n(5044),o=n(1324),a=n(97),l=n(4822),s=[].push,u=function(e){var t=1==e,n=2==e,u=3==e,c=4==e,f=6==e,d=7==e,p=5==e||f;return function(h,m,y,g){for(var v,b,w=o(h),E=i(w),S=r(m,y,3),k=a(E.length),P=0,O=g||l,_=t?O(h,k):n||d?O(h,0):void 0;k>P;P++)if((p||P in E)&&(b=S(v=E[P],P,w),e))if(t)_[P]=b;else if(b)switch(e){case 3:return!0;case 5:return v;case 6:return P;case 2:s.call(_,v)}else switch(e){case 4:return!1;case 7:s.call(_,v)}return f?-1:u||c?c:_}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterOut:u(7)}},3161:function(e,t,n){"use strict";var r=n(2977),i=n(5089),o=n(97),a=n(906),l=Math.min,s=[].lastIndexOf,u=!!s&&1/[1].lastIndexOf(1,-0)<0,c=a("lastIndexOf"),f=u||!c;e.exports=f?function(e){if(u)return s.apply(this,arguments)||0;var t=r(this),n=o(t.length),a=n-1;for(arguments.length>1&&(a=l(a,i(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in t&&t[a]===e)return a||0;return-1}:s},9269:function(e,t,n){var r=n(6544),i=n(3649),o=n(4061),a=i("species");e.exports=function(e){return o>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},906:function(e,t,n){"use strict";var r=n(6544);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},4325:function(e,t,n){var r=n(6163),i=n(1324),o=n(5044),a=n(97),l=function(e){return function(t,n,l,s){r(n);var u=i(t),c=o(u),f=a(u.length),d=e?f-1:0,p=e?-1:1;if(l<2)for(;;){if(d in c){s=c[d],d+=p;break}if(d+=p,e?d<0:f<=d)throw TypeError("Reduce of empty array with no initial value")}for(;e?d>=0:f>d;d+=p)d in c&&(s=n(s,c[d],d,u));return s}};e.exports={left:l(!1),right:l(!0)}},5744:function(e){var t=Math.floor,n=function(e,o){var a=e.length,l=t(a/2);return a<8?r(e,o):i(n(e.slice(0,l),o),n(e.slice(l),o),o)},r=function(e,t){for(var n,r,i=e.length,o=1;o0;)e[r]=e[--r];r!==o++&&(e[r]=n)}return e},i=function(e,t,n){for(var r=e.length,i=t.length,o=0,a=0,l=[];o"+a+""}},4683:function(e,t,n){"use strict";var r=n(2365).IteratorPrototype,i=n(3590),o=n(4677),a=n(8821),l=n(339),s=function(){return this};e.exports=function(e,t,n){var u=t+" Iterator";return e.prototype=i(r,{next:o(1,n)}),a(e,u,!1,!0),l[u]=s,e}},57:function(e,t,n){var r=n(8494),i=n(4615),o=n(4677);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},4677:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},5999:function(e,t,n){"use strict";var r=n(2670),i=n(4615),o=n(4677);e.exports=function(e,t,n){var a=r(t);a in e?i.f(e,a,o(0,n)):e[a]=n}},9012:function(e,t,n){"use strict";var r=n(7263),i=n(4683),o=n(729),a=n(7496),l=n(8821),s=n(57),u=n(1270),c=n(3649),f=n(6268),d=n(339),p=n(2365),h=p.IteratorPrototype,m=p.BUGGY_SAFARI_ITERATORS,y=c("iterator"),g="keys",v="values",b="entries",w=function(){return this};e.exports=function(e,t,n,c,p,E,S){i(n,t,c);var k,P,O,_=function(e){if(e===p&&j)return j;if(!m&&e in A)return A[e];switch(e){case g:case v:case b:return function(){return new n(this,e)}}return function(){return new n(this)}},C=t+" Iterator",x=!1,A=e.prototype,T=A[y]||A["@@iterator"]||p&&A[p],j=!m&&T||_(p),I="Array"==t&&A.entries||T;if(I&&(k=o(I.call(new e)),h!==Object.prototype&&k.next&&(f||o(k)===h||(a?a(k,h):"function"!=typeof k[y]&&s(k,y,w)),l(k,C,!0,!0),f&&(d[C]=w))),p==v&&T&&T.name!==v&&(x=!0,j=function(){return T.call(this)}),f&&!S||A[y]===j||s(A,y,j),d[t]=j,p)if(P={values:_(v),keys:E?j:_(g),entries:_(b)},S)for(O in P)(m||x||!(O in A))&&u(A,O,P[O]);else r({target:t,proto:!0,forced:m||x},P);return P}},2219:function(e,t,n){var r=n(1287),i=n(4402),o=n(491),a=n(4615).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},8494:function(e,t,n){var r=n(6544);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},6668:function(e,t,n){var r=n(7583),i=n(794),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},6778:function(e){e.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}},5857:function(e,t,n){var r=n(6918).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},2274:function(e){e.exports="object"==typeof window},924:function(e,t,n){var r=n(6918);e.exports=/MSIE|Trident/.test(r)},7020:function(e,t,n){var r=n(6918);e.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(r)},5354:function(e,t,n){var r=n(9624),i=n(7583);e.exports="process"==r(i.process)},6846:function(e,t,n){var r=n(6918);e.exports=/web0s(?!.*chrome)/i.test(r)},6918:function(e,t,n){var r=n(5897);e.exports=r("navigator","userAgent")||""},4061:function(e,t,n){var r,i,o=n(7583),a=n(6918),l=o.process,s=l&&l.versions,u=s&&s.v8;u?i=(r=u.split("."))[0]<4?1:r[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=r[1]),e.exports=i&&+i},3:function(e,t,n){var r=n(6918).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},5690:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},7263:function(e,t,n){var r=n(7583),i=n(6683).f,o=n(57),a=n(1270),l=n(460),s=n(3478),u=n(4451);e.exports=function(e,t){var n,c,f,d,p,h=e.target,m=e.global,y=e.stat;if(n=m?r:y?r[h]||l(h,{}):(r[h]||{}).prototype)for(c in t){if(d=t[c],f=e.noTargetGet?(p=i(n,c))&&p.value:n[c],!u(m?c:h+(y?".":"#")+c,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;s(d,f)}(e.sham||f&&f.sham)&&o(d,"sham",!0),a(n,c,d,e)}}},6544:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},783:function(e,t,n){"use strict";n(2322);var r=n(1270),i=n(8445),o=n(6544),a=n(3649),l=n(57),s=a("species"),u=RegExp.prototype;e.exports=function(e,t,n,c){var f=a(e),d=!o((function(){var t={};return t[f]=function(){return 7},7!=""[e](t)})),p=d&&!o((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[s]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return t=!0,null},n[f](""),!t}));if(!d||!p||n){var h=/./[f],m=t(f,""[e],(function(e,t,n,r,o){var a=t.exec;return a===i||a===u.exec?d&&!o?{done:!0,value:h.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}));r(String.prototype,e,m[0]),r(u,f,m[1])}c&&l(u[f],"sham",!0)}},2938:function(e,t,n){var r=n(6163);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},1335:function(e,t,n){"use strict";var r=n(6163),i=n(794),o=[].slice,a={},l=function(e,t,n){if(!(t in a)){for(var r=[],i=0;i]*>)/g,l=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,s,u,c){var f=n+e.length,d=s.length,p=l;return void 0!==u&&(u=r(u),p=a),o.call(c,p,(function(r,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(f);case"<":a=u[o.slice(1,-1)];break;default:var l=+o;if(0===l)return r;if(l>d){var c=i(l/10);return 0===c?r:c<=d?void 0===s[c-1]?o.charAt(1):s[c-1]+o.charAt(1):r}a=s[l-1]}return void 0===a?"":a}))}},7583:function(e,t,n){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},4402:function(e,t,n){var r=n(1324),i={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return i.call(r(e),t)}},4639:function(e){e.exports={}},2716:function(e,t,n){var r=n(7583);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},482:function(e,t,n){var r=n(5897);e.exports=r("document","documentElement")},275:function(e,t,n){var r=n(8494),i=n(6544),o=n(6668);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},3834:function(e){var t=Math.abs,n=Math.pow,r=Math.floor,i=Math.log,o=Math.LN2;e.exports={pack:function(e,a,l){var s,u,c,f=new Array(l),d=8*l-a-1,p=(1<>1,m=23===a?n(2,-24)-n(2,-77):0,y=e<0||0===e&&1/e<0?1:0,g=0;for((e=t(e))!=e||e===1/0?(u=e!=e?1:0,s=p):(s=r(i(e)/o),e*(c=n(2,-s))<1&&(s--,c*=2),(e+=s+h>=1?m/c:m*n(2,1-h))*c>=2&&(s++,c/=2),s+h>=p?(u=0,s=p):s+h>=1?(u=(e*c-1)*n(2,a),s+=h):(u=e*n(2,h-1)*n(2,a),s=0));a>=8;f[g++]=255&u,u/=256,a-=8);for(s=s<0;f[g++]=255&s,s/=256,d-=8);return f[--g]|=128*y,f},unpack:function(e,t){var r,i=e.length,o=8*i-t-1,a=(1<>1,s=o-7,u=i-1,c=e[u--],f=127&c;for(c>>=7;s>0;f=256*f+e[u],u--,s-=8);for(r=f&(1<<-s)-1,f>>=-s,s+=t;s>0;r=256*r+e[u],u--,s-=8);if(0===f)f=1-l;else{if(f===a)return r?NaN:c?-1/0:1/0;r+=n(2,t),f-=l}return(c?-1:1)*r*n(2,f-t)}}},5044:function(e,t,n){var r=n(6544),i=n(9624),o="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},434:function(e,t,n){var r=n(794),i=n(7496);e.exports=function(e,t,n){var o,a;return i&&"function"==typeof(o=t.constructor)&&o!==n&&r(a=o.prototype)&&a!==n.prototype&&i(e,a),e}},9734:function(e,t,n){var r=n(1314),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},2743:function(e,t,n){var r,i,o,a=n(9491),l=n(7583),s=n(794),u=n(57),c=n(4402),f=n(1314),d=n(9137),p=n(4639),h="Object already initialized",m=l.WeakMap;if(a||f.state){var y=f.state||(f.state=new m),g=y.get,v=y.has,b=y.set;r=function(e,t){if(v.call(y,e))throw new TypeError(h);return t.facade=e,b.call(y,e,t),t},i=function(e){return g.call(y,e)||{}},o=function(e){return v.call(y,e)}}else{var w=d("state");p[w]=!0,r=function(e,t){if(c(e,w))throw new TypeError(h);return t.facade=e,u(e,w,t),t},i=function(e){return c(e,w)?e[w]:{}},o=function(e){return c(e,w)}}e.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(!s(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},114:function(e,t,n){var r=n(3649),i=n(339),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},4521:function(e,t,n){var r=n(9624);e.exports=Array.isArray||function(e){return"Array"==r(e)}},4451:function(e,t,n){var r=n(6544),i=/#|\.prototype\./,o=function(e,t){var n=l[a(e)];return n==u||n!=s&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=o.data={},s=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},794:function(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},6268:function(e){e.exports=!1},7574:function(e,t,n){var r=n(794),i=n(9624),o=n(3649)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},4026:function(e,t,n){var r=n(2569),i=n(114),o=n(97),a=n(2938),l=n(8272),s=n(7093),u=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var c,f,d,p,h,m,y,g=n&&n.that,v=!(!n||!n.AS_ENTRIES),b=!(!n||!n.IS_ITERATOR),w=!(!n||!n.INTERRUPTED),E=a(t,g,1+v+w),S=function(e){return c&&s(c),new u(!0,e)},k=function(e){return v?(r(e),w?E(e[0],e[1],S):E(e[0],e[1])):w?E(e,S):E(e)};if(b)c=e;else{if("function"!=typeof(f=l(e)))throw TypeError("Target is not iterable");if(i(f)){for(d=0,p=o(e.length);p>d;d++)if((h=k(e[d]))&&h instanceof u)return h;return new u(!1)}c=f.call(e)}for(m=c.next;!(y=m.call(c)).done;){try{h=k(y.value)}catch(e){throw s(c),e}if("object"==typeof h&&h&&h instanceof u)return h}return new u(!1)}},7093:function(e,t,n){var r=n(2569);e.exports=function(e){var t=e.return;if(void 0!==t)return r(t.call(e)).value}},2365:function(e,t,n){"use strict";var r,i,o,a=n(6544),l=n(729),s=n(57),u=n(4402),c=n(3649),f=n(6268),d=c("iterator"),p=!1;[].keys&&("next"in(o=[].keys())?(i=l(l(o)))!==Object.prototype&&(r=i):p=!0);var h=null==r||a((function(){var e={};return r[d].call(e)!==e}));h&&(r={}),f&&!h||u(r,d)||s(r,d,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},339:function(e){e.exports={}},2095:function(e,t,n){var r,i,o,a,l,s,u,c,f=n(7583),d=n(6683).f,p=n(8117).set,h=n(7020),m=n(6846),y=n(5354),g=f.MutationObserver||f.WebKitMutationObserver,v=f.document,b=f.process,w=f.Promise,E=d(f,"queueMicrotask"),S=E&&E.value;S||(r=function(){var e,t;for(y&&(e=b.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(e){throw i?a():o=void 0,e}}o=void 0,e&&e.enter()},h||y||m||!g||!v?w&&w.resolve?((u=w.resolve(void 0)).constructor=w,c=u.then,a=function(){c.call(u,r)}):a=y?function(){b.nextTick(r)}:function(){p.call(f,r)}:(l=!0,s=v.createTextNode(""),new g(r).observe(s,{characterData:!0}),a=function(){s.data=l=!l})),e.exports=S||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},4651:function(e,t,n){var r=n(7583);e.exports=r.Promise},8640:function(e,t,n){var r=n(4061),i=n(6544);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},7664:function(e,t,n){var r=n(6544),i=n(3649),o=n(6268),a=i("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),o&&!e.toJSON||!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"!==n||"x"!==new URL("http://x",void 0).host}))},9491:function(e,t,n){var r=n(7583),i=n(9734),o=r.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},5084:function(e,t,n){"use strict";var r=n(6163),i=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new i(e)}},9304:function(e,t,n){"use strict";var r=n(8494),i=n(6544),o=n(5432),a=n(4012),l=n(112),s=n(1324),u=n(5044),c=Object.assign,f=Object.defineProperty;e.exports=!c||i((function(){if(r&&1!==c({b:1},c(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||o(c({},t)).join("")!=i}))?function(e,t){for(var n=s(e),i=arguments.length,c=1,f=a.f,d=l.f;i>c;)for(var p,h=u(arguments[c++]),m=f?o(h).concat(f(h)):o(h),y=m.length,g=0;y>g;)p=m[g++],r&&!d.call(h,p)||(n[p]=h[p]);return n}:c},3590:function(e,t,n){var r,i=n(2569),o=n(8728),a=n(5690),l=n(4639),s=n(482),u=n(6668),c=n(9137)("IE_PROTO"),f=function(){},d=function(e){return"