forked from edger477/funstim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mp3tag.min.js
1 lines (1 loc) · 105 KB
/
mp3tag.min.js
1
!function(t,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):(t="undefined"!=typeof globalThis?globalThis:t||self).MP3Tag=r()}(this,(function(){"use strict";function t(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function r(r){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?t(Object(n),!0).forEach((function(t){a(r,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):t(Object(n)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(n,t))}))}return r}function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function n(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function i(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,y(n.key),n)}}function o(t,r,e){return r&&i(t.prototype,r),e&&i(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function a(t,r,e){return(r=y(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function c(t,r){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},c(t,r)}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function s(t,r,e){return s=f()?Reflect.construct.bind():function(t,r,e){var n=[null];n.push.apply(n,r);var i=new(Function.bind.apply(t,n));return e&&c(i,e.prototype),i},s.apply(null,arguments)}function l(t){var r="function"==typeof Map?new Map:void 0;return l=function(t){if(null===t||(e=t,-1===Function.toString.call(e).indexOf("[native code]")))return t;var e;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,n)}function n(){return s(t,arguments,u(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),c(n,t)},l(t)}function h(t,r){if(r&&("object"==typeof r||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function v(t){return function(t){if(Array.isArray(t))return p(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||g(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,r){if(t){if("string"==typeof t)return p(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?p(t,r):void 0}}function p(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function d(t,r){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=g(t))||r&&t&&"number"==typeof t.length){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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 o,a=!0,u=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==e.return||e.return()}finally{if(u)throw o}}}}function y(t){var r=function(t,r){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,r||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==typeof r?r:String(r)}var w="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},b=function(t){try{return!!t()}catch(t){return!0}},m=!b((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),E=!b((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),A=E,S=Function.prototype,T=S.call,O=A&&S.bind.bind(T,T),I=A?O:function(t){return function(){return T.apply(t,arguments)}},x=function(t){return null==t},k=x,R=TypeError,P=function(t){if(k(t))throw R("Can't call method on "+t);return t},C=P,L=Object,U=function(t){return L(C(t))},M=U,j=I({}.hasOwnProperty),D=Object.hasOwn||function(t,r){return j(M(t),r)},B=m,F=D,_=Function.prototype,N=B&&Object.getOwnPropertyDescriptor,V=F(_,"name"),G={EXISTS:V,PROPER:V&&"something"===function(){}.name,CONFIGURABLE:V&&(!B||B&&N(_,"name").configurable)},W={exports:{}},Y="object"==typeof document&&document.all,$={all:Y,IS_HTMLDDA:void 0===Y&&void 0!==Y},z=$.all,H=$.IS_HTMLDDA?function(t){return"function"==typeof t||t===z}:function(t){return"function"==typeof t},K=function(t){return t&&t.Math===Math&&t},X=K("object"==typeof globalThis&&globalThis)||K("object"==typeof window&&window)||K("object"==typeof self&&self)||K("object"==typeof w&&w)||function(){return this}()||w||Function("return this")(),J=X,Z=Object.defineProperty,q=function(t,r){try{Z(J,t,{value:r,configurable:!0,writable:!0})}catch(e){J[t]=r}return r},Q=q,tt="__core-js_shared__",rt=X[tt]||Q(tt,{}),et=H,nt=rt,it=I(Function.toString);et(nt.inspectSource)||(nt.inspectSource=function(t){return it(t)});var ot,at,ut=nt.inspectSource,ct=H,ft=X.WeakMap,st=ct(ft)&&/native code/.test(String(ft)),lt=H,ht=$.all,vt=$.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:lt(t)||t===ht}:function(t){return"object"==typeof t?null!==t:lt(t)},gt={},pt=vt,dt=X.document,yt=pt(dt)&&pt(dt.createElement),wt=function(t){return yt?dt.createElement(t):{}},bt=wt,mt=!m&&!b((function(){return 7!==Object.defineProperty(bt("div"),"a",{get:function(){return 7}}).a})),Et=m&&b((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),At=vt,St=String,Tt=TypeError,Ot=function(t){if(At(t))return t;throw Tt(St(t)+" is not an object")},It=E,xt=Function.prototype.call,kt=It?xt.bind(xt):function(){return xt.apply(xt,arguments)},Rt=X,Pt=H,Ct=function(t){return Pt(t)?t:void 0},Lt=function(t,r){return arguments.length<2?Ct(Rt[t]):Rt[t]&&Rt[t][r]},Ut=I({}.isPrototypeOf),Mt="undefined"!=typeof navigator&&String(navigator.userAgent)||"",jt=X,Dt=Mt,Bt=jt.process,Ft=jt.Deno,_t=Bt&&Bt.versions||Ft&&Ft.version,Nt=_t&&_t.v8;Nt&&(at=(ot=Nt.split("."))[0]>0&&ot[0]<4?1:+(ot[0]+ot[1])),!at&&Dt&&(!(ot=Dt.match(/Edge\/(\d+)/))||ot[1]>=74)&&(ot=Dt.match(/Chrome\/(\d+)/))&&(at=+ot[1]);var Vt=at,Gt=Vt,Wt=b,Yt=X.String,$t=!!Object.getOwnPropertySymbols&&!Wt((function(){var t=Symbol("symbol detection");return!Yt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Gt&&Gt<41})),zt=$t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ht=Lt,Kt=H,Xt=Ut,Jt=Object,Zt=zt?function(t){return"symbol"==typeof t}:function(t){var r=Ht("Symbol");return Kt(r)&&Xt(r.prototype,Jt(t))},qt=String,Qt=function(t){try{return qt(t)}catch(t){return"Object"}},tr=H,rr=Qt,er=TypeError,nr=function(t){if(tr(t))return t;throw er(rr(t)+" is not a function")},ir=nr,or=x,ar=function(t,r){var e=t[r];return or(e)?void 0:ir(e)},ur=kt,cr=H,fr=vt,sr=TypeError,lr={exports:{}},hr=rt;(lr.exports=function(t,r){return hr[t]||(hr[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.32.2",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.2/LICENSE",source:"https://github.com/zloirock/core-js"});var vr=lr.exports,gr=I,pr=0,dr=Math.random(),yr=gr(1..toString),wr=function(t){return"Symbol("+(void 0===t?"":t)+")_"+yr(++pr+dr,36)},br=vr,mr=D,Er=wr,Ar=$t,Sr=zt,Tr=X.Symbol,Or=br("wks"),Ir=Sr?Tr.for||Tr:Tr&&Tr.withoutSetter||Er,xr=function(t){return mr(Or,t)||(Or[t]=Ar&&mr(Tr,t)?Tr[t]:Ir("Symbol."+t)),Or[t]},kr=kt,Rr=vt,Pr=Zt,Cr=ar,Lr=function(t,r){var e,n;if("string"===r&&cr(e=t.toString)&&!fr(n=ur(e,t)))return n;if(cr(e=t.valueOf)&&!fr(n=ur(e,t)))return n;if("string"!==r&&cr(e=t.toString)&&!fr(n=ur(e,t)))return n;throw sr("Can't convert object to primitive value")},Ur=TypeError,Mr=xr("toPrimitive"),jr=function(t,r){if(!Rr(t)||Pr(t))return t;var e,n=Cr(t,Mr);if(n){if(void 0===r&&(r="default"),e=kr(n,t,r),!Rr(e)||Pr(e))return e;throw Ur("Can't convert object to primitive value")}return void 0===r&&(r="number"),Lr(t,r)},Dr=jr,Br=Zt,Fr=function(t){var r=Dr(t,"string");return Br(r)?r:r+""},_r=m,Nr=mt,Vr=Et,Gr=Ot,Wr=Fr,Yr=TypeError,$r=Object.defineProperty,zr=Object.getOwnPropertyDescriptor,Hr="enumerable",Kr="configurable",Xr="writable";gt.f=_r?Vr?function(t,r,e){if(Gr(t),r=Wr(r),Gr(e),"function"==typeof t&&"prototype"===r&&"value"in e&&Xr in e&&!e.writable){var n=zr(t,r);n&&n.writable&&(t[r]=e.value,e={configurable:Kr in e?e.configurable:n.configurable,enumerable:Hr in e?e.enumerable:n.enumerable,writable:!1})}return $r(t,r,e)}:$r:function(t,r,e){if(Gr(t),r=Wr(r),Gr(e),Nr)try{return $r(t,r,e)}catch(t){}if("get"in e||"set"in e)throw Yr("Accessors not supported");return"value"in e&&(t[r]=e.value),t};var Jr,Zr,qr,Qr=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},te=gt,re=Qr,ee=m?function(t,r,e){return te.f(t,r,re(1,e))}:function(t,r,e){return t[r]=e,t},ne=wr,ie=vr("keys"),oe=function(t){return ie[t]||(ie[t]=ne(t))},ae={},ue=st,ce=X,fe=vt,se=ee,le=D,he=rt,ve=oe,ge=ae,pe="Object already initialized",de=ce.TypeError,ye=ce.WeakMap;if(ue||he.state){var we=he.state||(he.state=new ye);we.get=we.get,we.has=we.has,we.set=we.set,Jr=function(t,r){if(we.has(t))throw de(pe);return r.facade=t,we.set(t,r),r},Zr=function(t){return we.get(t)||{}},qr=function(t){return we.has(t)}}else{var be=ve("state");ge[be]=!0,Jr=function(t,r){if(le(t,be))throw de(pe);return r.facade=t,se(t,be,r),r},Zr=function(t){return le(t,be)?t[be]:{}},qr=function(t){return le(t,be)}}var me={set:Jr,get:Zr,has:qr,enforce:function(t){return qr(t)?Zr(t):Jr(t,{})},getterFor:function(t){return function(r){var e;if(!fe(r)||(e=Zr(r)).type!==t)throw de("Incompatible receiver, "+t+" required");return e}}},Ee=I,Ae=b,Se=H,Te=D,Oe=m,Ie=G.CONFIGURABLE,xe=ut,ke=me.enforce,Re=me.get,Pe=String,Ce=Object.defineProperty,Le=Ee("".slice),Ue=Ee("".replace),Me=Ee([].join),je=Oe&&!Ae((function(){return 8!==Ce((function(){}),"length",{value:8}).length})),De=String(String).split("String"),Be=W.exports=function(t,r,e){"Symbol("===Le(Pe(r),0,7)&&(r="["+Ue(Pe(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),e&&e.getter&&(r="get "+r),e&&e.setter&&(r="set "+r),(!Te(t,"name")||Ie&&t.name!==r)&&(Oe?Ce(t,"name",{value:r,configurable:!0}):t.name=r),je&&e&&Te(e,"arity")&&t.length!==e.arity&&Ce(t,"length",{value:e.arity});try{e&&Te(e,"constructor")&&e.constructor?Oe&&Ce(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=ke(t);return Te(n,"source")||(n.source=Me(De,"string"==typeof r?r:"")),t};Function.prototype.toString=Be((function(){return Se(this)&&Re(this).source||xe(this)}),"toString");var Fe=W.exports,_e=Fe,Ne=gt,Ve=function(t,r,e){return e.get&&_e(e.get,r,{getter:!0}),e.set&&_e(e.set,r,{setter:!0}),Ne.f(t,r,e)},Ge=m,We=G.EXISTS,Ye=I,$e=Ve,ze=Function.prototype,He=Ye(ze.toString),Ke=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Xe=Ye(Ke.exec);Ge&&!We&&$e(ze,"name",{configurable:!0,get:function(){try{return Xe(Ke,He(this))[1]}catch(t){return""}}});var Je={},Ze={},qe={}.propertyIsEnumerable,Qe=Object.getOwnPropertyDescriptor,tn=Qe&&!qe.call({1:2},1);Ze.f=tn?function(t){var r=Qe(this,t);return!!r&&r.enumerable}:qe;var rn=I,en=rn({}.toString),nn=rn("".slice),on=function(t){return nn(en(t),8,-1)},an=b,un=on,cn=Object,fn=I("".split),sn=an((function(){return!cn("z").propertyIsEnumerable(0)}))?function(t){return"String"===un(t)?fn(t,""):cn(t)}:cn,ln=sn,hn=P,vn=function(t){return ln(hn(t))},gn=m,pn=kt,dn=Ze,yn=Qr,wn=vn,bn=Fr,mn=D,En=mt,An=Object.getOwnPropertyDescriptor;Je.f=gn?An:function(t,r){if(t=wn(t),r=bn(r),En)try{return An(t,r)}catch(t){}if(mn(t,r))return yn(!pn(dn.f,t,r),t[r])};var Sn=H,Tn=gt,On=Fe,In=q,xn=function(t,r,e,n){n||(n={});var i=n.enumerable,o=void 0!==n.name?n.name:r;if(Sn(e)&&On(e,o,n),n.global)i?t[r]=e:In(r,e);else{try{n.unsafe?t[r]&&(i=!0):delete t[r]}catch(t){}i?t[r]=e:Tn.f(t,r,{value:e,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},kn={},Rn=Math.ceil,Pn=Math.floor,Cn=Math.trunc||function(t){var r=+t;return(r>0?Pn:Rn)(r)},Ln=Cn,Un=function(t){var r=+t;return r!=r||0===r?0:Ln(r)},Mn=Un,jn=Math.max,Dn=Math.min,Bn=function(t,r){var e=Mn(t);return e<0?jn(e+r,0):Dn(e,r)},Fn=Un,_n=Math.min,Nn=function(t){return t>0?_n(Fn(t),9007199254740991):0},Vn=Nn,Gn=function(t){return Vn(t.length)},Wn=vn,Yn=Bn,$n=Gn,zn=function(t){return function(r,e,n){var i,o=Wn(r),a=$n(o),u=Yn(n,a);if(t&&e!=e){for(;a>u;)if((i=o[u++])!=i)return!0}else for(;a>u;u++)if((t||u in o)&&o[u]===e)return t||u||0;return!t&&-1}},Hn={includes:zn(!0),indexOf:zn(!1)},Kn=D,Xn=vn,Jn=Hn.indexOf,Zn=ae,qn=I([].push),Qn=function(t,r){var e,n=Xn(t),i=0,o=[];for(e in n)!Kn(Zn,e)&&Kn(n,e)&&qn(o,e);for(;r.length>i;)Kn(n,e=r[i++])&&(~Jn(o,e)||qn(o,e));return o},ti=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ri=Qn,ei=ti.concat("length","prototype");kn.f=Object.getOwnPropertyNames||function(t){return ri(t,ei)};var ni={};ni.f=Object.getOwnPropertySymbols;var ii=Lt,oi=kn,ai=ni,ui=Ot,ci=I([].concat),fi=ii("Reflect","ownKeys")||function(t){var r=oi.f(ui(t)),e=ai.f;return e?ci(r,e(t)):r},si=D,li=fi,hi=Je,vi=gt,gi=function(t,r,e){for(var n=li(r),i=vi.f,o=hi.f,a=0;a<n.length;a++){var u=n[a];si(t,u)||e&&si(e,u)||i(t,u,o(r,u))}},pi=b,di=H,yi=/#|\.prototype\./,wi=function(t,r){var e=mi[bi(t)];return e===Ai||e!==Ei&&(di(r)?pi(r):!!r)},bi=wi.normalize=function(t){return String(t).replace(yi,".").toLowerCase()},mi=wi.data={},Ei=wi.NATIVE="N",Ai=wi.POLYFILL="P",Si=wi,Ti=X,Oi=Je.f,Ii=ee,xi=xn,ki=q,Ri=gi,Pi=Si,Ci=function(t,r){var e,n,i,o,a,u=t.target,c=t.global,f=t.stat;if(e=c?Ti:f?Ti[u]||ki(u,{}):(Ti[u]||{}).prototype)for(n in r){if(o=r[n],i=t.dontCallGetSet?(a=Oi(e,n))&&a.value:e[n],!Pi(c?n:u+(f?".":"#")+n,t.forced)&&void 0!==i){if(typeof o==typeof i)continue;Ri(o,i)}(t.sham||i&&i.sham)&&Ii(o,"sham",!0),xi(e,n,o,t)}},Li={},Ui=Qn,Mi=ti,ji=Object.keys||function(t){return Ui(t,Mi)},Di=m,Bi=Et,Fi=gt,_i=Ot,Ni=vn,Vi=ji;Li.f=Di&&!Bi?Object.defineProperties:function(t,r){_i(t);for(var e,n=Ni(r),i=Vi(r),o=i.length,a=0;o>a;)Fi.f(t,e=i[a++],n[e]);return t};var Gi=Ci,Wi=m,Yi=Li.f;Gi({target:"Object",stat:!0,forced:Object.defineProperties!==Yi,sham:!Wi},{defineProperties:Yi});var $i=on,zi=Array.isArray||function(t){return"Array"===$i(t)};Ci({target:"Array",stat:!0},{isArray:zi});var Hi,Ki=Lt("document","documentElement"),Xi=Ot,Ji=Li,Zi=ti,qi=ae,Qi=Ki,to=wt,ro=oe("IE_PROTO"),eo=function(){},no=function(t){return"<script>"+t+"</"+"script>"},io=function(t){t.write(no("")),t.close();var r=t.parentWindow.Object;return t=null,r},oo=function(){try{Hi=new ActiveXObject("htmlfile")}catch(t){}var t,r;oo="undefined"!=typeof document?document.domain&&Hi?io(Hi):((r=to("iframe")).style.display="none",Qi.appendChild(r),r.src=String("javascript:"),(t=r.contentWindow.document).open(),t.write(no("document.F=Object")),t.close(),t.F):io(Hi);for(var e=Zi.length;e--;)delete oo.prototype[Zi[e]];return oo()};qi[ro]=!0;var ao=Object.create||function(t,r){var e;return null!==t?(eo.prototype=Xi(t),e=new eo,eo.prototype=null,e[ro]=t):e=oo(),void 0===r?e:Ji.f(e,r)},uo=xr,co=ao,fo=gt.f,so=uo("unscopables"),lo=Array.prototype;void 0===lo[so]&&fo(lo,so,{configurable:!0,value:co(null)});var ho,vo,go,po=function(t){lo[so][t]=!0},yo={},wo=!b((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),bo=D,mo=H,Eo=U,Ao=wo,So=oe("IE_PROTO"),To=Object,Oo=To.prototype,Io=Ao?To.getPrototypeOf:function(t){var r=Eo(t);if(bo(r,So))return r[So];var e=r.constructor;return mo(e)&&r instanceof e?e.prototype:r instanceof To?Oo:null},xo=b,ko=H,Ro=vt,Po=Io,Co=xn,Lo=xr("iterator"),Uo=!1;[].keys&&("next"in(go=[].keys())?(vo=Po(Po(go)))!==Object.prototype&&(ho=vo):Uo=!0);var Mo=!Ro(ho)||xo((function(){var t={};return ho[Lo].call(t)!==t}));Mo&&(ho={}),ko(ho[Lo])||Co(ho,Lo,(function(){return this}));var jo={IteratorPrototype:ho,BUGGY_SAFARI_ITERATORS:Uo},Do=gt.f,Bo=D,Fo=xr("toStringTag"),_o=function(t,r,e){t&&!e&&(t=t.prototype),t&&!Bo(t,Fo)&&Do(t,Fo,{configurable:!0,value:r})},No=jo.IteratorPrototype,Vo=ao,Go=Qr,Wo=_o,Yo=yo,$o=function(){return this},zo=I,Ho=nr,Ko=H,Xo=String,Jo=TypeError,Zo=function(t,r,e){try{return zo(Ho(Object.getOwnPropertyDescriptor(t,r)[e]))}catch(t){}},qo=Ot,Qo=function(t){if("object"==typeof t||Ko(t))return t;throw Jo("Can't set "+Xo(t)+" as a prototype")},ta=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,e={};try{(t=Zo(Object.prototype,"__proto__","set"))(e,[]),r=e instanceof Array}catch(t){}return function(e,n){return qo(e),Qo(n),r?t(e,n):e.__proto__=n,e}}():void 0),ra=Ci,ea=kt,na=H,ia=function(t,r,e,n){var i=r+" Iterator";return t.prototype=Vo(No,{next:Go(+!n,e)}),Wo(t,i,!1),Yo[i]=$o,t},oa=Io,aa=ta,ua=_o,ca=ee,fa=xn,sa=yo,la=G.PROPER,ha=G.CONFIGURABLE,va=jo.IteratorPrototype,ga=jo.BUGGY_SAFARI_ITERATORS,pa=xr("iterator"),da="keys",ya="values",wa="entries",ba=function(){return this},ma=vn,Ea=po,Aa=yo,Sa=me,Ta=gt.f,Oa=function(t,r,e,n,i,o,a){ia(e,r,n);var u,c,f,s=function(t){if(t===i&&p)return p;if(!ga&&t&&t in v)return v[t];switch(t){case da:case ya:case wa:return function(){return new e(this,t)}}return function(){return new e(this)}},l=r+" Iterator",h=!1,v=t.prototype,g=v[pa]||v["@@iterator"]||i&&v[i],p=!ga&&g||s(i),d="Array"===r&&v.entries||g;if(d&&(u=oa(d.call(new t)))!==Object.prototype&&u.next&&(oa(u)!==va&&(aa?aa(u,va):na(u[pa])||fa(u,pa,ba)),ua(u,l,!0)),la&&i===ya&&g&&g.name!==ya&&(ha?ca(v,"name",ya):(h=!0,p=function(){return ea(g,this)})),i)if(c={values:s(ya),keys:o?p:s(da),entries:s(wa)},a)for(f in c)(ga||h||!(f in v))&&fa(v,f,c[f]);else ra({target:r,proto:!0,forced:ga||h},c);return v[pa]!==p&&fa(v,pa,p,{name:i}),sa[r]=p,c},Ia=function(t,r){return{value:t,done:r}},xa=m,ka="Array Iterator",Ra=Sa.set,Pa=Sa.getterFor(ka),Ca=Oa(Array,"Array",(function(t,r){Ra(this,{type:ka,target:ma(t),index:0,kind:r})}),(function(){var t=Pa(this),r=t.target,e=t.kind,n=t.index++;if(!r||n>=r.length)return t.target=void 0,Ia(void 0,!0);switch(e){case"keys":return Ia(n,!1);case"values":return Ia(r[n],!1)}return Ia([n,r[n]],!1)}),"values"),La=Aa.Arguments=Aa.Array;if(Ea("keys"),Ea("values"),Ea("entries"),xa&&"values"!==La.name)try{Ta(La,"name",{value:"values"})}catch(t){}var Ua=on,Ma=I,ja=function(t){if("Function"===Ua(t))return Ma(t)},Da="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,Ba=xn,Fa=Ut,_a=TypeError,Na=function(t,r){if(Fa(r,t))return t;throw _a("Incorrect invocation")},Va=Un,Ga=Nn,Wa=RangeError,Ya=function(t){if(void 0===t)return 0;var r=Va(t),e=Ga(r);if(r!==e)throw Wa("Wrong length or index");return e},$a=Math.sign||function(t){var r=+t;return 0===r||r!=r?r:r<0?-1:1},za=Cn,Ha=Array,Ka=Math.abs,Xa=Math.pow,Ja=Math.floor,Za=Math.log,qa=Math.LN2,Qa=function(t){var r=za(t),e=Ka(t-r);return e>.5||.5===e&&r%2!=0?r+$a(t):r},tu={pack:function(t,r,e){var n,i,o,a=Ha(e),u=8*e-r-1,c=(1<<u)-1,f=c>>1,s=23===r?Xa(2,-24)-Xa(2,-77):0,l=t<0||0===t&&1/t<0?1:0,h=0;for((t=Ka(t))!=t||t===1/0?(i=t!=t?1:0,n=c):(n=Ja(Za(t)/qa),t*(o=Xa(2,-n))<1&&(n--,o*=2),(t+=n+f>=1?s/o:s*Xa(2,1-f))*o>=2&&(n++,o/=2),n+f>=c?(i=0,n=c):n+f>=1?(i=Qa((t*o-1)*Xa(2,r)),n+=f):(i=Qa(t*Xa(2,f-1)*Xa(2,r)),n=0));r>=8;)a[h++]=255&i,i/=256,r-=8;for(n=n<<r|i,u+=r;u>0;)a[h++]=255&n,n/=256,u-=8;return a[--h]|=128*l,a},unpack:function(t,r){var e,n=t.length,i=8*n-r-1,o=(1<<i)-1,a=o>>1,u=i-7,c=n-1,f=t[c--],s=127&f;for(f>>=7;u>0;)s=256*s+t[c--],u-=8;for(e=s&(1<<-u)-1,s>>=-u,u+=r;u>0;)e=256*e+t[c--],u-=8;if(0===s)s=1-a;else{if(s===o)return e?NaN:f?-1/0:1/0;e+=Xa(2,r),s-=a}return(f?-1:1)*e*Xa(2,s-r)}},ru=U,eu=Bn,nu=Gn,iu=function(t){for(var r=ru(this),e=nu(r),n=arguments.length,i=eu(n>1?arguments[1]:void 0,e),o=n>2?arguments[2]:void 0,a=void 0===o?e:eu(o,e);a>i;)r[i++]=t;return r},ou=Fr,au=gt,uu=Qr,cu=function(t,r,e){var n=ou(r);n in t?au.f(t,n,uu(0,e)):t[n]=e},fu=Bn,su=Gn,lu=cu,hu=Array,vu=Math.max,gu=function(t,r,e){for(var n=su(t),i=fu(r,n),o=fu(void 0===e?n:e,n),a=hu(vu(o-i,0)),u=0;i<o;i++,u++)lu(a,u,t[i]);return a.length=u,a},pu=X,du=I,yu=m,wu=Da,bu=G,mu=ee,Eu=Ve,Au=function(t,r,e){for(var n in r)Ba(t,n,r[n],e);return t},Su=b,Tu=Na,Ou=Un,Iu=Nn,xu=Ya,ku=tu,Ru=Io,Pu=ta,Cu=kn.f,Lu=iu,Uu=gu,Mu=_o,ju=me,Du=bu.PROPER,Bu=bu.CONFIGURABLE,Fu="ArrayBuffer",_u="DataView",Nu="Wrong index",Vu=ju.getterFor(Fu),Gu=ju.getterFor(_u),Wu=ju.set,Yu=pu.ArrayBuffer,$u=Yu,zu=$u&&$u.prototype,Hu=pu.DataView,Ku=Hu&&Hu.prototype,Xu=Object.prototype,Ju=pu.Array,Zu=pu.RangeError,qu=du(Lu),Qu=du([].reverse),tc=ku.pack,rc=ku.unpack,ec=function(t){return[255&t]},nc=function(t){return[255&t,t>>8&255]},ic=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},oc=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},ac=function(t){return tc(t,23,4)},uc=function(t){return tc(t,52,8)},cc=function(t,r,e){Eu(t.prototype,r,{configurable:!0,get:function(){return e(this)[r]}})},fc=function(t,r,e,n){var i=Gu(t),o=xu(e),a=!!n;if(o+r>i.byteLength)throw Zu(Nu);var u=i.bytes,c=o+i.byteOffset,f=Uu(u,c,c+r);return a?f:Qu(f)},sc=function(t,r,e,n,i,o){var a=Gu(t),u=xu(e),c=n(+i),f=!!o;if(u+r>a.byteLength)throw Zu(Nu);for(var s=a.bytes,l=u+a.byteOffset,h=0;h<r;h++)s[l+h]=c[f?h:r-h-1]};if(wu){var lc=Du&&Yu.name!==Fu;if(Su((function(){Yu(1)}))&&Su((function(){new Yu(-1)}))&&!Su((function(){return new Yu,new Yu(1.5),new Yu(NaN),1!==Yu.length||lc&&!Bu})))lc&&Bu&&mu(Yu,"name",Fu);else{($u=function(t){return Tu(this,zu),new Yu(xu(t))}).prototype=zu;for(var hc,vc=Cu(Yu),gc=0;vc.length>gc;)(hc=vc[gc++])in $u||mu($u,hc,Yu[hc]);zu.constructor=$u}Pu&&Ru(Ku)!==Xu&&Pu(Ku,Xu);var pc=new Hu(new $u(2)),dc=du(Ku.setInt8);pc.setInt8(0,2147483648),pc.setInt8(1,2147483649),!pc.getInt8(0)&&pc.getInt8(1)||Au(Ku,{setInt8:function(t,r){dc(this,t,r<<24>>24)},setUint8:function(t,r){dc(this,t,r<<24>>24)}},{unsafe:!0})}else zu=($u=function(t){Tu(this,zu);var r=xu(t);Wu(this,{type:Fu,bytes:qu(Ju(r),0),byteLength:r}),yu||(this.byteLength=r,this.detached=!1)}).prototype,Ku=(Hu=function(t,r,e){Tu(this,Ku),Tu(t,zu);var n=Vu(t),i=n.byteLength,o=Ou(r);if(o<0||o>i)throw Zu("Wrong offset");if(o+(e=void 0===e?i-o:Iu(e))>i)throw Zu("Wrong length");Wu(this,{type:_u,buffer:t,byteLength:e,byteOffset:o,bytes:n.bytes}),yu||(this.buffer=t,this.byteLength=e,this.byteOffset=o)}).prototype,yu&&(cc($u,"byteLength",Vu),cc(Hu,"buffer",Gu),cc(Hu,"byteLength",Gu),cc(Hu,"byteOffset",Gu)),Au(Ku,{getInt8:function(t){return fc(this,1,t)[0]<<24>>24},getUint8:function(t){return fc(this,1,t)[0]},getInt16:function(t){var r=fc(this,2,t,arguments.length>1&&arguments[1]);return(r[1]<<8|r[0])<<16>>16},getUint16:function(t){var r=fc(this,2,t,arguments.length>1&&arguments[1]);return r[1]<<8|r[0]},getInt32:function(t){return oc(fc(this,4,t,arguments.length>1&&arguments[1]))},getUint32:function(t){return oc(fc(this,4,t,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(t){return rc(fc(this,4,t,arguments.length>1&&arguments[1]),23)},getFloat64:function(t){return rc(fc(this,8,t,arguments.length>1&&arguments[1]),52)},setInt8:function(t,r){sc(this,1,t,ec,r)},setUint8:function(t,r){sc(this,1,t,ec,r)},setInt16:function(t,r){sc(this,2,t,nc,r,arguments.length>2&&arguments[2])},setUint16:function(t,r){sc(this,2,t,nc,r,arguments.length>2&&arguments[2])},setInt32:function(t,r){sc(this,4,t,ic,r,arguments.length>2&&arguments[2])},setUint32:function(t,r){sc(this,4,t,ic,r,arguments.length>2&&arguments[2])},setFloat32:function(t,r){sc(this,4,t,ac,r,arguments.length>2&&arguments[2])},setFloat64:function(t,r){sc(this,8,t,uc,r,arguments.length>2&&arguments[2])}});Mu($u,Fu),Mu(Hu,_u);var yc={ArrayBuffer:$u,DataView:Hu},wc={};wc[xr("toStringTag")]="z";var bc="[object z]"===String(wc),mc=bc,Ec=H,Ac=on,Sc=xr("toStringTag"),Tc=Object,Oc="Arguments"===Ac(function(){return arguments}()),Ic=mc?Ac:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(r=Tc(t),Sc))?e:Oc?Ac(r):"Object"===(n=Ac(r))&&Ec(r.callee)?"Arguments":n},xc=I,kc=b,Rc=H,Pc=Ic,Cc=ut,Lc=function(){},Uc=[],Mc=Lt("Reflect","construct"),jc=/^\s*(?:class|function)\b/,Dc=xc(jc.exec),Bc=!jc.exec(Lc),Fc=function(t){if(!Rc(t))return!1;try{return Mc(Lc,Uc,t),!0}catch(t){return!1}},_c=function(t){if(!Rc(t))return!1;switch(Pc(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Bc||!!Dc(jc,Cc(t))}catch(t){return!0}};_c.sham=!0;var Nc=!Mc||kc((function(){var t;return Fc(Fc.call)||!Fc(Object)||!Fc((function(){t=!0}))||t}))?_c:Fc,Vc=Nc,Gc=Qt,Wc=TypeError,Yc=function(t){if(Vc(t))return t;throw Wc(Gc(t)+" is not a constructor")},$c=Ot,zc=Yc,Hc=x,Kc=xr("species"),Xc=function(t,r){var e,n=$c(t).constructor;return void 0===n||Hc(e=$c(n)[Kc])?r:zc(e)},Jc=Ci,Zc=ja,qc=b,Qc=Ot,tf=Bn,rf=Nn,ef=Xc,nf=yc.ArrayBuffer,of=yc.DataView,af=of.prototype,uf=Zc(nf.prototype.slice),cf=Zc(af.getUint8),ff=Zc(af.setUint8);Jc({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:qc((function(){return!new nf(2).slice(1,void 0).byteLength}))},{slice:function(t,r){if(uf&&void 0===r)return uf(Qc(this),t);for(var e=Qc(this).byteLength,n=tf(t,e),i=tf(void 0===r?e:r,e),o=new(ef(this,nf))(rf(i-n)),a=new of(this),u=new of(o),c=0;n<i;)ff(u,c++,cf(a,n++));return o}});var sf=Ic,lf=bc?{}.toString:function(){return"[object "+sf(this)+"]"};bc||xn(Object.prototype,"toString",lf,{unsafe:!0});var hf={exports:{}},vf=xr("iterator"),gf=!1;try{var pf=0,df={next:function(){return{done:!!pf++}},return:function(){gf=!0}};df[vf]=function(){return this},Array.from(df,(function(){throw 2}))}catch(t){}var yf,wf,bf,mf=Da,Ef=m,Af=X,Sf=H,Tf=vt,Of=D,If=Ic,xf=Qt,kf=ee,Rf=xn,Pf=Ve,Cf=Ut,Lf=Io,Uf=ta,Mf=xr,jf=wr,Df=me.enforce,Bf=me.get,Ff=Af.Int8Array,_f=Ff&&Ff.prototype,Nf=Af.Uint8ClampedArray,Vf=Nf&&Nf.prototype,Gf=Ff&&Lf(Ff),Wf=_f&&Lf(_f),Yf=Object.prototype,$f=Af.TypeError,zf=Mf("toStringTag"),Hf=jf("TYPED_ARRAY_TAG"),Kf="TypedArrayConstructor",Xf=mf&&!!Uf&&"Opera"!==If(Af.opera),Jf=!1,Zf={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},qf={BigInt64Array:8,BigUint64Array:8},Qf=function(t){var r=Lf(t);if(Tf(r)){var e=Bf(r);return e&&Of(e,Kf)?e.TypedArrayConstructor:Qf(r)}},ts=function(t){if(!Tf(t))return!1;var r=If(t);return Of(Zf,r)||Of(qf,r)};for(yf in Zf)(bf=(wf=Af[yf])&&wf.prototype)?Df(bf).TypedArrayConstructor=wf:Xf=!1;for(yf in qf)(bf=(wf=Af[yf])&&wf.prototype)&&(Df(bf).TypedArrayConstructor=wf);if((!Xf||!Sf(Gf)||Gf===Function.prototype)&&(Gf=function(){throw $f("Incorrect invocation")},Xf))for(yf in Zf)Af[yf]&&Uf(Af[yf],Gf);if((!Xf||!Wf||Wf===Yf)&&(Wf=Gf.prototype,Xf))for(yf in Zf)Af[yf]&&Uf(Af[yf].prototype,Wf);if(Xf&&Lf(Vf)!==Wf&&Uf(Vf,Wf),Ef&&!Of(Wf,zf))for(yf in Jf=!0,Pf(Wf,zf,{configurable:!0,get:function(){return Tf(this)?this[Hf]:void 0}}),Zf)Af[yf]&&kf(Af[yf],Hf,yf);var rs={NATIVE_ARRAY_BUFFER_VIEWS:Xf,TYPED_ARRAY_TAG:Jf&&Hf,aTypedArray:function(t){if(ts(t))return t;throw $f("Target is not a typed array")},aTypedArrayConstructor:function(t){if(Sf(t)&&(!Uf||Cf(Gf,t)))return t;throw $f(xf(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,r,e,n){if(Ef){if(e)for(var i in Zf){var o=Af[i];if(o&&Of(o.prototype,t))try{delete o.prototype[t]}catch(e){try{o.prototype[t]=r}catch(t){}}}Wf[t]&&!e||Rf(Wf,t,e?r:Xf&&_f[t]||r,n)}},exportTypedArrayStaticMethod:function(t,r,e){var n,i;if(Ef){if(Uf){if(e)for(n in Zf)if((i=Af[n])&&Of(i,t))try{delete i[t]}catch(t){}if(Gf[t]&&!e)return;try{return Rf(Gf,t,e?r:Xf&&Gf[t]||r)}catch(t){}}for(n in Zf)!(i=Af[n])||i[t]&&!e||Rf(i,t,r)}},getTypedArrayConstructor:Qf,isView:function(t){if(!Tf(t))return!1;var r=If(t);return"DataView"===r||Of(Zf,r)||Of(qf,r)},isTypedArray:ts,TypedArray:Gf,TypedArrayPrototype:Wf},es=X,ns=b,is=function(t,r){try{if(!r&&!gf)return!1}catch(t){return!1}var e=!1;try{var n={};n[vf]=function(){return{next:function(){return{done:e=!0}}}},t(n)}catch(t){}return e},os=rs.NATIVE_ARRAY_BUFFER_VIEWS,as=es.ArrayBuffer,us=es.Int8Array,cs=!os||!ns((function(){us(1)}))||!ns((function(){new us(-1)}))||!is((function(t){new us,new us(null),new us(1.5),new us(t)}),!0)||ns((function(){return 1!==new us(new as(2),1,void 0).length})),fs=vt,ss=Math.floor,ls=Number.isInteger||function(t){return!fs(t)&&isFinite(t)&&ss(t)===t},hs=Un,vs=RangeError,gs=function(t){var r=hs(t);if(r<0)throw vs("The argument can't be less than 0");return r},ps=RangeError,ds=function(t,r){var e=gs(t);if(e%r)throw ps("Wrong offset");return e},ys=Math.round,ws=nr,bs=E,ms=ja(ja.bind),Es=function(t,r){return ws(t),void 0===r?t:bs?ms(t,r):function(){return t.apply(r,arguments)}},As=Ic,Ss=ar,Ts=x,Os=yo,Is=xr("iterator"),xs=function(t){if(!Ts(t))return Ss(t,Is)||Ss(t,"@@iterator")||Os[As(t)]},ks=kt,Rs=nr,Ps=Ot,Cs=Qt,Ls=xs,Us=TypeError,Ms=yo,js=xr("iterator"),Ds=Array.prototype,Bs=Ic,Fs=jr,_s=TypeError,Ns=function(t){var r=Fs(t,"number");if("number"==typeof r)throw _s("Can't convert number to bigint");return BigInt(r)},Vs=Es,Gs=kt,Ws=Yc,Ys=U,$s=Gn,zs=function(t,r){var e=arguments.length<2?Ls(t):r;if(Rs(e))return Ps(ks(e,t));throw Us(Cs(t)+" is not iterable")},Hs=xs,Ks=function(t){return void 0!==t&&(Ms.Array===t||Ds[js]===t)},Xs=function(t){var r=Bs(t);return"BigInt64Array"===r||"BigUint64Array"===r},Js=rs.aTypedArrayConstructor,Zs=Ns,qs=zi,Qs=Nc,tl=vt,rl=xr("species"),el=Array,nl=function(t){var r;return qs(t)&&(r=t.constructor,(Qs(r)&&(r===el||qs(r.prototype))||tl(r)&&null===(r=r[rl]))&&(r=void 0)),void 0===r?el:r},il=function(t,r){return new(nl(t))(0===r?0:r)},ol=Es,al=sn,ul=U,cl=Gn,fl=il,sl=I([].push),ll=function(t){var r=1===t,e=2===t,n=3===t,i=4===t,o=6===t,a=7===t,u=5===t||o;return function(c,f,s,l){for(var h,v,g=ul(c),p=al(g),d=ol(f,s),y=cl(p),w=0,b=l||fl,m=r?b(c,y):e||a?b(c,0):void 0;y>w;w++)if((u||w in p)&&(v=d(h=p[w],w,g),t))if(r)m[w]=v;else if(v)switch(t){case 3:return!0;case 5:return h;case 6:return w;case 2:sl(m,h)}else switch(t){case 4:return!1;case 7:sl(m,h)}return o?-1:n||i?i:m}},hl={forEach:ll(0),map:ll(1),filter:ll(2),some:ll(3),every:ll(4),find:ll(5),findIndex:ll(6),filterReject:ll(7)},vl=Lt,gl=Ve,pl=m,dl=xr("species"),yl=function(t){var r=vl(t);pl&&r&&!r[dl]&&gl(r,dl,{configurable:!0,get:function(){return this}})},wl=H,bl=vt,ml=ta,El=function(t,r,e){var n,i;return ml&&wl(n=r.constructor)&&n!==e&&bl(i=n.prototype)&&i!==e.prototype&&ml(t,i),t},Al=Ci,Sl=X,Tl=kt,Ol=m,Il=cs,xl=rs,kl=yc,Rl=Na,Pl=Qr,Cl=ee,Ll=ls,Ul=Nn,Ml=Ya,jl=ds,Dl=function(t){var r=ys(t);return r<0?0:r>255?255:255&r},Bl=Fr,Fl=D,_l=Ic,Nl=vt,Vl=Zt,Gl=ao,Wl=Ut,Yl=ta,$l=kn.f,zl=function(t){var r,e,n,i,o,a,u,c,f=Ws(this),s=Ys(t),l=arguments.length,h=l>1?arguments[1]:void 0,v=void 0!==h,g=Hs(s);if(g&&!Ks(g))for(c=(u=zs(s,g)).next,s=[];!(a=Gs(c,u)).done;)s.push(a.value);for(v&&l>2&&(h=Vs(h,arguments[2])),e=$s(s),n=new(Js(f))(e),i=Xs(n),r=0;e>r;r++)o=v?h(s[r],r):s[r],n[r]=i?Zs(o):+o;return n},Hl=hl.forEach,Kl=yl,Xl=Ve,Jl=gt,Zl=Je,ql=El,Ql=me.get,th=me.set,rh=me.enforce,eh=Jl.f,nh=Zl.f,ih=Sl.RangeError,oh=kl.ArrayBuffer,ah=oh.prototype,uh=kl.DataView,ch=xl.NATIVE_ARRAY_BUFFER_VIEWS,fh=xl.TYPED_ARRAY_TAG,sh=xl.TypedArray,lh=xl.TypedArrayPrototype,hh=xl.aTypedArrayConstructor,vh=xl.isTypedArray,gh="BYTES_PER_ELEMENT",ph="Wrong length",dh=function(t,r){hh(t);for(var e=0,n=r.length,i=new t(n);n>e;)i[e]=r[e++];return i},yh=function(t,r){Xl(t,r,{configurable:!0,get:function(){return Ql(this)[r]}})},wh=function(t){var r;return Wl(ah,t)||"ArrayBuffer"===(r=_l(t))||"SharedArrayBuffer"===r},bh=function(t,r){return vh(t)&&!Vl(r)&&r in t&&Ll(+r)&&r>=0},mh=function(t,r){return r=Bl(r),bh(t,r)?Pl(2,t[r]):nh(t,r)},Eh=function(t,r,e){return r=Bl(r),!(bh(t,r)&&Nl(e)&&Fl(e,"value"))||Fl(e,"get")||Fl(e,"set")||e.configurable||Fl(e,"writable")&&!e.writable||Fl(e,"enumerable")&&!e.enumerable?eh(t,r,e):(t[r]=e.value,t)};Ol?(ch||(Zl.f=mh,Jl.f=Eh,yh(lh,"buffer"),yh(lh,"byteOffset"),yh(lh,"byteLength"),yh(lh,"length")),Al({target:"Object",stat:!0,forced:!ch},{getOwnPropertyDescriptor:mh,defineProperty:Eh}),hf.exports=function(t,r,e){var n=t.match(/\d+/)[0]/8,i=t+(e?"Clamped":"")+"Array",o="get"+t,a="set"+t,u=Sl[i],c=u,f=c&&c.prototype,s={},l=function(t,r){eh(t,r,{get:function(){return function(t,r){var e=Ql(t);return e.view[o](r*n+e.byteOffset,!0)}(this,r)},set:function(t){return function(t,r,i){var o=Ql(t);o.view[a](r*n+o.byteOffset,e?Dl(i):i,!0)}(this,r,t)},enumerable:!0})};ch?Il&&(c=r((function(t,r,e,i){return Rl(t,f),ql(Nl(r)?wh(r)?void 0!==i?new u(r,jl(e,n),i):void 0!==e?new u(r,jl(e,n)):new u(r):vh(r)?dh(c,r):Tl(zl,c,r):new u(Ml(r)),t,c)})),Yl&&Yl(c,sh),Hl($l(u),(function(t){t in c||Cl(c,t,u[t])})),c.prototype=f):(c=r((function(t,r,e,i){Rl(t,f);var o,a,u,s=0,h=0;if(Nl(r)){if(!wh(r))return vh(r)?dh(c,r):Tl(zl,c,r);o=r,h=jl(e,n);var v=r.byteLength;if(void 0===i){if(v%n)throw ih(ph);if((a=v-h)<0)throw ih(ph)}else if((a=Ul(i)*n)+h>v)throw ih(ph);u=a/n}else u=Ml(r),o=new oh(a=u*n);for(th(t,{buffer:o,byteOffset:h,byteLength:a,length:u,view:new uh(o)});s<u;)l(t,s++)})),Yl&&Yl(c,sh),f=c.prototype=Gl(lh)),f.constructor!==c&&Cl(f,"constructor",c),rh(f).TypedArrayConstructor=c,fh&&Cl(f,fh,i);var h=c!==u;s[i]=c,Al({global:!0,constructor:!0,forced:h,sham:!ch},s),gh in c||Cl(c,gh,n),gh in f||Cl(f,gh,n),Kl(i)}):hf.exports=function(){};var Ah=hf.exports;Ah("Uint8",(function(t){return function(r,e,n){return t(this,r,e,n)}}));var Sh=Qt,Th=TypeError,Oh=U,Ih=Bn,xh=Gn,kh=function(t,r){if(!delete t[r])throw Th("Cannot delete property "+Sh(r)+" of "+Sh(t))},Rh=Math.min,Ph=[].copyWithin||function(t,r){var e=Oh(this),n=xh(e),i=Ih(t,n),o=Ih(r,n),a=arguments.length>2?arguments[2]:void 0,u=Rh((void 0===a?n:Ih(a,n))-o,n-i),c=1;for(o<i&&i<o+u&&(c=-1,o+=u-1,i+=u-1);u-- >0;)o in e?e[i]=e[o]:kh(e,i),i+=c,o+=c;return e},Ch=rs,Lh=I(Ph),Uh=Ch.aTypedArray;(0,Ch.exportTypedArrayMethod)("copyWithin",(function(t,r){return Lh(Uh(this),t,r,arguments.length>2?arguments[2]:void 0)}));var Mh=hl.every,jh=rs.aTypedArray;(0,rs.exportTypedArrayMethod)("every",(function(t){return Mh(jh(this),t,arguments.length>1?arguments[1]:void 0)}));var Dh=iu,Bh=Ns,Fh=Ic,_h=kt,Nh=b,Vh=rs.aTypedArray,Gh=rs.exportTypedArrayMethod,Wh=I("".slice);Gh("fill",(function(t){var r=arguments.length;Vh(this);var e="Big"===Wh(Fh(this),0,3)?Bh(t):+t;return _h(Dh,this,e,r>1?arguments[1]:void 0,r>2?arguments[2]:void 0)}),Nh((function(){var t=0;return new Int8Array(2).fill({valueOf:function(){return t++}}),1!==t})));var Yh=Gn,$h=Xc,zh=rs.aTypedArrayConstructor,Hh=rs.getTypedArrayConstructor,Kh=function(t){return zh($h(t,Hh(t)))},Xh=function(t,r){for(var e=0,n=Yh(r),i=new t(n);n>e;)i[e]=r[e++];return i},Jh=Kh,Zh=hl.filter,qh=function(t,r){return Xh(Jh(t),r)},Qh=rs.aTypedArray;(0,rs.exportTypedArrayMethod)("filter",(function(t){var r=Zh(Qh(this),t,arguments.length>1?arguments[1]:void 0);return qh(this,r)}));var tv=hl.find,rv=rs.aTypedArray;(0,rs.exportTypedArrayMethod)("find",(function(t){return tv(rv(this),t,arguments.length>1?arguments[1]:void 0)}));var ev=hl.findIndex,nv=rs.aTypedArray;(0,rs.exportTypedArrayMethod)("findIndex",(function(t){return ev(nv(this),t,arguments.length>1?arguments[1]:void 0)}));var iv=hl.forEach,ov=rs.aTypedArray;(0,rs.exportTypedArrayMethod)("forEach",(function(t){iv(ov(this),t,arguments.length>1?arguments[1]:void 0)}));var av=Hn.includes,uv=rs.aTypedArray;(0,rs.exportTypedArrayMethod)("includes",(function(t){return av(uv(this),t,arguments.length>1?arguments[1]:void 0)}));var cv=Hn.indexOf,fv=rs.aTypedArray;(0,rs.exportTypedArrayMethod)("indexOf",(function(t){return cv(fv(this),t,arguments.length>1?arguments[1]:void 0)}));var sv=X,lv=b,hv=I,vv=rs,gv=Ca,pv=xr("iterator"),dv=sv.Uint8Array,yv=hv(gv.values),wv=hv(gv.keys),bv=hv(gv.entries),mv=vv.aTypedArray,Ev=vv.exportTypedArrayMethod,Av=dv&&dv.prototype,Sv=!lv((function(){Av[pv].call([1])})),Tv=!!Av&&Av.values&&Av[pv]===Av.values&&"values"===Av.values.name,Ov=function(){return yv(mv(this))};Ev("entries",(function(){return bv(mv(this))}),Sv),Ev("keys",(function(){return wv(mv(this))}),Sv),Ev("values",Ov,Sv||!Tv,{name:"values"}),Ev(pv,Ov,Sv||!Tv,{name:"values"});var Iv=rs.aTypedArray,xv=rs.exportTypedArrayMethod,kv=I([].join);xv("join",(function(t){return kv(Iv(this),t)}));var Rv=E,Pv=Function.prototype,Cv=Pv.apply,Lv=Pv.call,Uv="object"==typeof Reflect&&Reflect.apply||(Rv?Lv.bind(Cv):function(){return Lv.apply(Cv,arguments)}),Mv=b,jv=function(t,r){var e=[][t];return!!e&&Mv((function(){e.call(null,r||function(){return 1},1)}))},Dv=Uv,Bv=vn,Fv=Un,_v=Gn,Nv=jv,Vv=Math.min,Gv=[].lastIndexOf,Wv=!!Gv&&1/[1].lastIndexOf(1,-0)<0,Yv=Nv("lastIndexOf"),$v=Wv||!Yv?function(t){if(Wv)return Dv(Gv,this,arguments)||0;var r=Bv(this),e=_v(r),n=e-1;for(arguments.length>1&&(n=Vv(n,Fv(arguments[1]))),n<0&&(n=e+n);n>=0;n--)if(n in r&&r[n]===t)return n||0;return-1}:Gv,zv=Uv,Hv=$v,Kv=rs.aTypedArray;(0,rs.exportTypedArrayMethod)("lastIndexOf",(function(t){var r=arguments.length;return zv(Hv,Kv(this),r>1?[t,arguments[1]]:[t])}));var Xv=hl.map,Jv=Kh,Zv=rs.aTypedArray;(0,rs.exportTypedArrayMethod)("map",(function(t){return Xv(Zv(this),t,arguments.length>1?arguments[1]:void 0,(function(t,r){return new(Jv(t))(r)}))}));var qv=nr,Qv=U,tg=sn,rg=Gn,eg=TypeError,ng=function(t){return function(r,e,n,i){qv(e);var o=Qv(r),a=tg(o),u=rg(o),c=t?u-1:0,f=t?-1:1;if(n<2)for(;;){if(c in a){i=a[c],c+=f;break}if(c+=f,t?c<0:u<=c)throw eg("Reduce of empty array with no initial value")}for(;t?c>=0:u>c;c+=f)c in a&&(i=e(i,a[c],c,o));return i}},ig={left:ng(!1),right:ng(!0)},og=ig.left,ag=rs.aTypedArray;(0,rs.exportTypedArrayMethod)("reduce",(function(t){var r=arguments.length;return og(ag(this),t,r,r>1?arguments[1]:void 0)}));var ug=ig.right,cg=rs.aTypedArray;(0,rs.exportTypedArrayMethod)("reduceRight",(function(t){var r=arguments.length;return ug(cg(this),t,r,r>1?arguments[1]:void 0)}));var fg=rs.aTypedArray,sg=rs.exportTypedArrayMethod,lg=Math.floor;sg("reverse",(function(){for(var t,r=this,e=fg(r).length,n=lg(e/2),i=0;i<n;)t=r[i],r[i++]=r[--e],r[e]=t;return r}));var hg=X,vg=kt,gg=rs,pg=Gn,dg=ds,yg=U,wg=b,bg=hg.RangeError,mg=hg.Int8Array,Eg=mg&&mg.prototype,Ag=Eg&&Eg.set,Sg=gg.aTypedArray,Tg=gg.exportTypedArrayMethod,Og=!wg((function(){var t=new Uint8ClampedArray(2);return vg(Ag,t,{length:1,0:3},1),3!==t[1]})),Ig=Og&&gg.NATIVE_ARRAY_BUFFER_VIEWS&&wg((function(){var t=new mg(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));Tg("set",(function(t){Sg(this);var r=dg(arguments.length>1?arguments[1]:void 0,1),e=yg(t);if(Og)return vg(Ag,this,e,r);var n=this.length,i=pg(e),o=0;if(i+r>n)throw bg("Wrong length");for(;o<i;)this[r+o]=e[o++]}),!Og||Ig);var xg=I([].slice),kg=Kh,Rg=xg,Pg=rs.aTypedArray;(0,rs.exportTypedArrayMethod)("slice",(function(t,r){for(var e=Rg(Pg(this),t,r),n=kg(this),i=0,o=e.length,a=new n(o);o>i;)a[i]=e[i++];return a}),b((function(){new Int8Array(1).slice()})));var Cg=hl.some,Lg=rs.aTypedArray;(0,rs.exportTypedArrayMethod)("some",(function(t){return Cg(Lg(this),t,arguments.length>1?arguments[1]:void 0)}));var Ug=gu,Mg=Math.floor,jg=function(t,r){var e=t.length,n=Mg(e/2);return e<8?Dg(t,r):Bg(t,jg(Ug(t,0,n),r),jg(Ug(t,n),r),r)},Dg=function(t,r){for(var e,n,i=t.length,o=1;o<i;){for(n=o,e=t[o];n&&r(t[n-1],e)>0;)t[n]=t[--n];n!==o++&&(t[n]=e)}return t},Bg=function(t,r,e,n){for(var i=r.length,o=e.length,a=0,u=0;a<i||u<o;)t[a+u]=a<i&&u<o?n(r[a],e[u])<=0?r[a++]:e[u++]:a<i?r[a++]:e[u++];return t},Fg=jg,_g=Mt.match(/firefox\/(\d+)/i),Ng=!!_g&&+_g[1],Vg=/MSIE|Trident/.test(Mt),Gg=Mt.match(/AppleWebKit\/(\d+)\./),Wg=!!Gg&&+Gg[1],Yg=ja,$g=b,zg=nr,Hg=Fg,Kg=Ng,Xg=Vg,Jg=Vt,Zg=Wg,qg=rs.aTypedArray,Qg=rs.exportTypedArrayMethod,tp=X.Uint16Array,rp=tp&&Yg(tp.prototype.sort),ep=!(!rp||$g((function(){rp(new tp(2),null)}))&&$g((function(){rp(new tp(2),{})}))),np=!!rp&&!$g((function(){if(Jg)return Jg<74;if(Kg)return Kg<67;if(Xg)return!0;if(Zg)return Zg<602;var t,r,e=new tp(516),n=Array(516);for(t=0;t<516;t++)r=t%4,e[t]=515-t,n[t]=t-2*r+3;for(rp(e,(function(t,r){return(t/4|0)-(r/4|0)})),t=0;t<516;t++)if(e[t]!==n[t])return!0}));Qg("sort",(function(t){return void 0!==t&&zg(t),np?rp(this,t):Hg(qg(this),function(t){return function(r,e){return void 0!==t?+t(r,e)||0:e!=e?-1:r!=r?1:0===r&&0===e?1/r>0&&1/e<0?1:-1:r>e}}(t))}),!np||ep);var ip=Nn,op=Bn,ap=Kh,up=rs.aTypedArray;(0,rs.exportTypedArrayMethod)("subarray",(function(t,r){var e=up(this),n=e.length,i=op(t,n);return new(ap(e))(e.buffer,e.byteOffset+i*e.BYTES_PER_ELEMENT,ip((void 0===r?n:op(r,n))-i))}));var cp=Uv,fp=rs,sp=b,lp=xg,hp=X.Int8Array,vp=fp.aTypedArray,gp=fp.exportTypedArrayMethod,pp=[].toLocaleString,dp=!!hp&&sp((function(){pp.call(new hp(1))}));gp("toLocaleString",(function(){return cp(pp,dp?lp(vp(this)):vp(this),lp(arguments))}),sp((function(){return[1,2].toLocaleString()!==new hp([1,2]).toLocaleString()}))||!sp((function(){hp.prototype.toLocaleString.call([1,2])})));var yp=rs.exportTypedArrayMethod,wp=b,bp=I,mp=X.Uint8Array,Ep=mp&&mp.prototype||{},Ap=[].toString,Sp=bp([].join);wp((function(){Ap.call({})}))&&(Ap=function(){return Sp(this)});var Tp=Ep.toString!==Ap;yp("toString",Ap,Tp);var Op=b,Ip=Vt,xp=xr("species"),kp=function(t){return Ip>=51||!Op((function(){var r=[];return(r.constructor={})[xp]=function(){return{foo:1}},1!==r[t](Boolean).foo}))},Rp=Ci,Pp=zi,Cp=Nc,Lp=vt,Up=Bn,Mp=Gn,jp=vn,Dp=cu,Bp=xr,Fp=xg,_p=kp("slice"),Np=Bp("species"),Vp=Array,Gp=Math.max;Rp({target:"Array",proto:!0,forced:!_p},{slice:function(t,r){var e,n,i,o=jp(this),a=Mp(o),u=Up(t,a),c=Up(void 0===r?a:r,a);if(Pp(o)&&(e=o.constructor,(Cp(e)&&(e===Vp||Pp(e.prototype))||Lp(e)&&null===(e=e[Np]))&&(e=void 0),e===Vp||void 0===e))return Fp(o,u,c);for(n=new(void 0===e?Vp:e)(Gp(c-u,0)),i=0;u<c;u++,i++)u in o&&Dp(n,i,o[u]);return n.length=i,n}});Ci({target:"ArrayBuffer",stat:!0,forced:!rs.NATIVE_ARRAY_BUFFER_VIEWS},{isView:rs.isView});var Wp=yl,Yp="ArrayBuffer",$p=yc.ArrayBuffer;Ci({global:!0,constructor:!0,forced:X.ArrayBuffer!==$p},{ArrayBuffer:$p}),Wp(Yp);var zp=TypeError,Hp=function(t){if(t>9007199254740991)throw zp("Maximum allowed index exceeded");return t},Kp=Ci,Xp=b,Jp=zi,Zp=vt,qp=U,Qp=Gn,td=Hp,rd=cu,ed=il,nd=kp,id=Vt,od=xr("isConcatSpreadable"),ad=id>=51||!Xp((function(){var t=[];return t[od]=!1,t.concat()[0]!==t})),ud=function(t){if(!Zp(t))return!1;var r=t[od];return void 0!==r?!!r:Jp(t)};Kp({target:"Array",proto:!0,arity:1,forced:!ad||!nd("concat")},{concat:function(t){var r,e,n,i,o,a=qp(this),u=ed(a,0),c=0;for(r=-1,n=arguments.length;r<n;r++)if(ud(o=-1===r?a:arguments[r]))for(i=Qp(o),td(c+i),e=0;e<i;e++,c++)e in o&&rd(u,c,o[e]);else td(c+1),rd(u,c++,o);return u.length=c,u}});var cd,fd=Ic,sd=String,ld=function(t){if("Symbol"===fd(t))throw TypeError("Cannot convert a Symbol value to a string");return sd(t)},hd=vt,vd=on,gd=xr("match"),pd=function(t){var r;return hd(t)&&(void 0!==(r=t[gd])?!!r:"RegExp"===vd(t))},dd=pd,yd=TypeError,wd=function(t){if(dd(t))throw yd("The method doesn't accept regular expressions");return t},bd=xr("match"),md=function(t){var r=/./;try{"/./"[t](r)}catch(e){try{return r[bd]=!1,"/./"[t](r)}catch(t){}}return!1},Ed=Ci,Ad=ja,Sd=Je.f,Td=Nn,Od=ld,Id=wd,xd=P,kd=md,Rd=Ad("".endsWith),Pd=Ad("".slice),Cd=Math.min,Ld=kd("endsWith");Ed({target:"String",proto:!0,forced:!!(Ld||(cd=Sd(String.prototype,"endsWith"),!cd||cd.writable))&&!Ld},{endsWith:function(t){var r=Od(xd(this));Id(t);var e=arguments.length>1?arguments[1]:void 0,n=r.length,i=void 0===e?n:Cd(Td(e),n),o=Od(t);return Rd?Rd(r,o,i):Pd(r,i-o.length,i)===o}}),Ci({global:!0,constructor:!0,forced:!Da},{DataView:yc.DataView}),Ah("Uint16",(function(t){return function(r,e,n){return t(this,r,e,n)}}));var Ud=hl.forEach,Md=jv("forEach")?[].forEach:function(t){return Ud(this,t,arguments.length>1?arguments[1]:void 0)};Ci({target:"Array",proto:!0,forced:[].forEach!==Md},{forEach:Md});var jd=wt("span").classList,Dd=jd&&jd.constructor&&jd.constructor.prototype,Bd=X,Fd={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},_d=Dd===Object.prototype?void 0:Dd,Nd=Md,Vd=ee,Gd=function(t){if(t&&t.forEach!==Nd)try{Vd(t,"forEach",Nd)}catch(r){t.forEach=Nd}};for(var Wd in Fd)Fd[Wd]&&Gd(Bd[Wd]&&Bd[Wd].prototype);Gd(_d);var Yd=["windows1251","utf-16","utf-16be","utf-8"];function $d(t){var r="",e=0,n=0,i=0,o=0;for(e+=239===t[0]&&187===t[1]&&191===t[2]?3:0;e<t.length;)switch((n=t[e++])>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:r+=String.fromCharCode(n);break;case 12:case 13:i=t[e++],r+=String.fromCharCode((31&n)<<6|63&i);break;case 14:i=t[e++],o=t[e++],r+=String.fromCharCode((15&n)<<12|(63&i)<<6|(63&o)<<0);break;default:r+=""}return r}function zd(t){for(var r=[],e=0;e<t.length;e++){var n=t.charCodeAt(e);n<128?r.push(n):n<2048?r.push(192|n>>6,128|63&n):n<55296||n>=57344?r.push(224|n>>12,128|n>>6&63,128|63&n):(e++,n=65536+((1023&n)<<10|1023&t.charCodeAt(e)),r.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|63&n))}return r}function Hd(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"windows1251",e=[];switch(r){case"utf-8":e=zd(t);break;case"utf-16":case"utf-16be":for(var n=new ArrayBuffer(2*t.length),i=new Uint16Array(n),o=new Uint8Array(n),a=0;a<t.length;a++)i[a]=t.charCodeAt(a);e=[255,254],o.forEach((function(t){return e.push(t)}));break;default:for(var u=0;u<t.length;u++)e.push(t.charCodeAt(u))}return e}function Kd(t){return t instanceof ArrayBuffer||"undefined"!=typeof Buffer&&t instanceof Buffer}var Xd=function(t){!function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&c(t,r)}(a,t);var r,e,i=(r=a,e=f(),function(){var t,n=u(r);if(e){var i=u(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return h(this,t)});function a(){n(this,a);for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];return("number"==typeof r[0]||Array.isArray(r[0]))&&(r[0]=new Uint8Array(r[0])),ArrayBuffer.isView(r[0])&&(r[0]=r[0].buffer),i.call.apply(i,[this].concat(r))}return o(a,[{key:"getString",value:function(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"windows1251",n="",i=this.getUint8(t,r);switch(Array.isArray(i)||(i=[i]),e){case"utf8":case"utf-8":n=$d(i);break;case"utf16":case"utf16be":case"utf-16":case"utf-16be":var o=null;255===i[0]&&254===i[1]?o=!0:254===i[0]&&255===i[1]&&(o=!1),null!==o&&(t+=2,r-=2),n=this.getUint16String(t,r,!0===o);break;default:n=this.getUint8String(t,r)}return{string:n.endsWith("\0")?n.substring(0,n.length-1):n,length:i.length}}},{key:"getCString",value:function(t){var r,e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"windows1251",i=this.byteLength-t;switch(n){case"utf16":case"utf16be":case"utf-16":case"utf-16be":e=2,r=this.getUint16(t,i);break;default:e=1,r=this.getUint8(t,i)}Array.isArray(r)||(r=[r]);for(var o=0;o<r.length;o++)if(0===r[o]){i=(o+1)*e;break}return this.getString(t,i,n)}},{key:"getUint8String",value:function(t,r){var e=this.getUint8(t,r),n="";Array.isArray(e)||(e=[e]);for(var i=0;i<e.length;i++){n+=String.fromCharCode(e[i])}return n}},{key:"getUint16String",value:function(t,r){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=this.getUint16(t,r,e),i="";Array.isArray(n)||(n=[n]);for(var o=0;o<n.length;o++){var a=String.fromCharCode(n[o]);i+=a}return i}},{key:"getUint8",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,e=t+r,n=[];if(this.byteLength-e<0)return!1;for(var i=t;i<e;i++){var o=DataView.prototype.getUint8.call(this,i);n.push(o)}return 1===n.length?n[0]:n}},{key:"getUint16",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];r%2!=0&&(r-=1);var n=t+r,i=[];if(this.byteLength-n<0)return!1;for(var o=t;o<n;o+=2){var a=DataView.prototype.getUint16.call(this,o,e);i.push(a)}return 1===i.length?i[0]:i}}],[{key:"isViewable",value:function(t){return!!(Kd(t)||Array.isArray(t)||ArrayBuffer.isView(t))}}]),a}(l(DataView)),Jd=Ot,Zd=function(){var t=Jd(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),t.sticky&&(r+="y"),r},qd=b,Qd=X.RegExp,ty=qd((function(){var t=Qd("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),ry=ty||qd((function(){return!Qd("a","y").sticky})),ey=ty||qd((function(){var t=Qd("^r","gy");return t.lastIndex=2,null!==t.exec("str")})),ny={BROKEN_CARET:ey,MISSED_STICKY:ry,UNSUPPORTED_Y:ty},iy=b,oy=X.RegExp,ay=iy((function(){var t=oy(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),uy=b,cy=X.RegExp,fy=uy((function(){var t=cy("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),sy=kt,ly=I,hy=ld,vy=Zd,gy=ny,py=ao,dy=me.get,yy=ay,wy=fy,by=vr("native-string-replace",String.prototype.replace),my=RegExp.prototype.exec,Ey=my,Ay=ly("".charAt),Sy=ly("".indexOf),Ty=ly("".replace),Oy=ly("".slice),Iy=function(){var t=/a/,r=/b*/g;return sy(my,t,"a"),sy(my,r,"a"),0!==t.lastIndex||0!==r.lastIndex}(),xy=gy.BROKEN_CARET,ky=void 0!==/()??/.exec("")[1];(Iy||ky||xy||yy||wy)&&(Ey=function(t){var r,e,n,i,o,a,u,c=this,f=dy(c),s=hy(t),l=f.raw;if(l)return l.lastIndex=c.lastIndex,r=sy(Ey,l,s),c.lastIndex=l.lastIndex,r;var h=f.groups,v=xy&&c.sticky,g=sy(vy,c),p=c.source,d=0,y=s;if(v&&(g=Ty(g,"y",""),-1===Sy(g,"g")&&(g+="g"),y=Oy(s,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==Ay(s,c.lastIndex-1))&&(p="(?: "+p+")",y=" "+y,d++),e=new RegExp("^(?:"+p+")",g)),ky&&(e=new RegExp("^"+p+"$(?!\\s)",g)),Iy&&(n=c.lastIndex),i=sy(my,v?e:c,y),v?i?(i.input=Oy(i.input,d),i[0]=Oy(i[0],d),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:Iy&&i&&(c.lastIndex=c.global?i.index+i[0].length:n),ky&&i&&i.length>1&&sy(by,i[0],e,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&h)for(i.groups=a=py(null),o=0;o<h.length;o++)a[(u=h[o])[0]]=i[u[1]];return i});var Ry=Ey;Ci({target:"RegExp",proto:!0,forced:/./.exec!==Ry},{exec:Ry});var Py=ja,Cy=xn,Ly=Ry,Uy=b,My=xr,jy=ee,Dy=My("species"),By=RegExp.prototype,Fy=function(t,r,e,n){var i=My(t),o=!Uy((function(){var r={};return r[i]=function(){return 7},7!==""[t](r)})),a=o&&!Uy((function(){var r=!1,e=/a/;return"split"===t&&((e={}).constructor={},e.constructor[Dy]=function(){return e},e.flags="",e[i]=/./[i]),e.exec=function(){return r=!0,null},e[i](""),!r}));if(!o||!a||e){var u=Py(/./[i]),c=r(i,""[t],(function(t,r,e,n,i){var a=Py(t),c=r.exec;return c===Ly||c===By.exec?o&&!i?{done:!0,value:u(r,e,n)}:{done:!0,value:a(e,r,n)}:{done:!1}}));Cy(String.prototype,t,c[0]),Cy(By,i,c[1])}n&&jy(By[i],"sham",!0)},_y=I,Ny=Un,Vy=ld,Gy=P,Wy=_y("".charAt),Yy=_y("".charCodeAt),$y=_y("".slice),zy=function(t){return function(r,e){var n,i,o=Vy(Gy(r)),a=Ny(e),u=o.length;return a<0||a>=u?t?"":void 0:(n=Yy(o,a))<55296||n>56319||a+1===u||(i=Yy(o,a+1))<56320||i>57343?t?Wy(o,a):n:t?$y(o,a,a+2):i-56320+(n-55296<<10)+65536}},Hy={codeAt:zy(!1),charAt:zy(!0)}.charAt,Ky=function(t,r,e){return r+(e?Hy(t,r).length:1)},Xy=I,Jy=U,Zy=Math.floor,qy=Xy("".charAt),Qy=Xy("".replace),tw=Xy("".slice),rw=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ew=/\$([$&'`]|\d{1,2})/g,nw=kt,iw=Ot,ow=H,aw=on,uw=Ry,cw=TypeError,fw=function(t,r){var e=t.exec;if(ow(e)){var n=nw(e,t,r);return null!==n&&iw(n),n}if("RegExp"===aw(t))return nw(uw,t,r);throw cw("RegExp#exec called on incompatible receiver")},sw=Uv,lw=kt,hw=I,vw=Fy,gw=b,pw=Ot,dw=H,yw=x,ww=Un,bw=Nn,mw=ld,Ew=P,Aw=Ky,Sw=ar,Tw=function(t,r,e,n,i,o){var a=e+t.length,u=n.length,c=ew;return void 0!==i&&(i=Jy(i),c=rw),Qy(o,c,(function(o,c){var f;switch(qy(c,0)){case"$":return"$";case"&":return t;case"`":return tw(r,0,e);case"'":return tw(r,a);case"<":f=i[tw(c,1,-1)];break;default:var s=+c;if(0===s)return o;if(s>u){var l=Zy(s/10);return 0===l?o:l<=u?void 0===n[l-1]?qy(c,1):n[l-1]+qy(c,1):o}f=n[s-1]}return void 0===f?"":f}))},Ow=fw,Iw=xr("replace"),xw=Math.max,kw=Math.min,Rw=hw([].concat),Pw=hw([].push),Cw=hw("".indexOf),Lw=hw("".slice),Uw="$0"==="a".replace(/./,"$0"),Mw=!!/./[Iw]&&""===/./[Iw]("a","$0"),jw=!gw((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}));vw("replace",(function(t,r,e){var n=Mw?"$":"$0";return[function(t,e){var n=Ew(this),i=yw(t)?void 0:Sw(t,Iw);return i?lw(i,t,n,e):lw(r,mw(n),t,e)},function(t,i){var o=pw(this),a=mw(t);if("string"==typeof i&&-1===Cw(i,n)&&-1===Cw(i,"$<")){var u=e(r,o,a,i);if(u.done)return u.value}var c=dw(i);c||(i=mw(i));var f,s=o.global;s&&(f=o.unicode,o.lastIndex=0);for(var l,h=[];null!==(l=Ow(o,a))&&(Pw(h,l),s);){""===mw(l[0])&&(o.lastIndex=Aw(a,bw(o.lastIndex),f))}for(var v,g="",p=0,d=0;d<h.length;d++){for(var y,w=mw((l=h[d])[0]),b=xw(kw(ww(l.index),a.length),0),m=[],E=1;E<l.length;E++)Pw(m,void 0===(v=l[E])?v:String(v));var A=l.groups;if(c){var S=Rw([w],m,b,a);void 0!==A&&Pw(S,A),y=mw(sw(i,void 0,S))}else y=Tw(w,a,b,m,A,i);b>=p&&(g+=Lw(a,p,b)+y,p=b+w.length)}return g+Lw(a,p)}]}),!jw||!Uw||Mw);var Dw=I,Bw=xn,Fw=Date.prototype,_w="Invalid Date",Nw="toString",Vw=Dw(Fw.toString),Gw=Dw(Fw.getTime);String(new Date(NaN))!==_w&&Bw(Fw,Nw,(function(){var t=Gw(this);return t==t?Vw(this):_w}));var Ww=kt,Yw=D,$w=Ut,zw=Zd,Hw=RegExp.prototype,Kw=function(t){var r=t.flags;return void 0!==r||"flags"in Hw||Yw(t,"flags")||!$w(Hw,t)?r:Ww(zw,t)},Xw=G.PROPER,Jw=xn,Zw=Ot,qw=ld,Qw=b,tb=Kw,rb="toString",eb=RegExp.prototype.toString,nb=Qw((function(){return"/a/b"!==eb.call({source:"a",flags:"b"})})),ib=Xw&&eb.name!==rb;(nb||ib)&&Jw(RegExp.prototype,rb,(function(){var t=Zw(this);return"/"+qw(t.source)+"/"+qw(tb(t))}),{unsafe:!0});var ob="\t\n\v\f\r \u2028\u2029\ufeff",ab=P,ub=ld,cb=ob,fb=I("".replace),sb=RegExp("^["+cb+"]+"),lb=RegExp("(^|[^"+cb+"])["+cb+"]+$"),hb=function(t){return function(r){var e=ub(ab(r));return 1&t&&(e=fb(e,sb,"")),2&t&&(e=fb(e,lb,"$1")),e}},vb={start:hb(1),end:hb(2),trim:hb(3)},gb=X,pb=b,db=I,yb=ld,wb=vb.trim,bb=ob,mb=gb.parseInt,Eb=gb.Symbol,Ab=Eb&&Eb.iterator,Sb=/^[+-]?0x/i,Tb=db(Sb.exec),Ob=8!==mb(bb+"08")||22!==mb(bb+"0x16")||Ab&&!pb((function(){mb(Object(Ab))}))?function(t,r){var e=wb(yb(t));return mb(e,r>>>0||(Tb(Sb,e)?16:10))}:mb;Ci({global:!0,forced:parseInt!==Ob},{parseInt:Ob});var Ib=Hn.includes,xb=po;Ci({target:"Array",proto:!0,forced:b((function(){return!Array(1).includes()}))},{includes:function(t){return Ib(this,t,arguments.length>1?arguments[1]:void 0)}}),xb("includes");var kb=Ci,Rb=Hn.indexOf,Pb=jv,Cb=ja([].indexOf),Lb=!!Cb&&1/Cb([1],1,-0)<0;function Ub(t,r){return(t&1<<r)>0}function Mb(t,r){return t|1<<r}function jb(t){for(var r=0,e=2130706432;e;)r>>=1,r|=t&e,e>>=8;return r}function Db(t){for(var r=0,e=127;2147483647^e;)r=t&~e,r<<=1,r|=t&e,e=(e+1<<8)-1,t=r;return r}function Bb(){for(var t=[],r=arguments.length,e=new Array(r),n=0;n<r;n++)e[n]=arguments[n];return e.forEach((function(r){r.forEach?r.forEach((function(r){return t.push(r)})):t.push(r)})),new Uint8Array(t)}function Fb(t,r){for(var e=[],n=(t=t||[]).length,i=r-n,o=0;o<i;o++)e.push(0);for(var a=0;a<n;a++)e.push(t[a]);return e}function _b(t){for(var r=0,e=0;e<t.length;e++)r=256*r+t[e];return r}function Nb(t){for(var r=[];t>0;){var e=255&t;r.unshift(e),t=(t-e)/256}return r}kb({target:"Array",proto:!0,forced:Lb||!Pb("indexOf")},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return Lb?Cb(this,t,r)||0:Rb(this,t,r)}});var Vb=["Blues","Classic Rock","Country","Dance","Disco","Funk","Grunge","Hip-Hop","Jazz","Metal","New Age","Oldies","Other","Pop","R&B","Reggae","Rock","Techno","Industrial","Alternative","Ska","Death Metal","Pranks","Soundtrack","Euro-Techno","Ambient","Trip-Hop","Vocal","Jazz+Funk","Fusion","Trance","Classical","Instrumental","Acid","House","Game","Sound Clip","Gospel","Noise","Alt. Rock","Bass","Soul","Punk","Space","Meditative","Instrumental Pop","Instrumental Rock","Ethnic","Gothic","Darkwave","Techno-Industrial","Electronic","Pop-Folk","Eurodance","Dream","Southern Rock","Comedy","Cult","Gangsta Rap","Top 40","Christian Rap","Pop/Funk","Jungle","Native American","Cabaret","New Wave","Psychedelic","Rave","Showtunes","Trailer","Lo-Fi","Tribal","Acid Punk","Acid Jazz","Polka","Retro","Musical","Rock & Roll","Hard Rock","Folk","Folk-Rock","National Folk","Swing","Fast-Fusion","Bebop","Latin","Revival","Celtic","Bluegrass","Avantgarde","Gothic Rock","Progressive Rock","Psychedelic Rock","Symphonic Rock","Slow Rock","Big Band","Chorus","Easy Listening","Acoustic","Humour","Speech","Chanson","Opera","Chamber Music","Sonata","Symphony","Booty Bass","Primus","Porn Groove","Satire","Slow Jam","Club","Tango","Samba","Folklore","Ballad","Power Ballad","Rhythmic Soul","Freestyle","Duet","Punk Rock","Drum Solo","A Cappella","Euro-House","Dance Hall","Goa","Drum & Bass","Club-House","Hardcore","Terror","Indie","BritPop","Afro-Punk","Polsk Punk","Beat","Christian Gangsta Rap","Heavy Metal","Black Metal","Crossover","Contemporary Christian","Christian Rock","Merengue","Salsa","Thrash Metal","Anime","JPop","Synthpop","Abstract","Art Rock","Baroque","Bhangra","Big Beat","Breakbeat","Chillout","Downtempo","Dub","EBM","Eclectic","Electro","Electroclash","Emo","Experimental","Garage","Global","IDM","Illbient","Industro-Goth","Jam Band","Krautrock","Leftfield","Lounge","Math Rock","New Romantic","Nu-Breakz","Post-Punk","Post-Rock","Psytrance","Shoegaze","Space Rock","Trop Rock","World Music","Neoclassical","Audiobook","Audio Theatre","Neue Deutsche Welle","Podcast","Indie Rock","G-Funk","Dubstep","Garage Rock","Psybient"];function Gb(t){var r=t.byteLength-128;return r>-1&&"TAG"===new Xd(t,r).getString(0,3).string}function Wb(t){var r=new Xd(t,t.byteLength-128),e=r.getString(3,30,"utf-8").string.replace(/\0/g,""),n=r.getString(33,30,"utf-8").string.replace(/\0/g,""),i=r.getString(63,30,"utf-8").string.replace(/\0/g,""),o=r.getString(93,4,"utf-8").string.replace(/\0/g,""),a=r.getUint8(126).toString()||"";return{tags:{title:e,artist:n,album:i,year:o,track:a,comment:r.getString(97,null!==a?28:30,"utf-8").string.replace(/\0/g,""),genre:Vb[r.getUint8(127)]||""},details:{version:a?1:0,size:128}}}function Yb(t,r){var e=t.title,n=t.artist,i=t.album,o=t.year,a=t.comment,u=t.track,c=t.genre;if("string"!=typeof e)throw new Error("Title is not a string");if(Hd(e,"utf-8").length>30)throw new Error("Title length exceeds 30 characters");if("string"!=typeof n)throw new Error("Artist is not a string");if(Hd(n,"utf-8").length>30)throw new Error("Artist length exceeds 30 characters");if("string"!=typeof i)throw new Error("Album is not a string");if(Hd(i,"utf-8").length>30)throw new Error("Album length exceeds 30 characters");if("string"!=typeof o)throw new Error("Year is not a string");if(Hd(o,"utf-8").length>4)throw new Error("Year length exceeds 4 characters");if("string"!=typeof a)throw new Error("Comment is not a string");if("string"!=typeof u)throw new Error("Track is not a string");if(parseInt(u)>255||parseInt(u)<0)throw new Error("Track should be in range 255 - 0");if(""!==u){if(Hd(a,"utf-8").length>28)throw new Error("Comment length exceeds 28 characters")}else if(Hd(a,"utf-8").length>30)throw new Error("Comment length exceeds 30 characters");if("string"!=typeof c)throw new Error("Genre is not a string");if(r&&!Vb.includes(c)&&""!==c)throw new Error("Unknown genre");return!0}function $b(t){var r=t.title,e=t.artist,n=t.album,i=t.year,o=t.comment,a=t.track,u=t.genre;for(r=Hd(r,"utf-8"),e=Hd(e,"utf-8"),n=Hd(n,"utf-8"),i=Hd(i,"utf-8"),o=Hd(o,"utf-8"),u=Vb.indexOf(u);r.length<30;)r.push(0);for(;e.length<30;)e.push(0);for(;n.length<30;)n.push(0);for(;i.length<4;)i.push(0);if(""!==a){for(;o.length<28;)o.push(0);o.push(0,parseInt(a))}else for(;o.length<30;)o.push(0);return Bb(84,65,71,r,e,n,i,o,u>-1?u:12).buffer}var zb=m,Hb=Ve,Kb=Zd,Xb=b,Jb=X.RegExp,Zb=Jb.prototype,qb=zb&&Xb((function(){var t=!0;try{Jb(".","d")}catch(r){t=!1}var r={},e="",n=t?"dgimsy":"gimsy",i=function(t,n){Object.defineProperty(r,t,{get:function(){return e+=n,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in t&&(o.hasIndices="d"),o)i(a,o[a]);return Object.getOwnPropertyDescriptor(Zb,"flags").get.call(r)!==n||e!==n}));qb&&Hb(Zb,"flags",{configurable:!0,get:Kb});var Qb=Ci,tm=wd,rm=P,em=ld,nm=md,im=I("".indexOf);Qb({target:"String",proto:!0,forced:!nm("includes")},{includes:function(t){return!!~im(em(rm(this)),em(tm(t)),arguments.length>1?arguments[1]:void 0)}});var om=U,am=ji;function um(t,r){var e={};switch(r){case 3:e.unsynchronisation=Ub(t,7),e.extendedHeader=Ub(t,6),e.experimentalIndicator=Ub(t,5);break;case 4:e.unsynchronisation=Ub(t,7),e.extendedHeader=Ub(t,6),e.experimentalIndicator=Ub(t,5),e.footerPresent=Ub(t,4)}return e}function cm(t,r){var e=new Xd(t),n=Yd[e.getUint8(0)],i=e.byteLength-1;return 3===r?e.getCString(1,n).string.replace(/\//g,"\\\\"):e.getString(1,i,n).string.replace(/\0/g,"\\\\")}function fm(t,r){var e=new Xd(t),n=Yd[e.getUint8(0)],i=e.byteLength-1;return 3===r?e.getCString(1,n).string:e.getString(1,i,n).string.replace(/\0/g,"\\\\")}function sm(t,r){return new Xd(t).getCString(0).string}function lm(t,r){var e=new Xd(t),n=Yd[e.getUint8(0)],i=e.getCString(4,n),o=i.length+4,a=e.byteLength-o,u=e.getString(o,a,n);return{language:e.getString(1,3).string,descriptor:i.string,text:u.string}}function hm(t,r){var e=new Xd(t),n=Yd[e.getUint8(0)],i=e.byteLength-1;return e.getString(1,i,n).string}function vm(t,r){var e=Math.floor(t/6e4).toString(),n=Math.floor(t%6e4/1e3).toString();n=1===n.length?"0"+n:n;for(var i=(t%1e3).toString();i.length<3;)i="0"+i;return"[".concat(e,":").concat(n,".").concat(i,"] ").concat(r,"\n")}Ci({target:"Object",stat:!0,forced:b((function(){am(1)}))},{keys:function(t){return am(om(t))}});var gm=kt,pm=Ot,dm=x,ym=Nn,wm=ld,bm=P,mm=ar,Em=Ky,Am=fw;Fy("match",(function(t,r,e){return[function(r){var e=bm(this),n=dm(r)?void 0:mm(r,t);return n?gm(n,r,e):new RegExp(r)[t](wm(e))},function(t){var n=pm(this),i=wm(t),o=e(r,n,i);if(o.done)return o.value;if(!n.global)return Am(n,i);var a=n.unicode;n.lastIndex=0;for(var u,c=[],f=0;null!==(u=Am(n,i));){var s=wm(u[0]);c[f]=s,""===s&&(n.lastIndex=Em(i,ym(n.lastIndex),a)),f++}return 0===f?null:c}]}));var Sm={},Tm=on,Om=vn,Im=kn.f,xm=gu,km="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Sm.f=function(t){return km&&"Window"===Tm(t)?function(t){try{return Im(t)}catch(t){return xm(km)}}(t):Im(Om(t))};var Rm={},Pm=xr;Rm.f=Pm;var Cm=X,Lm=D,Um=Rm,Mm=gt.f,jm=kt,Dm=Lt,Bm=xr,Fm=xn,_m=Ci,Nm=X,Vm=kt,Gm=I,Wm=m,Ym=$t,$m=b,zm=D,Hm=Ut,Km=Ot,Xm=vn,Jm=Fr,Zm=ld,qm=Qr,Qm=ao,tE=ji,rE=kn,eE=Sm,nE=ni,iE=Je,oE=gt,aE=Li,uE=Ze,cE=xn,fE=Ve,sE=vr,lE=ae,hE=wr,vE=xr,gE=Rm,pE=function(t){var r=Cm.Symbol||(Cm.Symbol={});Lm(r,t)||Mm(r,t,{value:Um.f(t)})},dE=function(){var t=Dm("Symbol"),r=t&&t.prototype,e=r&&r.valueOf,n=Bm("toPrimitive");r&&!r[n]&&Fm(r,n,(function(t){return jm(e,this)}),{arity:1})},yE=_o,wE=me,bE=hl.forEach,mE=oe("hidden"),EE="Symbol",AE=wE.set,SE=wE.getterFor(EE),TE=Object.prototype,OE=Nm.Symbol,IE=OE&&OE.prototype,xE=Nm.TypeError,kE=Nm.QObject,RE=iE.f,PE=oE.f,CE=eE.f,LE=uE.f,UE=Gm([].push),ME=sE("symbols"),jE=sE("op-symbols"),DE=sE("wks"),BE=!kE||!kE.prototype||!kE.prototype.findChild,FE=Wm&&$m((function(){return 7!==Qm(PE({},"a",{get:function(){return PE(this,"a",{value:7}).a}})).a}))?function(t,r,e){var n=RE(TE,r);n&&delete TE[r],PE(t,r,e),n&&t!==TE&&PE(TE,r,n)}:PE,_E=function(t,r){var e=ME[t]=Qm(IE);return AE(e,{type:EE,tag:t,description:r}),Wm||(e.description=r),e},NE=function(t,r,e){t===TE&&NE(jE,r,e),Km(t);var n=Jm(r);return Km(e),zm(ME,n)?(e.enumerable?(zm(t,mE)&&t[mE][n]&&(t[mE][n]=!1),e=Qm(e,{enumerable:qm(0,!1)})):(zm(t,mE)||PE(t,mE,qm(1,{})),t[mE][n]=!0),FE(t,n,e)):PE(t,n,e)},VE=function(t,r){Km(t);var e=Xm(r),n=tE(e).concat($E(e));return bE(n,(function(r){Wm&&!Vm(GE,e,r)||NE(t,r,e[r])})),t},GE=function(t){var r=Jm(t),e=Vm(LE,this,r);return!(this===TE&&zm(ME,r)&&!zm(jE,r))&&(!(e||!zm(this,r)||!zm(ME,r)||zm(this,mE)&&this[mE][r])||e)},WE=function(t,r){var e=Xm(t),n=Jm(r);if(e!==TE||!zm(ME,n)||zm(jE,n)){var i=RE(e,n);return!i||!zm(ME,n)||zm(e,mE)&&e[mE][n]||(i.enumerable=!0),i}},YE=function(t){var r=CE(Xm(t)),e=[];return bE(r,(function(t){zm(ME,t)||zm(lE,t)||UE(e,t)})),e},$E=function(t){var r=t===TE,e=CE(r?jE:Xm(t)),n=[];return bE(e,(function(t){!zm(ME,t)||r&&!zm(TE,t)||UE(n,ME[t])})),n};Ym||(OE=function(){if(Hm(IE,this))throw xE("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?Zm(arguments[0]):void 0,r=hE(t),e=function(t){this===TE&&Vm(e,jE,t),zm(this,mE)&&zm(this[mE],r)&&(this[mE][r]=!1),FE(this,r,qm(1,t))};return Wm&&BE&&FE(TE,r,{configurable:!0,set:e}),_E(r,t)},cE(IE=OE.prototype,"toString",(function(){return SE(this).tag})),cE(OE,"withoutSetter",(function(t){return _E(hE(t),t)})),uE.f=GE,oE.f=NE,aE.f=VE,iE.f=WE,rE.f=eE.f=YE,nE.f=$E,gE.f=function(t){return _E(vE(t),t)},Wm&&(fE(IE,"description",{configurable:!0,get:function(){return SE(this).description}}),cE(TE,"propertyIsEnumerable",GE,{unsafe:!0}))),_m({global:!0,constructor:!0,wrap:!0,forced:!Ym,sham:!Ym},{Symbol:OE}),bE(tE(DE),(function(t){pE(t)})),_m({target:EE,stat:!0,forced:!Ym},{useSetter:function(){BE=!0},useSimple:function(){BE=!1}}),_m({target:"Object",stat:!0,forced:!Ym,sham:!Wm},{create:function(t,r){return void 0===r?Qm(t):VE(Qm(t),r)},defineProperty:NE,defineProperties:VE,getOwnPropertyDescriptor:WE}),_m({target:"Object",stat:!0,forced:!Ym},{getOwnPropertyNames:YE}),dE(),yE(OE,EE),lE[mE]=!0;var zE=$t&&!!Symbol.for&&!!Symbol.keyFor,HE=Ci,KE=Lt,XE=D,JE=ld,ZE=vr,qE=zE,QE=ZE("string-to-symbol-registry"),tA=ZE("symbol-to-string-registry");HE({target:"Symbol",stat:!0,forced:!qE},{for:function(t){var r=JE(t);if(XE(QE,r))return QE[r];var e=KE("Symbol")(r);return QE[r]=e,tA[e]=r,e}});var rA=Ci,eA=D,nA=Zt,iA=Qt,oA=zE,aA=vr("symbol-to-string-registry");rA({target:"Symbol",stat:!0,forced:!oA},{keyFor:function(t){if(!nA(t))throw TypeError(iA(t)+" is not a symbol");if(eA(aA,t))return aA[t]}});var uA=zi,cA=H,fA=on,sA=ld,lA=I([].push),hA=Ci,vA=Lt,gA=Uv,pA=kt,dA=I,yA=b,wA=H,bA=Zt,mA=xg,EA=function(t){if(cA(t))return t;if(uA(t)){for(var r=t.length,e=[],n=0;n<r;n++){var i=t[n];"string"==typeof i?lA(e,i):"number"!=typeof i&&"Number"!==fA(i)&&"String"!==fA(i)||lA(e,sA(i))}var o=e.length,a=!0;return function(t,r){if(a)return a=!1,r;if(uA(this))return r;for(var n=0;n<o;n++)if(e[n]===t)return r}}},AA=$t,SA=String,TA=vA("JSON","stringify"),OA=dA(/./.exec),IA=dA("".charAt),xA=dA("".charCodeAt),kA=dA("".replace),RA=dA(1..toString),PA=/[\uD800-\uDFFF]/g,CA=/^[\uD800-\uDBFF]$/,LA=/^[\uDC00-\uDFFF]$/,UA=!AA||yA((function(){var t=vA("Symbol")("stringify detection");return"[null]"!==TA([t])||"{}"!==TA({a:t})||"{}"!==TA(Object(t))})),MA=yA((function(){return'"\\udf06\\ud834"'!==TA("\udf06\ud834")||'"\\udead"'!==TA("\udead")})),jA=function(t,r){var e=mA(arguments),n=EA(r);if(wA(n)||void 0!==t&&!bA(t))return e[1]=function(t,r){if(wA(n)&&(r=pA(n,this,SA(t),r)),!bA(r))return r},gA(TA,null,e)},DA=function(t,r,e){var n=IA(e,r-1),i=IA(e,r+1);return OA(CA,t)&&!OA(LA,i)||OA(LA,t)&&!OA(CA,n)?"\\u"+RA(xA(t,0),16):t};TA&&hA({target:"JSON",stat:!0,arity:3,forced:UA||MA},{stringify:function(t,r,e){var n=mA(arguments),i=gA(UA?jA:TA,null,n);return MA&&"string"==typeof i?kA(i,PA,DA):i}});var BA=ni,FA=U;Ci({target:"Object",stat:!0,forced:!$t||b((function(){BA.f(1)}))},{getOwnPropertySymbols:function(t){var r=BA.f;return r?r(FA(t)):[]}});var _A=Ci,NA=m,VA=I,GA=D,WA=H,YA=Ut,$A=ld,zA=Ve,HA=gi,KA=X.Symbol,XA=KA&&KA.prototype;if(NA&&WA(KA)&&(!("description"in XA)||void 0!==KA().description)){var JA={},ZA=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:$A(arguments[0]),r=YA(XA,this)?new KA(t):void 0===t?KA():KA(t);return""===t&&(JA[r]=!0),r};HA(ZA,KA),ZA.prototype=XA,XA.constructor=ZA;var qA="Symbol(description detection)"===String(KA("description detection")),QA=VA(XA.valueOf),tS=VA(XA.toString),rS=/^Symbol\((.*)\)[^)]+$/,eS=VA("".replace),nS=VA("".slice);zA(XA,"description",{configurable:!0,get:function(){var t=QA(this);if(GA(JA,t))return"";var r=tS(t),e=qA?nS(r,7,-1):eS(r,rS,"$1");return""===e?void 0:e}}),_A({global:!0,constructor:!0,forced:!0},{Symbol:ZA})}var iS=hl.every;Ci({target:"Array",proto:!0,forced:!jv("every")},{every:function(t){return iS(this,t,arguments.length>1?arguments[1]:void 0)}});var oS,aS,uS=Ci,cS=kt,fS=H,sS=Ot,lS=ld,hS=(oS=!1,(aS=/[ac]/).exec=function(){return oS=!0,/./.exec.apply(this,arguments)},!0===aS.test("abc")&&oS),vS=/./.test;uS({target:"RegExp",proto:!0,forced:!hS},{test:function(t){var r=sS(this),e=lS(t),n=r.exec;if(!fS(n))return cS(vS,r,e);var i=cS(n,r,e);return null!==i&&(sS(i),!0)}});var gS=X,pS=b,dS=ld,yS=vb.trim,wS=I("".charAt),bS=gS.parseFloat,mS=gS.Symbol,ES=mS&&mS.iterator,AS=1/bS("\t\n\v\f\r \u2028\u2029\ufeff-0")!=-1/0||ES&&!pS((function(){bS(Object(ES))}))?function(t){var r=yS(dS(t)),e=bS(r);return 0===e&&"-"===wS(r,0)?-0:e}:bS;Ci({global:!0,forced:parseFloat!==AS},{parseFloat:AS});var SS=gt.f,TS=m,OS=X,IS=I,xS=Si,kS=El,RS=ee,PS=kn.f,CS=Ut,LS=pd,US=ld,MS=Kw,jS=ny,DS=function(t,r,e){e in t||SS(t,e,{configurable:!0,get:function(){return r[e]},set:function(t){r[e]=t}})},BS=xn,FS=b,_S=D,NS=me.enforce,VS=yl,GS=ay,WS=fy,YS=xr("match"),$S=OS.RegExp,zS=$S.prototype,HS=OS.SyntaxError,KS=IS(zS.exec),XS=IS("".charAt),JS=IS("".replace),ZS=IS("".indexOf),qS=IS("".slice),QS=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,tT=/a/g,rT=/a/g,eT=new $S(tT)!==tT,nT=jS.MISSED_STICKY,iT=jS.UNSUPPORTED_Y,oT=TS&&(!eT||nT||GS||WS||FS((function(){return rT[YS]=!1,$S(tT)!==tT||$S(rT)===rT||"/a/i"!==String($S(tT,"i"))})));if(xS("RegExp",oT)){for(var aT=function(t,r){var e,n,i,o,a,u,c=CS(zS,this),f=LS(t),s=void 0===r,l=[],h=t;if(!c&&f&&s&&t.constructor===aT)return t;if((f||CS(zS,t))&&(t=t.source,s&&(r=MS(h))),t=void 0===t?"":US(t),r=void 0===r?"":US(r),h=t,GS&&"dotAll"in tT&&(n=!!r&&ZS(r,"s")>-1)&&(r=JS(r,/s/g,"")),e=r,nT&&"sticky"in tT&&(i=!!r&&ZS(r,"y")>-1)&&iT&&(r=JS(r,/y/g,"")),WS&&(o=function(t){for(var r,e=t.length,n=0,i="",o=[],a={},u=!1,c=!1,f=0,s="";n<=e;n++){if("\\"===(r=XS(t,n)))r+=XS(t,++n);else if("]"===r)u=!1;else if(!u)switch(!0){case"["===r:u=!0;break;case"("===r:KS(QS,qS(t,n+1))&&(n+=2,c=!0),i+=r,f++;continue;case">"===r&&c:if(""===s||_S(a,s))throw new HS("Invalid capture group name");a[s]=!0,o[o.length]=[s,f],c=!1,s="";continue}c?s+=r:i+=r}return[i,o]}(t),t=o[0],l=o[1]),a=kS($S(t,r),c?this:zS,aT),(n||i||l.length)&&(u=NS(a),n&&(u.dotAll=!0,u.raw=aT(function(t){for(var r,e=t.length,n=0,i="",o=!1;n<=e;n++)"\\"!==(r=XS(t,n))?o||"."!==r?("["===r?o=!0:"]"===r&&(o=!1),i+=r):i+="[\\s\\S]":i+=r+XS(t,++n);return i}(t),e)),i&&(u.sticky=!0),l.length&&(u.groups=l)),t!==h)try{RS(a,"source",""===h?"(?:)":h)}catch(t){}return a},uT=PS($S),cT=0;uT.length>cT;)DS(aT,$S,uT[cT++]);zS.constructor=aT,aT.prototype=zS,BS(OS,"RegExp",aT,{constructor:!0})}VS("RegExp");var fT=m,sT=ny.MISSED_STICKY,lT=on,hT=Ve,vT=me.get,gT=RegExp.prototype,pT=TypeError;fT&&sT&&hT(gT,"sticky",{configurable:!0,get:function(){if(this!==gT){if("RegExp"===lT(this))return!!vT(this).sticky;throw pT("Incompatible receiver, RegExp required")}}});var dT="(\\d{4})",yT="(0[1-9]|1[0-2])",wT="(0[1-9]|1\\d|2\\d|3[0-1])",bT="(0\\d|1\\d|2\\d|3\\d|4\\d|5\\d)",mT=new RegExp("^(".concat(dT,"(-").concat(yT,"(-").concat(wT,"(T").concat("(0\\d|1\\d|2[0-3])","(:").concat(bT,"(:").concat("(0\\d|1\\d|2\\d|3\\d|4\\d|5\\d)",")?)?)?)?)?)$"));function ET(t,r){for(var e=!1,n=0;n<t.length&&!e;){if(AT(t[n],r)){e=!0;break}n++}return e}function AT(t,r){for(var n in t){if(e(t[n])!==e(r[n]))return!1;switch(e(t[n])){case"object":if(!AT(t[n],r[n]))return!1;break;case"function":if(void 0===r[n]||t[n].toString()!==r[n].toString())return!1;break;default:if(t[n]!==r[n])return!1}}for(var i in r)if(void 0===t[i])return!1;return!0}function ST(t,r){var n={};for(var i in r){var o=r[i],a=t[i];if(void 0!==a)if("object"===e(o))n[i]=ST(a,o);else n[i]=e(o)===e(a)?a:o;else n[i]=o}return n}var TT=/^(.*)$/,OT=/^([0-9]+)(\/[0-9]+)?$/,IT=/^(https?):\/\/[^\s/$.?#]+\.[^\s]*/,xT=/^([a-z]{3}|XXX)$/,kT=/(image\/[a-z0-9!#$&.+\-^_]+){0,129}/,RT=/^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})$/,PT=/^((\[\d{1,}:\d{2}\.\d{3}\]) (.*))/;function CT(t,r,e){if("string"!=typeof t)throw new Error("Value is not a string");if(e&&!t.match(TT))throw new Error("Newlines are not allowed");return!0}function LT(t,r,e){return 3===r?t=[t]:4===r&&(t=t.split("\\\\")),t.forEach((function(t){if(CT(t,0,e),"string"!=typeof t&&"number"!=typeof t)throw new Error("Value is not a string/number");var r=t.match(OT);if(e&&"string"==typeof t){if(null===r)throw new Error("Invalid format (eg. 1/2)");var n=parseInt(r[1]),i=r[2]?parseInt(r[2].substring(1)):null;if(null!==i&&n>i)throw new Error("Position is greater then total")}})),!0}function UT(t,r,e){return 3===r?t=[t]:4===r&&(t=t.split("\\\\")),t.forEach((function(t){if(CT(t,0,e),3===r&&e&&!t.match(/^(\d{4})$/))throw new Error("Value is not 4 numeric characters");if(4===r&&e&&!t.match(mT))throw new Error("Time frames must follow ISO 8601")})),!0}function MT(t,r,e){if(CT(t,0,e),e&&!t.match(IT))throw new Error("Invalid URL");return!0}function jT(t,r,e){var n=[];return t.forEach((function(t){if(CT(t.language,0,e),CT(t.descriptor,0,e),"string"!=typeof t.text)throw new Error("Text is not a string");if(e&&!t.language.match(xT))throw new Error("Language must follow ISO 639-2");var r={language:t.language,descriptor:t.descriptor};if(e&&ET(n,r))throw new Error("Language and descriptor should not duplicate");n.push(r)})),!0}function DT(t,r,e,n){for(var i=0;i<r.length;i++){var o=r[i],a=t[o];if(a){if(!Xd.isViewable(a))throw new Error("".concat(n,".").concat(o," must be viewable"));if(new Xd(a).byteLength>e)throw new Error("".concat(n,".").concat(o," exceeds bits limit"))}}}Ah("Int16",(function(t){return function(r,e,n){return t(this,r,e,n)}}));var BT=zi,FT=Gn,_T=Hp,NT=Es,VT=function(t,r,e,n,i,o,a,u){for(var c,f,s=i,l=0,h=!!a&&NT(a,u);l<n;)l in e&&(c=h?h(e[l],l,r):e[l],o>0&&BT(c)?(f=FT(c),s=VT(t,r,c,f,s,o-1)-1):(_T(s+1),t[s]=c),s++),l++;return s},GT=VT,WT=nr,YT=U,$T=Gn,zT=il;function HT(t,r,e,n){var i=Hd(t),o=new Xd(4);o.setUint32(0,3===e?r:Db(r));var a=[0,0];return 4===e&&n.unsynchronisation&&(a[1]=Mb(a[1],1)),4===e&&n.dataLengthIndicator&&(a[1]=Mb(a[1],0)),Bb(i,o.getUint8(0,4),a)}function KT(t,r){var e=new Xd(4),n=function(t){for(var r=[],e=0;e<t.length;)r.push(t[e]),255===t[e]&&(t[e+1]>=224||0===t[e+1])&&r.push(0),e++;return r}(t),i=[];return 4===r&&(e.setUint32(0,Db(t.length)),i.push.apply(i,v(e.getUint8(0,4)))),n.forEach((function(t){return i.push(t)})),new Uint8Array(i)}function XT(t,r){var e=r.id,n=r.version,i=r.unsynch,o=0,a=[];switch(n){case 3:o=1,a=Hd(t.replace(/\\\\/g,"/")+"\0","utf-16");break;case 4:o=3,a=Hd(t.replace(/\\\\/g,"\0")+"\0","utf-8")}var u=Bb(o,a);return i&&(u=KT(u,n)),Bb(HT(e,u.length,n,{unsynchronisation:i,dataLengthIndicator:i}),u)}function JT(t,r){var e=r.id,n=r.version,i=r.unsynch,o=[];switch(n){case 3:o=Hd(t.replace(/\\\\/g,"/")+"\0");break;case 4:o=Hd(t.replace(/\\\\/g,"\0")+"\0")}var a=Bb(0,o);return i&&(a=KT(a,n)),Bb(HT(e,a.length,n,{unsynchronisation:i,dataLengthIndicator:i}),a)}function ZT(t,r){var e=r.version;return 3===e?t=t.toString().split("\\\\")[0]:4===e&&(t=t.toString().replace(/\\\\/g,"\0")),JT(t,r)}function qT(t,r){var e=r.id,n=r.version,i=r.unsynch,o=Hd(t+"\0");return i&&(o=KT(o,n)),Bb(HT(e,o.length,n,{unsynchronisation:i,dataLengthIndicator:i}),o)}function QT(t,r){var e=r.id,n=r.version,i=r.unsynch,o=[];return t.forEach((function(t){var r,a,u=0,c=Hd(t.language);switch(n){case 3:u=1,r=Hd(t.descriptor+"\0","utf-16"),a=Hd(t.text+"\0","utf-16");break;case 4:u=3,r=Hd(t.descriptor+"\0","utf-8"),a=Hd(t.text+"\0","utf-8")}var f=Bb(u,c,r,a);i&&(f=KT(f,n)),Bb(HT(e,f.length,n,{unsynchronisation:i,dataLengthIndicator:i}),f).forEach((function(t){return o.push(t)}))})),o}function tO(t){var r=new Xd(4);return r.setUint32(0,t),r.getUint8(0,4)}Ci({target:"Array",proto:!0},{flatMap:function(t){var r,e=YT(this),n=$T(e);return WT(t),(r=zT(e,0)).length=GT(r,e,e,n,0,1,t,arguments.length>1?arguments[1]:void 0),r}}),po("flatMap");var rO={parse:function(t,r){var e=new Xd(t),n=Yd[e.getUint8(0)],i=e.getCString(1),o=e.getUint8(i.length+1),a=e.getCString(i.length+2,n),u=i.length+a.length+2,c=e.byteLength-u,f=e.getUint8(u,c),s=Array.isArray(f)?f:[f];return{format:i.string,type:o,description:a.string,data:s}},validate:function(t,r,e){var n=[];return t.forEach((function(t){if(CT(t.format,0,e),CT(t.description,0,e),"number"!=typeof t.type)throw new Error("Type is not a number");if(t.type>255||t.type<0)throw new Error("Type should be in range of 0 - 255");if(!Xd.isViewable(t.data))throw new Error("Image data should be viewable");if(e){if(t.type>21||t.type<0)throw new Error("Type should be in range of 0 - 21");if(!t.format.match(kT))throw new Error("Format should be an image MIME");if(t.description.length>64)throw new Error("Description should not exceed 64");if(ET(n,t.description))throw new Error("Description should not duplicate");n.push(t.description)}})),!0},write:function(t,r){var e=r.id,n=r.version,i=r.unsynch,o=[];return t.forEach((function(t){var r=0,a=Hd(t.format+"\0"),u=new Uint8Array(t.data),c=[];switch(n){case 3:r=1,c=Hd(t.description+"\0","utf-16");break;case 4:r=3,c=Hd(t.description+"\0","utf-8")}var f=Bb(r,a,t.type,c,u);i&&(f=KT(f,n)),Bb(HT(e,f.length,n,{unsynchronisation:i,dataLengthIndicator:i}),f).forEach((function(t){return o.push(t)}))})),o},version:[3,4]},eO={parse:lm,validate:jT,write:QT,version:[3,4]},nO={parse:function(t,r){for(var e=new Xd(t),n=e.getUint8(0),i=e.getUint8(1,e.byteLength-1),o=new Xd(Array.isArray(i)?i:[i]),a=[],u=0;u<i.length;u+=5){var c=o.getUint8(u),f=o.getUint32(u+1);a.push({event:c,time:f})}return{format:n,data:a}},validate:function(t,r,e){if("number"!=typeof t.format)throw new Error("Format is not a number");if(t.format>255||t.format<0)throw new Error("Format should be in range of 0 - 255");if(e&&(t.format>2||t.format<1))throw new Error("Invalid timestamp format (should be 1 or 2)");var n,i=d(t.data);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=o.event,u=o.time;if("number"!=typeof a)throw new Error("Event is not a number");if(a>255||a<0)throw new Error("Event should be in range of 0 - 255");if("number"!=typeof u)throw new Error("Timestamp is not a number")}}catch(t){i.e(t)}finally{i.f()}return!0},write:function(t,r){var e=r.id,n=r.version,i=r.unsynch,o=t.data.flatMap((function(t){var r=t.event,e=t.time;return[r].concat(v(tO(e)))})),a=Bb(t.format,o);return i&&(a=KT(a,n)),Bb(HT(e,a.length,n,{unsynchronisation:i,dataLengthIndicator:i}),a)},version:[3,4]},iO={parse:function(t,r){var e=new Xd(t),n=Yd[e.getUint8(0)],i=e.getCString(1),o=e.getCString(i.length+1,n),a=e.getCString(o.length+i.length+1,n),u=i.length+o.length+a.length+1,c=e.byteLength-u,f=e.getUint8(u,c),s=Array.isArray(f)?f:[f];return{format:i.string,filename:o.string,description:a.string,object:s}},validate:function(t,r,e){var n=[];return t.forEach((function(t){if(CT(t.format,0,e),CT(t.filename,0,e),CT(t.description,0,e),!Xd.isViewable(t.object))throw new Error("Object data should be viewable");if(e&&ET(n,t.description))throw new Error("GEOB description should not duplicate");n.push(t.description)})),!0},write:function(t,r){var e=r.id,n=r.version,i=r.unsynch,o=[];return t.forEach((function(t){var r,a,u,c=Hd(t.format+"\0"),f=new Uint8Array(t.object);switch(n){case 3:r=1,a=Hd(t.filename+"\0","utf-16"),u=Hd(t.description+"\0","utf-16");break;case 4:r=3,a=Hd(t.filename+"\0","utf-8"),u=Hd(t.description+"\0","utf-8")}var s=Bb(r,c,a,u,f);i&&(s=KT(s,n)),Bb(HT(e,s.length,n,{unsynchronisation:i,dataLengthIndicator:i}),s).forEach((function(t){return o.push(t)}))})),o},version:[3,4]},oO={parse:function(t,r){var e=new Xd(t),n=Yd[e.getUint8(0)],i=e.byteLength-1;return e.getString(1,i,n).string.replace(/\0/g,"\\\\")},validate:CT,write:function(t,r){return r.version=4,XT(t,r)},version:[3]},aO={parse:function(t,r){var e=new Xd(t),n=e.getUint8(0,e.byteLength);return{data:Array.isArray(n)?n:[n]}},validate:function(t,r,e){if(!Xd.isViewable(t.data))throw new Error("Data should be viewable");return!0},write:function(t,r){var e=r.id,n=r.version,i=r.unsynch;return i&&(t.data=KT(t.data,n)),Bb(HT(e,t.data.length,n,{unsynchronisation:i,dataLengthIndicator:i}),t.data)},version:[3,4]},uO={parse:function(t,r){var e=new Xd(t),n=Yd[e.getUint8(0)],i=e.getString(1,3),o=e.getCString(4),a=e.getString(o.length+4,8),u=o.length+a.length+4,c=e.byteLength-u,f=e.getString(u,c,n);return{currencyCode:i.string,currencyPrice:o.string,date:a.string,seller:f.string}},validate:function(t,r,e){if(CT(t.date,0,e),CT(t.seller,0,e),CT(t.currencyCode,0,e),CT(t.currencyPrice,0,e),e){if(!t.date.match("".concat(dT).concat(yT).concat(wT)))throw new Error("Date is not valid (format: YYYYMMDD)");if(!t.currencyCode.match(/^([A-Z]{3})$/))throw new Error("Currency code is not valid (eg. USD)");if(!t.currencyPrice.match(/^(\d*)\.(\d+)$/))throw new Error("Currency price is not valid (eg. 2.00)")}return!0},write:function(t,r){var e,n=r.id,i=r.version,o=r.unsynch,a=0,u=Hd(t.currencyCode),c=Hd(t.currencyPrice+"\0"),f=Hd(t.date);switch(i){case 3:a=1,e=Hd(t.seller,"utf-16");break;case 4:a=3,e=Hd(t.seller,"utf-8")}var s=Bb(a,u,c,f,e);return o&&(s=KT(s,i)),Bb(HT(n,s.length,i,{unsynchronisation:o,dataLengthIndicator:o}),s)},version:[3,4]},cO={parse:function(t,r){var e=new Xd(t),n=e.getUint8(0,e.byteLength);return _b(Array.isArray(n)?n:[n]).toString()},validate:function(t,r,e){if(isNaN(t)||isNaN(parseFloat(t)))throw new Error("Value is not numerical");return!0},write:function(t,r){for(var e=r.id,n=r.version,i=r.unsynch,o=Nb(parseInt(t));o.length<4;)o.unshift(0);return i&&(o=KT(o,n)),Bb(HT(e,o.length,n,{unsynchronisation:i,dataLengthIndicator:i}),o)},version:[3,4]},fO={parse:function(t,r){var e=new Xd(t),n=Yd[0],i=e.getCString(0,n),o=e.getUint8(i.length),a=i.length+1,u=t.byteLength-a,c=0;if(u>0){var f=e.getUint8(a,u);c=_b(Array.isArray(f)?f:[f])}return{email:i.string,rating:o,counter:c}},validate:function(t,r,e){var n=[];return t.forEach((function(t){var r=t.email,i=t.rating,o=t.counter;if(CT(r,0,e),"number"!=typeof i)throw new Error("Rating is not a number");if(i>255||i<0)throw new Error("Rating should be in range of 0 - 255");if("number"!=typeof o)throw new Error("Counter is not a number");if(e){if(!r.match(RT))throw new Error("Email is not a valid email");var a={email:r};if(ET(n,a))throw new Error("1 POPM with same email only");n.push(a)}})),!0},write:function(t,r){var e=r.id,n=r.version,i=r.unsynch,o=[];return t.forEach((function(t){for(var r=Hd(t.email+"\0"),a=Nb(t.counter);a.length<4;)a.unshift(0);var u=Bb(r,t.rating,a);i&&(u=KT(u,n)),Bb(HT(e,u.length,n,{unsynchronisation:i,dataLengthIndicator:i}),u).forEach((function(t){return o.push(t)}))})),o},version:[3,4]},sO={parse:function(t,r){var e=new Xd(t),n=e.getCString(0),i=e.getUint8(n.length,e.byteLength-n.length),o=Array.isArray(i)?i:[i];return{ownerId:n.string,data:o}},validate:function(t,r,e){var n=[];return t.forEach((function(t){if(CT(t.ownerId,0,e),!Xd.isViewable(t.data))throw new Error("Data should be viewable");if(e&&ET(n,t.data))throw new Error("Data should not duplicate");n.push(t.data)})),!0},write:function(t,r){var e=r.id,n=r.version,i=r.unsynch,o=[];return t.forEach((function(t){var r=Bb(Hd(t.ownerId),new Uint8Array(t.data));i&&(r=KT(r,n)),Bb(HT(e,r.length,n,{unsynchronisation:i,dataLengthIndicator:i}),r).forEach((function(t){return o.push(t)}))})),o},version:[3,4]},lO={parse:function(t,r){for(var e=new Xd(t),n=e.getUint8(0),i=e.getUint8(1),o=[],a=Math.ceil(i/8),u=2;u<e.byteLength;u+=a)o.push(e.getUint8(u,a));return{bitsvolume:i,incdec:{right:Ub(n,0),left:Ub(n,1),rightback:Ub(n,2),leftback:Ub(n,3),center:Ub(n,4),bass:Ub(n,5)},volumechange:{right:void 0!==o[0]?o[0]:[],left:void 0!==o[1]?o[1]:[],rightback:void 0!==o[4]?o[4]:[],leftback:void 0!==o[5]?o[5]:[],center:void 0!==o[8]?o[8]:[],bass:void 0!==o[10]?o[10]:[]},peakvolume:{right:void 0!==o[2]?o[2]:[],left:void 0!==o[3]?o[3]:[],rightback:void 0!==o[6]?o[6]:[],leftback:void 0!==o[7]?o[7]:[],center:void 0!==o[9]?o[9]:[],bass:void 0!==o[11]?o[11]:[]}}},validate:function(t,r,n){if("object"!==e(t))throw new Error("Values must be an object");var i=t.volumechange,o=t.peakvolume,a=t.bitsvolume||16,u=Math.ceil(a/8);if(a&&(a<0||a>255))throw new Error("Bits volume should be in the range of 0 - 255");if(n&&0===a)throw new Error("Bits used for volume description may not be 0");var c=["right","left","rightback","leftback","center","bass"];return i&&DT(i,c,u,"volumechange"),o&&DT(o,c,u,"peakvolume"),!0},write:function(t,r){var e=r.id,n=r.version,i=r.unsynch,o=[],a=t.bitsvolume||16,u=Math.ceil(a/8),c=0;t.incdec&&(t.incdec.right&&(c=Mb(c,0)),t.incdec.left&&(c=Mb(c,1)),t.incdec.rightback&&(c=Mb(c,2)),t.incdec.leftback&&(c=Mb(c,3)),t.incdec.center&&(c=Mb(c,4)),t.incdec.bass&&(c=Mb(c,5))),o.push(c),o.push(a);var f=t.volumechange||{},s=t.peakvolume||{},l=Fb(f.right,u),h=Fb(f.left,u),v=Fb(s.right,u),g=Fb(s.left,u);if(l.forEach((function(t){return o.push(t)})),h.forEach((function(t){return o.push(t)})),v.forEach((function(t){return o.push(t)})),g.forEach((function(t){return o.push(t)})),f.rightback||f.leftback||s.rightback||s.leftback||f.center||s.center||f.bass||s.bass){var p=Fb(f.rightback,u),d=Fb(f.leftback,u),y=Fb(s.rightback,u),w=Fb(s.leftback,u);p.forEach((function(t){return o.push(t)})),d.forEach((function(t){return o.push(t)})),y.forEach((function(t){return o.push(t)})),w.forEach((function(t){return o.push(t)}))}if(f.center||s.center||f.bass||s.bass){var b=Fb(f.center,u),m=Fb(s.center,u);b.forEach((function(t){return o.push(t)})),m.forEach((function(t){return o.push(t)}))}if(f.bass||s.bass){var E=Fb(f.bass,u),A=Fb(s.bass,u);E.forEach((function(t){return o.push(t)})),A.forEach((function(t){return o.push(t)}))}var S=i?KT(o):o;return Bb(HT(e,S.length,n,{unsynchronisation:i,dataLengthIndicator:i}),S)},version:[3]},hO={parse:function(t,r){for(var e=new Xd(t),n=e.getCString(0),i=[],o=n.length;o<e.byteLength;){var a=e.getUint8(o),u=e.getInt16(o+1,!0),c=e.getUint8(o+3),f=Math.ceil(c/8),s=e.getUint8(o+4,f);i.push({type:a,volumeadjust:u,bitspeak:c,peakvolume:Array.isArray(s)?s:[s]}),o+=4+f}return{identification:n.string,channels:i}},validate:function(t,r,e){var n=[];t.forEach((function(t){if(!Array.isArray(t.channels))throw new Error("Channels should be an array");for(var r=0;r<t.channels.length;r++){var i=t.channels[r];if("number"!=typeof i.type)throw new Error("Type of channel should be a number");if(e&&(i.type<0||i.type>8))throw new Error("Type of channel should be in the range of 0 - 8");if("number"!=typeof i.volumeadjust)throw new Error("Volume adjustment should be a number");if("number"!=typeof i.bitspeak)throw new Error("Bits representing peak should be a number");if(i.bitspeak<0||i.bitspeak>255)throw new Error("Bits representing peak should be in range of 0 - 255");if(!Xd.isViewable(i.peakvolume))throw new Error("Peak volume must be viewable");if(new Xd(i.peakvolume).byteLength>Math.ceil(i.bitspeak/8))throw new Error("Peak volume exceeds bits limit")}var o={identification:t.identification};if(e&&ET(n,o))throw new Error("RVA2 identification should be unique");n.push(o)}))},write:function(t,r){var e=r.id,n=r.version,i=r.unsynch,o=[];return t.forEach((function(t){for(var r=Hd(t.identification+"\0"),a=0;a<t.channels.length;a++){var u=t.channels[a],c=u.type,f=new Int16Array([u.volumeadjust]),s=new Uint8Array(f.buffer),l=u.bitspeak,h=Math.ceil(l/8);r=Bb(r,c,s,l,Fb(u.peakvolume,h))}Bb(HT(e,r.length,n,{unsynchronisation:i,dataLengthIndicator:i}),r).forEach((function(t){return o.push(t)}))})),o},version:[4]},vO={parse:function(t,r){return new Xd(t).getUint32(0)}},gO={parse:function(t,r){var e=new Xd(t),n=e.getUint8(1,e.byteLength-1),i=Array.isArray(n)?n:[n];return{group:e.getUint8(0),signature:i}},validate:function(t,r,e){var n=[];return t.forEach((function(t){if("number"!=typeof t.group)throw new Error("Group ID is not a number");if(t.group<0||t.group>255)throw new Error("Group ID should be in the range of 0 - 255");if(!Xd.isViewable(t.signature))throw new Error("Signature should be viewable");if(e&&ET(n,t))throw new Error("SIGN contents should not be identical to others");n.push(t)})),!0},write:function(t,r){var e=r.id,n=r.version,i=r.unsynch,o=[];return t.forEach((function(t){var r=new Uint8Array(t.signature),a=Bb(t.group,r);i&&(a=KT(a,n)),Bb(HT(e,a.length,n,{unsynchronisation:i,dataLengthIndicator:i}),a).forEach((function(t){return o.push(t)}))})),o},version:[4]},pO={parse:function(t,r){for(var e=new Xd(t),n=Yd[e.getUint8(0)],i=e.getString(1,3).string,o=e.getUint8(4),a=e.getUint8(5),u=e.getCString(6,n),c=u.string,f=u.length+6,s=e.byteLength-f,l=e.getUint8(f,s),h=new Xd(Array.isArray(l)?l:[l]),v=[],g="",p=0;p<l.length;p+=4){var d=h.getCString(p,n),y=d.string,w=h.getUint32(p+d.length);v.push({time:w,line:y}),g+=vm(w,y),p+=d.length}return{language:i,format:o,type:a,descriptor:c,data:v,lyrics:g}},validate:function(t,r,e){var n=[];return t.forEach((function(t){var r=t.language,i=t.descriptor,o=t.type,a=t.format,u=t.lyrics,c=t.data;if(CT(r,0,e),CT(i,0,e),u&&"string"!=typeof u)throw new Error("Lyrics is not a string");if(c){var f,s=d(c);try{for(s.s();!(f=s.n()).done;){var l=f.value,h=l.time;if("string"!=typeof l.line)throw new Error("Line is not a string");if("number"!=typeof h)throw new Error("Timestamp is not a number")}}catch(t){s.e(t)}finally{s.f()}}if("number"!=typeof o)throw new Error("Type is not a number");if(o>255||o<0)throw new Error("Type should be in range of 0 - 255");if("number"!=typeof a)throw new Error("Format is not a number");if(a>255||a<0)throw new Error("Format should be in range of 0 - 255");if(e){if(!r.match(xT))throw new Error("Language must follow ISO 639-2");if(o>6||o<0)throw new Error("Type should be in range of 0 - 8");if(a>2||a<1)throw new Error("Format should be either 1 or 2");if(u&&!u.split("\n").every((function(t){return!t.length||PT.test(t)})))throw new Error("Lyrics must follow this format: [mm:ss.xxx]");var v={language:r,descriptor:i};if(ET(n,v))throw new Error("1 SYLT with same language and descriptor only");n.push(v)}})),!0},write:function(t,r){var e=r.id,n=r.version,i=r.unsynch,o=[],a=3===n?1:4===n?3:0,u=Yd[a];return t.forEach((function(t){var r=Hd(t.language),c=Hd(t.descriptor+"\0",u),f=[];t.data?t.data.forEach((function(t){var r=t.time,e=Hd(t.line+"\0",u);f=Bb(f,e,tO(r))})):t.lyrics&&(f=function(t,r){var e=/^\[(\d{1,}):(\d{2})\.(\d{3})\] ?(.*)/,n=[];return t.replace(/\r\n/g,"\n").split("\n").forEach((function(t){if(""!==t){var i=e.exec(t),o=6e4*parseInt(i[1])+1e3*parseInt(i[2])+parseInt(i[3]),a=Hd((i[4]||"")+"\0",r);n=Bb(n,a,tO(o))}})),n}(t.lyrics,u));var s=Bb(a,r,t.format,t.type,c,f);i&&(s=KT(s,n)),Bb(HT(e,s.length,n,{unsynchronisation:i,dataLengthIndicator:i}),s).forEach((function(t){return o.push(t)}))})),o},version:[3,4]},dO={parse:function(t,r){for(var e=new Xd(t),n=e.getUint8(0),i=e.getUint8(1,e.byteLength-1),o=new Xd(Array.isArray(i)?i:[i]),a=[],u=0;u<i.length;u+=5){var c=o.getUint8(u);255===c&&(c+=o.getUint8(++u));var f=o.getUint32(u+1);a.push({bpm:c,time:f})}return{format:n,data:a}},validate:function(t,r,e){if("number"!=typeof t.format)throw new Error("Timestamp format is not a number");if(t.format>255||t.format<0)throw new Error("Timestamp format should be in range of 0 - 255");if(e&&(t.format>2||t.format<1))throw new Error("Invalid timestamp format (should be 1 or 2)");var n,i=d(t.data);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=o.bpm,u=o.time;if("number"!=typeof a)throw new Error("BPM is not a number");if(a>510||a<0)throw new Error("BPM should be in range of 0 - 510");if("number"!=typeof u)throw new Error("Timestamp is not a number")}}catch(t){i.e(t)}finally{i.f()}return!0},write:function(t,r){var e=r.id,n=r.version,i=r.unsynch,o=t.data.flatMap((function(t){var r=t.bpm,e=t.time;return r>=255?[255,r-255].concat(v(tO(e))):[r].concat(v(tO(e)))})),a=Bb(t.format,o);return i&&(a=KT(a,n)),Bb(HT(e,a.length,n,{unsynchronisation:i,dataLengthIndicator:i}),a)},version:[3,4]},yO={parse:cm,validate:CT,write:XT,version:[3,4]},wO={parse:cm,validate:CT,write:JT,version:[3,4]},bO={parse:cm,validate:CT,write:XT,version:[3,4]},mO={parse:cm,validate:CT,write:XT,version:[3,4]},EO={parse:cm,validate:CT,write:XT,version:[3,4]},AO={parse:cm,validate:UT,write:JT,version:[3]},SO={parse:cm,validate:UT,write:JT,version:[4]},TO={parse:cm,validate:CT,write:JT,version:[3]},OO={parse:cm,validate:UT,write:JT,version:[4]},IO={parse:cm,validate:UT,write:JT,version:[4]},xO={parse:cm,validate:UT,write:JT,version:[4]},kO={parse:cm,validate:UT,write:JT,version:[4]},RO={parse:cm,validate:CT,write:XT,version:[3,4]},PO={parse:cm,validate:CT,write:XT,version:[3,4]},CO={parse:cm,validate:CT,write:XT,version:[3,4]},LO={parse:cm,validate:UT,write:JT,version:[3]},UO={parse:cm,validate:CT,write:XT,version:[4]},MO={parse:cm,validate:CT,write:XT,version:[3,4]},jO={parse:cm,validate:CT,write:XT,version:[3,4]},DO={parse:cm,validate:CT,write:XT,version:[3,4]},BO={parse:cm,validate:function(t,r,e){return 3===r?t=[t]:4===r&&(t=t.split("\\\\")),t.forEach((function(t){if(CT(t,0,e),e&&!t.match(/^([A-Gb#mo]{1,3})$/))throw new Error("Invalid TKEY Format (eg Cbm)")})),!0},write:JT,version:[3,4]},FO={parse:cm,validate:function(t,r,e){return 3===r?t=[t]:4===r&&(t=t.split("\\\\")),t.forEach((function(t){if(CT(t,0,e),e&&!t.match(xT))throw new Error("Language must follow ISO 639-2")})),!0},write:JT,version:[3,4]},_O={parse:cm,validate:CT,write:JT,version:[3,4]},NO={parse:cm,validate:CT,write:XT,version:[4]},VO={parse:cm,validate:CT,write:XT,version:[3,4]},GO={parse:cm,validate:CT,write:XT,version:[4]},WO={parse:cm,validate:CT,write:XT,version:[3,4]},YO={parse:cm,validate:CT,write:XT,version:[3,4]},$O={parse:cm,validate:CT,write:XT,version:[3,4]},zO={parse:cm,validate:CT,write:XT,version:[3,4]},HO={parse:cm,validate:UT,write:JT,version:[3]},KO={parse:cm,validate:CT,write:XT,version:[3,4]},XO={parse:cm,validate:CT,write:XT,version:[3,4]},JO={parse:cm,validate:CT,write:XT,version:[3,4]},ZO={parse:cm,validate:CT,write:XT,version:[3,4]},qO={parse:cm,validate:CT,write:XT,version:[3,4]},QO={parse:fm,validate:LT,write:ZT,version:[3,4]},tI={parse:cm,validate:CT,write:XT,version:[4]},rI={parse:cm,validate:CT,write:XT,version:[3,4]},eI={parse:fm,validate:LT,write:ZT,version:[3,4]},nI={parse:cm,validate:CT,write:XT,version:[3]},iI={parse:cm,validate:CT,write:XT,version:[3,4]},oI={parse:cm,validate:CT,write:XT,version:[3,4]},aI={parse:cm,validate:CT,write:JT,version:[3]},uI={parse:cm,validate:CT,write:XT,version:[4]},cI={parse:cm,validate:CT,write:XT,version:[4]},fI={parse:cm,validate:CT,write:XT,version:[4]},sI={parse:cm,validate:CT,write:XT,version:[4]},lI={parse:cm,validate:function(t,r,e){return 3===r?t=[t]:4===r&&(t=t.split("\\\\")),t.forEach((function(t){if(CT(t,0,e),e&&!t.match(/^([A-Z0-9]{12})$/))throw new Error("Invalid ISRC format")})),!0},write:JT,version:[3,4]},hI={parse:cm,validate:CT,write:XT,version:[3,4]},vI={parse:cm,validate:CT,write:XT,version:[4]},gI={parse:cm,validate:UT,write:JT,version:[3]},pI={parse:function(t,r){var e=new Xd(t),n=Yd[e.getUint8(0)],i=e.getCString(1,n),o=i.length+1,a=e.byteLength-o,u=e.getString(o,a,n);return{description:i.string,text:u.string}},validate:function(t,r,e){var n=[];return t.forEach((function(t){if(CT(t.description,0,e),CT(t.text,0,e),e&&ET(n,t.description))throw new Error("Description should not duplicate");n.push(t.description)})),!0},write:function(t,r){var e=r.id,n=r.version,i=r.unsynch,o=[];return t.forEach((function(t){var r,a,u=0;switch(n){case 3:u=1,r=Hd(t.description+"\0","utf-16"),a=Hd(t.text+"\0","utf-16");break;case 4:u=3,r=Hd(t.description+"\0","utf-8"),a=Hd(t.text+"\0","utf-8")}var c=Bb(u,r,a);i&&(c=KT(c,n)),Bb(HT(e,c.length,n,{unsynchronisation:i,dataLengthIndicator:i}),c).forEach((function(t){return o.push(t)}))})),o},version:[3,4]},dI={parse:function(t,r){var e=new Xd(t),n=e.getCString(0),i=e.getUint8(n.length,e.byteLength-n.length),o=Array.isArray(i)?i:[i];return{ownerId:n.string,id:o}},validate:function(t,r,e){var n=[];return t.forEach((function(t){if(CT(t.ownerId,0,e),!Xd.isViewable(t.id))throw new Error("ID should be viewable");if(e){if(""===t.ownerId)throw new Error("ownerId should not be blank");if((t.id.byteLength||t.id.length||0)>64)throw new Error("ID bytelength should not exceed 64 bytes");if(ET(n,t.ownerId))throw new Error("ownerId should not duplicate");n.push(t.ownerId)}})),!0},write:function(t,r){var e=r.id,n=r.version,i=r.unsynch,o=[];return t.forEach((function(t){var r=Bb(Hd(t.ownerId+"\0"),new Uint8Array(t.id));i&&(r=KT(r,n)),Bb(HT(e,r.length,n,{unsynchronisation:i,dataLengthIndicator:i}),r).forEach((function(t){return o.push(t)}))})),o},version:[3,4]},yI={parse:function(t,r){var e=new Xd(t),n=Yd[e.getUint8(0)];return{language:e.getString(1,3).string,text:e.getString(4,e.byteLength-4,n).string}},validate:function(t,r,e){return t.forEach((function(t){if(CT(t.language,0,e),"string"!=typeof t.text)throw new Error("Text is not a string");if(e&&!t.language.match(xT))throw new Error("Language must follow ISO 639-2")})),!0},write:function(t,r){var e,n=r.id,i=r.version,o=r.unsynch,a=[],u=0,c=Hd(t.language);switch(i){case 3:u=1,e=Hd(t.text+"\0","utf-16");break;case 4:u=3,e=Hd(t.text+"\0","utf-8")}var f=Bb(u,c,e);return o&&(f=KT(f,i)),Bb(HT(n,f.length,i,{unsynchronisation:o,dataLengthIndicator:o}),f).forEach((function(t){return a.push(t)})),a},version:[3,4]},wI={parse:lm,validate:jT,write:QT,version:[3,4]},bI={parse:sm,validate:MT,write:qT,version:[3,4]},mI={parse:sm,validate:MT,write:qT,version:[3,4]},EI={parse:sm,validate:MT,write:qT,version:[3,4]},AI={parse:sm,validate:MT,write:qT,version:[3,4]},SI={parse:sm,validate:MT,write:qT,version:[3,4]},TI={parse:sm,validate:MT,write:qT,version:[3,4]},OI={parse:sm,validate:MT,write:qT,version:[3,4]},II={parse:sm,validate:MT,write:qT,version:[3,4]},xI={parse:function(t,r){var e=new Xd(t),n=Yd[e.getUint8(0)],i=e.getCString(1,n),o=i.length+1,a=e.byteLength-o,u=e.getString(o,a);return{description:i.string,url:u.string}},validate:function(t,r,e){var n=[];return t.forEach((function(t){if(CT(t.description,0,e),MT(t.url,0,e),e&&ET(n,t.description))throw new Error("Description should not duplicate");n.push(t.description)})),!0},write:function(t,r){var e=r.id,n=r.version,i=r.unsynch,o=[];return t.forEach((function(t){var r,a,u=0;switch(n){case 3:u=1,r=Hd(t.description+"\0","utf-16"),a=Hd(t.url+"\0");break;case 4:u=3,r=Hd(t.description+"\0","utf-8"),a=Hd(t.url+"\0")}var c=Bb(u,r,a);i&&(c=KT(c,n)),Bb(HT(e,c.length,n,{unsynchronisation:i,dataLengthIndicator:i}),c).forEach((function(t){return o.push(t)}))})),o},version:[3,4]},kI={parse:hm,validate:MT,write:JT,version:[3,4]},RI={parse:hm,validate:MT,write:JT,version:[3,4]},PI={parse:cm,validate:CT,write:XT,version:[3,4]},CI=Object.freeze({__proto__:null,APIC:rO,COMM:eO,ETCO:nO,GEOB:iO,IPLS:oO,MCDI:aO,OWNE:uO,PCNT:cO,POPM:fO,PRIV:sO,RVAD:lO,RVA2:hO,SEEK:vO,SIGN:gO,SYLT:pO,SYTC:dO,TALB:yO,TBPM:wO,TCOM:bO,TCON:mO,TCOP:EO,TDAT:AO,TDEN:SO,TDLY:TO,TDOR:OO,TDRC:IO,TDRL:xO,TDTG:kO,TENC:RO,TEXT:PO,TFLT:CO,TIME:LO,TIPL:UO,TIT1:MO,TIT2:jO,TIT3:DO,TKEY:BO,TLAN:FO,TLEN:_O,TMCL:NO,TMED:VO,TMOO:GO,TOAL:WO,TOFN:YO,TOLY:$O,TOPE:zO,TORY:HO,TOWN:KO,TPE1:XO,TPE2:JO,TPE3:ZO,TPE4:qO,TPOS:QO,TPRO:tI,TPUB:rI,TRCK:eI,TRDA:nI,TRSN:iI,TRSO:oI,TSIZ:aI,TSOA:uI,TSOC:cI,TSOP:fI,TSOT:sI,TSRC:lI,TSSE:hI,TSST:vI,TYER:gI,TXXX:pI,UFID:dI,USER:yI,USLT:wI,WCOM:bI,WCOP:mI,WOAF:EI,WOAR:AI,WOAS:SI,WORS:TI,WPAY:OI,WPUB:II,WXXX:xI,WFED:kI,TGID:RI,TSO2:PI});function LI(t){return"ID3"===new Xd(t).getString(0,3).string}function UI(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=new Xd(t,r),i=n.getUint8(3,2),o=jb(n.getUint32(6)),a=um(n.getUint8(5),i[0]),u={version:i,flags:a,size:o},c={};if(3!==i[0]&&4!==i[0])throw new Error("Unknown ID3v2 major version");for(var f=10,s=o,l=function(t){var r=["USER","OWNE","MCDI","RVAD","SYTC","ETCO","PCNT"];switch(e(t.value)){case"number":case"string":t.value=t.value.toString(),c[t.id]&&!r.includes(t.id)?c[t.id]+="\\\\"+t.value:c[t.id]=t.value;break;case"object":r.includes(t.id)?c[t.id]=t.value:c[t.id]?c[t.id].push(t.value):c[t.id]=[t.value]}};f<o;){var h=n.getUint8(f,s),v=MI(h,{version:i,flags:a});if(!v)break;if(f+=v.size+10,s-=v.size+10,"SEEK"===v.id){var g=UI(t,f+v.value);for(var p in g)l({id:p,value:g[p]})}else l({id:v.id,value:v.value})}return{tags:c,details:u}}function MI(t,r){var e=new Xd(t);if(0===e.getUint8(0))return!1;var n={},i=r.version,o=r.flags,a=e.getUint32(4);n.id=e.getUint8String(0,4),n.flags=function(t,r){var e={};switch(r){case 3:e.tagAlterPreservation=Ub(t[0],7),e.fileAlterPreservation=Ub(t[0],6),e.readOnly=Ub(t[0],5),e.compression=Ub(t[1],7),e.encryption=Ub(t[1],6),e.groupingIdentity=Ub(t[1],5);break;case 4:e.tagAlterPreservation=Ub(t[0],6),e.fileAlterPreservation=Ub(t[0],5),e.readOnly=Ub(t[0],4),e.groupingIdentity=Ub(t[1],6),e.compression=Ub(t[1],3),e.encryption=Ub(t[1],2),e.unsynchronisation=Ub(t[1],1),e.dataLengthIndicator=Ub(t[1],0)}return e}(e.getUint8(8,2),i[0]),n.size=4===i[0]?jb(a):a;var u,c=CI[n.id],f=10,s=n.size,l=n.size;if(!c)return console.warn("Skipping unsupported frame: ".concat(n.id)),n;n.flags.dataLengthIndicator&&(s=jb(e.getUint32(f)),f+=4,l-=4);var h=o.unsynchronisation;if(4===i&&(h=n.flags.unsynchronisation),h){var v=e.getUint8(f,l),g=function(t){for(var r=[],e=0;e<t.length;)r.push(t[e]),255===t[e]&&0===t[e+1]&&e++,e++;return r}(Array.isArray(v)?v:[v]);u=new Uint8Array(g)}else{var p=e.getUint8(f,s);u=new Uint8Array(Array.isArray(p)?p:[p])}return n.value=c.parse(u.buffer,i[0]),n}function jI(t,r,e){var n=e.version;if(3!==n&&4!==n)throw new Error("Unknown provided version");for(var i in t)if(Object.keys(CI).includes(i)){var o=CI[i];if(r&&!o.version.includes(n))throw new Error("".concat(i," is not supported in ID3v2.").concat(n));try{o.validate(t[i],n,r)}catch(t){throw new Error("".concat(t.message," at ").concat(i))}}return!0}function DI(t,r){var e=r.version,n=r.padding,i=r.unsynch,o=[73,68,51,e,0],a=0,u=new Xd(4),c=new Uint8Array(n),f=[];for(var s in t){CI[s].write(t[s],{id:s,version:e,unsynch:i}).forEach((function(t){return f.push(t)}))}return i&&(a=Mb(a,7)),u.setUint32(0,Db(f.length)),Bb(o,a,u.getUint8(0,4),f,c).buffer}var BI=function(){function t(r){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n(this,t),!Kd(r))throw new TypeError("buffer is not ArrayBuffer/Buffer");this.name="MP3Tag",this.version="3.7.1",this.verbose=e,this.buffer=r,this.tags={},this.error=""}return o(t,[{key:"read",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.tags={},this.error="";try{this.tags=t.readBuffer(this.buffer,r,this.verbose)}catch(t){this.error=t.message}return this.tags}},{key:"save",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.error="";var e=this.buffer;try{e=t.writeBuffer(this.buffer,this.tags,r,this.verbose)}catch(t){this.error=t.message}return""===this.error&&(this.buffer=e),this.buffer}},{key:"remove",value:function(){return this.tags={},this.error="",this.buffer=this.getAudio(),!0}},{key:"getAudio",value:function(){return t.getAudioBuffer(this.buffer)}}],[{key:"readBuffer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!Kd(t))throw new TypeError("buffer is not ArrayBuffer/Buffer");var i={};if((e=ST(e,{id3v1:!0,id3v2:!0})).id3v1&&Gb(t)){n&&console.log("ID3v1 found, reading...");var o=Wb(t),a=o.tags,u=o.details;n&&console.log("ID3v1 reading finished"),i.v1=r({},a),i.v1Details=u}if(e.id3v2&&LI(t)){n&&console.log("ID3v2 found, reading...");var c=UI(t),f=c.tags,s=c.details;n&&console.log("ID3v2 reading finished"),i.v2=r({},f),i.v2Details=s}return Object.defineProperties(i,{title:{get:function(){return this.v2&&this.v2.TIT2||this.v1&&this.v1.title||""},set:function(t){this.v2&&(this.v2.TIT2=t),this.v1&&(this.v1.title=t)}},artist:{get:function(){return this.v2&&this.v2.TPE1||this.v1&&this.v1.artist||""},set:function(t){this.v2&&(this.v2.TPE1=t),this.v1&&(this.v1.artist=t)}},album:{get:function(){return this.v2&&this.v2.TALB||this.v1&&this.v1.album||""},set:function(t){this.v2&&(this.v2.TALB=t),this.v1&&(this.v1.album=t)}},year:{get:function(){return this.v2&&(this.v2.TYER||this.v2.TDRC)||this.v1&&this.v1.year||""},set:function(t){if(this.v2){var r=this.v2Details.version[0];3===r?this.v2.TYER=t:4===r&&(this.v2.TDRC=t)}this.v1&&(this.v1.year=t)}},comment:{get:function(){var t="";if(this.v2&&this.v2.COMM){var r=this.v2.COMM;Array.isArray(r)&&r.length>0&&(t=r[0].text)}else this.v1&&this.v1.comment&&(t=this.v1.comment);return t},set:function(t){this.v2&&(this.v2.COMM=[{language:"eng",descriptor:"",text:t}]),this.v1&&(this.v1.comment=t)}},track:{get:function(){return this.v2&&this.v2.TRCK&&this.v2.TRCK.split("/")[0]||this.v1&&this.v1.track||""},set:function(t){this.v2&&(this.v2.TRCK=t),this.v1&&(this.v1.track=t)}},genre:{get:function(){return this.v2&&this.v2.TCON||this.v1&&this.v1.genre||""},set:function(t){this.v2&&(this.v2.TCON=t),this.v1&&(this.v1.genre=t)}}}),i}},{key:"writeBuffer",value:function(r,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=e.v2Details?e.v2Details.version[0]:3,a=new Uint8Array(t.getAudioBuffer(r));if((n=ST(n,{strict:!1,id3v1:{include:!1},id3v2:{include:!0,unsynch:!1,version:o,padding:2048}})).id3v1.include){i&&console.log("Validating ID3v1..."),Yb(e.v1,n.strict),i&&console.log("Writing ID3v1...");var u=$b(e.v1),c=new Uint8Array(u);a=Bb(a,c)}if(n.id3v2.include){i&&console.log("Validating ID3v2..."),jI(e.v2,n.strict,n.id3v2),i&&console.log("Writing ID3v2...");var f=DI(e.v2,n.id3v2),s=new Uint8Array(f);a=Bb(s,a)}return"undefined"!=typeof Buffer?Buffer.from(a.buffer):a.buffer}},{key:"getAudioBuffer",value:function(t){if(!Kd(t))throw new TypeError("buffer is not ArrayBuffer/Buffer");Gb(t)&&(t=t.slice(0,t.byteLength-128));var r=0;LI(t)&&(r=UI(t).details.size);for(var e=new Xd(t),n=0;r<e.byteLength;){if(255===e.getUint8(r)&&e.getUint8(r+1)>=240){n=r;break}r++}var i=t.slice(n);return"undefined"!=typeof Buffer?Buffer.from(i):i}}]),t}();return BI}));