(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["vue-advanced-chat"]=t():e["vue-advanced-chat"]=t()})("undefined"!==typeof self?self:this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"00ee":function(e,t,n){var r=n("b622"),o=r("toStringTag"),a={};a[o]="z",e.exports="[object z]"===String(a)},"0137":function(e,t,n){},"0206":function(e,t){function n(e){return new Int8Array(e)}function r(e){return new Int16Array(e)}function o(e){return new Int32Array(e)}function a(e){return new Float32Array(e)}function i(e){return new Float64Array(e)}function s(e){if(1==e.length)return a(e[0]);var t=e[0];e=e.slice(1);for(var n=[],r=0;r<t;r++)n.push(s(e));return n}function c(e){if(1==e.length)return o(e[0]);var t=e[0];e=e.slice(1);for(var n=[],r=0;r<t;r++)n.push(c(e));return n}function l(e){if(1==e.length)return r(e[0]);var t=e[0];e=e.slice(1);for(var n=[],o=0;o<t;o++)n.push(l(e));return n}function u(e){if(1==e.length)return new Array(e[0]);var t=e[0];e=e.slice(1);for(var n=[],r=0;r<t;r++)n.push(u(e));return n}var f={fill:function(e,t,n,r){if(2==arguments.length)for(var o=0;o<e.length;o++)e[o]=arguments[1];else for(o=t;o<n;o++)e[o]=r}},d={arraycopy:function(e,t,n,r,o){var a=t+o;while(t<a)n[r++]=e[t++]}},h={};function p(e){this.ordinal=e}h.SQRT2=1.4142135623730951,h.FAST_LOG10=function(e){return Math.log10(e)},h.FAST_LOG10_X=function(e,t){return Math.log10(e)*t},p.short_block_allowed=new p(0),p.short_block_coupled=new p(1),p.short_block_dispensed=new p(2),p.short_block_forced=new p(3);var m={};function _(e){this.ordinal=e}m.MAX_VALUE=34028235e31,_.vbr_off=new _(0),_.vbr_mt=new _(1),_.vbr_rh=new _(2),_.vbr_abr=new _(3),_.vbr_mtrh=new _(4),_.vbr_default=_.vbr_mtrh;var g=function(e){};e.exports={System:d,VbrMode:_,Float:m,ShortBlock:p,Util:h,Arrays:f,new_array_n:u,new_byte:n,new_double:i,new_float:a,new_float_n:s,new_int:o,new_int_n:c,new_short:r,new_short_n:l,assert:g}},"0366":function(e,t,n){var r=n("1c0b");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},"04d1":function(e,t,n){var r=n("342f"),o=r.match(/firefox\/(\d+)/i);e.exports=!!o&&+o[1]},"0538":function(e,t,n){"use strict";var r=n("1c0b"),o=n("861d"),a=[].slice,i={},s=function(e,t,n){if(!(t in i)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";i[t]=Function("C,a","return new C("+r.join(",")+")")}return i[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=a.call(arguments,1),i=function(){var r=n.concat(a.call(arguments));return this instanceof i?s(t,r.length,r):t.apply(e,r)};return o(t.prototype)&&(i.prototype=t.prototype),i}},"057f":function(e,t,n){var r=n("fc6a"),o=n("241c").f,a={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return o(e)}catch(t){return i.slice()}};e.exports.f=function(e){return i&&"[object Window]"==a.call(e)?s(e):o(r(e))}},"06cf":function(e,t,n){var r=n("83ab"),o=n("d1e7"),a=n("5c6c"),i=n("fc6a"),s=n("a04b"),c=n("5135"),l=n("0cfb"),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=i(e),t=s(t),l)try{return u(e,t)}catch(n){}if(c(e,t))return a(!o.f.call(e,t),e[t])}},"09e6":function(e,t,n){var r=n("0206"),o=r.new_float,a=r.new_int;r.assert;function i(){this.global_gain=0,this.sfb_count1=0,this.step=a(39),this.noise=o(39),this.noise_log=o(39)}e.exports=i},"0b25":function(e,t,n){var r=n("a691"),o=n("50c4");e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=o(t);if(t!==n)throw RangeError("Wrong length or index");return n}},"0b42":function(e,t,n){var r=n("861d"),o=n("e8b5"),a=n("b622"),i=a("species");e.exports=function(e){var t;return o(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!o(t.prototype)?r(t)&&(t=t[i],null===t&&(t=void 0)):t=void 0),void 0===t?Array:t}},"0cb2":function(e,t,n){var r=n("7b0b"),o=Math.floor,a="".replace,i=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,c,l,u){var f=n+e.length,d=c.length,h=s;return void 0!==l&&(l=r(l),h=i),a.call(u,h,(function(r,a){var i;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(f);case"<":i=l[a.slice(1,-1)];break;default:var s=+a;if(0===s)return r;if(s>d){var u=o(s/10);return 0===u?r:u<=d?void 0===c[u-1]?a.charAt(1):c[u-1]+a.charAt(1):r}i=c[s-1]}return void 0===i?"":i}))}},"0ccb":function(e,t,n){var r=n("50c4"),o=n("577e"),a=n("1148"),i=n("1d80"),s=Math.ceil,c=function(e){return function(t,n,c){var l,u,f=o(i(t)),d=f.length,h=void 0===c?" ":o(c),p=r(n);return p<=d||""==h?f:(l=p-d,u=a.call(h,s(l/h.length)),u.length>l&&(u=u.slice(0,l)),e?f+u:u+f)}};e.exports={start:c(!1),end:c(!0)}},"0cfb":function(e,t,n){var r=n("83ab"),o=n("d039"),a=n("cc12");e.exports=!r&&!o((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},"0d03":function(e,t,n){var r=n("6eeb"),o=Date.prototype,a="Invalid Date",i="toString",s=o[i],c=o.getTime;String(new Date(NaN))!=a&&r(o,i,(function(){var e=c.call(this);return e===e?s.call(this):a}))},"0d3b":function(e,t,n){var r=n("d039"),o=n("b622"),a=n("c430"),i=o("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t["delete"]("b"),n+=r+e})),a&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[i]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},"107c":function(e,t,n){var r=n("d039");e.exports=r((function(){var e=RegExp("(?<a>b)","string".charAt(5));return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},1148:function(e,t,n){"use strict";var r=n("a691"),o=n("577e"),a=n("1d80");e.exports=function(e){var t=o(a(this)),n="",i=r(e);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n}},"129f":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},"13d5":function(e,t,n){"use strict";var r=n("23e7"),o=n("d58f").left,a=n("a640"),i=n("2d00"),s=n("605d"),c=a("reduce"),l=!s&&i>79&&i<83;r({target:"Array",proto:!0,forced:!c||l},{reduce:function(e){return o(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},1448:function(e,t,n){var r=n("dfb9"),o=n("b6b7");e.exports=function(e,t){return r(o(e),t)}},"145e":function(e,t,n){"use strict";var r=n("7b0b"),o=n("23cb"),a=n("50c4"),i=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),s=a(n.length),c=o(e,s),l=o(t,s),u=arguments.length>2?arguments[2]:void 0,f=i((void 0===u?s:o(u,s))-l,s-c),d=1;l<c&&c<l+f&&(d=-1,l+=f-1,c+=f-1);while(f-- >0)l in n?n[c]=n[l]:delete n[c],c+=d,l+=d;return n}},"14c3":function(e,t,n){var r=n("c6b6"),o=n("9263");e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var a=n.call(e,t);if("object"!==typeof a)throw TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},"159b":function(e,t,n){var r=n("da84"),o=n("fdbc"),a=n("17c2"),i=n("9112");for(var s in o){var c=r[s],l=c&&c.prototype;if(l&&l.forEach!==a)try{i(l,"forEach",a)}catch(u){l.forEach=a}}},1652:function(e,t,n){"use strict";t.__esModule=!0,t.stateify=t.TokenState=t.CharacterState=void 0;var r=n("254c");function o(){return function(e){this.j=[],this.T=e||null}}var a=o();a.prototype={defaultTransition:!1,on:function(e,t){if(e instanceof Array){for(var n=0;n<e.length;n++)this.j.push([e[n],t]);return this}return this.j.push([e,t]),this},next:function(e){for(var t=0;t<this.j.length;t++){var n=this.j[t],r=n[0],o=n[1];if(this.test(e,r))return o}return this.defaultTransition},accepts:function(){return!!this.T},test:function(e,t){return e===t},emit:function(){return this.T}};var i=(0,r.inherits)(a,o(),{test:function(e,t){return e===t||t instanceof RegExp&&t.test(e)}}),s=(0,r.inherits)(a,o(),{jump:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.next(new e(""));return n===this.defaultTransition?(n=new this.constructor(t),this.on(e,n)):t&&(n.T=t),n},test:function(e,t){return e instanceof t}});function c(e,t,n,r){var o=0,a=e.length,s=t,c=[],l=void 0;while(o<a&&(l=s.next(e[o])))s=l,o++;if(o>=a)return[];while(o<a-1)l=new i(r),c.push(l),s.on(e[o],l),s=l,o++;return l=new i(n),c.push(l),s.on(e[a-1],l),c}t.CharacterState=i,t.TokenState=s,t.stateify=c},"170b":function(e,t,n){"use strict";var r=n("ebb5"),o=n("50c4"),a=n("23cb"),i=n("b6b7"),s=r.aTypedArray,c=r.exportTypedArrayMethod;c("subarray",(function(e,t){var n=s(this),r=n.length,c=a(e,r),l=i(n);return new l(n.buffer,n.byteOffset+c*n.BYTES_PER_ELEMENT,o((void 0===t?r:a(t,r))-c))}))},"17c2":function(e,t,n){"use strict";var r=n("b727").forEach,o=n("a640"),a=o("forEach");e.exports=a?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},"182d":function(e,t,n){var r=n("f8cd");e.exports=function(e,t){var n=r(e);if(n%t)throw RangeError("Wrong offset");return n}},"19aa":function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},"1a98":function(e,t,n){"use strict";n.r(t),n.d(t,"detectMobile",(function(){return r})),n.d(t,"iOSDevice",(function(){return a}));n("caad"),n("2532");function r(){var e=o(),t=e.substr(0,4);return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw(n|u)|c55\/|capi|ccwa|cdm|cell|chtm|cldc|cmd|co(mp|nd)|craw|da(it|ll|ng)|dbte|dcs|devi|dica|dmob|do(c|p)o|ds(12|d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(|_)|g1 u|g560|gene|gf5|gmo|go(\.w|od)|gr(ad|un)|haie|hcit|hd(m|p|t)|hei|hi(pt|ta)|hp( i|ip)|hsc|ht(c(| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i(20|go|ma)|i230|iac( ||\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|[a-w])|libw|lynx|m1w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|mcr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|([1-8]|c))|phil|pire|pl(ay|uc)|pn2|po(ck|rt|se)|prox|psio|ptg|qaa|qc(07|12|21|32|60|[2-7]|i)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h|oo|p)|sdk\/|se(c(|0|1)|47|mc|nd|ri)|sgh|shar|sie(|m)|sk0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h|v|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl|tdg|tel(i|m)|tim|tmo|to(pl|sh)|ts(70|m|m3|m5)|tx9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas|your|zeto|zte/i.test(t)}function o(){var e=navigator.userAgent||navigator.vendor||window.opera||null;if(!e)throw new Error("Failed to look for user agent information.");return e}function a(){return["iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}},"1be4":function(e,t,n){var r=n("d066");e.exports=r("document","documentElement")},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1c7e":function(e,t,n){var r=n("b622"),o=r("iterator"),a=!1;try{var i=0,s={next:function(){return{done:!!i++}},return:function(){a=!0}};s[o]=function(){return this},Array.from(s,(function(){throw 2}))}catch(c){}e.exports=function(e,t){if(!t&&!a)return!1;var n=!1;try{var r={};r[o]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(c){}return n}},"1cdc":function(e,t,n){var r=n("342f");e.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(r)},"1d1c":function(e,t,n){var r=n("23e7"),o=n("83ab"),a=n("37e8");r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperties:a})},"1d80":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"1dde":function(e,t,n){var r=n("d039"),o=n("b622"),a=n("2d00"),i=o("species");e.exports=function(e){return a>=51||!r((function(){var t=[],n=t.constructor={};return n[i]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"219c":function(e,t,n){"use strict";var r=n("ebb5"),o=n("da84"),a=n("d039"),i=n("1c0b"),s=n("50c4"),c=n("addb"),l=n("04d1"),u=n("d998"),f=n("2d00"),d=n("512c"),h=r.aTypedArray,p=r.exportTypedArrayMethod,m=o.Uint16Array,_=m&&m.prototype.sort,g=!!_&&!a((function(){var e=new m(2);e.sort(null),e.sort({})})),b=!!_&&!a((function(){if(f)return f<74;if(l)return l<67;if(u)return!0;if(d)return d<602;var e,t,n=new m(516),r=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(n.sort((function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==r[e])return!0})),v=function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!==n?-1:t!==t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}};p("sort",(function(e){var t=this;if(void 0!==e&&i(e),b)return _.call(t,e);h(t);var n,r=s(t.length),o=Array(r);for(n=0;n<r;n++)o[n]=t[n];for(o=c(t,v(e)),n=0;n<r;n++)t[n]=o[n];return t}),!b||g)},2266:function(e,t,n){var r=n("825a"),o=n("e95a"),a=n("50c4"),i=n("0366"),s=n("35a1"),c=n("2a62"),l=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var u,f,d,h,p,m,_,g=n&&n.that,b=!(!n||!n.AS_ENTRIES),v=!(!n||!n.IS_ITERATOR),y=!(!n||!n.INTERRUPTED),w=i(t,g,1+b+y),x=function(e){return u&&c(u),new l(!0,e)},k=function(e){return b?(r(e),y?w(e[0],e[1],x):w(e[0],e[1])):y?w(e,x):w(e)};if(v)u=e;else{if(f=s(e),"function"!=typeof f)throw TypeError("Target is not iterable");if(o(f)){for(d=0,h=a(e.length);h>d;d++)if(p=k(e[d]),p&&p instanceof l)return p;return new l(!1)}u=f.call(e)}m=u.next;while(!(_=m.call(u)).done){try{p=k(_.value)}catch(S){throw c(u),S}if("object"==typeof p&&p&&p instanceof l)return p}return new l(!1)}},2315:function(e,t,n){"use strict";var r=n("23e7"),o=n("857a"),a=n("af03");r({target:"String",proto:!0,forced:a("strike")},{strike:function(){return o(this,"strike","","")}})},"23cb":function(e,t,n){var r=n("a691"),o=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):a(n,t)}},"23e7":function(e,t,n){var r=n("da84"),o=n("06cf").f,a=n("9112"),i=n("6eeb"),s=n("ce4e"),c=n("e893"),l=n("94ca");e.exports=function(e,t){var n,u,f,d,h,p,m=e.target,_=e.global,g=e.stat;if(u=_?r:g?r[m]||s(m,{}):(r[m]||{}).prototype,u)for(f in t){if(h=t[f],e.noTargetGet?(p=o(u,f),d=p&&p.value):d=u[f],n=l(_?f:m+(g?".":"#")+f,e.forced),!n&&void 0!==d){if(typeof h===typeof d)continue;c(h,d)}(e.sham||d&&d.sham)&&a(h,"sham",!0),i(u,f,h,e)}}},"241c":function(e,t,n){var r=n("ca84"),o=n("7839"),a=o.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,a)}},2466:function(e,t){function n(){this.sum=0,this.seen=0,this.want=0,this.pos=0,this.size=0,this.bag=null,this.nVbrNumFrames=0,this.nBytesWritten=0,this.TotalFrameSize=0}e.exports=n},2474:function(e,t,n){var r=n("0206"),o=(r.System,r.VbrMode),a=r.Float,i=r.ShortBlock,s=r.Util,c=r.Arrays,l=(r.new_array_n,r.new_byte,r.new_double,r.new_float),u=r.new_float_n,f=r.new_int,d=(r.new_int_n,r.assert),h=n("8100"),p=n("4b5e");function m(){var e=new h,t=2.302585092994046,n=2,r=16,m=2,_=16,g=.34,b=1/217621504/(p.BLKSIZE/2),v=.01,y=.8,w=.6,x=.3,k=3.5,S=21,A=.2302585093;function M(e){return e}function R(e,t){for(var n=0,r=0;r<p.BLKSIZE/2;++r)n+=e[r]*t.ATH.eql_w[r];return n*=b,n}function E(t,n,r,o,a,i,c,l,u,f,d){var h=t.internal_flags;if(u<2)e.fft_long(h,o[a],u,f,d),e.fft_short(h,i[c],u,f,d);else if(2==u){for(var m=p.BLKSIZE-1;m>=0;--m){var _=o[a+0][m],g=o[a+1][m];o[a+0][m]=(_+g)*s.SQRT2*.5,o[a+1][m]=(_-g)*s.SQRT2*.5}for(var b=2;b>=0;--b)for(m=p.BLKSIZE_s-1;m>=0;--m){_=i[c+0][b][m],g=i[c+1][b][m];i[c+0][b][m]=(_+g)*s.SQRT2*.5,i[c+1][b][m]=(_-g)*s.SQRT2*.5}}n[0]=M(o[a+0][0]),n[0]*=n[0];for(m=p.BLKSIZE/2-1;m>=0;--m){var v=o[a+0][p.BLKSIZE/2-m],y=o[a+0][p.BLKSIZE/2+m];n[p.BLKSIZE/2-m]=M(.5*(v*v+y*y))}for(b=2;b>=0;--b){r[b][0]=i[c+0][b][0],r[b][0]*=r[b][0];for(m=p.BLKSIZE_s/2-1;m>=0;--m){v=i[c+0][b][p.BLKSIZE_s/2-m],y=i[c+0][b][p.BLKSIZE_s/2+m];r[b][p.BLKSIZE_s/2-m]=M(.5*(v*v+y*y))}}var w=0;for(m=11;m<p.HBLKSIZE;m++)w+=n[m];if(h.tot_ener[u]=w,t.analysis){for(m=0;m<p.HBLKSIZE;m++)h.pinfo.energy[l][u][m]=h.pinfo.energy_save[u][m],h.pinfo.energy_save[u][m]=n[m];h.pinfo.pe[l][u]=h.pe[u]}2==t.athaa_loudapprox&&u<2&&(h.loudness_sq[l][u]=h.loudness_sq_save[u],h.loudness_sq_save[u]=R(n,h))}var T,O,L,B=8,I=23,C=15,P=[1,.79433,.63096,.63096,.63096,.63096,.63096,.25119,.11749];function j(){T=Math.pow(10,(B+1)/16),O=Math.pow(10,(I+1)/16),L=Math.pow(10,C/10)}var N=[3.3246*3.3246,3.23837*3.23837,9.9500500969,9.0247369744,8.1854926609,7.0440875649,2.46209*2.46209,2.284*2.284,4.4892710641,1.96552*1.96552,1.82335*1.82335,1.69146*1.69146,2.4621061921,2.1508568964,1.37074*1.37074,1.31036*1.31036,1.5691069696,1.4555939904,1.16203*1.16203,1.2715945225,1.09428*1.09428,1.0659*1.0659,1.0779838276,1.0382591025,1],H=[1.7782755904,1.35879*1.35879,1.38454*1.38454,1.39497*1.39497,1.40548*1.40548,1.3537*1.3537,1.6999465924,1.22321*1.22321,1.3169398564,1],F=[5.5396212496,2.29259*2.29259,4.9868695969,2.12675*2.12675,2.02545*2.02545,1.87894*1.87894,1.74303*1.74303,1.61695*1.61695,2.2499700001,1.39148*1.39148,1.29083*1.29083,1.19746*1.19746,1.2339655056,1.0779838276];function D(e,t,n,r,o,a){var i;if(t>e){if(!(t<e*O))return e+t;i=t/e}else{if(e>=t*O)return e+t;i=e/t}if(d(e>=0),d(t>=0),e+=t,r+3<=6){if(i>=T)return e;var c=0|s.FAST_LOG10_X(i,16);return e*H[c]}var l,u;c=0|s.FAST_LOG10_X(i,16);return t=0!=a?o.ATH.cb_s[n]*o.ATH.adjust:o.ATH.cb_l[n]*o.ATH.adjust,d(t>=0),e<L*t?e>t?(l=1,c<=13&&(l=F[c]),u=s.FAST_LOG10_X(e/t,10/15),e*((N[c]-l)*u+l)):c>13?e:e*F[c]:e*N[c]}var U=[1.7782755904,1.35879*1.35879,1.38454*1.38454,1.39497*1.39497,1.40548*1.40548,1.3537*1.3537,1.6999465924,1.22321*1.22321,1.3169398564,1];function V(e,t,n){var r;if(e<0&&(e=0),t<0&&(t=0),e<=0)return t;if(t<=0)return e;if(r=t>e?t/e:e/t,-2<=n&&n<=2){if(r>=T)return e+t;var o=0|s.FAST_LOG10_X(r,16);return(e+t)*U[o]}return r<O?e+t:(e<t&&(e=t),e)}function q(e,t){var n=e.internal_flags;if(n.channels_out>1){for(var r=0;r<p.SBMAX_l;r++){var o=n.thm[0].l[r],a=n.thm[1].l[r];n.thm[0].l[r]+=a*t,n.thm[1].l[r]+=o*t}for(r=0;r<p.SBMAX_s;r++)for(var i=0;i<3;i++){o=n.thm[0].s[r][i],a=n.thm[1].s[r][i];n.thm[0].s[r][i]+=a*t,n.thm[1].s[r][i]+=o*t}}}function $(e){for(var t=0;t<p.SBMAX_l;t++)if(!(e.thm[0].l[t]>1.58*e.thm[1].l[t]||e.thm[1].l[t]>1.58*e.thm[0].l[t])){var n=e.mld_l[t]*e.en[3].l[t],r=Math.max(e.thm[2].l[t],Math.min(e.thm[3].l[t],n));n=e.mld_l[t]*e.en[2].l[t];var o=Math.max(e.thm[3].l[t],Math.min(e.thm[2].l[t],n));e.thm[2].l[t]=r,e.thm[3].l[t]=o}for(t=0;t<p.SBMAX_s;t++)for(var a=0;a<3;a++)if(!(e.thm[0].s[t][a]>1.58*e.thm[1].s[t][a]||e.thm[1].s[t][a]>1.58*e.thm[0].s[t][a])){n=e.mld_s[t]*e.en[3].s[t][a],r=Math.max(e.thm[2].s[t][a],Math.min(e.thm[3].s[t][a],n));n=e.mld_s[t]*e.en[2].s[t][a];o=Math.max(e.thm[3].s[t][a],Math.min(e.thm[2].s[t][a],n));e.thm[2].s[t][a]=r,e.thm[3].s[t][a]=o}}function z(e,t,n){var r=t,o=Math.pow(10,n);t*=2,r*=2;for(var a=0;a<p.SBMAX_l;a++){if(f=e.ATH.cb_l[e.bm_l[a]]*o,c=Math.min(Math.max(e.thm[0].l[a],f),Math.max(e.thm[1].l[a],f)),l=Math.max(e.thm[2].l[a],f),u=Math.max(e.thm[3].l[a],f),c*t<l+u){var i=c*r/(l+u);l*=i,u*=i,d(l+u>0)}e.thm[2].l[a]=Math.min(l,e.thm[2].l[a]),e.thm[3].l[a]=Math.min(u,e.thm[3].l[a])}o*=p.BLKSIZE_s/p.BLKSIZE;for(a=0;a<p.SBMAX_s;a++)for(var s=0;s<3;s++){var c,l,u,f;if(f=e.ATH.cb_s[e.bm_s[a]]*o,c=Math.min(Math.max(e.thm[0].s[a][s],f),Math.max(e.thm[1].s[a][s],f)),l=Math.max(e.thm[2].s[a][s],f),u=Math.max(e.thm[3].s[a][s],f),c*t<l+u){i=c*t/(l+u);l*=i,u*=i,d(l+u>0)}e.thm[2].s[a][s]=Math.min(e.thm[2].s[a][s],l),e.thm[3].s[a][s]=Math.min(e.thm[3].s[a][s],u)}}function Y(e,t,n,r,o){var a,i,s=0,c=0;for(a=i=0;a<p.SBMAX_s;++i,++a){var l=e.bo_s[a],u=e.npart_s,f=l<u?l:u;while(i<f)d(t[i]>=0),d(n[i]>=0),s+=t[i],c+=n[i],i++;if(e.en[r].s[a][o]=s,e.thm[r].s[a][o]=c,i>=u){++a;break}d(t[i]>=0),d(n[i]>=0);var h=e.PSY.bo_s_weight[a],m=1-h;s=h*t[i],c=h*n[i],e.en[r].s[a][o]+=s,e.thm[r].s[a][o]+=c,s=m*t[i],c=m*n[i]}for(;a<p.SBMAX_s;++a)e.en[r].s[a][o]=0,e.thm[r].s[a][o]=0}function X(e,t,n,r){var o,a,i=0,s=0;for(o=a=0;o<p.SBMAX_l;++a,++o){var c=e.bo_l[o],l=e.npart_l,u=c<l?c:l;while(a<u)d(t[a]>=0),d(n[a]>=0),i+=t[a],s+=n[a],a++;if(e.en[r].l[o]=i,e.thm[r].l[o]=s,a>=l){++o;break}d(t[a]>=0),d(n[a]>=0);var f=e.PSY.bo_l_weight[o],h=1-f;i=f*t[a],s=f*n[a],e.en[r].l[o]+=i,e.thm[r].l[o]+=s,i=h*t[a],s=h*n[a]}for(;o<p.SBMAX_l;++o)e.en[r].l[o]=0,e.thm[r].l[o]=0}function G(e,t,n,r,o,a){var i,s,c=e.internal_flags;for(s=i=0;s<c.npart_s;++s){for(var l=0,u=0,f=c.numlines_s[s],h=0;h<f;++h,++i){var g=t[a][i];l+=g,u<g&&(u=g)}n[s]=l}for(d(s==c.npart_s),d(129==i),i=s=0;s<c.npart_s;s++){var b=c.s3ind_s[s][0],v=c.s3_ss[i++]*n[b];++b;while(b<=c.s3ind_s[s][1])v+=c.s3_ss[i]*n[b],++i,++b;var y=m*c.nb_s1[o][s];if(r[s]=Math.min(v,y),c.blocktype_old[1&o]==p.SHORT_TYPE){y=_*c.nb_s2[o][s];var w=r[s];r[s]=Math.min(y,w)}c.nb_s2[o][s]=c.nb_s1[o][s],c.nb_s1[o][s]=v,d(r[s]>=0)}for(;s<=p.CBANDS;++s)n[s]=0,r[s]=0}function K(e,t,n,r){var o=e.internal_flags;e.short_blocks!=i.short_block_coupled||0!=t[0]&&0!=t[1]||(t[0]=t[1]=0);for(var a=0;a<o.channels_out;a++)r[a]=p.NORM_TYPE,e.short_blocks==i.short_block_dispensed&&(t[a]=1),e.short_blocks==i.short_block_forced&&(t[a]=0),0!=t[a]?(d(o.blocktype_old[a]!=p.START_TYPE),o.blocktype_old[a]==p.SHORT_TYPE&&(r[a]=p.STOP_TYPE)):(r[a]=p.SHORT_TYPE,o.blocktype_old[a]==p.NORM_TYPE&&(o.blocktype_old[a]=p.START_TYPE),o.blocktype_old[a]==p.STOP_TYPE&&(o.blocktype_old[a]=p.SHORT_TYPE)),n[a]=o.blocktype_old[a],o.blocktype_old[a]=r[a]}function W(e,t,n){return n>=1?e:n<=0?t:t>0?Math.pow(e/t,n)*t:0}var Z=[11.8,13.6,17.2,32,46.5,51.3,57.5,67.1,71.5,84.6,97.6,130];function Q(e,n){for(var r=309.07,o=0;o<p.SBMAX_s-1;o++)for(var a=0;a<3;a++){var i=e.thm.s[o][a];if(d(o<Z.length),i>0){var c=i*n,l=e.en.s[o][a];l>c&&(l>1e10*c?r+=Z[o]*(10*t):(d(c>0),r+=Z[o]*s.FAST_LOG10(l/c)))}}return r}var J=[6.8,5.8,5.8,6.4,6.5,9.9,12.1,14.4,15,18.9,21.6,26.9,34.2,40.2,46.8,56.5,60.7,73.9,85.7,93.4,126.1];function ee(e,n){for(var r=281.0575,o=0;o<p.SBMAX_l-1;o++){var a=e.thm.l[o];if(d(o<J.length),a>0){var i=a*n,c=e.en.l[o];c>i&&(c>1e10*i?r+=J[o]*(10*t):(d(i>0),r+=J[o]*s.FAST_LOG10(c/i)))}}return r}function te(e,t,n,r,o){var a,i;for(a=i=0;a<e.npart_l;++a){var s,c=0,l=0;for(s=0;s<e.numlines_l[a];++s,++i){var u=t[i];d(u>=0),c+=u,l<u&&(l=u)}n[a]=c,r[a]=l,o[a]=c*e.rnumlines_l[a],d(e.rnumlines_l[a]>=0),d(c>=0),d(n[a]>=0),d(r[a]>=0),d(o[a]>=0)}}function ne(e,t,n,r){var o=P.length-1,a=0,i=n[a]+n[a+1];if(d(i>=0),i>0){var s=t[a];s<t[a+1]&&(s=t[a+1]),d(e.numlines_l[a]+e.numlines_l[a+1]-1>0),i=20*(2*s-i)/(i*(e.numlines_l[a]+e.numlines_l[a+1]-1));var c=0|i;c>o&&(c=o),r[a]=c}else r[a]=0;for(a=1;a<e.npart_l-1;a++)if(i=n[a-1]+n[a]+n[a+1],d(i>=0),i>0){s=t[a-1];s<t[a]&&(s=t[a]),s<t[a+1]&&(s=t[a+1]),d(e.numlines_l[a-1]+e.numlines_l[a]+e.numlines_l[a+1]-1>0),i=20*(3*s-i)/(i*(e.numlines_l[a-1]+e.numlines_l[a]+e.numlines_l[a+1]-1));c=0|i;c>o&&(c=o),r[a]=c}else r[a]=0;if(d(a>0),d(a==e.npart_l-1),i=n[a-1]+n[a],d(i>=0),i>0){s=t[a-1];s<t[a]&&(s=t[a]),d(e.numlines_l[a-1]+e.numlines_l[a]-1>0),i=20*(2*s-i)/(i*(e.numlines_l[a-1]+e.numlines_l[a]-1));c=0|i;c>o&&(c=o),r[a]=c}else r[a]=0;d(a==e.npart_l-1)}var re=[-1730326e-23,-.01703172,-1349528e-23,.0418072,-673278e-22,-.0876324,-30835e-21,.1863476,-1104424e-22,-.627638];function oe(t,n,r,o,a,i,c,l){var u=t.internal_flags;if(o<2)e.fft_long(u,c[l],o,n,r);else if(2==o)for(var f=p.BLKSIZE-1;f>=0;--f){var d=c[l+0][f],h=c[l+1][f];c[l+0][f]=(d+h)*s.SQRT2*.5,c[l+1][f]=(d-h)*s.SQRT2*.5}i[0]=M(c[l+0][0]),i[0]*=i[0];for(f=p.BLKSIZE/2-1;f>=0;--f){var m=c[l+0][p.BLKSIZE/2-f],_=c[l+0][p.BLKSIZE/2+f];i[p.BLKSIZE/2-f]=M(.5*(m*m+_*_))}var g=0;for(f=11;f<p.HBLKSIZE;f++)g+=i[f];if(u.tot_ener[o]=g,t.analysis){for(f=0;f<p.HBLKSIZE;f++)u.pinfo.energy[a][o][f]=u.pinfo.energy_save[o][f],u.pinfo.energy_save[o][f]=i[f];u.pinfo.pe[a][o]=u.pe[o]}}function ae(t,n,r,o,a,i,c,l){var u=t.internal_flags;if(0==a&&o<2&&e.fft_short(u,c[l],o,n,r),2==o)for(var f=p.BLKSIZE_s-1;f>=0;--f){var d=c[l+0][a][f],h=c[l+1][a][f];c[l+0][a][f]=(d+h)*s.SQRT2*.5,c[l+1][a][f]=(d-h)*s.SQRT2*.5}i[a][0]=c[l+0][a][0],i[a][0]*=i[a][0];for(f=p.BLKSIZE_s/2-1;f>=0;--f){var m=c[l+0][a][p.BLKSIZE_s/2-f],_=c[l+0][a][p.BLKSIZE_s/2+f];i[a][p.BLKSIZE_s/2-f]=M(.5*(m*m+_*_))}}function ie(e,t,n,r){var o=e.internal_flags;2==e.athaa_loudapprox&&n<2&&(o.loudness_sq[t][n]=o.loudness_sq_save[n],o.loudness_sq_save[n]=R(r,o))}this.L3psycho_anal_ns=function(e,t,a,i,s,h,m,_,g,b){var v,k,A,M,R,T,O,L,B,I,C=e.internal_flags,j=u([2,p.BLKSIZE]),N=u([2,3,p.BLKSIZE_s]),H=l(p.CBANDS+1),F=l(p.CBANDS+1),U=l(p.CBANDS+2),V=f(2),Z=f(2),J=u([2,576]),oe=f(p.CBANDS+2),ae=f(p.CBANDS+2);for(c.fill(ae,0),v=C.channels_out,e.mode==MPEGMode.JOINT_STEREO&&(v=4),B=e.VBR==o.vbr_off?0==C.ResvMax?0:C.ResvSize/C.ResvMax*.5:e.VBR==o.vbr_rh||e.VBR==o.vbr_mtrh||e.VBR==o.vbr_mt?.6:1,k=0;k<C.channels_out;k++){var ie=t[k],se=a+576-350-S+192;for(d(re.length==(S-1)/2),M=0;M<576;M++){var ce,le;for(ce=ie[se+M+10],le=0,R=0;R<(S-1)/2-1;R+=2)ce+=re[R]*(ie[se+M+R]+ie[se+M+S-R]),le+=re[R+1]*(ie[se+M+R+1]+ie[se+M+S-R-1]);J[k][M]=ce+le}s[i][k].en.assign(C.en[k]),s[i][k].thm.assign(C.thm[k]),v>2&&(h[i][k].en.assign(C.en[k+2]),h[i][k].thm.assign(C.thm[k+2]))}for(k=0;k<v;k++){var ue,fe,de,he=l(12),pe=[0,0,0,0],me=l(12),_e=1,ge=l(p.CBANDS),be=l(p.CBANDS),ve=[0,0,0,0],ye=l(p.HBLKSIZE),we=u([3,p.HBLKSIZE_s]);for(d(C.npart_s<=p.CBANDS),d(C.npart_l<=p.CBANDS),M=0;M<3;M++)he[M]=C.nsPsy.last_en_subshort[k][M+6],d(C.nsPsy.last_en_subshort[k][M+4]>0),me[M]=he[M]/C.nsPsy.last_en_subshort[k][M+4],pe[0]+=he[M];if(2==k)for(M=0;M<576;M++){var xe,ke;xe=J[0][M],ke=J[1][M],J[0][M]=xe+ke,J[1][M]=xe-ke}var Se=J[1&k],Ae=0;for(M=0;M<9;M++){for(var Me=Ae+64,Re=1;Ae<Me;Ae++)Re<Math.abs(Se[Ae])&&(Re=Math.abs(Se[Ae]));C.nsPsy.last_en_subshort[k][M]=he[M+3]=Re,pe[1+M/3]+=Re,Re>he[M+3-2]?(d(he[M+3-2]>0),Re/=he[M+3-2]):he[M+3-2]>10*Re?(d(Re>0),Re=he[M+3-2]/(10*Re)):Re=0,me[M+3]=Re}if(e.analysis){var Ee=me[0];for(M=1;M<12;M++)Ee<me[M]&&(Ee=me[M]);C.pinfo.ers[i][k]=C.pinfo.ers_save[k],C.pinfo.ers_save[k]=Ee}for(de=3==k?C.nsPsy.attackthre_s:C.nsPsy.attackthre,M=0;M<12;M++)0==ve[M/3]&&me[M]>de&&(ve[M/3]=M%3+1);for(M=1;M<4;M++){var Te;pe[M-1]>pe[M]?(d(pe[M]>0),Te=pe[M-1]/pe[M]):(d(pe[M-1]>0),Te=pe[M]/pe[M-1]),Te<1.7&&(ve[M]=0,1==M&&(ve[0]=0))}for(0!=ve[0]&&0!=C.nsPsy.lastAttacks[k]&&(ve[0]=0),3!=C.nsPsy.lastAttacks[k]&&ve[0]+ve[1]+ve[2]+ve[3]==0||(_e=0,0!=ve[1]&&0!=ve[0]&&(ve[1]=0),0!=ve[2]&&0!=ve[1]&&(ve[2]=0),0!=ve[3]&&0!=ve[2]&&(ve[3]=0)),k<2?Z[k]=_e:0==_e&&(Z[0]=Z[1]=0),g[k]=C.tot_ener[k],fe=N,ue=j,E(e,ye,we,ue,1&k,fe,1&k,i,k,t,a),te(C,ye,H,ge,be),ne(C,ge,be,oe),L=0;L<3;L++){var Oe,Le;for(G(e,we,F,U,k,L),Y(C,F,U,k,L),O=0;O<p.SBMAX_s;O++){if(Le=C.thm[k].s[O][L],Le*=y,ve[L]>=2||1==ve[L+1]){var Be=0!=L?L-1:2;Re=W(C.thm[k].s[O][Be],Le,w*B);Le=Math.min(Le,Re)}if(1==ve[L]){Be=0!=L?L-1:2,Re=W(C.thm[k].s[O][Be],Le,x*B);Le=Math.min(Le,Re)}else if(0!=L&&3==ve[L-1]||0==L&&3==C.nsPsy.lastAttacks[k]){Be=2!=L?L+1:0,Re=W(C.thm[k].s[O][Be],Le,x*B);Le=Math.min(Le,Re)}Oe=he[3*L+3]+he[3*L+4]+he[3*L+5],6*he[3*L+5]<Oe&&(Le*=.5,6*he[3*L+4]<Oe&&(Le*=.5)),C.thm[k].s[O][L]=Le}}for(C.nsPsy.lastAttacks[k]=ve[2],T=0,A=0;A<C.npart_l;A++){var Ie=C.s3ind[A][0],Ce=H[Ie]*P[oe[Ie]],Pe=C.s3_ll[T++]*Ce;while(++Ie<=C.s3ind[A][1])Ce=H[Ie]*P[oe[Ie]],Pe=D(Pe,C.s3_ll[T++]*Ce,Ie,Ie-A,C,0);Pe*=.158489319246111,C.blocktype_old[1&k]==p.SHORT_TYPE?U[A]=Pe:U[A]=W(Math.min(Pe,Math.min(n*C.nb_1[k][A],r*C.nb_2[k][A])),Pe,B),C.nb_2[k][A]=C.nb_1[k][A],C.nb_1[k][A]=Pe}for(;A<=p.CBANDS;++A)H[A]=0,U[A]=0;X(C,H,U,k)}(e.mode!=MPEGMode.STEREO&&e.mode!=MPEGMode.JOINT_STEREO||e.interChRatio>0&&q(e,e.interChRatio),e.mode==MPEGMode.JOINT_STEREO)&&($(C),I=e.msfix,Math.abs(I)>0&&z(C,I,e.ATHlower*C.ATH.adjust));for(K(e,Z,b,V),k=0;k<v;k++){var je,Ne,He,Fe=0;k>1?(je=_,Fe=-2,Ne=p.NORM_TYPE,b[0]!=p.SHORT_TYPE&&b[1]!=p.SHORT_TYPE||(Ne=p.SHORT_TYPE),He=h[i][k-2]):(je=m,Fe=0,Ne=b[k],He=s[i][k]),Ne==p.SHORT_TYPE?je[Fe+k]=Q(He,C.masking_lower):je[Fe+k]=ee(He,C.masking_lower),e.analysis&&(C.pinfo.pe[i][k]=je[Fe+k])}return 0};var se=[-1730326e-23,-.01703172,-1349528e-23,.0418072,-673278e-22,-.0876324,-30835e-21,.1863476,-1104424e-22,-.627638];function ce(e,t,n,r,o,a,i,s,c,f){for(var h=u([2,576]),p=e.internal_flags,m=p.channels_out,_=e.mode==MPEGMode.JOINT_STEREO?4:m,g=0;g<m;g++){firbuf=t[g];var b=n+576-350-S+192;d(se.length==(S-1)/2);for(var v=0;v<576;v++){var y,w;y=firbuf[b+v+10],w=0;for(var x=0;x<(S-1)/2-1;x+=2)y+=se[x]*(firbuf[b+v+x]+firbuf[b+v+S-x]),w+=se[x+1]*(firbuf[b+v+x+1]+firbuf[b+v+S-x-1]);h[g][v]=y+w}o[r][g].en.assign(p.en[g]),o[r][g].thm.assign(p.thm[g]),_>2&&(a[r][g].en.assign(p.en[g+2]),a[r][g].thm.assign(p.thm[g+2]))}for(g=0;g<_;g++){var k=l(12),A=l(12),M=[0,0,0,0],R=h[1&g],E=0,T=3==g?p.nsPsy.attackthre_s:p.nsPsy.attackthre,O=1;if(2==g)for(v=0,x=576;x>0;++v,--x){var L=h[0][v],B=h[1][v];h[0][v]=L+B,h[1][v]=L-B}for(v=0;v<3;v++)A[v]=p.nsPsy.last_en_subshort[g][v+6],d(p.nsPsy.last_en_subshort[g][v+4]>0),k[v]=A[v]/p.nsPsy.last_en_subshort[g][v+4],M[0]+=A[v];for(v=0;v<9;v++){for(var I=E+64,C=1;E<I;E++)C<Math.abs(R[E])&&(C=Math.abs(R[E]));p.nsPsy.last_en_subshort[g][v]=A[v+3]=C,M[1+v/3]+=C,C>A[v+3-2]?(d(A[v+3-2]>0),C/=A[v+3-2]):A[v+3-2]>10*C?(d(C>0),C=A[v+3-2]/(10*C)):C=0,k[v+3]=C}for(v=0;v<3;++v){var P=A[3*v+3]+A[3*v+4]+A[3*v+5],j=1;6*A[3*v+5]<P&&(j*=.5,6*A[3*v+4]<P&&(j*=.5)),s[g][v]=j}if(e.analysis){var N=k[0];for(v=1;v<12;v++)N<k[v]&&(N=k[v]);p.pinfo.ers[r][g]=p.pinfo.ers_save[g],p.pinfo.ers_save[g]=N}for(v=0;v<12;v++)0==c[g][v/3]&&k[v]>T&&(c[g][v/3]=v%3+1);for(v=1;v<4;v++){var H=M[v-1],F=M[v],D=Math.max(H,F);D<4e4&&H<1.7*F&&F<1.7*H&&(1==v&&c[g][0]<=c[g][v]&&(c[g][0]=0),c[g][v]=0)}c[g][0]<=p.nsPsy.lastAttacks[g]&&(c[g][0]=0),3!=p.nsPsy.lastAttacks[g]&&c[g][0]+c[g][1]+c[g][2]+c[g][3]==0||(O=0,0!=c[g][1]&&0!=c[g][0]&&(c[g][1]=0),0!=c[g][2]&&0!=c[g][1]&&(c[g][2]=0),0!=c[g][3]&&0!=c[g][2]&&(c[g][3]=0)),g<2?f[g]=O:0==O&&(f[0]=f[1]=0),i[g]=p.tot_ener[g]}}function le(e,t,n){if(0==n)for(var r=0;r<e.npart_s;r++)e.nb_s2[t][r]=e.nb_s1[t][r],e.nb_s1[t][r]=0}function ue(e,t){for(var n=0;n<e.npart_l;n++)e.nb_2[t][n]=e.nb_1[t][n],e.nb_1[t][n]=0}function fe(e,t,n,r){var o=P.length-1,a=0,i=n[a]+n[a+1];if(d(i>=0),i>0){var s=t[a];s<t[a+1]&&(s=t[a+1]),d(e.numlines_s[a]+e.numlines_s[a+1]-1>0),i=20*(2*s-i)/(i*(e.numlines_s[a]+e.numlines_s[a+1]-1));var c=0|i;c>o&&(c=o),r[a]=c}else r[a]=0;for(a=1;a<e.npart_s-1;a++)if(i=n[a-1]+n[a]+n[a+1],d(a+1<e.npart_s),d(i>=0),i>0){s=t[a-1];s<t[a]&&(s=t[a]),s<t[a+1]&&(s=t[a+1]),d(e.numlines_s[a-1]+e.numlines_s[a]+e.numlines_s[a+1]-1>0),i=20*(3*s-i)/(i*(e.numlines_s[a-1]+e.numlines_s[a]+e.numlines_s[a+1]-1));c=0|i;c>o&&(c=o),r[a]=c}else r[a]=0;if(d(a>0),d(a==e.npart_s-1),i=n[a-1]+n[a],d(i>=0),i>0){s=t[a-1];s<t[a]&&(s=t[a]),d(e.numlines_s[a-1]+e.numlines_s[a]-1>0),i=20*(2*s-i)/(i*(e.numlines_s[a-1]+e.numlines_s[a]-1));c=0|i;c>o&&(c=o),r[a]=c}else r[a]=0;d(a==e.npart_s-1)}function de(e,t,n,r,o,a){var i,s,c,u=e.internal_flags,f=new float[p.CBANDS],h=l(p.CBANDS),m=new int[p.CBANDS];for(c=s=0;c<u.npart_s;++c){var _=0,g=0,b=u.numlines_s[c];for(i=0;i<b;++i,++s){var v=t[a][s];_+=v,g<v&&(g=v)}n[c]=_,d(_>=0),f[c]=g,d(b>0),h[c]=_/b,d(h[c]>=0)}for(d(c==u.npart_s),d(129==s);c<p.CBANDS;++c)f[c]=0,h[c]=0;for(fe(u,f,h,m),s=c=0;c<u.npart_s;c++){var y,w,x,k,S,A=u.s3ind_s[c][0],M=u.s3ind_s[c][1];y=m[A],w=1,k=u.s3_ss[s]*n[A]*P[m[A]],++s,++A;while(A<=M)y+=m[A],w+=1,x=u.s3_ss[s]*n[A]*P[m[A]],k=V(k,x,A-c),++s,++A;y=(1+2*y)/(2*w),S=.5*P[y],k*=S,r[c]=k,u.nb_s2[o][c]=u.nb_s1[o][c],u.nb_s1[o][c]=k,x=f[c],x*=u.minval_s[c],x*=S,r[c]>x&&(r[c]=x),u.masking_lower>1&&(r[c]*=u.masking_lower),r[c]>n[c]&&(r[c]=n[c]),u.masking_lower<1&&(r[c]*=u.masking_lower),d(r[c]>=0)}for(;c<p.CBANDS;++c)n[c]=0,r[c]=0}function he(e,t,o,a,i){var s,c=l(p.CBANDS),u=l(p.CBANDS),h=f(p.CBANDS+2);te(e,t,o,c,u),ne(e,c,u,h);var m=0;for(s=0;s<e.npart_l;s++){var _,g,b,v,y=e.s3ind[s][0],w=e.s3ind[s][1],k=0,S=0;k=h[y],S+=1,g=e.s3_ll[m]*o[y]*P[h[y]],++m,++y;while(y<=w)k+=h[y],S+=1,_=e.s3_ll[m]*o[y]*P[h[y]],v=V(g,_,y-s),g=v,++m,++y;if(k=(1+2*k)/(2*S),b=.5*P[k],g*=b,e.blocktype_old[1&i]==p.SHORT_TYPE){var A=n*e.nb_1[i][s];a[s]=A>0?Math.min(g,A):Math.min(g,o[s]*x)}else{var M=r*e.nb_2[i][s],R=n*e.nb_1[i][s];M<=0&&(M=g),R<=0&&(R=g),A=e.blocktype_old[1&i]==p.NORM_TYPE?Math.min(R,M):R,a[s]=Math.min(g,A)}e.nb_2[i][s]=e.nb_1[i][s],e.nb_1[i][s]=g,_=c[s],_*=e.minval_l[s],_*=b,a[s]>_&&(a[s]=_),e.masking_lower>1&&(a[s]*=e.masking_lower),a[s]>o[s]&&(a[s]=o[s]),e.masking_lower<1&&(a[s]*=e.masking_lower),d(a[s]>=0)}for(;s<p.CBANDS;++s)o[s]=0,a[s]=0}function pe(e,t){var n=e.internal_flags;e.short_blocks!=i.short_block_coupled||0!=t[0]&&0!=t[1]||(t[0]=t[1]=0);for(var r=0;r<n.channels_out;r++)e.short_blocks==i.short_block_dispensed&&(t[r]=1),e.short_blocks==i.short_block_forced&&(t[r]=0)}function me(e,t,n){for(var r=e.internal_flags,o=0;o<r.channels_out;o++){var a=p.NORM_TYPE;0!=t[o]?(d(r.blocktype_old[o]!=p.START_TYPE),r.blocktype_old[o]==p.SHORT_TYPE&&(a=p.STOP_TYPE)):(a=p.SHORT_TYPE,r.blocktype_old[o]==p.NORM_TYPE&&(r.blocktype_old[o]=p.START_TYPE),r.blocktype_old[o]==p.STOP_TYPE&&(r.blocktype_old[o]=p.SHORT_TYPE)),n[o]=r.blocktype_old[o],r.blocktype_old[o]=a}}function _e(e,t,n,r,o,a,i){for(var s,c,l=2*a,u=a>0?Math.pow(10,o):1,f=0;f<i;++f){var h=e[2][f],p=e[3][f],m=t[0][f],_=t[1][f],g=t[2][f],b=t[3][f];if(m<=1.58*_&&_<=1.58*m){var v=n[f]*p,y=n[f]*h;c=Math.max(g,Math.min(b,v)),s=Math.max(b,Math.min(g,y))}else c=g,s=b;if(a>0){var w,x,k=r[f]*u;if(w=Math.min(Math.max(m,k),Math.max(_,k)),g=Math.max(c,k),b=Math.max(s,k),x=g+b,x>0&&w*l<x){var S=w*l/x;g*=S,b*=S,d(x>0)}c=Math.min(g,c),s=Math.min(b,s)}c>h&&(c=h),s>p&&(s=p),t[2][f]=c,t[3][f]=s}}function ge(e,t){var n,r=e;return n=r>=0?27*-r:r*t,n<=-72?0:Math.exp(n*A)}function be(e){var t=0,n=0,r=0;for(r=0;ge(r,e)>1e-20;r-=1);o=r,a=0;while(Math.abs(a-o)>1e-12)r=(a+o)/2,ge(r,e)>0?a=r:o=r;t=o;var o,a;r=0;for(r=0;ge(r,e)>1e-20;r+=1);o=0,a=r;while(Math.abs(a-o)>1e-12)r=(a+o)/2,ge(r,e)>0?o=r:a=r;n=a;var i,s=0,c=1e3;for(i=0;i<=c;++i){r=t+i*(n-t)/c;var l=ge(r,e);s+=l}var u=(c+1)/(s*(n-t));return u}function ve(e){var t,n,r,o;return t=e,t*=t>=0?3:1.5,t>=.5&&t<=2.5?(o=t-.5,n=8*(o*o-2*o)):n=0,t+=.474,r=15.811389+7.5*t-17.5*Math.sqrt(1+t*t),r<=-60?0:(t=Math.exp((n+r)*A),t/=.6609193,t)}function ye(e){return e<0&&(e=0),e*=.001,13*Math.atan(.76*e)+3.5*Math.atan(e*e/56.25)}function we(e,t,n,r,o,a,i,s,c,u,h,m){var _,b=l(p.CBANDS+1),v=s/(m>15?1152:384),y=f(p.HBLKSIZE);s/=c;var w=0,x=0;for(_=0;_<p.CBANDS;_++){var k;for(B=ye(s*w),b[_]=s*w,k=w;ye(s*k)-B<g&&k<=c/2;k++);e[_]=k-w,x=_+1;while(w<k)d(w<p.HBLKSIZE),y[w++]=_;if(w>c/2){w=c/2,++_;break}}d(_<p.CBANDS),b[_]=s*w;for(var S=0;S<m;S++){var A,M,R,E,T;R=u[S],E=u[S+1],A=0|Math.floor(.5+h*(R-.5)),A<0&&(A=0),M=0|Math.floor(.5+h*(E-.5)),M>c/2&&(M=c/2),n[S]=(y[A]+y[M])/2,t[S]=y[M];var O=v*E;i[S]=(O-b[t[S]])/(b[t[S]+1]-b[t[S]]),i[S]<0?i[S]=0:i[S]>1&&(i[S]=1),T=ye(s*u[S]*h),T=Math.min(T,15.5)/15.5,a[S]=Math.pow(10,1.25*(1-Math.cos(Math.PI*T))-2.5)}w=0;for(var L=0;L<x;L++){var B,I,C=e[L];B=ye(s*w),I=ye(s*(w+C-1)),r[L]=.5*(B+I),B=ye(s*(w-.5)),I=ye(s*(w+C-.5)),o[L]=I-B,w+=C}return x}function xe(e,t,n,r,o,a){var i,s=u([p.CBANDS,p.CBANDS]),c=0;if(a)for(var f=0;f<t;f++)for(i=0;i<t;i++){var d=ve(n[f]-n[i])*r[i];s[f][i]=d*o[f]}else for(i=0;i<t;i++){var h=15+Math.min(21/n[i],12),m=be(h);for(f=0;f<t;f++){d=m*ge(n[f]-n[i],h)*r[i];s[f][i]=d*o[f]}}for(f=0;f<t;f++){for(i=0;i<t;i++)if(s[f][i]>0)break;for(e[f][0]=i,i=t-1;i>0;i--)if(s[f][i]>0)break;e[f][1]=i,c+=e[f][1]-e[f][0]+1}var _=l(c),g=0;for(f=0;f<t;f++)for(i=e[f][0];i<=e[f][1];i++)_[g++]=s[f][i];return _}function ke(e){var t=ye(e);return t=Math.min(t,15.5)/15.5,Math.pow(10,1.25*(1-Math.cos(Math.PI*t))-2.5)}function Se(e,t){e<-.3&&(e=3410),e/=1e3,e=Math.max(.1,e);var n=3.64*Math.pow(e,-.8)-6.8*Math.exp(-.6*Math.pow(e-3.4,2))+6*Math.exp(-.15*Math.pow(e-8.7,2))+.001*(.6+.04*t)*Math.pow(e,4);return n}this.L3psycho_anal_vbr=function(e,t,n,r,o,a,i,s,c,d){var h,m,_=e.internal_flags,g=l(p.HBLKSIZE),b=u([3,p.HBLKSIZE_s]),v=u([2,p.BLKSIZE]),k=u([2,3,p.BLKSIZE_s]),S=u([4,p.CBANDS]),A=u([4,p.CBANDS]),M=u([4,3]),R=.6,E=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],T=f(2),O=e.mode==MPEGMode.JOINT_STEREO?4:_.channels_out;ce(e,t,n,r,o,a,c,M,E,T),pe(e,T);for(var L=0;L<O;L++){var B=1&L;h=v,oe(e,t,n,L,r,g,h,B),ie(e,r,L,g),0!=T[B]?he(_,g,S[L],A[L],L):ue(_,L)}T[0]+T[1]==2&&e.mode==MPEGMode.JOINT_STEREO&&_e(S,A,_.mld_cb_l,_.ATH.cb_l,e.ATHlower*_.ATH.adjust,e.msfix,_.npart_l);for(L=0;L<O;L++){B=1&L;0!=T[B]&&X(_,S[L],A[L],L)}for(var I=0;I<3;I++){for(L=0;L<O;++L){B=1&L;0!=T[B]?le(_,L,I):(m=k,ae(e,t,n,L,I,b,m,B),de(e,b,S[L],A[L],L,I))}T[0]+T[1]==0&&e.mode==MPEGMode.JOINT_STEREO&&_e(S,A,_.mld_cb_s,_.ATH.cb_s,e.ATHlower*_.ATH.adjust,e.msfix,_.npart_s);for(L=0;L<O;++L){B=1&L;0==T[B]&&Y(_,S[L],A[L],L,I)}}for(L=0;L<O;L++){B=1&L;if(0==T[B])for(var C=0;C<p.SBMAX_s;C++){var P=l(3);for(I=0;I<3;I++){var j=_.thm[L].s[C][I];if(j*=y,E[L][I]>=2||1==E[L][I+1]){var N=0!=I?I-1:2,H=W(_.thm[L].s[C][N],j,w*R);j=Math.min(j,H)}else if(1==E[L][I]){N=0!=I?I-1:2,H=W(_.thm[L].s[C][N],j,x*R);j=Math.min(j,H)}else if(0!=I&&3==E[L][I-1]||0==I&&3==_.nsPsy.lastAttacks[L]){N=2!=I?I+1:0,H=W(_.thm[L].s[C][N],j,x*R);j=Math.min(j,H)}j*=M[L][I],P[I]=j}for(I=0;I<3;I++)_.thm[L].s[C][I]=P[I]}}for(L=0;L<O;L++)_.nsPsy.lastAttacks[L]=E[L][2];me(e,T,d);for(L=0;L<O;L++){var F,D,U,V;L>1?(F=s,D=-2,U=p.NORM_TYPE,d[0]!=p.SHORT_TYPE&&d[1]!=p.SHORT_TYPE||(U=p.SHORT_TYPE),V=a[r][L-2]):(F=i,D=0,U=d[L],V=o[r][L]),U==p.SHORT_TYPE?F[D+L]=Q(V,_.masking_lower):F[D+L]=ee(V,_.masking_lower),e.analysis&&(_.pinfo.pe[r][L]=F[D+L])}return 0},this.psymodel_init=function(n){var r,i=n.internal_flags,s=!0,c=13,u=24,f=0,h=0,m=-8.25,_=-4.5,g=l(p.CBANDS),b=l(p.CBANDS),y=l(p.CBANDS),w=n.out_samplerate;switch(n.experimentalZ){default:case 0:s=!0;break;case 1:s=n.VBR!=o.vbr_mtrh&&n.VBR!=o.vbr_mt;break;case 2:s=!1;break;case 3:c=8,f=-1.75,h=-.0125,m=-8.25,_=-2.25;break}for(i.ms_ener_ratio_old=.25,i.blocktype_old[0]=i.blocktype_old[1]=p.NORM_TYPE,r=0;r<4;++r){for(var x=0;x<p.CBANDS;++x)i.nb_1[r][x]=1e20,i.nb_2[r][x]=1e20,i.nb_s1[r][x]=i.nb_s2[r][x]=1;for(var S=0;S<p.SBMAX_l;S++)i.en[r].l[S]=1e20,i.thm[r].l[S]=1e20;for(x=0;x<3;++x){for(S=0;S<p.SBMAX_s;S++)i.en[r].s[S][x]=1e20,i.thm[r].s[S][x]=1e20;i.nsPsy.lastAttacks[r]=0}for(x=0;x<9;x++)i.nsPsy.last_en_subshort[r][x]=10}for(i.loudness_sq_save[0]=i.loudness_sq_save[1]=0,i.npart_l=we(i.numlines_l,i.bo_l,i.bm_l,g,b,i.mld_l,i.PSY.bo_l_weight,w,p.BLKSIZE,i.scalefac_band.l,p.BLKSIZE/1152,p.SBMAX_l),d(i.npart_l<p.CBANDS),r=0;r<i.npart_l;r++){var A=f;g[r]>=c&&(A=h*(g[r]-c)/(u-c)+f*(u-g[r])/(u-c)),y[r]=Math.pow(10,A/10),i.numlines_l[r]>0?i.rnumlines_l[r]=1/i.numlines_l[r]:i.rnumlines_l[r]=0}i.s3_ll=xe(i.s3ind,i.npart_l,g,b,y,s);var M;x=0;for(r=0;r<i.npart_l;r++){T=a.MAX_VALUE;for(var R=0;R<i.numlines_l[r];R++,x++){var E=w*x/(1e3*p.BLKSIZE);O=this.ATHformula(1e3*E,n)-20,O=Math.pow(10,.1*O),O*=i.numlines_l[r],T>O&&(T=O)}i.ATH.cb_l[r]=T,T=20*g[r]/10-20,T>6&&(T=100),T<-15&&(T=-15),T-=8,i.minval_l[r]=Math.pow(10,T/10)*i.numlines_l[r]}for(i.npart_s=we(i.numlines_s,i.bo_s,i.bm_s,g,b,i.mld_s,i.PSY.bo_s_weight,w,p.BLKSIZE_s,i.scalefac_band.s,p.BLKSIZE_s/384,p.SBMAX_s),d(i.npart_s<p.CBANDS),x=0,r=0;r<i.npart_s;r++){var T;A=m;g[r]>=c&&(A=_*(g[r]-c)/(u-c)+m*(u-g[r])/(u-c)),y[r]=Math.pow(10,A/10),T=a.MAX_VALUE;for(R=0;R<i.numlines_s[r];R++,x++){var O;E=w*x/(1e3*p.BLKSIZE_s);O=this.ATHformula(1e3*E,n)-20,O=Math.pow(10,.1*O),O*=i.numlines_s[r],T>O&&(T=O)}i.ATH.cb_s[r]=T,T=7*g[r]/12-7,g[r]>12&&(T*=1+3.1*Math.log(1+T)),g[r]<12&&(T*=1+2.3*Math.log(1-T)),T<-15&&(T=-15),T-=8,i.minval_s[r]=Math.pow(10,T/10)*i.numlines_s[r]}i.s3_ss=xe(i.s3ind_s,i.npart_s,g,b,y,s),j(),e.init_fft(i),i.decay=Math.exp(-1*t/(v*w/192)),M=k,0!=(2&n.exp_nspsytune)&&(M=1),Math.abs(n.msfix)>0&&(M=n.msfix),n.msfix=M;for(var L=0;L<i.npart_l;L++)i.s3ind[L][1]>i.npart_l-1&&(i.s3ind[L][1]=i.npart_l-1);var B=576*i.mode_gr/w;if(i.ATH.decay=Math.pow(10,-1.2*B),i.ATH.adjust=.01,i.ATH.adjustLimit=1,d(i.bo_l[p.SBMAX_l-1]<=i.npart_l),d(i.bo_s[p.SBMAX_s-1]<=i.npart_s),-1!=n.ATHtype){var I=n.out_samplerate/p.BLKSIZE,C=0;for(E=0,r=0;r<p.BLKSIZE/2;++r)E+=I,i.ATH.eql_w[r]=1/Math.pow(10,this.ATHformula(E,n)/10),C+=i.ATH.eql_w[r];for(C=1/C,r=p.BLKSIZE/2;--r>=0;)i.ATH.eql_w[r]*=C}for(L=x=0;L<i.npart_s;++L)for(r=0;r<i.numlines_s[L];++r)++x;d(129==x);for(L=x=0;L<i.npart_l;++L)for(r=0;r<i.numlines_l[L];++r)++x;for(d(513==x),x=0,r=0;r<i.npart_l;r++){E=w*(x+i.numlines_l[r]/2)/(1*p.BLKSIZE);i.mld_cb_l[r]=ke(E),x+=i.numlines_l[r]}for(;r<p.CBANDS;++r)i.mld_cb_l[r]=1;for(x=0,r=0;r<i.npart_s;r++){E=w*(x+i.numlines_s[r]/2)/(1*p.BLKSIZE_s);i.mld_cb_s[r]=ke(E),x+=i.numlines_s[r]}for(;r<p.CBANDS;++r)i.mld_cb_s[r]=1;return 0},this.ATHformula=function(e,t){var n;switch(t.ATHtype){case 0:n=Se(e,9);break;case 1:n=Se(e,-1);break;case 2:n=Se(e,0);break;case 3:n=Se(e,1)+6;break;case 4:n=Se(e,t.ATHcurve);break;default:n=Se(e,0);break}return n}}e.exports=m},2532:function(e,t,n){"use strict";var r=n("23e7"),o=n("5a34"),a=n("1d80"),i=n("577e"),s=n("ab13");r({target:"String",proto:!0,forced:!s("includes")},{includes:function(e){return!!~i(a(this)).indexOf(i(o(e)),arguments.length>1?arguments[1]:void 0)}})},"254c":function(e,t,n){"use strict";function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Object.create(e.prototype);for(var o in n)r[o]=n[o];return r.constructor=t,t.prototype=r,t}t.__esModule=!0,t.inherits=r},"25a1":function(e,t,n){"use strict";var r=n("ebb5"),o=n("d58f").right,a=r.aTypedArray,i=r.exportTypedArrayMethod;i("reduceRight",(function(e){return o(a(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},"25f0":function(e,t,n){"use strict";var r=n("6eeb"),o=n("825a"),a=n("577e"),i=n("d039"),s=n("ad6d"),c="toString",l=RegExp.prototype,u=l[c],f=i((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),d=u.name!=c;(f||d)&&r(RegExp.prototype,c,(function(){var e=o(this),t=a(e.source),n=e.flags,r=a(void 0===n&&e instanceof RegExp&&!("flags"in l)?s.call(e):n);return"/"+t+"/"+r}),{unsafe:!0})},2626:function(e,t,n){"use strict";var r=n("d066"),o=n("9bf2"),a=n("b622"),i=n("83ab"),s=a("species");e.exports=function(e){var t=r(e),n=o.f;i&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},2695:function(e,t,n){var r=n("0206"),o=(r.System,r.VbrMode,r.Float,r.ShortBlock,r.Util,r.Arrays,r.new_array_n,r.new_byte,r.new_double,r.new_float,r.new_float_n,r.new_int),a=(r.new_int_n,r.assert,n("f3b5"));function i(){this.tt=[[null,null],[null,null]],this.main_data_begin=0,this.private_bits=0,this.resvDrain_pre=0,this.resvDrain_post=0,this.scfsi=[o(4),o(4)];for(var e=0;e<2;e++)for(var t=0;t<2;t++)this.tt[e][t]=new a}e.exports=i},"277d":function(e,t,n){var r=n("23e7"),o=n("e8b5");r({target:"Array",stat:!0},{isArray:o})},2954:function(e,t,n){"use strict";var r=n("ebb5"),o=n("b6b7"),a=n("d039"),i=r.aTypedArray,s=r.exportTypedArrayMethod,c=[].slice,l=a((function(){new Int8Array(1).slice()}));s("slice",(function(e,t){var n=c.call(i(this),e,t),r=o(this),a=0,s=n.length,l=new r(s);while(s>a)l[a]=n[a++];return l}),l)},"2a62":function(e,t,n){var r=n("825a");e.exports=function(e){var t=e["return"];if(void 0!==t)return r(t.call(e)).value}},"2b3d":function(e,t,n){"use strict";n("3ca3");var r,o=n("23e7"),a=n("83ab"),i=n("0d3b"),s=n("da84"),c=n("37e8"),l=n("6eeb"),u=n("19aa"),f=n("5135"),d=n("60da"),h=n("4df4"),p=n("6547").codeAt,m=n("5fb2"),_=n("577e"),g=n("d44e"),b=n("9861"),v=n("69f3"),y=s.URL,w=b.URLSearchParams,x=b.getState,k=v.set,S=v.getterFor("URL"),A=Math.floor,M=Math.pow,R="Invalid authority",E="Invalid scheme",T="Invalid host",O="Invalid port",L=/[A-Za-z]/,B=/[\d+-.A-Za-z]/,I=/\d/,C=/^0x/i,P=/^[0-7]+$/,j=/^\d+$/,N=/^[\dA-Fa-f]+$/,H=/[\0\t\n\r #%/:<>?@[\\\]^|]/,F=/[\0\t\n\r #/:<>?@[\\\]^|]/,D=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,U=/[\t\n\r]/g,V=function(e,t){var n,r,o;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return T;if(n=$(t.slice(1,-1)),!n)return T;e.host=n}else if(J(e)){if(t=m(t),H.test(t))return T;if(n=q(t),null===n)return T;e.host=n}else{if(F.test(t))return T;for(n="",r=h(t),o=0;o<r.length;o++)n+=Z(r[o],X);e.host=n}},q=function(e){var t,n,r,o,a,i,s,c=e.split(".");if(c.length&&""==c[c.length-1]&&c.pop(),t=c.length,t>4)return e;for(n=[],r=0;r<t;r++){if(o=c[r],""==o)return e;if(a=10,o.length>1&&"0"==o.charAt(0)&&(a=C.test(o)?16:8,o=o.slice(8==a?1:2)),""===o)i=0;else{if(!(10==a?j:8==a?P:N).test(o))return e;i=parseInt(o,a)}n.push(i)}for(r=0;r<t;r++)if(i=n[r],r==t-1){if(i>=M(256,5-t))return null}else if(i>255)return null;for(s=n.pop(),r=0;r<n.length;r++)s+=n[r]*M(256,3-r);return s},$=function(e){var t,n,r,o,a,i,s,c=[0,0,0,0,0,0,0,0],l=0,u=null,f=0,d=function(){return e.charAt(f)};if(":"==d()){if(":"!=e.charAt(1))return;f+=2,l++,u=l}while(d()){if(8==l)return;if(":"!=d()){t=n=0;while(n<4&&N.test(d()))t=16*t+parseInt(d(),16),f++,n++;if("."==d()){if(0==n)return;if(f-=n,l>6)return;r=0;while(d()){if(o=null,r>0){if(!("."==d()&&r<4))return;f++}if(!I.test(d()))return;while(I.test(d())){if(a=parseInt(d(),10),null===o)o=a;else{if(0==o)return;o=10*o+a}if(o>255)return;f++}c[l]=256*c[l]+o,r++,2!=r&&4!=r||l++}if(4!=r)return;break}if(":"==d()){if(f++,!d())return}else if(d())return;c[l++]=t}else{if(null!==u)return;f++,l++,u=l}}if(null!==u){i=l-u,l=7;while(0!=l&&i>0)s=c[l],c[l--]=c[u+i-1],c[u+--i]=s}else if(8!=l)return;return c},z=function(e){for(var t=null,n=1,r=null,o=0,a=0;a<8;a++)0!==e[a]?(o>n&&(t=r,n=o),r=null,o=0):(null===r&&(r=a),++o);return o>n&&(t=r,n=o),t},Y=function(e){var t,n,r,o;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=A(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=z(e),n=0;n<8;n++)o&&0===e[n]||(o&&(o=!1),r===n?(t+=n?":":"::",o=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},X={},G=d({},X,{" ":1,'"':1,"<":1,">":1,"`":1}),K=d({},G,{"#":1,"?":1,"{":1,"}":1}),W=d({},K,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Z=function(e,t){var n=p(e,0);return n>32&&n<127&&!f(t,e)?e:encodeURIComponent(e)},Q={ftp:21,file:null,http:80,https:443,ws:80,wss:443},J=function(e){return f(Q,e.scheme)},ee=function(e){return""!=e.username||""!=e.password},te=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},ne=function(e,t){var n;return 2==e.length&&L.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},re=function(e){var t;return e.length>1&&ne(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},oe=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&ne(t[0],!0)||t.pop()},ae=function(e){return"."===e||"%2e"===e.toLowerCase()},ie=function(e){return e=e.toLowerCase(),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},se={},ce={},le={},ue={},fe={},de={},he={},pe={},me={},_e={},ge={},be={},ve={},ye={},we={},xe={},ke={},Se={},Ae={},Me={},Re={},Ee=function(e,t,n,o){var a,i,s,c,l=n||se,u=0,d="",p=!1,m=!1,_=!1;n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(D,"")),t=t.replace(U,""),a=h(t);while(u<=a.length){switch(i=a[u],l){case se:if(!i||!L.test(i)){if(n)return E;l=le;continue}d+=i.toLowerCase(),l=ce;break;case ce:if(i&&(B.test(i)||"+"==i||"-"==i||"."==i))d+=i.toLowerCase();else{if(":"!=i){if(n)return E;d="",l=le,u=0;continue}if(n&&(J(e)!=f(Q,d)||"file"==d&&(ee(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=d,n)return void(J(e)&&Q[e.scheme]==e.port&&(e.port=null));d="","file"==e.scheme?l=ye:J(e)&&o&&o.scheme==e.scheme?l=ue:J(e)?l=pe:"/"==a[u+1]?(l=fe,u++):(e.cannotBeABaseURL=!0,e.path.push(""),l=Ae)}break;case le:if(!o||o.cannotBeABaseURL&&"#"!=i)return E;if(o.cannotBeABaseURL&&"#"==i){e.scheme=o.scheme,e.path=o.path.slice(),e.query=o.query,e.fragment="",e.cannotBeABaseURL=!0,l=Re;break}l="file"==o.scheme?ye:de;continue;case ue:if("/"!=i||"/"!=a[u+1]){l=de;continue}l=me,u++;break;case fe:if("/"==i){l=_e;break}l=Se;continue;case de:if(e.scheme=o.scheme,i==r)e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query=o.query;else if("/"==i||"\\"==i&&J(e))l=he;else if("?"==i)e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query="",l=Me;else{if("#"!=i){e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.path.pop(),l=Se;continue}e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query=o.query,e.fragment="",l=Re}break;case he:if(!J(e)||"/"!=i&&"\\"!=i){if("/"!=i){e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,l=Se;continue}l=_e}else l=me;break;case pe:if(l=me,"/"!=i||"/"!=d.charAt(u+1))continue;u++;break;case me:if("/"!=i&&"\\"!=i){l=_e;continue}break;case _e:if("@"==i){p&&(d="%40"+d),p=!0,s=h(d);for(var g=0;g<s.length;g++){var b=s[g];if(":"!=b||_){var v=Z(b,W);_?e.password+=v:e.username+=v}else _=!0}d=""}else if(i==r||"/"==i||"?"==i||"#"==i||"\\"==i&&J(e)){if(p&&""==d)return R;u-=h(d).length+1,d="",l=ge}else d+=i;break;case ge:case be:if(n&&"file"==e.scheme){l=xe;continue}if(":"!=i||m){if(i==r||"/"==i||"?"==i||"#"==i||"\\"==i&&J(e)){if(J(e)&&""==d)return T;if(n&&""==d&&(ee(e)||null!==e.port))return;if(c=V(e,d),c)return c;if(d="",l=ke,n)return;continue}"["==i?m=!0:"]"==i&&(m=!1),d+=i}else{if(""==d)return T;if(c=V(e,d),c)return c;if(d="",l=ve,n==be)return}break;case ve:if(!I.test(i)){if(i==r||"/"==i||"?"==i||"#"==i||"\\"==i&&J(e)||n){if(""!=d){var y=parseInt(d,10);if(y>65535)return O;e.port=J(e)&&y===Q[e.scheme]?null:y,d=""}if(n)return;l=ke;continue}return O}d+=i;break;case ye:if(e.scheme="file","/"==i||"\\"==i)l=we;else{if(!o||"file"!=o.scheme){l=Se;continue}if(i==r)e.host=o.host,e.path=o.path.slice(),e.query=o.query;else if("?"==i)e.host=o.host,e.path=o.path.slice(),e.query="",l=Me;else{if("#"!=i){re(a.slice(u).join(""))||(e.host=o.host,e.path=o.path.slice(),oe(e)),l=Se;continue}e.host=o.host,e.path=o.path.slice(),e.query=o.query,e.fragment="",l=Re}}break;case we:if("/"==i||"\\"==i){l=xe;break}o&&"file"==o.scheme&&!re(a.slice(u).join(""))&&(ne(o.path[0],!0)?e.path.push(o.path[0]):e.host=o.host),l=Se;continue;case xe:if(i==r||"/"==i||"\\"==i||"?"==i||"#"==i){if(!n&&ne(d))l=Se;else if(""==d){if(e.host="",n)return;l=ke}else{if(c=V(e,d),c)return c;if("localhost"==e.host&&(e.host=""),n)return;d="",l=ke}continue}d+=i;break;case ke:if(J(e)){if(l=Se,"/"!=i&&"\\"!=i)continue}else if(n||"?"!=i)if(n||"#"!=i){if(i!=r&&(l=Se,"/"!=i))continue}else e.fragment="",l=Re;else e.query="",l=Me;break;case Se:if(i==r||"/"==i||"\\"==i&&J(e)||!n&&("?"==i||"#"==i)){if(ie(d)?(oe(e),"/"==i||"\\"==i&&J(e)||e.path.push("")):ae(d)?"/"==i||"\\"==i&&J(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&ne(d)&&(e.host&&(e.host=""),d=d.charAt(0)+":"),e.path.push(d)),d="","file"==e.scheme&&(i==r||"?"==i||"#"==i))while(e.path.length>1&&""===e.path[0])e.path.shift();"?"==i?(e.query="",l=Me):"#"==i&&(e.fragment="",l=Re)}else d+=Z(i,K);break;case Ae:"?"==i?(e.query="",l=Me):"#"==i?(e.fragment="",l=Re):i!=r&&(e.path[0]+=Z(i,X));break;case Me:n||"#"!=i?i!=r&&("'"==i&&J(e)?e.query+="%27":e.query+="#"==i?"%23":Z(i,X)):(e.fragment="",l=Re);break;case Re:i!=r&&(e.fragment+=Z(i,G));break}u++}},Te=function(e){var t,n,r=u(this,Te,"URL"),o=arguments.length>1?arguments[1]:void 0,i=_(e),s=k(r,{type:"URL"});if(void 0!==o)if(o instanceof Te)t=S(o);else if(n=Ee(t={},_(o)),n)throw TypeError(n);if(n=Ee(s,i,null,t),n)throw TypeError(n);var c=s.searchParams=new w,l=x(c);l.updateSearchParams(s.query),l.updateURL=function(){s.query=String(c)||null},a||(r.href=Le.call(r),r.origin=Be.call(r),r.protocol=Ie.call(r),r.username=Ce.call(r),r.password=Pe.call(r),r.host=je.call(r),r.hostname=Ne.call(r),r.port=He.call(r),r.pathname=Fe.call(r),r.search=De.call(r),r.searchParams=Ue.call(r),r.hash=Ve.call(r))},Oe=Te.prototype,Le=function(){var e=S(this),t=e.scheme,n=e.username,r=e.password,o=e.host,a=e.port,i=e.path,s=e.query,c=e.fragment,l=t+":";return null!==o?(l+="//",ee(e)&&(l+=n+(r?":"+r:"")+"@"),l+=Y(o),null!==a&&(l+=":"+a)):"file"==t&&(l+="//"),l+=e.cannotBeABaseURL?i[0]:i.length?"/"+i.join("/"):"",null!==s&&(l+="?"+s),null!==c&&(l+="#"+c),l},Be=function(){var e=S(this),t=e.scheme,n=e.port;if("blob"==t)try{return new Te(t.path[0]).origin}catch(r){return"null"}return"file"!=t&&J(e)?t+"://"+Y(e.host)+(null!==n?":"+n:""):"null"},Ie=function(){return S(this).scheme+":"},Ce=function(){return S(this).username},Pe=function(){return S(this).password},je=function(){var e=S(this),t=e.host,n=e.port;return null===t?"":null===n?Y(t):Y(t)+":"+n},Ne=function(){var e=S(this).host;return null===e?"":Y(e)},He=function(){var e=S(this).port;return null===e?"":String(e)},Fe=function(){var e=S(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},De=function(){var e=S(this).query;return e?"?"+e:""},Ue=function(){return S(this).searchParams},Ve=function(){var e=S(this).fragment;return e?"#"+e:""},qe=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(a&&c(Oe,{href:qe(Le,(function(e){var t=S(this),n=_(e),r=Ee(t,n);if(r)throw TypeError(r);x(t.searchParams).updateSearchParams(t.query)})),origin:qe(Be),protocol:qe(Ie,(function(e){var t=S(this);Ee(t,_(e)+":",se)})),username:qe(Ce,(function(e){var t=S(this),n=h(_(e));if(!te(t)){t.username="";for(var r=0;r<n.length;r++)t.username+=Z(n[r],W)}})),password:qe(Pe,(function(e){var t=S(this),n=h(_(e));if(!te(t)){t.password="";for(var r=0;r<n.length;r++)t.password+=Z(n[r],W)}})),host:qe(je,(function(e){var t=S(this);t.cannotBeABaseURL||Ee(t,_(e),ge)})),hostname:qe(Ne,(function(e){var t=S(this);t.cannotBeABaseURL||Ee(t,_(e),be)})),port:qe(He,(function(e){var t=S(this);te(t)||(e=_(e),""==e?t.port=null:Ee(t,e,ve))})),pathname:qe(Fe,(function(e){var t=S(this);t.cannotBeABaseURL||(t.path=[],Ee(t,_(e),ke))})),search:qe(De,(function(e){var t=S(this);e=_(e),""==e?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",Ee(t,e,Me)),x(t.searchParams).updateSearchParams(t.query)})),searchParams:qe(Ue),hash:qe(Ve,(function(e){var t=S(this);e=_(e),""!=e?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",Ee(t,e,Re)):t.fragment=null}))}),l(Oe,"toJSON",(function(){return Le.call(this)}),{enumerable:!0}),l(Oe,"toString",(function(){return Le.call(this)}),{enumerable:!0}),y){var $e=y.createObjectURL,ze=y.revokeObjectURL;$e&&l(Te,"createObjectURL",(function(e){return $e.apply(y,arguments)})),ze&&l(Te,"revokeObjectURL",(function(e){return ze.apply(y,arguments)}))}g(Te,"URL"),o({global:!0,forced:!i,sham:!a},{URL:Te})},"2ca0":function(e,t,n){"use strict";var r=n("23e7"),o=n("06cf").f,a=n("50c4"),i=n("577e"),s=n("5a34"),c=n("1d80"),l=n("ab13"),u=n("c430"),f="".startsWith,d=Math.min,h=l("startsWith"),p=!u&&!h&&!!function(){var e=o(String.prototype,"startsWith");return e&&!e.writable}();r({target:"String",proto:!0,forced:!p&&!h},{startsWith:function(e){var t=i(c(this));s(e);var n=a(d(arguments.length>1?arguments[1]:void 0,t.length)),r=i(e);return f?f.call(t,r,n):t.slice(n,n+r.length)===r}})},"2cf4":function(e,t,n){var r,o,a,i,s=n("da84"),c=n("d039"),l=n("0366"),u=n("1be4"),f=n("cc12"),d=n("1cdc"),h=n("605d"),p=s.setImmediate,m=s.clearImmediate,_=s.process,g=s.MessageChannel,b=s.Dispatch,v=0,y={},w="onreadystatechange";try{r=s.location}catch(M){}var x=function(e){if(y.hasOwnProperty(e)){var t=y[e];delete y[e],t()}},k=function(e){return function(){x(e)}},S=function(e){x(e.data)},A=function(e){s.postMessage(String(e),r.protocol+"//"+r.host)};p&&m||(p=function(e){var t=[],n=arguments.length,r=1;while(n>r)t.push(arguments[r++]);return y[++v]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},o(v),v},m=function(e){delete y[e]},h?o=function(e){_.nextTick(k(e))}:b&&b.now?o=function(e){b.now(k(e))}:g&&!d?(a=new g,i=a.port2,a.port1.onmessage=S,o=l(i.postMessage,i,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts&&r&&"file:"!==r.protocol&&!c(A)?(o=A,s.addEventListener("message",S,!1)):o=w in f("script")?function(e){u.appendChild(f("script"))[w]=function(){u.removeChild(this),x(e)}}:function(e){setTimeout(k(e),0)}),e.exports={set:p,clear:m}},"2d00":function(e,t,n){var r,o,a=n("da84"),i=n("342f"),s=a.process,c=a.Deno,l=s&&s.versions||c&&c.version,u=l&&l.v8;u?(r=u.split("."),o=r[0]<4?1:r[0]+r[1]):i&&(r=i.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=i.match(/Chrome\/(\d+)/),r&&(o=r[1]))),e.exports=o&&+o},"2d78":function(e,t,n){"use strict";t.__esModule=!0,t.tokenize=t.test=t.scanner=t.parser=t.options=t.inherits=t.find=void 0;var r=n("254c"),o=n("316e"),a=u(o),i=n("b7fe"),s=u(i),c=n("4128"),l=u(c);function u(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var f=function(e){return l.run(s.run(e))},d=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=f(e),r=[],o=0;o<n.length;o++){var a=n[o];!a.isLink||t&&a.type!==t||r.push(a.toObject())}return r},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=f(e);return 1===n.length&&n[0].isLink&&(!t||n[0].type===t)};t.find=d,t.inherits=r.inherits,t.options=a,t.parser=l,t.scanner=s,t.test=h,t.tokenize=f},"2f21":function(e,t,n){var r=n("0206"),o=r.System,a=(r.VbrMode,r.Float,r.ShortBlock,r.Util,r.Arrays);r.new_array_n,r.new_byte,r.new_double,r.new_float,r.new_float_n,r.new_int,r.new_int_n,r.assert;function i(){var e=64.82,t=(i.YULE_ORDER,.95),n=(i.MAX_SAMP_FREQ,i.RMS_WINDOW_TIME_NUMERATOR),r=i.RMS_WINDOW_TIME_DENOMINATOR,s=(i.MAX_SAMPLES_PER_WINDOW,[[.038575994352,-3.84664617118067,-.02160367184185,7.81501653005538,-.00123395316851,-11.34170355132042,-9291677959e-14,13.05504219327545,-.01655260341619,-12.28759895145294,.02161526843274,9.4829380631979,-.02074045215285,-5.87257861775999,.00594298065125,2.75465861874613,.00306428023191,-.86984376593551,.00012025322027,.13919314567432,.00288463683916],[.0541865640643,-3.47845948550071,-.02911007808948,6.36317777566148,-.00848709379851,-8.54751527471874,-.00851165645469,9.4769360780128,-.00834990904936,-8.81498681370155,.02245293253339,6.85401540936998,-.02596338512915,-4.39470996079559,.01624864962975,2.19611684890774,-.00240879051584,-.75104302451432,.00674613682247,.13149317958808,-.00187763777362],[.15457299681924,-2.37898834973084,-.09331049056315,2.84868151156327,-.06247880153653,-2.64577170229825,.02163541888798,2.23697657451713,-.05588393329856,-1.67148153367602,.04781476674921,1.00595954808547,.00222312597743,-.45953458054983,.03174092540049,.16378164858596,-.01390589421898,-.05032077717131,.00651420667831,.0234789740702,-.00881362733839],[.30296907319327,-1.61273165137247,-.22613988682123,1.0797749225997,-.08587323730772,-.2565625775407,.03282930172664,-.1627671912044,-.00915702933434,-.22638893773906,-.02364141202522,.39120800788284,-.00584456039913,-.22138138954925,.06276101321749,.04500235387352,-828086748e-14,.02005851806501,.00205861885564,.00302439095741,-.02950134983287],[.33642304856132,-1.49858979367799,-.2557224142557,.87350271418188,-.11828570177555,.12205022308084,.11921148675203,-.80774944671438,-.07834489609479,.47854794562326,-.0046997791438,-.12453458140019,-.0058950022444,-.04067510197014,.05724228140351,.08333755284107,.00832043980773,-.04237348025746,-.0163538138454,.02977207319925,-.0176017656815],[.4491525660845,-.62820619233671,-.14351757464547,.29661783706366,-.22784394429749,-.372563729424,-.01419140100551,.00213767857124,.04078262797139,-.42029820170918,-.12398163381748,.22199650564824,.04097565135648,.00613424350682,.10478503600251,.06747620744683,-.01863887810927,.05784820375801,-.03193428438915,.03222754072173,.00541907748707],[.56619470757641,-1.04800335126349,-.75464456939302,.29156311971249,.1624213774223,-.26806001042947,.16744243493672,.00819999645858,-.18901604199609,.45054734505008,.3093178284183,-.33032403314006,-.27562961986224,.0673936833311,.00647310677246,-.04784254229033,.08647503780351,.01639907836189,-.0378898455484,.01807364323573,-.00588215443421],[.58100494960553,-.51035327095184,-.53174909058578,-.31863563325245,-.14289799034253,-.20256413484477,.17520704835522,.1472815413433,.02377945217615,.38952639978999,.15558449135573,-.23313271880868,-.25344790059353,-.05246019024463,.01628462406333,-.02505961724053,.06920467763959,.02442357316099,-.03721611395801,.01818801111503,-.00749618797172],[.53648789255105,-.2504987195602,-.42163034350696,-.43193942311114,-.00275953611929,-.03424681017675,.04267842219415,-.04678328784242,-.10214864179676,.26408300200955,.14590772289388,.15113130533216,-.02459864859345,-.17556493366449,-.11202315195388,-.18823009262115,-.04060034127,.05477720428674,.0478866554818,.0470440968812,-.02217936801134]]),c=[[.98621192462708,-1.97223372919527,-1.97242384925416,.97261396931306,.98621192462708],[.98500175787242,-1.96977855582618,-1.97000351574484,.9702284756635,.98500175787242],[.97938932735214,-1.95835380975398,-1.95877865470428,.95920349965459,.97938932735214],[.97531843204928,-1.95002759149878,-1.95063686409857,.95124613669835,.97531843204928],[.97316523498161,-1.94561023566527,-1.94633046996323,.94705070426118,.97316523498161],[.96454515552826,-1.92783286977036,-1.92909031105652,.93034775234268,.96454515552826],[.96009142950541,-1.91858953033784,-1.92018285901082,.92177618768381,.96009142950541],[.95856916599601,-1.9154210807478,-1.91713833199203,.91885558323625,.95856916599601],[.94597685600279,-1.88903307939452,-1.89195371200558,.89487434461664,.94597685600279]];function l(e,t,n,r,o,a){while(0!=o--)n[r]=1e-10+e[t+0]*a[0]-n[r-1]*a[1]+e[t-1]*a[2]-n[r-2]*a[3]+e[t-2]*a[4]-n[r-3]*a[5]+e[t-3]*a[6]-n[r-4]*a[7]+e[t-4]*a[8]-n[r-5]*a[9]+e[t-5]*a[10]-n[r-6]*a[11]+e[t-6]*a[12]-n[r-7]*a[13]+e[t-7]*a[14]-n[r-8]*a[15]+e[t-8]*a[16]-n[r-9]*a[17]+e[t-9]*a[18]-n[r-10]*a[19]+e[t-10]*a[20],++r,++t}function u(e,t,n,r,o,a){while(0!=o--)n[r]=e[t+0]*a[0]-n[r-1]*a[1]+e[t-1]*a[2]-n[r-2]*a[3]+e[t-2]*a[4],++r,++t}function f(e,t){for(var o=0;o<MAX_ORDER;o++)e.linprebuf[o]=e.lstepbuf[o]=e.loutbuf[o]=e.rinprebuf[o]=e.rstepbuf[o]=e.routbuf[o]=0;switch(0|t){case 48e3:e.reqindex=0;break;case 44100:e.reqindex=1;break;case 32e3:e.reqindex=2;break;case 24e3:e.reqindex=3;break;case 22050:e.reqindex=4;break;case 16e3:e.reqindex=5;break;case 12e3:e.reqindex=6;break;case 11025:e.reqindex=7;break;case 8e3:e.reqindex=8;break;default:return INIT_GAIN_ANALYSIS_ERROR}return e.sampleWindow=0|(t*n+r-1)/r,e.lsum=0,e.rsum=0,e.totsamp=0,a.ill(e.A,0),INIT_GAIN_ANALYSIS_OK}function d(e){return e*e}function h(n,r){var o,a=0;for(o=0;o<r;o++)a+=n[o];if(0==a)return GAIN_NOT_ENOUGH_SAMPLES;var s=0|Math.ceil(a*(1-t));for(o=r;o-- >0;)if((s-=n[o])<=0)break;return e-o/i.STEPS_per_dB}this.InitGainAnalysis=function(e,t){return f(e,t)!=INIT_GAIN_ANALYSIS_OK?INIT_GAIN_ANALYSIS_ERROR:(e.linpre=MAX_ORDER,e.rinpre=MAX_ORDER,e.lstep=MAX_ORDER,e.rstep=MAX_ORDER,e.lout=MAX_ORDER,e.rout=MAX_ORDER,a.fill(e.B,0),INIT_GAIN_ANALYSIS_OK)},this.AnalyzeSamples=function(e,t,n,r,a,f,h){var p,m,_,g,b,v,y;if(0==f)return GAIN_ANALYSIS_OK;switch(y=0,b=f,h){case 1:r=t,a=n;break;case 2:break;default:return GAIN_ANALYSIS_ERROR}f<MAX_ORDER?(o.arraycopy(t,n,e.linprebuf,MAX_ORDER,f),o.arraycopy(r,a,e.rinprebuf,MAX_ORDER,f)):(o.arraycopy(t,n,e.linprebuf,MAX_ORDER,MAX_ORDER),o.arraycopy(r,a,e.rinprebuf,MAX_ORDER,MAX_ORDER));while(b>0){v=b>e.sampleWindow-e.totsamp?e.sampleWindow-e.totsamp:b,y<MAX_ORDER?(p=e.linpre+y,m=e.linprebuf,_=e.rinpre+y,g=e.rinprebuf,v>MAX_ORDER-y&&(v=MAX_ORDER-y)):(p=n+y,m=t,_=a+y,g=r),l(m,p,e.lstepbuf,e.lstep+e.totsamp,v,s[e.reqindex]),l(g,_,e.rstepbuf,e.rstep+e.totsamp,v,s[e.reqindex]),u(e.lstepbuf,e.lstep+e.totsamp,e.loutbuf,e.lout+e.totsamp,v,c[e.reqindex]),u(e.rstepbuf,e.rstep+e.totsamp,e.routbuf,e.rout+e.totsamp,v,c[e.reqindex]),p=e.lout+e.totsamp,m=e.loutbuf,_=e.rout+e.totsamp,g=e.routbuf;var w=v%8;while(0!=w--)e.lsum+=d(m[p++]),e.rsum+=d(g[_++]);w=v/8;while(0!=w--)e.lsum+=d(m[p+0])+d(m[p+1])+d(m[p+2])+d(m[p+3])+d(m[p+4])+d(m[p+5])+d(m[p+6])+d(m[p+7]),p+=8,e.rsum+=d(g[_+0])+d(g[_+1])+d(g[_+2])+d(g[_+3])+d(g[_+4])+d(g[_+5])+d(g[_+6])+d(g[_+7]),_+=8;if(b-=v,y+=v,e.totsamp+=v,e.totsamp==e.sampleWindow){var x=10*i.STEPS_per_dB*Math.log10((e.lsum+e.rsum)/e.totsamp*.5+1e-37),k=x<=0?0:0|x;k>=e.A.length&&(k=e.A.length-1),e.A[k]++,e.lsum=e.rsum=0,o.arraycopy(e.loutbuf,e.totsamp,e.loutbuf,0,MAX_ORDER),o.arraycopy(e.routbuf,e.totsamp,e.routbuf,0,MAX_ORDER),o.arraycopy(e.lstepbuf,e.totsamp,e.lstepbuf,0,MAX_ORDER),o.arraycopy(e.rstepbuf,e.totsamp,e.rstepbuf,0,MAX_ORDER),e.totsamp=0}if(e.totsamp>e.sampleWindow)return GAIN_ANALYSIS_ERROR}return f<MAX_ORDER?(o.arraycopy(e.linprebuf,f,e.linprebuf,0,MAX_ORDER-f),o.arraycopy(e.rinprebuf,f,e.rinprebuf,0,MAX_ORDER-f),o.arraycopy(t,n,e.linprebuf,MAX_ORDER-f,f),o.arraycopy(r,a,e.rinprebuf,MAX_ORDER-f,f)):(o.arraycopy(t,n+f-MAX_ORDER,e.linprebuf,0,MAX_ORDER),o.arraycopy(r,a+f-MAX_ORDER,e.rinprebuf,0,MAX_ORDER)),GAIN_ANALYSIS_OK},this.GetTitleGain=function(e){for(var t=h(e.A,e.A.length),n=0;n<e.A.length;n++)e.B[n]+=e.A[n],e.A[n]=0;for(n=0;n<MAX_ORDER;n++)e.linprebuf[n]=e.lstepbuf[n]=e.loutbuf[n]=e.rinprebuf[n]=e.rstepbuf[n]=e.routbuf[n]=0;return e.totsamp=0,e.lsum=e.rsum=0,t}}i.STEPS_per_dB=100,i.MAX_dB=120,i.GAIN_NOT_ENOUGH_SAMPLES=-24601,i.GAIN_ANALYSIS_ERROR=0,i.GAIN_ANALYSIS_OK=1,i.INIT_GAIN_ANALYSIS_ERROR=0,i.INIT_GAIN_ANALYSIS_OK=1,i.YULE_ORDER=10,i.MAX_ORDER=i.YULE_ORDER,i.MAX_SAMP_FREQ=48e3,i.RMS_WINDOW_TIME_NUMERATOR=1,i.RMS_WINDOW_TIME_DENOMINATOR=20,i.MAX_SAMPLES_PER_WINDOW=i.MAX_SAMP_FREQ*i.RMS_WINDOW_TIME_NUMERATOR/i.RMS_WINDOW_TIME_DENOMINATOR+1,e.exports=i},"316e":function(e,t,n){"use strict";t.__esModule=!0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o={defaultProtocol:"http",events:null,format:s,formatHref:s,nl2br:!1,tagName:"a",target:c,validate:!0,ignoreTags:[],attributes:null,className:"linkified"};function a(e){e=e||{},this.defaultProtocol=e.hasOwnProperty("defaultProtocol")?e.defaultProtocol:o.defaultProtocol,this.events=e.hasOwnProperty("events")?e.events:o.events,this.format=e.hasOwnProperty("format")?e.format:o.format,this.formatHref=e.hasOwnProperty("formatHref")?e.formatHref:o.formatHref,this.nl2br=e.hasOwnProperty("nl2br")?e.nl2br:o.nl2br,this.tagName=e.hasOwnProperty("tagName")?e.tagName:o.tagName,this.target=e.hasOwnProperty("target")?e.target:o.target,this.validate=e.hasOwnProperty("validate")?e.validate:o.validate,this.ignoreTags=[],this.attributes=e.attributes||e.linkAttributes||o.attributes,this.className=e.hasOwnProperty("className")?e.className:e.linkClass||o.className;for(var t=e.hasOwnProperty("ignoreTags")?e.ignoreTags:o.ignoreTags,n=0;n<t.length;n++)this.ignoreTags.push(t[n].toUpperCase())}function i(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1}function s(e){return e}function c(e,t){return"url"===t?"_blank":null}t.defaults=o,t.Options=a,t.contains=i,a.prototype={resolve:function(e){var t=e.toHref(this.defaultProtocol);return{formatted:this.get("format",e.toString(),e),formattedHref:this.get("formatHref",t,e),tagName:this.get("tagName",t,e),className:this.get("className",t,e),target:this.get("target",t,e),events:this.getObject("events",t,e),attributes:this.getObject("attributes",t,e)}},check:function(e){return this.get("validate",e.toString(),e)},get:function(e,t,n){var a=void 0,i=this[e];if(!i)return i;switch("undefined"===typeof i?"undefined":r(i)){case"function":return i(t,n.type);case"object":return a=i.hasOwnProperty(n.type)?i[n.type]:o[e],"function"===typeof a?a(t,n.type):a}return i},getObject:function(e,t,n){var r=this[e];return"function"===typeof r?r(t,n.type):r}}},3280:function(e,t,n){"use strict";var r=n("ebb5"),o=n("e58c"),a=r.aTypedArray,i=r.exportTypedArrayMethod;i("lastIndexOf",(function(e){return o.apply(a(this),arguments)}))},"342f":function(e,t,n){var r=n("d066");e.exports=r("navigator","userAgent")||""},"35a1":function(e,t,n){var r=n("f5df"),o=n("3f8c"),a=n("b622"),i=a("iterator");e.exports=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},"37e8":function(e,t,n){var r=n("83ab"),o=n("9bf2"),a=n("825a"),i=n("df75");e.exports=r?Object.defineProperties:function(e,t){a(e);var n,r=i(t),s=r.length,c=0;while(s>c)o.f(e,n=r[c++],t[n]);return e}},3967:function(e,t,n){var r=n("0206"),o=(r.System,r.VbrMode);r.Float,r.ShortBlock,r.Util,r.Arrays,r.new_array_n,r.new_byte,r.new_double,r.new_float,r.new_float_n,r.new_int,r.new_int_n,r.assert;function a(){function e(e,t,n,r,o,a,i,s,c,l,u,f,d,h,p){this.vbr_q=e,this.quant_comp=t,this.quant_comp_s=n,this.expY=r,this.st_lrm=o,this.st_s=a,this.masking_adj=i,this.masking_adj_short=s,this.ath_lower=c,this.ath_curve=l,this.ath_sensitivity=u,this.interch=f,this.safejoint=d,this.sfb21mod=h,this.msfix=p}function t(e,t,n,r,o,a,i,s,c,l,u,f,d,h){this.quant_comp=t,this.quant_comp_s=n,this.safejoint=r,this.nsmsfix=o,this.st_lrm=a,this.st_s=i,this.nsbass=s,this.scale=c,this.masking_adj=l,this.ath_lower=u,this.ath_curve=f,this.interch=d,this.sfscale=h}var n;this.setModules=function(e){n=e};var r=[new e(0,9,9,0,5.2,125,-4.2,-6.3,4.8,1,0,0,2,21,.97),new e(1,9,9,0,5.3,125,-3.6,-5.6,4.5,1.5,0,0,2,21,1.35),new e(2,9,9,0,5.6,125,-2.2,-3.5,2.8,2,0,0,2,21,1.49),new e(3,9,9,1,5.8,130,-1.8,-2.8,2.6,3,-4,0,2,20,1.64),new e(4,9,9,1,6,135,-.7,-1.1,1.1,3.5,-8,0,2,0,1.79),new e(5,9,9,1,6.4,140,.5,.4,-7.5,4,-12,2e-4,0,0,1.95),new e(6,9,9,1,6.6,145,.67,.65,-14.7,6.5,-19,4e-4,0,0,2.3),new e(7,9,9,1,6.6,145,.8,.75,-19.7,8,-22,6e-4,0,0,2.7),new e(8,9,9,1,6.6,145,1.2,1.15,-27.5,10,-23,7e-4,0,0,0),new e(9,9,9,1,6.6,145,1.6,1.6,-36,11,-25,8e-4,0,0,0),new e(10,9,9,1,6.6,145,2,2,-36,12,-25,8e-4,0,0,0)],a=[new e(0,9,9,0,4.2,25,-7,-4,7.5,1,0,0,2,26,.97),new e(1,9,9,0,4.2,25,-5.6,-3.6,4.5,1.5,0,0,2,21,1.35),new e(2,9,9,0,4.2,25,-4.4,-1.8,2,2,0,0,2,18,1.49),new e(3,9,9,1,4.2,25,-3.4,-1.25,1.1,3,-4,0,2,15,1.64),new e(4,9,9,1,4.2,25,-2.2,.1,0,3.5,-8,0,2,0,1.79),new e(5,9,9,1,4.2,25,-1,1.65,-7.7,4,-12,2e-4,0,0,1.95),new e(6,9,9,1,4.2,25,-0,2.47,-7.7,6.5,-19,4e-4,0,0,2),new e(7,9,9,1,4.2,25,.5,2,-14.5,8,-22,6e-4,0,0,2),new e(8,9,9,1,4.2,25,1,2.4,-22,10,-23,7e-4,0,0,2),new e(9,9,9,1,4.2,25,1.5,2.95,-30,11,-25,8e-4,0,0,2),new e(10,9,9,1,4.2,25,2,2.95,-36,12,-30,8e-4,0,0,2)];function i(e,t,n){var i=e.VBR==o.vbr_rh?r:a,s=e.VBR_q_frac,c=i[t],u=i[t+1],f=c;c.st_lrm=c.st_lrm+s*(u.st_lrm-c.st_lrm),c.st_s=c.st_s+s*(u.st_s-c.st_s),c.masking_adj=c.masking_adj+s*(u.masking_adj-c.masking_adj),c.masking_adj_short=c.masking_adj_short+s*(u.masking_adj_short-c.masking_adj_short),c.ath_lower=c.ath_lower+s*(u.ath_lower-c.ath_lower),c.ath_curve=c.ath_curve+s*(u.ath_curve-c.ath_curve),c.ath_sensitivity=c.ath_sensitivity+s*(u.ath_sensitivity-c.ath_sensitivity),c.interch=c.interch+s*(u.interch-c.interch),c.msfix=c.msfix+s*(u.msfix-c.msfix),l(e,f.vbr_q),0!=n?e.quant_comp=f.quant_comp:Math.abs(e.quant_comp- -1)>0||(e.quant_comp=f.quant_comp),0!=n?e.quant_comp_short=f.quant_comp_s:Math.abs(e.quant_comp_short- -1)>0||(e.quant_comp_short=f.quant_comp_s),0!=f.expY&&(e.experimentalY=0!=f.expY),0!=n?e.internal_flags.nsPsy.attackthre=f.st_lrm:Math.abs(e.internal_flags.nsPsy.attackthre- -1)>0||(e.internal_flags.nsPsy.attackthre=f.st_lrm),0!=n?e.internal_flags.nsPsy.attackthre_s=f.st_s:Math.abs(e.internal_flags.nsPsy.attackthre_s- -1)>0||(e.internal_flags.nsPsy.attackthre_s=f.st_s),0!=n?e.maskingadjust=f.masking_adj:Math.abs(e.maskingadjust-0)>0||(e.maskingadjust=f.masking_adj),0!=n?e.maskingadjust_short=f.masking_adj_short:Math.abs(e.maskingadjust_short-0)>0||(e.maskingadjust_short=f.masking_adj_short),0!=n?e.ATHlower=-f.ath_lower/10:Math.abs(10*-e.ATHlower-0)>0||(e.ATHlower=-f.ath_lower/10),0!=n?e.ATHcurve=f.ath_curve:Math.abs(e.ATHcurve- -1)>0||(e.ATHcurve=f.ath_curve),0!=n?e.athaa_sensitivity=f.ath_sensitivity:Math.abs(e.athaa_sensitivity- -1)>0||(e.athaa_sensitivity=f.ath_sensitivity),f.interch>0&&(0!=n?e.interChRatio=f.interch:Math.abs(e.interChRatio- -1)>0||(e.interChRatio=f.interch)),f.safejoint>0&&(e.exp_nspsytune=e.exp_nspsytune|f.safejoint),f.sfb21mod>0&&(e.exp_nspsytune=e.exp_nspsytune|f.sfb21mod<<20),0!=n?e.msfix=f.msfix:Math.abs(e.msfix- -1)>0||(e.msfix=f.msfix),0==n&&(e.VBR_q=t,e.VBR_q_frac=s)}var s=[new t(8,9,9,0,0,6.6,145,0,.95,0,-30,11,.0012,1),new t(16,9,9,0,0,6.6,145,0,.95,0,-25,11,.001,1),new t(24,9,9,0,0,6.6,145,0,.95,0,-20,11,.001,1),new t(32,9,9,0,0,6.6,145,0,.95,0,-15,11,.001,1),new t(40,9,9,0,0,6.6,145,0,.95,0,-10,11,9e-4,1),new t(48,9,9,0,0,6.6,145,0,.95,0,-10,11,9e-4,1),new t(56,9,9,0,0,6.6,145,0,.95,0,-6,11,8e-4,1),new t(64,9,9,0,0,6.6,145,0,.95,0,-2,11,8e-4,1),new t(80,9,9,0,0,6.6,145,0,.95,0,0,8,7e-4,1),new t(96,9,9,0,2.5,6.6,145,0,.95,0,1,5.5,6e-4,1),new t(112,9,9,0,2.25,6.6,145,0,.95,0,2,4.5,5e-4,1),new t(128,9,9,0,1.95,6.4,140,0,.95,0,3,4,2e-4,1),new t(160,9,9,1,1.79,6,135,0,.95,-2,5,3.5,0,1),new t(192,9,9,1,1.49,5.6,125,0,.97,-4,7,3,0,0),new t(224,9,9,1,1.25,5.2,125,0,.98,-6,9,2,0,0),new t(256,9,9,1,.97,5.2,125,0,1,-8,10,1,0,0),new t(320,9,9,1,.9,5.2,125,0,1,-10,12,0,0,0)];function c(e,t,r){var a=t,i=n.nearestBitrateFullIndex(t);if(e.VBR=o.vbr_abr,e.VBR_mean_bitrate_kbps=a,e.VBR_mean_bitrate_kbps=Math.min(e.VBR_mean_bitrate_kbps,320),e.VBR_mean_bitrate_kbps=Math.max(e.VBR_mean_bitrate_kbps,8),e.brate=e.VBR_mean_bitrate_kbps,e.VBR_mean_bitrate_kbps>320&&(e.disable_reservoir=!0),s[i].safejoint>0&&(e.exp_nspsytune=2|e.exp_nspsytune),s[i].sfscale>0&&(e.internal_flags.noise_shaping=2),Math.abs(s[i].nsbass)>0){var c=int(4*s[i].nsbass);c<0&&(c+=64),e.exp_nspsytune=e.exp_nspsytune|c<<2}return 0!=r?e.quant_comp=s[i].quant_comp:Math.abs(e.quant_comp- -1)>0||(e.quant_comp=s[i].quant_comp),0!=r?e.quant_comp_short=s[i].quant_comp_s:Math.abs(e.quant_comp_short- -1)>0||(e.quant_comp_short=s[i].quant_comp_s),0!=r?e.msfix=s[i].nsmsfix:Math.abs(e.msfix- -1)>0||(e.msfix=s[i].nsmsfix),0!=r?e.internal_flags.nsPsy.attackthre=s[i].st_lrm:Math.abs(e.internal_flags.nsPsy.attackthre- -1)>0||(e.internal_flags.nsPsy.attackthre=s[i].st_lrm),0!=r?e.internal_flags.nsPsy.attackthre_s=s[i].st_s:Math.abs(e.internal_flags.nsPsy.attackthre_s- -1)>0||(e.internal_flags.nsPsy.attackthre_s=s[i].st_s),0!=r?e.scale=s[i].scale:Math.abs(e.scale- -1)>0||(e.scale=s[i].scale),0!=r?e.maskingadjust=s[i].masking_adj:Math.abs(e.maskingadjust-0)>0||(e.maskingadjust=s[i].masking_adj),s[i].masking_adj>0?0!=r?e.maskingadjust_short=.9*s[i].masking_adj:Math.abs(e.maskingadjust_short-0)>0||(e.maskingadjust_short=.9*s[i].masking_adj):0!=r?e.maskingadjust_short=1.1*s[i].masking_adj:Math.abs(e.maskingadjust_short-0)>0||(e.maskingadjust_short=1.1*s[i].masking_adj),0!=r?e.ATHlower=-s[i].ath_lower/10:Math.abs(10*-e.ATHlower-0)>0||(e.ATHlower=-s[i].ath_lower/10),0!=r?e.ATHcurve=s[i].ath_curve:Math.abs(e.ATHcurve- -1)>0||(e.ATHcurve=s[i].ath_curve),0!=r?e.interChRatio=s[i].interch:Math.abs(e.interChRatio- -1)>0||(e.interChRatio=s[i].interch),t}function l(e,t){var n=0;return 0>t&&(n=-1,t=0),9<t&&(n=-1,t=9),e.VBR_q=t,e.VBR_q_frac=0,n}this.apply_preset=function(e,t,n){switch(t){case Lame.R3MIX:t=Lame.V3,e.VBR=o.vbr_mtrh;break;case Lame.MEDIUM:t=Lame.V4,e.VBR=o.vbr_rh;break;case Lame.MEDIUM_FAST:t=Lame.V4,e.VBR=o.vbr_mtrh;break;case Lame.STANDARD:t=Lame.V2,e.VBR=o.vbr_rh;break;case Lame.STANDARD_FAST:t=Lame.V2,e.VBR=o.vbr_mtrh;break;case Lame.EXTREME:t=Lame.V0,e.VBR=o.vbr_rh;break;case Lame.EXTREME_FAST:t=Lame.V0,e.VBR=o.vbr_mtrh;break;case Lame.INSANE:return t=320,e.preset=t,c(e,t,n),e.VBR=o.vbr_off,t}switch(e.preset=t,t){case Lame.V9:return i(e,9,n),t;case Lame.V8:return i(e,8,n),t;case Lame.V7:return i(e,7,n),t;case Lame.V6:return i(e,6,n),t;case Lame.V5:return i(e,5,n),t;case Lame.V4:return i(e,4,n),t;case Lame.V3:return i(e,3,n),t;case Lame.V2:return i(e,2,n),t;case Lame.V1:return i(e,1,n),t;case Lame.V0:return i(e,0,n),t;default:break}return 8<=t&&t<=320?c(e,t,n):(e.preset=0,t)}}e.exports=a},"3a7b":function(e,t,n){"use strict";var r=n("ebb5"),o=n("b727").findIndex,a=r.aTypedArray,i=r.exportTypedArrayMethod;i("findIndex",(function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0)}))},"3bbe":function(e,t,n){var r=n("861d");e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3c5d":function(e,t,n){"use strict";var r=n("ebb5"),o=n("50c4"),a=n("182d"),i=n("7b0b"),s=n("d039"),c=r.aTypedArray,l=r.exportTypedArrayMethod,u=s((function(){new Int8Array(1).set({})}));l("set",(function(e){c(this);var t=a(arguments.length>1?arguments[1]:void 0,1),n=this.length,r=i(e),s=o(r.length),l=0;if(s+t>n)throw RangeError("Wrong length");while(l<s)this[t+l]=r[l++]}),u)},"3ca3":function(e,t,n){"use strict";var r=n("6547").charAt,o=n("577e"),a=n("69f3"),i=n("7dd0"),s="String Iterator",c=a.set,l=a.getterFor(s);i(String,"String",(function(e){c(this,{type:s,string:o(e),index:0})}),(function(){var e,t=l(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))},"3f8c":function(e,t){e.exports={}},"3fcc":function(e,t,n){"use strict";var r=n("ebb5"),o=n("b727").map,a=n("b6b7"),i=r.aTypedArray,s=r.exportTypedArrayMethod;s("map",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(a(e))(t)}))}))},"408a":function(e,t,n){var r=n("c6b6");e.exports=function(e){if("number"!=typeof e&&"Number"!=r(e))throw TypeError("Incorrect invocation");return+e}},4128:function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var r=n("1652"),o=n("bea1"),a=s(o),i=n("7656");function s(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var c=function(e){return new r.TokenState(e)},l=c(),u=c(),f=c(),d=c(),h=c(),p=c(),m=c(),_=c(o.URL),g=c(),b=c(o.URL),v=c(o.URL),y=c(),w=c(),x=c(),k=c(),S=c(),A=c(o.URL),M=c(o.URL),R=c(o.URL),E=c(o.URL),T=c(),O=c(),L=c(),B=c(),I=c(),C=c(),P=c(o.EMAIL),j=c(),N=c(o.EMAIL),H=c(o.MAILTOEMAIL),F=c(),D=c(),U=c(),V=c(),q=c(o.NL);l.on(i.NL,q).on(i.PROTOCOL,u).on(i.MAILTO,f).on(i.SLASH,d),u.on(i.SLASH,d),d.on(i.SLASH,h),l.on(i.TLD,p).on(i.DOMAIN,p).on(i.LOCALHOST,_).on(i.NUM,p),h.on(i.TLD,v).on(i.DOMAIN,v).on(i.NUM,v).on(i.LOCALHOST,v),p.on(i.DOT,m),I.on(i.DOT,C),m.on(i.TLD,_).on(i.DOMAIN,p).on(i.NUM,p).on(i.LOCALHOST,p),C.on(i.TLD,P).on(i.DOMAIN,I).on(i.NUM,I).on(i.LOCALHOST,I),_.on(i.DOT,m),P.on(i.DOT,C),_.on(i.COLON,g).on(i.SLASH,v),g.on(i.NUM,b),b.on(i.SLASH,v),P.on(i.COLON,j),j.on(i.NUM,N);var $=[i.DOMAIN,i.AT,i.LOCALHOST,i.NUM,i.PLUS,i.POUND,i.PROTOCOL,i.SLASH,i.TLD,i.UNDERSCORE,i.SYM,i.AMPERSAND],z=[i.COLON,i.DOT,i.QUERY,i.PUNCTUATION,i.CLOSEBRACE,i.CLOSEBRACKET,i.CLOSEANGLEBRACKET,i.CLOSEPAREN,i.OPENBRACE,i.OPENBRACKET,i.OPENANGLEBRACKET,i.OPENPAREN];v.on(i.OPENBRACE,w).on(i.OPENBRACKET,x).on(i.OPENANGLEBRACKET,k).on(i.OPENPAREN,S),y.on(i.OPENBRACE,w).on(i.OPENBRACKET,x).on(i.OPENANGLEBRACKET,k).on(i.OPENPAREN,S),w.on(i.CLOSEBRACE,v),x.on(i.CLOSEBRACKET,v),k.on(i.CLOSEANGLEBRACKET,v),S.on(i.CLOSEPAREN,v),A.on(i.CLOSEBRACE,v),M.on(i.CLOSEBRACKET,v),R.on(i.CLOSEANGLEBRACKET,v),E.on(i.CLOSEPAREN,v),T.on(i.CLOSEBRACE,v),O.on(i.CLOSEBRACKET,v),L.on(i.CLOSEANGLEBRACKET,v),B.on(i.CLOSEPAREN,v),w.on($,A),x.on($,M),k.on($,R),S.on($,E),w.on(z,T),x.on(z,O),k.on(z,L),S.on(z,B),A.on($,A),M.on($,M),R.on($,R),E.on($,E),A.on(z,A),M.on(z,M),R.on(z,R),E.on(z,E),T.on($,A),O.on($,M),L.on($,R),B.on($,E),T.on(z,T),O.on(z,O),L.on(z,L),B.on(z,B),v.on($,v),y.on($,v),v.on(z,y),y.on(z,y),f.on(i.TLD,H).on(i.DOMAIN,H).on(i.NUM,H).on(i.LOCALHOST,H),H.on($,H).on(z,F),F.on($,H).on(z,F);var Y=[i.DOMAIN,i.NUM,i.PLUS,i.POUND,i.QUERY,i.UNDERSCORE,i.SYM,i.AMPERSAND,i.TLD];p.on(Y,D).on(i.AT,U),_.on(Y,D).on(i.AT,U),m.on(Y,D),D.on(Y,D).on(i.AT,U).on(i.DOT,V),V.on(Y,D),U.on(i.TLD,I).on(i.DOMAIN,I).on(i.LOCALHOST,P);var X=function(e){var t=e.length,n=0,r=[],a=[];while(n<t){var i=l,s=null,c=null,u=0,f=null,d=-1;while(n<t&&!(s=i.next(e[n])))a.push(e[n++]);while(n<t&&(c=s||i.next(e[n])))s=null,i=c,i.accepts()?(d=0,f=i):d>=0&&d++,n++,u++;if(d<0)for(var h=n-u;h<n;h++)a.push(e[h]);else{a.length>0&&(r.push(new o.TEXT(a)),a=[]),n-=d,u-=d;var p=f.emit();r.push(new p(e.slice(n-u,n)))}}return a.length>0&&r.push(new o.TEXT(a)),r};t.State=r.TokenState,t.TOKENS=a,t.run=X,t.start=l},4160:function(e,t,n){"use strict";var r=n("23e7"),o=n("17c2");r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},"428f":function(e,t,n){var r=n("da84");e.exports=r},"44ad":function(e,t,n){var r=n("d039"),o=n("c6b6"),a="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?a.call(e,""):Object(e)}:Object},"44d2":function(e,t,n){var r=n("b622"),o=n("7c73"),a=n("9bf2"),i=r("unscopables"),s=Array.prototype;void 0==s[i]&&a.f(s,i,{configurable:!0,value:o(null)}),e.exports=function(e){s[i][e]=!0}},"44de":function(e,t,n){var r=n("da84");e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},"44e7":function(e,t,n){var r=n("861d"),o=n("c6b6"),a=n("b622"),i=a("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},"45fc":function(e,t,n){"use strict";var r=n("23e7"),o=n("b727").some,a=n("a640"),i=a("some");r({target:"Array",proto:!0,forced:!i},{some:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},"466d":function(e,t,n){"use strict";var r=n("d784"),o=n("825a"),a=n("50c4"),i=n("577e"),s=n("1d80"),c=n("8aa5"),l=n("14c3");r("match",(function(e,t,n){return[function(t){var n=s(this),r=void 0==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](i(n))},function(e){var r=o(this),s=i(e),u=n(t,r,s);if(u.done)return u.value;if(!r.global)return l(r,s);var f=r.unicode;r.lastIndex=0;var d,h=[],p=0;while(null!==(d=l(r,s))){var m=i(d[0]);h[p]=m,""===m&&(r.lastIndex=c(s,a(r.lastIndex),f)),p++}return 0===p?null:h}]}))},"46f3":function(e,t,n){"use strict";function r(){return function(e){e&&(this.v=e)}}t.__esModule=!0,t.createTokenClass=r},4795:function(e,t,n){var r=n("23e7"),o=n("da84"),a=n("342f"),i=[].slice,s=/MSIE .\./.test(a),c=function(e){return function(t,n){var r=arguments.length>2,o=r?i.call(arguments,2):void 0;return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,o)}:t,n)}};r({global:!0,bind:!0,forced:s},{setTimeout:c(o.setTimeout),setInterval:c(o.setInterval)})},4840:function(e,t,n){var r=n("825a"),o=n("1c0b"),a=n("b622"),i=a("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||void 0==(n=r(a)[i])?t:o(n)}},"485a":function(e,t,n){var r=n("861d");e.exports=function(e,t){var n,o;if("string"===t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if("string"!==t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},4930:function(e,t,n){var r=n("2d00"),o=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},"498a":function(e,t,n){"use strict";var r=n("23e7"),o=n("58a8").trim,a=n("c8d2");r({target:"String",proto:!0,forced:a("trim")},{trim:function(){return o(this)}})},"4a65":function(e,t,n){var r=n("0206"),o=(r.System,r.VbrMode,r.Float,r.ShortBlock,r.Util,r.Arrays,r.new_array_n,r.new_byte,r.new_double,r.new_float),a=(r.new_float_n,r.new_int),i=(r.new_int_n,r.assert),s=n("f052"),c=n("4b5e"),l=n("9828"),u=n("bd8b");function f(e){var t=e;this.quantize=t,this.iteration_loop=function(e,t,n,r){var f,d=e.internal_flags,h=o(l.SFBMAX),p=o(576),m=a(2),_=0,g=d.l3_side,b=new s(_);this.quantize.rv.ResvFrameBegin(e,b),_=b.bits;for(var v=0;v<d.mode_gr;v++){f=this.quantize.qupvt.on_pe(e,t,m,_,v,v),d.mode_ext==c.MPG_MD_MS_LR&&(this.quantize.ms_convert(d.l3_side,v),this.quantize.qupvt.reduce_side(m,n[v],_,f));for(var y=0;y<d.channels_out;y++){var w,x,k=g.tt[v][y];k.block_type!=c.SHORT_TYPE?(w=0,x=d.PSY.mask_adjust-w):(w=0,x=d.PSY.mask_adjust_short-w),d.masking_lower=Math.pow(10,.1*x),this.quantize.init_outer_loop(d,k),this.quantize.init_xrpow(d,k,p)&&(this.quantize.qupvt.calc_xmin(e,r[v][y],k,h),this.quantize.outer_loop(e,k,h,p,y,m[y])),this.quantize.iteration_finish_one(d,v,y),i(k.part2_3_length<=u.MAX_BITS_PER_CHANNEL),i(k.part2_3_length<=m[y])}}this.quantize.rv.ResvFrameEnd(d,_)}}e.exports=f},"4b5e":function(e,t,n){var r=n("0206"),o=r.System,a=r.VbrMode,i=(r.Float,r.ShortBlock,r.Util,r.Arrays,r.new_array_n),s=(r.new_byte,r.new_double,r.new_float),c=r.new_float_n,l=r.new_int,u=(r.new_int_n,r.assert);function f(){var e=n("f3e2"),t=n("f26d"),r=f.FFTOFFSET,d=f.MPG_MD_MS_LR,h=null;this.psy=null;var p=null,m=null,_=null;this.setModules=function(e,t,n,r){h=e,this.psy=t,p=t,m=r,_=n};var g=new e;function b(e){var t,n;if(0!=e.ATH.useAdjust)if(n=e.loudness_sq[0][0],t=e.loudness_sq[1][0],2==e.channels_out?(n+=e.loudness_sq[0][1],t+=e.loudness_sq[1][1]):(n+=n,t+=t),2==e.mode_gr&&(n=Math.max(n,t)),n*=.5,n*=e.ATH.aaSensitivityP,n>.03125)e.ATH.adjust>=1?e.ATH.adjust=1:e.ATH.adjust<e.ATH.adjustLimit&&(e.ATH.adjust=e.ATH.adjustLimit),e.ATH.adjustLimit=1;else{var r=31.98*n+625e-6;e.ATH.adjust>=r?(e.ATH.adjust*=.075*r+.925,e.ATH.adjust<r&&(e.ATH.adjust=r)):e.ATH.adjustLimit>=r?e.ATH.adjust=r:e.ATH.adjust<e.ATH.adjustLimit&&(e.ATH.adjust=e.ATH.adjustLimit),e.ATH.adjustLimit=r}else e.ATH.adjust=1}function v(e){var t,n;for(u(0<=e.bitrate_index&&e.bitrate_index<16),u(0<=e.mode_ext&&e.mode_ext<4),e.bitrate_stereoMode_Hist[e.bitrate_index][4]++,e.bitrate_stereoMode_Hist[15][4]++,2==e.channels_out&&(e.bitrate_stereoMode_Hist[e.bitrate_index][e.mode_ext]++,e.bitrate_stereoMode_Hist[15][e.mode_ext]++),t=0;t<e.mode_gr;++t)for(n=0;n<e.channels_out;++n){var r=0|e.l3_side.tt[t][n].block_type;0!=e.l3_side.tt[t][n].mixed_block_flag&&(r=4),e.bitrate_blockType_Hist[e.bitrate_index][r]++,e.bitrate_blockType_Hist[e.bitrate_index][5]++,e.bitrate_blockType_Hist[15][r]++,e.bitrate_blockType_Hist[15][5]++}}function y(e,t){var n,r,o=e.internal_flags;if(0==o.lame_encode_frame_init){var a,i,c=s(2014),l=s(2014);for(o.lame_encode_frame_init=1,a=0,i=0;a<286+576*(1+o.mode_gr);++a)a<576*o.mode_gr?(c[a]=0,2==o.channels_out&&(l[a]=0)):(c[a]=t[0][i],2==o.channels_out&&(l[a]=t[1][i]),++i);for(r=0;r<o.mode_gr;r++)for(n=0;n<o.channels_out;n++)o.l3_side.tt[r][n].block_type=f.SHORT_TYPE;g.mdct_sub48(o,c,l),u(576>=f.FFTOFFSET),u(o.mf_size>=f.BLKSIZE+e.framesize-f.FFTOFFSET),u(o.mf_size>=512+e.framesize-32)}}this.lame_encode_mp3_frame=function(e,n,s,u,w,x){var k,S=i([2,2]);S[0][0]=new t,S[0][1]=new t,S[1][0]=new t,S[1][1]=new t;var A,M=i([2,2]);M[0][0]=new t,M[0][1]=new t,M[1][0]=new t,M[1][1]=new t;var R,E,T,O=[null,null],L=e.internal_flags,B=c([2,4]),I=[.5,.5],C=[[0,0],[0,0]],P=[[0,0],[0,0]];if(O[0]=n,O[1]=s,0==L.lame_encode_frame_init&&y(e,O),L.padding=0,(L.slot_lag-=L.frac_SpF)<0&&(L.slot_lag+=e.out_samplerate,L.padding=1),0!=L.psymodel){var j,N=[null,null],H=0,F=l(2);for(T=0;T<L.mode_gr;T++){for(E=0;E<L.channels_out;E++)N[E]=O[E],H=576+576*T-f.FFTOFFSET;if(j=e.VBR==a.vbr_mtrh||e.VBR==a.vbr_mt?p.L3psycho_anal_vbr(e,N,H,T,S,M,C[T],P[T],B[T],F):p.L3psycho_anal_ns(e,N,H,T,S,M,C[T],P[T],B[T],F),0!=j)return-4;for(e.mode==MPEGMode.JOINT_STEREO&&(I[T]=B[T][2]+B[T][3],I[T]>0&&(I[T]=B[T][3]/I[T])),E=0;E<L.channels_out;E++){var D=L.l3_side.tt[T][E];D.block_type=F[E],D.mixed_block_flag=0}}}else for(T=0;T<L.mode_gr;T++)for(E=0;E<L.channels_out;E++)L.l3_side.tt[T][E].block_type=f.NORM_TYPE,L.l3_side.tt[T][E].mixed_block_flag=0,P[T][E]=C[T][E]=700;if(b(L),g.mdct_sub48(L,O[0],O[1]),L.mode_ext=f.MPG_MD_LR_LR,e.force_ms)L.mode_ext=f.MPG_MD_MS_LR;else if(e.mode==MPEGMode.JOINT_STEREO){var U=0,V=0;for(T=0;T<L.mode_gr;T++)for(E=0;E<L.channels_out;E++)U+=P[T][E],V+=C[T][E];if(U<=1*V){var q=L.l3_side.tt[0],$=L.l3_side.tt[L.mode_gr-1];q[0].block_type==q[1].block_type&&$[0].block_type==$[1].block_type&&(L.mode_ext=f.MPG_MD_MS_LR)}}if(L.mode_ext==d?(A=M,R=P):(A=S,R=C),e.analysis&&null!=L.pinfo)for(T=0;T<L.mode_gr;T++)for(E=0;E<L.channels_out;E++)L.pinfo.ms_ratio[T]=L.ms_ratio[T],L.pinfo.ms_ener_ratio[T]=I[T],L.pinfo.blocktype[T][E]=L.l3_side.tt[T][E].block_type,L.pinfo.pe[T][E]=R[T][E],o.arraycopy(L.l3_side.tt[T][E].xr,0,L.pinfo.xr[T][E],0,576),L.mode_ext==d&&(L.pinfo.ers[T][E]=L.pinfo.ers[T][E+2],o.arraycopy(L.pinfo.energy[T][E+2],0,L.pinfo.energy[T][E],0,L.pinfo.energy[T][E].length));if(e.VBR==a.vbr_off||e.VBR==a.vbr_abr){var z,Y;for(z=0;z<18;z++)L.nsPsy.pefirbuf[z]=L.nsPsy.pefirbuf[z+1];for(Y=0,T=0;T<L.mode_gr;T++)for(E=0;E<L.channels_out;E++)Y+=R[T][E];for(L.nsPsy.pefirbuf[18]=Y,Y=L.nsPsy.pefirbuf[9],z=0;z<9;z++)Y+=(L.nsPsy.pefirbuf[z]+L.nsPsy.pefirbuf[18-z])*f.fircoef[z];for(Y=3350*L.mode_gr*L.channels_out/Y,T=0;T<L.mode_gr;T++)for(E=0;E<L.channels_out;E++)R[T][E]*=Y}if(L.iteration_loop.iteration_loop(e,R,I,A),h.format_bitstream(e),k=h.copy_buffer(L,u,w,x,1),e.bWriteVbrTag&&m.addVbrFrame(e),e.analysis&&null!=L.pinfo){for(E=0;E<L.channels_out;E++){var X;for(X=0;X<r;X++)L.pinfo.pcmdata[E][X]=L.pinfo.pcmdata[E][X+e.framesize];for(X=r;X<1600;X++)L.pinfo.pcmdata[E][X]=O[E][X-r]}_.set_frame_pinfo(e,A)}return v(L),k}}f.ENCDELAY=576,f.POSTDELAY=1152,f.MDCTDELAY=48,f.FFTOFFSET=224+f.MDCTDELAY,f.DECDELAY=528,f.SBLIMIT=32,f.CBANDS=64,f.SBPSY_l=21,f.SBPSY_s=12,f.SBMAX_l=22,f.SBMAX_s=13,f.PSFB21=6,f.PSFB12=6,f.BLKSIZE=1024,f.HBLKSIZE=f.BLKSIZE/2+1,f.BLKSIZE_s=256,f.HBLKSIZE_s=f.BLKSIZE_s/2+1,f.NORM_TYPE=0,f.START_TYPE=1,f.SHORT_TYPE=2,f.STOP_TYPE=3,f.MPG_MD_LR_LR=0,f.MPG_MD_LR_I=1,f.MPG_MD_MS_LR=2,f.MPG_MD_MS_I=3,f.fircoef=[-.1039435,-.1892065,5*-.0432472,-.155915,3898045e-23,.0467745*5,.50455,.756825,.187098*5],e.exports=f},"4c1d":function(e,t,n){"use strict";n.r(t),n.d(t,"roomsValidation",(function(){return o})),n.d(t,"partcipantsValidation",(function(){return a})),n.d(t,"messagesValidation",(function(){return i}));n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("e260"),n("3ca3"),n("ddb0");function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n("a623"),n("277d"),n("7db0");function o(e){var t=[{key:"roomId",type:["string","number"]},{key:"roomName",type:["string"]},{key:"users",type:["array"]}],n=function(e,t){return t.every((function(t){var n=!1;return("array"===t.type[0]&&Array.isArray(e[t.key])||t.type.find((function(n){return n===r(e[t.key])})))&&(n=!0),n&&s(e,t.key)}))};if(!n(e,t))throw new Error("Rooms object is not valid! Must contain roomId[String, Number], roomName[String] and users[Array]")}function a(e){var t=[{key:"_id",type:["string","number"]},{key:"username",type:["string"]}],n=function(e,t){return t.every((function(t){var n=t.type.find((function(n){return n===r(e[t.key])}));return n&&s(e,t.key)}))};if(!n(e,t))throw new Error("Participants object is not valid! Must contain _id[String, Number] and username[String]")}function i(e){var t=[{key:"_id",type:["string","number"]},{key:"content",type:["string","number"]},{key:"senderId",type:["string","number"]}],n=function(e,t){return t.every((function(t){var n=t.type.find((function(n){return n===r(e[t.key])}));return n&&s(e,t.key)}))};if(!n(e,t))throw new Error("Messages object is not valid! Must contain _id[String, Number], content[String, Number] and senderId[String, Number]")}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)&&null!==e[t]&&void 0!==e[t]}},"4d63":function(e,t,n){var r=n("83ab"),o=n("da84"),a=n("94ca"),i=n("7156"),s=n("9112"),c=n("9bf2").f,l=n("241c").f,u=n("44e7"),f=n("577e"),d=n("ad6d"),h=n("9f7f"),p=n("6eeb"),m=n("d039"),_=n("5135"),g=n("69f3").enforce,b=n("2626"),v=n("b622"),y=n("fce3"),w=n("107c"),x=v("match"),k=o.RegExp,S=k.prototype,A=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,M=/a/g,R=/a/g,E=new k(M)!==M,T=h.UNSUPPORTED_Y,O=r&&(!E||T||y||w||m((function(){return R[x]=!1,k(M)!=M||k(R)==R||"/a/i"!=k(M,"i")}))),L=function(e){for(var t,n=e.length,r=0,o="",a=!1;r<=n;r++)t=e.charAt(r),"\\"!==t?a||"."!==t?("["===t?a=!0:"]"===t&&(a=!1),o+=t):o+="[\\s\\S]":o+=t+e.charAt(++r);return o},B=function(e){for(var t,n=e.length,r=0,o="",a=[],i={},s=!1,c=!1,l=0,u="";r<=n;r++){if(t=e.charAt(r),"\\"===t)t+=e.charAt(++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:A.test(e.slice(r+1))&&(r+=2,c=!0),o+=t,l++;continue;case">"===t&&c:if(""===u||_(i,u))throw new SyntaxError("Invalid capture group name");i[u]=!0,a.push([u,l]),c=!1,u="";continue}c?u+=t:o+=t}return[o,a]};if(a("RegExp",O)){for(var I=function(e,t){var n,r,o,a,c,l,h=this instanceof I,p=u(e),m=void 0===t,_=[],b=e;if(!h&&p&&m&&e.constructor===I)return e;if((p||e instanceof I)&&(e=e.source,m&&(t="flags"in b?b.flags:d.call(b))),e=void 0===e?"":f(e),t=void 0===t?"":f(t),b=e,y&&"dotAll"in M&&(r=!!t&&t.indexOf("s")>-1,r&&(t=t.replace(/s/g,""))),n=t,T&&"sticky"in M&&(o=!!t&&t.indexOf("y")>-1,o&&(t=t.replace(/y/g,""))),w&&(a=B(e),e=a[0],_=a[1]),c=i(k(e,t),h?this:S,I),(r||o||_.length)&&(l=g(c),r&&(l.dotAll=!0,l.raw=I(L(e),n)),o&&(l.sticky=!0),_.length&&(l.groups=_)),e!==b)try{s(c,"source",""===b?"(?:)":b)}catch(v){}return c},C=function(e){e in I||c(I,e,{configurable:!0,get:function(){return k[e]},set:function(t){k[e]=t}})},P=l(k),j=0;P.length>j;)C(P[j++]);S.constructor=I,I.prototype=S,p(o,"RegExp",I)}b("RegExp")},"4d64":function(e,t,n){var r=n("fc6a"),o=n("50c4"),a=n("23cb"),i=function(e){return function(t,n,i){var s,c=r(t),l=o(c.length),u=a(i,l);if(e&&n!=n){while(l>u)if(s=c[u++],s!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},"4de4":function(e,t,n){"use strict";var r=n("23e7"),o=n("b727").filter,a=n("1dde"),i=a("filter");r({target:"Array",proto:!0,forced:!i},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,n){"use strict";var r=n("0366"),o=n("7b0b"),a=n("9bdd"),i=n("e95a"),s=n("50c4"),c=n("8418"),l=n("35a1");e.exports=function(e){var t,n,u,f,d,h,p=o(e),m="function"==typeof this?this:Array,_=arguments.length,g=_>1?arguments[1]:void 0,b=void 0!==g,v=l(p),y=0;if(b&&(g=r(g,_>2?arguments[2]:void 0,2)),void 0==v||m==Array&&i(v))for(t=s(p.length),n=new m(t);t>y;y++)h=b?g(p[y],y):p[y],c(n,y,h);else for(f=v.call(p),d=f.next,n=new m;!(u=d.call(f)).done;y++)h=b?a(f,g,[u.value,y],!0):u.value,c(n,y,h);return n.length=y,n}},"4e82":function(e,t,n){"use strict";var r=n("23e7"),o=n("1c0b"),a=n("7b0b"),i=n("50c4"),s=n("577e"),c=n("d039"),l=n("addb"),u=n("a640"),f=n("04d1"),d=n("d998"),h=n("2d00"),p=n("512c"),m=[],_=m.sort,g=c((function(){m.sort(void 0)})),b=c((function(){m.sort(null)})),v=u("sort"),y=!c((function(){if(h)return h<70;if(!(f&&f>3)){if(d)return!0;if(p)return p<603;var e,t,n,r,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)m.push({k:t+r,v:n})}for(m.sort((function(e,t){return t.v-e.v})),r=0;r<m.length;r++)t=m[r].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}})),w=g||!b||!v||!y,x=function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:s(t)>s(n)?1:-1}};r({target:"Array",proto:!0,forced:w},{sort:function(e){void 0!==e&&o(e);var t=a(this);if(y)return void 0===e?_.call(t):_.call(t,e);var n,r,s=[],c=i(t.length);for(r=0;r<c;r++)r in t&&s.push(t[r]);s=l(s,x(e)),n=s.length,r=0;while(r<n)t[r]=s[r++];while(r<c)delete t[r++];return t}})},"4fad":function(e,t,n){var r=n("23e7"),o=n("6f53").entries;r({target:"Object",stat:!0},{entries:function(e){return o(e)}})},"50c4":function(e,t,n){var r=n("a691"),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},"512c":function(e,t,n){var r=n("342f"),o=r.match(/AppleWebKit\/(\d+)\./);e.exports=!!o&&+o[1]},5135:function(e,t,n){var r=n("7b0b"),o={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return o.call(r(e),t)}},5319:function(e,t,n){"use strict";var r=n("d784"),o=n("d039"),a=n("825a"),i=n("a691"),s=n("50c4"),c=n("577e"),l=n("1d80"),u=n("8aa5"),f=n("0cb2"),d=n("14c3"),h=n("b622"),p=h("replace"),m=Math.max,_=Math.min,g=function(e){return void 0===e?e:String(e)},b=function(){return"$0"==="a".replace(/./,"$0")}(),v=function(){return!!/./[p]&&""===/./[p]("a","$0")}(),y=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));r("replace",(function(e,t,n){var r=v?"$":"$0";return[function(e,n){var r=l(this),o=void 0==e?void 0:e[p];return void 0!==o?o.call(e,r,n):t.call(c(r),e,n)},function(e,o){var l=a(this),h=c(e);if("string"===typeof o&&-1===o.indexOf(r)&&-1===o.indexOf("$<")){var p=n(t,l,h,o);if(p.done)return p.value}var b="function"===typeof o;b||(o=c(o));var v=l.global;if(v){var y=l.unicode;l.lastIndex=0}var w=[];while(1){var x=d(l,h);if(null===x)break;if(w.push(x),!v)break;var k=c(x[0]);""===k&&(l.lastIndex=u(h,s(l.lastIndex),y))}for(var S="",A=0,M=0;M<w.length;M++){x=w[M];for(var R=c(x[0]),E=m(_(i(x.index),h.length),0),T=[],O=1;O<x.length;O++)T.push(g(x[O]));var L=x.groups;if(b){var B=[R].concat(T,E,h);void 0!==L&&B.push(L);var I=c(o.apply(void 0,B))}else I=f(R,h,E,T,L,o);E>=A&&(S+=h.slice(A,E)+I,A=E+R.length)}return S+h.slice(A)}]}),!y||!b||v)},5692:function(e,t,n){var r=n("c430"),o=n("c6cd");(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.16.0",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,t,n){var r=n("d066"),o=n("241c"),a=n("7418"),i=n("825a");e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(i(e)),n=a.f;return n?t.concat(n(e)):t}},"577e":function(e,t,n){var r=n("d9b5");e.exports=function(e){if(r(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)}},5899:function(e,t){e.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},"58a8":function(e,t,n){var r=n("1d80"),o=n("577e"),a=n("5899"),i="["+a+"]",s=RegExp("^"+i+i+"*"),c=RegExp(i+i+"*$"),l=function(e){return function(t){var n=o(r(t));return 1&e&&(n=n.replace(s,"")),2&e&&(n=n.replace(c,"")),n}};e.exports={start:l(1),end:l(2),trim:l(3)}},"58b1":function(e,t,n){var r=n("0206"),o=r.assert;function a(){var e;this.setModules=function(t){e=t},this.ResvFrameBegin=function(t,n){var r,a=t.internal_flags,i=a.l3_side,s=e.getframebits(t);n.bits=(s-8*a.sideinfo_len)/a.mode_gr;var c=2048*a.mode_gr-8;t.brate>320?r=8*int(1e3*t.brate/(t.out_samplerate/1152)/8+.5):(r=11520,t.strict_ISO&&(r=8*int(32e4/(t.out_samplerate/1152)/8+.5))),a.ResvMax=r-s,a.ResvMax>c&&(a.ResvMax=c),(a.ResvMax<0||t.disable_reservoir)&&(a.ResvMax=0);var l=n.bits*a.mode_gr+Math.min(a.ResvSize,a.ResvMax);return l>r&&(l=r),o(0==a.ResvMax%8),o(a.ResvMax>=0),i.resvDrain_pre=0,null!=a.pinfo&&(a.pinfo.mean_bits=n.bits/2,a.pinfo.resvsize=a.ResvSize),l},this.ResvMaxBits=function(e,t,n,r){var o,a=e.internal_flags,i=a.ResvSize,s=a.ResvMax;0!=r&&(i+=t),0!=(1&a.substep_shaping)&&(s*=.9),n.bits=t,10*i>9*s?(o=i-9*s/10,n.bits+=o,a.substep_shaping|=128):(o=0,a.substep_shaping&=127,e.disable_reservoir||0!=(1&a.substep_shaping)||(n.bits-=.1*t));var c=i<6*a.ResvMax/10?i:6*a.ResvMax/10;return c-=o,c<0&&(c=0),c},this.ResvAdjust=function(e,t){e.ResvSize-=t.part2_3_length+t.part2_length},this.ResvFrameEnd=function(e,t){var n,r=e.l3_side;e.ResvSize+=t*e.mode_gr;var a=0;r.resvDrain_post=0,r.resvDrain_pre=0,0!=(n=e.ResvSize%8)&&(a+=n),n=e.ResvSize-a-e.ResvMax,n>0&&(o(0==n%8),o(n>=0),a+=n);var i=Math.min(8*r.main_data_begin,a)/8;r.resvDrain_pre+=8*i,a-=8*i,e.ResvSize-=8*i,r.main_data_begin-=i,r.resvDrain_post+=a,e.ResvSize-=a}}e.exports=a},"5a34":function(e,t,n){var r=n("44e7");e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5e89":function(e,t,n){var r=n("861d"),o=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&o(e)===e}},"5f84":function(e,t){function n(e,t,n,r){this.xlen=e,this.linmax=t,this.table=n,this.hlen=r}var r={t1HB:[1,1,1,0],t2HB:[1,2,1,3,1,1,3,2,0],t3HB:[3,2,1,1,1,1,3,2,0],t5HB:[1,2,6,5,3,1,4,4,7,5,7,1,6,1,1,0],t6HB:[7,3,5,1,6,2,3,2,5,4,4,1,3,3,2,0],t7HB:[1,2,10,19,16,10,3,3,7,10,5,3,11,4,13,17,8,4,12,11,18,15,11,2,7,6,9,14,3,1,6,4,5,3,2,0],t8HB:[3,4,6,18,12,5,5,1,2,16,9,3,7,3,5,14,7,3,19,17,15,13,10,4,13,5,8,11,5,1,12,4,4,1,1,0],t9HB:[7,5,9,14,15,7,6,4,5,5,6,7,7,6,8,8,8,5,15,6,9,10,5,1,11,7,9,6,4,1,14,4,6,2,6,0],t10HB:[1,2,10,23,35,30,12,17,3,3,8,12,18,21,12,7,11,9,15,21,32,40,19,6,14,13,22,34,46,23,18,7,20,19,33,47,27,22,9,3,31,22,41,26,21,20,5,3,14,13,10,11,16,6,5,1,9,8,7,8,4,4,2,0],t11HB:[3,4,10,24,34,33,21,15,5,3,4,10,32,17,11,10,11,7,13,18,30,31,20,5,25,11,19,59,27,18,12,5,35,33,31,58,30,16,7,5,28,26,32,19,17,15,8,14,14,12,9,13,14,9,4,1,11,4,6,6,6,3,2,0],t12HB:[9,6,16,33,41,39,38,26,7,5,6,9,23,16,26,11,17,7,11,14,21,30,10,7,17,10,15,12,18,28,14,5,32,13,22,19,18,16,9,5,40,17,31,29,17,13,4,2,27,12,11,15,10,7,4,1,27,12,8,12,6,3,1,0],t13HB:[1,5,14,21,34,51,46,71,42,52,68,52,67,44,43,19,3,4,12,19,31,26,44,33,31,24,32,24,31,35,22,14,15,13,23,36,59,49,77,65,29,40,30,40,27,33,42,16,22,20,37,61,56,79,73,64,43,76,56,37,26,31,25,14,35,16,60,57,97,75,114,91,54,73,55,41,48,53,23,24,58,27,50,96,76,70,93,84,77,58,79,29,74,49,41,17,47,45,78,74,115,94,90,79,69,83,71,50,59,38,36,15,72,34,56,95,92,85,91,90,86,73,77,65,51,44,43,42,43,20,30,44,55,78,72,87,78,61,46,54,37,30,20,16,53,25,41,37,44,59,54,81,66,76,57,54,37,18,39,11,35,33,31,57,42,82,72,80,47,58,55,21,22,26,38,22,53,25,23,38,70,60,51,36,55,26,34,23,27,14,9,7,34,32,28,39,49,75,30,52,48,40,52,28,18,17,9,5,45,21,34,64,56,50,49,45,31,19,12,15,10,7,6,3,48,23,20,39,36,35,53,21,16,23,13,10,6,1,4,2,16,15,17,27,25,20,29,11,17,12,16,8,1,1,0,1],t15HB:[7,12,18,53,47,76,124,108,89,123,108,119,107,81,122,63,13,5,16,27,46,36,61,51,42,70,52,83,65,41,59,36,19,17,15,24,41,34,59,48,40,64,50,78,62,80,56,33,29,28,25,43,39,63,55,93,76,59,93,72,54,75,50,29,52,22,42,40,67,57,95,79,72,57,89,69,49,66,46,27,77,37,35,66,58,52,91,74,62,48,79,63,90,62,40,38,125,32,60,56,50,92,78,65,55,87,71,51,73,51,70,30,109,53,49,94,88,75,66,122,91,73,56,42,64,44,21,25,90,43,41,77,73,63,56,92,77,66,47,67,48,53,36,20,71,34,67,60,58,49,88,76,67,106,71,54,38,39,23,15,109,53,51,47,90,82,58,57,48,72,57,41,23,27,62,9,86,42,40,37,70,64,52,43,70,55,42,25,29,18,11,11,118,68,30,55,50,46,74,65,49,39,24,16,22,13,14,7,91,44,39,38,34,63,52,45,31,52,28,19,14,8,9,3,123,60,58,53,47,43,32,22,37,24,17,12,15,10,2,1,71,37,34,30,28,20,17,26,21,16,10,6,8,6,2,0],t16HB:[1,5,14,44,74,63,110,93,172,149,138,242,225,195,376,17,3,4,12,20,35,62,53,47,83,75,68,119,201,107,207,9,15,13,23,38,67,58,103,90,161,72,127,117,110,209,206,16,45,21,39,69,64,114,99,87,158,140,252,212,199,387,365,26,75,36,68,65,115,101,179,164,155,264,246,226,395,382,362,9,66,30,59,56,102,185,173,265,142,253,232,400,388,378,445,16,111,54,52,100,184,178,160,133,257,244,228,217,385,366,715,10,98,48,91,88,165,157,148,261,248,407,397,372,380,889,884,8,85,84,81,159,156,143,260,249,427,401,392,383,727,713,708,7,154,76,73,141,131,256,245,426,406,394,384,735,359,710,352,11,139,129,67,125,247,233,229,219,393,743,737,720,885,882,439,4,243,120,118,115,227,223,396,746,742,736,721,712,706,223,436,6,202,224,222,218,216,389,386,381,364,888,443,707,440,437,1728,4,747,211,210,208,370,379,734,723,714,1735,883,877,876,3459,865,2,377,369,102,187,726,722,358,711,709,866,1734,871,3458,870,434,0,12,10,7,11,10,17,11,9,13,12,10,7,5,3,1,3],t24HB:[15,13,46,80,146,262,248,434,426,669,653,649,621,517,1032,88,14,12,21,38,71,130,122,216,209,198,327,345,319,297,279,42,47,22,41,74,68,128,120,221,207,194,182,340,315,295,541,18,81,39,75,70,134,125,116,220,204,190,178,325,311,293,271,16,147,72,69,135,127,118,112,210,200,188,352,323,306,285,540,14,263,66,129,126,119,114,214,202,192,180,341,317,301,281,262,12,249,123,121,117,113,215,206,195,185,347,330,308,291,272,520,10,435,115,111,109,211,203,196,187,353,332,313,298,283,531,381,17,427,212,208,205,201,193,186,177,169,320,303,286,268,514,377,16,335,199,197,191,189,181,174,333,321,305,289,275,521,379,371,11,668,184,183,179,175,344,331,314,304,290,277,530,383,373,366,10,652,346,171,168,164,318,309,299,287,276,263,513,375,368,362,6,648,322,316,312,307,302,292,284,269,261,512,376,370,364,359,4,620,300,296,294,288,282,273,266,515,380,374,369,365,361,357,2,1033,280,278,274,267,264,259,382,378,372,367,363,360,358,356,0,43,20,19,17,15,13,11,9,7,6,4,7,5,3,1,3],t32HB:[1,10,8,20,12,20,16,32,14,12,24,0,28,16,24,16],t33HB:[15,28,26,48,22,40,36,64,14,24,20,32,12,16,8,0],t1l:[1,4,3,5],t2l:[1,4,7,4,5,7,6,7,8],t3l:[2,3,7,4,4,7,6,7,8],t5l:[1,4,7,8,4,5,8,9,7,8,9,10,8,8,9,10],t6l:[3,4,6,8,4,4,6,7,5,6,7,8,7,7,8,9],t7l:[1,4,7,9,9,10,4,6,8,9,9,10,7,7,9,10,10,11,8,9,10,11,11,11,8,9,10,11,11,12,9,10,11,12,12,12],t8l:[2,4,7,9,9,10,4,4,6,10,10,10,7,6,8,10,10,11,9,10,10,11,11,12,9,9,10,11,12,12,10,10,11,11,13,13],t9l:[3,4,6,7,9,10,4,5,6,7,8,10,5,6,7,8,9,10,7,7,8,9,9,10,8,8,9,9,10,11,9,9,10,10,11,11],t10l:[1,4,7,9,10,10,10,11,4,6,8,9,10,11,10,10,7,8,9,10,11,12,11,11,8,9,10,11,12,12,11,12,9,10,11,12,12,12,12,12,10,11,12,12,13,13,12,13,9,10,11,12,12,12,13,13,10,10,11,12,12,13,13,13],t11l:[2,4,6,8,9,10,9,10,4,5,6,8,10,10,9,10,6,7,8,9,10,11,10,10,8,8,9,11,10,12,10,11,9,10,10,11,11,12,11,12,9,10,11,12,12,13,12,13,9,9,9,10,11,12,12,12,9,9,10,11,12,12,12,12],t12l:[4,4,6,8,9,10,10,10,4,5,6,7,9,9,10,10,6,6,7,8,9,10,9,10,7,7,8,8,9,10,10,10,8,8,9,9,10,10,10,11,9,9,10,10,10,11,10,11,9,9,9,10,10,11,11,12,10,10,10,11,11,11,11,12],t13l:[1,5,7,8,9,10,10,11,10,11,12,12,13,13,14,14,4,6,8,9,10,10,11,11,11,11,12,12,13,14,14,14,7,8,9,10,11,11,12,12,11,12,12,13,13,14,15,15,8,9,10,11,11,12,12,12,12,13,13,13,13,14,15,15,9,9,11,11,12,12,13,13,12,13,13,14,14,15,15,16,10,10,11,12,12,12,13,13,13,13,14,13,15,15,16,16,10,11,12,12,13,13,13,13,13,14,14,14,15,15,16,16,11,11,12,13,13,13,14,14,14,14,15,15,15,16,18,18,10,10,11,12,12,13,13,14,14,14,14,15,15,16,17,17,11,11,12,12,13,13,13,15,14,15,15,16,16,16,18,17,11,12,12,13,13,14,14,15,14,15,16,15,16,17,18,19,12,12,12,13,14,14,14,14,15,15,15,16,17,17,17,18,12,13,13,14,14,15,14,15,16,16,17,17,17,18,18,18,13,13,14,15,15,15,16,16,16,16,16,17,18,17,18,18,14,14,14,15,15,15,17,16,16,19,17,17,17,19,18,18,13,14,15,16,16,16,17,16,17,17,18,18,21,20,21,18],t15l:[3,5,6,8,8,9,10,10,10,11,11,12,12,12,13,14,5,5,7,8,9,9,10,10,10,11,11,12,12,12,13,13,6,7,7,8,9,9,10,10,10,11,11,12,12,13,13,13,7,8,8,9,9,10,10,11,11,11,12,12,12,13,13,13,8,8,9,9,10,10,11,11,11,11,12,12,12,13,13,13,9,9,9,10,10,10,11,11,11,11,12,12,13,13,13,14,10,9,10,10,10,11,11,11,11,12,12,12,13,13,14,14,10,10,10,11,11,11,11,12,12,12,12,12,13,13,13,14,10,10,10,11,11,11,11,12,12,12,12,13,13,14,14,14,10,10,11,11,11,11,12,12,12,13,13,13,13,14,14,14,11,11,11,11,12,12,12,12,12,13,13,13,13,14,15,14,11,11,11,11,12,12,12,12,13,13,13,13,14,14,14,15,12,12,11,12,12,12,13,13,13,13,13,13,14,14,15,15,12,12,12,12,12,13,13,13,13,14,14,14,14,14,15,15,13,13,13,13,13,13,13,13,14,14,14,14,15,15,14,15,13,13,13,13,13,13,13,14,14,14,14,14,15,15,15,15],t16_5l:[1,5,7,9,10,10,11,11,12,12,12,13,13,13,14,11,4,6,8,9,10,11,11,11,12,12,12,13,14,13,14,11,7,8,9,10,11,11,12,12,13,12,13,13,13,14,14,12,9,9,10,11,11,12,12,12,13,13,14,14,14,15,15,13,10,10,11,11,12,12,13,13,13,14,14,14,15,15,15,12,10,10,11,11,12,13,13,14,13,14,14,15,15,15,16,13,11,11,11,12,13,13,13,13,14,14,14,14,15,15,16,13,11,11,12,12,13,13,13,14,14,15,15,15,15,17,17,13,11,12,12,13,13,13,14,14,15,15,15,15,16,16,16,13,12,12,12,13,13,14,14,15,15,15,15,16,15,16,15,14,12,13,12,13,14,14,14,14,15,16,16,16,17,17,16,13,13,13,13,13,14,14,15,16,16,16,16,16,16,15,16,14,13,14,14,14,14,15,15,15,15,17,16,16,16,16,18,14,15,14,14,14,15,15,16,16,16,18,17,17,17,19,17,14,14,15,13,14,16,16,15,16,16,17,18,17,19,17,16,14,11,11,11,12,12,13,13,13,14,14,14,14,14,14,14,12],t16l:[1,5,7,9,10,10,11,11,12,12,12,13,13,13,14,10,4,6,8,9,10,11,11,11,12,12,12,13,14,13,14,10,7,8,9,10,11,11,12,12,13,12,13,13,13,14,14,11,9,9,10,11,11,12,12,12,13,13,14,14,14,15,15,12,10,10,11,11,12,12,13,13,13,14,14,14,15,15,15,11,10,10,11,11,12,13,13,14,13,14,14,15,15,15,16,12,11,11,11,12,13,13,13,13,14,14,14,14,15,15,16,12,11,11,12,12,13,13,13,14,14,15,15,15,15,17,17,12,11,12,12,13,13,13,14,14,15,15,15,15,16,16,16,12,12,12,12,13,13,14,14,15,15,15,15,16,15,16,15,13,12,13,12,13,14,14,14,14,15,16,16,16,17,17,16,12,13,13,13,13,14,14,15,16,16,16,16,16,16,15,16,13,13,14,14,14,14,15,15,15,15,17,16,16,16,16,18,13,15,14,14,14,15,15,16,16,16,18,17,17,17,19,17,13,14,15,13,14,16,16,15,16,16,17,18,17,19,17,16,13,10,10,10,11,11,12,12,12,13,13,13,13,13,13,13,10],t24l:[4,5,7,8,9,10,10,11,11,12,12,12,12,12,13,10,5,6,7,8,9,10,10,11,11,11,12,12,12,12,12,10,7,7,8,9,9,10,10,11,11,11,11,12,12,12,13,9,8,8,9,9,10,10,10,11,11,11,11,12,12,12,12,9,9,9,9,10,10,10,10,11,11,11,12,12,12,12,13,9,10,9,10,10,10,10,11,11,11,11,12,12,12,12,12,9,10,10,10,10,10,11,11,11,11,12,12,12,12,12,13,9,11,10,10,10,11,11,11,11,12,12,12,12,12,13,13,10,11,11,11,11,11,11,11,11,11,12,12,12,12,13,13,10,11,11,11,11,11,11,11,12,12,12,12,12,13,13,13,10,12,11,11,11,11,12,12,12,12,12,12,13,13,13,13,10,12,12,11,11,11,12,12,12,12,12,12,13,13,13,13,10,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,10,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,10,13,12,12,12,12,12,12,13,13,13,13,13,13,13,13,10,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,6],t32l:[1,5,5,7,5,8,7,9,5,7,7,9,7,9,9,10],t33l:[4,5,5,6,5,6,6,7,5,6,6,7,6,7,7,8]};r.ht=[new n(0,0,null,null),new n(2,0,r.t1HB,r.t1l),new n(3,0,r.t2HB,r.t2l),new n(3,0,r.t3HB,r.t3l),new n(0,0,null,null),new n(4,0,r.t5HB,r.t5l),new n(4,0,r.t6HB,r.t6l),new n(6,0,r.t7HB,r.t7l),new n(6,0,r.t8HB,r.t8l),new n(6,0,r.t9HB,r.t9l),new n(8,0,r.t10HB,r.t10l),new n(8,0,r.t11HB,r.t11l),new n(8,0,r.t12HB,r.t12l),new n(16,0,r.t13HB,r.t13l),new n(0,0,null,r.t16_5l),new n(16,0,r.t15HB,r.t15l),new n(1,1,r.t16HB,r.t16l),new n(2,3,r.t16HB,r.t16l),new n(3,7,r.t16HB,r.t16l),new n(4,15,r.t16HB,r.t16l),new n(6,63,r.t16HB,r.t16l),new n(8,255,r.t16HB,r.t16l),new n(10,1023,r.t16HB,r.t16l),new n(13,8191,r.t16HB,r.t16l),new n(4,15,r.t24HB,r.t24l),new n(5,31,r.t24HB,r.t24l),new n(6,63,r.t24HB,r.t24l),new n(7,127,r.t24HB,r.t24l),new n(8,255,r.t24HB,r.t24l),new n(9,511,r.t24HB,r.t24l),new n(11,2047,r.t24HB,r.t24l),new n(13,8191,r.t24HB,r.t24l),new n(0,0,r.t32HB,r.t32l),new n(0,0,r.t33HB,r.t33l)],r.largetbl=[65540,327685,458759,589832,655369,655370,720906,720907,786443,786444,786444,851980,851980,851980,917517,655370,262149,393222,524295,589832,655369,720906,720906,720907,786443,786443,786444,851980,917516,851980,917516,655370,458759,524295,589832,655369,720905,720906,786442,786443,851979,786443,851979,851980,851980,917516,917517,720905,589832,589832,655369,720905,720906,786442,786442,786443,851979,851979,917515,917516,917516,983052,983052,786441,655369,655369,720905,720906,786442,786442,851978,851979,851979,917515,917516,917516,983052,983052,983053,720905,655370,655369,720906,720906,786442,851978,851979,917515,851979,917515,917516,983052,983052,983052,1048588,786441,720906,720906,720906,786442,851978,851979,851979,851979,917515,917516,917516,917516,983052,983052,1048589,786441,720907,720906,786442,786442,851979,851979,851979,917515,917516,983052,983052,983052,983052,1114125,1114125,786442,720907,786443,786443,851979,851979,851979,917515,917515,983051,983052,983052,983052,1048588,1048589,1048589,786442,786443,786443,786443,851979,851979,917515,917515,983052,983052,983052,983052,1048588,983053,1048589,983053,851978,786444,851979,786443,851979,917515,917516,917516,917516,983052,1048588,1048588,1048589,1114125,1114125,1048589,786442,851980,851980,851979,851979,917515,917516,983052,1048588,1048588,1048588,1048588,1048589,1048589,983053,1048589,851978,851980,917516,917516,917516,917516,983052,983052,983052,983052,1114124,1048589,1048589,1048589,1048589,1179661,851978,983052,917516,917516,917516,983052,983052,1048588,1048588,1048589,1179661,1114125,1114125,1114125,1245197,1114125,851978,917517,983052,851980,917516,1048588,1048588,983052,1048589,1048589,1114125,1179661,1114125,1245197,1114125,1048589,851978,655369,655369,655369,720905,720905,786441,786441,786441,851977,851977,851977,851978,851978,851978,851978,655366],r.table23=[65538,262147,458759,262148,327684,458759,393222,458759,524296],r.table56=[65539,262148,458758,524296,262148,327684,524294,589831,458757,524294,589831,655368,524295,524295,589832,655369],r.bitrate_table=[[0,8,16,24,32,40,48,56,64,80,96,112,128,144,160,-1],[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],[0,8,16,24,32,40,48,56,64,-1,-1,-1,-1,-1,-1,-1]],r.samplerate_table=[[22050,24e3,16e3,-1],[44100,48e3,32e3,-1],[11025,12e3,8e3,-1]],r.scfsi_band=[0,6,11,16,21],e.exports=r},"5f96":function(e,t,n){"use strict";var r=n("ebb5"),o=r.aTypedArray,a=r.exportTypedArrayMethod,i=[].join;a("join",(function(e){return i.apply(o(this),arguments)}))},"5fb2":function(e,t,n){"use strict";var r=2147483647,o=36,a=1,i=26,s=38,c=700,l=72,u=128,f="-",d=/[^\0-\u007E]/,h=/[.\u3002\uFF0E\uFF61]/g,p="Overflow: input needs wider integers to process",m=o-a,_=Math.floor,g=String.fromCharCode,b=function(e){var t=[],n=0,r=e.length;while(n<r){var o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){var a=e.charCodeAt(n++);56320==(64512&a)?t.push(((1023&o)<<10)+(1023&a)+65536):(t.push(o),n--)}else t.push(o)}return t},v=function(e){return e+22+75*(e<26)},y=function(e,t,n){var r=0;for(e=n?_(e/c):e>>1,e+=_(e/t);e>m*i>>1;r+=o)e=_(e/m);return _(r+(m+1)*e/(e+s))},w=function(e){var t=[];e=b(e);var n,s,c=e.length,d=u,h=0,m=l;for(n=0;n<e.length;n++)s=e[n],s<128&&t.push(g(s));var w=t.length,x=w;w&&t.push(f);while(x<c){var k=r;for(n=0;n<e.length;n++)s=e[n],s>=d&&s<k&&(k=s);var S=x+1;if(k-d>_((r-h)/S))throw RangeError(p);for(h+=(k-d)*S,d=k,n=0;n<e.length;n++){if(s=e[n],s<d&&++h>r)throw RangeError(p);if(s==d){for(var A=h,M=o;;M+=o){var R=M<=m?a:M>=m+i?i:M-m;if(A<R)break;var E=A-R,T=o-R;t.push(g(v(R+E%T))),A=_(E/T)}t.push(g(v(A))),m=y(h,S,x==w),h=0,++x}}++h,++d}return t.join("")};e.exports=function(e){var t,n,r=[],o=e.toLowerCase().replace(h,".").split(".");for(t=0;t<o.length;t++)n=o[t],r.push(d.test(n)?"xn--"+w(n):n);return r.join(".")}},"605d":function(e,t,n){var r=n("c6b6"),o=n("da84");e.exports="process"==r(o.process)},6069:function(e,t){e.exports="object"==typeof window},"60bd":function(e,t,n){"use strict";var r=n("da84"),o=n("ebb5"),a=n("e260"),i=n("b622"),s=i("iterator"),c=r.Uint8Array,l=a.values,u=a.keys,f=a.entries,d=o.aTypedArray,h=o.exportTypedArrayMethod,p=c&&c.prototype[s],m=!!p&&("values"==p.name||void 0==p.name),_=function(){return l.call(d(this))};h("entries",(function(){return f.call(d(this))})),h("keys",(function(){return u.call(d(this))})),h("values",_,!m),h(s,_,!m)},"60da":function(e,t,n){"use strict";var r=n("83ab"),o=n("d039"),a=n("df75"),i=n("7418"),s=n("d1e7"),c=n("7b0b"),l=n("44ad"),u=Object.assign,f=Object.defineProperty;e.exports=!u||o((function(){if(r&&1!==u({b:1},u(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||a(u({},t)).join("")!=o}))?function(e,t){var n=c(e),o=arguments.length,u=1,f=i.f,d=s.f;while(o>u){var h,p=l(arguments[u++]),m=f?a(p).concat(f(p)):a(p),_=m.length,g=0;while(_>g)h=m[g++],r&&!d.call(p,h)||(n[h]=p[h])}return n}:u},"621a":function(e,t,n){"use strict";var r=n("da84"),o=n("83ab"),a=n("a981"),i=n("9112"),s=n("e2cc"),c=n("d039"),l=n("19aa"),u=n("a691"),f=n("50c4"),d=n("0b25"),h=n("77a7"),p=n("e163"),m=n("d2bb"),_=n("241c").f,g=n("9bf2").f,b=n("81d5"),v=n("d44e"),y=n("69f3"),w=y.get,x=y.set,k="ArrayBuffer",S="DataView",A="prototype",M="Wrong length",R="Wrong index",E=r[k],T=E,O=r[S],L=O&&O[A],B=Object.prototype,I=r.RangeError,C=h.pack,P=h.unpack,j=function(e){return[255&e]},N=function(e){return[255&e,e>>8&255]},H=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},F=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},D=function(e){return C(e,23,4)},U=function(e){return C(e,52,8)},V=function(e,t){g(e[A],t,{get:function(){return w(this)[t]}})},q=function(e,t,n,r){var o=d(n),a=w(e);if(o+t>a.byteLength)throw I(R);var i=w(a.buffer).bytes,s=o+a.byteOffset,c=i.slice(s,s+t);return r?c:c.reverse()},$=function(e,t,n,r,o,a){var i=d(n),s=w(e);if(i+t>s.byteLength)throw I(R);for(var c=w(s.buffer).bytes,l=i+s.byteOffset,u=r(+o),f=0;f<t;f++)c[l+f]=u[a?f:t-f-1]};if(a){if(!c((function(){E(1)}))||!c((function(){new E(-1)}))||c((function(){return new E,new E(1.5),new E(NaN),E.name!=k}))){T=function(e){return l(this,T),new E(d(e))};for(var z,Y=T[A]=E[A],X=_(E),G=0;X.length>G;)(z=X[G++])in T||i(T,z,E[z]);Y.constructor=T}m&&p(L)!==B&&m(L,B);var K=new O(new T(2)),W=L.setInt8;K.setInt8(0,2147483648),K.setInt8(1,2147483649),!K.getInt8(0)&&K.getInt8(1)||s(L,{setInt8:function(e,t){W.call(this,e,t<<24>>24)},setUint8:function(e,t){W.call(this,e,t<<24>>24)}},{unsafe:!0})}else T=function(e){l(this,T,k);var t=d(e);x(this,{bytes:b.call(new Array(t),0),byteLength:t}),o||(this.byteLength=t)},O=function(e,t,n){l(this,O,S),l(e,T,S);var r=w(e).byteLength,a=u(t);if(a<0||a>r)throw I("Wrong offset");if(n=void 0===n?r-a:f(n),a+n>r)throw I(M);x(this,{buffer:e,byteLength:n,byteOffset:a}),o||(this.buffer=e,this.byteLength=n,this.byteOffset=a)},o&&(V(T,"byteLength"),V(O,"buffer"),V(O,"byteLength"),V(O,"byteOffset")),s(O[A],{getInt8:function(e){return q(this,1,e)[0]<<24>>24},getUint8:function(e){return q(this,1,e)[0]},getInt16:function(e){var t=q(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=q(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return F(q(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return F(q(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return P(q(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return P(q(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){$(this,1,e,j,t)},setUint8:function(e,t){$(this,1,e,j,t)},setInt16:function(e,t){$(this,2,e,N,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){$(this,2,e,N,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){$(this,4,e,H,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){$(this,4,e,H,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){$(this,4,e,D,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){$(this,8,e,U,t,arguments.length>2?arguments[2]:void 0)}});v(T,k),v(O,S),e.exports={ArrayBuffer:T,DataView:O}},"649e":function(e,t,n){"use strict";var r=n("ebb5"),o=n("b727").some,a=r.aTypedArray,i=r.exportTypedArrayMethod;i("some",(function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0)}))},"64e5":function(e,t,n){"use strict";var r=n("d039"),o=n("0ccb").start,a=Math.abs,i=Date.prototype,s=i.getTime,c=i.toISOString;e.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=c.call(new Date(-50000000000001))}))||!r((function(){c.call(new Date(NaN))}))?function(){if(!isFinite(s.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),r=t<0?"-":t>9999?"+":"";return r+o(a(t),r?6:4,0)+"-"+o(e.getUTCMonth()+1,2,0)+"-"+o(e.getUTCDate(),2,0)+"T"+o(e.getUTCHours(),2,0)+":"+o(e.getUTCMinutes(),2,0)+":"+o(e.getUTCSeconds(),2,0)+"."+o(n,3,0)+"Z"}:c},6547:function(e,t,n){var r=n("a691"),o=n("577e"),a=n("1d80"),i=function(e){return function(t,n){var i,s,c=o(a(t)),l=r(n),u=c.length;return l<0||l>=u?e?"":void 0:(i=c.charCodeAt(l),i<55296||i>56319||l+1===u||(s=c.charCodeAt(l+1))<56320||s>57343?e?c.charAt(l):i:e?c.slice(l,l+2):s-56320+(i-55296<<10)+65536)}};e.exports={codeAt:i(!1),charAt:i(!0)}},"65f0":function(e,t,n){var r=n("0b42");e.exports=function(e,t){return new(r(e))(0===t?0:t)}},"67b2":function(e,t){function n(e){var t=e;this.ordinal=function(){return t}}n.STEREO=new n(0),n.JOINT_STEREO=new n(1),n.DUAL_CHANNEL=new n(2),n.MONO=new n(3),n.NOT_SET=new n(4),e.exports=n},"69b2":function(e,t,n){var r=n("0206"),o=r.System,a=(r.VbrMode,r.Float,r.ShortBlock,r.Util,r.Arrays),i=(r.new_array_n,r.new_byte),s=(r.new_double,r.new_float,r.new_float_n),c=r.new_int,l=(r.new_int_n,r.assert),u=n("d9be"),f=n("5f84"),d=n("4b5e"),h=n("bd8b");function p(){var e=this,t=32773,n=32,r=null,p=null,m=null,_=null;this.setModules=function(e,t,n,o){r=e,p=t,m=n,_=o};var g=null,b=0,v=0,y=0;function w(e){o.arraycopy(e.header[e.w_ptr].buf,0,g,v,e.sideinfo_len),v+=e.sideinfo_len,b+=8*e.sideinfo_len,e.w_ptr=e.w_ptr+1&h.MAX_HEADER_BUF-1}function x(e,t,r){l(r<n-2);while(r>0){var o;0==y&&(y=8,v++,l(v<Lame.LAME_MAXMP3BUFFER),l(e.header[e.w_ptr].write_timing>=b),e.header[e.w_ptr].write_timing==b&&w(e),g[v]=0),o=Math.min(r,y),r-=o,y-=o,l(r<n),l(y<n),g[v]|=t>>r<<y,b+=o}}function k(e,t,r){l(r<n-2);while(r>0){var o;0==y&&(y=8,v++,l(v<Lame.LAME_MAXMP3BUFFER),g[v]=0),o=Math.min(r,y),r-=o,y-=o,l(r<n),l(y<n),g[v]|=t>>r<<y,b+=o}}function S(e,t){var n,r=e.internal_flags;if(l(t>=0),t>=8&&(x(r,76,8),t-=8),t>=8&&(x(r,65,8),t-=8),t>=8&&(x(r,77,8),t-=8),t>=8&&(x(r,69,8),t-=8),t>=32){var o=m.getLameShortVersion();if(t>=32)for(n=0;n<o.length&&t>=8;++n)t-=8,x(r,o.charAt(n),8)}for(;t>=1;t-=1)x(r,r.ancillary_flag,1),r.ancillary_flag^=e.disable_reservoir?0:1;l(0==t)}function A(e,t,r){var o=e.header[e.h_ptr].ptr;while(r>0){var a=Math.min(r,8-(7&o));r-=a,l(r<n),e.header[e.h_ptr].buf[o>>3]|=t>>r<<8-(7&o)-a,o+=a}e.header[e.h_ptr].ptr=o}function M(e,n){e<<=8;for(var r=0;r<8;r++)e<<=1,n<<=1,0!=(65536&(n^e))&&(n^=t);return n}function R(e,t){var n,r,i,s=e.internal_flags;if(n=s.l3_side,s.header[s.h_ptr].ptr=0,a.fill(s.header[s.h_ptr].buf,0,s.sideinfo_len,0),e.out_samplerate<16e3?A(s,4094,12):A(s,4095,12),A(s,e.version,1),A(s,1,2),A(s,e.error_protection?0:1,1),A(s,s.bitrate_index,4),A(s,s.samplerate_index,2),A(s,s.padding,1),A(s,e.extension,1),A(s,e.mode.ordinal(),2),A(s,s.mode_ext,2),A(s,e.copyright,1),A(s,e.original,1),A(s,e.emphasis,2),e.error_protection&&A(s,0,16),1==e.version){for(l(n.main_data_begin>=0),A(s,n.main_data_begin,9),2==s.channels_out?A(s,n.private_bits,3):A(s,n.private_bits,5),i=0;i<s.channels_out;i++){var c;for(c=0;c<4;c++)A(s,n.scfsi[i][c],1)}for(r=0;r<2;r++)for(i=0;i<s.channels_out;i++){var u=n.tt[r][i];A(s,u.part2_3_length+u.part2_length,12),A(s,u.big_values/2,9),A(s,u.global_gain,8),A(s,u.scalefac_compress,4),u.block_type!=d.NORM_TYPE?(A(s,1,1),A(s,u.block_type,2),A(s,u.mixed_block_flag,1),14==u.table_select[0]&&(u.table_select[0]=16),A(s,u.table_select[0],5),14==u.table_select[1]&&(u.table_select[1]=16),A(s,u.table_select[1],5),A(s,u.subblock_gain[0],3),A(s,u.subblock_gain[1],3),A(s,u.subblock_gain[2],3)):(A(s,0,1),14==u.table_select[0]&&(u.table_select[0]=16),A(s,u.table_select[0],5),14==u.table_select[1]&&(u.table_select[1]=16),A(s,u.table_select[1],5),14==u.table_select[2]&&(u.table_select[2]=16),A(s,u.table_select[2],5),l(0<=u.region0_count&&u.region0_count<16),l(0<=u.region1_count&&u.region1_count<8),A(s,u.region0_count,4),A(s,u.region1_count,3)),A(s,u.preflag,1),A(s,u.scalefac_scale,1),A(s,u.count1table_select,1)}}else for(l(n.main_data_begin>=0),A(s,n.main_data_begin,8),A(s,n.private_bits,s.channels_out),r=0,i=0;i<s.channels_out;i++){u=n.tt[r][i];A(s,u.part2_3_length+u.part2_length,12),A(s,u.big_values/2,9),A(s,u.global_gain,8),A(s,u.scalefac_compress,9),u.block_type!=d.NORM_TYPE?(A(s,1,1),A(s,u.block_type,2),A(s,u.mixed_block_flag,1),14==u.table_select[0]&&(u.table_select[0]=16),A(s,u.table_select[0],5),14==u.table_select[1]&&(u.table_select[1]=16),A(s,u.table_select[1],5),A(s,u.subblock_gain[0],3),A(s,u.subblock_gain[1],3),A(s,u.subblock_gain[2],3)):(A(s,0,1),14==u.table_select[0]&&(u.table_select[0]=16),A(s,u.table_select[0],5),14==u.table_select[1]&&(u.table_select[1]=16),A(s,u.table_select[1],5),14==u.table_select[2]&&(u.table_select[2]=16),A(s,u.table_select[2],5),l(0<=u.region0_count&&u.region0_count<16),l(0<=u.region1_count&&u.region1_count<8),A(s,u.region0_count,4),A(s,u.region1_count,3)),A(s,u.scalefac_scale,1),A(s,u.count1table_select,1)}e.error_protection&&CRC_writeheader(s,s.header[s.h_ptr].buf);var f=s.h_ptr;l(s.header[f].ptr==8*s.sideinfo_len),s.h_ptr=f+1&h.MAX_HEADER_BUF-1,s.header[s.h_ptr].write_timing=s.header[f].write_timing+t,s.h_ptr==s.w_ptr&&o.err.println("Error: MAX_HEADER_BUF too small in bitstream.c \n")}function E(e,t){var n,r=f.ht[t.count1table_select+32],o=0,a=t.big_values,i=t.big_values;for(l(t.count1table_select<2),n=(t.count1-t.big_values)/4;n>0;--n){var s,c=0,u=0;s=t.l3_enc[a+0],0!=s&&(u+=8,t.xr[i+0]<0&&c++,l(s<=1)),s=t.l3_enc[a+1],0!=s&&(u+=4,c*=2,t.xr[i+1]<0&&c++,l(s<=1)),s=t.l3_enc[a+2],0!=s&&(u+=2,c*=2,t.xr[i+2]<0&&c++,l(s<=1)),s=t.l3_enc[a+3],0!=s&&(u++,c*=2,t.xr[i+3]<0&&c++,l(s<=1)),a+=4,i+=4,x(e,c+r.table[u],r.hlen[u]),o+=r.hlen[u]}return o}function T(e,t,r,o,a){var i=f.ht[t],s=0;if(l(t<32),0==t)return s;for(var c=r;c<o;c+=2){var u=0,d=0,h=i.xlen,p=i.xlen,m=0,_=a.l3_enc[c],g=a.l3_enc[c+1];if(0!=_&&(a.xr[c]<0&&m++,u--),t>15){if(_>14){var b=_-15;l(b<=i.linmax),m|=b<<1,d=h,_=15}if(g>14){var v=g-15;l(v<=i.linmax),m<<=h,m|=v,d+=h,g=15}p=16}0!=g&&(m<<=1,a.xr[c+1]<0&&m++,u--),l((_|g)<16),_=_*p+g,d-=u,u+=i.hlen[_],l(u<=n),l(d<=n),x(e,i.table[_],u),x(e,m,d),s+=u+d}return s}function O(e,t){var n=3*e.scalefac_band.s[3];n>t.big_values&&(n=t.big_values);var r=T(e,t.table_select[0],0,n,t);return r+=T(e,t.table_select[1],n,t.big_values,t),r}function L(e,t){var n,r,o,a;n=t.big_values,l(0<=n&&n<=576);var i=t.region0_count+1;return l(0<=i),l(i<e.scalefac_band.l.length),o=e.scalefac_band.l[i],i+=t.region1_count+1,l(0<=i),l(i<e.scalefac_band.l.length),a=e.scalefac_band.l[i],o>n&&(o=n),a>n&&(a=n),r=T(e,t.table_select[0],0,o,t),r+=T(e,t.table_select[1],o,a,t),r+=T(e,t.table_select[2],a,n,t),r}function B(e){var t,n,r,o,a=0,i=e.internal_flags,s=i.l3_side;if(1==e.version)for(t=0;t<2;t++)for(n=0;n<i.channels_out;n++){var c=s.tt[t][n],f=u.slen1_tab[c.scalefac_compress],h=u.slen2_tab[c.scalefac_compress];for(o=0,r=0;r<c.sfbdivide;r++)-1!=c.scalefac[r]&&(x(i,c.scalefac[r],f),o+=f);for(;r<c.sfbmax;r++)-1!=c.scalefac[r]&&(x(i,c.scalefac[r],h),o+=h);l(o==c.part2_length),c.block_type==d.SHORT_TYPE?o+=O(i,c):o+=L(i,c),o+=E(i,c),l(o==c.part2_3_length+c.part2_length),a+=o}else for(t=0,n=0;n<i.channels_out;n++){c=s.tt[t][n];var p,m,_=0;if(l(null!=c.sfb_partition_table),o=0,r=0,m=0,c.block_type==d.SHORT_TYPE){for(;m<4;m++){var g=c.sfb_partition_table[m]/3,b=c.slen[m];for(p=0;p<g;p++,r++)x(i,Math.max(c.scalefac[3*r+0],0),b),x(i,Math.max(c.scalefac[3*r+1],0),b),x(i,Math.max(c.scalefac[3*r+2],0),b),_+=3*b}o+=O(i,c)}else{for(;m<4;m++){g=c.sfb_partition_table[m],b=c.slen[m];for(p=0;p<g;p++,r++)x(i,Math.max(c.scalefac[r],0),b),_+=b}o+=L(i,c)}o+=E(i,c),l(o==c.part2_3_length),l(_==c.part2_length),a+=_+o}return a}function I(){this.total=0}function C(t,n){var r,a,i,s,c,l=t.internal_flags;return c=l.w_ptr,s=l.h_ptr-1,-1==s&&(s=h.MAX_HEADER_BUF-1),r=l.header[s].write_timing-b,n.total=r,r>=0&&(a=1+s-c,s<c&&(a=1+s-c+h.MAX_HEADER_BUF),r-=8*a*l.sideinfo_len),i=e.getframebits(t),r+=i,n.total+=i,n.total%8!=0?n.total=1+n.total/8:n.total=n.total/8,n.total+=v+1,r<0&&o.err.println("strange error flushing buffer ... \n"),r}this.getframebits=function(e){var t,n=e.internal_flags;t=0!=n.bitrate_index?f.bitrate_table[e.version][n.bitrate_index]:e.brate,l(8<=t&&t<=640);var r=0|72e3*(e.version+1)*t/e.out_samplerate+n.padding;return 8*r},this.CRC_writeheader=function(e,t){var n=65535;n=M(255&t[2],n),n=M(255&t[3],n);for(var r=6;r<e.sideinfo_len;r++)n=M(255&t[r],n);t[4]=byte(n>>8),t[5]=byte(255&n)},this.flush_bitstream=function(e){var t,n,o=e.internal_flags,a=o.h_ptr-1;if(-1==a&&(a=h.MAX_HEADER_BUF-1),t=o.l3_side,!((n=C(e,new I))<0)){if(S(e,n),l(o.header[a].write_timing+this.getframebits(e)==b),o.ResvSize=0,t.main_data_begin=0,o.findReplayGain){var i=r.GetTitleGain(o.rgdata);l(NEQ(i,GainAnalysis.GAIN_NOT_ENOUGH_SAMPLES)),o.RadioGain=0|Math.floor(10*i+.5)}o.findPeakSample&&(o.noclipGainChange=0|Math.ceil(20*Math.log10(o.PeakSample/32767)*10),o.noclipGainChange>0&&(EQ(e.scale,1)||EQ(e.scale,0))?o.noclipScale=Math.floor(32767/o.PeakSample*100)/100:o.noclipScale=-1)}},this.add_dummy_byte=function(e,t,n){var r,o=e.internal_flags;while(n-- >0)for(k(o,t,8),r=0;r<h.MAX_HEADER_BUF;++r)o.header[r].write_timing+=8},this.format_bitstream=function(e){var t,n=e.internal_flags;t=n.l3_side;var r=this.getframebits(e);S(e,t.resvDrain_pre),R(e,r);var a=8*n.sideinfo_len;if(a+=B(e),S(e,t.resvDrain_post),a+=t.resvDrain_post,t.main_data_begin+=(r-a)/8,C(e,new I)!=n.ResvSize&&o.err.println("Internal buffer inconsistency. flushbits <> ResvSize"),8*t.main_data_begin!=n.ResvSize&&(o.err.printf("bit reservoir error: \nl3_side.main_data_begin: %d \nResvoir size:             %d \nresv drain (post)         %d \nresv drain (pre)          %d \nheader and sideinfo:      %d \ndata bits:                %d \ntotal bits:               %d (remainder: %d) \nbitsperframe:             %d \n",8*t.main_data_begin,n.ResvSize,t.resvDrain_post,t.resvDrain_pre,8*n.sideinfo_len,a-t.resvDrain_post-8*n.sideinfo_len,a,a%8,r),o.err.println("This is a fatal error.  It has several possible causes:"),o.err.println("90%%  LAME compiled with buggy version of gcc using advanced optimizations"),o.err.println(" 9%%  Your system is overclocked"),o.err.println(" 1%%  bug in LAME encoding library"),n.ResvSize=8*t.main_data_begin),l(b%8==0),b>1e9){var i;for(i=0;i<h.MAX_HEADER_BUF;++i)n.header[i].write_timing-=b;b=0}return 0},this.copy_buffer=function(e,t,n,a,i){var u=v+1;if(u<=0)return 0;if(0!=a&&u>a)return-1;if(o.arraycopy(g,0,t,n,u),v=-1,y=0,0!=i){var f=c(1);if(f[0]=e.nMusicCRC,_.updateMusicCRC(f,t,n,u),e.nMusicCRC=f[0],u>0&&(e.VBR_seek_table.nBytesWritten+=u),e.decode_on_the_fly){var d,h=s([2,1152]),m=u,b=-1;while(0!=b)if(b=p.hip_decode1_unclipped(e.hip,t,n,m,h[0],h[1]),m=0,-1==b&&(b=0),b>0){if(l(b<=1152),e.findPeakSample){for(d=0;d<b;d++)h[0][d]>e.PeakSample?e.PeakSample=h[0][d]:-h[0][d]>e.PeakSample&&(e.PeakSample=-h[0][d]);if(e.channels_out>1)for(d=0;d<b;d++)h[1][d]>e.PeakSample?e.PeakSample=h[1][d]:-h[1][d]>e.PeakSample&&(e.PeakSample=-h[1][d])}if(e.findReplayGain&&r.AnalyzeSamples(e.rgdata,h[0],0,h[1],0,b,e.channels_out)==GainAnalysis.GAIN_ANALYSIS_ERROR)return-6}}}return u},this.init_bit_stream_w=function(e){g=i(Lame.LAME_MAXMP3BUFFER),e.h_ptr=e.w_ptr=0,e.header[e.h_ptr].write_timing=0,v=-1,y=0,b=0}}p.EQ=function(e,t){return Math.abs(e)>Math.abs(t)?Math.abs(e-t)<=1e-6*Math.abs(e):Math.abs(e-t)<=1e-6*Math.abs(t)},p.NEQ=function(e,t){return!p.EQ(e,t)},e.exports=p},"69f3":function(e,t,n){var r,o,a,i=n("7f9a"),s=n("da84"),c=n("861d"),l=n("9112"),u=n("5135"),f=n("c6cd"),d=n("f772"),h=n("d012"),p="Object already initialized",m=s.WeakMap,_=function(e){return a(e)?o(e):r(e,{})},g=function(e){return function(t){var n;if(!c(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}};if(i||f.state){var b=f.state||(f.state=new m),v=b.get,y=b.has,w=b.set;r=function(e,t){if(y.call(b,e))throw new TypeError(p);return t.facade=e,w.call(b,e,t),t},o=function(e){return v.call(b,e)||{}},a=function(e){return y.call(b,e)}}else{var x=d("state");h[x]=!0,r=function(e,t){if(u(e,x))throw new TypeError(p);return t.facade=e,l(e,x,t),t},o=function(e){return u(e,x)?e[x]:{}},a=function(e){return u(e,x)}}e.exports={set:r,get:o,has:a,enforce:_,getterFor:g}},"6eba":function(e,t,n){var r=n("23e7");r({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},"6eeb":function(e,t,n){var r=n("da84"),o=n("9112"),a=n("5135"),i=n("ce4e"),s=n("8925"),c=n("69f3"),l=c.get,u=c.enforce,f=String(String).split("String");(e.exports=function(e,t,n,s){var c,l=!!s&&!!s.unsafe,d=!!s&&!!s.enumerable,h=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||a(n,"name")||o(n,"name",t),c=u(n),c.source||(c.source=f.join("string"==typeof t?t:""))),e!==r?(l?!h&&e[t]&&(d=!0):delete e[t],d?e[t]=n:o(e,t,n)):d?e[t]=n:i(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||s(this)}))},"6f53":function(e,t,n){var r=n("83ab"),o=n("df75"),a=n("fc6a"),i=n("d1e7").f,s=function(e){return function(t){var n,s=a(t),c=o(s),l=c.length,u=0,f=[];while(l>u)n=c[u++],r&&!i.call(s,n)||f.push(e?[n,s[n]]:s[n]);return f}};e.exports={entries:s(!0),values:s(!1)}},7156:function(e,t,n){var r=n("861d"),o=n("d2bb");e.exports=function(e,t,n){var a,i;return o&&"function"==typeof(a=t.constructor)&&a!==n&&r(i=a.prototype)&&i!==n.prototype&&o(e,i),e}},"725d":function(e,t,n){var r=n("0206"),o=(r.System,r.VbrMode,r.Float,r.ShortBlock,r.Util,r.Arrays,r.new_array_n,r.new_byte,r.new_double,r.new_float),a=(r.new_float_n,r.new_int),i=(r.new_int_n,r.assert,n("2f21"));function s(){this.linprebuf=o(2*i.MAX_ORDER),this.linpre=0,this.lstepbuf=o(i.MAX_SAMPLES_PER_WINDOW+i.MAX_ORDER),this.lstep=0,this.loutbuf=o(i.MAX_SAMPLES_PER_WINDOW+i.MAX_ORDER),this.lout=0,this.rinprebuf=o(2*i.MAX_ORDER),this.rinpre=0,this.rstepbuf=o(i.MAX_SAMPLES_PER_WINDOW+i.MAX_ORDER),this.rstep=0,this.routbuf=o(i.MAX_SAMPLES_PER_WINDOW+i.MAX_ORDER),this.rout=0,this.sampleWindow=0,this.totsamp=0,this.lsum=0,this.rsum=0,this.freqindex=0,this.first=0,this.A=a(0|i.STEPS_per_dB*i.MAX_dB),this.B=a(0|i.STEPS_per_dB*i.MAX_dB)}e.exports=s},7276:function(e,t){function n(){this.over_noise=0,this.tot_noise=0,this.max_noise=0,this.over_count=0,this.over_SSD=0,this.bits=0}e.exports=n},"72f7":function(e,t,n){"use strict";var r=n("ebb5").exportTypedArrayMethod,o=n("d039"),a=n("da84"),i=a.Uint8Array,s=i&&i.prototype||{},c=[].toString,l=[].join;o((function(){c.call({})}))&&(c=function(){return l.call(this)});var u=s.toString!=c;r("toString",c,u)},"735e":function(e,t,n){"use strict";var r=n("ebb5"),o=n("81d5"),a=r.aTypedArray,i=r.exportTypedArrayMethod;i("fill",(function(e){return o.apply(a(this),arguments)}))},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"746f":function(e,t,n){var r=n("428f"),o=n("5135"),a=n("e538"),i=n("9bf2").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||i(t,e,{value:a.f(e)})}},"74e8":function(e,t,n){"use strict";var r=n("23e7"),o=n("da84"),a=n("83ab"),i=n("8aa7"),s=n("ebb5"),c=n("621a"),l=n("19aa"),u=n("5c6c"),f=n("9112"),d=n("5e89"),h=n("50c4"),p=n("0b25"),m=n("182d"),_=n("a04b"),g=n("5135"),b=n("f5df"),v=n("861d"),y=n("d9b5"),w=n("7c73"),x=n("d2bb"),k=n("241c").f,S=n("a078"),A=n("b727").forEach,M=n("2626"),R=n("9bf2"),E=n("06cf"),T=n("69f3"),O=n("7156"),L=T.get,B=T.set,I=R.f,C=E.f,P=Math.round,j=o.RangeError,N=c.ArrayBuffer,H=c.DataView,F=s.NATIVE_ARRAY_BUFFER_VIEWS,D=s.TYPED_ARRAY_CONSTRUCTOR,U=s.TYPED_ARRAY_TAG,V=s.TypedArray,q=s.TypedArrayPrototype,$=s.aTypedArrayConstructor,z=s.isTypedArray,Y="BYTES_PER_ELEMENT",X="Wrong length",G=function(e,t){var n=0,r=t.length,o=new($(e))(r);while(r>n)o[n]=t[n++];return o},K=function(e,t){I(e,t,{get:function(){return L(this)[t]}})},W=function(e){var t;return e instanceof N||"ArrayBuffer"==(t=b(e))||"SharedArrayBuffer"==t},Z=function(e,t){return z(e)&&!y(t)&&t in e&&d(+t)&&t>=0},Q=function(e,t){return t=_(t),Z(e,t)?u(2,e[t]):C(e,t)},J=function(e,t,n){return t=_(t),!(Z(e,t)&&v(n)&&g(n,"value"))||g(n,"get")||g(n,"set")||n.configurable||g(n,"writable")&&!n.writable||g(n,"enumerable")&&!n.enumerable?I(e,t,n):(e[t]=n.value,e)};a?(F||(E.f=Q,R.f=J,K(q,"buffer"),K(q,"byteOffset"),K(q,"byteLength"),K(q,"length")),r({target:"Object",stat:!0,forced:!F},{getOwnPropertyDescriptor:Q,defineProperty:J}),e.exports=function(e,t,n){var a=e.match(/\d+$/)[0]/8,s=e+(n?"Clamped":"")+"Array",c="get"+e,u="set"+e,d=o[s],_=d,g=_&&_.prototype,b={},y=function(e,t){var n=L(e);return n.view[c](t*a+n.byteOffset,!0)},R=function(e,t,r){var o=L(e);n&&(r=(r=P(r))<0?0:r>255?255:255&r),o.view[u](t*a+o.byteOffset,r,!0)},E=function(e,t){I(e,t,{get:function(){return y(this,t)},set:function(e){return R(this,t,e)},enumerable:!0})};F?i&&(_=t((function(e,t,n,r){return l(e,_,s),O(function(){return v(t)?W(t)?void 0!==r?new d(t,m(n,a),r):void 0!==n?new d(t,m(n,a)):new d(t):z(t)?G(_,t):S.call(_,t):new d(p(t))}(),e,_)})),x&&x(_,V),A(k(d),(function(e){e in _||f(_,e,d[e])})),_.prototype=g):(_=t((function(e,t,n,r){l(e,_,s);var o,i,c,u=0,f=0;if(v(t)){if(!W(t))return z(t)?G(_,t):S.call(_,t);o=t,f=m(n,a);var d=t.byteLength;if(void 0===r){if(d%a)throw j(X);if(i=d-f,i<0)throw j(X)}else if(i=h(r)*a,i+f>d)throw j(X);c=i/a}else c=p(t),i=c*a,o=new N(i);B(e,{buffer:o,byteOffset:f,byteLength:i,length:c,view:new H(o)});while(u<c)E(e,u++)})),x&&x(_,V),g=_.prototype=w(q)),g.constructor!==_&&f(g,"constructor",_),f(g,D,_),U&&f(g,U,s),b[s]=_,r({global:!0,forced:_!=d,sham:!F},b),Y in _||f(_,Y,a),Y in g||f(g,Y,a),M(s)}):e.exports=function(){}},"74fe":function(e,t,n){e.exports=n("2d78")},7656:function(e,t,n){"use strict";t.__esModule=!0,t.AMPERSAND=t.CLOSEPAREN=t.CLOSEANGLEBRACKET=t.CLOSEBRACKET=t.CLOSEBRACE=t.OPENPAREN=t.OPENANGLEBRACKET=t.OPENBRACKET=t.OPENBRACE=t.WS=t.TLD=t.SYM=t.UNDERSCORE=t.SLASH=t.MAILTO=t.PROTOCOL=t.QUERY=t.POUND=t.PLUS=t.NUM=t.NL=t.LOCALHOST=t.PUNCTUATION=t.DOT=t.COLON=t.AT=t.DOMAIN=t.Base=void 0;var r=n("46f3"),o=n("254c"),a=(0,r.createTokenClass)();function i(e){var t=e?{v:e}:{};return(0,o.inherits)(a,(0,r.createTokenClass)(),t)}a.prototype={toString:function(){return this.v+""}};var s=i(),c=i("@"),l=i(":"),u=i("."),f=i(),d=i(),h=i("\n"),p=i(),m=i("+"),_=i("#"),g=i(),b=i("mailto:"),v=i("?"),y=i("/"),w=i("_"),x=i(),k=i(),S=i(),A=i("{"),M=i("["),R=i("<"),E=i("("),T=i("}"),O=i("]"),L=i(">"),B=i(")"),I=i("&");t.Base=a,t.DOMAIN=s,t.AT=c,t.COLON=l,t.DOT=u,t.PUNCTUATION=f,t.LOCALHOST=d,t.NL=h,t.NUM=p,t.PLUS=m,t.POUND=_,t.QUERY=v,t.PROTOCOL=g,t.MAILTO=b,t.SLASH=y,t.UNDERSCORE=w,t.SYM=x,t.TLD=k,t.WS=S,t.OPENBRACE=A,t.OPENBRACKET=M,t.OPENANGLEBRACKET=R,t.OPENPAREN=E,t.CLOSEBRACE=T,t.CLOSEBRACKET=O,t.CLOSEANGLEBRACKET=L,t.CLOSEPAREN=B,t.AMPERSAND=I},"77a7":function(e,t){var n=Math.abs,r=Math.pow,o=Math.floor,a=Math.log,i=Math.LN2,s=function(e,t,s){var c,l,u,f=new Array(s),d=8*s-t-1,h=(1<<d)-1,p=h>>1,m=23===t?r(2,-24)-r(2,-77):0,_=e<0||0===e&&1/e<0?1:0,g=0;for(e=n(e),e!=e||e===1/0?(l=e!=e?1:0,c=h):(c=o(a(e)/i),e*(u=r(2,-c))<1&&(c--,u*=2),e+=c+p>=1?m/u:m*r(2,1-p),e*u>=2&&(c++,u/=2),c+p>=h?(l=0,c=h):c+p>=1?(l=(e*u-1)*r(2,t),c+=p):(l=e*r(2,p-1)*r(2,t),c=0));t>=8;f[g++]=255&l,l/=256,t-=8);for(c=c<<t|l,d+=t;d>0;f[g++]=255&c,c/=256,d-=8);return f[--g]|=128*_,f},c=function(e,t){var n,o=e.length,a=8*o-t-1,i=(1<<a)-1,s=i>>1,c=a-7,l=o-1,u=e[l--],f=127&u;for(u>>=7;c>0;f=256*f+e[l],l--,c-=8);for(n=f&(1<<-c)-1,f>>=-c,c+=t;c>0;n=256*n+e[l],l--,c-=8);if(0===f)f=1-s;else{if(f===i)return n?NaN:u?-1/0:1/0;n+=r(2,t),f-=s}return(u?-1:1)*n*r(2,f-t)};e.exports={pack:s,unpack:c}},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7a82":function(e,t,n){var r=n("23e7"),o=n("83ab"),a=n("9bf2");r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:a.f})},"7b0b":function(e,t,n){var r=n("1d80");e.exports=function(e){return Object(r(e))}},"7c73":function(e,t,n){var r,o=n("825a"),a=n("37e8"),i=n("7839"),s=n("d012"),c=n("1be4"),l=n("cc12"),u=n("f772"),f=">",d="<",h="prototype",p="script",m=u("IE_PROTO"),_=function(){},g=function(e){return d+p+f+e+d+"/"+p+f},b=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){var e,t=l("iframe"),n="java"+p+":";if(t.style)return t.style.display="none",c.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(g("document.F=Object")),e.close(),e.F},y=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}y=document.domain&&r?b(r):v()||b(r);var e=i.length;while(e--)delete y[h][i[e]];return y()};s[m]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(_[h]=o(e),n=new _,_[h]=null,n[m]=e):n=y(),void 0===t?n:a(n,t)}},"7db0":function(e,t,n){"use strict";var r=n("23e7"),o=n("b727").find,a=n("44d2"),i="find",s=!0;i in[]&&Array(1)[i]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a(i)},"7dd0":function(e,t,n){"use strict";var r=n("23e7"),o=n("9ed3"),a=n("e163"),i=n("d2bb"),s=n("d44e"),c=n("9112"),l=n("6eeb"),u=n("b622"),f=n("c430"),d=n("3f8c"),h=n("ae93"),p=h.IteratorPrototype,m=h.BUGGY_SAFARI_ITERATORS,_=u("iterator"),g="keys",b="values",v="entries",y=function(){return this};e.exports=function(e,t,n,u,h,w,x){o(n,t,u);var k,S,A,M=function(e){if(e===h&&L)return L;if(!m&&e in T)return T[e];switch(e){case g:return function(){return new n(this,e)};case b:return function(){return new n(this,e)};case v:return function(){return new n(this,e)}}return function(){return new n(this)}},R=t+" Iterator",E=!1,T=e.prototype,O=T[_]||T["@@iterator"]||h&&T[h],L=!m&&O||M(h),B="Array"==t&&T.entries||O;if(B&&(k=a(B.call(new e)),p!==Object.prototype&&k.next&&(f||a(k)===p||(i?i(k,p):"function"!=typeof k[_]&&c(k,_,y)),s(k,R,!0,!0),f&&(d[R]=y))),h==b&&O&&O.name!==b&&(E=!0,L=function(){return O.call(this)}),f&&!x||T[_]===L||c(T,_,L),d[t]=L,h)if(S={values:M(b),keys:w?L:M(g),entries:M(v)},x)for(A in S)(m||E||!(A in T))&&l(T,A,S[A]);else r({target:t,proto:!0,forced:m||E},S);return S}},"7e12":function(e,t,n){var r=n("da84"),o=n("577e"),a=n("58a8").trim,i=n("5899"),s=r.parseFloat,c=1/s(i+"-0")!==-1/0;e.exports=c?function(e){var t=a(o(e)),n=s(t);return 0===n&&"-"==t.charAt(0)?-0:n}:s},"7f9a":function(e,t,n){var r=n("da84"),o=n("8925"),a=r.WeakMap;e.exports="function"===typeof a&&/native code/.test(o(a))},8100:function(e,t,n){var r=n("0206"),o=(r.System,r.VbrMode,r.Float,r.ShortBlock,r.Util),a=(r.Arrays,r.new_array_n,r.new_byte,r.new_double,r.new_float),i=(r.new_float_n,r.new_int,r.new_int_n,r.assert,n("4b5e"));function s(){var e=a(i.BLKSIZE),t=a(i.BLKSIZE_s/2),n=[.9238795325112867,.3826834323650898,.9951847266721969,.0980171403295606,.9996988186962042,.02454122852291229,.9999811752826011,.006135884649154475];function r(e,t,r){var a,i,s,c=0;r<<=1;var l=t+r;a=4;do{var u,f,d,h,p,m,_;_=a>>1,h=a,p=a<<1,m=p+h,a=p<<1,i=t,s=i+_;do{k=e[i+0]-e[i+h],x=e[i+0]+e[i+h],R=e[i+p]-e[i+m],A=e[i+p]+e[i+m],e[i+p]=x-A,e[i+0]=x+A,e[i+m]=k-R,e[i+h]=k+R,k=e[s+0]-e[s+h],x=e[s+0]+e[s+h],R=o.SQRT2*e[s+m],A=o.SQRT2*e[s+p],e[s+p]=x-A,e[s+0]=x+A,e[s+m]=k-R,e[s+h]=k+R,s+=a,i+=a}while(i<l);for(f=n[c+0],u=n[c+1],d=1;d<_;d++){var g,b;g=1-2*u*u,b=2*u*f,i=t+d,s=t+h-d;do{var v,y,w,x,k,S,A,M,R,E;y=b*e[i+h]-g*e[s+h],v=g*e[i+h]+b*e[s+h],k=e[i+0]-v,x=e[i+0]+v,S=e[s+0]-y,w=e[s+0]+y,y=b*e[i+m]-g*e[s+m],v=g*e[i+m]+b*e[s+m],R=e[i+p]-v,A=e[i+p]+v,E=e[s+p]-y,M=e[s+p]+y,y=u*A-f*E,v=f*A+u*E,e[i+p]=x-v,e[i+0]=x+v,e[s+m]=S-y,e[s+h]=S+y,y=f*M-u*R,v=u*M+f*R,e[s+p]=w-v,e[s+0]=w+v,e[i+m]=k-y,e[i+h]=k+y,s+=a,i+=a}while(i<l);g=f,f=g*n[c+0]-u*n[c+1],u=g*n[c+1]+u*n[c+0]}c+=2}while(a<r)}var s=[0,128,64,192,32,160,96,224,16,144,80,208,48,176,112,240,8,136,72,200,40,168,104,232,24,152,88,216,56,184,120,248,4,132,68,196,36,164,100,228,20,148,84,212,52,180,116,244,12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254];this.fft_short=function(e,n,o,a,c){for(var l=0;l<3;l++){var u=i.BLKSIZE_s/2,f=65535&192*(l+1),d=i.BLKSIZE_s/8-1;do{var h,p,m,_,g,b=255&s[d<<2];h=t[b]*a[o][c+b+f],g=t[127-b]*a[o][c+b+f+128],p=h-g,h+=g,m=t[b+64]*a[o][c+b+f+64],g=t[63-b]*a[o][c+b+f+192],_=m-g,m+=g,u-=4,n[l][u+0]=h+m,n[l][u+2]=h-m,n[l][u+1]=p+_,n[l][u+3]=p-_,h=t[b+1]*a[o][c+b+f+1],g=t[126-b]*a[o][c+b+f+129],p=h-g,h+=g,m=t[b+65]*a[o][c+b+f+65],g=t[62-b]*a[o][c+b+f+193],_=m-g,m+=g,n[l][u+i.BLKSIZE_s/2+0]=h+m,n[l][u+i.BLKSIZE_s/2+2]=h-m,n[l][u+i.BLKSIZE_s/2+1]=p+_,n[l][u+i.BLKSIZE_s/2+3]=p-_}while(--d>=0);r(n[l],u,i.BLKSIZE_s/2)}},this.fft_long=function(t,n,o,a,c){var l=i.BLKSIZE/8-1,u=i.BLKSIZE/2;do{var f,d,h,p,m,_=255&s[l];f=e[_]*a[o][c+_],m=e[_+512]*a[o][c+_+512],d=f-m,f+=m,h=e[_+256]*a[o][c+_+256],m=e[_+768]*a[o][c+_+768],p=h-m,h+=m,u-=4,n[u+0]=f+h,n[u+2]=f-h,n[u+1]=d+p,n[u+3]=d-p,f=e[_+1]*a[o][c+_+1],m=e[_+513]*a[o][c+_+513],d=f-m,f+=m,h=e[_+257]*a[o][c+_+257],m=e[_+769]*a[o][c+_+769],p=h-m,h+=m,n[u+i.BLKSIZE/2+0]=f+h,n[u+i.BLKSIZE/2+2]=f-h,n[u+i.BLKSIZE/2+1]=d+p,n[u+i.BLKSIZE/2+3]=d-p}while(--l>=0);r(n,u,i.BLKSIZE/2)},this.init_fft=function(n){for(var r=0;r<i.BLKSIZE;r++)e[r]=.42-.5*Math.cos(2*Math.PI*(r+.5)/i.BLKSIZE)+.08*Math.cos(4*Math.PI*(r+.5)/i.BLKSIZE);for(r=0;r<i.BLKSIZE_s/2;r++)t[r]=.5*(1-Math.cos(2*Math.PI*(r+.5)/i.BLKSIZE_s))}}e.exports=s},"81d5":function(e,t,n){"use strict";var r=n("7b0b"),o=n("23cb"),a=n("50c4");e.exports=function(e){var t=r(this),n=a(t.length),i=arguments.length,s=o(i>1?arguments[1]:void 0,n),c=i>2?arguments[2]:void 0,l=void 0===c?n:o(c,n);while(l>s)t[s++]=e;return t}},"825a":function(e,t,n){var r=n("861d");e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},"82f8":function(e,t,n){"use strict";var r=n("ebb5"),o=n("4d64").includes,a=r.aTypedArray,i=r.exportTypedArrayMethod;i("includes",(function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0)}))},"83ab":function(e,t,n){var r=n("d039");e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(e,t,n){"use strict";var r=n("a04b"),o=n("9bf2"),a=n("5c6c");e.exports=function(e,t,n){var i=r(t);i in e?o.f(e,i,a(0,n)):e[i]=n}},"841c":function(e,t,n){"use strict";var r=n("d784"),o=n("825a"),a=n("1d80"),i=n("129f"),s=n("577e"),c=n("14c3");r("search",(function(e,t,n){return[function(t){var n=a(this),r=void 0==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](s(n))},function(e){var r=o(this),a=s(e),l=n(t,r,a);if(l.done)return l.value;var u=r.lastIndex;i(u,0)||(r.lastIndex=0);var f=c(r,a);return i(r.lastIndex,u)||(r.lastIndex=u),null===f?-1:f.index}]}))},"857a":function(e,t,n){var r=n("1d80"),o=n("577e"),a=/"/g;e.exports=function(e,t,n,i){var s=o(r(e)),c="<"+t;return""!==n&&(c+=" "+n+'="'+o(i).replace(a,"&quot;")+'"'),c+">"+s+"</"+t+">"}},"861d":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},"874e":function(e,t,n){"use strict";(function(e){var t=n("da58");function r(){}function o(e){return e()}function a(){return Object.create(null)}function i(e){e.forEach(o)}function s(e){return"function"===typeof e}function c(e,t){return e!=e?t==t:e!==t||e&&"object"===typeof e||"function"===typeof e}let l,u;function f(e,t){return l||(l=document.createElement("a")),l.href=t,e===l.href}function d(e){return 0===Object.keys(e).length}function h(e){return e&&s(e.destroy)?e.destroy:r}function p(e,t){e.appendChild(t)}function m(e,t,n){e.insertBefore(t,n||null)}function _(e){e.parentNode.removeChild(e)}function g(e){return document.createElement(e)}function b(e){return document.createTextNode(e)}function v(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function y(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function w(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function x(e,t){e.value=null==t?"":t}function k(e,t,n,r){e.style.setProperty(t,n,r?"important":"")}function S(e){u=e}const A=[],M=[],R=[],E=[],T=Promise.resolve();let O=!1;function L(){O||(O=!0,T.then(j))}function B(){return L(),T}function I(e){R.push(e)}let C=!1;const P=new Set;function j(){if(!C){C=!0;do{for(let e=0;e<A.length;e+=1){const t=A[e];S(t),N(t.$$)}S(null),A.length=0;while(M.length)M.pop()();for(let e=0;e<R.length;e+=1){const t=R[e];P.has(t)||(P.add(t),t())}R.length=0}while(A.length);while(E.length)E.pop()();O=!1,C=!1,P.clear()}}function N(e){if(null!==e.fragment){e.update(),i(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(I)}}const H=new Set;function F(e,t){e&&e.i&&(H.delete(e),e.i(t))}const D="undefined"!==typeof window?window:"undefined"!==typeof globalThis?globalThis:e;function U(e,t){e.d(1),t.delete(e.key)}function V(e,t,n,r,o,a,i,s,c,l,u,f){let d=e.length,h=a.length,p=d;const m={};while(p--)m[e[p].key]=p;const _=[],g=new Map,b=new Map;p=h;while(p--){const e=f(o,a,p),s=n(e);let c=i.get(s);c?r&&c.p(e,t):(c=l(s,e),c.c()),g.set(s,_[p]=c),s in m&&b.set(s,Math.abs(p-m[s]))}const v=new Set,y=new Set;function w(e){F(e,1),e.m(s,u),i.set(e.key,e),u=e.first,h--}while(d&&h){const t=_[h-1],n=e[d-1],r=t.key,o=n.key;t===n?(u=t.first,d--,h--):g.has(o)?!i.has(r)||v.has(r)?w(t):y.has(o)?d--:b.get(r)>b.get(o)?(y.add(r),w(t)):(v.add(o),d--):(c(n,i),d--)}while(d--){const t=e[d];g.has(t.key)||c(t,i)}while(h)w(_[h-1]);return _}function q(e,t,n,r){const{fragment:a,on_mount:c,on_destroy:l,after_update:u}=e.$$;a&&a.m(t,n),r||I(()=>{const t=c.map(o).filter(s);l?l.push(...t):i(t),e.$$.on_mount=[]}),u.forEach(I)}function $(e,t){const n=e.$$;null!==n.fragment&&(i(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function z(e,t){-1===e.$$.dirty[0]&&(A.push(e),L(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Y(e,t,n,o,s,c,l,f=[-1]){const d=u;S(e);const h=e.$$={fragment:null,ctx:null,props:c,update:r,not_equal:s,bound:a(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(d?d.$$.context:t.context||[]),callbacks:a(),dirty:f,skip_bound:!1,root:t.target||d.$$.root};l&&l(h.root);let p=!1;h.ctx=n?n(e,t.props||{},(t,n,...r)=>{const o=r.length?r[0]:n;return h.ctx&&s(h.ctx[t],h.ctx[t]=o)&&(!h.skip_bound&&h.bound[t]&&h.bound[t](o),p&&z(e,t)),n}):[],h.update(),p=!0,i(h.before_update),h.fragment=!!o&&o(h.ctx),t.target&&(h.fragment&&h.fragment.c(),t.intro&&F(e.$$.fragment),q(e,t.target,t.anchor,t.customElement),j()),S(d)}class X{$destroy(){$(this,1),this.$destroy=r}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){this.$$set&&!d(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const G=[[-1,"✨","custom"],[0,"😀","smileys-emotion"],[1,"👋","people-body"],[3,"🐱","animals-nature"],[4,"🍎","food-drink"],[5,"🏠️","travel-places"],[6,"⚽","activities"],[7,"📝","objects"],[8,"⛔️","symbols"],[9,"🏁","flags"]].map(([e,t,n])=>({id:e,emoji:t,name:n})),K=G.slice(1),W=G[0],Z=2,Q=6,J="function"===typeof requestIdleCallback?requestIdleCallback:setTimeout;function ee(e){return e.unicode.includes("‍")}const te={"🥲":13.1,"🥻":12.1,"🥰":11,"🤩":5,"👱‍♀️":4,"🤣":3,"👁️‍🗨️":2,"😀":1,"😐️":.7,"😃":.6},ne=1e3,re="🖐️",oe=8,ae=["😊","😒","♥️","👍️","😍","😂","😭","☺️","😔","😩","😏","💕","🙌","😘"],ie='"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Twemoji Mozilla","Noto Color Emoji","EmojiOne Color","Android Emoji",sans-serif',se=(e,t)=>e<t?-1:e>t?1:0,ce=(e,t)=>{const n=document.createElement("canvas");n.width=n.height=1;const r=n.getContext("2d");return r.textBaseline="top",r.font="100px "+ie,r.fillStyle=t,r.scale(.01,.01),r.fillText(e,0,0),r.getImageData(0,0,1,1).data},le=(e,t)=>{const n=[...e].join(","),r=[...t].join(",");return n===r&&!n.startsWith("0,0,0,")};function ue(e){const t=ce(e,"#000"),n=ce(e,"#fff");return t&&n&&le(t,n)}function fe(){const e=Object.entries(te);try{for(const[t,n]of e)if(ue(t))return n}catch(t){}return e[0][1]}const de=new Promise(e=>J(()=>e(fe()))),he=new Map,pe="️",me="\ud83c",_e="‍",ge=127995,be=57339;function ve(e,t){if(0===t)return e;const n=e.indexOf(_e);return-1!==n?e.substring(0,n)+String.fromCodePoint(ge+t-1)+e.substring(n):(e.endsWith(pe)&&(e=e.substring(0,e.length-1)),e+me+String.fromCodePoint(be+t-1))}function ye(e){e.preventDefault(),e.stopPropagation()}function we(e,t,n){return t+=e?-1:1,t<0?t=n.length-1:t>=n.length&&(t=0),t}function xe(e,t){const n=new Set,r=[];for(const o of e){const e=t(o);n.has(e)||(n.add(e),r.push(o))}return r}function ke(e,t){const n=e=>{const n={};for(const r of e)"number"===typeof r.tone&&r.version<=t&&(n[r.tone]=r.unicode);return n};return e.map(({unicode:e,skins:t,shortcodes:r,url:o,name:a,category:i})=>({unicode:e,name:a,shortcodes:r,url:o,category:i,id:e||a,skins:t&&n(t),title:(r||[]).join(", ")}))}const Se=requestAnimationFrame;let Ae,Me="function"===typeof ResizeObserver;function Re(e,t){let n;return Me?(n=new ResizeObserver(e=>t(e[0].contentRect.width)),n.observe(e)):Se(()=>t(e.getBoundingClientRect().width)),{destroy(){n&&n.disconnect()}}}function Ee(e){{const t=document.createRange();return t.selectNode(e.firstChild),t.getBoundingClientRect().width}}function Te(e,t,n){for(const r of e){const e=n(r),o=Ee(e);"undefined"===typeof Ae&&(Ae=Ee(t));const a=o/1.8<Ae;he.set(r.unicode,a)}}function Oe(e){return xe(e,e=>e)}const{Map:Le}=D;function Be(e,t,n){const r=e.slice();return r[65]=t[n],r[67]=n,r}function Ie(e,t,n){const r=e.slice();return r[68]=t[n],r[67]=n,r}function Ce(e,t,n){const r=e.slice();return r[65]=t[n],r[67]=n,r}function Pe(e,t,n){const r=e.slice();return r[71]=t[n],r}function je(e,t,n){const r=e.slice();return r[74]=t[n],r[67]=n,r}function Ne(e,t){let n,r,o,a,i,s,c,l=t[74]+"";return{key:e,first:null,c(){n=g("div"),r=b(l),y(n,"id",o="skintone-"+t[67]),y(n,"class",a="emoji hide-focus "+(t[67]===t[20]?"active":"")),y(n,"aria-selected",i=t[67]===t[20]),y(n,"role","option"),y(n,"title",s=t[0].skinTones[t[67]]),y(n,"tabindex","-1"),y(n,"aria-label",c=t[0].skinTones[t[67]]),this.first=n},m(e,t){m(e,n,t),p(n,r)},p(e,u){t=e,512&u[0]&&l!==(l=t[74]+"")&&w(r,l),512&u[0]&&o!==(o="skintone-"+t[67])&&y(n,"id",o),1049088&u[0]&&a!==(a="emoji hide-focus "+(t[67]===t[20]?"active":""))&&y(n,"class",a),1049088&u[0]&&i!==(i=t[67]===t[20])&&y(n,"aria-selected",i),513&u[0]&&s!==(s=t[0].skinTones[t[67]])&&y(n,"title",s),513&u[0]&&c!==(c=t[0].skinTones[t[67]])&&y(n,"aria-label",c)},d(e){e&&_(n)}}}function He(e,t){let n,r,o,a,i,s,c,l,u,f=t[71].emoji+"";function d(){return t[51](t[71])}return{key:e,first:null,c(){n=g("button"),r=g("div"),o=b(f),y(r,"class","nav-emoji emoji"),y(n,"role","tab"),y(n,"class","nav-button"),y(n,"aria-controls",a="tab-"+t[71].id),y(n,"aria-label",i=t[0].categories[t[71].name]),y(n,"aria-selected",s=!t[4]&&t[12].id===t[71].id),y(n,"title",c=t[0].categories[t[71].name]),this.first=n},m(e,t){m(e,n,t),p(n,r),p(r,o),l||(u=v(n,"click",d),l=!0)},p(e,r){t=e,2048&r[0]&&f!==(f=t[71].emoji+"")&&w(o,f),2048&r[0]&&a!==(a="tab-"+t[71].id)&&y(n,"aria-controls",a),2049&r[0]&&i!==(i=t[0].categories[t[71].name])&&y(n,"aria-label",i),6160&r[0]&&s!==(s=!t[4]&&t[12].id===t[71].id)&&y(n,"aria-selected",s),2049&r[0]&&c!==(c=t[0].categories[t[71].name])&&y(n,"title",c)},d(e){e&&_(n),l=!1,u()}}}function Fe(e){let t,n;return{c(){t=g("img"),y(t,"class","custom-emoji"),f(t.src,n=e[65].url)||y(t,"src",n),y(t,"alt",""),y(t,"loading","lazy")},m(e,n){m(e,t,n)},p(e,r){16384&r[0]&&!f(t.src,n=e[65].url)&&y(t,"src",n)},d(e){e&&_(t)}}}function De(e){let t,n=e[26](e[65],e[8])+"";return{c(){t=b(n)},m(e,n){m(e,t,n)},p(e,r){16640&r[0]&&n!==(n=e[26](e[65],e[8])+"")&&w(t,n)},d(e){e&&_(t)}}}function Ue(e,t){let n,r,o,a,i,s,c;function l(e,t){return e[65].unicode?De:Fe}let u=l(t),f=u(t);return{key:e,first:null,c(){n=g("button"),f.c(),y(n,"role",r=t[4]?"option":"menuitem"),y(n,"aria-selected",o=t[4]?t[67]==t[5]:""),y(n,"aria-label",a=t[27](t[65],t[8])),y(n,"title",i=t[65].title),y(n,"class",s="emoji "+(t[4]&&t[67]===t[5]?"active":"")),y(n,"id",c="emo-"+t[65].id),this.first=n},m(e,t){m(e,n,t),f.m(n,null)},p(e,d){t=e,u===(u=l(t))&&f?f.p(t,d):(f.d(1),f=u(t),f&&(f.c(),f.m(n,null))),16&d[0]&&r!==(r=t[4]?"option":"menuitem")&&y(n,"role",r),16432&d[0]&&o!==(o=t[4]?t[67]==t[5]:"")&&y(n,"aria-selected",o),16640&d[0]&&a!==(a=t[27](t[65],t[8]))&&y(n,"aria-label",a),16384&d[0]&&i!==(i=t[65].title)&&y(n,"title",i),16432&d[0]&&s!==(s="emoji "+(t[4]&&t[67]===t[5]?"active":""))&&y(n,"class",s),16384&d[0]&&c!==(c="emo-"+t[65].id)&&y(n,"id",c)},d(e){e&&_(n),f.d()}}}function Ve(e,t){let n,r,o,a,i,s,c,l,u=(t[4]?t[0].searchResultsLabel:t[68].category?t[68].category:t[14].length>1?t[0].categories.custom:t[0].categories[t[12].name])+"",f=[],d=new Le,h=t[68].emojis;const v=e=>e[65].id;for(let p=0;p<h.length;p+=1){let e=Ce(t,h,p),n=v(e);d.set(n,f[p]=Ue(n,e))}return{key:e,first:null,c(){n=g("div"),r=b(u),i=g("div");for(let e=0;e<f.length;e+=1)f[e].c();y(n,"id",o="menu-label-"+t[67]),y(n,"class",a="category "+(1===t[14].length&&""===t[14][0].category?"gone":"")),y(n,"aria-hidden","true"),y(i,"class","emoji-menu"),y(i,"role",s=t[4]?"listbox":"menu"),y(i,"aria-labelledby",c="menu-label-"+t[67]),y(i,"id",l=t[4]?"search-results":""),this.first=n},m(e,t){m(e,n,t),p(n,r),m(e,i,t);for(let n=0;n<f.length;n+=1)f[n].m(i,null)},p(e,p){t=e,20497&p[0]&&u!==(u=(t[4]?t[0].searchResultsLabel:t[68].category?t[68].category:t[14].length>1?t[0].categories.custom:t[0].categories[t[12].name])+"")&&w(r,u),16384&p[0]&&o!==(o="menu-label-"+t[67])&&y(n,"id",o),16384&p[0]&&a!==(a="category "+(1===t[14].length&&""===t[14][0].category?"gone":""))&&y(n,"class",a),201343280&p[0]&&(h=t[68].emojis,f=V(f,p,v,1,t,h,d,i,U,Ue,null,Ce)),16&p[0]&&s!==(s=t[4]?"listbox":"menu")&&y(i,"role",s),16384&p[0]&&c!==(c="menu-label-"+t[67])&&y(i,"aria-labelledby",c),16&p[0]&&l!==(l=t[4]?"search-results":"")&&y(i,"id",l)},d(e){e&&_(n),e&&_(i);for(let t=0;t<f.length;t+=1)f[t].d()}}}function qe(e){let t,n;return{c(){t=g("img"),y(t,"class","custom-emoji"),f(t.src,n=e[65].url)||y(t,"src",n),y(t,"alt",""),y(t,"loading","lazy")},m(e,n){m(e,t,n)},p(e,r){1024&r[0]&&!f(t.src,n=e[65].url)&&y(t,"src",n)},d(e){e&&_(t)}}}function $e(e){let t,n=e[26](e[65],e[8])+"";return{c(){t=b(n)},m(e,n){m(e,t,n)},p(e,r){1280&r[0]&&n!==(n=e[26](e[65],e[8])+"")&&w(t,n)},d(e){e&&_(t)}}}function ze(e,t){let n,r,o,a;function i(e,t){return e[65].unicode?$e:qe}let s=i(t),c=s(t);return{key:e,first:null,c(){n=g("button"),c.c(),y(n,"role","menuitem"),y(n,"aria-label",r=t[27](t[65],t[8])),y(n,"title",o=t[65].title),y(n,"class","emoji"),y(n,"id",a="fav-"+t[65].id),this.first=n},m(e,t){m(e,n,t),c.m(n,null)},p(e,l){t=e,s===(s=i(t))&&c?c.p(t,l):(c.d(1),c=s(t),c&&(c.c(),c.m(n,null))),1280&l[0]&&r!==(r=t[27](t[65],t[8]))&&y(n,"aria-label",r),1024&l[0]&&o!==(o=t[65].title)&&y(n,"title",o),1024&l[0]&&a!==(a="fav-"+t[65].id)&&y(n,"id",a)},d(e){e&&_(n),c.d()}}}function Ye(e){let t,n,o,a,s,c,l,u,f,d,S,A,M,R,E,T,O,L,B,I,C,P,j,N,H,F,D,q,$,z,Y,X,G,K,W,Z,Q,J,ee,te,ne,re,oe,ae,ie=e[0].searchLabel+"",se=e[0].searchDescription+"",ce=e[0].skinToneDescription+"",le=[],ue=new Le,fe=[],de=new Le,he=[],pe=new Le,me=[],_e=new Le,ge=e[9];const be=e=>e[74];for(let r=0;r<ge.length;r+=1){let t=je(e,ge,r),n=be(t);ue.set(n,le[r]=Ne(n,t))}let ve=e[11];const ye=e=>e[71].id;for(let r=0;r<ve.length;r+=1){let t=Pe(e,ve,r),n=ye(t);de.set(n,fe[r]=He(n,t))}let we=e[14];const xe=e=>e[68].category;for(let r=0;r<we.length;r+=1){let t=Ie(e,we,r),n=xe(t);pe.set(n,he[r]=Ve(n,t))}let ke=e[10];const Se=e=>e[65].id;for(let r=0;r<ke.length;r+=1){let t=Be(e,ke,r),n=Se(t);_e.set(n,me[r]=ze(n,t))}return{c(){t=g("section"),n=g("div"),o=g("div"),a=g("div"),s=g("input"),f=g("label"),d=b(ie),S=g("span"),A=b(se),M=g("div"),R=g("button"),E=b(e[21]),L=g("span"),B=b(ce),I=g("div");for(let e=0;e<le.length;e+=1)le[e].c();H=g("div");for(let e=0;e<fe.length;e+=1)fe[e].c();D=g("div"),q=g("div"),$=g("div"),z=b(e[17]),X=g("div"),G=g("div");for(let e=0;e<he.length;e+=1)he[e].c();J=g("div");for(let e=0;e<me.length;e+=1)me[e].c();ne=g("button"),ne.textContent="😀",y(n,"class","pad-top"),y(s,"id","search"),y(s,"class","search"),y(s,"type","search"),y(s,"role","combobox"),y(s,"enterkeyhint","search"),y(s,"placeholder",c=e[0].searchLabel),y(s,"autocapitalize","none"),y(s,"autocomplete","off"),y(s,"spellcheck","true"),y(s,"aria-expanded",l=!(!e[4]||!e[1].length)),y(s,"aria-controls","search-results"),y(s,"aria-owns","search-results"),y(s,"aria-describedby","search-description"),y(s,"aria-autocomplete","list"),y(s,"aria-activedescendant",u=e[25]?"emo-"+e[25]:""),y(f,"class","sr-only"),y(f,"for","search"),y(S,"id","search-description"),y(S,"class","sr-only"),y(a,"class","search-wrapper"),y(R,"id","skintone-button"),y(R,"class",T="emoji "+(e[6]?"hide-focus":"")),y(R,"aria-label",e[23]),y(R,"title",e[23]),y(R,"aria-describedby","skintone-description"),y(R,"aria-haspopup","listbox"),y(R,"aria-expanded",e[6]),y(R,"aria-controls","skintone-list"),y(M,"class",O="skintone-button-wrapper "+(e[19]?"expanded":"")),y(L,"id","skintone-description"),y(L,"class","sr-only"),y(I,"id","skintone-list"),y(I,"class",C="skintone-list "+(e[6]?"":"hidden no-animate")),k(I,"transform","translateY("+(e[6]?0:"calc(-1 * var(--num-skintones) * var(--total-emoji-size))")+")"),y(I,"role","listbox"),y(I,"aria-label",P=e[0].skinTonesLabel),y(I,"aria-activedescendant",j="skintone-"+e[20]),y(I,"aria-hidden",N=!e[6]),y(o,"class","search-row"),y(H,"class","nav"),y(H,"role","tablist"),k(H,"grid-template-columns","repeat("+e[11].length+", 1fr)"),y(H,"aria-label",F=e[0].categoriesLabel),y(q,"class","indicator"),y(q,"style",e[18]),y(D,"class","indicator-wrapper"),y($,"class",Y="message "+(e[17]?"":"gone")),y($,"role","alert"),y($,"aria-live","polite"),y(X,"class",K="tabpanel "+(!e[13]||e[17]?"gone":"")),y(X,"role",W=e[4]?"region":"tabpanel"),y(X,"aria-label",Z=e[4]?e[0].searchResultsLabel:e[0].categories[e[12].name]),y(X,"id",Q=e[4]?"":"tab-"+e[12].id),y(X,"tabindex","0"),y(J,"class",ee="favorites emoji-menu "+(e[17]?"gone":"")),y(J,"role","menu"),y(J,"aria-label",te=e[0].favoritesLabel),k(J,"padding-right",e[24]+"px"),y(ne,"aria-hidden","true"),y(ne,"tabindex","-1"),y(ne,"class","abs-pos hidden emoji"),y(t,"class","picker"),y(t,"aria-label",re=e[0].regionLabel),y(t,"style",e[22])},m(r,i){m(r,t,i),p(t,n),p(t,o),p(o,a),p(a,s),x(s,e[2]),p(a,f),p(f,d),p(a,S),p(S,A),p(o,M),p(M,R),p(R,E),p(o,L),p(L,B),p(o,I);for(let e=0;e<le.length;e+=1)le[e].m(I,null);e[50](I),p(t,H);for(let e=0;e<fe.length;e+=1)fe[e].m(H,null);p(t,D),p(D,q),p(t,$),p($,z),p(t,X),p(X,G);for(let e=0;e<he.length;e+=1)he[e].m(G,null);e[52](X),p(t,J);for(let e=0;e<me.length;e+=1)me[e].m(J,null);p(t,ne),e[53](ne),e[54](t),oe||(ae=[v(s,"input",e[49]),v(s,"keydown",e[30]),v(R,"click",e[35]),v(I,"focusout",e[38]),v(I,"click",e[34]),v(I,"keydown",e[36]),v(I,"keyup",e[37]),v(H,"keydown",e[32]),h(e[29].call(null,q)),h(e[28].call(null,G)),v(X,"click",e[33]),v(J,"click",e[33])],oe=!0)},p(e,n){1&n[0]&&c!==(c=e[0].searchLabel)&&y(s,"placeholder",c),18&n[0]&&l!==(l=!(!e[4]||!e[1].length))&&y(s,"aria-expanded",l),33554432&n[0]&&u!==(u=e[25]?"emo-"+e[25]:"")&&y(s,"aria-activedescendant",u),4&n[0]&&x(s,e[2]),1&n[0]&&ie!==(ie=e[0].searchLabel+"")&&w(d,ie),1&n[0]&&se!==(se=e[0].searchDescription+"")&&w(A,se),2097152&n[0]&&w(E,e[21]),64&n[0]&&T!==(T="emoji "+(e[6]?"hide-focus":""))&&y(R,"class",T),8388608&n[0]&&y(R,"aria-label",e[23]),8388608&n[0]&&y(R,"title",e[23]),64&n[0]&&y(R,"aria-expanded",e[6]),524288&n[0]&&O!==(O="skintone-button-wrapper "+(e[19]?"expanded":""))&&y(M,"class",O),1&n[0]&&ce!==(ce=e[0].skinToneDescription+"")&&w(B,ce),1049089&n[0]&&(ge=e[9],le=V(le,n,be,1,e,ge,ue,I,U,Ne,null,je)),64&n[0]&&C!==(C="skintone-list "+(e[6]?"":"hidden no-animate"))&&y(I,"class",C),64&n[0]&&k(I,"transform","translateY("+(e[6]?0:"calc(-1 * var(--num-skintones) * var(--total-emoji-size))")+")"),1&n[0]&&P!==(P=e[0].skinTonesLabel)&&y(I,"aria-label",P),1048576&n[0]&&j!==(j="skintone-"+e[20])&&y(I,"aria-activedescendant",j),64&n[0]&&N!==(N=!e[6])&&y(I,"aria-hidden",N),6161&n[0]|1&n[1]&&(ve=e[11],fe=V(fe,n,ye,1,e,ve,de,H,U,He,null,Pe)),2048&n[0]&&k(H,"grid-template-columns","repeat("+e[11].length+", 1fr)"),1&n[0]&&F!==(F=e[0].categoriesLabel)&&y(H,"aria-label",F),262144&n[0]&&y(q,"style",e[18]),131072&n[0]&&w(z,e[17]),131072&n[0]&&Y!==(Y="message "+(e[17]?"":"gone"))&&y($,"class",Y),201347377&n[0]&&(we=e[14],he=V(he,n,xe,1,e,we,pe,G,U,Ve,null,Ie)),139264&n[0]&&K!==(K="tabpanel "+(!e[13]||e[17]?"gone":""))&&y(X,"class",K),16&n[0]&&W!==(W=e[4]?"region":"tabpanel")&&y(X,"role",W),4113&n[0]&&Z!==(Z=e[4]?e[0].searchResultsLabel:e[0].categories[e[12].name])&&y(X,"aria-label",Z),4112&n[0]&&Q!==(Q=e[4]?"":"tab-"+e[12].id)&&y(X,"id",Q),201327872&n[0]&&(ke=e[10],me=V(me,n,Se,1,e,ke,_e,J,U,ze,null,Be)),131072&n[0]&&ee!==(ee="favorites emoji-menu "+(e[17]?"gone":""))&&y(J,"class",ee),1&n[0]&&te!==(te=e[0].favoritesLabel)&&y(J,"aria-label",te),16777216&n[0]&&k(J,"padding-right",e[24]+"px"),1&n[0]&&re!==(re=e[0].regionLabel)&&y(t,"aria-label",re),4194304&n[0]&&y(t,"style",e[22])},i:r,o:r,d(n){n&&_(t);for(let e=0;e<le.length;e+=1)le[e].d();e[50](null);for(let e=0;e<fe.length;e+=1)fe[e].d();for(let e=0;e<he.length;e+=1)he[e].d();e[52](null);for(let e=0;e<me.length;e+=1)me[e].d();e[53](null),e[54](null),oe=!1,i(ae)}}}function Xe(e,t,n){let r,o,a,i,s,c,l,u,f,d,{skinToneEmoji:h}=t,{i18n:p}=t,{database:m}=t,{customEmoji:_}=t,{customCategorySorting:g}=t,b=!0,v=[],y=[],w="",x="",k=!1,S=-1,A=0,R="",E=!1,T=!1,O=0,L=0,I="",C=[],P=[],j=oe,N=0,H=0,F=K,D=!1;const U=e=>{r.getRootNode().getElementById(e).focus()},V=(e,t)=>{r.dispatchEvent(new CustomEvent(e,{detail:t,bubbles:!0,composed:!0}))},q=(e,t)=>t&&e.skins&&e.skins[t]||e.unicode,$=(e,t)=>Oe([e.name||q(e,t),...e.shortcodes||[]]).join(", "),z=e=>/^skintone-/.test(e.id);function Y(e){return Re(e,t=>{const o=parseInt(getComputedStyle(r).getPropertyValue("--num-columns"),10),a=e.parentElement.getBoundingClientRect().width,i=a-t;n(47,j=o),n(24,N=i)})}function X(e){return Re(e,e=>{n(45,A=e)})}function G(e){const t=r.getRootNode(),a=e=>t.getElementById("emo-"+e.id);Te(e,o,a),n(1,v=v)}function te(e){return!e.unicode||!ee(e)||he.get(e.unicode)}async function re(e){const t=await de;return e.filter(({version:e})=>!e||e<=t)}async function se(e){return ke(e,await de)}async function ce(e){if("undefined"===typeof e)return[];const t=-1===e?_:await m.getEmojiByGroup(e);return se(await re(t))}async function le(e){return se(await re(await m.getEmojiBySearchQuery(e)))}function ue(e){if(!k||!v.length)return;const t=t=>{ye(e),n(5,S=we(t,S,v))};switch(e.key){case"ArrowDown":return t(!1);case"ArrowUp":return t(!0);case"Enter":if(-1!==S)return ye(e),me(v[S].id);v.length&&n(5,S=0)}}function fe(e){n(2,w=""),n(44,x=""),n(5,S=-1),n(48,H=F.findIndex(t=>t.id===e.id))}function pe(e){const{target:t,key:n}=e,r=t=>{t&&(ye(e),t.focus())};switch(n){case"ArrowLeft":return r(t.previousSibling);case"ArrowRight":return r(t.nextSibling);case"Home":return r(t.parentElement.firstChild);case"End":return r(t.parentElement.lastChild)}}async function me(e){const t=await m.getEmojiByUnicodeOrName(e),r=[...v,...P].find(t=>t.id===e),o=r.unicode&&q(r,O);await m.incrementFavoriteEmojiCount(e),n(46,u=u),V("emoji-click",{emoji:t,skinTone:O,...o&&{unicode:o},...r.name&&{name:r.name}})}async function _e(e){const{target:t}=e;if(!t.classList.contains("emoji"))return;ye(e);const n=t.id.substring(4);me(n)}async function ge(e){const{target:t}=e;if(!z(t))return;ye(e);const r=parseInt(t.id.slice(9),10);n(8,O=r),n(6,E=!1),U("skintone-button"),V("skin-tone-change",{skinTone:r}),m.setPreferredSkinTone(r)}async function be(e){n(6,E=!E),n(20,L=O),E&&(ye(e),Se(()=>U("skintone-"+L)))}function Ae(e){if(!E)return;const t=async t=>{ye(e),n(20,L=t),await B(),U("skintone-"+L)};switch(e.key){case"ArrowUp":return t(we(!0,L,C));case"ArrowDown":return t(we(!1,L,C));case"Home":return t(0);case"End":return t(C.length-1);case"Enter":return ge(e);case"Escape":return ye(e),n(6,E=!1),U("skintone-button")}}function Ee(e){if(E)switch(e.key){case" ":return ge(e)}}async function Le(e){const{relatedTarget:t}=e;t&&z(t)||n(6,E=!1)}function Be(){w=this.value,n(2,w)}function Ie(e){M[e?"unshift":"push"](()=>{s=e,n(7,s)})}de.then(e=>{e||n(17,i=p.emojiUnsupportedMessage)});const Ce=e=>fe(e);function Pe(e){M[e?"unshift":"push"](()=>{a=e,n(3,a)})}function je(e){M[e?"unshift":"push"](()=>{o=e,n(16,o)})}function Ne(e){M[e?"unshift":"push"](()=>{r=e,n(15,r)})}return e.$$set=e=>{"skinToneEmoji"in e&&n(40,h=e.skinToneEmoji),"i18n"in e&&n(0,p=e.i18n),"database"in e&&n(39,m=e.database),"customEmoji"in e&&n(41,_=e.customEmoji),"customCategorySorting"in e&&n(42,g=e.customCategorySorting)},e.$$.update=()=>{if(1280&e.$$.dirty[1]&&_&&m&&n(39,m.customEmoji=_,m),1&e.$$.dirty[0]|256&e.$$.dirty[1]){async function t(){let e=!1;const t=setTimeout(()=>{e=!0,n(17,i=p.loadingMessage)},ne);try{await m.ready(),n(13,D=!0)}catch(r){console.error(r),n(17,i=p.networkErrorMessage)}finally{clearTimeout(t),e&&(e=!1,n(17,i=""))}}m&&t()}if(2048&e.$$.dirty[0]|1024&e.$$.dirty[1]&&(_&&_.length?n(11,F=[W,...K]):F!==K&&n(11,F=K)),4&e.$$.dirty[0]&&J(()=>{n(44,x=(w||"").trim()),n(5,S=-1)}),2048&e.$$.dirty[0]|131072&e.$$.dirty[1]&&n(12,f=F[H]),12288&e.$$.dirty[0]|8192&e.$$.dirty[1]){async function r(){if(D){if(x.length>=Z){const e=x,t=await le(e);e===x&&(n(1,v=t),n(4,k=!0))}else if(f){const e=f.id,t=await ce(e);e===f.id&&(n(1,v=t),n(4,k=!1))}}else n(1,v=[]),n(4,k=!1)}r()}if(2064&e.$$.dirty[0]&&n(22,l=`\n  --font-family: ${ie};\n  --num-groups: ${F.length}; \n  --indicator-opacity: ${k?0:1}; \n  --num-skintones: ${Q};`),8192&e.$$.dirty[0]|256&e.$$.dirty[1]){async function o(){D&&n(8,O=await m.getPreferredSkinTone())}o()}if(512&e.$$.dirty[1]&&n(9,C=Array(Q).fill().map((e,t)=>ve(h,t))),768&e.$$.dirty[0]&&n(21,c=C[O]),257&e.$$.dirty[0]&&n(23,I=p.skinToneLabel.replace("{skinTone}",p.skinTones[O])),8192&e.$$.dirty[0]|256&e.$$.dirty[1]){async function b(){n(46,u=(await Promise.all(ae.map(e=>m.getEmojiByUnicodeOrName(e)))).filter(Boolean))}D&&b()}if(8192&e.$$.dirty[0]|98560&e.$$.dirty[1]){async function M(){const e=await m.getTopFavoriteEmoji(j),t=await se(xe([...e,...u],e=>e.unicode||e.name).slice(0,j));n(10,P=t)}D&&u&&M()}if(147456&e.$$.dirty[1]&&n(18,R=`transform: translateX(${Me?H*A+"px":100*H+"%"})`),10&e.$$.dirty[0]){const e=v.filter(e=>e.unicode).filter(e=>ee(e)&&!he.has(e.unicode));e.length?Se(()=>G(e)):(n(1,v=v.filter(te)),Se(()=>{(a||{}).scrollTop=0}))}if(e.$$.dirty[0],e.$$.dirty[1],18&e.$$.dirty[0]|2048&e.$$.dirty[1]){function L(){if(k)return[{category:"",emojis:v}];const e=new Map;for(const t of v){const n=t.category||"";let r=e.get(n);r||(r=[],e.set(n,r)),r.push(t)}return[...e.entries()].map(([e,t])=>({category:e,emojis:t})).sort((e,t)=>g(e.category,t.category))}n(14,y=L())}34&e.$$.dirty[0]&&n(25,d=-1!==S&&v[S].id),192&e.$$.dirty[0]&&(E?s.addEventListener("transitionend",()=>{n(19,T=!0)},{once:!0}):n(19,T=!1))},[p,v,w,a,k,S,E,s,O,C,P,F,f,D,y,r,o,i,R,T,L,c,l,I,N,d,q,$,Y,X,ue,fe,pe,_e,ge,be,Ae,Ee,Le,m,h,_,g,b,x,A,u,j,H,Be,Ie,Ce,Pe,je,Ne]}class Ge extends X{constructor(e){super(),Y(this,e,Xe,Ye,c,{skinToneEmoji:40,i18n:0,database:39,customEmoji:41,customCategorySorting:42},null,[-1,-1,-1])}}const Ke="https://cdn.jsdelivr.net/npm/emoji-picker-element-data@^1/en/emojibase/data.json",We="en";var Ze={categoriesLabel:"Categories",emojiUnsupportedMessage:"Your browser does not support color emoji.",favoritesLabel:"Favorites",loadingMessage:"Loading…",networkErrorMessage:"Could not load emoji. Try refreshing.",regionLabel:"Emoji picker",searchDescription:"When search results are available, press up or down to select and enter to choose.",searchLabel:"Search",searchResultsLabel:"Search results",skinToneDescription:"When expanded, press up or down to select and enter to choose.",skinToneLabel:"Choose a skin tone (currently {skinTone})",skinTonesLabel:"Skin tones",skinTones:["Default","Light","Medium-Light","Medium","Medium-Dark","Dark"],categories:{custom:"Custom","smileys-emotion":"Smileys and emoticons","people-body":"People and body","animals-nature":"Animals and nature","food-drink":"Food and drink","travel-places":"Travel and places",activities:"Activities",objects:"Objects",symbols:"Symbols",flags:"Flags"}},Qe=":host{--emoji-size:1.375rem;--emoji-padding:0.5rem;--category-emoji-size:var(--emoji-size);--category-emoji-padding:var(--emoji-padding);--indicator-height:3px;--input-border-radius:0.5rem;--input-border-size:1px;--input-font-size:1rem;--input-line-height:1.5;--input-padding:0.25rem;--num-columns:8;--outline-size:2px;--border-size:1px;--skintone-border-radius:1rem;--category-font-size:1rem;display:flex;width:min-content;height:400px}:host,:host(.light){--background:#fff;--border-color:#e0e0e0;--indicator-color:#385ac1;--input-border-color:#999;--input-font-color:#111;--input-placeholder-color:#999;--outline-color:#999;--category-font-color:#111;--button-active-background:#e6e6e6;--button-hover-background:#d9d9d9}:host(.dark){--background:#222;--border-color:#444;--indicator-color:#5373ec;--input-border-color:#ccc;--input-font-color:#efefef;--input-placeholder-color:#ccc;--outline-color:#fff;--category-font-color:#efefef;--button-active-background:#555555;--button-hover-background:#484848}@media (prefers-color-scheme:dark){:host{--background:#222;--border-color:#444;--indicator-color:#5373ec;--input-border-color:#ccc;--input-font-color:#efefef;--input-placeholder-color:#ccc;--outline-color:#fff;--category-font-color:#efefef;--button-active-background:#555555;--button-hover-background:#484848}}button{margin:0;padding:0;border:0;background:0 0;box-shadow:none;-webkit-tap-highlight-color:transparent}button::-moz-focus-inner{border:0}input{padding:0;margin:0;line-height:1.15;font-family:inherit}input[type=search]{-webkit-appearance:none}:focus{outline:var(--outline-color) solid var(--outline-size);outline-offset:calc(-1*var(--outline-size))}:host([data-js-focus-visible]) :focus:not([data-focus-visible-added]){outline:0}:focus:not(:focus-visible){outline:0}.hide-focus{outline:0}*{box-sizing:border-box}.picker{contain:content;display:flex;flex-direction:column;background:var(--background);border:var(--border-size) solid var(--border-color);width:100%;height:100%;overflow:hidden;--total-emoji-size:calc(var(--emoji-size) + (2 * var(--emoji-padding)));--total-category-emoji-size:calc(var(--category-emoji-size) + (2 * var(--category-emoji-padding)))}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.hidden{opacity:0;pointer-events:none}.abs-pos{position:absolute;left:0;top:0}.gone{display:none!important}.skintone-button-wrapper,.skintone-list{background:var(--background);z-index:3}.skintone-button-wrapper.expanded{z-index:1}.skintone-list{position:absolute;right:0;top:0;z-index:2;overflow:visible;border-bottom:var(--border-size) solid var(--border-color);border-radius:0 0 var(--skintone-border-radius) var(--skintone-border-radius);will-change:transform;transition:transform .2s ease-in-out;transform-origin:center 0}@media (prefers-reduced-motion:reduce){.skintone-list{transition-duration:.001s}}.skintone-list.no-animate{transition:none}.tabpanel{overflow-y:auto;-webkit-overflow-scrolling:touch;will-change:transform;min-height:0;flex:1;contain:content}.emoji-menu{display:grid;grid-template-columns:repeat(var(--num-columns),var(--total-emoji-size));justify-content:space-around;align-items:flex-start;width:100%}.category{padding:var(--emoji-padding);font-size:var(--category-font-size);color:var(--category-font-color)}.custom-emoji,.emoji,button.emoji{height:var(--total-emoji-size);width:var(--total-emoji-size)}.emoji,button.emoji{font-size:var(--emoji-size);display:flex;align-items:center;justify-content:center;border-radius:100%;line-height:1;overflow:hidden;font-family:var(--font-family);cursor:pointer}@media (hover:hover)and (pointer:fine){.emoji:hover,button.emoji:hover{background:var(--button-hover-background)}}.emoji.active,.emoji:active,button.emoji.active,button.emoji:active{background:var(--button-active-background)}.custom-emoji{padding:var(--emoji-padding);object-fit:contain;pointer-events:none;background-repeat:no-repeat;background-position:center center;background-size:var(--emoji-size) var(--emoji-size)}.nav,.nav-button{align-items:center}.nav{display:grid;justify-content:space-between;contain:content}.nav-button{display:flex;justify-content:center}.nav-emoji{font-size:var(--category-emoji-size);width:var(--total-category-emoji-size);height:var(--total-category-emoji-size)}.indicator-wrapper{display:flex;border-bottom:1px solid var(--border-color)}.indicator{width:calc(100%/var(--num-groups));height:var(--indicator-height);opacity:var(--indicator-opacity);background-color:var(--indicator-color);will-change:transform,opacity;transition:opacity .1s linear,transform .25s ease-in-out}@media (prefers-reduced-motion:reduce){.indicator{will-change:opacity;transition:opacity .1s linear}}.pad-top,input.search{background:var(--background);width:100%}.pad-top{height:var(--emoji-padding);z-index:3}.search-row{display:flex;align-items:center;position:relative;padding-left:var(--emoji-padding);padding-bottom:var(--emoji-padding)}.search-wrapper{flex:1;min-width:0}input.search{padding:var(--input-padding);border-radius:var(--input-border-radius);border:var(--input-border-size) solid var(--input-border-color);color:var(--input-font-color);font-size:var(--input-font-size);line-height:var(--input-line-height)}input.search::placeholder{color:var(--input-placeholder-color)}.favorites{display:flex;flex-direction:row;border-top:var(--border-size) solid var(--border-color);contain:content}.message{padding:var(--emoji-padding)}";const Je=["customEmoji","customCategorySorting","database","dataSource","i18n","locale","skinToneEmoji"];class et extends HTMLElement{constructor(e){super(),this.attachShadow({mode:"open"});const t=document.createElement("style");t.textContent=Qe,this.shadowRoot.appendChild(t),this._ctx={locale:We,dataSource:Ke,skinToneEmoji:re,customCategorySorting:se,customEmoji:null,i18n:Ze,...e};for(const n of Je)"database"!==n&&Object.prototype.hasOwnProperty.call(this,n)&&(this._ctx[n]=this[n],delete this[n]);this._dbFlush()}connectedCallback(){this._cmp=new Ge({target:this.shadowRoot,props:this._ctx})}disconnectedCallback(){this._cmp.$destroy(),this._cmp=void 0;const{database:e}=this._ctx;e&&e.close().catch(e=>console.error(e))}static get observedAttributes(){return["locale","data-source","skin-tone-emoji"]}attributeChangedCallback(e,t,n){this._set(e.replace(/-([a-z])/g,(e,t)=>t.toUpperCase()),n)}_set(e,t){this._ctx[e]=t,this._cmp&&this._cmp.$set({[e]:t}),["locale","dataSource"].includes(e)&&this._dbFlush()}_dbCreate(){const{locale:e,dataSource:n,database:r}=this._ctx;r&&r.locale===e&&r.dataSource===n||this._set("database",new t["a"]({locale:e,dataSource:n}))}_dbFlush(){Promise.resolve().then(()=>this._dbCreate())}}const tt={};for(const n of Je)tt[n]={get(){return"database"===n&&this._dbCreate(),this._ctx[n]},set(e){if("database"===n)throw new Error("database is read-only");this._set(n,e)}};Object.defineProperties(et.prototype,tt),customElements.define("emoji-picker",et)}).call(this,n("c8ba"))},8875:function(e,t,n){var r,o,a;(function(n,i){o=[],r=i,a="function"===typeof r?r.apply(t,o):r,void 0===a||(e.exports=a)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(h){var n,r,o,a=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,i=/@([^@]*):(\d+):(\d+)\s*$/gi,s=a.exec(h.stack)||i.exec(h.stack),c=s&&s[1]||!1,l=s&&s[2]||!1,u=document.location.href.replace(document.location.hash,""),f=document.getElementsByTagName("script");c===u&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(l-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=n.replace(r,"$1").trim());for(var d=0;d<f.length;d++){if("interactive"===f[d].readyState)return f[d];if(f[d].src===c)return f[d];if(c===u&&f[d].innerHTML&&f[d].innerHTML.trim()===o)return f[d]}return null}}return e}))},8925:function(e,t,n){var r=n("c6cd"),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},"8aa5":function(e,t,n){"use strict";var r=n("6547").charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"8aa7":function(e,t,n){var r=n("da84"),o=n("d039"),a=n("1c7e"),i=n("ebb5").NATIVE_ARRAY_BUFFER_VIEWS,s=r.ArrayBuffer,c=r.Int8Array;e.exports=!i||!o((function(){c(1)}))||!o((function(){new c(-1)}))||!a((function(e){new c,new c(null),new c(1.5),new c(e)}),!0)||o((function(){return 1!==new c(new s(2),1,void 0).length}))},"8b09":function(e,t,n){var r=n("74e8");r("Int16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},"8cba":function(e,t){function n(){var e="http://www.mp3dev.org/",t=3,n=98,r=4,o=0,a=93;this.getLameVersion=function(){return t+"."+n+"."+r},this.getLameShortVersion=function(){return t+"."+n+"."+r},this.getLameVeryShortVersion=function(){return"LAME"+t+"."+n+"r"},this.getPsyVersion=function(){return o+"."+a},this.getLameUrl=function(){return e},this.getLameOsBitness=function(){return"32bits"}}e.exports=n},"90e3":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},9112:function(e,t,n){var r=n("83ab"),o=n("9bf2"),a=n("5c6c");e.exports=r?function(e,t,n){return o.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},9263:function(e,t,n){"use strict";var r=n("577e"),o=n("ad6d"),a=n("9f7f"),i=n("5692"),s=n("7c73"),c=n("69f3").get,l=n("fce3"),u=n("107c"),f=RegExp.prototype.exec,d=i("native-string-replace",String.prototype.replace),h=f,p=function(){var e=/a/,t=/b*/g;return f.call(e,"a"),f.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),m=a.UNSUPPORTED_Y||a.BROKEN_CARET,_=void 0!==/()??/.exec("")[1],g=p||_||m||l||u;g&&(h=function(e){var t,n,a,i,l,u,g,b=this,v=c(b),y=r(e),w=v.raw;if(w)return w.lastIndex=b.lastIndex,t=h.call(w,y),b.lastIndex=w.lastIndex,t;var x=v.groups,k=m&&b.sticky,S=o.call(b),A=b.source,M=0,R=y;if(k&&(S=S.replace("y",""),-1===S.indexOf("g")&&(S+="g"),R=y.slice(b.lastIndex),b.lastIndex>0&&(!b.multiline||b.multiline&&"\n"!==y.charAt(b.lastIndex-1))&&(A="(?: "+A+")",R=" "+R,M++),n=new RegExp("^(?:"+A+")",S)),_&&(n=new RegExp("^"+A+"$(?!\\s)",S)),p&&(a=b.lastIndex),i=f.call(k?n:b,R),k?i?(i.input=i.input.slice(M),i[0]=i[0].slice(M),i.index=b.lastIndex,b.lastIndex+=i[0].length):b.lastIndex=0:p&&i&&(b.lastIndex=b.global?i.index+i[0].length:a),_&&i&&i.length>1&&d.call(i[0],n,(function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(i[l]=void 0)})),i&&x)for(i.groups=u=s(null),l=0;l<x.length;l++)g=x[l],u[g[0]]=i[g[1]];return i}),e.exports=h},"947f":function(e,t,n){var r=n("67b2");function o(){this.class_id=0,this.num_samples=0,this.num_channels=0,this.in_samplerate=0,this.out_samplerate=0,this.scale=0,this.scale_left=0,this.scale_right=0,this.analysis=!1,this.bWriteVbrTag=!1,this.decode_only=!1,this.quality=0,this.mode=r.STEREO,this.force_ms=!1,this.free_format=!1,this.findReplayGain=!1,this.decode_on_the_fly=!1,this.write_id3tag_automatic=!1,this.brate=0,this.compression_ratio=0,this.copyright=0,this.original=0,this.extension=0,this.emphasis=0,this.error_protection=0,this.strict_ISO=!1,this.disable_reservoir=!1,this.quant_comp=0,this.quant_comp_short=0,this.experimentalY=!1,this.experimentalZ=0,this.exp_nspsytune=0,this.preset=0,this.VBR=null,this.VBR_q_frac=0,this.VBR_q=0,this.VBR_mean_bitrate_kbps=0,this.VBR_min_bitrate_kbps=0,this.VBR_max_bitrate_kbps=0,this.VBR_hard_min=0,this.lowpassfreq=0,this.highpassfreq=0,this.lowpasswidth=0,this.highpasswidth=0,this.maskingadjust=0,this.maskingadjust_short=0,this.ATHonly=!1,this.ATHshort=!1,this.noATH=!1,this.ATHtype=0,this.ATHcurve=0,this.ATHlower=0,this.athaa_type=0,this.athaa_loudapprox=0,this.athaa_sensitivity=0,this.short_blocks=null,this.useTemporal=!1,this.interChRatio=0,this.msfix=0,this.tune=!1,this.tune_value_a=0,this.version=0,this.encoder_delay=0,this.encoder_padding=0,this.framesize=0,this.frameNum=0,this.lame_allocated_gfp=0,this.internal_flags=null}e.exports=o},"94ca":function(e,t,n){var r=n("d039"),o=/#|\.prototype\./,a=function(e,t){var n=s[i(e)];return n==l||n!=c&&("function"==typeof t?r(t):!!t)},i=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},s=a.data={},c=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},"96cf":function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(B){c=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var o=t&&t.prototype instanceof _?t:_,a=Object.create(o.prototype),i=new T(r||[]);return a._invoke=A(e,n,i),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(B){return{type:"throw",arg:B}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",h="executing",p="completed",m={};function _(){}function g(){}function b(){}var v={};c(v,a,(function(){return this}));var y=Object.getPrototypeOf,w=y&&y(y(O([])));w&&w!==n&&r.call(w,a)&&(v=w);var x=b.prototype=_.prototype=Object.create(v);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(o,a,i,s){var c=u(e[o],e,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"===typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(f).then((function(e){l.value=e,i(l)}),(function(e){return n("throw",e,i,s)}))}s(c.arg)}var o;function a(e,r){function a(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(a,a):a()}this._invoke=a}function A(e,t,n){var r=f;return function(o,a){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===o)throw a;return L()}n.method=o,n.arg=a;while(1){var i=n.delegate;if(i){var s=M(i,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var c=u(e,t,n);if("normal"===c.type){if(r=n.done?p:d,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=p,n.method="throw",n.arg=c.arg)}}}function M(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator["return"]&&(n.method="return",n.arg=t,M(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=u(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function R(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(R,this),this.reset(!0)}function O(e){if(e){var n=e[a];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){while(++o<e.length)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}return{next:L}}function L(){return{value:t,done:!0}}return g.prototype=b,c(x,"constructor",b),c(b,"constructor",g),g.displayName=c(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,s,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},k(S.prototype),c(S.prototype,i,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new S(l(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},k(x),c(x,s,"Generator"),c(x,a,(function(){return this})),c(x,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){while(t.length){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=O,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=r}catch(o){"object"===typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},9828:function(e,t,n){var r=n("4b5e"),o={};o.SFBMAX=3*r.SBMAX_s,e.exports=o},9861:function(e,t,n){"use strict";n("e260");var r=n("23e7"),o=n("d066"),a=n("0d3b"),i=n("6eeb"),s=n("e2cc"),c=n("d44e"),l=n("9ed3"),u=n("69f3"),f=n("19aa"),d=n("5135"),h=n("0366"),p=n("f5df"),m=n("825a"),_=n("861d"),g=n("577e"),b=n("7c73"),v=n("5c6c"),y=n("9a1f"),w=n("35a1"),x=n("b622"),k=o("fetch"),S=o("Request"),A=S&&S.prototype,M=o("Headers"),R=x("iterator"),E="URLSearchParams",T=E+"Iterator",O=u.set,L=u.getterFor(E),B=u.getterFor(T),I=/\+/g,C=Array(4),P=function(e){return C[e-1]||(C[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},j=function(e){try{return decodeURIComponent(e)}catch(t){return e}},N=function(e){var t=e.replace(I," "),n=4;try{return decodeURIComponent(t)}catch(r){while(n)t=t.replace(P(n--),j);return t}},H=/[!'()~]|%20/g,F={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},D=function(e){return F[e]},U=function(e){return encodeURIComponent(e).replace(H,D)},V=function(e,t){if(t){var n,r,o=t.split("&"),a=0;while(a<o.length)n=o[a++],n.length&&(r=n.split("="),e.push({key:N(r.shift()),value:N(r.join("="))}))}},q=function(e){this.entries.length=0,V(this.entries,e)},$=function(e,t){if(e<t)throw TypeError("Not enough arguments")},z=l((function(e,t){O(this,{type:T,iterator:y(L(e).entries),kind:t})}),"Iterator",(function(){var e=B(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n})),Y=function(){f(this,Y,E);var e,t,n,r,o,a,i,s,c,l=arguments.length>0?arguments[0]:void 0,u=this,h=[];if(O(u,{type:E,entries:h,updateURL:function(){},updateSearchParams:q}),void 0!==l)if(_(l))if(e=w(l),"function"===typeof e){t=e.call(l),n=t.next;while(!(r=n.call(t)).done){if(o=y(m(r.value)),a=o.next,(i=a.call(o)).done||(s=a.call(o)).done||!a.call(o).done)throw TypeError("Expected sequence with length 2");h.push({key:g(i.value),value:g(s.value)})}}else for(c in l)d(l,c)&&h.push({key:c,value:g(l[c])});else V(h,"string"===typeof l?"?"===l.charAt(0)?l.slice(1):l:g(l))},X=Y.prototype;if(s(X,{append:function(e,t){$(arguments.length,2);var n=L(this);n.entries.push({key:g(e),value:g(t)}),n.updateURL()},delete:function(e){$(arguments.length,1);var t=L(this),n=t.entries,r=g(e),o=0;while(o<n.length)n[o].key===r?n.splice(o,1):o++;t.updateURL()},get:function(e){$(arguments.length,1);for(var t=L(this).entries,n=g(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){$(arguments.length,1);for(var t=L(this).entries,n=g(e),r=[],o=0;o<t.length;o++)t[o].key===n&&r.push(t[o].value);return r},has:function(e){$(arguments.length,1);var t=L(this).entries,n=g(e),r=0;while(r<t.length)if(t[r++].key===n)return!0;return!1},set:function(e,t){$(arguments.length,1);for(var n,r=L(this),o=r.entries,a=!1,i=g(e),s=g(t),c=0;c<o.length;c++)n=o[c],n.key===i&&(a?o.splice(c--,1):(a=!0,n.value=s));a||o.push({key:i,value:s}),r.updateURL()},sort:function(){var e,t,n,r=L(this),o=r.entries,a=o.slice();for(o.length=0,n=0;n<a.length;n++){for(e=a[n],t=0;t<n;t++)if(o[t].key>e.key){o.splice(t,0,e);break}t===n&&o.push(e)}r.updateURL()},forEach:function(e){var t,n=L(this).entries,r=h(e,arguments.length>1?arguments[1]:void 0,3),o=0;while(o<n.length)t=n[o++],r(t.value,t.key,this)},keys:function(){return new z(this,"keys")},values:function(){return new z(this,"values")},entries:function(){return new z(this,"entries")}},{enumerable:!0}),i(X,R,X.entries),i(X,"toString",(function(){var e,t=L(this).entries,n=[],r=0;while(r<t.length)e=t[r++],n.push(U(e.key)+"="+U(e.value));return n.join("&")}),{enumerable:!0}),c(Y,E),r({global:!0,forced:!a},{URLSearchParams:Y}),!a&&"function"==typeof M){var G=function(e){if(_(e)){var t,n=e.body;if(p(n)===E)return t=e.headers?new M(e.headers):new M,t.has("content-type")||t.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),b(e,{body:v(0,String(n)),headers:v(0,t)})}return e};if("function"==typeof k&&r({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return k(e,arguments.length>1?G(arguments[1]):{})}}),"function"==typeof S){var K=function(e){return f(this,K,"Request"),new S(e,arguments.length>1?G(arguments[1]):{})};A.constructor=K,K.prototype=A,r({global:!0,forced:!0},{Request:K})}}e.exports={URLSearchParams:Y,getState:L}},"99af":function(e,t,n){"use strict";var r=n("23e7"),o=n("d039"),a=n("e8b5"),i=n("861d"),s=n("7b0b"),c=n("50c4"),l=n("8418"),u=n("65f0"),f=n("1dde"),d=n("b622"),h=n("2d00"),p=d("isConcatSpreadable"),m=9007199254740991,_="Maximum allowed index exceeded",g=h>=51||!o((function(){var e=[];return e[p]=!1,e.concat()[0]!==e})),b=f("concat"),v=function(e){if(!i(e))return!1;var t=e[p];return void 0!==t?!!t:a(e)},y=!g||!b;r({target:"Array",proto:!0,forced:y},{concat:function(e){var t,n,r,o,a,i=s(this),f=u(i,0),d=0;for(t=-1,r=arguments.length;t<r;t++)if(a=-1===t?i:arguments[t],v(a)){if(o=c(a.length),d+o>m)throw TypeError(_);for(n=0;n<o;n++,d++)n in a&&l(f,d,a[n])}else{if(d>=m)throw TypeError(_);l(f,d++,a)}return f.length=d,f}})},"9a1f":function(e,t,n){var r=n("825a"),o=n("35a1");e.exports=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return r(t.call(e))}},"9a8c":function(e,t,n){"use strict";var r=n("ebb5"),o=n("145e"),a=r.aTypedArray,i=r.exportTypedArrayMethod;i("copyWithin",(function(e,t){return o.call(a(this),e,t,arguments.length>2?arguments[2]:void 0)}))},"9bdd":function(e,t,n){var r=n("825a"),o=n("2a62");e.exports=function(e,t,n,a){try{return a?t(r(n)[0],n[1]):t(n)}catch(i){throw o(e),i}}},"9bf2":function(e,t,n){var r=n("83ab"),o=n("0cfb"),a=n("825a"),i=n("a04b"),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(a(e),t=i(t),a(n),o)try{return s(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"9ed3":function(e,t,n){"use strict";var r=n("ae93").IteratorPrototype,o=n("7c73"),a=n("5c6c"),i=n("d44e"),s=n("3f8c"),c=function(){return this};e.exports=function(e,t,n){var l=t+" Iterator";return e.prototype=o(r,{next:a(1,n)}),i(e,l,!1,!0),s[l]=c,e}},"9f7f":function(e,t,n){var r=n("d039"),o=function(e,t){return RegExp(e,t)};t.UNSUPPORTED_Y=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},a04b:function(e,t,n){var r=n("c04e"),o=n("d9b5");e.exports=function(e){var t=r(e,"string");return o(t)?t:String(t)}},a078:function(e,t,n){var r=n("7b0b"),o=n("50c4"),a=n("35a1"),i=n("e95a"),s=n("0366"),c=n("ebb5").aTypedArrayConstructor;e.exports=function(e){var t,n,l,u,f,d,h=r(e),p=arguments.length,m=p>1?arguments[1]:void 0,_=void 0!==m,g=a(h);if(void 0!=g&&!i(g)){f=g.call(h),d=f.next,h=[];while(!(u=d.call(f)).done)h.push(u.value)}for(_&&p>2&&(m=s(m,arguments[2],2)),n=o(h.length),l=new(c(this))(n),t=0;n>t;t++)l[t]=_?m(h[t],t):h[t];return l}},a15b:function(e,t,n){"use strict";var r=n("23e7"),o=n("44ad"),a=n("fc6a"),i=n("a640"),s=[].join,c=o!=Object,l=i("join",",");r({target:"Array",proto:!0,forced:c||!l},{join:function(e){return s.call(a(this),void 0===e?",":e)}})},a1b7:function(e,t,n){var r=n("4b5e"),o=n("0206"),a=o.System,i=(o.VbrMode,o.Float,o.ShortBlock,o.Util,o.Arrays,o.new_array_n,o.new_byte,o.new_double,o.new_float),s=o.new_float_n;o.new_int,o.new_int_n,o.assert;function c(){this.l=i(r.SBMAX_l),this.s=s([r.SBMAX_s,3]);var e=this;this.assign=function(t){a.arraycopy(t.l,0,e.l,0,r.SBMAX_l);for(var n=0;n<r.SBMAX_s;n++)for(var o=0;o<3;o++)e.s[n][o]=t.s[n][o]}}e.exports=c},a26a:function(e,t){function n(){this.setModules=function(e,t){e,t}}e.exports=n},a434:function(e,t,n){"use strict";var r=n("23e7"),o=n("23cb"),a=n("a691"),i=n("50c4"),s=n("7b0b"),c=n("65f0"),l=n("8418"),u=n("1dde"),f=u("splice"),d=Math.max,h=Math.min,p=9007199254740991,m="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!f},{splice:function(e,t){var n,r,u,f,_,g,b=s(this),v=i(b.length),y=o(e,v),w=arguments.length;if(0===w?n=r=0:1===w?(n=0,r=v-y):(n=w-2,r=h(d(a(t),0),v-y)),v+n-r>p)throw TypeError(m);for(u=c(b,r),f=0;f<r;f++)_=y+f,_ in b&&l(u,f,b[_]);if(u.length=r,n<r){for(f=y;f<v-r;f++)_=f+r,g=f+n,_ in b?b[g]=b[_]:delete b[g];for(f=v;f>v-r+n;f--)delete b[f-1]}else if(n>r)for(f=v-r;f>y;f--)_=f+r-1,g=f+n-1,_ in b?b[g]=b[_]:delete b[g];for(f=0;f<n;f++)b[f+y]=arguments[f+2];return b.length=v-r+n,u}})},a4b4:function(e,t,n){var r=n("342f");e.exports=/web0s(?!.*chrome)/i.test(r)},a4d3:function(e,t,n){"use strict";var r=n("23e7"),o=n("da84"),a=n("d066"),i=n("c430"),s=n("83ab"),c=n("4930"),l=n("d039"),u=n("5135"),f=n("e8b5"),d=n("861d"),h=n("d9b5"),p=n("825a"),m=n("7b0b"),_=n("fc6a"),g=n("a04b"),b=n("577e"),v=n("5c6c"),y=n("7c73"),w=n("df75"),x=n("241c"),k=n("057f"),S=n("7418"),A=n("06cf"),M=n("9bf2"),R=n("d1e7"),E=n("9112"),T=n("6eeb"),O=n("5692"),L=n("f772"),B=n("d012"),I=n("90e3"),C=n("b622"),P=n("e538"),j=n("746f"),N=n("d44e"),H=n("69f3"),F=n("b727").forEach,D=L("hidden"),U="Symbol",V="prototype",q=C("toPrimitive"),$=H.set,z=H.getterFor(U),Y=Object[V],X=o.Symbol,G=a("JSON","stringify"),K=A.f,W=M.f,Z=k.f,Q=R.f,J=O("symbols"),ee=O("op-symbols"),te=O("string-to-symbol-registry"),ne=O("symbol-to-string-registry"),re=O("wks"),oe=o.QObject,ae=!oe||!oe[V]||!oe[V].findChild,ie=s&&l((function(){return 7!=y(W({},"a",{get:function(){return W(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=K(Y,t);r&&delete Y[t],W(e,t,n),r&&e!==Y&&W(Y,t,r)}:W,se=function(e,t){var n=J[e]=y(X[V]);return $(n,{type:U,tag:e,description:t}),s||(n.description=t),n},ce=function(e,t,n){e===Y&&ce(ee,t,n),p(e);var r=g(t);return p(n),u(J,r)?(n.enumerable?(u(e,D)&&e[D][r]&&(e[D][r]=!1),n=y(n,{enumerable:v(0,!1)})):(u(e,D)||W(e,D,v(1,{})),e[D][r]=!0),ie(e,r,n)):W(e,r,n)},le=function(e,t){p(e);var n=_(t),r=w(n).concat(pe(n));return F(r,(function(t){s&&!fe.call(n,t)||ce(e,t,n[t])})),e},ue=function(e,t){return void 0===t?y(e):le(y(e),t)},fe=function(e){var t=g(e),n=Q.call(this,t);return!(this===Y&&u(J,t)&&!u(ee,t))&&(!(n||!u(this,t)||!u(J,t)||u(this,D)&&this[D][t])||n)},de=function(e,t){var n=_(e),r=g(t);if(n!==Y||!u(J,r)||u(ee,r)){var o=K(n,r);return!o||!u(J,r)||u(n,D)&&n[D][r]||(o.enumerable=!0),o}},he=function(e){var t=Z(_(e)),n=[];return F(t,(function(e){u(J,e)||u(B,e)||n.push(e)})),n},pe=function(e){var t=e===Y,n=Z(t?ee:_(e)),r=[];return F(n,(function(e){!u(J,e)||t&&!u(Y,e)||r.push(J[e])})),r};if(c||(X=function(){if(this instanceof X)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?b(arguments[0]):void 0,t=I(e),n=function(e){this===Y&&n.call(ee,e),u(this,D)&&u(this[D],t)&&(this[D][t]=!1),ie(this,t,v(1,e))};return s&&ae&&ie(Y,t,{configurable:!0,set:n}),se(t,e)},T(X[V],"toString",(function(){return z(this).tag})),T(X,"withoutSetter",(function(e){return se(I(e),e)})),R.f=fe,M.f=ce,A.f=de,x.f=k.f=he,S.f=pe,P.f=function(e){return se(C(e),e)},s&&(W(X[V],"description",{configurable:!0,get:function(){return z(this).description}}),i||T(Y,"propertyIsEnumerable",fe,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:X}),F(w(re),(function(e){j(e)})),r({target:U,stat:!0,forced:!c},{for:function(e){var t=b(e);if(u(te,t))return te[t];var n=X(t);return te[t]=n,ne[n]=t,n},keyFor:function(e){if(!h(e))throw TypeError(e+" is not a symbol");if(u(ne,e))return ne[e]},useSetter:function(){ae=!0},useSimple:function(){ae=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!s},{create:ue,defineProperty:ce,defineProperties:le,getOwnPropertyDescriptor:de}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:he,getOwnPropertySymbols:pe}),r({target:"Object",stat:!0,forced:l((function(){S.f(1)}))},{getOwnPropertySymbols:function(e){return S.f(m(e))}}),G){var me=!c||l((function(){var e=X();return"[null]"!=G([e])||"{}"!=G({a:e})||"{}"!=G(Object(e))}));r({target:"JSON",stat:!0,forced:me},{stringify:function(e,t,n){var r,o=[e],a=1;while(arguments.length>a)o.push(arguments[a++]);if(r=t,(d(t)||void 0!==e)&&!h(e))return f(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!h(t))return t}),o[1]=t,G.apply(null,o)}})}X[V][q]||E(X[V],q,X[V].valueOf),N(X,U),B[D]=!0},a623:function(e,t,n){"use strict";var r=n("23e7"),o=n("b727").every,a=n("a640"),i=a("every");r({target:"Array",proto:!0,forced:!i},{every:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},a630:function(e,t,n){var r=n("23e7"),o=n("4df4"),a=n("1c7e"),i=!a((function(e){Array.from(e)}));r({target:"Array",stat:!0,forced:i},{from:o})},a640:function(e,t,n){"use strict";var r=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},a691:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},a975:function(e,t,n){"use strict";var r=n("ebb5"),o=n("b727").every,a=r.aTypedArray,i=r.exportTypedArrayMethod;i("every",(function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0)}))},a981:function(e,t){e.exports="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof DataView},a9e3:function(e,t,n){"use strict";var r=n("83ab"),o=n("da84"),a=n("94ca"),i=n("6eeb"),s=n("5135"),c=n("c6b6"),l=n("7156"),u=n("d9b5"),f=n("c04e"),d=n("d039"),h=n("7c73"),p=n("241c").f,m=n("06cf").f,_=n("9bf2").f,g=n("58a8").trim,b="Number",v=o[b],y=v.prototype,w=c(h(y))==b,x=function(e){if(u(e))throw TypeError("Cannot convert a Symbol value to a number");var t,n,r,o,a,i,s,c,l=f(e,"number");if("string"==typeof l&&l.length>2)if(l=g(l),t=l.charCodeAt(0),43===t||45===t){if(n=l.charCodeAt(2),88===n||120===n)return NaN}else if(48===t){switch(l.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+l}for(a=l.slice(2),i=a.length,s=0;s<i;s++)if(c=a.charCodeAt(s),c<48||c>o)return NaN;return parseInt(a,r)}return+l};if(a(b,!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var k,S=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof S&&(w?d((function(){y.valueOf.call(n)})):c(n)!=b)?l(new v(x(t)),n,S):x(t)},A=r?p(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),M=0;A.length>M;M++)s(v,k=A[M])&&!s(S,k)&&_(S,k,m(v,k));S.prototype=y,y.constructor=S,i(o,b,S)}},ab13:function(e,t,n){var r=n("b622"),o=r("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[o]=!1,"/./"[e](t)}catch(r){}}return!1}},abf5:function(e,t,n){var r=n("0206"),o=(r.System,r.VbrMode,r.Float,r.ShortBlock,r.Util,r.Arrays,r.new_array_n,r.new_byte,r.new_double,r.new_float),a=(r.new_float_n,r.new_int,r.new_int_n,r.assert,n("4b5e"));function i(){this.useAdjust=0,this.aaSensitivityP=0,this.adjust=0,this.adjustLimit=0,this.decay=0,this.floor=0,this.l=o(a.SBMAX_l),this.s=o(a.SBMAX_s),this.psfb21=o(a.PSFB21),this.psfb12=o(a.PSFB12),this.cb_l=o(a.CBANDS),this.cb_s=o(a.CBANDS),this.eql_w=o(a.BLKSIZE/2)}e.exports=i},ac1f:function(e,t,n){"use strict";var r=n("23e7"),o=n("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},accc:function(e,t,n){var r=n("23e7"),o=n("64e5");r({target:"Date",proto:!0,forced:Date.prototype.toISOString!==o},{toISOString:o})},acd8:function(e,t,n){var r=n("23e7"),o=n("7e12");r({global:!0,forced:parseFloat!=o},{parseFloat:o})},ace4:function(e,t,n){"use strict";var r=n("23e7"),o=n("d039"),a=n("621a"),i=n("825a"),s=n("23cb"),c=n("50c4"),l=n("4840"),u=a.ArrayBuffer,f=a.DataView,d=u.prototype.slice,h=o((function(){return!new u(2).slice(1,void 0).byteLength}));r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:h},{slice:function(e,t){if(void 0!==d&&void 0===t)return d.call(i(this),e);var n=i(this).byteLength,r=s(e,n),o=s(void 0===t?n:t,n),a=new(l(this,u))(c(o-r)),h=new f(this),p=new f(a),m=0;while(r<o)p.setUint8(m++,h.getUint8(r++));return a}})},ad6d:function(e,t,n){"use strict";var r=n("825a");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},addb:function(e,t){var n=Math.floor,r=function(e,t){var i=e.length,s=n(i/2);return i<8?o(e,t):a(r(e.slice(0,s),t),r(e.slice(s),t),t)},o=function(e,t){var n,r,o=e.length,a=1;while(a<o){r=a,n=e[a];while(r&&t(e[r-1],n)>0)e[r]=e[--r];r!==a++&&(e[r]=n)}return e},a=function(e,t,n){var r=e.length,o=t.length,a=0,i=0,s=[];while(a<r||i<o)a<r&&i<o?s.push(n(e[a],t[i])<=0?e[a++]:t[i++]):s.push(a<r?e[a++]:t[i++]);return s};e.exports=r},ae93:function(e,t,n){"use strict";var r,o,a,i=n("d039"),s=n("e163"),c=n("9112"),l=n("5135"),u=n("b622"),f=n("c430"),d=u("iterator"),h=!1,p=function(){return this};[].keys&&(a=[].keys(),"next"in a?(o=s(s(a)),o!==Object.prototype&&(r=o)):h=!0);var m=void 0==r||i((function(){var e={};return r[d].call(e)!==e}));m&&(r={}),f&&!m||l(r,d)||c(r,d,p),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},af03:function(e,t,n){var r=n("d039");e.exports=function(e){return r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},b041:function(e,t,n){"use strict";var r=n("00ee"),o=n("f5df");e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},b0c0:function(e,t,n){var r=n("83ab"),o=n("9bf2").f,a=Function.prototype,i=a.toString,s=/^\s*function ([^ (]*)/,c="name";r&&!(c in a)&&o(a,c,{configurable:!0,get:function(){try{return i.call(this).match(s)[1]}catch(e){return""}}})},b39a:function(e,t,n){"use strict";var r=n("da84"),o=n("ebb5"),a=n("d039"),i=r.Int8Array,s=o.aTypedArray,c=o.exportTypedArrayMethod,l=[].toLocaleString,u=[].slice,f=!!i&&a((function(){l.call(new i(1))})),d=a((function(){return[1,2].toLocaleString()!=new i([1,2]).toLocaleString()}))||!a((function(){i.prototype.toLocaleString.call([1,2])}));c("toLocaleString",(function(){return l.apply(f?u.call(s(this)):s(this),arguments)}),d)},b575:function(e,t,n){var r,o,a,i,s,c,l,u,f=n("da84"),d=n("06cf").f,h=n("2cf4").set,p=n("1cdc"),m=n("a4b4"),_=n("605d"),g=f.MutationObserver||f.WebKitMutationObserver,b=f.document,v=f.process,y=f.Promise,w=d(f,"queueMicrotask"),x=w&&w.value;x||(r=function(){var e,t;_&&(e=v.domain)&&e.exit();while(o){t=o.fn,o=o.next;try{t()}catch(n){throw o?i():a=void 0,n}}a=void 0,e&&e.enter()},p||_||m||!g||!b?y&&y.resolve?(l=y.resolve(void 0),l.constructor=y,u=l.then,i=function(){u.call(l,r)}):i=_?function(){v.nextTick(r)}:function(){h.call(f,r)}:(s=!0,c=b.createTextNode(""),new g(r).observe(c,{characterData:!0}),i=function(){c.data=s=!s})),e.exports=x||function(e){var t={fn:e,next:void 0};a&&(a.next=t),o||(o=t,i()),a=t}},b622:function(e,t,n){var r=n("da84"),o=n("5692"),a=n("5135"),i=n("90e3"),s=n("4930"),c=n("fdbf"),l=o("wks"),u=r.Symbol,f=c?u:u&&u.withoutSetter||i;e.exports=function(e){return a(l,e)&&(s||"string"==typeof l[e])||(s&&a(u,e)?l[e]=u[e]:l[e]=f("Symbol."+e)),l[e]}},b64b:function(e,t,n){var r=n("23e7"),o=n("7b0b"),a=n("df75"),i=n("d039"),s=i((function(){a(1)}));r({target:"Object",stat:!0,forced:s},{keys:function(e){return a(o(e))}})},b680:function(e,t,n){"use strict";var r=n("23e7"),o=n("a691"),a=n("408a"),i=n("1148"),s=n("d039"),c=1..toFixed,l=Math.floor,u=function(e,t,n){return 0===t?n:t%2===1?u(e,t-1,n*e):u(e*e,t/2,n)},f=function(e){var t=0,n=e;while(n>=4096)t+=12,n/=4096;while(n>=2)t+=1,n/=2;return t},d=function(e,t,n){var r=-1,o=n;while(++r<6)o+=t*e[r],e[r]=o%1e7,o=l(o/1e7)},h=function(e,t){var n=6,r=0;while(--n>=0)r+=e[n],e[n]=l(r/t),r=r%t*1e7},p=function(e){var t=6,n="";while(--t>=0)if(""!==n||0===t||0!==e[t]){var r=String(e[t]);n=""===n?r:n+i.call("0",7-r.length)+r}return n},m=c&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!s((function(){c.call({})}));r({target:"Number",proto:!0,forced:m},{toFixed:function(e){var t,n,r,s,c=a(this),l=o(e),m=[0,0,0,0,0,0],_="",g="0";if(l<0||l>20)throw RangeError("Incorrect fraction digits");if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(_="-",c=-c),c>1e-21)if(t=f(c*u(2,69,1))-69,n=t<0?c*u(2,-t,1):c/u(2,t,1),n*=4503599627370496,t=52-t,t>0){d(m,0,n),r=l;while(r>=7)d(m,1e7,0),r-=7;d(m,u(10,r,1),0),r=t-1;while(r>=23)h(m,1<<23),r-=23;h(m,1<<r),d(m,1,1),h(m,2),g=p(m)}else d(m,0,n),d(m,1<<-t,0),g=p(m)+i.call("0",l);return l>0?(s=g.length,g=_+(s<=l?"0."+i.call("0",l-s)+g:g.slice(0,s-l)+"."+g.slice(s-l))):g=_+g,g}})},b6b7:function(e,t,n){var r=n("ebb5"),o=n("4840"),a=r.TYPED_ARRAY_CONSTRUCTOR,i=r.aTypedArrayConstructor;e.exports=function(e){return i(o(e,e[a]))}},b727:function(e,t,n){var r=n("0366"),o=n("44ad"),a=n("7b0b"),i=n("50c4"),s=n("65f0"),c=[].push,l=function(e){var t=1==e,n=2==e,l=3==e,u=4==e,f=6==e,d=7==e,h=5==e||f;return function(p,m,_,g){for(var b,v,y=a(p),w=o(y),x=r(m,_,3),k=i(w.length),S=0,A=g||s,M=t?A(p,k):n||d?A(p,0):void 0;k>S;S++)if((h||S in w)&&(b=w[S],v=x(b,S,y),e))if(t)M[S]=v;else if(v)switch(e){case 3:return!0;case 5:return b;case 6:return S;case 2:c.call(M,b)}else switch(e){case 4:return!1;case 7:c.call(M,b)}return f?-1:l||u?u:M}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},b7fe:function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var r=n("1652"),o=n("7656"),a=i(o);function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var s="aaa|aarp|abarth|abb|abbott|abbvie|abc|able|abogado|abudhabi|ac|academy|accenture|accountant|accountants|aco|active|actor|ad|adac|ads|adult|ae|aeg|aero|aetna|af|afamilycompany|afl|africa|ag|agakhan|agency|ai|aig|aigo|airbus|airforce|airtel|akdn|al|alfaromeo|alibaba|alipay|allfinanz|allstate|ally|alsace|alstom|am|americanexpress|americanfamily|amex|amfam|amica|amsterdam|analytics|android|anquan|anz|ao|aol|apartments|app|apple|aq|aquarelle|ar|arab|aramco|archi|army|arpa|art|arte|as|asda|asia|associates|at|athleta|attorney|au|auction|audi|audible|audio|auspost|author|auto|autos|avianca|aw|aws|ax|axa|az|azure|ba|baby|baidu|banamex|bananarepublic|band|bank|bar|barcelona|barclaycard|barclays|barefoot|bargains|baseball|basketball|bauhaus|bayern|bb|bbc|bbt|bbva|bcg|bcn|bd|be|beats|beauty|beer|bentley|berlin|best|bestbuy|bet|bf|bg|bh|bharti|bi|bible|bid|bike|bing|bingo|bio|biz|bj|black|blackfriday|blanco|blockbuster|blog|bloomberg|blue|bm|bms|bmw|bn|bnl|bnpparibas|bo|boats|boehringer|bofa|bom|bond|boo|book|booking|boots|bosch|bostik|boston|bot|boutique|box|br|bradesco|bridgestone|broadway|broker|brother|brussels|bs|bt|budapest|bugatti|build|builders|business|buy|buzz|bv|bw|by|bz|bzh|ca|cab|cafe|cal|call|calvinklein|cam|camera|camp|cancerresearch|canon|capetown|capital|capitalone|car|caravan|cards|care|career|careers|cars|cartier|casa|case|caseih|cash|casino|cat|catering|catholic|cba|cbn|cbre|cbs|cc|cd|ceb|center|ceo|cern|cf|cfa|cfd|cg|ch|chanel|channel|chase|chat|cheap|chintai|chloe|christmas|chrome|chrysler|church|ci|cipriani|circle|cisco|citadel|citi|citic|city|cityeats|ck|cl|claims|cleaning|click|clinic|clinique|clothing|cloud|club|clubmed|cm|cn|co|coach|codes|coffee|college|cologne|com|comcast|commbank|community|company|compare|computer|comsec|condos|construction|consulting|contact|contractors|cooking|cookingchannel|cool|coop|corsica|country|coupon|coupons|courses|cr|credit|creditcard|creditunion|cricket|crown|crs|cruise|cruises|csc|cu|cuisinella|cv|cw|cx|cy|cymru|cyou|cz|dabur|dad|dance|data|date|dating|datsun|day|dclk|dds|de|deal|dealer|deals|degree|delivery|dell|deloitte|delta|democrat|dental|dentist|desi|design|dev|dhl|diamonds|diet|digital|direct|directory|discount|discover|dish|diy|dj|dk|dm|dnp|do|docs|doctor|dodge|dog|doha|domains|dot|download|drive|dtv|dubai|duck|dunlop|duns|dupont|durban|dvag|dvr|dz|earth|eat|ec|eco|edeka|edu|education|ee|eg|email|emerck|energy|engineer|engineering|enterprises|epost|epson|equipment|er|ericsson|erni|es|esq|estate|esurance|et|etisalat|eu|eurovision|eus|events|everbank|exchange|expert|exposed|express|extraspace|fage|fail|fairwinds|faith|family|fan|fans|farm|farmers|fashion|fast|fedex|feedback|ferrari|ferrero|fi|fiat|fidelity|fido|film|final|finance|financial|fire|firestone|firmdale|fish|fishing|fit|fitness|fj|fk|flickr|flights|flir|florist|flowers|fly|fm|fo|foo|food|foodnetwork|football|ford|forex|forsale|forum|foundation|fox|fr|free|fresenius|frl|frogans|frontdoor|frontier|ftr|fujitsu|fujixerox|fun|fund|furniture|futbol|fyi|ga|gal|gallery|gallo|gallup|game|games|gap|garden|gb|gbiz|gd|gdn|ge|gea|gent|genting|george|gf|gg|ggee|gh|gi|gift|gifts|gives|giving|gl|glade|glass|gle|global|globo|gm|gmail|gmbh|gmo|gmx|gn|godaddy|gold|goldpoint|golf|goo|goodhands|goodyear|goog|google|gop|got|gov|gp|gq|gr|grainger|graphics|gratis|green|gripe|grocery|group|gs|gt|gu|guardian|gucci|guge|guide|guitars|guru|gw|gy|hair|hamburg|hangout|haus|hbo|hdfc|hdfcbank|health|healthcare|help|helsinki|here|hermes|hgtv|hiphop|hisamitsu|hitachi|hiv|hk|hkt|hm|hn|hockey|holdings|holiday|homedepot|homegoods|homes|homesense|honda|honeywell|horse|hospital|host|hosting|hot|hoteles|hotels|hotmail|house|how|hr|hsbc|ht|htc|hu|hughes|hyatt|hyundai|ibm|icbc|ice|icu|id|ie|ieee|ifm|ikano|il|im|imamat|imdb|immo|immobilien|in|industries|infiniti|info|ing|ink|institute|insurance|insure|int|intel|international|intuit|investments|io|ipiranga|iq|ir|irish|is|iselect|ismaili|ist|istanbul|it|itau|itv|iveco|iwc|jaguar|java|jcb|jcp|je|jeep|jetzt|jewelry|jio|jlc|jll|jm|jmp|jnj|jo|jobs|joburg|jot|joy|jp|jpmorgan|jprs|juegos|juniper|kaufen|kddi|ke|kerryhotels|kerrylogistics|kerryproperties|kfh|kg|kh|ki|kia|kim|kinder|kindle|kitchen|kiwi|km|kn|koeln|komatsu|kosher|kp|kpmg|kpn|kr|krd|kred|kuokgroup|kw|ky|kyoto|kz|la|lacaixa|ladbrokes|lamborghini|lamer|lancaster|lancia|lancome|land|landrover|lanxess|lasalle|lat|latino|latrobe|law|lawyer|lb|lc|lds|lease|leclerc|lefrak|legal|lego|lexus|lgbt|li|liaison|lidl|life|lifeinsurance|lifestyle|lighting|like|lilly|limited|limo|lincoln|linde|link|lipsy|live|living|lixil|lk|loan|loans|locker|locus|loft|lol|london|lotte|lotto|love|lpl|lplfinancial|lr|ls|lt|ltd|ltda|lu|lundbeck|lupin|luxe|luxury|lv|ly|ma|macys|madrid|maif|maison|makeup|man|management|mango|map|market|marketing|markets|marriott|marshalls|maserati|mattel|mba|mc|mckinsey|md|me|med|media|meet|melbourne|meme|memorial|men|menu|meo|merckmsd|metlife|mg|mh|miami|microsoft|mil|mini|mint|mit|mitsubishi|mk|ml|mlb|mls|mm|mma|mn|mo|mobi|mobile|mobily|moda|moe|moi|mom|monash|money|monster|mopar|mormon|mortgage|moscow|moto|motorcycles|mov|movie|movistar|mp|mq|mr|ms|msd|mt|mtn|mtr|mu|museum|mutual|mv|mw|mx|my|mz|na|nab|nadex|nagoya|name|nationwide|natura|navy|nba|nc|ne|nec|net|netbank|netflix|network|neustar|new|newholland|news|next|nextdirect|nexus|nf|nfl|ng|ngo|nhk|ni|nico|nike|nikon|ninja|nissan|nissay|nl|no|nokia|northwesternmutual|norton|now|nowruz|nowtv|np|nr|nra|nrw|ntt|nu|nyc|nz|obi|observer|off|office|okinawa|olayan|olayangroup|oldnavy|ollo|om|omega|one|ong|onl|online|onyourside|ooo|open|oracle|orange|org|organic|origins|osaka|otsuka|ott|ovh|pa|page|panasonic|panerai|paris|pars|partners|parts|party|passagens|pay|pccw|pe|pet|pf|pfizer|pg|ph|pharmacy|phd|philips|phone|photo|photography|photos|physio|piaget|pics|pictet|pictures|pid|pin|ping|pink|pioneer|pizza|pk|pl|place|play|playstation|plumbing|plus|pm|pn|pnc|pohl|poker|politie|porn|post|pr|pramerica|praxi|press|prime|pro|prod|productions|prof|progressive|promo|properties|property|protection|pru|prudential|ps|pt|pub|pw|pwc|py|qa|qpon|quebec|quest|qvc|racing|radio|raid|re|read|realestate|realtor|realty|recipes|red|redstone|redumbrella|rehab|reise|reisen|reit|reliance|ren|rent|rentals|repair|report|republican|rest|restaurant|review|reviews|rexroth|rich|richardli|ricoh|rightathome|ril|rio|rip|rmit|ro|rocher|rocks|rodeo|rogers|room|rs|rsvp|ru|rugby|ruhr|run|rw|rwe|ryukyu|sa|saarland|safe|safety|sakura|sale|salon|samsclub|samsung|sandvik|sandvikcoromant|sanofi|sap|sapo|sarl|sas|save|saxo|sb|sbi|sbs|sc|sca|scb|schaeffler|schmidt|scholarships|school|schule|schwarz|science|scjohnson|scor|scot|sd|se|search|seat|secure|security|seek|select|sener|services|ses|seven|sew|sex|sexy|sfr|sg|sh|shangrila|sharp|shaw|shell|shia|shiksha|shoes|shop|shopping|shouji|show|showtime|shriram|si|silk|sina|singles|site|sj|sk|ski|skin|sky|skype|sl|sling|sm|smart|smile|sn|sncf|so|soccer|social|softbank|software|sohu|solar|solutions|song|sony|soy|space|spiegel|spot|spreadbetting|sr|srl|srt|st|stada|staples|star|starhub|statebank|statefarm|statoil|stc|stcgroup|stockholm|storage|store|stream|studio|study|style|su|sucks|supplies|supply|support|surf|surgery|suzuki|sv|swatch|swiftcover|swiss|sx|sy|sydney|symantec|systems|sz|tab|taipei|talk|taobao|target|tatamotors|tatar|tattoo|tax|taxi|tc|tci|td|tdk|team|tech|technology|tel|telecity|telefonica|temasek|tennis|teva|tf|tg|th|thd|theater|theatre|tiaa|tickets|tienda|tiffany|tips|tires|tirol|tj|tjmaxx|tjx|tk|tkmaxx|tl|tm|tmall|tn|to|today|tokyo|tools|top|toray|toshiba|total|tours|town|toyota|toys|tr|trade|trading|training|travel|travelchannel|travelers|travelersinsurance|trust|trv|tt|tube|tui|tunes|tushu|tv|tvs|tw|tz|ua|ubank|ubs|uconnect|ug|uk|unicom|university|uno|uol|ups|us|uy|uz|va|vacations|vana|vanguard|vc|ve|vegas|ventures|verisign|versicherung|vet|vg|vi|viajes|video|vig|viking|villas|vin|vip|virgin|visa|vision|vista|vistaprint|viva|vivo|vlaanderen|vn|vodka|volkswagen|volvo|vote|voting|voto|voyage|vu|vuelos|wales|walmart|walter|wang|wanggou|warman|watch|watches|weather|weatherchannel|webcam|weber|website|wed|wedding|weibo|weir|wf|whoswho|wien|wiki|williamhill|win|windows|wine|winners|wme|wolterskluwer|woodside|work|works|world|wow|ws|wtc|wtf|xbox|xerox|xfinity|xihuan|xin|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--30rr7y|xn--3bst00m|xn--3ds443g|xn--3e0b707e|xn--3hcrj9c|xn--3oq18vl8pn36a|xn--3pxu8k|xn--42c2d9a|xn--45br5cyl|xn--45brj9c|xn--45q11c|xn--4gbrim|xn--54b7fta0cc|xn--55qw42g|xn--55qx5d|xn--5su34j936bgsg|xn--5tzm5g|xn--6frz82g|xn--6qq986b3xl|xn--80adxhks|xn--80ao21a|xn--80aqecdr1a|xn--80asehdb|xn--80aswg|xn--8y0a063a|xn--90a3ac|xn--90ae|xn--90ais|xn--9dbq2a|xn--9et52u|xn--9krt00a|xn--b4w605ferd|xn--bck1b9a5dre4c|xn--c1avg|xn--c2br7g|xn--cck2b3b|xn--cg4bki|xn--clchc0ea0b2g2a9gcd|xn--czr694b|xn--czrs0t|xn--czru2d|xn--d1acj3b|xn--d1alf|xn--e1a4c|xn--eckvdtc9d|xn--efvy88h|xn--estv75g|xn--fct429k|xn--fhbei|xn--fiq228c5hs|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--fjq720a|xn--flw351e|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--fzys8d69uvgm|xn--g2xx48c|xn--gckr3f0f|xn--gecrj9c|xn--gk3at1e|xn--h2breg3eve|xn--h2brj9c|xn--h2brj9c8c|xn--hxt814e|xn--i1b6b1a6a2e|xn--imr513n|xn--io0a7i|xn--j1aef|xn--j1amh|xn--j6w193g|xn--jlq61u9w7b|xn--jvr189m|xn--kcrx77d1x4a|xn--kprw13d|xn--kpry57d|xn--kpu716f|xn--kput3i|xn--l1acc|xn--lgbbat1ad8j|xn--mgb9awbf|xn--mgba3a3ejt|xn--mgba3a4f16a|xn--mgba7c0bbn0a|xn--mgbaakc7dvf|xn--mgbaam7a8h|xn--mgbab2bd|xn--mgbai9azgqp6j|xn--mgbayh7gpa|xn--mgbb9fbpob|xn--mgbbh1a|xn--mgbbh1a71e|xn--mgbc0a9azcg|xn--mgbca7dzdo|xn--mgberp4a5d4ar|xn--mgbgu82a|xn--mgbi4ecexp|xn--mgbpl2fh|xn--mgbt3dhd|xn--mgbtx2b|xn--mgbx4cd0ab|xn--mix891f|xn--mk1bu44c|xn--mxtq1m|xn--ngbc5azd|xn--ngbe9e0a|xn--ngbrx|xn--node|xn--nqv7f|xn--nqv7fs00ema|xn--nyqy26a|xn--o3cw4h|xn--ogbpf8fl|xn--p1acf|xn--p1ai|xn--pbt977c|xn--pgbs0dh|xn--pssy2u|xn--q9jyb4c|xn--qcka1pmc|xn--qxam|xn--rhqv96g|xn--rovu88b|xn--rvc1e0am3e|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--tckwe|xn--tiq49xqyj|xn--unup4y|xn--vermgensberater-ctb|xn--vermgensberatung-pwb|xn--vhquv|xn--vuq861b|xn--w4r85el8fhu5dnra|xn--w4rs40l|xn--wgbh1c|xn--wgbl6a|xn--xhq521b|xn--xkc2al3hye2a|xn--xkc2dl3a5ee0h|xn--y9a3aq|xn--yfro4i67o|xn--ygbi2ammx|xn--zfr164b|xperia|xxx|xyz|yachts|yahoo|yamaxun|yandex|ye|yodobashi|yoga|yokohama|you|youtube|yt|yun|za|zappos|zara|zero|zip|zippo|zm|zone|zuerich|zw".split("|"),c="0123456789".split(""),l="0123456789abcdefghijklmnopqrstuvwxyz".split(""),u=[" ","\f","\r","\t","\v"," "," ","᠎"],f=[],d=function(e){return new r.CharacterState(e)},h=d(),p=d(o.NUM),m=d(o.DOMAIN),_=d(),g=d(o.WS);h.on("@",d(o.AT)).on(".",d(o.DOT)).on("+",d(o.PLUS)).on("#",d(o.POUND)).on("?",d(o.QUERY)).on("/",d(o.SLASH)).on("_",d(o.UNDERSCORE)).on(":",d(o.COLON)).on("{",d(o.OPENBRACE)).on("[",d(o.OPENBRACKET)).on("<",d(o.OPENANGLEBRACKET)).on("(",d(o.OPENPAREN)).on("}",d(o.CLOSEBRACE)).on("]",d(o.CLOSEBRACKET)).on(">",d(o.CLOSEANGLEBRACKET)).on(")",d(o.CLOSEPAREN)).on("&",d(o.AMPERSAND)).on([",",";","!",'"',"'"],d(o.PUNCTUATION)),h.on("\n",d(o.NL)).on(u,g),g.on(u,g);for(var b=0;b<s.length;b++){var v=(0,r.stateify)(s[b],h,o.TLD,o.DOMAIN);f.push.apply(f,v)}var y=(0,r.stateify)("file",h,o.DOMAIN,o.DOMAIN),w=(0,r.stateify)("ftp",h,o.DOMAIN,o.DOMAIN),x=(0,r.stateify)("http",h,o.DOMAIN,o.DOMAIN),k=(0,r.stateify)("mailto",h,o.DOMAIN,o.DOMAIN);f.push.apply(f,y),f.push.apply(f,w),f.push.apply(f,x),f.push.apply(f,k);var S=y.pop(),A=w.pop(),M=x.pop(),R=k.pop(),E=d(o.DOMAIN),T=d(o.PROTOCOL),O=d(o.MAILTO);A.on("s",E).on(":",T),M.on("s",E).on(":",T),f.push(E),S.on(":",T),E.on(":",T),R.on(":",O);var L=(0,r.stateify)("localhost",h,o.LOCALHOST,o.DOMAIN);f.push.apply(f,L),h.on(c,p),p.on("-",_).on(c,p).on(l,m),m.on("-",_).on(l,m);for(var B=0;B<f.length;B++)f[B].on("-",_).on(l,m);_.on("-",_).on(c,m).on(l,m),h.defaultTransition=d(o.SYM);var I=function(e){var t=e.replace(/[A-Z]/g,(function(e){return e.toLowerCase()})),n=e.length,r=[],o=0;while(o<n){var a=h,i=null,s=0,c=null,l=-1;while(o<n&&(i=a.next(t[o])))a=i,a.accepts()?(l=0,c=a):l>=0&&l++,s++,o++;if(!(l<0)){o-=l,s-=l;var u=c.emit();r.push(new u(e.substr(o-s,s)))}}return r},C=h;t.State=r.CharacterState,t.TOKENS=a,t.run=I,t.start=C},baa5:function(e,t,n){var r=n("23e7"),o=n("e58c");r({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},bb22:function(e,t,n){var r=n("ff81"),o=n("0206"),a=(o.System,o.VbrMode),i=o.Float,s=(o.ShortBlock,o.Util),c=(o.Arrays,o.new_array_n,o.new_byte,o.new_double,o.new_float),l=(o.new_float_n,o.new_int),u=(o.new_int_n,o.assert),f=n("4b5e"),d=n("f052"),h=n("bd8b");function p(){var e=null,t=null,n=null;function o(e){return u(0<=e+p.Q_MAX2&&e<p.Q_MAX),x[e+p.Q_MAX2]}this.setModules=function(r,o,a){e=r,t=o,n=a},this.IPOW20=function(e){return u(0<=e&&e<p.Q_MAX),k[e]};var m=2220446049250313e-31,_=p.IXMAX_VAL,g=_+2,b=p.Q_MAX,v=p.Q_MAX2,y=(p.LARGE_BITS,100);this.nr_of_sfb_block=[[[6,5,5,5],[9,9,9,9],[6,9,9,9]],[[6,5,7,3],[9,9,12,6],[6,9,12,6]],[[11,10,0,0],[18,18,0,0],[15,18,0,0]],[[7,7,7,0],[12,12,12,0],[6,15,12,0]],[[6,6,6,3],[12,9,9,6],[6,12,9,6]],[[8,8,5,0],[15,12,9,0],[6,18,9,0]]];var w=[0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,2,2,3,3,3,2,0];this.pretab=w,this.sfBandIndex=[new r([0,6,12,18,24,30,36,44,54,66,80,96,116,140,168,200,238,284,336,396,464,522,576],[0,4,8,12,18,24,32,42,56,74,100,132,174,192],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]),new r([0,6,12,18,24,30,36,44,54,66,80,96,114,136,162,194,232,278,332,394,464,540,576],[0,4,8,12,18,26,36,48,62,80,104,136,180,192],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]),new r([0,6,12,18,24,30,36,44,54,66,80,96,116,140,168,200,238,284,336,396,464,522,576],[0,4,8,12,18,26,36,48,62,80,104,134,174,192],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]),new r([0,4,8,12,16,20,24,30,36,44,52,62,74,90,110,134,162,196,238,288,342,418,576],[0,4,8,12,16,22,30,40,52,66,84,106,136,192],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]),new r([0,4,8,12,16,20,24,30,36,42,50,60,72,88,106,128,156,190,230,276,330,384,576],[0,4,8,12,16,22,28,38,50,64,80,100,126,192],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]),new r([0,4,8,12,16,20,24,30,36,44,54,66,82,102,126,156,194,240,296,364,448,550,576],[0,4,8,12,16,22,30,42,58,78,104,138,180,192],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]),new r([0,6,12,18,24,30,36,44,54,66,80,96,116,140,168,200,238,284,336,396,464,522,576],[0,4,8,12,18,26,36,48,62,80,104,134,174,192],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]),new r([0,6,12,18,24,30,36,44,54,66,80,96,116,140,168,200,238,284,336,396,464,522,576],[0,4,8,12,18,26,36,48,62,80,104,134,174,192],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]),new r([0,12,24,36,48,60,72,88,108,132,160,192,232,280,336,400,476,566,568,570,572,574,576],[0,8,16,24,36,52,72,96,124,160,162,164,166,192],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0])];var x=c(b+v+1),k=c(b),S=c(g),A=c(g);function M(e,t){var r=n.ATHformula(t,e);return r-=y,r=Math.pow(10,r/10+e.ATHlower),r}function R(e){for(var t=e.internal_flags.ATH.l,n=e.internal_flags.ATH.psfb21,r=e.internal_flags.ATH.s,o=e.internal_flags.ATH.psfb12,a=e.internal_flags,s=e.out_samplerate,c=0;c<f.SBMAX_l;c++){var l=a.scalefac_band.l[c],u=a.scalefac_band.l[c+1];t[c]=i.MAX_VALUE;for(var d=l;d<u;d++){var h=d*s/1152,p=M(e,h);t[c]=Math.min(t[c],p)}}for(c=0;c<f.PSFB21;c++){l=a.scalefac_band.psfb21[c],u=a.scalefac_band.psfb21[c+1];n[c]=i.MAX_VALUE;for(d=l;d<u;d++){h=d*s/1152,p=M(e,h);n[c]=Math.min(n[c],p)}}for(c=0;c<f.SBMAX_s;c++){l=a.scalefac_band.s[c],u=a.scalefac_band.s[c+1];r[c]=i.MAX_VALUE;for(d=l;d<u;d++){h=d*s/384,p=M(e,h);r[c]=Math.min(r[c],p)}r[c]*=a.scalefac_band.s[c+1]-a.scalefac_band.s[c]}for(c=0;c<f.PSFB12;c++){l=a.scalefac_band.psfb12[c],u=a.scalefac_band.psfb12[c+1];o[c]=i.MAX_VALUE;for(d=l;d<u;d++){h=d*s/384,p=M(e,h);o[c]=Math.min(o[c],p)}o[c]*=a.scalefac_band.s[13]-a.scalefac_band.s[12]}if(e.noATH){for(c=0;c<f.SBMAX_l;c++)t[c]=1e-20;for(c=0;c<f.PSFB21;c++)n[c]=1e-20;for(c=0;c<f.SBMAX_s;c++)r[c]=1e-20;for(c=0;c<f.PSFB12;c++)o[c]=1e-20}a.ATH.floor=10*Math.log10(M(e,-1))}function E(e){this.s=e}this.adj43=A,this.iteration_init=function(t){var n,r=t.internal_flags,o=r.l3_side;if(0==r.iteration_init_init){for(r.iteration_init_init=1,o.main_data_begin=0,R(t),S[0]=0,n=1;n<g;n++)S[n]=Math.pow(n,4/3);for(n=0;n<g-1;n++)A[n]=n+1-Math.pow(.5*(S[n]+S[n+1]),.75);for(A[n]=.5,n=0;n<b;n++)k[n]=Math.pow(2,-.1875*(n-210));for(n=0;n<=b+v;n++)x[n]=Math.pow(2,.25*(n-210-v));var a,i,s,c;for(e.huffman_init(r),n=t.exp_nspsytune>>2&63,n>=32&&(n-=64),a=Math.pow(10,n/4/10),n=t.exp_nspsytune>>8&63,n>=32&&(n-=64),i=Math.pow(10,n/4/10),n=t.exp_nspsytune>>14&63,n>=32&&(n-=64),s=Math.pow(10,n/4/10),n=t.exp_nspsytune>>20&63,n>=32&&(n-=64),c=s*Math.pow(10,n/4/10),n=0;n<f.SBMAX_l;n++){l=n<=6?a:n<=13?i:n<=20?s:c,r.nsPsy.longfact[n]=l}for(n=0;n<f.SBMAX_s;n++){var l;l=n<=5?a:n<=10?i:n<=11?s:c,r.nsPsy.shortfact[n]=l}}},this.on_pe=function(e,n,r,o,a,i){var s,c,f=e.internal_flags,p=0,m=l(2),_=new d(p),g=t.ResvMaxBits(e,o,_,i);p=_.bits;var b=p+g;for(b>h.MAX_BITS_PER_GRANULE&&(b=h.MAX_BITS_PER_GRANULE),s=0,c=0;c<f.channels_out;++c)r[c]=Math.min(h.MAX_BITS_PER_CHANNEL,p/f.channels_out),m[c]=0|r[c]*n[a][c]/700-r[c],m[c]>3*o/4&&(m[c]=3*o/4),m[c]<0&&(m[c]=0),m[c]+r[c]>h.MAX_BITS_PER_CHANNEL&&(m[c]=Math.max(0,h.MAX_BITS_PER_CHANNEL-r[c])),s+=m[c];if(s>g)for(c=0;c<f.channels_out;++c)m[c]=g*m[c]/s;for(c=0;c<f.channels_out;++c)r[c]+=m[c],g-=m[c];for(s=0,c=0;c<f.channels_out;++c)s+=r[c];if(s>h.MAX_BITS_PER_GRANULE){var v=0;for(c=0;c<f.channels_out;++c)r[c]*=h.MAX_BITS_PER_GRANULE,r[c]/=s,v+=r[c];u(v<=h.MAX_BITS_PER_GRANULE)}return b},this.reduce_side=function(e,t,n,r){u(r<=h.MAX_BITS_PER_GRANULE),u(e[0]+e[1]<=h.MAX_BITS_PER_GRANULE);var o=.33*(.5-t)/.5;o<0&&(o=0),o>.5&&(o=.5);var a=0|.5*o*(e[0]+e[1]);a>h.MAX_BITS_PER_CHANNEL-e[0]&&(a=h.MAX_BITS_PER_CHANNEL-e[0]),a<0&&(a=0),e[1]>=125&&(e[1]-a>125?(e[0]<n&&(e[0]+=a),e[1]-=a):(e[0]+=e[1]-125,e[1]=125)),a=e[0]+e[1],a>r&&(e[0]=r*e[0]/a,e[1]=r*e[1]/a),u(e[0]<=h.MAX_BITS_PER_CHANNEL),u(e[1]<=h.MAX_BITS_PER_CHANNEL),u(e[0]+e[1]<=h.MAX_BITS_PER_GRANULE)},this.athAdjust=function(e,t,n){var r=90.30873362,o=94.82444863,a=s.FAST_LOG10_X(t,10),i=e*e,c=0;return a-=n,i>1e-20&&(c=1+s.FAST_LOG10_X(i,10/r)),c<0&&(c=0),a*=c,a+=n+r-o,Math.pow(10,.1*a)},this.calc_xmin=function(e,t,n,r){var o,i=0,s=e.internal_flags,c=0,l=0,u=s.ATH,d=n.xr,h=e.VBR==a.vbr_mtrh?1:0,p=s.masking_lower;for(e.VBR!=a.vbr_mtrh&&e.VBR!=a.vbr_mt||(p=1),o=0;o<n.psy_lmax;o++){S=e.VBR==a.vbr_rh||e.VBR==a.vbr_mtrh?athAdjust(u.adjust,u.l[o],u.floor):u.adjust*u.l[o],w=n.width[o],A=S/w,M=m,E=w>>1,R=0;do{T=d[c]*d[c],R+=T,M+=T<A?T:A,c++,O=d[c]*d[c],R+=O,M+=O<A?O:A,c++}while(--E>0);if(R>S&&l++,o==f.SBPSY_l){var _=S*s.nsPsy.longfact[o];M<_&&(M=_)}if(0!=h&&(S=M),!e.ATHonly){var g=t.en.l[o];if(g>0)_=R*t.thm.l[o]*p/g,0!=h&&(_*=s.nsPsy.longfact[o]),S<_&&(S=_)}r[i++]=0!=h?S:S*s.nsPsy.longfact[o]}var b=575;if(n.block_type!=f.SHORT_TYPE){var v=576;while(0!=v--&&BitStream.EQ(d[v],0))b=v}n.max_nonzero_coeff=b;for(var y=n.sfb_smin;o<n.psymax;y++,o+=3){var w,x,k;for(k=e.VBR==a.vbr_rh||e.VBR==a.vbr_mtrh?athAdjust(u.adjust,u.s[y],u.floor):u.adjust*u.s[y],w=n.width[o],x=0;x<3;x++){var S,A,M,R=0,E=w>>1;A=k/w,M=m;do{var T,O;T=d[c]*d[c],R+=T,M+=T<A?T:A,c++,O=d[c]*d[c],R+=O,M+=O<A?O:A,c++}while(--E>0);if(R>k&&l++,y==f.SBPSY_s){_=k*s.nsPsy.shortfact[y];M<_&&(M=_)}if(S=0!=h?M:k,!e.ATHonly&&!e.ATHshort){g=t.en.s[y][x];if(g>0)_=R*t.thm.s[y][x]*p/g,0!=h&&(_*=s.nsPsy.shortfact[y]),S<_&&(S=_)}r[i++]=0!=h?S:S*s.nsPsy.shortfact[y]}e.useTemporal&&(r[i-3]>r[i-3+1]&&(r[i-3+1]+=(r[i-3]-r[i-3+1])*s.decay),r[i-3+1]>r[i-3+2]&&(r[i-3+2]+=(r[i-3+1]-r[i-3+2])*s.decay))}return l},this.calc_noise_core=function(e,t,n,r){var o=0,a=t.s,i=e.l3_enc;if(a>e.count1)while(0!=n--){l=e.xr[a],a++,o+=l*l,l=e.xr[a],a++,o+=l*l}else if(a>e.big_values){var s=c(2);s[0]=0,s[1]=r;while(0!=n--){l=Math.abs(e.xr[a])-s[i[a]],a++,o+=l*l,l=Math.abs(e.xr[a])-s[i[a]],a++,o+=l*l}}else while(0!=n--){var l;l=Math.abs(e.xr[a])-S[i[a]]*r,a++,o+=l*l,l=Math.abs(e.xr[a])-S[i[a]]*r,a++,o+=l*l}return t.s=a,o},this.calc_noise=function(e,t,n,r,a){var i,c,l=0,u=0,f=0,d=0,h=0,p=-20,m=0,_=e.scalefac,g=0;for(r.over_SSD=0,i=0;i<e.psymax;i++){var b,v=e.global_gain-(_[g++]+(0!=e.preflag?w[i]:0)<<e.scalefac_scale+1)-8*e.subblock_gain[e.window[i]],y=0;if(null!=a&&a.step[i]==v)y=a.noise[i],m+=e.width[i],n[l++]=y/t[u++],y=a.noise_log[i];else{var x,k=o(v);if(c=e.width[i]>>1,m+e.width[i]>e.max_nonzero_coeff)x=e.max_nonzero_coeff-m+1,c=x>0?x>>1:0;var S=new E(m);y=this.calc_noise_core(e,S,c,k),m=S.s,null!=a&&(a.step[i]=v,a.noise[i]=y),y=n[l++]=y/t[u++],y=s.FAST_LOG10(Math.max(y,1e-20)),null!=a&&(a.noise_log[i]=y)}if(null!=a&&(a.global_gain=e.global_gain),h+=y,y>0)b=Math.max(0|10*y+.5,1),r.over_SSD+=b*b,f++,d+=y;p=Math.max(p,y)}return r.over_count=f,r.tot_noise=h,r.over_noise=d,r.max_noise=p,f},this.set_pinfo=function(e,t,n,r,o){var a,i,s,l,d,h=e.internal_flags,p=0==t.scalefac_scale?.5:1,m=t.scalefac,_=c(L3Side.SFBMAX),g=c(L3Side.SFBMAX),b=new CalcNoiseResult;calc_xmin(e,n,t,_),calc_noise(t,_,g,b,null);var v=0;for(i=t.sfb_lmax,t.block_type!=f.SHORT_TYPE&&0==t.mixed_block_flag&&(i=22),a=0;a<i;a++){var y=h.scalefac_band.l[a],x=h.scalefac_band.l[a+1],k=x-y;for(l=0;v<x;v++)l+=t.xr[v]*t.xr[v];l/=k,d=1e15,h.pinfo.en[r][o][a]=d*l,h.pinfo.xfsf[r][o][a]=d*_[a]*g[a]/k,n.en.l[a]>0&&!e.ATHonly?l/=n.en.l[a]:l=0,h.pinfo.thr[r][o][a]=d*Math.max(l*n.thm.l[a],h.ATH.l[a]),h.pinfo.LAMEsfb[r][o][a]=0,0!=t.preflag&&a>=11&&(h.pinfo.LAMEsfb[r][o][a]=-p*w[a]),a<f.SBPSY_l&&(u(m[a]>=0),h.pinfo.LAMEsfb[r][o][a]-=p*m[a])}if(t.block_type==f.SHORT_TYPE)for(i=a,a=t.sfb_smin;a<f.SBMAX_s;a++){y=h.scalefac_band.s[a],x=h.scalefac_band.s[a+1],k=x-y;for(var S=0;S<3;S++){for(l=0,s=y;s<x;s++)l+=t.xr[v]*t.xr[v],v++;l=Math.max(l/k,1e-20),d=1e15,h.pinfo.en_s[r][o][3*a+S]=d*l,h.pinfo.xfsf_s[r][o][3*a+S]=d*_[i]*g[i]/k,n.en.s[a][S]>0?l/=n.en.s[a][S]:l=0,(e.ATHonly||e.ATHshort)&&(l=0),h.pinfo.thr_s[r][o][3*a+S]=d*Math.max(l*n.thm.s[a][S],h.ATH.s[a]),h.pinfo.LAMEsfb_s[r][o][3*a+S]=-2*t.subblock_gain[S],a<f.SBPSY_s&&(h.pinfo.LAMEsfb_s[r][o][3*a+S]-=p*m[i]),i++}}h.pinfo.LAMEqss[r][o]=t.global_gain,h.pinfo.LAMEmainbits[r][o]=t.part2_3_length+t.part2_length,h.pinfo.LAMEsfbits[r][o]=t.part2_length,h.pinfo.over[r][o]=b.over_count,h.pinfo.max_noise[r][o]=10*b.max_noise,h.pinfo.over_noise[r][o]=10*b.over_noise,h.pinfo.tot_noise[r][o]=10*b.tot_noise,h.pinfo.over_SSD[r][o]=b.over_SSD}}p.Q_MAX=257,p.Q_MAX2=116,p.LARGE_BITS=1e5,p.IXMAX_VAL=8206,e.exports=p},bd43:function(e,t,n){"use strict";n.r(t),n.d(t,"isImageFile",(function(){return a})),n.d(t,"isVideoFile",(function(){return i})),n.d(t,"isImageVideoFile",(function(){return s})),n.d(t,"isAudioFile",(function(){return c}));n("45fc"),n("caad"),n("2532");var r=n("c9d9");function o(e,t){if(t&&t.type)return e.some((function(e){return t.type.toLowerCase().includes(e)}))}function a(e){return o(r["b"],e)}function i(e){return o(r["c"],e)}function s(e){return o(r["b"],e)||o(r["c"],e)}function c(e){return o(r["a"],e)}},bd8b:function(e,t,n){var r=n("0206"),o=(r.System,r.VbrMode,r.Float,r.ShortBlock,r.Util,r.Arrays,r.new_array_n,r.new_byte),a=r.new_double,i=r.new_float,s=r.new_float_n,c=r.new_int,l=r.new_int_n,u=(r.assert,n("2695")),f=n("ff81"),d=n("c0be"),h=n("2466"),p=n("a1b7"),m=n("4b5e"),_=n("9828");function g(){var e=40;function t(){this.write_timing=0,this.ptr=0,this.buf=o(e)}this.Class_ID=0,this.lame_encode_frame_init=0,this.iteration_init_init=0,this.fill_buffer_resample_init=0,this.mfbuf=s([2,g.MFSIZE]),this.mode_gr=0,this.channels_in=0,this.channels_out=0,this.resample_ratio=0,this.mf_samples_to_encode=0,this.mf_size=0,this.VBR_min_bitrate=0,this.VBR_max_bitrate=0,this.bitrate_index=0,this.samplerate_index=0,this.mode_ext=0,this.lowpass1=0,this.lowpass2=0,this.highpass1=0,this.highpass2=0,this.noise_shaping=0,this.noise_shaping_amp=0,this.substep_shaping=0,this.psymodel=0,this.noise_shaping_stop=0,this.subblock_gain=0,this.use_best_huffman=0,this.full_outer_loop=0,this.l3_side=new u,this.ms_ratio=i(2),this.padding=0,this.frac_SpF=0,this.slot_lag=0,this.tag_spec=null,this.nMusicCRC=0,this.OldValue=c(2),this.CurrentStep=c(2),this.masking_lower=0,this.bv_scf=c(576),this.pseudohalf=c(_.SFBMAX),this.sfb21_extra=!1,this.inbuf_old=new Array(2),this.blackfilt=new Array(2*g.BPC+1),this.itime=a(2),this.sideinfo_len=0,this.sb_sample=s([2,2,18,m.SBLIMIT]),this.amp_filter=i(32),this.header=new Array(g.MAX_HEADER_BUF),this.h_ptr=0,this.w_ptr=0,this.ancillary_flag=0,this.ResvSize=0,this.ResvMax=0,this.scalefac_band=new f,this.minval_l=i(m.CBANDS),this.minval_s=i(m.CBANDS),this.nb_1=s([4,m.CBANDS]),this.nb_2=s([4,m.CBANDS]),this.nb_s1=s([4,m.CBANDS]),this.nb_s2=s([4,m.CBANDS]),this.s3_ss=null,this.s3_ll=null,this.decay=0,this.thm=new Array(4),this.en=new Array(4),this.tot_ener=i(4),this.loudness_sq=s([2,2]),this.loudness_sq_save=i(2),this.mld_l=i(m.SBMAX_l),this.mld_s=i(m.SBMAX_s),this.bm_l=c(m.SBMAX_l),this.bo_l=c(m.SBMAX_l),this.bm_s=c(m.SBMAX_s),this.bo_s=c(m.SBMAX_s),this.npart_l=0,this.npart_s=0,this.s3ind=l([m.CBANDS,2]),this.s3ind_s=l([m.CBANDS,2]),this.numlines_s=c(m.CBANDS),this.numlines_l=c(m.CBANDS),this.rnumlines_l=i(m.CBANDS),this.mld_cb_l=i(m.CBANDS),this.mld_cb_s=i(m.CBANDS),this.numlines_s_num1=0,this.numlines_l_num1=0,this.pe=i(4),this.ms_ratio_s_old=0,this.ms_ratio_l_old=0,this.ms_ener_ratio_old=0,this.blocktype_old=c(2),this.nsPsy=new d,this.VBR_seek_table=new h,this.ATH=null,this.PSY=null,this.nogap_total=0,this.nogap_current=0,this.decode_on_the_fly=!0,this.findReplayGain=!0,this.findPeakSample=!0,this.PeakSample=0,this.RadioGain=0,this.AudiophileGain=0,this.rgdata=null,this.noclipGainChange=0,this.noclipScale=0,this.bitrate_stereoMode_Hist=l([16,5]),this.bitrate_blockType_Hist=l([16,6]),this.pinfo=null,this.hip=null,this.in_buffer_nsamples=0,this.in_buffer_0=null,this.in_buffer_1=null,this.iteration_loop=null;for(var n=0;n<this.en.length;n++)this.en[n]=new p;for(n=0;n<this.thm.length;n++)this.thm[n]=new p;for(n=0;n<this.header.length;n++)this.header[n]=new t}g.MFSIZE=3456+m.ENCDELAY-m.MDCTDELAY,g.MAX_HEADER_BUF=256,g.MAX_BITS_PER_CHANNEL=4095,g.MAX_BITS_PER_GRANULE=7680,g.BPC=320,e.exports=g},bea1:function(e,t,n){"use strict";t.__esModule=!0,t.URL=t.TEXT=t.NL=t.EMAIL=t.MAILTOEMAIL=t.Base=void 0;var r=n("46f3"),o=n("254c"),a=n("7656");function i(e){return e instanceof a.DOMAIN||e instanceof a.TLD}var s=(0,r.createTokenClass)();s.prototype={type:"token",isLink:!1,toString:function(){for(var e=[],t=0;t<this.v.length;t++)e.push(this.v[t].toString());return e.join("")},toHref:function(){return this.toString()},toObject:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http";return{type:this.type,value:this.toString(),href:this.toHref(e)}}};var c=(0,o.inherits)(s,(0,r.createTokenClass)(),{type:"email",isLink:!0}),l=(0,o.inherits)(s,(0,r.createTokenClass)(),{type:"email",isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),u=(0,o.inherits)(s,(0,r.createTokenClass)(),{type:"text"}),f=(0,o.inherits)(s,(0,r.createTokenClass)(),{type:"nl"}),d=(0,o.inherits)(s,(0,r.createTokenClass)(),{type:"url",isLink:!0,toHref:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http",t=!1,n=!1,r=this.v,o=[],s=0;while(r[s]instanceof a.PROTOCOL)t=!0,o.push(r[s].toString().toLowerCase()),s++;while(r[s]instanceof a.SLASH)n=!0,o.push(r[s].toString()),s++;while(i(r[s]))o.push(r[s].toString().toLowerCase()),s++;for(;s<r.length;s++)o.push(r[s].toString());return o=o.join(""),t||n||(o=e+"://"+o),o},hasProtocol:function(){return this.v[0]instanceof a.PROTOCOL}});t.Base=s,t.MAILTOEMAIL=c,t.EMAIL=l,t.NL=f,t.TEXT=u,t.URL=d},c04e:function(e,t,n){var r=n("861d"),o=n("d9b5"),a=n("485a"),i=n("b622"),s=i("toPrimitive");e.exports=function(e,t){if(!r(e)||o(e))return e;var n,i=e[s];if(void 0!==i){if(void 0===t&&(t="default"),n=i.call(e,t),!r(n)||o(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},c0b6:function(e,t,n){var r=n("23e7"),o=n("0538");r({target:"Function",proto:!0},{bind:o})},c0be:function(e,t,n){var r=n("0206"),o=(r.System,r.VbrMode,r.Float,r.ShortBlock,r.Util,r.Arrays,r.new_array_n,r.new_byte,r.new_double,r.new_float),a=r.new_float_n,i=r.new_int,s=(r.new_int_n,r.assert,n("4b5e"));function c(){this.last_en_subshort=a([4,9]),this.lastAttacks=i(4),this.pefirbuf=o(19),this.longfact=o(s.SBMAX_l),this.shortfact=o(s.SBMAX_s),this.attackthre=0,this.attackthre_s=0}e.exports=c},c1ac:function(e,t,n){"use strict";var r=n("ebb5"),o=n("b727").filter,a=n("1448"),i=r.aTypedArray,s=r.exportTypedArrayMethod;s("filter",(function(e){var t=o(i(this),e,arguments.length>1?arguments[1]:void 0);return a(this,t)}))},c28b:function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){var e="undefined"!=typeof window,t="undefined"!=typeof navigator,n=e&&("ontouchstart"in window||t&&navigator.msMaxTouchPoints>0)?["touchstart"]:["click"];function r(e){var t=e.event,n=e.handler;(0,e.middleware)(t)&&n(t)}function o(e,t){var o=function(e){var t="function"==typeof e;if(!t&&"object"!=typeof e)throw new Error("v-click-outside: Binding value must be a function or an object");return{handler:t?e:e.handler,middleware:e.middleware||function(e){return e},events:e.events||n,isActive:!(!1===e.isActive),detectIframe:!(!1===e.detectIframe)}}(t.value),a=o.handler,i=o.middleware,s=o.detectIframe;if(o.isActive){if(e["__v-click-outside"]=o.events.map((function(t){return{event:t,srcTarget:document.documentElement,handler:function(t){return function(e){var t=e.el,n=e.event,o=e.handler,a=e.middleware,i=n.path||n.composedPath&&n.composedPath();(i?i.indexOf(t)<0:!t.contains(n.target))&&r({event:n,handler:o,middleware:a})}({el:e,event:t,handler:a,middleware:i})}}})),s){var c={event:"blur",srcTarget:window,handler:function(t){return function(e){var t=e.el,n=e.event,o=e.handler,a=e.middleware;setTimeout((function(){var e=document.activeElement;e&&"IFRAME"===e.tagName&&!t.contains(e)&&r({event:n,handler:o,middleware:a})}),0)}({el:e,event:t,handler:a,middleware:i})}};e["__v-click-outside"]=[].concat(e["__v-click-outside"],[c])}e["__v-click-outside"].forEach((function(t){var n=t.event,r=t.srcTarget,o=t.handler;return setTimeout((function(){e["__v-click-outside"]&&r.addEventListener(n,o,!1)}),0)}))}}function a(e){(e["__v-click-outside"]||[]).forEach((function(e){return e.srcTarget.removeEventListener(e.event,e.handler,!1)})),delete e["__v-click-outside"]}var i=e?{bind:o,update:function(e,t){var n=t.value,r=t.oldValue;JSON.stringify(n)!==JSON.stringify(r)&&(a(e),o(e,{value:n}))},unbind:a}:{};return{install:function(e){e.directive("click-outside",i)},directive:i}}))},c430:function(e,t){e.exports=!1},c5d0:function(e,t,n){"use strict";var r=n("23e7"),o=n("857a"),a=n("af03");r({target:"String",proto:!0,forced:a("italics")},{italics:function(){return o(this,"i","","")}})},c6b6:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},c6cd:function(e,t,n){var r=n("da84"),o=n("ce4e"),a="__core-js_shared__",i=r[a]||o(a,{});e.exports=i},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},c8d2:function(e,t,n){var r=n("d039"),o=n("5899"),a="​᠎";e.exports=function(e){return r((function(){return!!o[e]()||a[e]()!=a||o[e].name!==e}))}},c975:function(e,t,n){"use strict";var r=n("23e7"),o=n("4d64").indexOf,a=n("a640"),i=[].indexOf,s=!!i&&1/[1].indexOf(1,-0)<0,c=a("indexOf");r({target:"Array",proto:!0,forced:s||!c},{indexOf:function(e){return s?i.apply(this,arguments)||0:o(this,e,arguments.length>1?arguments[1]:void 0)}})},c9d9:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return a}));var r=["png","jpg","jpeg","webp","svg","gif"],o=["mp4","video/ogg","webm","quicktime"],a=["mp3","audio/ogg","wav","mpeg"]},ca84:function(e,t,n){var r=n("5135"),o=n("fc6a"),a=n("4d64").indexOf,i=n("d012");e.exports=function(e,t){var n,s=o(e),c=0,l=[];for(n in s)!r(i,n)&&r(s,n)&&l.push(n);while(t.length>c)r(s,n=t[c++])&&(~a(l,n)||l.push(n));return l}},ca91:function(e,t,n){"use strict";var r=n("ebb5"),o=n("d58f").left,a=r.aTypedArray,i=r.exportTypedArrayMethod;i("reduce",(function(e){return o(a(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},caad:function(e,t,n){"use strict";var r=n("23e7"),o=n("4d64").includes,a=n("44d2");r({target:"Array",proto:!0},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},cc12:function(e,t,n){var r=n("da84"),o=n("861d"),a=r.document,i=o(a)&&o(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},cc71:function(e,t,n){"use strict";var r=n("23e7"),o=n("857a"),a=n("af03");r({target:"String",proto:!0,forced:a("bold")},{bold:function(){return o(this,"b","","")}})},cd26:function(e,t,n){"use strict";var r=n("ebb5"),o=r.aTypedArray,a=r.exportTypedArrayMethod,i=Math.floor;a("reverse",(function(){var e,t=this,n=o(t).length,r=i(n/2),a=0;while(a<r)e=t[a],t[a++]=t[--n],t[n]=e;return t}))},cdf9:function(e,t,n){var r=n("825a"),o=n("861d"),a=n("f069");e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=a.f(e),i=n.resolve;return i(t),n.promise}},ce4e:function(e,t,n){var r=n("da84");e.exports=function(e,t){try{Object.defineProperty(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},cfc3:function(e,t,n){var r=n("74e8");r("Float32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},d012:function(e,t){e.exports={}},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,n){var r=n("da84"),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e]):r[e]&&r[e][t]}},d139:function(e,t,n){"use strict";var r=n("ebb5"),o=n("b727").find,a=r.aTypedArray,i=r.exportTypedArrayMethod;i("find",(function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0)}))},d1e7:function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,a=o&&!r.call({1:2},1);t.f=a?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},d28b:function(e,t,n){var r=n("746f");r("iterator")},d2bb:function(e,t,n){var r=n("825a"),o=n("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(n,[]),t=n instanceof Array}catch(a){}return function(n,a){return r(n),o(a),t?e.call(n,a):n.__proto__=a,n}}():void 0)},d3b7:function(e,t,n){var r=n("00ee"),o=n("6eeb"),a=n("b041");r||o(Object.prototype,"toString",a,{unsafe:!0})},d44e:function(e,t,n){var r=n("9bf2").f,o=n("5135"),a=n("b622"),i=a("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},d58f:function(e,t,n){var r=n("1c0b"),o=n("7b0b"),a=n("44ad"),i=n("50c4"),s=function(e){return function(t,n,s,c){r(n);var l=o(t),u=a(l),f=i(l.length),d=e?f-1:0,h=e?-1:1;if(s<2)while(1){if(d in u){c=u[d],d+=h;break}if(d+=h,e?d<0:f<=d)throw TypeError("Reduce of empty array with no initial value")}for(;e?d>=0:f>d;d+=h)d in u&&(c=n(c,u[d],d,l));return c}};e.exports={left:s(!1),right:s(!0)}},d5d6:function(e,t,n){"use strict";var r=n("ebb5"),o=n("b727").forEach,a=r.aTypedArray,i=r.exportTypedArrayMethod;i("forEach",(function(e){o(a(this),e,arguments.length>1?arguments[1]:void 0)}))},d784:function(e,t,n){"use strict";n("ac1f");var r=n("6eeb"),o=n("9263"),a=n("d039"),i=n("b622"),s=n("9112"),c=i("species"),l=RegExp.prototype;e.exports=function(e,t,n,u){var f=i(e),d=!a((function(){var t={};return t[f]=function(){return 7},7!=""[e](t)})),h=d&&!a((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[c]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return t=!0,null},n[f](""),!t}));if(!d||!h||n){var p=/./[f],m=t(f,""[e],(function(e,t,n,r,a){var i=t.exec;return i===o||i===l.exec?d&&!a?{done:!0,value:p.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}));r(String.prototype,e,m[0]),r(l,f,m[1])}u&&s(l[f],"sham",!0)}},d81d:function(e,t,n){"use strict";var r=n("23e7"),o=n("b727").map,a=n("1dde"),i=a("map");r({target:"Array",proto:!0,forced:!i},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},d998:function(e,t,n){var r=n("342f");e.exports=/MSIE|Trident/.test(r)},d9b5:function(e,t,n){var r=n("d066"),o=n("fdbf");e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return"function"==typeof t&&Object(e)instanceof t}},d9be:function(e,t,n){var r=n("0206"),o=r.System,a=(r.VbrMode,r.Float,r.ShortBlock,r.Util,r.Arrays),i=(r.new_array_n,r.new_byte,r.new_double,r.new_float,r.new_float_n,r.new_int),s=(r.new_int_n,r.assert),c=n("4b5e"),l=n("5f84"),u=n("f3b5"),f=n("bb22");function d(){var e=null;function t(e){this.bits=0|e}this.qupvt=null,this.setModules=function(t){this.qupvt=t,e=t};var n=[[0,0],[0,0],[0,0],[0,0],[0,0],[0,1],[1,1],[1,1],[1,2],[2,2],[2,3],[2,3],[3,4],[3,4],[3,4],[4,5],[4,5],[4,6],[5,6],[5,6],[5,7],[6,7],[6,7]];function r(e,t,n,r,o,a){var i=.5946/t;s(e>0),e>>=1;while(0!=e--)o[a++]=i>n[r++]?0:1,o[a++]=i>n[r++]?0:1}function h(t,n,r,o,a,i){s(t>0),t>>=1;var c=t%2;t>>=1;while(0!=t--){var l,u,f,d,h,p,m,_;l=r[o++]*n,u=r[o++]*n,h=0|l,f=r[o++]*n,p=0|u,d=r[o++]*n,m=0|f,l+=e.adj43[h],_=0|d,u+=e.adj43[p],a[i++]=0|l,f+=e.adj43[m],a[i++]=0|u,d+=e.adj43[_],a[i++]=0|f,a[i++]=0|d}0!=c&&(l=r[o++]*n,u=r[o++]*n,h=0|l,p=0|u,l+=e.adj43[h],u+=e.adj43[p],a[i++]=0|l,a[i++]=0|u)}function p(t,n,o,i,l){var u,f,d,p=0,m=0,_=0,g=0,b=n,v=0,y=b,w=0,x=t,k=0;for(d=null!=l&&i.global_gain==l.global_gain,f=i.block_type==c.SHORT_TYPE?38:21,u=0;u<=f;u++){var S=-1;if((d||i.block_type==c.NORM_TYPE)&&(S=i.global_gain-(i.scalefac[u]+(0!=i.preflag?e.pretab[u]:0)<<i.scalefac_scale+1)-8*i.subblock_gain[i.window[u]]),s(i.width[u]>=0),d&&l.step[u]==S)0!=m&&(h(m,o,x,k,y,w),m=0),0!=_&&(r(_,o,x,k,y,w),_=0);else{var A,M=i.width[u];if(p+i.width[u]>i.max_nonzero_coeff)A=i.max_nonzero_coeff-p+1,a.fill(n,i.max_nonzero_coeff,576,0),M=A,M<0&&(M=0),u=f+1;if(0==m&&0==_&&(y=b,w=v,x=t,k=g),null!=l&&l.sfb_count1>0&&u>=l.sfb_count1&&l.step[u]>0&&S>=l.step[u]?(0!=m&&(h(m,o,x,k,y,w),m=0,y=b,w=v,x=t,k=g),_+=M):(0!=_&&(r(_,o,x,k,y,w),_=0,y=b,w=v,x=t,k=g),m+=M),M<=0){0!=_&&(r(_,o,x,k,y,w),_=0),0!=m&&(h(m,o,x,k,y,w),m=0);break}}u<=f&&(v+=i.width[u],g+=i.width[u],p+=i.width[u])}0!=m&&(h(m,o,x,k,y,w),m=0),0!=_&&(r(_,o,x,k,y,w),_=0)}function m(e,t,n){var r=0,o=0;do{var a=e[t++],i=e[t++];r<a&&(r=a),o<i&&(o=i)}while(t<n);return r<o&&(r=o),r}function _(e,t,n,r,o,a){var i,s=65536*l.ht[r].xlen+l.ht[o].xlen,c=0;do{var u=e[t++],f=e[t++];0!=u&&(u>14&&(u=15,c+=s),u*=16),0!=f&&(f>14&&(f=15,c+=s),u+=f),c+=l.largetbl[u]}while(t<n);return i=65535&c,c>>=16,c>i&&(c=i,r=o),a.bits+=c,r}function g(e,t,n,r){var o=0,a=l.ht[1].hlen;do{var i=2*e[t+0]+e[t+1];t+=2,o+=a[i]}while(t<n);return r.bits+=o,1}function b(e,t,n,r,o){var a,i,s=0,c=l.ht[r].xlen;i=2==r?l.table23:l.table56;do{var u=e[t+0]*c+e[t+1];t+=2,s+=i[u]}while(t<n);return a=65535&s,s>>=16,s>a&&(s=a,r++),o.bits+=s,r}function v(e,t,n,r,o){var a=0,i=0,s=0,c=l.ht[r].xlen,u=l.ht[r].hlen,f=l.ht[r+1].hlen,d=l.ht[r+2].hlen;do{var h=e[t+0]*c+e[t+1];t+=2,a+=u[h],i+=f[h],s+=d[h]}while(t<n);var p=r;return a>i&&(a=i,p++),a>s&&(a=s,p=r+2),o.bits+=a,p}var y=[1,2,5,7,7,10,10,13,13,13,13,13,13,13,13];function w(e,t,n,r){var o=m(e,t,n);switch(o){case 0:return o;case 1:return g(e,t,n,r);case 2:case 3:return b(e,t,n,y[o-1],r);case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:return v(e,t,n,y[o-1],r);default:if(o>f.IXMAX_VAL)return r.bits=f.LARGE_BITS,-1;var a,i;for(o-=15,a=24;a<32;a++)if(l.ht[a].linmax>=o)break;for(i=a-8;i<24;i++)if(l.ht[i].linmax>=o)break;return _(e,t,n,i,a,r)}}function x(e,n,r,o,a,i,s){for(var c=n.big_values,l=0;l<=22;l++)o[l]=f.LARGE_BITS;for(l=0;l<16;l++){var u=e.scalefac_band.l[l+1];if(u>=c)break;var d=0,h=new t(d),p=w(r,0,u,h);d=h.bits;for(var m=0;m<8;m++){var _=e.scalefac_band.l[l+m+2];if(_>=c)break;var g=d;h=new t(g);var b=w(r,u,_,h);g=h.bits,o[l+m]>g&&(o[l+m]=g,a[l+m]=l,i[l+m]=p,s[l+m]=b)}}}function k(e,n,r,o,a,i,s,l){for(var u=n.big_values,f=2;f<c.SBMAX_l+1;f++){var d=e.scalefac_band.l[f];if(d>=u)break;var h=a[f-2]+n.count1bits;if(r.part2_3_length<=h)break;var p=new t(h),m=w(o,d,u,p);h=p.bits,r.part2_3_length<=h||(r.assign(n),r.part2_3_length=h,r.region0_count=i[f-2],r.region1_count=f-2-i[f-2],r.table_select[0]=s[f-2],r.table_select[1]=l[f-2],r.table_select[2]=m)}}this.noquant_count_bits=function(e,n,r){var o=n.l3_enc,a=Math.min(576,n.max_nonzero_coeff+2>>1<<1);for(null!=r&&(r.sfb_count1=0);a>1;a-=2)if(0!=(o[a-1]|o[a-2]))break;n.count1=a;for(var i=0,u=0;a>3;a-=4){var f;if((2147483647&(o[a-1]|o[a-2]|o[a-3]|o[a-4]))>1)break;f=2*(2*(2*o[a-4]+o[a-3])+o[a-2])+o[a-1],i+=l.t32l[f],u+=l.t33l[f]}var d=i;if(n.count1table_select=0,i>u&&(d=u,n.count1table_select=1),n.count1bits=d,n.big_values=a,0==a)return d;if(n.block_type==c.SHORT_TYPE)i=3*e.scalefac_band.s[3],i>n.big_values&&(i=n.big_values),u=n.big_values;else if(n.block_type==c.NORM_TYPE){if(s(a<=576),i=n.region0_count=e.bv_scf[a-2],u=n.region1_count=e.bv_scf[a-1],s(i+u+2<c.SBPSY_l),u=e.scalefac_band.l[i+u+2],i=e.scalefac_band.l[i+1],u<a){var h=new t(d);n.table_select[2]=w(o,u,a,h),d=h.bits}}else n.region0_count=7,n.region1_count=c.SBMAX_l-1-7-1,i=e.scalefac_band.l[8],u=a,i>u&&(i=u);if(i=Math.min(i,a),u=Math.min(u,a),s(i>=0),s(u>=0),0<i){h=new t(d);n.table_select[0]=w(o,0,i,h),d=h.bits}if(i<u){h=new t(d);n.table_select[1]=w(o,i,u,h),d=h.bits}if(2==e.use_best_huffman&&(n.part2_3_length=d,best_huffman_divide(e,n),d=n.part2_3_length),null!=r&&n.block_type==c.NORM_TYPE){var p=0;while(e.scalefac_band.l[p]<n.big_values)p++;r.sfb_count1=p}return d},this.count_bits=function(t,n,r,o){var a=r.l3_enc,i=f.IXMAX_VAL/e.IPOW20(r.global_gain);if(r.xrpow_max>i)return f.LARGE_BITS;if(p(n,a,e.IPOW20(r.global_gain),r,o),0!=(2&t.substep_shaping))for(var c=0,l=r.global_gain+r.scalefac_scale,u=.634521682242439/e.IPOW20(l),d=0;d<r.sfbmax;d++){var h,m=r.width[d];if(s(m>=0),0==t.pseudohalf[d])c+=m;else for(h=c,c+=m;h<c;++h)a[h]=n[h]>=u?a[h]:0}return this.noquant_count_bits(t,r,o)},this.best_huffman_divide=function(e,n){var r=new u,o=n.l3_enc,a=i(23),f=i(23),d=i(23),h=i(23);if(n.block_type!=c.SHORT_TYPE||1!=e.mode_gr){r.assign(n),n.block_type==c.NORM_TYPE&&(x(e,n,o,a,f,d,h),k(e,r,n,o,a,f,d,h));var p=r.big_values;if(!(0==p||(o[p-2]|o[p-1])>1)&&(p=n.count1+2,!(p>576))){r.assign(n),r.count1=p;var m=0,_=0;for(s(p<=576);p>r.big_values;p-=4){var g=2*(2*(2*o[p-4]+o[p-3])+o[p-2])+o[p-1];m+=l.t32l[g],_+=l.t33l[g]}if(r.big_values=p,r.count1table_select=0,m>_&&(m=_,r.count1table_select=1),r.count1bits=m,r.block_type==c.NORM_TYPE)k(e,r,n,o,a,f,d,h);else{if(r.part2_3_length=m,m=e.scalefac_band.l[8],m>p&&(m=p),m>0){var b=new t(r.part2_3_length);r.table_select[0]=w(o,0,m,b),r.part2_3_length=b.bits}if(p>m){b=new t(r.part2_3_length);r.table_select[1]=w(o,m,p,b),r.part2_3_length=b.bits}n.part2_3_length>r.part2_3_length&&n.assign(r)}}}};var S=[1,1,1,1,8,2,2,2,4,4,4,8,8,8,16,16],A=[1,2,4,8,1,2,4,8,2,4,8,2,4,8,4,8],M=[0,0,0,0,3,1,1,1,2,2,2,3,3,3,4,4],R=[0,1,2,3,0,1,2,3,1,2,3,1,2,3,2,3];function E(e,t){for(var n,r=t.tt[1][e],o=t.tt[0][e],a=0;a<l.scfsi_band.length-1;a++){for(n=l.scfsi_band[a];n<l.scfsi_band[a+1];n++)if(o.scalefac[n]!=r.scalefac[n]&&r.scalefac[n]>=0)break;if(n==l.scfsi_band[a+1]){for(n=l.scfsi_band[a];n<l.scfsi_band[a+1];n++)r.scalefac[n]=-1;t.scfsi[e][a]=1}}var i=0,s=0;for(n=0;n<11;n++)-1!=r.scalefac[n]&&(s++,i<r.scalefac[n]&&(i=r.scalefac[n]));for(var u=0,f=0;n<c.SBPSY_l;n++)-1!=r.scalefac[n]&&(f++,u<r.scalefac[n]&&(u=r.scalefac[n]));for(a=0;a<16;a++)if(i<S[a]&&u<A[a]){var d=M[a]*s+R[a]*f;r.part2_length>d&&(r.part2_length=d,r.scalefac_compress=a)}}function T(e,t){for(var n=0;n<t;++n)if(e[n]<0)return!1;return!0}d.slen1_tab=M,d.slen2_tab=R,this.best_scalefac_store=function(t,n,r,o){var a,i,l,u,f=o.tt[n][r],d=0;for(l=0,a=0;a<f.sfbmax;a++){var h=f.width[a];for(s(h>=0),l+=h,u=-h;u<0;u++)if(0!=f.l3_enc[u+l])break;0==u&&(f.scalefac[a]=d=-2)}if(0==f.scalefac_scale&&0==f.preflag){var p=0;for(a=0;a<f.sfbmax;a++)f.scalefac[a]>0&&(p|=f.scalefac[a]);if(0==(1&p)&&0!=p){for(a=0;a<f.sfbmax;a++)f.scalefac[a]>0&&(f.scalefac[a]>>=1);f.scalefac_scale=d=1}}if(0==f.preflag&&f.block_type!=c.SHORT_TYPE&&2==t.mode_gr){for(a=11;a<c.SBPSY_l;a++)if(f.scalefac[a]<e.pretab[a]&&-2!=f.scalefac[a])break;if(a==c.SBPSY_l){for(a=11;a<c.SBPSY_l;a++)f.scalefac[a]>0&&(f.scalefac[a]-=e.pretab[a]);f.preflag=d=1}}for(i=0;i<4;i++)o.scfsi[r][i]=0;for(2==t.mode_gr&&1==n&&o.tt[0][r].block_type!=c.SHORT_TYPE&&o.tt[1][r].block_type!=c.SHORT_TYPE&&(E(r,o),d=0),a=0;a<f.sfbmax;a++)-2==f.scalefac[a]&&(f.scalefac[a]=0);0!=d&&(2==t.mode_gr?this.scale_bitcount(f):this.scale_bitcount_lsf(t,f))};var O=[0,18,36,54,54,36,54,72,54,72,90,72,90,108,108,126],L=[0,18,36,54,51,35,53,71,52,70,88,69,87,105,104,122],B=[0,10,20,30,33,21,31,41,32,42,52,43,53,63,64,74];this.scale_bitcount=function(t){var n,r,o,a=0,i=0,l=t.scalefac;if(s(T(l,t.sfbmax)),t.block_type==c.SHORT_TYPE)o=O,0!=t.mixed_block_flag&&(o=L);else if(o=B,0==t.preflag){for(r=11;r<c.SBPSY_l;r++)if(l[r]<e.pretab[r])break;if(r==c.SBPSY_l)for(t.preflag=1,r=11;r<c.SBPSY_l;r++)l[r]-=e.pretab[r]}for(r=0;r<t.sfbdivide;r++)a<l[r]&&(a=l[r]);for(;r<t.sfbmax;r++)i<l[r]&&(i=l[r]);for(t.part2_length=f.LARGE_BITS,n=0;n<16;n++)a<S[n]&&i<A[n]&&t.part2_length>o[n]&&(t.part2_length=o[n],t.scalefac_compress=n);return t.part2_length==f.LARGE_BITS};var I=[[15,15,7,7],[15,15,7,0],[7,3,0,0],[15,31,31,0],[7,7,7,0],[3,3,0,0]];this.scale_bitcount_lsf=function(t,n){var r,a,l,u,f,d,h,p,m=i(4),_=n.scalefac;for(r=0!=n.preflag?2:0,h=0;h<4;h++)m[h]=0;if(n.block_type==c.SHORT_TYPE){a=1;var g=e.nr_of_sfb_block[r][a];for(p=0,l=0;l<4;l++)for(u=g[l]/3,h=0;h<u;h++,p++)for(f=0;f<3;f++)_[3*p+f]>m[l]&&(m[l]=_[3*p+f])}else{a=0;g=e.nr_of_sfb_block[r][a];for(p=0,l=0;l<4;l++)for(u=g[l],h=0;h<u;h++,p++)_[p]>m[l]&&(m[l]=_[p])}for(d=!1,l=0;l<4;l++)m[l]>I[r][l]&&(d=!0);if(!d){var b,v,y,w;for(n.sfb_partition_table=e.nr_of_sfb_block[r][a],l=0;l<4;l++)n.slen[l]=C[m[l]];switch(b=n.slen[0],v=n.slen[1],y=n.slen[2],w=n.slen[3],r){case 0:n.scalefac_compress=(5*b+v<<4)+(y<<2)+w;break;case 1:n.scalefac_compress=400+(5*b+v<<2)+y;break;case 2:n.scalefac_compress=500+3*b+v;break;default:o.err.printf("intensity stereo not implemented yet\n");break}}if(!d)for(s(null!=n.sfb_partition_table),n.part2_length=0,l=0;l<4;l++)n.part2_length+=n.slen[l]*n.sfb_partition_table[l];return d};var C=[0,1,2,2,3,3,3,3,4,4,4,4,4,4,4,4];this.huffman_init=function(e){for(var t=2;t<=576;t+=2){var r,o=0;while(e.scalefac_band.l[++o]<t);r=n[o][0];while(e.scalefac_band.l[r+1]>t)r--;r<0&&(r=n[o][0]),e.bv_scf[t-2]=r,r=n[o][1];while(e.scalefac_band.l[r+e.bv_scf[t-2]+2]>t)r--;r<0&&(r=n[o][1]),e.bv_scf[t-1]=r}}}e.exports=d},da58:function(e,t,n){"use strict";function r(e){if("string"!==typeof e||!e)throw new Error("expected a non-empty string, got: "+e)}function o(e){if("number"!==typeof e)throw new Error("expected a number, got: "+e)}const a=1,i=1,s="emoji",c="keyvalue",l="favorites",u="tokens",f="tokens",d="unicode",h="count",p="group",m="order",_="group-order",g="eTag",b="url",v="skinTone",y="readonly",w="readwrite",x="skinUnicodes",k="skinUnicodes",S="https://cdn.jsdelivr.net/npm/emoji-picker-element-data@^1/en/emojibase/data.json",A="en";function M(e,t){const n=new Set,r=[];for(const o of e){const e=t(o);n.has(e)||(n.add(e),r.push(o))}return r}function R(e){return M(e,e=>e.unicode)}function E(e){function t(t,n,r){const o=n?e.createObjectStore(t,{keyPath:n}):e.createObjectStore(t);if(r)for(const[e,[a,i]]of Object.entries(r))o.createIndex(e,a,{multiEntry:i});return o}t(c),t(s,d,{[f]:[u,!0],[_]:[[p,m]],[x]:[k,!0]}),t(l,void 0,{[h]:[""]})}const T={},O={},L={};function B(e,t,n){n.onerror=()=>t(n.error),n.onblocked=()=>t(new Error("IDB blocked")),n.onsuccess=()=>e(n.result)}async function I(e){const t=await new Promise((t,n)=>{const r=indexedDB.open(e,a);T[e]=r,r.onupgradeneeded=e=>{e.oldVersion<i&&E(r.result)},B(t,n,r)});return t.onclose=()=>j(e),t}function C(e){return O[e]||(O[e]=I(e)),O[e]}function P(e,t,n,r){return new Promise((o,a)=>{const i=e.transaction(t,n),s="string"===typeof t?i.objectStore(t):t.map(e=>i.objectStore(e));let c;r(s,e=>{c=e}),i.oncomplete=()=>o(c),i.onerror=()=>a(i.error)})}function j(e){const t=T[e],n=t&&t.result;if(n){n.close();const t=L[e];if(t)for(const e of t)e()}delete T[e],delete O[e],delete L[e]}function N(e){return new Promise((t,n)=>{j(e);const r=indexedDB.deleteDatabase(e);B(t,n,r)})}function H(e,t){let n=L[e];n||(n=L[e]=[]),n.push(t)}const F=new Set([":D","xD",":'D","o:)",":x",":p",";p","xp",":l",":z",":j","8D","xo","8)",":B",":o",":s",":'o","Dx","x(","D:",":c",">0)",":3","</3","<3","\\m/",":E","8#"]);function D(e){return e.split(/[\s_]+/).map(e=>!e.match(/\w/)||F.has(e)?e.toLowerCase():e.replace(/[)(:,]/g,"").replace(/’/g,"'").toLowerCase()).filter(Boolean)}const U=2;function V(e){return e.filter(Boolean).map(e=>e.toLowerCase()).filter(e=>e.length>=U)}function q(e){const t=e.map(({annotation:e,emoticon:t,group:n,order:r,shortcodes:o,skins:a,tags:i,emoji:s,version:c})=>{const l=[...new Set(V([...(o||[]).map(D).flat(),...i.map(D).flat(),...D(e),t]))].sort(),u={annotation:e,group:n,order:r,tags:i,tokens:l,unicode:s,version:c};if(t&&(u.emoticon=t),o&&(u.shortcodes=o),a){u.skinTones=[],u.skinUnicodes=[],u.skinVersions=[];for(const{tone:e,emoji:t,version:n}of a)u.skinTones.push(e),u.skinUnicodes.push(t),u.skinVersions.push(n)}return u});return t}function $(e,t,n,r){e[t](n).onsuccess=e=>r&&r(e.target.result)}function z(e,t,n){$(e,"get",t,n)}function Y(e,t,n){$(e,"getAll",t,n)}function X(e,t,n){$(e,"getAllKeys",t,n)}function G(e,t){let n=e[0];for(let r=1;r<e.length;r++){const o=e[r];t(n)>t(o)&&(n=o)}return n}function K(e,t){const n=G(e,e=>e.length),r=[];for(const o of n)e.some(e=>-1===e.findIndex(e=>t(e)===t(o)))||r.push(o);return r}async function W(e){return!await oe(e,c,b)}async function Z(e,t,n){const[r,o]=await Promise.all([g,b].map(t=>oe(e,c,t)));return r===n&&o===t}async function Q(e,t){const n=50;return P(e,s,y,(e,r)=>{let o;const a=()=>{e.getAll(o&&IDBKeyRange.lowerBound(o,!0),n).onsuccess=e=>{const i=e.target.result;for(const n of i)if(o=n.unicode,t(n))return r(n);if(i.length<n)return r();a()}};a()})}async function J(e,t,n,r){try{const o=q(t);await P(e,[s,c],w,([e,t])=>{let a,i,s,c=0;function l(){3===++c&&u()}function u(){if(a!==r||i!==n){for(const t of s)e.delete(t);for(const t of o)e.put(t);t.put(r,g),t.put(n,b)}}z(t,g,e=>{a=e,l()}),z(t,b,e=>{i=e,l()}),X(e,void 0,e=>{s=e,l()})})}finally{}}async function ee(e,t){return P(e,s,y,(e,n)=>{const r=IDBKeyRange.bound([t,0],[t+1,0],!1,!0);Y(e.index(_),r,n)})}async function te(e,t){const n=V(D(t));return n.length?P(e,s,y,(e,t)=>{const r=[],o=()=>{r.length===n.length&&a()},a=()=>{const e=K(r,e=>e.unicode);t(e.sort((e,t)=>e.order<t.order?-1:1))};for(let i=0;i<n.length;i++){const t=n[i],a=i===n.length-1?IDBKeyRange.bound(t,t+"",!1,!0):IDBKeyRange.only(t);Y(e.index(f),a,e=>{r.push(e),o()})}}):[]}async function ne(e,t){const n=await te(e,t);if(!n.length){const n=e=>(e.shortcodes||[]).includes(t.toLowerCase());return await Q(e,n)||null}return n.filter(e=>{const n=(e.shortcodes||[]).map(e=>e.toLowerCase());return n.includes(t.toLowerCase())})[0]||null}async function re(e,t){return P(e,s,y,(e,n)=>z(e,t,r=>{if(r)return n(r);z(e.index(x),t,e=>n(e||null))}))}function oe(e,t,n){return P(e,t,y,(e,t)=>z(e,n,t))}function ae(e,t,n,r){return P(e,t,w,e=>e.put(r,n))}function ie(e,t){return P(e,l,w,e=>{z(e,t,n=>e.put((n||0)+1,t))})}function se(e,t,n){return 0===n?[]:P(e,[l,s],y,([e,r],o)=>{const a=[];e.index(h).openCursor(void 0,"prev").onsuccess=e=>{const i=e.target.result;if(!i)return o(a);function s(e){if(a.push(e),a.length===n)return o(a);i.continue()}const c=i.primaryKey,l=t.byName(c);if(l)return s(l);z(r,c,e=>{if(e)return s(e);i.continue()})}})}const ce="";function le(e,t){const n=new Map;for(const o of e){const e=t(o);for(const t of e){let e=n;for(let n=0;n<t.length;n++){const r=t.charAt(n);let o=e.get(r);o||(o=new Map,e.set(r,o)),e=o}let r=e.get(ce);r||(r=[],e.set(ce,r)),r.push(o)}}const r=(e,t)=>{let r=n;for(let n=0;n<e.length;n++){const t=e.charAt(n),o=r.get(t);if(!o)return[];r=o}if(t){const e=r.get(ce);return e||[]}const o=[],a=[r];while(a.length){const e=a.shift(),t=[...e.entries()].sort((e,t)=>e[0]<t[0]?-1:1);for(const[n,r]of t)n===ce?o.push(...r):a.push(r)}return o};return r}const ue=["name","url"];function fe(e){const t=e&&Array.isArray(e),n=t&&e.length&&(!e[0]||ue.some(t=>!(t in e[0])));if(!t||n)throw new Error("Custom emojis are in the wrong format")}function de(e){fe(e);const t=(e,t)=>e.name.toLowerCase()<t.name.toLowerCase()?-1:1,n=e.sort(t),r=e=>[...new Set((e.shortcodes||[]).map(e=>D(e)).flat())],o=le(e,r),a=e=>o(e,!0),i=e=>o(e,!1),s=e=>{const n=D(e),r=n.map((e,t)=>(t<n.length-1?a:i)(e));return K(r,e=>e.name).sort(t)},c=new Map,l=new Map;for(const d of e){l.set(d.name.toLowerCase(),d);for(const e of d.shortcodes||[])c.set(e.toLowerCase(),d)}const u=e=>c.get(e.toLowerCase()),f=e=>l.get(e.toLowerCase());return{all:n,search:s,byShortcode:u,byName:f}}function he(e){if(!e)return e;if(delete e.tokens,e.skinTones){const t=e.skinTones.length;e.skins=Array(t);for(let n=0;n<t;n++)e.skins[n]={tone:e.skinTones[n],unicode:e.skinUnicodes[n],version:e.skinVersions[n]};delete e.skinTones,delete e.skinUnicodes,delete e.skinVersions}return e}function pe(e){e||console.warn("emoji-picker-element is more efficient if the dataSource server exposes an ETag header.")}const me=["annotation","emoji","group","order","tags","version"];function _e(e){if(!e||!Array.isArray(e)||!e[0]||"object"!==typeof e[0]||me.some(t=>!(t in e[0])))throw new Error("Emoji data is in the wrong format")}function ge(e,t){if(2!==Math.floor(e.status/100))throw new Error("Failed to fetch: "+t+":  "+e.status)}async function be(e){const t=await fetch(e,{method:"HEAD"});ge(t,e);const n=t.headers.get("etag");return pe(n),n}async function ve(e){const t=await fetch(e);ge(t,e);const n=t.headers.get("etag");pe(n);const r=await t.json();return _e(r),[n,r]}function ye(e){var t="",n=new Uint8Array(e),r=n.byteLength,o=-1;while(++o<r)t+=String.fromCharCode(n[o]);return t}function we(e){var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),o=-1;while(++o<t)r[o]=e.charCodeAt(o);return n}async function xe(e){const t=JSON.stringify(e),n=we(t),r=await crypto.subtle.digest("SHA-1",n),o=ye(r),a=btoa(o);return a}async function ke(e,t){let n,r=await be(t);if(!r){const e=await ve(t);r=e[0],n=e[1],r||(r=await xe(n))}if(await Z(e,t,r));else{if(!n){const e=await ve(t);n=e[1]}await J(e,n,t,r)}}async function Se(e,t){let[n,r]=await ve(t);n||(n=await xe(r)),await J(e,r,t,n)}class Ae{constructor({dataSource:e=S,locale:t=A,customEmoji:n=[]}={}){this.dataSource=e,this.locale=t,this._dbName="emoji-picker-element-"+this.locale,this._db=void 0,this._lazyUpdate=void 0,this._custom=de(n),this._clear=this._clear.bind(this),this._ready=this._init()}async _init(){const e=this._db=await C(this._dbName);H(this._dbName,this._clear);const t=this.dataSource,n=await W(e);n?await Se(e,t):this._lazyUpdate=ke(e,t)}async ready(){return this._ready||(this._ready=this._init()),this._ready}async getEmojiByGroup(e){return o(e),await this.ready(),R(await ee(this._db,e)).map(he)}async getEmojiBySearchQuery(e){r(e),await this.ready();const t=this._custom.search(e),n=R(await te(this._db,e)).map(he);return[...t,...n]}async getEmojiByShortcode(e){r(e),await this.ready();const t=this._custom.byShortcode(e);return t||he(await ne(this._db,e))}async getEmojiByUnicodeOrName(e){r(e),await this.ready();const t=this._custom.byName(e);return t||he(await re(this._db,e))}async getPreferredSkinTone(){return await this.ready(),await oe(this._db,c,v)||0}async setPreferredSkinTone(e){return o(e),await this.ready(),ae(this._db,c,v,e)}async incrementFavoriteEmojiCount(e){return r(e),await this.ready(),ie(this._db,e)}async getTopFavoriteEmoji(e){return o(e),await this.ready(),(await se(this._db,this._custom,e)).map(he)}set customEmoji(e){this._custom=de(e)}get customEmoji(){return this._custom.all}async _shutdown(){await this.ready();try{await this._lazyUpdate}catch(e){}}_clear(){this._db=this._ready=this._lazyUpdate=void 0}async close(){await this._shutdown(),await j(this._dbName)}async delete(){await this._shutdown(),await N(this._dbName)}}t["a"]=Ae},da84:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},db3f:function(e,t,n){var r=n("0206"),o=(r.System,r.VbrMode,r.Float,r.ShortBlock,r.Util,r.Arrays,r.new_array_n,r.new_byte),a=(r.new_double,r.new_float,r.new_float_n,r.new_int,r.new_int_n,r.assert);Lame=n("dead"),Presets=n("3967"),GainAnalysis=n("2f21"),QuantizePVT=n("bb22"),Quantize=n("dbb1"),Takehiro=n("d9be"),Reservoir=n("58b1"),MPEGMode=n("67b2"),BitStream=n("69b2");n("4b5e");var i=n("8cba"),s=n("e107");function c(){this.setModules=function(e,t){e,t}}function l(){this.setModules=function(e,t,n){e,t,n}}function u(){}function f(){this.setModules=function(e,t){e,t}}function d(e,t,n){3!=arguments.length&&(console.error("WARN: Mp3Encoder(channels, samplerate, kbps) not specified"),e=1,t=44100,n=128);var r=new Lame,d=new c,h=new GainAnalysis,p=new BitStream,m=new Presets,_=new QuantizePVT,g=new Quantize,b=new s,v=new i,y=new f,w=new Reservoir,x=new Takehiro,k=new l,S=new u;r.setModules(h,p,m,_,g,b,v,y,S),p.setModules(h,S,v,b),y.setModules(p,v),m.setModules(r),g.setModules(p,w,_,x),_.setModules(x,w,r.enc.psy),w.setModules(p),x.setModules(_),b.setModules(r,p,v),d.setModules(k,S),k.setModules(v,y,m);var A=r.lame_init();A.num_channels=e,A.in_samplerate=t,A.brate=n,A.mode=MPEGMode.STEREO,A.quality=3,A.bWriteVbrTag=!1,A.disable_reservoir=!0,A.write_id3tag_automatic=!1;var M=r.lame_init_params(A);a(0==M);var R=1152,E=0|1.25*R+7200,T=o(E);this.encodeBuffer=function(t,n){1==e&&(n=t),a(t.length==n.length),t.length>R&&(R=t.length,E=0|1.25*R+7200,T=o(E));var i=r.lame_encode_buffer(A,t,n,t.length,T,0,E);return new Int8Array(T.subarray(0,i))},this.flush=function(){var e=r.lame_encode_flush(A,T,0,E);return new Int8Array(T.subarray(0,e))}}function h(){this.dataOffset=0,this.dataLen=0,this.channels=0,this.sampleRate=0}function p(e){return e.charCodeAt(0)<<24|e.charCodeAt(1)<<16|e.charCodeAt(2)<<8|e.charCodeAt(3)}h.RIFF=p("RIFF"),h.WAVE=p("WAVE"),h.fmt_=p("fmt "),h.data=p("data"),h.readHeader=function(e){var t=new h,n=e.getUint32(0,!1);if(h.RIFF==n){e.getUint32(4,!0);if(h.WAVE==e.getUint32(8,!1)&&h.fmt_==e.getUint32(12,!1)){var r=e.getUint32(16,!0),o=20;switch(r){case 16:case 18:t.channels=e.getUint16(o+2,!0),t.sampleRate=e.getUint32(o+4,!0);break;default:throw"extended fmt chunk not implemented"}o+=r;var a=h.data,i=0;while(a!=n){if(n=e.getUint32(o,!1),i=e.getUint32(o+4,!0),a==n)break;o+=i+8}return t.dataLen=i,t.dataOffset=o+8,t}}},e.exports.Mp3Encoder=d,e.exports.WavHeader=h},dbb1:function(e,t,n){var r=n("0206"),o=r.System,a=r.VbrMode,i=(r.Float,r.ShortBlock,r.Util),s=r.Arrays,c=(r.new_array_n,r.new_byte,r.new_double,r.new_float),l=(r.new_float_n,r.new_int,r.new_int_n,r.assert),u=n("a26a"),f=n("7276"),d=n("09e6"),h=n("4b5e"),p=n("f3b5"),m=n("9828");function _(){var e,t,n;this.rv=null,this.qupvt=null;var r,_=new u;function g(e,t,n,r){r=0;for(var o=0;o<=n;++o){var a=Math.abs(e.xr[o]);r+=a,t[o]=Math.sqrt(a*Math.sqrt(a)),t[o]>e.xrpow_max&&(e.xrpow_max=t[o])}return r}function b(e,t){var r=e.ATH,o=t.xr;if(t.block_type!=h.SHORT_TYPE)for(var a=!1,i=h.PSFB21-1;i>=0&&!a;i--){var s=e.scalefac_band.psfb21[i],c=e.scalefac_band.psfb21[i+1],l=n.athAdjust(r.adjust,r.psfb21[i],r.floor);e.nsPsy.longfact[21]>1e-12&&(l*=e.nsPsy.longfact[21]);for(var u=c-1;u>=s;u--){if(!(Math.abs(o[u])<l)){a=!0;break}o[u]=0}}else for(var f=0;f<3;f++)for(a=!1,i=h.PSFB12-1;i>=0&&!a;i--){s=3*e.scalefac_band.s[12]+(e.scalefac_band.s[13]-e.scalefac_band.s[12])*f+(e.scalefac_band.psfb12[i]-e.scalefac_band.psfb12[0]),c=s+(e.scalefac_band.psfb12[i+1]-e.scalefac_band.psfb12[i]);var d=n.athAdjust(r.adjust,r.psfb12[i],r.floor);e.nsPsy.shortfact[12]>1e-12&&(d*=e.nsPsy.shortfact[12]);for(u=c-1;u>=s;u--){if(!(Math.abs(o[u])<d)){a=!0;break}o[u]=0}}}function v(e){this.ordinal=e}function y(e,t,n,o,a){var i,s=e.CurrentStep[o],c=!1,u=e.OldValue[o],f=v.BINSEARCH_NONE;for(t.global_gain=u,n-=t.part2_length,l(0!=s);;){var d;if(i=r.count_bits(e,a,t,null),1==s||i==n)break;i>n?(f==v.BINSEARCH_DOWN&&(c=!0),c&&(s/=2),f=v.BINSEARCH_UP,d=s):(f==v.BINSEARCH_UP&&(c=!0),c&&(s/=2),f=v.BINSEARCH_DOWN,d=-s),t.global_gain+=d,t.global_gain<0&&(t.global_gain=0,c=!0),t.global_gain>255&&(t.global_gain=255,c=!0)}l(t.global_gain>=0),l(t.global_gain<256);while(i>n&&t.global_gain<255)t.global_gain++,i=r.count_bits(e,a,t,null);return e.CurrentStep[o]=u-t.global_gain>=4?4:2,e.OldValue[o]=t.global_gain,t.part2_3_length=i,i}function w(e){for(var t=0;t<e.sfbmax;t++)if(e.scalefac[t]+e.subblock_gain[e.window[t]]==0)return!1;return!0}function x(e){return i.FAST_LOG10(.368+.632*e*e*e)}function k(e,t){for(var n=1e-37,r=0;r<t.psymax;r++)n+=x(e[r]);return Math.max(1e-20,n)}function S(e,t,n,r,o){var a;switch(e){default:case 9:t.over_count>0?(a=n.over_SSD<=t.over_SSD,n.over_SSD==t.over_SSD&&(a=n.bits<t.bits)):a=n.max_noise<0&&10*n.max_noise+n.bits<=10*t.max_noise+t.bits;break;case 0:a=n.over_count<t.over_count||n.over_count==t.over_count&&n.over_noise<t.over_noise||n.over_count==t.over_count&&BitStream.EQ(n.over_noise,t.over_noise)&&n.tot_noise<t.tot_noise;break;case 8:n.max_noise=k(o,r);case 1:a=n.max_noise<t.max_noise;break;case 2:a=n.tot_noise<t.tot_noise;break;case 3:a=n.tot_noise<t.tot_noise&&n.max_noise<t.max_noise;break;case 4:a=n.max_noise<=0&&t.max_noise>.2||n.max_noise<=0&&t.max_noise<0&&t.max_noise>n.max_noise-.2&&n.tot_noise<t.tot_noise||n.max_noise<=0&&t.max_noise>0&&t.max_noise>n.max_noise-.2&&n.tot_noise<t.tot_noise+t.over_noise||n.max_noise>0&&t.max_noise>-.05&&t.max_noise>n.max_noise-.1&&n.tot_noise+n.over_noise<t.tot_noise+t.over_noise||n.max_noise>0&&t.max_noise>-.1&&t.max_noise>n.max_noise-.15&&n.tot_noise+n.over_noise+n.over_noise<t.tot_noise+t.over_noise+t.over_noise;break;case 5:a=n.over_noise<t.over_noise||BitStream.EQ(n.over_noise,t.over_noise)&&n.tot_noise<t.tot_noise;break;case 6:a=n.over_noise<t.over_noise||BitStream.EQ(n.over_noise,t.over_noise)&&(n.max_noise<t.max_noise||BitStream.EQ(n.max_noise,t.max_noise)&&n.tot_noise<=t.tot_noise);break;case 7:a=n.over_count<t.over_count||n.over_noise<t.over_noise;break}return 0==t.over_count&&(a=a&&n.bits<t.bits),a}function A(e,t,n,r,o){var a,i=e.internal_flags;a=0==t.scalefac_scale?1.2968395546510096:1.6817928305074292;for(var s=0,c=0;c<t.sfbmax;c++)s<n[c]&&(s=n[c]);var l=i.noise_shaping_amp;switch(3==l&&(l=o?2:1),l){case 2:break;case 1:s>1?s=Math.pow(s,.5):s*=.95;break;case 0:default:s>1?s=1:s*=.95;break}var u=0;for(c=0;c<t.sfbmax;c++){var f,d=t.width[c];if(u+=d,!(n[c]<s)){if(0!=(2&i.substep_shaping)&&(i.pseudohalf[c]=0==i.pseudohalf[c]?1:0,0==i.pseudohalf[c]&&2==i.noise_shaping_amp))return;for(t.scalefac[c]++,f=-d;f<0;f++)r[u+f]*=a,r[u+f]>t.xrpow_max&&(t.xrpow_max=r[u+f]);if(2==i.noise_shaping_amp)return}}}function M(e,t){for(var r=1.2968395546510096,o=0,a=0;a<e.sfbmax;a++){var i=e.width[a],s=e.scalefac[a];if(0!=e.preflag&&(s+=n.pretab[a]),o+=i,0!=(1&s)){s++;for(var c=-i;c<0;c++)t[o+c]*=r,t[o+c]>e.xrpow_max&&(e.xrpow_max=t[o+c])}e.scalefac[a]=s>>1}e.preflag=0,e.scalefac_scale=1}function R(e,t,r){var o,a=t.scalefac;for(o=0;o<t.sfb_lmax;o++)if(a[o]>=16)return!0;for(var i=0;i<3;i++){var s=0,c=0;for(o=t.sfb_lmax+i;o<t.sfbdivide;o+=3)s<a[o]&&(s=a[o]);for(;o<t.sfbmax;o+=3)c<a[o]&&(c=a[o]);if(!(s<16&&c<8)){if(t.subblock_gain[i]>=7)return!0;t.subblock_gain[i]++;var u=e.scalefac_band.l[t.sfb_lmax];for(o=t.sfb_lmax+i;o<t.sfbmax;o+=3){var f=t.width[o],d=a[o];if(l(d>=0),d-=4>>t.scalefac_scale,d>=0)a[o]=d,u+=3*f;else{a[o]=0;var h=210+(d<<t.scalefac_scale+1);m=n.IPOW20(h),u+=f*(i+1);for(var p=-f;p<0;p++)r[u+p]*=m,r[u+p]>t.xrpow_max&&(t.xrpow_max=r[u+p]);u+=f*(3-i-1)}}var m=n.IPOW20(202);u+=t.width[o]*(i+1);for(p=-t.width[o];p<0;p++)r[u+p]*=m,r[u+p]>t.xrpow_max&&(t.xrpow_max=r[u+p])}}return!1}function E(e,t,n,o,a){var i=e.internal_flags;A(e,t,n,o,a);var c=w(t);return!c&&(c=2==i.mode_gr?r.scale_bitcount(t):r.scale_bitcount_lsf(i,t),!c||(i.noise_shaping>1&&(s.fill(i.pseudohalf,0),0==t.scalefac_scale?(M(t,o),c=!1):t.block_type==h.SHORT_TYPE&&i.subblock_gain>0&&(c=R(i,t,o)||w(t))),c||(c=2==i.mode_gr?r.scale_bitcount(t):r.scale_bitcount_lsf(i,t)),!c))}this.setModules=function(o,a,i,s){e=o,t=a,this.rv=a,n=i,this.qupvt=i,r=s,_.setModules(n,r)},this.ms_convert=function(e,t){for(var n=0;n<576;++n){var r=e.tt[t][0].xr[n],o=e.tt[t][1].xr[n];e.tt[t][0].xr[n]=(r+o)*(.5*i.SQRT2),e.tt[t][1].xr[n]=(r-o)*(.5*i.SQRT2)}},this.init_xrpow=function(e,t,n){var r=0,o=0|t.max_nonzero_coeff;if(l(null!=n),t.xrpow_max=0,l(0<=o&&o<=575),s.fill(n,o,576,0),r=g(t,n,o,r),r>1e-20){var a=0;0!=(2&e.substep_shaping)&&(a=1);for(var i=0;i<t.psymax;i++)e.pseudohalf[i]=a;return!0}return s.fill(t.l3_enc,0,576,0),!1},this.init_outer_loop=function(e,t){t.part2_3_length=0,t.big_values=0,t.count1=0,t.global_gain=210,t.scalefac_compress=0,t.table_select[0]=0,t.table_select[1]=0,t.table_select[2]=0,t.subblock_gain[0]=0,t.subblock_gain[1]=0,t.subblock_gain[2]=0,t.subblock_gain[3]=0,t.region0_count=0,t.region1_count=0,t.preflag=0,t.scalefac_scale=0,t.count1table_select=0,t.part2_length=0,t.sfb_lmax=h.SBPSY_l,t.sfb_smin=h.SBPSY_s,t.psy_lmax=e.sfb21_extra?h.SBMAX_l:h.SBPSY_l,t.psymax=t.psy_lmax,t.sfbmax=t.sfb_lmax,t.sfbdivide=11;for(var r=0;r<h.SBMAX_l;r++)t.width[r]=e.scalefac_band.l[r+1]-e.scalefac_band.l[r],t.window[r]=3;if(t.block_type==h.SHORT_TYPE){var a=c(576);t.sfb_smin=0,t.sfb_lmax=0,0!=t.mixed_block_flag&&(t.sfb_smin=3,t.sfb_lmax=2*e.mode_gr+4),t.psymax=t.sfb_lmax+3*((e.sfb21_extra?h.SBMAX_s:h.SBPSY_s)-t.sfb_smin),t.sfbmax=t.sfb_lmax+3*(h.SBPSY_s-t.sfb_smin),t.sfbdivide=t.sfbmax-18,t.psy_lmax=t.sfb_lmax;var i=e.scalefac_band.l[t.sfb_lmax];o.arraycopy(t.xr,0,a,0,576);for(r=t.sfb_smin;r<h.SBMAX_s;r++)for(var l=e.scalefac_band.s[r],u=e.scalefac_band.s[r+1],f=0;f<3;f++)for(var d=l;d<u;d++)t.xr[i++]=a[3*d+f];var p=t.sfb_lmax;for(r=t.sfb_smin;r<h.SBMAX_s;r++)t.width[p]=t.width[p+1]=t.width[p+2]=e.scalefac_band.s[r+1]-e.scalefac_band.s[r],t.window[p]=0,t.window[p+1]=1,t.window[p+2]=2,p+=3}t.count1bits=0,t.sfb_partition_table=n.nr_of_sfb_block[0][0],t.slen[0]=0,t.slen[1]=0,t.slen[2]=0,t.slen[3]=0,t.max_nonzero_coeff=575,s.fill(t.scalefac,0),b(e,t)},v.BINSEARCH_NONE=new v(0),v.BINSEARCH_UP=new v(1),v.BINSEARCH_DOWN=new v(2),this.trancate_smallspectrums=function(e,t,o,a){var i=c(m.SFBMAX);if((0!=(4&e.substep_shaping)||t.block_type!=h.SHORT_TYPE)&&0==(128&e.substep_shaping)){n.calc_noise(t,o,i,new f,null);for(var l=0;l<576;l++){var u=0;0!=t.l3_enc[l]&&(u=Math.abs(t.xr[l])),a[l]=u}l=0;var d=8;t.block_type==h.SHORT_TYPE&&(d=6);do{var p,_,g,b,v=t.width[d];if(l+=v,!(i[d]>=1)&&(s.sort(a,l-v,v),!BitStream.EQ(a[l-1],0))){p=(1-i[d])*o[d],_=0,b=0;do{var y;for(g=1;b+g<v;g++)if(BitStream.NEQ(a[b+l-v],a[b+l+g-v]))break;if(y=a[b+l-v]*a[b+l-v]*g,p<y){0!=b&&(_=a[b+l-v-1]);break}p-=y,b+=g}while(b<v);if(!BitStream.EQ(_,0))do{Math.abs(t.xr[l-v])<=_&&(t.l3_enc[l-v]=0)}while(--v>0)}}while(++d<t.psymax);t.part2_3_length=r.noquant_count_bits(e,t,null)}},this.outer_loop=function(e,t,i,s,u,_){var g,b=e.internal_flags,v=new p,w=c(576),x=c(m.SFBMAX),k=new f,A=new d,M=9999999,R=!1,T=!1,O=0;if(y(b,t,_,u,s),0==b.noise_shaping)return 100;n.calc_noise(t,i,x,k,A),k.bits=t.part2_3_length,v.assign(t);var L=0;o.arraycopy(s,0,w,0,576);while(!R){do{var B,I=new f,C=255;if(B=0!=(2&b.substep_shaping)?20:3,b.sfb21_extra){if(x[v.sfbmax]>1)break;if(v.block_type==h.SHORT_TYPE&&(x[v.sfbmax+1]>1||x[v.sfbmax+2]>1))break}if(!E(e,v,x,s,T))break;0!=v.scalefac_scale&&(C=254);var P=_-v.part2_length;if(P<=0)break;while((v.part2_3_length=r.count_bits(b,s,v,A))>P&&v.global_gain<=C)v.global_gain++;if(v.global_gain>C)break;if(0==k.over_count){while((v.part2_3_length=r.count_bits(b,s,v,A))>M&&v.global_gain<=C)v.global_gain++;if(v.global_gain>C)break}if(n.calc_noise(v,i,x,I,A),I.bits=v.part2_3_length,g=t.block_type!=h.SHORT_TYPE?e.quant_comp:e.quant_comp_short,g=S(g,k,I,v,x)?1:0,0!=g)M=t.part2_3_length,k=I,t.assign(v),L=0,o.arraycopy(s,0,w,0,576);else if(0==b.full_outer_loop){if(++L>B&&0==k.over_count)break;if(3==b.noise_shaping_amp&&T&&L>30)break;if(3==b.noise_shaping_amp&&T&&v.global_gain-O>15)break}}while(v.global_gain+v.scalefac_scale<255);3==b.noise_shaping_amp?T?R=!0:(v.assign(t),o.arraycopy(w,0,s,0,576),L=0,O=v.global_gain,T=!0):R=!0}return l(t.global_gain+t.scalefac_scale<=255),e.VBR==a.vbr_rh||e.VBR==a.vbr_mtrh?o.arraycopy(w,0,s,0,576):0!=(1&b.substep_shaping)&&trancate_smallspectrums(b,t,i,s),k.over_count},this.iteration_finish_one=function(e,n,o){var a=e.l3_side,i=a.tt[n][o];r.best_scalefac_store(e,n,o,a),1==e.use_best_huffman&&r.best_huffman_divide(e,i),t.ResvAdjust(e,i)},this.VBR_encode_granule=function(e,t,n,r,a,i,u){var f,d,h=e.internal_flags,m=new p,_=c(576),g=u,b=u+1,v=(u+i)/2,y=0,w=h.sfb21_extra;l(g<=LameInternalFlags.MAX_BITS_PER_CHANNEL),s.fill(m.l3_enc,0);do{l(v>=i),l(v<=u),l(i<=u),h.sfb21_extra=!(v>g-42)&&w,d=outer_loop(e,t,n,r,a,v),d<=0?(y=1,b=t.part2_3_length,m.assign(t),o.arraycopy(r,0,_,0,576),u=b-32,f=u-i,v=(u+i)/2):(i=v+32,f=u-i,v=(u+i)/2,0!=y&&(y=2,t.assign(m),o.arraycopy(_,0,r,0,576)))}while(f>12);h.sfb21_extra=w,2==y&&o.arraycopy(m.l3_enc,0,t.l3_enc,0,576),l(t.part2_3_length<=g)},this.get_framebits=function(n,r){var o=n.internal_flags;o.bitrate_index=o.VBR_min_bitrate;var a=e.getframebits(n);o.bitrate_index=1,a=e.getframebits(n);for(var i=1;i<=o.VBR_max_bitrate;i++){o.bitrate_index=i;var s=new MeanBits(a);r[i]=t.ResvFrameBegin(n,s),a=s.bits}},this.VBR_old_prepare=function(e,r,o,a,i,s,c,l,u){var f,d=e.internal_flags,p=0,m=1,_=0;d.bitrate_index=d.VBR_max_bitrate;var g=t.ResvFrameBegin(e,new MeanBits(0))/d.mode_gr;get_framebits(e,s);for(var b=0;b<d.mode_gr;b++){var v=n.on_pe(e,r,l[b],g,b,0);d.mode_ext==h.MPG_MD_MS_LR&&(ms_convert(d.l3_side,b),n.reduce_side(l[b],o[b],g,v));for(var y=0;y<d.channels_out;++y){var w=d.l3_side.tt[b][y];w.block_type!=h.SHORT_TYPE?(p=1.28/(1+Math.exp(3.5-r[b][y]/300))-.05,f=d.PSY.mask_adjust-p):(p=2.56/(1+Math.exp(3.5-r[b][y]/300))-.14,f=d.PSY.mask_adjust_short-p),d.masking_lower=Math.pow(10,.1*f),init_outer_loop(d,w),u[b][y]=n.calc_xmin(e,a[b][y],w,i[b][y]),0!=u[b][y]&&(m=0),c[b][y]=126,_+=l[b][y]}}for(b=0;b<d.mode_gr;b++)for(y=0;y<d.channels_out;y++)_>s[d.VBR_max_bitrate]&&(l[b][y]*=s[d.VBR_max_bitrate],l[b][y]/=_),c[b][y]>l[b][y]&&(c[b][y]=l[b][y]);return m},this.bitpressure_strategy=function(e,t,n,r){for(var o=0;o<e.mode_gr;o++)for(var a=0;a<e.channels_out;a++){for(var i=e.l3_side.tt[o][a],s=t[o][a],c=0,l=0;l<i.psy_lmax;l++)s[c++]*=1+.029*l*l/h.SBMAX_l/h.SBMAX_l;if(i.block_type==h.SHORT_TYPE)for(l=i.sfb_smin;l<h.SBMAX_s;l++)s[c++]*=1+.029*l*l/h.SBMAX_s/h.SBMAX_s,s[c++]*=1+.029*l*l/h.SBMAX_s/h.SBMAX_s,s[c++]*=1+.029*l*l/h.SBMAX_s/h.SBMAX_s;r[o][a]=0|Math.max(n[o][a],.9*r[o][a])}},this.VBR_new_prepare=function(e,r,o,a,i,s){var c,l=e.internal_flags,u=1,f=0,d=0;if(e.free_format){l.bitrate_index=0;p=new MeanBits(f);c=t.ResvFrameBegin(e,p),f=p.bits,i[0]=c}else{l.bitrate_index=l.VBR_max_bitrate;var p=new MeanBits(f);t.ResvFrameBegin(e,p),f=p.bits,get_framebits(e,i),c=i[l.VBR_max_bitrate]}for(var m=0;m<l.mode_gr;m++){n.on_pe(e,r,s[m],f,m,0),l.mode_ext==h.MPG_MD_MS_LR&&ms_convert(l.l3_side,m);for(var _=0;_<l.channels_out;++_){var g=l.l3_side.tt[m][_];l.masking_lower=Math.pow(10,.1*l.PSY.mask_adjust),init_outer_loop(l,g),0!=n.calc_xmin(e,o[m][_],g,a[m][_])&&(u=0),d+=s[m][_]}}for(m=0;m<l.mode_gr;m++)for(_=0;_<l.channels_out;_++)d>c&&(s[m][_]*=c,s[m][_]/=d);return u},this.calc_target_bits=function(r,o,a,i,s,c){var l,u,f,d,p=r.internal_flags,m=p.l3_side,_=0;p.bitrate_index=p.VBR_max_bitrate;var g=new MeanBits(_);for(c[0]=t.ResvFrameBegin(r,g),_=g.bits,p.bitrate_index=1,_=e.getframebits(r)-8*p.sideinfo_len,s[0]=_/(p.mode_gr*p.channels_out),_=r.VBR_mean_bitrate_kbps*r.framesize*1e3,0!=(1&p.substep_shaping)&&(_*=1.09),_/=r.out_samplerate,_-=8*p.sideinfo_len,_/=p.mode_gr*p.channels_out,l=.93+.07*(11-r.compression_ratio)/5.5,l<.9&&(l=.9),l>1&&(l=1),u=0;u<p.mode_gr;u++){var b=0;for(f=0;f<p.channels_out;f++){if(i[u][f]=int(l*_),o[u][f]>700){var v=int((o[u][f]-700)/1.4),y=m.tt[u][f];i[u][f]=int(l*_),y.block_type==h.SHORT_TYPE&&v<_/2&&(v=_/2),v>3*_/2?v=3*_/2:v<0&&(v=0),i[u][f]+=v}i[u][f]>LameInternalFlags.MAX_BITS_PER_CHANNEL&&(i[u][f]=LameInternalFlags.MAX_BITS_PER_CHANNEL),b+=i[u][f]}if(b>LameInternalFlags.MAX_BITS_PER_GRANULE)for(f=0;f<p.channels_out;++f)i[u][f]*=LameInternalFlags.MAX_BITS_PER_GRANULE,i[u][f]/=b}if(p.mode_ext==h.MPG_MD_MS_LR)for(u=0;u<p.mode_gr;u++)n.reduce_side(i[u],a[u],_*p.channels_out,LameInternalFlags.MAX_BITS_PER_GRANULE);for(d=0,u=0;u<p.mode_gr;u++)for(f=0;f<p.channels_out;f++)i[u][f]>LameInternalFlags.MAX_BITS_PER_CHANNEL&&(i[u][f]=LameInternalFlags.MAX_BITS_PER_CHANNEL),d+=i[u][f];if(d>c[0])for(u=0;u<p.mode_gr;u++)for(f=0;f<p.channels_out;f++)i[u][f]*=c[0],i[u][f]/=d}}e.exports=_},dbb4:function(e,t,n){var r=n("23e7"),o=n("83ab"),a=n("56ef"),i=n("fc6a"),s=n("06cf"),c=n("8418");r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){var t,n,r=i(e),o=s.f,l=a(r),u={},f=0;while(l.length>f)n=o(r,t=l[f++]),void 0!==n&&c(u,t,n);return u}})},ddb0:function(e,t,n){var r=n("da84"),o=n("fdbc"),a=n("e260"),i=n("9112"),s=n("b622"),c=s("iterator"),l=s("toStringTag"),u=a.values;for(var f in o){var d=r[f],h=d&&d.prototype;if(h){if(h[c]!==u)try{i(h,c,u)}catch(m){h[c]=u}if(h[l]||i(h,l,f),o[f])for(var p in a)if(h[p]!==a[p])try{i(h,p,a[p])}catch(m){h[p]=a[p]}}}},dead:function(e,t,n){var r=n("0206"),o=r.System,a=r.VbrMode,i=(r.Float,r.ShortBlock),s=(r.Util,r.Arrays,r.new_array_n,r.new_byte,r.new_double,r.new_float),c=(r.new_float_n,r.new_int,r.new_int_n),l=r.new_short_n,u=r.assert,f=n("2474"),d=n("947f"),h=n("bd8b"),p=n("abf5"),m=n("725d"),_=n("4a65"),g=n("69b2"),b=n("5f84"),v=n("4b5e");function y(){var e=this,t=131072;y.V9=410,y.V8=420,y.V7=430,y.V6=440,y.V5=450,y.V4=460,y.V3=470,y.V2=480,y.V1=490,y.V0=500,y.R3MIX=1e3,y.STANDARD=1001,y.EXTREME=1002,y.INSANE=1003,y.STANDARD_FAST=1004,y.EXTREME_FAST=1005,y.MEDIUM=1006,y.MEDIUM_FAST=1007;var n,r,w,x,k,S=16384+t;y.LAME_MAXMP3BUFFER=S;var A,M,R,E=new f;function T(){this.mask_adjust=0,this.mask_adjust_short=0,this.bo_l_weight=s(v.SBMAX_l),this.bo_s_weight=s(v.SBMAX_s)}function O(){this.lowerlimit=0}function L(e,t){this.lowpass=t}this.enc=new v,this.setModules=function(e,t,o,a,i,s,c,l,u){n=e,r=t,w=o,x=a,k=i,A=s,c,M=l,R=u,this.enc.setModules(r,E,x,A)};var B=4294479419;function I(e){var t;return e.class_id=B,t=e.internal_flags=new h,e.mode=MPEGMode.NOT_SET,e.original=1,e.in_samplerate=44100,e.num_channels=2,e.num_samples=-1,e.bWriteVbrTag=!0,e.quality=-1,e.short_blocks=null,t.subblock_gain=-1,e.lowpassfreq=0,e.highpassfreq=0,e.lowpasswidth=-1,e.highpasswidth=-1,e.VBR=a.vbr_off,e.VBR_q=4,e.ATHcurve=-1,e.VBR_mean_bitrate_kbps=128,e.VBR_min_bitrate_kbps=0,e.VBR_max_bitrate_kbps=0,e.VBR_hard_min=0,t.VBR_min_bitrate=1,t.VBR_max_bitrate=13,e.quant_comp=-1,e.quant_comp_short=-1,e.msfix=-1,t.resample_ratio=1,t.OldValue[0]=180,t.OldValue[1]=180,t.CurrentStep[0]=4,t.CurrentStep[1]=4,t.masking_lower=1,t.nsPsy.attackthre=-1,t.nsPsy.attackthre_s=-1,e.scale=-1,e.athaa_type=-1,e.ATHtype=-1,e.athaa_loudapprox=-1,e.athaa_sensitivity=0,e.useTemporal=null,e.interChRatio=-1,t.mf_samples_to_encode=v.ENCDELAY+v.POSTDELAY,e.encoder_padding=0,t.mf_size=v.ENCDELAY-v.MDCTDELAY,e.findReplayGain=!1,e.decode_on_the_fly=!1,t.decode_on_the_fly=!1,t.findReplayGain=!1,t.findPeakSample=!1,t.RadioGain=0,t.AudiophileGain=0,t.noclipGainChange=0,t.noclipScale=-1,e.preset=0,e.write_id3tag_automatic=!0,0}function C(e){return e>1?0:e<=0?1:Math.cos(Math.PI/2*e)}function P(e,t){var n=44100;return t>=48e3?n=48e3:t>=44100?n=44100:t>=32e3?n=32e3:t>=24e3?n=24e3:t>=22050?n=22050:t>=16e3?n=16e3:t>=12e3?n=12e3:t>=11025?n=11025:t>=8e3&&(n=8e3),-1==e?n:(e<=15960&&(n=44100),e<=15250&&(n=32e3),e<=11220&&(n=24e3),e<=9970&&(n=22050),e<=7230&&(n=16e3),e<=5420&&(n=12e3),e<=4510&&(n=11025),e<=3970&&(n=8e3),t<n?t>44100?48e3:t>32e3?44100:t>24e3?32e3:t>22050?24e3:t>16e3?22050:t>12e3?16e3:t>11025?12e3:t>8e3?11025:8e3:n)}function j(e,t){switch(e){case 44100:return t.version=1,0;case 48e3:return t.version=1,1;case 32e3:return t.version=1,2;case 22050:return t.version=0,0;case 24e3:return t.version=0,1;case 16e3:return t.version=0,2;case 11025:return t.version=0,0;case 12e3:return t.version=0,1;case 8e3:return t.version=0,2;default:return t.version=0,-1}}function N(e,t,n){n<16e3&&(t=2);for(var r=b.bitrate_table[t][1],o=2;o<=14;o++)b.bitrate_table[t][o]>0&&Math.abs(b.bitrate_table[t][o]-e)<Math.abs(r-e)&&(r=b.bitrate_table[t][o]);return r}function H(e,t,n){n<16e3&&(t=2);for(var r=0;r<=14;r++)if(b.bitrate_table[t][r]>0&&b.bitrate_table[t][r]==e)return r;return-1}function F(t,n){var r=[new L(8,2e3),new L(16,3700),new L(24,3900),new L(32,5500),new L(40,7e3),new L(48,7500),new L(56,1e4),new L(64,11e3),new L(80,13500),new L(96,15100),new L(112,15600),new L(128,17e3),new L(160,17500),new L(192,18600),new L(224,19400),new L(256,19700),new L(320,20500)],o=e.nearestBitrateFullIndex(n);t.lowerlimit=r[o].lowpass}function D(e){var t=e.internal_flags,n=32,r=-1;if(t.lowpass1>0){for(var a=999,i=0;i<=31;i++){var s=i/31;s>=t.lowpass2&&(n=Math.min(n,i)),t.lowpass1<s&&s<t.lowpass2&&(a=Math.min(a,i))}t.lowpass1=999==a?(n-.75)/31:(a-.75)/31,t.lowpass2=n/31}if(t.highpass2>0&&t.highpass2<.75/31*.9&&(t.highpass1=0,t.highpass2=0,o.err.println("Warning: highpass filter disabled.  highpass frequency too small\n")),t.highpass2>0){var c=-1;for(i=0;i<=31;i++){s=i/31;s<=t.highpass1&&(r=Math.max(r,i)),t.highpass1<s&&s<t.highpass2&&(c=Math.max(c,i))}t.highpass1=r/31,t.highpass2=-1==c?(r+.75)/31:(c+.75)/31}for(i=0;i<32;i++){var l,u;s=i/31;l=t.highpass2>t.highpass1?C((t.highpass2-s)/(t.highpass2-t.highpass1+1e-20)):1,u=t.lowpass2>t.lowpass1?C((s-t.lowpass1)/(t.lowpass2-t.lowpass1+1e-20)):1,t.amp_filter[i]=l*u}}function U(e){var t=e.internal_flags;switch(e.quality){default:case 9:t.psymodel=0,t.noise_shaping=0,t.noise_shaping_amp=0,t.noise_shaping_stop=0,t.use_best_huffman=0,t.full_outer_loop=0;break;case 8:e.quality=7;case 7:t.psymodel=1,t.noise_shaping=0,t.noise_shaping_amp=0,t.noise_shaping_stop=0,t.use_best_huffman=0,t.full_outer_loop=0;break;case 6:t.psymodel=1,0==t.noise_shaping&&(t.noise_shaping=1),t.noise_shaping_amp=0,t.noise_shaping_stop=0,-1==t.subblock_gain&&(t.subblock_gain=1),t.use_best_huffman=0,t.full_outer_loop=0;break;case 5:t.psymodel=1,0==t.noise_shaping&&(t.noise_shaping=1),t.noise_shaping_amp=0,t.noise_shaping_stop=0,-1==t.subblock_gain&&(t.subblock_gain=1),t.use_best_huffman=0,t.full_outer_loop=0;break;case 4:t.psymodel=1,0==t.noise_shaping&&(t.noise_shaping=1),t.noise_shaping_amp=0,t.noise_shaping_stop=0,-1==t.subblock_gain&&(t.subblock_gain=1),t.use_best_huffman=1,t.full_outer_loop=0;break;case 3:t.psymodel=1,0==t.noise_shaping&&(t.noise_shaping=1),t.noise_shaping_amp=1,t.noise_shaping_stop=1,-1==t.subblock_gain&&(t.subblock_gain=1),t.use_best_huffman=1,t.full_outer_loop=0;break;case 2:t.psymodel=1,0==t.noise_shaping&&(t.noise_shaping=1),0==t.substep_shaping&&(t.substep_shaping=2),t.noise_shaping_amp=1,t.noise_shaping_stop=1,-1==t.subblock_gain&&(t.subblock_gain=1),t.use_best_huffman=1,t.full_outer_loop=0;break;case 1:t.psymodel=1,0==t.noise_shaping&&(t.noise_shaping=1),0==t.substep_shaping&&(t.substep_shaping=2),t.noise_shaping_amp=2,t.noise_shaping_stop=1,-1==t.subblock_gain&&(t.subblock_gain=1),t.use_best_huffman=1,t.full_outer_loop=0;break;case 0:t.psymodel=1,0==t.noise_shaping&&(t.noise_shaping=1),0==t.substep_shaping&&(t.substep_shaping=2),t.noise_shaping_amp=2,t.noise_shaping_stop=1,-1==t.subblock_gain&&(t.subblock_gain=1),t.use_best_huffman=1,t.full_outer_loop=0;break}}function V(e){var t=e.internal_flags;e.frameNum=0,e.write_id3tag_automatic&&M.id3tag_write_v2(e),t.bitrate_stereoMode_Hist=c([16,5]),t.bitrate_blockType_Hist=c([16,6]),t.PeakSample=0,e.bWriteVbrTag&&A.InitVbrTag(e)}function q(e,t){(null==e.in_buffer_0||e.in_buffer_nsamples<t)&&(e.in_buffer_0=s(t),e.in_buffer_1=s(t),e.in_buffer_nsamples=t)}function $(e){var t=v.BLKSIZE+e.framesize-v.FFTOFFSET;return t=Math.max(t,512+e.framesize-32),u(h.MFSIZE>=t),t}function z(e,t,o,a,i,s,c){var l,f,d,p,m,_=e.internal_flags,b=0,y=[null,null],w=[null,null];if(_.Class_ID!=B)return-3;if(0==a)return 0;if(m=r.copy_buffer(_,i,s,c,0),m<0)return m;if(s+=m,b+=m,w[0]=t,w[1]=o,g.NEQ(e.scale,0)&&g.NEQ(e.scale,1))for(f=0;f<a;++f)w[0][f]*=e.scale,2==_.channels_out&&(w[1][f]*=e.scale);if(g.NEQ(e.scale_left,0)&&g.NEQ(e.scale_left,1))for(f=0;f<a;++f)w[0][f]*=e.scale_left;if(g.NEQ(e.scale_right,0)&&g.NEQ(e.scale_right,1))for(f=0;f<a;++f)w[1][f]*=e.scale_right;if(2==e.num_channels&&1==_.channels_out)for(f=0;f<a;++f)w[0][f]=.5*(w[0][f]+w[1][f]),w[1][f]=0;p=$(e),y[0]=_.mfbuf[0],y[1]=_.mfbuf[1];var x=0;while(a>0){var k=[null,null],S=0,A=0;k[0]=w[0],k[1]=w[1];var M=new X;if(Q(e,y,k,x,a,M),S=M.n_in,A=M.n_out,_.findReplayGain&&!_.decode_on_the_fly&&n.AnalyzeSamples(_.rgdata,y[0],_.mf_size,y[1],_.mf_size,A,_.channels_out)==GainAnalysis.GAIN_ANALYSIS_ERROR)return-6;if(a-=S,x+=S,_.channels_out,_.mf_size+=A,u(_.mf_size<=h.MFSIZE),_.mf_samples_to_encode<1&&(_.mf_samples_to_encode=v.ENCDELAY+v.POSTDELAY),_.mf_samples_to_encode+=A,_.mf_size>=p){var R=c-b;if(0==c&&(R=0),l=Y(e,y[0],y[1],i,s,R),l<0)return l;for(s+=l,b+=l,_.mf_size-=e.framesize,_.mf_samples_to_encode-=e.framesize,d=0;d<_.channels_out;d++)for(f=0;f<_.mf_size;f++)y[d][f]=y[d][f+e.framesize]}}return u(0==a),b}function Y(t,n,r,o,a,i){var s=e.enc.lame_encode_mp3_frame(t,n,r,o,a,i);return t.frameNum++,s}function X(){this.n_in=0,this.n_out=0}function G(){this.num_used=0}function K(e,t){return 0!=t?K(t,e%t):e}function W(e,t,n){var r=Math.PI*t;e/=n,e<0&&(e=0),e>1&&(e=1);var o=e-.5,a=.42-.5*Math.cos(2*e*Math.PI)+.08*Math.cos(4*e*Math.PI);return Math.abs(o)<1e-9?r/Math.PI:a*Math.sin(n*r*o)/(Math.PI*n*o)}function Z(e,t,n,r,o,a,i,c,l){var f,d,p=e.internal_flags,m=0,_=e.out_samplerate/K(e.out_samplerate,e.in_samplerate);_>h.BPC&&(_=h.BPC);var g=Math.abs(p.resample_ratio-Math.floor(.5+p.resample_ratio))<1e-4?1:0,b=1/p.resample_ratio;b>1&&(b=1);var v=31;0==v%2&&--v,v+=g;var y=v+1;if(0==p.fill_buffer_resample_init){for(p.inbuf_old[0]=s(y),p.inbuf_old[1]=s(y),f=0;f<=2*_;++f)p.blackfilt[f]=s(y);for(p.itime[0]=0,p.itime[1]=0,m=0;m<=2*_;m++){var w=0,x=(m-_)/(2*_);for(f=0;f<=v;f++)w+=p.blackfilt[m][f]=W(f-x,b,v);for(f=0;f<=v;f++)p.blackfilt[m][f]/=w}p.fill_buffer_resample_init=1}var k=p.inbuf_old[l];for(d=0;d<r;d++){var S,A;if(S=d*p.resample_ratio,m=0|Math.floor(S-p.itime[l]),v+m-v/2>=i)break;x=S-p.itime[l]-(m+v%2*.5);u(Math.abs(x)<=.501),A=0|Math.floor(2*x*_+_+.5);var M=0;for(f=0;f<=v;++f){var R,E=f+m-v/2;u(E<i),u(E+y>=0),R=E<0?k[y+E]:o[a+E],M+=R*p.blackfilt[A][f]}t[n+d]=M}if(c.num_used=Math.min(i,v+m-v/2),p.itime[l]+=c.num_used-d*p.resample_ratio,c.num_used>=y)for(f=0;f<y;f++)k[f]=o[a+c.num_used+f-y];else{var T=y-c.num_used;for(f=0;f<T;++f)k[f]=k[f+c.num_used];for(m=0;f<y;++f,++m)k[f]=o[a+m];u(m==c.num_used)}return d}function Q(e,t,n,r,o,a){var i=e.internal_flags;if(i.resample_ratio<.9999||i.resample_ratio>1.0001)for(var s=0;s<i.channels_out;s++){var c=new G;a.n_out=Z(e,t[s],i.mf_size,e.framesize,n[s],r,o,c,s),a.n_in=c.num_used}else{a.n_out=Math.min(e.framesize,o),a.n_in=a.n_out;for(var l=0;l<a.n_out;++l)t[0][i.mf_size+l]=n[0][r+l],2==i.channels_out&&(t[1][i.mf_size+l]=n[1][r+l])}}this.lame_init=function(){var e=new d,t=I(e);return 0!=t?null:(e.lame_allocated_gfp=1,e)},this.nearestBitrateFullIndex=function(e){var t=[8,16,24,32,40,48,56,64,80,96,112,128,160,192,224,256,320],n=0,r=0,o=0,a=0;a=t[16],o=16,r=t[16],n=16;for(var i=0;i<16;i++)if(Math.max(e,t[i+1])!=e){a=t[i+1],o=i+1,r=t[i],n=i;break}return a-e>e-r?n:o},this.lame_init_params=function(e){var t=e.internal_flags;if(t.Class_ID=0,null==t.ATH&&(t.ATH=new p),null==t.PSY&&(t.PSY=new T),null==t.rgdata&&(t.rgdata=new m),t.channels_in=e.num_channels,1==t.channels_in&&(e.mode=MPEGMode.MONO),t.channels_out=e.mode==MPEGMode.MONO?1:2,t.mode_ext=v.MPG_MD_MS_LR,e.mode==MPEGMode.MONO&&(e.force_ms=!1),e.VBR==a.vbr_off&&128!=e.VBR_mean_bitrate_kbps&&0==e.brate&&(e.brate=e.VBR_mean_bitrate_kbps),e.VBR==a.vbr_off||e.VBR==a.vbr_mtrh||e.VBR==a.vbr_mt||(e.free_format=!1),e.VBR==a.vbr_off&&0==e.brate&&g.EQ(e.compression_ratio,0)&&(e.compression_ratio=11.025),e.VBR==a.vbr_off&&e.compression_ratio>0&&(0==e.out_samplerate&&(e.out_samplerate=map2MP3Frequency(int(.97*e.in_samplerate))),e.brate=0|16*e.out_samplerate*t.channels_out/(1e3*e.compression_ratio),t.samplerate_index=j(e.out_samplerate,e),e.free_format||(e.brate=N(e.brate,e.version,e.out_samplerate))),0!=e.out_samplerate&&(e.out_samplerate<16e3?(e.VBR_mean_bitrate_kbps=Math.max(e.VBR_mean_bitrate_kbps,8),e.VBR_mean_bitrate_kbps=Math.min(e.VBR_mean_bitrate_kbps,64)):e.out_samplerate<32e3?(e.VBR_mean_bitrate_kbps=Math.max(e.VBR_mean_bitrate_kbps,8),e.VBR_mean_bitrate_kbps=Math.min(e.VBR_mean_bitrate_kbps,160)):(e.VBR_mean_bitrate_kbps=Math.max(e.VBR_mean_bitrate_kbps,32),e.VBR_mean_bitrate_kbps=Math.min(e.VBR_mean_bitrate_kbps,320))),0==e.lowpassfreq){var o=16e3;switch(e.VBR){case a.vbr_off:var s=new O;F(s,e.brate),o=s.lowerlimit;break;case a.vbr_abr:s=new O;F(s,e.VBR_mean_bitrate_kbps),o=s.lowerlimit;break;case a.vbr_rh:var c=[19500,19e3,18600,18e3,17500,16e3,15600,14900,12500,1e4,3950];if(0<=e.VBR_q&&e.VBR_q<=9){var l=c[e.VBR_q],d=c[e.VBR_q+1],h=e.VBR_q_frac;o=linear_int(l,d,h)}else o=19500;break;default:c=[19500,19e3,18500,18e3,17500,16500,15500,14500,12500,9500,3950];if(0<=e.VBR_q&&e.VBR_q<=9){l=c[e.VBR_q],d=c[e.VBR_q+1],h=e.VBR_q_frac;o=linear_int(l,d,h)}else o=19500}e.mode!=MPEGMode.MONO||e.VBR!=a.vbr_off&&e.VBR!=a.vbr_abr||(o*=1.5),e.lowpassfreq=0|o}if(0==e.out_samplerate&&(2*e.lowpassfreq>e.in_samplerate&&(e.lowpassfreq=e.in_samplerate/2),e.out_samplerate=P(0|e.lowpassfreq,e.in_samplerate)),e.lowpassfreq=Math.min(20500,e.lowpassfreq),e.lowpassfreq=Math.min(e.out_samplerate/2,e.lowpassfreq),e.VBR==a.vbr_off&&(e.compression_ratio=16*e.out_samplerate*t.channels_out/(1e3*e.brate)),e.VBR==a.vbr_abr&&(e.compression_ratio=16*e.out_samplerate*t.channels_out/(1e3*e.VBR_mean_bitrate_kbps)),e.bWriteVbrTag||(e.findReplayGain=!1,e.decode_on_the_fly=!1,t.findPeakSample=!1),t.findReplayGain=e.findReplayGain,t.decode_on_the_fly=e.decode_on_the_fly,t.decode_on_the_fly&&(t.findPeakSample=!0),t.findReplayGain&&n.InitGainAnalysis(t.rgdata,e.out_samplerate)==GainAnalysis.INIT_GAIN_ANALYSIS_ERROR)return e.internal_flags=null,-6;switch(t.decode_on_the_fly&&!e.decode_only&&(null!=t.hip&&R.hip_decode_exit(t.hip),t.hip=R.hip_decode_init()),t.mode_gr=e.out_samplerate<=24e3?1:2,e.framesize=576*t.mode_gr,e.encoder_delay=v.ENCDELAY,t.resample_ratio=e.in_samplerate/e.out_samplerate,e.VBR){case a.vbr_mt:case a.vbr_rh:case a.vbr_mtrh:var y=[5.7,6.5,7.3,8.2,10,11.9,13,14,15,16.5];e.compression_ratio=y[e.VBR_q];break;case a.vbr_abr:e.compression_ratio=16*e.out_samplerate*t.channels_out/(1e3*e.VBR_mean_bitrate_kbps);break;default:e.compression_ratio=16*e.out_samplerate*t.channels_out/(1e3*e.brate);break}if(e.mode==MPEGMode.NOT_SET&&(e.mode=MPEGMode.JOINT_STEREO),e.highpassfreq>0?(t.highpass1=2*e.highpassfreq,e.highpasswidth>=0?t.highpass2=2*(e.highpassfreq+e.highpasswidth):t.highpass2=2*e.highpassfreq,t.highpass1/=e.out_samplerate,t.highpass2/=e.out_samplerate):(t.highpass1=0,t.highpass2=0),e.lowpassfreq>0?(t.lowpass2=2*e.lowpassfreq,e.lowpasswidth>=0?(t.lowpass1=2*(e.lowpassfreq-e.lowpasswidth),t.lowpass1<0&&(t.lowpass1=0)):t.lowpass1=2*e.lowpassfreq,t.lowpass1/=e.out_samplerate,t.lowpass2/=e.out_samplerate):(t.lowpass1=0,t.lowpass2=0),D(e),t.samplerate_index=j(e.out_samplerate,e),t.samplerate_index<0)return e.internal_flags=null,-1;if(e.VBR==a.vbr_off){if(e.free_format)t.bitrate_index=0;else if(e.brate=N(e.brate,e.version,e.out_samplerate),t.bitrate_index=H(e.brate,e.version,e.out_samplerate),t.bitrate_index<=0)return e.internal_flags=null,-1}else t.bitrate_index=1;e.analysis&&(e.bWriteVbrTag=!1),null!=t.pinfo&&(e.bWriteVbrTag=!1),r.init_bit_stream_w(t);for(var S,A=t.samplerate_index+3*e.version+6*(e.out_samplerate<16e3?1:0),M=0;M<v.SBMAX_l+1;M++)t.scalefac_band.l[M]=x.sfBandIndex[A].l[M];for(M=0;M<v.PSFB21+1;M++){var L=(t.scalefac_band.l[22]-t.scalefac_band.l[21])/v.PSFB21,I=t.scalefac_band.l[21]+M*L;t.scalefac_band.psfb21[M]=I}t.scalefac_band.psfb21[v.PSFB21]=576;for(M=0;M<v.SBMAX_s+1;M++)t.scalefac_band.s[M]=x.sfBandIndex[A].s[M];for(M=0;M<v.PSFB12+1;M++){L=(t.scalefac_band.s[13]-t.scalefac_band.s[12])/v.PSFB12,I=t.scalefac_band.s[12]+M*L;t.scalefac_band.psfb12[M]=I}for(t.scalefac_band.psfb12[v.PSFB12]=192,1==e.version?t.sideinfo_len=1==t.channels_out?21:36:t.sideinfo_len=1==t.channels_out?13:21,e.error_protection&&(t.sideinfo_len+=2),V(e),t.Class_ID=B,S=0;S<19;S++)t.nsPsy.pefirbuf[S]=700*t.mode_gr*t.channels_out;switch(-1==e.ATHtype&&(e.ATHtype=4),u(e.VBR_q<=9),u(e.VBR_q>=0),e.VBR){case a.vbr_mt:e.VBR=a.vbr_mtrh;case a.vbr_mtrh:null==e.useTemporal&&(e.useTemporal=!1),w.apply_preset(e,500-10*e.VBR_q,0),e.quality<0&&(e.quality=LAME_DEFAULT_QUALITY),e.quality<5&&(e.quality=0),e.quality>5&&(e.quality=5),t.PSY.mask_adjust=e.maskingadjust,t.PSY.mask_adjust_short=e.maskingadjust_short,e.experimentalY?t.sfb21_extra=!1:t.sfb21_extra=e.out_samplerate>44e3,t.iteration_loop=new VBRNewIterationLoop(k);break;case a.vbr_rh:w.apply_preset(e,500-10*e.VBR_q,0),t.PSY.mask_adjust=e.maskingadjust,t.PSY.mask_adjust_short=e.maskingadjust_short,e.experimentalY?t.sfb21_extra=!1:t.sfb21_extra=e.out_samplerate>44e3,e.quality>6&&(e.quality=6),e.quality<0&&(e.quality=LAME_DEFAULT_QUALITY),t.iteration_loop=new VBROldIterationLoop(k);break;default:var C;t.sfb21_extra=!1,e.quality<0&&(e.quality=LAME_DEFAULT_QUALITY),C=e.VBR,C==a.vbr_off&&(e.VBR_mean_bitrate_kbps=e.brate),w.apply_preset(e,e.VBR_mean_bitrate_kbps,0),e.VBR=C,t.PSY.mask_adjust=e.maskingadjust,t.PSY.mask_adjust_short=e.maskingadjust_short,C==a.vbr_off?t.iteration_loop=new _(k):t.iteration_loop=new ABRIterationLoop(k);break}if(u(e.scale>=0),e.VBR!=a.vbr_off){if(t.VBR_min_bitrate=1,t.VBR_max_bitrate=14,e.out_samplerate<16e3&&(t.VBR_max_bitrate=8),0!=e.VBR_min_bitrate_kbps&&(e.VBR_min_bitrate_kbps=N(e.VBR_min_bitrate_kbps,e.version,e.out_samplerate),t.VBR_min_bitrate=H(e.VBR_min_bitrate_kbps,e.version,e.out_samplerate),t.VBR_min_bitrate<0))return-1;if(0!=e.VBR_max_bitrate_kbps&&(e.VBR_max_bitrate_kbps=N(e.VBR_max_bitrate_kbps,e.version,e.out_samplerate),t.VBR_max_bitrate=H(e.VBR_max_bitrate_kbps,e.version,e.out_samplerate),t.VBR_max_bitrate<0))return-1;e.VBR_min_bitrate_kbps=b.bitrate_table[e.version][t.VBR_min_bitrate],e.VBR_max_bitrate_kbps=b.bitrate_table[e.version][t.VBR_max_bitrate],e.VBR_mean_bitrate_kbps=Math.min(b.bitrate_table[e.version][t.VBR_max_bitrate],e.VBR_mean_bitrate_kbps),e.VBR_mean_bitrate_kbps=Math.max(b.bitrate_table[e.version][t.VBR_min_bitrate],e.VBR_mean_bitrate_kbps)}return e.tune&&(t.PSY.mask_adjust+=e.tune_value_a,t.PSY.mask_adjust_short+=e.tune_value_a),U(e),u(e.scale>=0),e.athaa_type<0?t.ATH.useAdjust=3:t.ATH.useAdjust=e.athaa_type,t.ATH.aaSensitivityP=Math.pow(10,e.athaa_sensitivity/-10),null==e.short_blocks&&(e.short_blocks=i.short_block_allowed),e.short_blocks!=i.short_block_allowed||e.mode!=MPEGMode.JOINT_STEREO&&e.mode!=MPEGMode.STEREO||(e.short_blocks=i.short_block_coupled),e.quant_comp<0&&(e.quant_comp=1),e.quant_comp_short<0&&(e.quant_comp_short=0),e.msfix<0&&(e.msfix=0),e.exp_nspsytune=1|e.exp_nspsytune,e.internal_flags.nsPsy.attackthre<0&&(e.internal_flags.nsPsy.attackthre=f.NSATTACKTHRE),e.internal_flags.nsPsy.attackthre_s<0&&(e.internal_flags.nsPsy.attackthre_s=f.NSATTACKTHRE_S),u(e.scale>=0),e.scale<0&&(e.scale=1),e.ATHtype<0&&(e.ATHtype=4),e.ATHcurve<0&&(e.ATHcurve=4),e.athaa_loudapprox<0&&(e.athaa_loudapprox=2),e.interChRatio<0&&(e.interChRatio=0),null==e.useTemporal&&(e.useTemporal=!0),t.slot_lag=t.frac_SpF=0,e.VBR==a.vbr_off&&(t.slot_lag=t.frac_SpF=72e3*(e.version+1)*e.brate%e.out_samplerate|0),x.iteration_init(e),E.psymodel_init(e),u(e.scale>=0),0},this.lame_encode_flush=function(e,t,n,o){var a,i,s,c,u=e.internal_flags,f=l([2,1152]),d=0,h=u.mf_samples_to_encode-v.POSTDELAY,p=$(e);if(u.mf_samples_to_encode<1)return 0;a=0,e.in_samplerate!=e.out_samplerate&&(h+=16*e.out_samplerate/e.in_samplerate),s=e.framesize-h%e.framesize,s<576&&(s+=e.framesize),e.encoder_padding=s,c=(h+s)/e.framesize;while(c>0&&d>=0){var m=p-u.mf_size,_=e.frameNum;m*=e.in_samplerate,m/=e.out_samplerate,m>1152&&(m=1152),m<1&&(m=1),i=o-a,0==o&&(i=0),d=this.lame_encode_buffer(e,f[0],f[1],m,t,n,i),n+=d,a+=d,c-=_!=e.frameNum?1:0}if(u.mf_samples_to_encode=0,d<0)return d;if(i=o-a,0==o&&(i=0),r.flush_bitstream(e),d=r.copy_buffer(u,t,n,i,1),d<0)return d;if(n+=d,a+=d,i=o-a,0==o&&(i=0),e.write_id3tag_automatic){if(M.id3tag_write_v1(e),d=r.copy_buffer(u,t,n,i,0),d<0)return d;a+=d}return a},this.lame_encode_buffer=function(e,t,n,r,o,a,i){var s=e.internal_flags,c=[null,null];if(s.Class_ID!=B)return-3;if(0==r)return 0;q(s,r),c[0]=s.in_buffer_0,c[1]=s.in_buffer_1;for(var l=0;l<r;l++)c[0][l]=t[l],s.channels_in>1&&(c[1][l]=n[l]);return z(e,c[0],c[1],r,o,a,i)}}e.exports=y},df75:function(e,t,n){var r=n("ca84"),o=n("7839");e.exports=Object.keys||function(e){return r(e,o)}},dfb9:function(e,t){e.exports=function(e,t){var n=0,r=t.length,o=new e(r);while(r>n)o[n]=t[n++];return o}},e01a:function(e,t,n){"use strict";var r=n("23e7"),o=n("83ab"),a=n("da84"),i=n("5135"),s=n("861d"),c=n("9bf2").f,l=n("e893"),u=a.Symbol;if(o&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var f={},d=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof d?new u(e):void 0===e?u():u(e);return""===e&&(f[t]=!0),t};l(d,u);var h=d.prototype=u.prototype;h.constructor=d;var p=h.toString,m="Symbol(test)"==String(u("test")),_=/^Symbol\((.*)\)[^)]+$/;c(h,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=p.call(e);if(i(f,e))return"";var n=m?t.slice(7,-1):t.replace(_,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:d})}},e107:function(e,t,n){var r=n("0206"),o=r.System,a=r.VbrMode,i=(r.Float,r.ShortBlock),s=(r.Util,r.Arrays),c=(r.new_array_n,r.new_byte),l=(r.new_double,r.new_float,r.new_float_n,r.new_int,r.new_int_n,r.assert);function u(){var e,t,n;this.setModules=function(r,o,a){e=r,t=o,n=a};var r=1,f=2,d=4,h=8,p=u.NUMTOCENTRIES,m=u.MAXFRAMESIZE,_=p+4+4+4+4+4,g=_+9+1+1+8+1+1+3+1+1+2+4+2+2,b=128,v=64,y=32,w=null,x="Xing",k="Info",S=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448];function A(e,t){if(e.nVbrNumFrames++,e.sum+=t,e.seen++,!(e.seen<e.want)&&(e.pos<e.size&&(e.bag[e.pos]=e.sum,e.pos++,e.seen=0),e.pos==e.size)){for(var n=1;n<e.size;n+=2)e.bag[n/2]=e.bag[n];e.want*=2,e.pos/=2}}function M(e,t){if(!(e.pos<=0))for(var n=1;n<p;++n){var r,o,a=n/p,i=0|Math.floor(a*e.pos);i>e.pos-1&&(i=e.pos-1),r=e.bag[i],o=e.sum;var s=0|256*r/o;s>255&&(s=255),t[n]=255&s}}function R(e,t){var n=255&e[t+0];return n<<=8,n|=255&e[t+1],n<<=8,n|=255&e[t+2],n<<=8,n|=255&e[t+3],n}function E(e,t,n){e[t+0]=255&n>>24,e[t+1]=255&n>>16,e[t+2]=255&n>>8,e[t+3]=255&n}function T(e,t,n){e[t+0]=255&n>>8,e[t+1]=255&n}function O(e,t){return new String(e,t,x.length(),w).equals(x)||new String(e,t,k.length(),w).equals(k)}function L(e,t,n){return 255&(e<<t|n&~(-1<<t))}function B(t,n){var r=t.internal_flags;n[0]=L(n[0],8,255),n[1]=L(n[1],3,7),n[1]=L(n[1],1,t.out_samplerate<16e3?0:1),n[1]=L(n[1],1,t.version),n[1]=L(n[1],2,1),n[1]=L(n[1],1,t.error_protection?0:1),n[2]=L(n[2],4,r.bitrate_index),n[2]=L(n[2],2,r.samplerate_index),n[2]=L(n[2],1,0),n[2]=L(n[2],1,t.extension),n[3]=L(n[3],2,t.mode.ordinal()),n[3]=L(n[3],2,r.mode_ext),n[3]=L(n[3],1,t.copyright),n[3]=L(n[3],1,t.original),n[3]=L(n[3],2,t.emphasis),n[0]=255;var o,i,s=241&n[1];o=1==t.version?b:t.out_samplerate<16e3?y:v,t.VBR==a.vbr_off&&(o=t.brate),i=t.free_format?0:255&16*e.BitrateIndex(o,t.version,t.out_samplerate),1==t.version?(n[1]=255&(10|s),s=13&n[2],n[2]=255&(i|s)):(n[1]=255&(2|s),s=13&n[2],n[2]=255&(i|s))}function I(e,t){var n=t^e;return t=t>>8^S[255&n],t}function C(e,t,r,o,a){var s,c,l,u=e.internal_flags,f=0,d=e.encoder_delay,h=e.encoder_padding,p=100-10*e.VBR_q-e.quality,m=n.getLameVeryShortVersion(),_=0,g=[1,5,3,2,4,0,3],b=0|(e.lowpassfreq/100+.5>255?255:e.lowpassfreq/100+.5),v=0,y=0,w=0,x=e.internal_flags.noise_shaping,k=0,S=0,A=0,M=0,R=0,O=0!=(1&e.exp_nspsytune),L=0!=(2&e.exp_nspsytune),B=!1,C=!1,P=e.internal_flags.nogap_total,j=e.internal_flags.nogap_current,N=e.ATHtype,H=0;switch(e.VBR){case vbr_abr:l=e.VBR_mean_bitrate_kbps;break;case vbr_off:l=e.brate;break;default:l=e.VBR_min_bitrate_kbps}switch(s=e.VBR.ordinal()<g.length?g[e.VBR.ordinal()]:0,c=16*_+s,u.findReplayGain&&(u.RadioGain>510&&(u.RadioGain=510),u.RadioGain<-510&&(u.RadioGain=-510),y=8192,y|=3072,u.RadioGain>=0?y|=u.RadioGain:(y|=512,y|=-u.RadioGain)),u.findPeakSample&&(v=Math.abs(0|u.PeakSample/32767*Math.pow(2,23)+.5)),-1!=P&&(j>0&&(C=!0),j<P-1&&(B=!0)),H=N+((O?1:0)<<4)+((L?1:0)<<5)+((B?1:0)<<6)+((C?1:0)<<7),p<0&&(p=0),e.mode){case MONO:k=0;break;case STEREO:k=1;break;case DUAL_CHANNEL:k=2;break;case JOINT_STEREO:k=e.force_ms?4:3;break;case NOT_SET:default:k=7;break}A=e.in_samplerate<=32e3?0:48e3==e.in_samplerate?2:e.in_samplerate>48e3?3:1,(e.short_blocks==i.short_block_forced||e.short_blocks==i.short_block_dispensed||-1==e.lowpassfreq&&-1==e.highpassfreq||e.scale_left<e.scale_right||e.scale_left>e.scale_right||e.disable_reservoir&&e.brate<320||e.noATH||e.ATHonly||0==N||e.in_samplerate<=32e3)&&(S=1),M=x+(k<<2)+(S<<5)+(A<<6),R=u.nMusicCRC,E(r,o+f,p),f+=4;for(var F=0;F<9;F++)r[o+f+F]=255&m.charAt(F);f+=9,r[o+f]=255&c,f++,r[o+f]=255&b,f++,E(r,o+f,v),f+=4,T(r,o+f,y),f+=2,T(r,o+f,w),f+=2,r[o+f]=255&H,f++,r[o+f]=l>=255?255:255&l,f++,r[o+f]=255&d>>4,r[o+f+1]=255&(d<<4)+(h>>8),r[o+f+2]=255&h,f+=3,r[o+f]=255&M,f++,r[o+f++]=0,T(r,o+f,e.preset),f+=2,E(r,o+f,t),f+=4,T(r,o+f,R),f+=2;for(var D=0;D<f;D++)a=I(r[o+D],a);return T(r,o+f,a),f+=2,f}function P(e){e.seek(0);var t,n=c(10);return e.readFully(n),t=new String(n,"ISO-8859-1").startsWith("ID3")?0:((127&n[6])<<21|(127&n[7])<<14|(127&n[8])<<7|127&n[9])+n.length,t}this.addVbrFrame=function(e){var t=e.internal_flags,n=Tables.bitrate_table[e.version][t.bitrate_index];l(null!=t.VBR_seek_table.bag),A(t.VBR_seek_table,n)},this.getVbrTag=function(e){var t=new VBRTagData,n=0;t.flags=0;var o=e[n+1]>>3&1,a=e[n+2]>>2&3,i=e[n+3]>>6&3,s=e[n+2]>>4&15;if(s=Tables.bitrate_table[o][s],e[n+1]>>4==14?t.samprate=Tables.samplerate_table[2][a]:t.samprate=Tables.samplerate_table[o][a],n+=0!=o?3!=i?36:21:3!=i?21:13,!O(e,n))return null;n+=4,t.hId=o;var c=t.flags=R(e,n);if(n+=4,0!=(c&r)&&(t.frames=R(e,n),n+=4),0!=(c&f)&&(t.bytes=R(e,n),n+=4),0!=(c&d)){if(null!=t.toc)for(var l=0;l<p;l++)t.toc[l]=e[n+l];n+=p}t.vbrScale=-1,0!=(c&h)&&(t.vbrScale=R(e,n),n+=4),t.headersize=72e3*(o+1)*s/t.samprate,n+=21;var u=e[n+0]<<4;u+=e[n+1]>>4;var m=(15&e[n+1])<<8;return m+=255&e[n+2],(u<0||u>3e3)&&(u=-1),(m<0||m>3e3)&&(m=-1),t.encDelay=u,t.encPadding=m,t},this.InitVbrTag=function(e){var n,r=e.internal_flags;n=1==e.version?b:e.out_samplerate<16e3?y:v,e.VBR==a.vbr_off&&(n=e.brate);var o=72e3*(e.version+1)*n/e.out_samplerate,i=r.sideinfo_len+g;if(r.VBR_seek_table.TotalFrameSize=o,o<i||o>m)e.bWriteVbrTag=!1;else{r.VBR_seek_table.nVbrNumFrames=0,r.VBR_seek_table.nBytesWritten=0,r.VBR_seek_table.sum=0,r.VBR_seek_table.seen=0,r.VBR_seek_table.want=1,r.VBR_seek_table.pos=0,null==r.VBR_seek_table.bag&&(r.VBR_seek_table.bag=new int[400],r.VBR_seek_table.size=400);var s=c(m);B(e,s);for(var l=r.VBR_seek_table.TotalFrameSize,u=0;u<l;++u)t.add_dummy_byte(e,255&s[u],1)}},this.updateMusicCRC=function(e,t,n,r){for(var o=0;o<r;++o)e[0]=I(t[n+o],e[0])},this.getLameTagFrame=function(e,n){var i=e.internal_flags;if(!e.bWriteVbrTag)return 0;if(i.Class_ID!=Lame.LAME_ID)return 0;if(i.VBR_seek_table.pos<=0)return 0;if(n.length<i.VBR_seek_table.TotalFrameSize)return i.VBR_seek_table.TotalFrameSize;s.fill(n,0,i.VBR_seek_table.TotalFrameSize,0),B(e,n);var l=c(p);if(e.free_format)for(var u=1;u<p;++u)l[u]=255&255*u/100;else M(i.VBR_seek_table,l);var m=i.sideinfo_len;e.error_protection&&(m-=2),e.VBR==a.vbr_off?(n[m++]=255&k.charAt(0),n[m++]=255&k.charAt(1),n[m++]=255&k.charAt(2),n[m++]=255&k.charAt(3)):(n[m++]=255&x.charAt(0),n[m++]=255&x.charAt(1),n[m++]=255&x.charAt(2),n[m++]=255&x.charAt(3)),E(n,m,r+f+d+h),m+=4,E(n,m,i.VBR_seek_table.nVbrNumFrames),m+=4;var _=i.VBR_seek_table.nBytesWritten+i.VBR_seek_table.TotalFrameSize;E(n,m,0|_),m+=4,o.arraycopy(l,0,n,m,l.length),m+=l.length,e.error_protection&&t.CRC_writeheader(i,n);var g=0;for(u=0;u<m;u++)g=I(n[u],g);return m+=C(e,_,n,m,g),i.VBR_seek_table.TotalFrameSize},this.putVbrTag=function(e,t){var n=e.internal_flags;if(n.VBR_seek_table.pos<=0)return-1;if(t.seek(t.length()),0==t.length())return-1;var r=P(t);t.seek(r);var o=c(m),a=getLameTagFrame(e,o);return a>o.length?-1:(a<1||t.write(o,0,a),0)}}u.NUMTOCENTRIES=100,u.MAXFRAMESIZE=2880,e.exports=u},e163:function(e,t,n){var r=n("5135"),o=n("7b0b"),a=n("f772"),i=n("e177"),s=a("IE_PROTO"),c=Object.prototype;e.exports=i?Object.getPrototypeOf:function(e){return e=o(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}},e166:function(e,t,n){
/*!
 * vue-infinite-loading v2.4.5
 * (c) 2016-2021 PeachScript
 * MIT License
 */
!function(t,n){e.exports=n()}(0,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=9)}([function(e,t,n){var r=n(6);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),(0,n(3).default)("09280948",r,!0,{})},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,r=e[1]||"",o=e[3];if(!o)return r;if(t&&"function"==typeof btoa){var a=(n=o,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),i=o.sources.map((function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"}));return[r].concat(i).concat([a]).join("\n")}return[r].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var a=this[o][0];"number"==typeof a&&(r[a]=!0)}for(o=0;o<e.length;o++){var i=e[o];"number"==typeof i[0]&&r[i[0]]||(n&&!i[2]?i[2]=n:n&&(i[2]="("+i[2]+") and ("+n+")"),t.push(i))}},t}},function(e,t,n){var r=n(8);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),(0,n(3).default)("5f444915",r,!0,{})},function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},o=0;o<t.length;o++){var a=t[o],i=a[0],s={id:e+":"+o,css:a[1],media:a[2],sourceMap:a[3]};r[i]?r[i].parts.push(s):n.push(r[i]={id:i,parts:[s]})}return n}n.r(t),n.d(t,"default",(function(){return h}));var o="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var a={},i=o&&(document.head||document.getElementsByTagName("head")[0]),s=null,c=0,l=!1,u=function(){},f=null,d="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(e,t,n,o){l=n,f=o||{};var i=r(e,t);return p(i),function(t){for(var n=[],o=0;o<i.length;o++){var s=i[o];(c=a[s.id]).refs--,n.push(c)}for(t?p(i=r(e,t)):i=[],o=0;o<n.length;o++){var c;if(0===(c=n[o]).refs){for(var l=0;l<c.parts.length;l++)c.parts[l]();delete a[c.id]}}}}function p(e){for(var t=0;t<e.length;t++){var n=e[t],r=a[n.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](n.parts[o]);for(;o<n.parts.length;o++)r.parts.push(_(n.parts[o]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var i=[];for(o=0;o<n.parts.length;o++)i.push(_(n.parts[o]));a[n.id]={id:n.id,refs:1,parts:i}}}}function m(){var e=document.createElement("style");return e.type="text/css",i.appendChild(e),e}function _(e){var t,n,r=document.querySelector('style[data-vue-ssr-id~="'+e.id+'"]');if(r){if(l)return u;r.parentNode.removeChild(r)}if(d){var o=c++;r=s||(s=m()),t=v.bind(null,r,o,!1),n=v.bind(null,r,o,!0)}else r=m(),t=y.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}var g,b=(g=[],function(e,t){return g[e]=t,g.filter(Boolean).join("\n")});function v(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=b(t,o);else{var a=document.createTextNode(o),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(a,i[t]):e.appendChild(a)}}function y(e,t){var n=t.css,r=t.media,o=t.sourceMap;if(r&&e.setAttribute("media",r),f.ssrId&&e.setAttribute("data-vue-ssr-id",t.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=n=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";n.r(t);var r=n(0);for(var o in r)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(o)},function(e,t,n){(e.exports=n(1)(!1)).push([e.i,'.loading-wave-dots[data-v-46b20d22]{position:relative}.loading-wave-dots[data-v-46b20d22] .wave-item{position:absolute;top:50%;left:50%;display:inline-block;margin-top:-4px;width:8px;height:8px;border-radius:50%;-webkit-animation:loading-wave-dots-data-v-46b20d22 linear 2.8s infinite;animation:loading-wave-dots-data-v-46b20d22 linear 2.8s infinite}.loading-wave-dots[data-v-46b20d22] .wave-item:first-child{margin-left:-36px}.loading-wave-dots[data-v-46b20d22] .wave-item:nth-child(2){margin-left:-20px;-webkit-animation-delay:.14s;animation-delay:.14s}.loading-wave-dots[data-v-46b20d22] .wave-item:nth-child(3){margin-left:-4px;-webkit-animation-delay:.28s;animation-delay:.28s}.loading-wave-dots[data-v-46b20d22] .wave-item:nth-child(4){margin-left:12px;-webkit-animation-delay:.42s;animation-delay:.42s}.loading-wave-dots[data-v-46b20d22] .wave-item:last-child{margin-left:28px;-webkit-animation-delay:.56s;animation-delay:.56s}@-webkit-keyframes loading-wave-dots-data-v-46b20d22{0%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}10%{-webkit-transform:translateY(-6px);transform:translateY(-6px);background:#999}20%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}to{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}}@keyframes loading-wave-dots-data-v-46b20d22{0%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}10%{-webkit-transform:translateY(-6px);transform:translateY(-6px);background:#999}20%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}to{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}}.loading-circles[data-v-46b20d22] .circle-item{width:5px;height:5px;-webkit-animation:loading-circles-data-v-46b20d22 linear .75s infinite;animation:loading-circles-data-v-46b20d22 linear .75s infinite}.loading-circles[data-v-46b20d22] .circle-item:first-child{margin-top:-14.5px;margin-left:-2.5px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(2){margin-top:-11.26px;margin-left:6.26px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(3){margin-top:-2.5px;margin-left:9.5px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(4){margin-top:6.26px;margin-left:6.26px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(5){margin-top:9.5px;margin-left:-2.5px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(6){margin-top:6.26px;margin-left:-11.26px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(7){margin-top:-2.5px;margin-left:-14.5px}.loading-circles[data-v-46b20d22] .circle-item:last-child{margin-top:-11.26px;margin-left:-11.26px}@-webkit-keyframes loading-circles-data-v-46b20d22{0%{background:#dfdfdf}90%{background:#505050}to{background:#dfdfdf}}@keyframes loading-circles-data-v-46b20d22{0%{background:#dfdfdf}90%{background:#505050}to{background:#dfdfdf}}.loading-bubbles[data-v-46b20d22] .bubble-item{background:#666;-webkit-animation:loading-bubbles-data-v-46b20d22 linear .75s infinite;animation:loading-bubbles-data-v-46b20d22 linear .75s infinite}.loading-bubbles[data-v-46b20d22] .bubble-item:first-child{margin-top:-12.5px;margin-left:-.5px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(2){margin-top:-9.26px;margin-left:8.26px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(3){margin-top:-.5px;margin-left:11.5px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(4){margin-top:8.26px;margin-left:8.26px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(5){margin-top:11.5px;margin-left:-.5px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(6){margin-top:8.26px;margin-left:-9.26px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(7){margin-top:-.5px;margin-left:-12.5px}.loading-bubbles[data-v-46b20d22] .bubble-item:last-child{margin-top:-9.26px;margin-left:-9.26px}@-webkit-keyframes loading-bubbles-data-v-46b20d22{0%{width:1px;height:1px;box-shadow:0 0 0 3px #666}90%{width:1px;height:1px;box-shadow:0 0 0 0 #666}to{width:1px;height:1px;box-shadow:0 0 0 3px #666}}@keyframes loading-bubbles-data-v-46b20d22{0%{width:1px;height:1px;box-shadow:0 0 0 3px #666}90%{width:1px;height:1px;box-shadow:0 0 0 0 #666}to{width:1px;height:1px;box-shadow:0 0 0 3px #666}}.loading-default[data-v-46b20d22]{position:relative;border:1px solid #999;-webkit-animation:loading-rotating-data-v-46b20d22 ease 1.5s infinite;animation:loading-rotating-data-v-46b20d22 ease 1.5s infinite}.loading-default[data-v-46b20d22]:before{content:"";position:absolute;display:block;top:0;left:50%;margin-top:-3px;margin-left:-3px;width:6px;height:6px;background-color:#999;border-radius:50%}.loading-spiral[data-v-46b20d22]{border:2px solid #777;border-right-color:transparent;-webkit-animation:loading-rotating-data-v-46b20d22 linear .85s infinite;animation:loading-rotating-data-v-46b20d22 linear .85s infinite}@-webkit-keyframes loading-rotating-data-v-46b20d22{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes loading-rotating-data-v-46b20d22{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.loading-bubbles[data-v-46b20d22],.loading-circles[data-v-46b20d22]{position:relative}.loading-bubbles[data-v-46b20d22] .bubble-item,.loading-circles[data-v-46b20d22] .circle-item{position:absolute;top:50%;left:50%;display:inline-block;border-radius:50%}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(2),.loading-circles[data-v-46b20d22] .circle-item:nth-child(2){-webkit-animation-delay:93ms;animation-delay:93ms}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(3),.loading-circles[data-v-46b20d22] .circle-item:nth-child(3){-webkit-animation-delay:.186s;animation-delay:.186s}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(4),.loading-circles[data-v-46b20d22] .circle-item:nth-child(4){-webkit-animation-delay:.279s;animation-delay:.279s}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(5),.loading-circles[data-v-46b20d22] .circle-item:nth-child(5){-webkit-animation-delay:.372s;animation-delay:.372s}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(6),.loading-circles[data-v-46b20d22] .circle-item:nth-child(6){-webkit-animation-delay:.465s;animation-delay:.465s}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(7),.loading-circles[data-v-46b20d22] .circle-item:nth-child(7){-webkit-animation-delay:.558s;animation-delay:.558s}.loading-bubbles[data-v-46b20d22] .bubble-item:last-child,.loading-circles[data-v-46b20d22] .circle-item:last-child{-webkit-animation-delay:.651s;animation-delay:.651s}',""])},function(e,t,n){"use strict";n.r(t);var r=n(2);for(var o in r)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(o)},function(e,t,n){(e.exports=n(1)(!1)).push([e.i,".infinite-loading-container[data-v-670d0042]{clear:both;text-align:center}.infinite-loading-container[data-v-670d0042] [class^=loading-]{display:inline-block;margin:5px 0;width:28px;height:28px;font-size:28px;line-height:28px;border-radius:50%}.btn-try-infinite[data-v-670d0042]{margin-top:5px;padding:5px 10px;color:#999;font-size:14px;line-height:1;background:transparent;border:1px solid #ccc;border-radius:3px;outline:none;cursor:pointer}.btn-try-infinite[data-v-670d0042]:not(:active):hover{opacity:.8}",""])},function(e,t,n){"use strict";n.r(t);var r={throttleLimit:50,loopCheckTimeout:1e3,loopCheckMaxCalls:10},o=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){return e={passive:!0},!0}});window.addEventListener("testpassive",t,t),window.remove("testpassive",t,t)}catch(e){}return e}(),a={STATE_CHANGER:["emit `loaded` and `complete` event through component instance of `$refs` may cause error, so it will be deprecated soon, please use the `$state` argument instead (`$state` just the special `$event` variable):","\ntemplate:",'<infinite-loading @infinite="infiniteHandler"></infinite-loading>',"\nscript:\n...\ninfiniteHandler($state) {\n  ajax('https://www.example.com/api/news')\n    .then((res) => {\n      if (res.data.length) {\n        $state.loaded();\n      } else {\n        $state.complete();\n      }\n    });\n}\n...","","more details: https://github.com/PeachScript/vue-infinite-loading/issues/57#issuecomment-324370549"].join("\n"),INFINITE_EVENT:"`:on-infinite` property will be deprecated soon, please use `@infinite` event instead.",IDENTIFIER:"the `reset` event will be deprecated soon, please reset this component by change the `identifier` property."},i={INFINITE_LOOP:["executed the callback function more than ".concat(r.loopCheckMaxCalls," times for a short time, it looks like searched a wrong scroll wrapper that doest not has fixed height or maximum height, please check it. If you want to force to set a element as scroll wrapper ranther than automatic searching, you can do this:"),'\n\x3c!-- add a special attribute for the real scroll wrapper --\x3e\n<div infinite-wrapper>\n  ...\n  \x3c!-- set force-use-infinite-wrapper --\x3e\n  <infinite-loading force-use-infinite-wrapper></infinite-loading>\n</div>\nor\n<div class="infinite-wrapper">\n  ...\n  \x3c!-- set force-use-infinite-wrapper as css selector of the real scroll wrapper --\x3e\n  <infinite-loading force-use-infinite-wrapper=".infinite-wrapper"></infinite-loading>\n</div>\n    ',"more details: https://github.com/PeachScript/vue-infinite-loading/issues/55#issuecomment-316934169"].join("\n")},s={READY:0,LOADING:1,COMPLETE:2,ERROR:3},c={color:"#666",fontSize:"14px",padding:"10px 0"},l={mode:"development",props:{spinner:"default",distance:100,forceUseInfiniteWrapper:!1},system:r,slots:{noResults:"No results :(",noMore:"No more data :)",error:"Opps, something went wrong :(",errorBtnText:"Retry",spinner:""},WARNINGS:a,ERRORS:i,STATUS:s},u=n(4),f=n.n(u),d={BUBBLES:{render:function(e){return e("span",{attrs:{class:"loading-bubbles"}},Array.apply(Array,Array(8)).map((function(){return e("span",{attrs:{class:"bubble-item"}})})))}},CIRCLES:{render:function(e){return e("span",{attrs:{class:"loading-circles"}},Array.apply(Array,Array(8)).map((function(){return e("span",{attrs:{class:"circle-item"}})})))}},DEFAULT:{render:function(e){return e("i",{attrs:{class:"loading-default"}})}},SPIRAL:{render:function(e){return e("i",{attrs:{class:"loading-spiral"}})}},WAVEDOTS:{render:function(e){return e("span",{attrs:{class:"loading-wave-dots"}},Array.apply(Array,Array(5)).map((function(){return e("span",{attrs:{class:"wave-item"}})})))}}};function h(e,t,n,r,o,a,i,s){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),a&&(l._scopeId="data-v-"+a),i?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},l._ssrRegister=c):o&&(c=s?function(){o.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,c):[c]}return{exports:e,options:l}}var p=h({name:"Spinner",computed:{spinnerView:function(){return d[(this.$attrs.spinner||"").toUpperCase()]||this.spinnerInConfig},spinnerInConfig:function(){return l.slots.spinner&&"string"==typeof l.slots.spinner?{render:function(){return this._v(l.slots.spinner)}}:"object"===f()(l.slots.spinner)?l.slots.spinner:d[l.props.spinner.toUpperCase()]||d.DEFAULT}}},(function(){var e=this.$createElement;return(this._self._c||e)(this.spinnerView,{tag:"component"})}),[],!1,(function(e){var t=n(5);t.__inject__&&t.__inject__(e)}),"46b20d22",null).exports;function m(e){"production"!==l.mode&&console.warn("[Vue-infinite-loading warn]: ".concat(e))}function _(e){console.error("[Vue-infinite-loading error]: ".concat(e))}var g={timers:[],caches:[],throttle:function(e){var t=this;-1===this.caches.indexOf(e)&&(this.caches.push(e),this.timers.push(setTimeout((function(){e(),t.caches.splice(t.caches.indexOf(e),1),t.timers.shift()}),l.system.throttleLimit)))},reset:function(){this.timers.forEach((function(e){clearTimeout(e)})),this.timers.length=0,this.caches=[]}},b={isChecked:!1,timer:null,times:0,track:function(){var e=this;this.times+=1,clearTimeout(this.timer),this.timer=setTimeout((function(){e.isChecked=!0}),l.system.loopCheckTimeout),this.times>l.system.loopCheckMaxCalls&&(_(i.INFINITE_LOOP),this.isChecked=!0)}},v={key:"_infiniteScrollHeight",getScrollElm:function(e){return e===window?document.documentElement:e},save:function(e){var t=this.getScrollElm(e);t[this.key]=t.scrollHeight},restore:function(e){var t=this.getScrollElm(e);"number"==typeof t[this.key]&&(t.scrollTop=t.scrollHeight-t[this.key]+t.scrollTop),this.remove(t)},remove:function(e){void 0!==e[this.key]&&delete e[this.key]}};function y(e){return e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())}))}function w(e){return e.offsetWidth+e.offsetHeight>0}var x=h({name:"InfiniteLoading",data:function(){return{scrollParent:null,scrollHandler:null,isFirstLoad:!0,status:s.READY,slots:l.slots}},components:{Spinner:p},computed:{isShowSpinner:function(){return this.status===s.LOADING},isShowError:function(){return this.status===s.ERROR},isShowNoResults:function(){return this.status===s.COMPLETE&&this.isFirstLoad},isShowNoMore:function(){return this.status===s.COMPLETE&&!this.isFirstLoad},slotStyles:function(){var e=this,t={};return Object.keys(l.slots).forEach((function(n){var r=y(n);(!e.$slots[r]&&!l.slots[n].render||e.$slots[r]&&!e.$slots[r][0].tag)&&(t[n]=c)})),t}},props:{distance:{type:Number,default:l.props.distance},spinner:String,direction:{type:String,default:"bottom"},forceUseInfiniteWrapper:{type:[Boolean,String],default:l.props.forceUseInfiniteWrapper},identifier:{default:+new Date},webComponentName:{type:[String]},onInfinite:Function},watch:{identifier:function(){this.stateChanger.reset()}},mounted:function(){var e=this;this.$watch("forceUseInfiniteWrapper",(function(){e.scrollParent=e.getScrollParent()}),{immediate:!0}),this.scrollHandler=function(t){e.status===s.READY&&(t&&t.constructor===Event&&w(e.$el)?g.throttle(e.attemptLoad):e.attemptLoad())},setTimeout((function(){e.scrollHandler(),e.scrollParent.addEventListener("scroll",e.scrollHandler,o)}),1),this.$on("$InfiniteLoading:loaded",(function(t){e.isFirstLoad=!1,"top"===e.direction&&e.$nextTick((function(){v.restore(e.scrollParent)})),e.status===s.LOADING&&e.$nextTick(e.attemptLoad.bind(null,!0)),t&&t.target===e||m(a.STATE_CHANGER)})),this.$on("$InfiniteLoading:complete",(function(t){e.status=s.COMPLETE,e.$nextTick((function(){e.$forceUpdate()})),e.scrollParent.removeEventListener("scroll",e.scrollHandler,o),t&&t.target===e||m(a.STATE_CHANGER)})),this.$on("$InfiniteLoading:reset",(function(t){e.status=s.READY,e.isFirstLoad=!0,v.remove(e.scrollParent),e.scrollParent.addEventListener("scroll",e.scrollHandler,o),setTimeout((function(){g.reset(),e.scrollHandler()}),1),t&&t.target===e||m(a.IDENTIFIER)})),this.stateChanger={loaded:function(){e.$emit("$InfiniteLoading:loaded",{target:e})},complete:function(){e.$emit("$InfiniteLoading:complete",{target:e})},reset:function(){e.$emit("$InfiniteLoading:reset",{target:e})},error:function(){e.status=s.ERROR,g.reset()}},this.onInfinite&&m(a.INFINITE_EVENT)},deactivated:function(){this.status===s.LOADING&&(this.status=s.READY),this.scrollParent.removeEventListener("scroll",this.scrollHandler,o)},activated:function(){this.scrollParent.addEventListener("scroll",this.scrollHandler,o)},methods:{attemptLoad:function(e){var t=this;this.status!==s.COMPLETE&&w(this.$el)&&this.getCurrentDistance()<=this.distance?(this.status=s.LOADING,"top"===this.direction&&this.$nextTick((function(){v.save(t.scrollParent)})),"function"==typeof this.onInfinite?this.onInfinite.call(null,this.stateChanger):this.$emit("infinite",this.stateChanger),!e||this.forceUseInfiniteWrapper||b.isChecked||b.track()):this.status===s.LOADING&&(this.status=s.READY)},getCurrentDistance:function(){var e;return e="top"===this.direction?"number"==typeof this.scrollParent.scrollTop?this.scrollParent.scrollTop:this.scrollParent.pageYOffset:this.$el.getBoundingClientRect().top-(this.scrollParent===window?window.innerHeight:this.scrollParent.getBoundingClientRect().bottom),e},getScrollParent:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.$el;return"string"==typeof this.forceUseInfiniteWrapper&&(this.webComponentName&&(t=document.querySelector(this.webComponentName)),e=t?t.shadowRoot.querySelector(this.forceUseInfiniteWrapper):document.querySelector(this.forceUseInfiniteWrapper)),e||("BODY"===n.tagName?e=window:(!this.forceUseInfiniteWrapper&&["scroll","auto"].indexOf(getComputedStyle(n).overflowY)>-1||n.hasAttribute("infinite-wrapper")||n.hasAttribute("data-infinite-wrapper"))&&(e=n)),e||this.getScrollParent(n.parentNode)}},destroyed:function(){!this.status!==s.COMPLETE&&(g.reset(),v.remove(this.scrollParent),this.scrollParent.removeEventListener("scroll",this.scrollHandler,o))}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"infinite-loading-container"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowSpinner,expression:"isShowSpinner"}],staticClass:"infinite-status-prompt",style:e.slotStyles.spinner},[e._t("spinner",[n("spinner",{attrs:{spinner:e.spinner}})],null,{isFirstLoad:e.isFirstLoad})],2),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowNoResults,expression:"isShowNoResults"}],staticClass:"infinite-status-prompt",style:e.slotStyles.noResults},[e._t("no-results",[e.slots.noResults.render?n(e.slots.noResults,{tag:"component"}):[e._v(e._s(e.slots.noResults))]])],2),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowNoMore,expression:"isShowNoMore"}],staticClass:"infinite-status-prompt",style:e.slotStyles.noMore},[e._t("no-more",[e.slots.noMore.render?n(e.slots.noMore,{tag:"component"}):[e._v(e._s(e.slots.noMore))]])],2),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowError,expression:"isShowError"}],staticClass:"infinite-status-prompt",style:e.slotStyles.error},[e._t("error",[e.slots.error.render?n(e.slots.error,{tag:"component",attrs:{trigger:e.attemptLoad}}):[e._v("\n        "+e._s(e.slots.error)+"\n        "),n("br"),e._v(" "),n("button",{staticClass:"btn-try-infinite",domProps:{textContent:e._s(e.slots.errorBtnText)},on:{click:e.attemptLoad}})]],{trigger:e.attemptLoad})],2)])}),[],!1,(function(e){var t=n(7);t.__inject__&&t.__inject__(e)}),"670d0042",null).exports;function k(e){l.mode=e.config.productionTip?"development":"production"}Object.defineProperty(x,"install",{configurable:!1,enumerable:!1,value:function(e,t){Object.assign(l.props,t&&t.props),Object.assign(l.slots,t&&t.slots),Object.assign(l.system,t&&t.system),e.component("infinite-loading",x),k(e)}}),"undefined"!=typeof window&&window.Vue&&(window.Vue.component("infinite-loading",x),k(window.Vue)),t.default=x}])}))},e177:function(e,t,n){var r=n("d039");e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e260:function(e,t,n){"use strict";var r=n("fc6a"),o=n("44d2"),a=n("3f8c"),i=n("69f3"),s=n("7dd0"),c="Array Iterator",l=i.set,u=i.getterFor(c);e.exports=s(Array,"Array",(function(e,t){l(this,{type:c,target:r(e),index:0,kind:t})}),(function(){var e=u(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),a.Arguments=a.Array,o("keys"),o("values"),o("entries")},e2cc:function(e,t,n){var r=n("6eeb");e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},e439:function(e,t,n){var r=n("23e7"),o=n("d039"),a=n("fc6a"),i=n("06cf").f,s=n("83ab"),c=o((function(){i(1)})),l=!s||c;r({target:"Object",stat:!0,forced:l,sham:!s},{getOwnPropertyDescriptor:function(e,t){return i(a(e),t)}})},e538:function(e,t,n){var r=n("b622");t.f=r},e58c:function(e,t,n){"use strict";var r=n("fc6a"),o=n("a691"),a=n("50c4"),i=n("a640"),s=Math.min,c=[].lastIndexOf,l=!!c&&1/[1].lastIndexOf(1,-0)<0,u=i("lastIndexOf"),f=l||!u;e.exports=f?function(e){if(l)return c.apply(this,arguments)||0;var t=r(this),n=a(t.length),i=n-1;for(arguments.length>1&&(i=s(i,o(arguments[1]))),i<0&&(i=n+i);i>=0;i--)if(i in t&&t[i]===e)return i||0;return-1}:c},e667:function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},e6cf:function(e,t,n){"use strict";var r,o,a,i,s=n("23e7"),c=n("c430"),l=n("da84"),u=n("d066"),f=n("fea9"),d=n("6eeb"),h=n("e2cc"),p=n("d2bb"),m=n("d44e"),_=n("2626"),g=n("861d"),b=n("1c0b"),v=n("19aa"),y=n("8925"),w=n("2266"),x=n("1c7e"),k=n("4840"),S=n("2cf4").set,A=n("b575"),M=n("cdf9"),R=n("44de"),E=n("f069"),T=n("e667"),O=n("69f3"),L=n("94ca"),B=n("b622"),I=n("6069"),C=n("605d"),P=n("2d00"),j=B("species"),N="Promise",H=O.get,F=O.set,D=O.getterFor(N),U=f&&f.prototype,V=f,q=U,$=l.TypeError,z=l.document,Y=l.process,X=E.f,G=X,K=!!(z&&z.createEvent&&l.dispatchEvent),W="function"==typeof PromiseRejectionEvent,Z="unhandledrejection",Q="rejectionhandled",J=0,ee=1,te=2,ne=1,re=2,oe=!1,ae=L(N,(function(){var e=y(V),t=e!==String(V);if(!t&&66===P)return!0;if(c&&!q["finally"])return!0;if(P>=51&&/native code/.test(e))return!1;var n=new V((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))},o=n.constructor={};return o[j]=r,oe=n.then((function(){}))instanceof r,!oe||!t&&I&&!W})),ie=ae||!x((function(e){V.all(e)["catch"]((function(){}))})),se=function(e){var t;return!(!g(e)||"function"!=typeof(t=e.then))&&t},ce=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;A((function(){var r=e.value,o=e.state==ee,a=0;while(n.length>a){var i,s,c,l=n[a++],u=o?l.ok:l.fail,f=l.resolve,d=l.reject,h=l.domain;try{u?(o||(e.rejection===re&&de(e),e.rejection=ne),!0===u?i=r:(h&&h.enter(),i=u(r),h&&(h.exit(),c=!0)),i===l.promise?d($("Promise-chain cycle")):(s=se(i))?s.call(i,f,d):f(i)):d(r)}catch(p){h&&!c&&h.exit(),d(p)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&ue(e)}))}},le=function(e,t,n){var r,o;K?(r=z.createEvent("Event"),r.promise=t,r.reason=n,r.initEvent(e,!1,!0),l.dispatchEvent(r)):r={promise:t,reason:n},!W&&(o=l["on"+e])?o(r):e===Z&&R("Unhandled promise rejection",n)},ue=function(e){S.call(l,(function(){var t,n=e.facade,r=e.value,o=fe(e);if(o&&(t=T((function(){C?Y.emit("unhandledRejection",r,n):le(Z,n,r)})),e.rejection=C||fe(e)?re:ne,t.error))throw t.value}))},fe=function(e){return e.rejection!==ne&&!e.parent},de=function(e){S.call(l,(function(){var t=e.facade;C?Y.emit("rejectionHandled",t):le(Q,t,e.value)}))},he=function(e,t,n){return function(r){e(t,r,n)}},pe=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=te,ce(e,!0))},me=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw $("Promise can't be resolved itself");var r=se(t);r?A((function(){var n={done:!1};try{r.call(t,he(me,n,e),he(pe,n,e))}catch(o){pe(n,o,e)}})):(e.value=t,e.state=ee,ce(e,!1))}catch(o){pe({done:!1},o,e)}}};if(ae&&(V=function(e){v(this,V,N),b(e),r.call(this);var t=H(this);try{e(he(me,t),he(pe,t))}catch(n){pe(t,n)}},q=V.prototype,r=function(e){F(this,{type:N,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:J,value:void 0})},r.prototype=h(q,{then:function(e,t){var n=D(this),r=X(k(this,V));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=C?Y.domain:void 0,n.parent=!0,n.reactions.push(r),n.state!=J&&ce(n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r,t=H(e);this.promise=e,this.resolve=he(me,t),this.reject=he(pe,t)},E.f=X=function(e){return e===V||e===a?new o(e):G(e)},!c&&"function"==typeof f&&U!==Object.prototype)){i=U.then,oe||(d(U,"then",(function(e,t){var n=this;return new V((function(e,t){i.call(n,e,t)})).then(e,t)}),{unsafe:!0}),d(U,"catch",q["catch"],{unsafe:!0}));try{delete U.constructor}catch(_e){}p&&p(U,q)}s({global:!0,wrap:!0,forced:ae},{Promise:V}),m(V,N,!1,!0),_(N),a=u(N),s({target:N,stat:!0,forced:ae},{reject:function(e){var t=X(this);return t.reject.call(void 0,e),t.promise}}),s({target:N,stat:!0,forced:c||ae},{resolve:function(e){return M(c&&this===a?V:this,e)}}),s({target:N,stat:!0,forced:ie},{all:function(e){var t=this,n=X(t),r=n.resolve,o=n.reject,a=T((function(){var n=b(t.resolve),a=[],i=0,s=1;w(e,(function(e){var c=i++,l=!1;a.push(void 0),s++,n.call(t,e).then((function(e){l||(l=!0,a[c]=e,--s||r(a))}),o)})),--s||r(a)}));return a.error&&o(a.value),n.promise},race:function(e){var t=this,n=X(t),r=n.reject,o=T((function(){var o=b(t.resolve);w(e,(function(e){o.call(t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},e893:function(e,t,n){var r=n("5135"),o=n("56ef"),a=n("06cf"),i=n("9bf2");e.exports=function(e,t){for(var n=o(t),s=i.f,c=a.f,l=0;l<n.length;l++){var u=n[l];r(e,u)||s(e,u,c(t,u))}}},e8b5:function(e,t,n){var r=n("c6b6");e.exports=Array.isArray||function(e){return"Array"==r(e)}},e91f:function(e,t,n){"use strict";var r=n("ebb5"),o=n("4d64").indexOf,a=r.aTypedArray,i=r.exportTypedArrayMethod;i("indexOf",(function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0)}))},e95a:function(e,t,n){var r=n("b622"),o=n("3f8c"),a=r("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||i[a]===e)}},eb23:function(e,t,n){"use strict";n("0137")},ebb5:function(e,t,n){"use strict";var r,o,a,i=n("a981"),s=n("83ab"),c=n("da84"),l=n("861d"),u=n("5135"),f=n("f5df"),d=n("9112"),h=n("6eeb"),p=n("9bf2").f,m=n("e163"),_=n("d2bb"),g=n("b622"),b=n("90e3"),v=c.Int8Array,y=v&&v.prototype,w=c.Uint8ClampedArray,x=w&&w.prototype,k=v&&m(v),S=y&&m(y),A=Object.prototype,M=A.isPrototypeOf,R=g("toStringTag"),E=b("TYPED_ARRAY_TAG"),T=b("TYPED_ARRAY_CONSTRUCTOR"),O=i&&!!_&&"Opera"!==f(c.opera),L=!1,B={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},I={BigInt64Array:8,BigUint64Array:8},C=function(e){if(!l(e))return!1;var t=f(e);return"DataView"===t||u(B,t)||u(I,t)},P=function(e){if(!l(e))return!1;var t=f(e);return u(B,t)||u(I,t)},j=function(e){if(P(e))return e;throw TypeError("Target is not a typed array")},N=function(e){if(_&&!M.call(k,e))throw TypeError("Target is not a typed array constructor");return e},H=function(e,t,n){if(s){if(n)for(var r in B){var o=c[r];if(o&&u(o.prototype,e))try{delete o.prototype[e]}catch(a){}}S[e]&&!n||h(S,e,n?t:O&&y[e]||t)}},F=function(e,t,n){var r,o;if(s){if(_){if(n)for(r in B)if(o=c[r],o&&u(o,e))try{delete o[e]}catch(a){}if(k[e]&&!n)return;try{return h(k,e,n?t:O&&k[e]||t)}catch(a){}}for(r in B)o=c[r],!o||o[e]&&!n||h(o,e,t)}};for(r in B)o=c[r],a=o&&o.prototype,a?d(a,T,o):O=!1;for(r in I)o=c[r],a=o&&o.prototype,a&&d(a,T,o);if((!O||"function"!=typeof k||k===Function.prototype)&&(k=function(){throw TypeError("Incorrect invocation")},O))for(r in B)c[r]&&_(c[r],k);if((!O||!S||S===A)&&(S=k.prototype,O))for(r in B)c[r]&&_(c[r].prototype,S);if(O&&m(x)!==S&&_(x,S),s&&!u(S,R))for(r in L=!0,p(S,R,{get:function(){return l(this)?this[E]:void 0}}),B)c[r]&&d(c[r],E,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:O,TYPED_ARRAY_CONSTRUCTOR:T,TYPED_ARRAY_TAG:L&&E,aTypedArray:j,aTypedArrayConstructor:N,exportTypedArrayMethod:H,exportTypedArrayStaticMethod:F,isView:C,isTypedArray:P,TypedArray:k,TypedArrayPrototype:S}},f052:function(e,t){function n(e){this.bits=e}e.exports=n},f069:function(e,t,n){"use strict";var r=n("1c0b"),o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},f26d:function(e,t,n){var r=n("a1b7");function o(){this.thm=new r,this.en=new r}e.exports=o},f3b5:function(e,t,n){var r=n("0206"),o=(r.System,r.VbrMode,r.Float,r.ShortBlock,r.Util,r.Arrays,r.new_array_n,r.new_byte,r.new_double,r.new_float),a=(r.new_float_n,r.new_int),i=(r.new_int_n,r.assert,n("9828"));function s(){this.xr=o(576),this.l3_enc=a(576),this.scalefac=a(i.SFBMAX),this.xrpow_max=0,this.part2_3_length=0,this.big_values=0,this.count1=0,this.global_gain=0,this.scalefac_compress=0,this.block_type=0,this.mixed_block_flag=0,this.table_select=a(3),this.subblock_gain=a(4),this.region0_count=0,this.region1_count=0,this.preflag=0,this.scalefac_scale=0,this.count1table_select=0,this.part2_length=0,this.sfb_lmax=0,this.sfb_smin=0,this.psy_lmax=0,this.sfbmax=0,this.psymax=0,this.sfbdivide=0,this.width=a(i.SFBMAX),this.window=a(i.SFBMAX),this.count1bits=0,this.sfb_partition_table=null,this.slen=a(4),this.max_nonzero_coeff=0;var e=this;function t(e){return new Int32Array(e)}function n(e){return new Float32Array(e)}this.assign=function(r){e.xr=n(r.xr),e.l3_enc=t(r.l3_enc),e.scalefac=t(r.scalefac),e.xrpow_max=r.xrpow_max,e.part2_3_length=r.part2_3_length,e.big_values=r.big_values,e.count1=r.count1,e.global_gain=r.global_gain,e.scalefac_compress=r.scalefac_compress,e.block_type=r.block_type,e.mixed_block_flag=r.mixed_block_flag,e.table_select=t(r.table_select),e.subblock_gain=t(r.subblock_gain),e.region0_count=r.region0_count,e.region1_count=r.region1_count,e.preflag=r.preflag,e.scalefac_scale=r.scalefac_scale,e.count1table_select=r.count1table_select,e.part2_length=r.part2_length,e.sfb_lmax=r.sfb_lmax,e.sfb_smin=r.sfb_smin,e.psy_lmax=r.psy_lmax,e.sfbmax=r.sfbmax,e.psymax=r.psymax,e.sfbdivide=r.sfbdivide,e.width=t(r.width),e.window=t(r.window),e.count1bits=r.count1bits,e.sfb_partition_table=r.sfb_partition_table.slice(0),e.slen=t(r.slen),e.max_nonzero_coeff=r.max_nonzero_coeff}}e.exports=s},f3e2:function(e,t,n){var r=n("0206"),o=r.System,a=(r.VbrMode,r.Float,r.ShortBlock,r.Util),i=r.Arrays,s=(r.new_array_n,r.new_byte,r.new_double,r.new_float),c=(r.new_float_n,r.new_int,r.new_int_n,r.assert,n("4b5e"));function l(){var e=[-.1482523854003001,32.308141959636465,296.40344946382766,883.1344870032432,11113.947376231741,1057.2713659324597,305.7402417275812,30.825928907280012,3.8533188138216365,59.42900443849514,709.5899960123345,5281.91112291017,-5829.66483675846,-817.6293103748613,-76.91656988279972,-4.594269939176596,.9063471690191471,.1960342806591213,-.15466694054279598,34.324387823855965,301.8067566458425,817.599602898885,11573.795901679885,1181.2520595540152,321.59731579894424,31.232021761053772,3.7107095756221318,53.650946155329365,684.167428119626,5224.56624370173,-6366.391851890084,-908.9766368219582,-89.83068876699639,-5.411397422890401,.8206787908286602,.3901806440322567,-.16070888947830023,36.147034243915876,304.11815768187864,732.7429163887613,11989.60988270091,1300.012278487897,335.28490093152146,31.48816102859945,3.373875931311736,47.232241542899175,652.7371796173471,5132.414255594984,-6909.087078780055,-1001.9990371107289,-103.62185754286375,-6.104916304710272,.7416505462720353,.5805693545089249,-.16636367662261495,37.751650073343995,303.01103387567713,627.9747488785183,12358.763425278165,1412.2779918482834,346.7496836825721,31.598286663170416,3.1598635433980946,40.57878626349686,616.1671130880391,5007.833007176154,-7454.040671756168,-1095.7960341867115,-118.24411666465777,-6.818469345853504,.6681786379192989,.7653668647301797,-.1716176790982088,39.11551877123304,298.3413246578966,503.5259106886539,12679.589408408976,1516.5821921214542,355.9850766329023,31.395241710249053,2.9164211881972335,33.79716964664243,574.8943997801362,4853.234992253242,-7997.57021486075,-1189.7624067269965,-133.6444792601766,-7.7202770609839915,.5993769336819237,.9427934736519954,-.17645823955292173,40.21879108166477,289.9982036694474,359.3226160751053,12950.259102786438,1612.1013903507662,362.85067106591504,31.045922092242872,2.822222032597987,26.988862316190684,529.8996541764288,4671.371946949588,-8535.899136645805,-1282.5898586244496,-149.58553632943463,-8.643494270763135,.5345111359507916,1.111140466039205,-.36174739330527045,41.04429910497807,277.5463268268618,195.6386023135583,13169.43812144731,1697.6433561479398,367.40983966190305,30.557037410382826,2.531473372857427,20.070154905927314,481.50208566532336,4464.970341588308,-9065.36882077239,-1373.62841526722,-166.1660487028118,-9.58289321133207,.4729647758913199,1.268786568327291,-.36970682634889585,41.393213350082036,261.2935935556502,12.935476055240873,13336.131683328815,1772.508612059496,369.76534388639965,29.751323653701338,2.4023193045459172,13.304795348228817,430.5615775526625,4237.0568611071185,-9581.931701634761,-1461.6913552409758,-183.12733958476446,-10.718010163869403,.41421356237309503,1.414213562373095,-.37677560326535325,41.619486213528496,241.05423794991074,-187.94665032361226,13450.063605744153,1836.153896465782,369.4908799925761,29.001847876923147,2.0714759319987186,6.779591200894186,377.7767837205709,3990.386575512536,-10081.709459700915,-1545.947424837898,-200.3762958015653,-11.864482073055006,.3578057213145241,1.546020906725474,-.3829366947518991,41.1516456456653,216.47684307105183,-406.1569483347166,13511.136535077321,1887.8076599260432,367.3025214564151,28.136213436723654,1.913880671464418,.3829366947518991,323.85365704338597,3728.1472257487526,-10561.233882199509,-1625.2025997821418,-217.62525175416,-13.015432208941645,.3033466836073424,1.66293922460509,-.5822628872992417,40.35639251440489,188.20071124269245,-640.2706748618148,13519.21490106562,1927.6022433578062,362.8197642637487,26.968821921868447,1.7463817695935329,-5.62650678237171,269.3016715297017,3453.386536448852,-11016.145278780888,-1698.6569643425091,-234.7658734267683,-14.16351421663124,.2504869601913055,1.76384252869671,-.5887180101749253,39.23429103868072,155.76096234403798,-889.2492977967378,13475.470561874661,1955.0535223723712,356.4450994756727,25.894952980042156,1.5695032905781554,-11.181939564328772,214.80884394039484,3169.1640829158237,-11443.321309975563,-1765.1588461316153,-251.68908574481912,-15.49755935939164,.198912367379658,1.847759065022573,-.7912582233652842,37.39369355329111,119.699486012458,-1151.0956593239027,13380.446257078214,1970.3952110853447,348.01959814116185,24.731487364283044,1.3850130831637748,-16.421408865300393,161.05030052864092,2878.3322807850063,-11838.991423510031,-1823.985884688674,-268.2854986386903,-16.81724543849939,.1483359875383474,1.913880671464418,-.7960642926861912,35.2322109610459,80.01928065061526,-1424.0212633405113,13235.794061869668,1973.804052543835,337.9908651258184,23.289159354463873,1.3934255946442087,-21.099669467133474,108.48348407242611,2583.700758091299,-12199.726194855148,-1874.2780658979746,-284.2467154529415,-18.11369784385905,.09849140335716425,1.961570560806461,-.998795456205172,32.56307803611191,36.958364584370486,-1706.075448829146,13043.287458812016,1965.3831106103316,326.43182772364605,22.175018750622293,1.198638339011324,-25.371248002043963,57.53505923036915,2288.41886619975,-12522.674544337233,-1914.8400385312243,-299.26241273417224,-19.37805630698734,.04912684976946725,1.990369453344394,.035780907*a.SQRT2*.5/2384e-9,.017876148*a.SQRT2*.5/2384e-9,.003134727*a.SQRT2*.5/2384e-9,.002457142*a.SQRT2*.5/2384e-9,971317e-9*a.SQRT2*.5/2384e-9,218868e-9*a.SQRT2*.5/2384e-9,101566e-9*a.SQRT2*.5/2384e-9,13828e-9*a.SQRT2*.5/2384e-9,12804.797818791945,1945.5515939597317,313.4244966442953,20.801593959731544,1995.1556208053692,9.000838926174497,-29.20218120805369],t=12,n=36,r=[[2382191739347913e-28,6423305872147834e-28,9400849094049688e-28,1122435026096556e-27,1183840321267481e-27,1122435026096556e-27,940084909404969e-27,6423305872147839e-28,2382191739347918e-28,5456116108943412e-27,4878985199565852e-27,4240448995017367e-27,3559909094758252e-27,2858043359288075e-27,2156177623817898e-27,1475637723558783e-27,8371015190102974e-28,2599706096327376e-28,-5456116108943412e-27,-4878985199565852e-27,-4240448995017367e-27,-3559909094758252e-27,-2858043359288076e-27,-2156177623817898e-27,-1475637723558783e-27,-8371015190102975e-28,-2599706096327376e-28,-2382191739347923e-28,-6423305872147843e-28,-9400849094049696e-28,-1122435026096556e-27,-1183840321267481e-27,-1122435026096556e-27,-9400849094049694e-28,-642330587214784e-27,-2382191739347918e-28],[2382191739347913e-28,6423305872147834e-28,9400849094049688e-28,1122435026096556e-27,1183840321267481e-27,1122435026096556e-27,9400849094049688e-28,6423305872147841e-28,2382191739347918e-28,5456116108943413e-27,4878985199565852e-27,4240448995017367e-27,3559909094758253e-27,2858043359288075e-27,2156177623817898e-27,1475637723558782e-27,8371015190102975e-28,2599706096327376e-28,-5461314069809755e-27,-4921085770524055e-27,-4343405037091838e-27,-3732668368707687e-27,-3093523840190885e-27,-2430835727329465e-27,-1734679010007751e-27,-974825365660928e-27,-2797435120168326e-28,0,0,0,0,0,0,-2283748241799531e-28,-4037858874020686e-28,-2146547464825323e-28],[.1316524975873958,.414213562373095,.7673269879789602,1.091308501069271,1.303225372841206,1.56968557711749,1.920982126971166,2.414213562373094,3.171594802363212,4.510708503662055,7.595754112725146,22.90376554843115,.984807753012208,.6427876096865394,.3420201433256688,.9396926207859084,-.1736481776669303,-.7660444431189779,.8660254037844387,.5,-.5144957554275265,-.4717319685649723,-.3133774542039019,-.1819131996109812,-.09457419252642064,-.04096558288530405,-.01419856857247115,-.003699974673760037,.8574929257125442,.8817419973177052,.9496286491027329,.9833145924917901,.9955178160675857,.9991605581781475,.999899195244447,.9999931550702802],[0,0,0,0,0,0,2283748241799531e-28,4037858874020686e-28,2146547464825323e-28,5461314069809755e-27,4921085770524055e-27,4343405037091838e-27,3732668368707687e-27,3093523840190885e-27,2430835727329466e-27,1734679010007751e-27,974825365660928e-27,2797435120168326e-28,-5456116108943413e-27,-4878985199565852e-27,-4240448995017367e-27,-3559909094758253e-27,-2858043359288075e-27,-2156177623817898e-27,-1475637723558782e-27,-8371015190102975e-28,-2599706096327376e-28,-2382191739347913e-28,-6423305872147834e-28,-9400849094049688e-28,-1122435026096556e-27,-1183840321267481e-27,-1122435026096556e-27,-9400849094049688e-28,-6423305872147841e-28,-2382191739347918e-28]],l=r[c.SHORT_TYPE],u=r[c.SHORT_TYPE],f=r[c.SHORT_TYPE],d=r[c.SHORT_TYPE],h=[0,1,16,17,8,9,24,25,4,5,20,21,12,13,28,29,2,3,18,19,10,11,26,27,6,7,22,23,14,15,30,31];function p(t,n,r){for(var o,i,s,c=10,l=n+238-14-286,u=-15;u<0;u++){var f,d,h;f=e[c+-10],d=t[l+-224]*f,h=t[n+224]*f,f=e[c+-9],d+=t[l+-160]*f,h+=t[n+160]*f,f=e[c+-8],d+=t[l+-96]*f,h+=t[n+96]*f,f=e[c+-7],d+=t[l+-32]*f,h+=t[n+32]*f,f=e[c+-6],d+=t[l+32]*f,h+=t[n+-32]*f,f=e[c+-5],d+=t[l+96]*f,h+=t[n+-96]*f,f=e[c+-4],d+=t[l+160]*f,h+=t[n+-160]*f,f=e[c+-3],d+=t[l+224]*f,h+=t[n+-224]*f,f=e[c+-2],d+=t[n+-256]*f,h-=t[l+256]*f,f=e[c+-1],d+=t[n+-192]*f,h-=t[l+192]*f,f=e[c+0],d+=t[n+-128]*f,h-=t[l+128]*f,f=e[c+1],d+=t[n+-64]*f,h-=t[l+64]*f,f=e[c+2],d+=t[n+0]*f,h-=t[l+0]*f,f=e[c+3],d+=t[n+64]*f,h-=t[l+-64]*f,f=e[c+4],d+=t[n+128]*f,h-=t[l+-128]*f,f=e[c+5],d+=t[n+192]*f,h-=t[l+-192]*f,d*=e[c+6],f=h-d,r[30+2*u]=h+d,r[31+2*u]=e[c+7]*f,c+=18,n--,l++}h=t[n+-16]*e[c+-10],d=t[n+-32]*e[c+-2],h+=(t[n+-48]-t[n+16])*e[c+-9],d+=t[n+-96]*e[c+-1],h+=(t[n+-80]+t[n+48])*e[c+-8],d+=t[n+-160]*e[c+0],h+=(t[n+-112]-t[n+80])*e[c+-7],d+=t[n+-224]*e[c+1],h+=(t[n+-144]+t[n+112])*e[c+-6],d-=t[n+32]*e[c+2],h+=(t[n+-176]-t[n+144])*e[c+-5],d-=t[n+96]*e[c+3],h+=(t[n+-208]+t[n+176])*e[c+-4],d-=t[n+160]*e[c+4],h+=(t[n+-240]-t[n+208])*e[c+-3],d-=t[n+224],o=d-h,i=d+h,h=r[14],d=r[15]-h,r[31]=i+h,r[30]=o+d,r[15]=o-d,r[14]=i-h,s=r[28]-r[0],r[0]+=r[28],r[28]=s*e[c+-36+7],s=r[29]-r[1],r[1]+=r[29],r[29]=s*e[c+-36+7],s=r[26]-r[2],r[2]+=r[26],r[26]=s*e[c+-72+7],s=r[27]-r[3],r[3]+=r[27],r[27]=s*e[c+-72+7],s=r[24]-r[4],r[4]+=r[24],r[24]=s*e[c+-108+7],s=r[25]-r[5],r[5]+=r[25],r[25]=s*e[c+-108+7],s=r[22]-r[6],r[6]+=r[22],r[22]=s*a.SQRT2,s=r[23]-r[7],r[7]+=r[23],r[23]=s*a.SQRT2-r[7],r[7]-=r[6],r[22]-=r[7],r[23]-=r[22],s=r[6],r[6]=r[31]-s,r[31]=r[31]+s,s=r[7],r[7]=r[30]-s,r[30]=r[30]+s,s=r[22],r[22]=r[15]-s,r[15]=r[15]+s,s=r[23],r[23]=r[14]-s,r[14]=r[14]+s,s=r[20]-r[8],r[8]+=r[20],r[20]=s*e[c+-180+7],s=r[21]-r[9],r[9]+=r[21],r[21]=s*e[c+-180+7],s=r[18]-r[10],r[10]+=r[18],r[18]=s*e[c+-216+7],s=r[19]-r[11],r[11]+=r[19],r[19]=s*e[c+-216+7],s=r[16]-r[12],r[12]+=r[16],r[16]=s*e[c+-252+7],s=r[17]-r[13],r[13]+=r[17],r[17]=s*e[c+-252+7],s=-r[20]+r[24],r[20]+=r[24],r[24]=s*e[c+-216+7],s=-r[21]+r[25],r[21]+=r[25],r[25]=s*e[c+-216+7],s=r[4]-r[8],r[4]+=r[8],r[8]=s*e[c+-216+7],s=r[5]-r[9],r[5]+=r[9],r[9]=s*e[c+-216+7],s=r[0]-r[12],r[0]+=r[12],r[12]=s*e[c+-72+7],s=r[1]-r[13],r[1]+=r[13],r[13]=s*e[c+-72+7],s=r[16]-r[28],r[16]+=r[28],r[28]=s*e[c+-72+7],s=-r[17]+r[29],r[17]+=r[29],r[29]=s*e[c+-72+7],s=a.SQRT2*(r[2]-r[10]),r[2]+=r[10],r[10]=s,s=a.SQRT2*(r[3]-r[11]),r[3]+=r[11],r[11]=s,s=a.SQRT2*(-r[18]+r[26]),r[18]+=r[26],r[26]=s-r[18],s=a.SQRT2*(-r[19]+r[27]),r[19]+=r[27],r[27]=s-r[19],s=r[2],r[19]-=r[3],r[3]-=s,r[2]=r[31]-s,r[31]+=s,s=r[3],r[11]-=r[19],r[18]-=s,r[3]=r[30]-s,r[30]+=s,s=r[18],r[27]-=r[11],r[19]-=s,r[18]=r[15]-s,r[15]+=s,s=r[19],r[10]-=s,r[19]=r[14]-s,r[14]+=s,s=r[10],r[11]-=s,r[10]=r[23]-s,r[23]+=s,s=r[11],r[26]-=s,r[11]=r[22]-s,r[22]+=s,s=r[26],r[27]-=s,r[26]=r[7]-s,r[7]+=s,s=r[27],r[27]=r[6]-s,r[6]+=s,s=a.SQRT2*(r[0]-r[4]),r[0]+=r[4],r[4]=s,s=a.SQRT2*(r[1]-r[5]),r[1]+=r[5],r[5]=s,s=a.SQRT2*(r[16]-r[20]),r[16]+=r[20],r[20]=s,s=a.SQRT2*(r[17]-r[21]),r[17]+=r[21],r[21]=s,s=-a.SQRT2*(r[8]-r[12]),r[8]+=r[12],r[12]=s-r[8],s=-a.SQRT2*(r[9]-r[13]),r[9]+=r[13],r[13]=s-r[9],s=-a.SQRT2*(r[25]-r[29]),r[25]+=r[29],r[29]=s-r[25],s=-a.SQRT2*(r[24]+r[28]),r[24]-=r[28],r[28]=s-r[24],s=r[24]-r[16],r[24]=s,s=r[20]-s,r[20]=s,s=r[28]-s,r[28]=s,s=r[25]-r[17],r[25]=s,s=r[21]-s,r[21]=s,s=r[29]-s,r[29]=s,s=r[17]-r[1],r[17]=s,s=r[9]-s,r[9]=s,s=r[25]-s,r[25]=s,s=r[5]-s,r[5]=s,s=r[21]-s,r[21]=s,s=r[13]-s,r[13]=s,s=r[29]-s,r[29]=s,s=r[1]-r[0],r[1]=s,s=r[16]-s,r[16]=s,s=r[17]-s,r[17]=s,s=r[8]-s,r[8]=s,s=r[9]-s,r[9]=s,s=r[24]-s,r[24]=s,s=r[25]-s,r[25]=s,s=r[4]-s,r[4]=s,s=r[5]-s,r[5]=s,s=r[20]-s,r[20]=s,s=r[21]-s,r[21]=s,s=r[12]-s,r[12]=s,s=r[13]-s,r[13]=s,s=r[28]-s,r[28]=s,s=r[29]-s,r[29]=s,s=r[0],r[0]+=r[31],r[31]-=s,s=r[1],r[1]+=r[30],r[30]-=s,s=r[16],r[16]+=r[15],r[15]-=s,s=r[17],r[17]+=r[14],r[14]-=s,s=r[8],r[8]+=r[23],r[23]-=s,s=r[9],r[9]+=r[22],r[22]-=s,s=r[24],r[24]+=r[7],r[7]-=s,s=r[25],r[25]+=r[6],r[6]-=s,s=r[4],r[4]+=r[27],r[27]-=s,s=r[5],r[5]+=r[26],r[26]-=s,s=r[20],r[20]+=r[11],r[11]-=s,s=r[21],r[21]+=r[10],r[10]-=s,s=r[12],r[12]+=r[19],r[19]-=s,s=r[13],r[13]+=r[18],r[18]-=s,s=r[28],r[28]+=r[3],r[3]-=s,s=r[29],r[29]+=r[2],r[2]-=s}function m(e,t){for(var n=0;n<3;n++){var o,a,i,s,l,u;s=e[t+6]*r[c.SHORT_TYPE][0]-e[t+15],o=e[t+0]*r[c.SHORT_TYPE][2]-e[t+9],a=s+o,i=s-o,s=e[t+15]*r[c.SHORT_TYPE][0]+e[t+6],o=e[t+9]*r[c.SHORT_TYPE][2]+e[t+0],l=s+o,u=-s+o,o=2069978111953089e-26*(e[t+3]*r[c.SHORT_TYPE][1]-e[t+12]),s=2069978111953089e-26*(e[t+12]*r[c.SHORT_TYPE][1]+e[t+3]),e[t+0]=190752519173728e-25*a+o,e[t+15]=190752519173728e-25*-l+s,i=.8660254037844387*i*1907525191737281e-26,l=.5*l*1907525191737281e-26+s,e[t+3]=i-l,e[t+6]=i+l,a=.5*a*1907525191737281e-26-o,u=.8660254037844387*u*1907525191737281e-26,e[t+9]=a+u,e[t+12]=a-u,t++}}function _(e,t,n){var r,o,a,i,s,c,l,f,d,h,p,m,_,g,b,v,y,w;a=n[17]-n[9],s=n[15]-n[11],c=n[14]-n[12],l=n[0]+n[8],f=n[1]+n[7],d=n[2]+n[6],h=n[3]+n[5],e[t+17]=l+d-h-(f-n[4]),o=(l+d-h)*u[19]+(f-n[4]),r=(a-s-c)*u[18],e[t+5]=r+o,e[t+6]=r-o,i=(n[16]-n[10])*u[18],f=f*u[19]+n[4],r=a*u[12]+i+s*u[13]+c*u[14],o=-l*u[16]+f-d*u[17]+h*u[15],e[t+1]=r+o,e[t+2]=r-o,r=a*u[13]-i-s*u[14]+c*u[12],o=-l*u[17]+f-d*u[15]+h*u[16],e[t+9]=r+o,e[t+10]=r-o,r=a*u[14]-i+s*u[12]-c*u[13],o=l*u[15]-f+d*u[16]-h*u[17],e[t+13]=r+o,e[t+14]=r-o,p=n[8]-n[0],_=n[6]-n[2],g=n[5]-n[3],b=n[17]+n[9],v=n[16]+n[10],y=n[15]+n[11],w=n[14]+n[12],e[t+0]=b+y+w+(v+n[13]),r=(b+y+w)*u[19]-(v+n[13]),o=(p-_+g)*u[18],e[t+11]=r+o,e[t+12]=r-o,m=(n[7]-n[1])*u[18],v=n[13]-v*u[19],r=b*u[15]-v+y*u[16]+w*u[17],o=p*u[14]+m+_*u[12]+g*u[13],e[t+3]=r+o,e[t+4]=r-o,r=-b*u[17]+v-y*u[15]-w*u[16],o=p*u[13]+m-_*u[14]-g*u[12],e[t+7]=r+o,e[t+8]=r-o,r=-b*u[16]+v-y*u[17]-w*u[15],o=p*u[12]-m+_*u[13]-g*u[14],e[t+15]=r+o,e[t+16]=r-o}this.mdct_sub48=function(e,a,u){for(var g=a,b=286,v=0;v<e.channels_out;v++){for(var y=0;y<e.mode_gr;y++){for(var w,x=e.l3_side.tt[y][v],k=x.xr,S=0,A=e.sb_sample[v][1-y],M=0,R=0;R<9;R++)for(p(g,b,A[M]),p(g,b+32,A[M+1]),M+=2,b+=64,w=1;w<32;w+=2)A[M-1][w]*=-1;for(w=0;w<32;w++,S+=18){var E=x.block_type,T=e.sb_sample[v][y],O=e.sb_sample[v][1-y];if(0!=x.mixed_block_flag&&w<2&&(E=0),e.amp_filter[w]<1e-12)i.fill(k,S+0,S+18,0);else{if(e.amp_filter[w]<1)for(R=0;R<18;R++)O[R][h[w]]*=e.amp_filter[w];if(E==c.SHORT_TYPE){for(R=-t/4;R<0;R++){var L=r[c.SHORT_TYPE][R+3];k[S+3*R+9]=T[9+R][h[w]]*L-T[8-R][h[w]],k[S+3*R+18]=T[14-R][h[w]]*L+T[15+R][h[w]],k[S+3*R+10]=T[15+R][h[w]]*L-T[14-R][h[w]],k[S+3*R+19]=O[2-R][h[w]]*L+O[3+R][h[w]],k[S+3*R+11]=O[3+R][h[w]]*L-O[2-R][h[w]],k[S+3*R+20]=O[8-R][h[w]]*L+O[9+R][h[w]]}m(k,S)}else{var B=s(18);for(R=-n/4;R<0;R++){var I,C;I=r[E][R+27]*O[R+9][h[w]]+r[E][R+36]*O[8-R][h[w]],C=r[E][R+9]*T[R+9][h[w]]-r[E][R+18]*T[8-R][h[w]],B[R+9]=I-C*l[3+R+9],B[R+18]=I*l[3+R+9]+C}_(k,S,B)}}if(E!=c.SHORT_TYPE&&0!=w)for(R=7;R>=0;--R){var P,j;P=k[S+R]*f[20+R]+k[S+-1-R]*d[28+R],j=k[S+R]*d[28+R]-k[S+-1-R]*f[20+R],k[S+-1-R]=P,k[S+R]=j}}}if(g=u,b=286,1==e.mode_gr)for(var N=0;N<18;N++)o.arraycopy(e.sb_sample[v][1][N],0,e.sb_sample[v][0][N],0,32)}}}e.exports=l},f5df:function(e,t,n){var r=n("00ee"),o=n("c6b6"),a=n("b622"),i=a("toStringTag"),s="Arguments"==o(function(){return arguments}()),c=function(e,t){try{return e[t]}catch(n){}};e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=c(t=Object(e),i))?n:s?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},f772:function(e,t,n){var r=n("5692"),o=n("90e3"),a=r("keys");e.exports=function(e){return a[e]||(a[e]=o(e))}},f8cd:function(e,t,n){var r=n("a691");e.exports=function(e){var t=r(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},fb15:function(e,t,n){"use strict";if(n.r(t),"undefined"!==typeof window){var r=window.document.currentScript,o=n("8875");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var a=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);a&&(n.p=a[1])}n("7a82");var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vac-card-window",style:[{height:e.height},e.cssVars]},[n("div",{staticClass:"vac-chat-container"},[e.singleRoom?e._e():n("rooms-list",{attrs:{"current-user-id":e.currentUserId,rooms:e.orderedRooms,"loading-rooms":e.loadingRooms,"rooms-loaded":e.roomsLoaded,room:e.room,"room-actions":e.roomActions,"text-messages":e.t,"show-search":e.showSearch,"show-add-room":e.showAddRoom,"show-rooms-list":e.showRoomsList,"text-formatting":e.textFormatting,"link-options":e.linkOptions,"is-mobile":e.isMobile},on:{"fetch-room":e.fetchRoom,"fetch-more-rooms":e.fetchMoreRooms,"loading-more-rooms":function(t){e.loadingMoreRooms=t},"add-room":e.addRoom,"room-action-handler":e.roomActionHandler},scopedSlots:e._u([e._l(e.$scopedSlots,(function(t,n){return{key:n,fn:function(t){return[e._t(n,null,null,t)]}}}))],null,!0)}),n("room",{attrs:{"current-user-id":e.currentUserId,rooms:e.rooms,"room-id":e.room.roomId||"","load-first-room":e.loadFirstRoom,messages:e.messages,"room-message":e.roomMessage,"messages-loaded":e.messagesLoaded,"menu-actions":e.menuActions,"message-actions":e.messageActions,"show-send-icon":e.showSendIcon,"show-files":e.showFiles,"show-audio":e.showAudio,"show-emojis":e.showEmojis,"show-reaction-emojis":e.showReactionEmojis,"show-new-messages-divider":e.showNewMessagesDivider,"show-footer":e.showFooter,"text-messages":e.t,"single-room":e.singleRoom,"show-rooms-list":e.showRoomsList,"text-formatting":e.textFormatting,"link-options":e.linkOptions,"is-mobile":e.isMobile,"loading-rooms":e.loadingRooms,"room-info-enabled":e.roomInfoEnabled,"textarea-action-enabled":e.textareaActionEnabled,"accepted-files":e.acceptedFiles},on:{"toggle-rooms-list":e.toggleRoomsList,"room-info":e.roomInfo,"fetch-messages":e.fetchMessages,"send-message":e.sendMessage,"edit-message":e.editMessage,"delete-message":e.deleteMessage,"open-file":e.openFile,"open-user-tag":e.openUserTag,"menu-action-handler":e.menuActionHandler,"message-action-handler":e.messageActionHandler,"send-message-reaction":e.sendMessageReaction,"typing-message":e.typingMessage,"textarea-action-handler":e.textareaActionHandler},scopedSlots:e._u([e._l(e.$scopedSlots,(function(t,n){return{key:n,fn:function(t){return[e._t(n,null,null,t)]}}}))],null,!0)})],1)])},s=[];n("b64b"),n("a4d3"),n("4de4"),n("e439"),n("4160"),n("159b"),n("dbb4"),n("1d1c");function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}n("a9e3"),n("d81d"),n("4e82"),n("fb6a"),n("7db0"),n("4fad");var f=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.showRoomsList,expression:"showRoomsList"}],staticClass:"vac-rooms-container vac-app-border-r",class:{"vac-rooms-container-full":e.isMobile}},[e._t("rooms-header"),e._t("rooms-list-search",(function(){return[n("rooms-search",{attrs:{rooms:e.rooms,"loading-rooms":e.loadingRooms,"text-messages":e.textMessages,"show-search":e.showSearch,"show-add-room":e.showAddRoom},on:{"search-room":e.searchRoom,"add-room":function(t){return e.$emit("add-room")}},scopedSlots:e._u([e._l(e.$scopedSlots,(function(t,n){return{key:n,fn:function(t){return[e._t(n,null,null,t)]}}}))],null,!0)})]})),n("loader",{attrs:{show:e.loadingRooms}}),e.loadingRooms||e.rooms.length?e._e():n("div",{staticClass:"vac-rooms-empty"},[e._t("rooms-empty",(function(){return[e._v(" "+e._s(e.textMessages.ROOMS_EMPTY)+" ")]}))],2),e.loadingRooms?e._e():n("div",{staticClass:"vac-room-list"},[e._l(e.filteredRooms,(function(t){return n("div",{key:t.roomId,staticClass:"vac-room-item",class:{"vac-room-selected":e.selectedRoomId===t.roomId},attrs:{id:t.roomId},on:{click:function(n){return e.openRoom(t)}}},[n("room-content",{attrs:{"current-user-id":e.currentUserId,room:t,"text-formatting":e.textFormatting,"link-options":e.linkOptions,"text-messages":e.textMessages,"room-actions":e.roomActions},on:{"room-action-handler":function(t){return e.$emit("room-action-handler",t)}},scopedSlots:e._u([e._l(e.$scopedSlots,(function(t,n){return{key:n,fn:function(t){return[e._t(n,null,null,t)]}}}))],null,!0)})],1)})),n("transition",{attrs:{name:"vac-fade-message"}},[e.rooms.length&&!e.loadingRooms?n("infinite-loading",{attrs:{"force-use-infinite-wrapper":".vac-room-list","web-component-name":"vue-advanced-chat",spinner:"spiral"},on:{infinite:e.loadMoreRooms},scopedSlots:e._u([{key:"spinner",fn:function(){return[n("loader",{attrs:{show:!0,infinite:!0}})]},proxy:!0},{key:"no-results",fn:function(){return[n("div")]},proxy:!0},{key:"no-more",fn:function(){return[n("div")]},proxy:!0}],null,!1,3407458732)}):e._e()],1)],2)],2)},d=[],h=n("e166"),p=n.n(h),m=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"vac-fade-spinner",appear:""}},[e.show?n("div",{staticClass:"vac-loader-wrapper",class:{"vac-container-center":!e.infinite,"vac-container-top":e.infinite}},[n("div",{attrs:{id:"vac-circle"}})]):e._e()])},_=[],g={name:"Loader",props:{show:{type:Boolean,default:!1},infinite:{type:Boolean,default:!1}}},b=g;function v(e,t,n,r,o,a,i,s){var c,l="function"===typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),a&&(l._scopeId="data-v-"+a),i?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},l._ssrRegister=c):o&&(c=s?function(){o.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,c):[c]}return{exports:e,options:l}}var y,w=v(b,m,_,!1,null,null,null),x=w.exports,k=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:{"vac-box-search":e.showSearchBar,"vac-box-empty":!e.showSearchBar}},[e.showSearch?[!e.loadingRooms&&e.rooms.length?n("div",{staticClass:"vac-icon-search"},[e._t("search-icon",(function(){return[n("svg-icon",{attrs:{name:"search"}})]}))],2):e._e(),!e.loadingRooms&&e.rooms.length?n("input",{staticClass:"vac-input",attrs:{type:"search",placeholder:e.textMessages.SEARCH,autocomplete:"off"},on:{input:function(t){return e.$emit("search-room",t)}}}):e._e()]:e._e(),e.showAddRoom?n("div",{staticClass:"vac-svg-button vac-add-icon",on:{click:function(t){return e.$emit("add-room")}}},[e._t("add-icon",(function(){return[n("svg-icon",{attrs:{name:"add"}})]}))],2):e._e()],2)},S=[],A=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",width:"24",height:"24",viewBox:"0 0 "+e.size+" "+e.size}},[n("path",{attrs:{id:e.svgId,d:e.svgItem[e.name].path}}),e.svgItem[e.name].path2?n("path",{attrs:{id:e.svgId,d:e.svgItem[e.name].path2}}):e._e()])},M=[],R=(n("99af"),n("b0c0"),{name:"SvgIcon",props:{name:{type:String,default:null},param:{type:String,default:null}},data:function(){return{svgItem:{search:{path:"M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z"},add:{path:"M17,13H13V17H11V13H7V11H11V7H13V11H17M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},toggle:{path:"M5,13L9,17L7.6,18.42L1.18,12L7.6,5.58L9,7L5,11H21V13H5M21,6V8H11V6H21M21,16V18H11V16H21Z"},menu:{path:"M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z"},close:{path:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"},file:{path:"M14,17H7V15H14M17,13H7V11H17M17,9H7V7H17M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z"},paperclip:{path:"M16.5,6V17.5A4,4 0 0,1 12.5,21.5A4,4 0 0,1 8.5,17.5V5A2.5,2.5 0 0,1 11,2.5A2.5,2.5 0 0,1 13.5,5V15.5A1,1 0 0,1 12.5,16.5A1,1 0 0,1 11.5,15.5V6H10V15.5A2.5,2.5 0 0,0 12.5,18A2.5,2.5 0 0,0 15,15.5V5A4,4 0 0,0 11,1A4,4 0 0,0 7,5V17.5A5.5,5.5 0 0,0 12.5,23A5.5,5.5 0 0,0 18,17.5V6H16.5Z"},"close-outline":{path:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"},send:{path:"M2,21L23,12L2,3V10L17,12L2,14V21Z"},emoji:{path:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5zm-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11zm3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5z"},document:{path:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"},pencil:{path:"M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z"},checkmark:{path:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"},"double-checkmark":{path:"M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.41z"},eye:{path:"M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z"},dropdown:{path:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"},deleted:{path:"M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M12,4A8,8 0 0,0 4,12C4,13.85 4.63,15.55 5.68,16.91L16.91,5.68C15.55,4.63 13.85,4 12,4M12,20A8,8 0 0,0 20,12C20,10.15 19.37,8.45 18.32,7.09L7.09,18.32C8.45,19.37 10.15,20 12,20Z"},microphone:{size:"large",path:"M432.8,216.4v39.2c0,45.2-15.3,84.3-45.2,118.4c-29.8,33.2-67.3,52.8-111.6,57.9v40.9h78.4c5.1,0,10.2,1.7,13.6,6c4.3,4.3,6,8.5,6,13.6c0,5.1-1.7,10.2-6,13.6c-4.3,4.3-8.5,6-13.6,6H157.6c-5.1,0-10.2-1.7-13.6-6c-4.3-4.3-6-8.5-6-13.6c0-5.1,1.7-10.2,6-13.6c4.3-4.3,8.5-6,13.6-6H236v-40.9c-44.3-5.1-81.8-23.9-111.6-57.9s-45.2-73.3-45.2-118.4v-39.2c0-5.1,1.7-10.2,6-13.6c4.3-4.3,8.5-6,13.6-6s10.2,1.7,13.6,6c4.3,4.3,6,8.5,6,13.6v39.2c0,37.5,13.6,70.7,40,97.1s59.6,40,97.1,40s70.7-13.6,97.1-40c26.4-26.4,40-59.6,40-97.1v-39.2c0-5.1,1.7-10.2,6-13.6c4.3-4.3,8.5-6,13.6-6c5.1,0,10.2,1.7,13.6,6C430.2,206.2,432.8,211.3,432.8,216.4z M353.5,98v157.6c0,27.3-9.4,50.3-29,69c-19.6,19.6-42.6,29-69,29s-50.3-9.4-69-29c-19.6-19.6-29-42.6-29-69V98c0-27.3,9.4-50.3,29-69c19.6-19.6,42.6-29,69-29s50.3,9.4,69,29C344.2,47.7,353.5,71.6,353.5,98z"},"audio-play":{size:"medium",path:"M43.331,21.237L7.233,0.397c-0.917-0.529-2.044-0.529-2.96,0c-0.916,0.528-1.48,1.505-1.48,2.563v41.684   c0,1.058,0.564,2.035,1.48,2.563c0.458,0.268,0.969,0.397,1.48,0.397c0.511,0,1.022-0.133,1.48-0.397l36.098-20.84   c0.918-0.529,1.479-1.506,1.479-2.564S44.247,21.767,43.331,21.237z"},"audio-pause":{size:"medium",path:"M17.991,40.976c0,3.662-2.969,6.631-6.631,6.631l0,0c-3.662,0-6.631-2.969-6.631-6.631V6.631C4.729,2.969,7.698,0,11.36,0l0,0c3.662,0,6.631,2.969,6.631,6.631V40.976z",path2:"M42.877,40.976c0,3.662-2.969,6.631-6.631,6.631l0,0c-3.662,0-6.631-2.969-6.631-6.631V6.631C29.616,2.969,32.585,0,36.246,0l0,0c3.662,0,6.631,2.969,6.631,6.631V40.976z"}}}},computed:{svgId:function(){var e=this.param?"-"+this.param:"";return"vac-icon-".concat(this.name).concat(e)},size:function(){var e=this.svgItem[this.name];return"large"===e.size?512:"medium"===e.size?48:24}}}),E=R,T=v(E,A,M,!1,null,null,null),O=T.exports,L={name:"RoomsSearch",components:{SvgIcon:O},props:{textMessages:{type:Object,required:!0},showSearch:{type:Boolean,required:!0},showAddRoom:{type:Boolean,required:!0},rooms:{type:Array,required:!0},loadingRooms:{type:Boolean,required:!0}},emits:["search-room","add-room"],computed:{showSearchBar:function(){return this.showSearch||this.showAddRoom}}},B=L,I=v(B,k,S,!1,null,null,null),C=I.exports,P=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vac-room-container"},[e._t("room-list-item",(function(){return[e.room.avatar?n("div",{staticClass:"vac-avatar",style:{"background-image":"url('"+e.room.avatar+"')"}}):e._e(),n("div",{staticClass:"vac-name-container vac-text-ellipsis"},[n("div",{staticClass:"vac-title-container"},[e.userStatus?n("div",{staticClass:"vac-state-circle",class:{"vac-state-online":"online"===e.userStatus}}):e._e(),n("div",{staticClass:"vac-room-name vac-text-ellipsis"},[e._v(" "+e._s(e.room.roomName)+" ")]),e.room.lastMessage?n("div",{staticClass:"vac-text-date"},[e._v(" "+e._s(e.room.lastMessage.timestamp)+" ")]):e._e()]),n("div",{staticClass:"vac-text-last",class:{"vac-message-new":e.room.lastMessage&&e.room.lastMessage.new&&!e.typingUsers}},[e.isMessageCheckmarkVisible?n("span",[e._t("checkmark-icon",(function(){return[n("svg-icon",{staticClass:"vac-icon-check",attrs:{name:e.room.lastMessage.distributed?"double-checkmark":"checkmark",param:e.room.lastMessage.seen?"seen":""}})]}),null,e.room.lastMessage)],2):e._e(),e.room.lastMessage&&!e.room.lastMessage.deleted&&e.isAudio?n("div",{staticClass:"vac-text-ellipsis"},[e._t("microphone-icon",(function(){return[n("svg-icon",{staticClass:"vac-icon-microphone",attrs:{name:"microphone"}})]})),e._v(" "+e._s(e.formattedDuration)+" ")],2):e.room.lastMessage?n("format-message",{attrs:{content:e.getLastMessage,deleted:!!e.room.lastMessage.deleted&&!e.typingUsers,users:e.room.users,linkify:!1,"text-formatting":e.textFormatting,"link-options":e.linkOptions,"single-line":!0},scopedSlots:e._u([{key:"deleted-icon",fn:function(t){return[e._t("deleted-icon",null,null,t)]}}],null,!0)}):e._e(),!e.room.lastMessage&&e.typingUsers?n("div",{staticClass:"vac-text-ellipsis"},[e._v(" "+e._s(e.typingUsers)+" ")]):e._e(),n("div",{staticClass:"vac-room-options-container"},[e.room.unreadCount?n("div",{staticClass:"vac-badge-counter vac-room-badge"},[e._v(" "+e._s(e.room.unreadCount)+" ")]):e._e(),e._t("room-list-options",(function(){return[e.roomActions.length?n("div",{staticClass:"vac-svg-button vac-list-room-options",on:{click:function(t){t.stopPropagation(),e.roomMenuOpened=e.room.roomId}}},[e._t("room-list-options-icon",(function(){return[n("svg-icon",{attrs:{name:"dropdown",param:"room"}})]}))],2):e._e(),e.roomActions.length?n("transition",{attrs:{name:"vac-slide-left"}},[e.roomMenuOpened===e.room.roomId?n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.closeRoomMenu,expression:"closeRoomMenu"}],staticClass:"vac-menu-options"},[n("div",{staticClass:"vac-menu-list"},e._l(e.roomActions,(function(t){return n("div",{key:t.name},[n("div",{staticClass:"vac-menu-item",on:{click:function(n){return n.stopPropagation(),e.roomActionHandler(t)}}},[e._v(" "+e._s(t.title)+" ")])])})),0)]):e._e()]):e._e()]}),null,{room:e.room})],2)],1)])]}),null,{room:e.room})],2)},j=[],N=n("c28b"),H=n.n(N),F=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vac-format-message-wrapper",class:{"vac-text-ellipsis":e.singleLine}},[e.textFormatting?n("div",{class:{"vac-text-ellipsis":e.singleLine}},e._l(e.linkifiedMessage,(function(t,r){return n("div",{key:r,staticClass:"vac-format-container"},[n(t.url?"a":"span",{tag:"component",class:{"vac-text-ellipsis":e.singleLine,"vac-text-bold":t.bold,"vac-text-italic":e.deleted||t.italic,"vac-text-strike":t.strike,"vac-text-underline":t.underline,"vac-text-inline-code":!e.singleLine&&t.inline,"vac-text-multiline-code":!e.singleLine&&t.multiline,"vac-text-tag":!e.singleLine&&!e.reply&&t.tag},attrs:{href:t.href,target:t.href?e.linkOptions.target:null},on:{click:function(n){return e.openTag(t)}}},[e._t("deleted-icon",(function(){return[e.deleted?n("svg-icon",{staticClass:"vac-icon-deleted",attrs:{name:"deleted"}}):e._e()]}),null,{deleted:e.deleted}),t.url&&t.image?[n("div",{staticClass:"vac-image-link-container"},[n("div",{staticClass:"vac-image-link",style:{"background-image":"url('"+t.value+"')",height:t.height}})]),n("div",{staticClass:"vac-image-link-message"},[n("span",[e._v(e._s(t.value))])])]:[n("span",[e._v(e._s(t.value))])]],2)],1)})),0):n("div",[e._v(" "+e._s(e.formattedContent)+" ")])])},D=[],U=(n("cc71"),n("c5d0"),n("2315"),n("c975"),n("baa5"),n("45fc"),n("caad"),n("2532"),n("ac1f"),n("5319"),n("466d"),n("4d63"),n("25f0"),n("74fe")),V=function(e,t){var n=z(e),r=Y(n),o=[].concat.apply([],r);return t&&G(o),o},q={bold:"*",italic:"_",strike:"~",underline:"°"},$=(y={},c(y,q.bold,{end:"\\"+[q.bold],allowed_chars:".",type:"bold"}),c(y,q.italic,{end:[q.italic],allowed_chars:".",type:"italic"}),c(y,q.strike,{end:[q.strike],allowed_chars:".",type:"strike"}),c(y,q.underline,{end:[q.underline],allowed_chars:".",type:"underline"}),c(y,"```",{end:"```",allowed_chars:"(.|\n)",type:"multiline-code"}),c(y,"`",{end:"`",allowed_chars:".",type:"inline-code"}),c(y,"<usertag>",{allowed_chars:".",end:"</usertag>",type:"tag"}),y);function z(e){var t=[],n=-1,r=null,o=U.find(e),a=!1;if(o.length>0&&(n=e.indexOf(o[0].value),a=!0),Object.keys($).forEach((function(t){var o=e.indexOf(t);o>=0&&(n<0||o<n)&&(n=o,r=t,a=!1)})),a&&-1!==r){var i=e.substr(0,n),s=e.substr(n,o[0].value.length),c=e.substr(n+o[0].value.length);return t.push(i),t.push(s),t=t.concat(z(c)),t}if(r){var l=e.substr(0,n),u=r,f=e.substr(n+u.length);if(e.replace(/\s/g,"").length===2*u.length)return[e];var d=f.match(new RegExp("^("+($[u].allowed_chars||".")+"*"+($[u].end?"?":"")+")"+($[u].end?"("+$[u].end+")":""),"m"));if(d&&d[1]){l&&t.push(l);var h={start:u,content:z(d[1]),end:d[2],type:$[u].type};t.push(h),f=f.substr(d[0].length)}else l+=u,t.push(l);return t=t.concat(z(f)),t}return e?[e]:[]}function Y(e){var t=[];return e.forEach((function(e){"string"===typeof e?t.push({types:[],value:e}):$[e.start]&&t.push(X(e))})),t}function X(e){var t=[];return e.content.forEach((function(n){"string"===typeof n?t.push({types:[e.type],value:n}):n.content.forEach((function(r){"string"===typeof r?t.push({types:[n.type].concat([e.type]),value:r}):t.push({types:[r.type].concat([n.type]).concat([e.type]),value:X(r)})}))})),t}function G(e){var t=[];return e.forEach((function(e){var n=U.find(e.value);if(n.length){var r=e.value.replace(n[0].value,"");t.push({types:e.types,value:r}),e.types=["url"].concat(e.types),e.href=n[0].href,e.value=n[0].value}t.push(e)})),t}var K=n("c9d9"),W={name:"FormatMessage",components:{SvgIcon:O},props:{content:{type:[String,Number],required:!0},deleted:{type:Boolean,default:!1},users:{type:Array,default:function(){return[]}},linkify:{type:Boolean,default:!0},singleLine:{type:Boolean,default:!1},reply:{type:Boolean,default:!1},textFormatting:{type:Boolean,required:!0},linkOptions:{type:Object,required:!0}},emits:["open-user-tag"],computed:{linkifiedMessage:function(){var e=this,t=V(this.formatTags(this.content),this.linkify&&!this.linkOptions.disabled,this.linkOptions);return t.forEach((function(t){t.url=e.checkType(t,"url"),t.bold=e.checkType(t,"bold"),t.italic=e.checkType(t,"italic"),t.strike=e.checkType(t,"strike"),t.underline=e.checkType(t,"underline"),t.inline=e.checkType(t,"inline-code"),t.multiline=e.checkType(t,"multiline-code"),t.tag=e.checkType(t,"tag"),t.image=e.checkImageType(t)})),t},formattedContent:function(){return this.formatTags(this.content)}},methods:{checkType:function(e,t){return-1!==e.types.indexOf(t)},checkImageType:function(e){var t=e.value.lastIndexOf("."),n=e.value.lastIndexOf("/");n>t&&(t=-1);var r=e.value.substring(t+1,e.value.length),o=t>0&&K["b"].some((function(e){return r.toLowerCase().includes(e)}));return o&&this.setImageSize(e),o},setImageSize:function(e){var t=new Image;function n(r){var o=r.path[0].width/150;e.height=Math.round(r.path[0].height/o)+"px",t.removeEventListener("load",n)}t.src=e.value,t.addEventListener("load",n)},formatTags:function(e){return this.users.forEach((function(t){var n=e.indexOf(t._id),r="<usertag>"===e.substring(n-9,n);r&&(e=e.replace(t._id,"@".concat(t.username)))})),e},openTag:function(e){if(!this.singleLine&&this.checkType(e,"tag")){var t=this.users.find((function(t){return-1!==e.value.indexOf(t.username)}));this.$emit("open-user-tag",t)}}}},Z=W,Q=v(Z,F,D,!1,null,null,null),J=Q.exports,ee=(n("a15b"),function(e,t,n){if(e.typingUsers&&e.typingUsers.length){var r=e.users.filter((function(n){if(n._id!==t&&-1!==e.typingUsers.indexOf(n._id)&&(!n.status||"offline"!==n.status.state))return!0}));if(!r.length)return;return 2===e.users.length?n.IS_TYPING:r.map((function(e){return e.username})).join(", ")+" "+n.IS_TYPING}}),te=n("bd43"),ne=te.isAudioFile,re={name:"RoomsContent",components:{SvgIcon:O,FormatMessage:J},directives:{clickOutside:H.a.directive},props:{currentUserId:{type:[String,Number],required:!0},room:{type:Object,required:!0},textFormatting:{type:Boolean,required:!0},linkOptions:{type:Object,required:!0},textMessages:{type:Object,required:!0},roomActions:{type:Array,required:!0}},emits:["room-action-handler"],data:function(){return{roomMenuOpened:null}},computed:{getLastMessage:function(){var e=this,t=this.typingUsers;if(t)return t;var n=this.room.lastMessage.deleted?this.textMessages.MESSAGE_DELETED:this.room.lastMessage.content;if(this.room.users.length<=2)return n;var r=this.room.users.find((function(t){return t._id===e.room.lastMessage.senderId}));return this.room.lastMessage.username?"".concat(this.room.lastMessage.username," - ").concat(n):r&&r._id!==this.currentUserId?"".concat(r.username," - ").concat(n):n},userStatus:function(){var e=this;if(this.room.users&&2===this.room.users.length){var t=this.room.users.find((function(t){return t._id!==e.currentUserId}));return t&&t.status?t.status.state:null}},typingUsers:function(){return ee(this.room,this.currentUserId,this.textMessages)},isMessageCheckmarkVisible:function(){return!this.typingUsers&&this.room.lastMessage&&!this.room.lastMessage.deleted&&this.room.lastMessage.senderId===this.currentUserId&&(this.room.lastMessage.saved||this.room.lastMessage.distributed||this.room.lastMessage.seen)},formattedDuration:function(){var e=this.room.lastMessage.files[0];if(!e.duration)return"".concat(e.name,".").concat(e.extension);var t=Math.floor(e.duration);return(t-(t%=60))/60+(t>9?":":":0")+t},isAudio:function(){return!!this.room.lastMessage.files&&ne(this.room.lastMessage.files[0])}},methods:{roomActionHandler:function(e){this.closeRoomMenu(),this.$emit("room-action-handler",{action:e,roomId:this.room.roomId})},closeRoomMenu:function(){this.roomMenuOpened=null}}},oe=re,ae=v(oe,P,j,!1,null,null,null),ie=ae.exports,se=(n("2ca0"),function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return n&&""!==n?e.filter((function(e){return r?ce(e[t]).startsWith(ce(n)):ce(e[t]).includes(ce(n))})):e});function ce(e){return e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"")}var le={name:"RoomsList",components:{InfiniteLoading:p.a,Loader:x,RoomsSearch:C,RoomContent:ie},props:{currentUserId:{type:[String,Number],required:!0},textMessages:{type:Object,required:!0},showRoomsList:{type:Boolean,required:!0},showSearch:{type:Boolean,required:!0},showAddRoom:{type:Boolean,required:!0},textFormatting:{type:Boolean,required:!0},linkOptions:{type:Object,required:!0},isMobile:{type:Boolean,required:!0},rooms:{type:Array,required:!0},loadingRooms:{type:Boolean,required:!0},roomsLoaded:{type:Boolean,required:!0},room:{type:Object,required:!0},roomActions:{type:Array,required:!0}},emits:["add-room","room-action-handler","loading-more-rooms","fetch-room","fetch-more-rooms"],data:function(){return{filteredRooms:this.rooms||[],infiniteState:null,loadingMoreRooms:!1,selectedRoomId:""}},watch:{rooms:{deep:!0,handler:function(e,t){this.filteredRooms=e,this.infiniteState&&(e.length!==t.length||this.roomsLoaded)&&(this.infiniteState.loaded(),this.loadingMoreRooms=!1)}},loadingRooms:function(e){e&&(this.infiniteState=null)},loadingMoreRooms:function(e){this.$emit("loading-more-rooms",e)},roomsLoaded:function(e){e&&this.infiniteState&&(this.loadingMoreRooms=!1,this.infiniteState.complete())},room:{immediate:!0,handler:function(e){e&&!this.isMobile&&(this.selectedRoomId=e.roomId)}}},methods:{searchRoom:function(e){this.filteredRooms=se(this.rooms,"roomName",e.target.value)},openRoom:function(e){(e.roomId!==this.room.roomId||this.isMobile)&&(this.isMobile||(this.selectedRoomId=e.roomId),this.$emit("fetch-room",{room:e}))},loadMoreRooms:function(e){if(!this.loadingMoreRooms){if(this.roomsLoaded)return this.loadingMoreRooms=!1,e.complete();this.infiniteState=e,this.$emit("fetch-more-rooms"),this.loadingMoreRooms=!0}}}},ue=le,fe=v(ue,f,d,!1,null,null,null),de=fe.exports,he=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.isMobile&&!e.showRoomsList||!e.isMobile||e.singleRoom,expression:"(isMobile && !showRoomsList) || !isMobile || singleRoom"}],staticClass:"vac-col-messages",on:{touchstart:e.touchStart}},[e.showNoRoom?e._t("no-room-selected",(function(){return[n("div",{staticClass:"vac-container-center vac-room-empty"},[n("div",[e._v(e._s(e.textMessages.ROOM_EMPTY))])])]})):n("room-header",{attrs:{"current-user-id":e.currentUserId,"text-messages":e.textMessages,"single-room":e.singleRoom,"show-rooms-list":e.showRoomsList,"is-mobile":e.isMobile,"room-info-enabled":e.roomInfoEnabled,"menu-actions":e.menuActions,room:e.room},on:{"toggle-rooms-list":function(t){return e.$emit("toggle-rooms-list")},"room-info":function(t){return e.$emit("room-info")},"menu-action-handler":function(t){return e.$emit("menu-action-handler",t)}},scopedSlots:e._u([e._l(e.$scopedSlots,(function(t,n){return{key:n,fn:function(t){return[e._t(n,null,null,t)]}}}))],null,!0)}),n("div",{ref:"scrollContainer",staticClass:"vac-container-scroll",on:{scroll:e.onContainerScroll}},[n("loader",{attrs:{show:e.loadingMessages}}),n("div",{staticClass:"vac-messages-container"},[n("div",{class:{"vac-messages-hidden":e.loadingMessages}},[n("transition",{attrs:{name:"vac-fade-message"}},[n("div",[e.showNoMessages?n("div",{staticClass:"vac-text-started"},[e._t("messages-empty",(function(){return[e._v(" "+e._s(e.textMessages.MESSAGES_EMPTY)+" ")]}))],2):e._e(),e.showMessagesStarted?n("div",{staticClass:"vac-text-started"},[e._v(" "+e._s(e.textMessages.CONVERSATION_STARTED)+" "+e._s(e.messages[0].date)+" ")]):e._e()])]),n("transition",{attrs:{name:"vac-fade-message"}},[e.messages.length?n("infinite-loading",{class:{"vac-infinite-loading":!e.messagesLoaded},attrs:{"force-use-infinite-wrapper":".vac-container-scroll","web-component-name":"vue-advanced-chat",spinner:"spiral",direction:"top",distance:40},on:{infinite:e.loadMoreMessages},scopedSlots:e._u([{key:"spinner",fn:function(){return[n("loader",{attrs:{show:!0,infinite:!0}})]},proxy:!0},{key:"no-results",fn:function(){return[n("div")]},proxy:!0},{key:"no-more",fn:function(){return[n("div")]},proxy:!0}],null,!1,3407458732)}):e._e()],1),n("transition-group",{key:e.roomId,attrs:{name:"vac-fade-message",tag:"span"}},e._l(e.messages,(function(t,r){return n("div",{key:t.indexId||t._id},[n("message",{attrs:{"current-user-id":e.currentUserId,message:t,index:r,messages:e.messages,"edited-message":e.editedMessage,"message-actions":e.messageActions,"room-users":e.room.users,"text-messages":e.textMessages,"room-footer-ref":e.$refs.roomFooter,"new-messages":e.newMessages,"show-reaction-emojis":e.showReactionEmojis,"show-new-messages-divider":e.showNewMessagesDivider,"text-formatting":e.textFormatting,"link-options":e.linkOptions,"hide-options":e.hideOptions},on:{"message-added":e.onMessageAdded,"message-action-handler":e.messageActionHandler,"open-file":e.openFile,"open-user-tag":e.openUserTag,"send-message-reaction":e.sendMessageReaction,"hide-options":function(t){e.hideOptions=t}},scopedSlots:e._u([e._l(e.$scopedSlots,(function(t,n){return{key:n,fn:function(t){return[e._t(n,null,null,t)]}}}))],null,!0)})],1)})),0)],1)])],1),e.loadingMessages?e._e():n("div",[n("transition",{attrs:{name:"vac-bounce"}},[e.scrollIcon?n("div",{staticClass:"vac-icon-scroll",on:{click:e.scrollToBottom}},[n("transition",{attrs:{name:"vac-bounce"}},[e.scrollMessagesCount?n("div",{staticClass:"vac-badge-counter vac-messages-count"},[e._v(" "+e._s(e.scrollMessagesCount)+" ")]):e._e()]),e._t("scroll-icon",(function(){return[n("svg-icon",{attrs:{name:"dropdown",param:"scroll"}})]}))],2):e._e()])],1),n("div",{directives:[{name:"show",rawName:"v-show",value:Object.keys(e.room).length&&e.showFooter,expression:"Object.keys(room).length && showFooter"}],ref:"roomFooter",staticClass:"vac-room-footer",class:{"vac-app-box-shadow":e.shadowFooter}},[n("room-emojis",{attrs:{"filtered-emojis":e.filteredEmojis},on:{"select-emoji":function(t){return e.selectEmoji(t)}}}),n("room-users-tag",{attrs:{"filtered-users-tag":e.filteredUsersTag},on:{"select-user-tag":function(t){return e.selectUserTag(t)}}}),n("room-message-reply",{attrs:{room:e.room,"message-reply":e.messageReply,"text-formatting":e.textFormatting,"link-options":e.linkOptions},on:{"reset-message":e.resetMessage},scopedSlots:e._u([e._l(e.$scopedSlots,(function(t,n){return{key:n,fn:function(t){return[e._t(n,null,null,t)]}}}))],null,!0)}),n("room-files",{attrs:{files:e.files},on:{"remove-file":e.removeFile,"reset-message":e.resetMessage},scopedSlots:e._u([e._l(e.$scopedSlots,(function(t,n){return{key:n,fn:function(t){return[e._t(n,null,null,t)]}}}))],null,!0)}),n("div",{staticClass:"vac-box-footer"},[e.showAudio&&!e.files.length?n("div",{staticClass:"vac-icon-textarea-left"},[e.isRecording?[n("div",{staticClass:"vac-svg-button vac-icon-audio-stop",on:{click:e.stopRecorder}},[e._t("audio-stop-icon",(function(){return[n("svg-icon",{attrs:{name:"close-outline"}})]}))],2),n("div",{staticClass:"vac-dot-audio-record"}),n("div",{staticClass:"vac-dot-audio-record-time"},[e._v(" "+e._s(e.recordedTime)+" ")]),n("div",{staticClass:"vac-svg-button vac-icon-audio-confirm",on:{click:function(t){return e.toggleRecorder(!1)}}},[e._t("audio-stop-icon",(function(){return[n("svg-icon",{attrs:{name:"checkmark"}})]}))],2)]:n("div",{staticClass:"vac-svg-button",on:{click:function(t){return e.toggleRecorder(!0)}}},[e._t("microphone-icon",(function(){return[n("svg-icon",{staticClass:"vac-icon-microphone",attrs:{name:"microphone"}})]}))],2)],2):e._e(),n("textarea",{ref:"roomTextarea",staticClass:"vac-textarea",class:{"vac-textarea-outline":e.editedMessage._id},style:{"min-height":"20px","padding-left":"12px"},attrs:{placeholder:e.textMessages.TYPE_MESSAGE},on:{input:e.onChangeInput,keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.escapeTextarea.apply(null,arguments)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")||t.ctrlKey||t.shiftKey||t.altKey||t.metaKey?null:void t.preventDefault()}],paste:e.onPasteImage}}),n("div",{staticClass:"vac-icon-textarea"},[e.editedMessage._id?n("div",{staticClass:"vac-svg-button",on:{click:e.resetMessage}},[e._t("edit-close-icon",(function(){return[n("svg-icon",{attrs:{name:"close-outline"}})]}))],2):e._e(),e.showEmojis?n("emoji-picker-container",{directives:[{name:"click-outside",rawName:"v-click-outside",value:function(){return e.emojiOpened=!1},expression:"() => (emojiOpened = false)"}],attrs:{"emoji-opened":e.emojiOpened,"position-top":!0},on:{"add-emoji":e.addEmoji,"open-emoji":function(t){e.emojiOpened=t}},scopedSlots:e._u([e._l(e.$scopedSlots,(function(t,n){return{key:n,fn:function(t){return[e._t(n,null,null,t)]}}}))],null,!0)}):e._e(),e.showFiles?n("div",{staticClass:"vac-svg-button",on:{click:e.launchFilePicker}},[e._t("paperclip-icon",(function(){return[n("svg-icon",{attrs:{name:"paperclip"}})]}))],2):e._e(),e.textareaActionEnabled?n("div",{staticClass:"vac-svg-button",on:{click:e.textareaActionHandler}},[e._t("custom-action-icon",(function(){return[n("svg-icon",{attrs:{name:"deleted"}})]}))],2):e._e(),e.showFiles?n("input",{ref:"file",staticStyle:{display:"none"},attrs:{type:"file",multiple:"",accept:e.acceptedFiles},on:{change:function(t){return e.onFileChange(t.target.files)}}}):e._e(),e.showSendIcon?n("div",{staticClass:"vac-svg-button",class:{"vac-send-disabled":e.isMessageEmpty},on:{click:e.sendMessage}},[e._t("send-icon",(function(){return[n("svg-icon",{attrs:{name:"send",param:e.isMessageEmpty?"disabled":""}})]}))],2):e._e()],1)])],1)],2)},pe=[];n("277d");function me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _e(e){if(Array.isArray(e))return me(e)}n("e01a"),n("d3b7"),n("d28b"),n("e260"),n("3ca3"),n("ddb0"),n("a630");function ge(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function be(e,t){if(e){if("string"===typeof e)return me(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?me(e,t):void 0}}function ve(){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 ye(e){return _e(e)||ge(e)||be(e)||ve()}n("e6cf");function we(e,t,n,r,o,a,i){try{var s=e[a](i),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(r,o)}function xe(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){we(a,r,o,i,s,"next",e)}function s(e){we(a,r,o,i,s,"throw",e)}i(void 0)}))}}n("96cf"),n("4795"),n("498a"),n("accc"),n("0d03"),n("2b3d"),n("a434"),n("874e");var ke=n("da58"),Se=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vac-emoji-wrapper"},[n("div",{staticClass:"vac-svg-button",class:{"vac-emoji-reaction":e.emojiReaction},on:{click:e.openEmoji}},[e._t("emoji-picker-icon",(function(){return[n("svg-icon",{attrs:{name:"emoji",param:e.emojiReaction?"reaction":""}})]}))],2),e.emojiOpened?[n("transition",{attrs:{name:"vac-slide-up",appear:""}},[n("div",{staticClass:"vac-emoji-picker",class:{"vac-picker-reaction":e.emojiReaction},style:{height:e.emojiPickerHeight+"px",top:e.positionTop?e.emojiPickerHeight:e.emojiPickerTop+"px",right:e.emojiPickerRight,display:e.emojiPickerTop||!e.emojiReaction?"initial":"none"}},[e.emojiOpened?n("emoji-picker",{ref:"emojiPicker"}):e._e()],1)])]:e._e()],2)},Ae=[],Me={name:"EmojiPickerContainer",components:{SvgIcon:O},props:{emojiOpened:{type:Boolean,default:!1},emojiReaction:{type:Boolean,default:!1},roomFooterRef:{type:HTMLDivElement,default:null},positionTop:{type:Boolean,default:!1},positionRight:{type:Boolean,default:!1}},emits:["add-emoji","open-emoji"],data:function(){return{emojiPickerHeight:320,emojiPickerTop:0,emojiPickerRight:""}},watch:{emojiOpened:function(e){var t=this;e&&setTimeout((function(){t.addCustomStyling(),document.querySelector("emoji-picker").addEventListener("emoji-click",(function(e){var n=e.detail;t.$emit("add-emoji",{unicode:n.unicode})}))}),0)}},methods:{addCustomStyling:function(){var e=".picker {\n\t\t\t\tborder: none;\n\t\t\t}",t=".nav {\n\t\t\t\toverflow-x: auto;\n\t\t\t}",n=".search-wrapper {\n\t\t\t\tpadding-right: 2px;\n\t\t\t\tpadding-left: 2px;\n\t\t\t}",r="input.search {\n\t\t\t\theight: 32px;\n\t\t\t\tfont-size: 14px;\n\t\t\t\tborder-radius: 10rem;\n\t\t\t\tborder: var(--chat-border-style);\n\t\t\t\tpadding: 5px 10px;\n\t\t\t\toutline: none;\n\t\t\t\tbackground: var(--chat-bg-color-input);\n\t\t\t\tcolor: var(--chat-color);\n\t\t\t}",o=document.createElement("style");o.textContent=e+t+n+r,this.$refs.emojiPicker.shadowRoot.appendChild(o)},openEmoji:function(e){this.$emit("open-emoji",!this.emojiOpened),this.setEmojiPickerPosition(e.clientY,e.view.innerWidth,e.view.innerHeight)},setEmojiPickerPosition:function(e,t,n){var r=this;setTimeout((function(){var o=t<500||n<700;if(r.roomFooterRef)if(o)r.emojiPickerRight=t/2-150+"px",r.emojiPickerTop=100,r.emojiPickerHeight=n-200;else{var a=r.roomFooterRef.getBoundingClientRect().top,i=a-e>r.emojiPickerHeight-50;r.emojiPickerTop=i?e+10:e-r.emojiPickerHeight-10,r.emojiPickerRight=r.positionTop?"-50px":r.positionRight?"60px":""}else o&&(r.emojiPickerRight="-50px")}))}}},Re=Me,Ee=v(Re,Se,Ae,!1,null,null,null),Te=Ee.exports,Oe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vac-room-header vac-app-border-b"},[e._t("room-header",(function(){return[n("div",{staticClass:"vac-room-wrapper"},[e.singleRoom?e._e():n("div",{staticClass:"vac-svg-button vac-toggle-button",class:{"vac-rotate-icon":!e.showRoomsList&&!e.isMobile},on:{click:function(t){return e.$emit("toggle-rooms-list")}}},[e._t("toggle-icon",(function(){return[n("svg-icon",{attrs:{name:"toggle"}})]}))],2),n("div",{staticClass:"vac-info-wrapper",class:{"vac-item-clickable":e.roomInfoEnabled},on:{click:function(t){return e.$emit("room-info")}}},[e._t("room-header-avatar",(function(){return[e.room.avatar?n("div",{staticClass:"vac-avatar",style:{"background-image":"url('"+e.room.avatar+"')"}}):e._e()]}),null,{room:e.room}),e._t("room-header-info",(function(){return[n("div",{staticClass:"vac-text-ellipsis"},[n("div",{staticClass:"vac-room-name vac-text-ellipsis"},[e._v(" "+e._s(e.room.roomName)+" ")]),e.typingUsers?n("div",{staticClass:"vac-room-info vac-text-ellipsis"},[e._v(" "+e._s(e.typingUsers)+" ")]):n("div",{staticClass:"vac-room-info vac-text-ellipsis"},[e._v(" "+e._s(e.userStatus)+" ")])])]}),null,{room:e.room,typingUsers:e.typingUsers,userStatus:e.userStatus})],2),e.room.roomId?e._t("room-options",(function(){return[e.menuActions.length?n("div",{staticClass:"vac-svg-button vac-room-options",on:{click:function(t){e.menuOpened=!e.menuOpened}}},[e._t("menu-icon",(function(){return[n("svg-icon",{attrs:{name:"menu"}})]}))],2):e._e(),e.menuActions.length?n("transition",{attrs:{name:"vac-slide-left"}},[e.menuOpened?n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.closeMenu,expression:"closeMenu"}],staticClass:"vac-menu-options"},[n("div",{staticClass:"vac-menu-list"},e._l(e.menuActions,(function(t){return n("div",{key:t.name},[n("div",{staticClass:"vac-menu-item",on:{click:function(n){return e.menuActionHandler(t)}}},[e._v(" "+e._s(t.title)+" ")])])})),0)]):e._e()]):e._e()]})):e._e()],2)]}),null,{room:e.room,typingUsers:e.typingUsers,userStatus:e.userStatus})],2)},Le=[],Be={name:"RoomHeader",components:{SvgIcon:O},directives:{clickOutside:H.a.directive},props:{currentUserId:{type:[String,Number],required:!0},textMessages:{type:Object,required:!0},singleRoom:{type:Boolean,required:!0},showRoomsList:{type:Boolean,required:!0},isMobile:{type:Boolean,required:!0},roomInfoEnabled:{type:Boolean,required:!0},menuActions:{type:Array,required:!0},room:{type:Object,required:!0}},emits:["toggle-rooms-list","room-info","menu-action-handler"],data:function(){return{menuOpened:!1}},computed:{typingUsers:function(){return ee(this.room,this.currentUserId,this.textMessages)},userStatus:function(){var e=this;if(this.room.users&&2===this.room.users.length){var t=this.room.users.find((function(t){return t._id!==e.currentUserId}));if(t.status){var n="";return"online"===t.status.state?n=this.textMessages.IS_ONLINE:t.status.lastChanged&&(n=this.textMessages.LAST_SEEN+t.status.lastChanged),n}}}},methods:{menuActionHandler:function(e){this.closeMenu(),this.$emit("menu-action-handler",e)},closeMenu:function(){this.menuOpened=!1}}},Ie=Be,Ce=v(Ie,Oe,Le,!1,null,null,null),Pe=Ce.exports,je=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"vac-slide-up"}},[e.files.length?n("div",{staticClass:"vac-room-files-container",style:{bottom:e.$parent.$refs.roomFooter.clientHeight+"px"}},[n("div",{staticClass:"vac-files-box"},e._l(e.files,(function(t,r){return n("div",{key:r},[n("room-file",{attrs:{file:t,index:r},on:{"remove-file":function(t){return e.$emit("remove-file",t)}}})],1)})),0),n("div",{staticClass:"vac-icon-close"},[n("div",{staticClass:"vac-svg-button",on:{click:function(t){return e.$emit("reset-message")}}},[e._t("reply-close-icon",(function(){return[n("svg-icon",{attrs:{name:"close-outline"}})]}))],2)])]):e._e()])},Ne=[],He=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vac-room-file-container"},[n("div",{staticClass:"vac-svg-button vac-icon-remove",on:{click:function(t){return e.$emit("remove-file",e.index)}}},[e._t("image-close-icon",(function(){return[n("svg-icon",{attrs:{name:"close",param:"image"}})]}))],2),e.isImage?n("div",{staticClass:"vac-message-image",style:{"background-image":"url('"+(e.file.localUrl||e.file.url)+"')"}}):e.isVideo?n("video",{attrs:{controls:""}},[n("source",{attrs:{src:e.file.localUrl||e.file.url}})]):n("div",{staticClass:"vac-file-container"},[n("div",[e._t("file-icon",(function(){return[n("svg-icon",{attrs:{name:"file"}})]}))],2),n("div",{staticClass:"vac-text-ellipsis"},[e._v(" "+e._s(e.file.name)+" ")]),e.file.extension?n("div",{staticClass:"vac-text-ellipsis vac-text-extension"},[e._v(" "+e._s(e.file.extension)+" ")]):e._e()])])},Fe=[],De=n("bd43"),Ue=De.isImageFile,Ve=De.isVideoFile,qe={name:"RoomFiles",components:{SvgIcon:O},props:{file:{type:Object,required:!0},index:{type:Number,required:!0}},emits:["remove-file"],computed:{isImage:function(){return Ue(this.file)},isVideo:function(){return Ve(this.file)}}},$e=qe,ze=v($e,He,Fe,!1,null,null,null),Ye=ze.exports,Xe={name:"RoomFiles",components:{SvgIcon:O,RoomFile:Ye},props:{files:{type:Array,required:!0}},emits:["remove-file","reset-message"]},Ge=Xe,Ke=v(Ge,je,Ne,!1,null,null,null),We=Ke.exports,Ze=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"vac-slide-up"}},[e.messageReply?n("div",{staticClass:"vac-reply-container",style:{bottom:e.$parent.$refs.roomFooter.clientHeight+"px"}},[n("div",{staticClass:"vac-reply-box"},[n("div",{staticClass:"vac-reply-info"},[n("div",{staticClass:"vac-reply-username"},[e._v(" "+e._s(e.messageReply.username)+" ")]),n("div",{staticClass:"vac-reply-content"},[n("format-message",{attrs:{content:e.messageReply.content,users:e.room.users,"text-formatting":e.textFormatting,"link-options":e.linkOptions,reply:!0},scopedSlots:e._u([e._l(e.$scopedSlots,(function(t,n){return{key:n,fn:function(t){return[e._t(n,null,null,t)]}}}))],null,!0)})],1)]),e.isImage?n("img",{staticClass:"vac-image-reply",attrs:{src:e.firstFile.url}}):e.isVideo?n("video",{staticClass:"vac-image-reply",attrs:{controls:""}},[n("source",{attrs:{src:e.firstFile.url}})]):e.isAudio?n("audio-player",{staticClass:"vac-audio-reply",attrs:{src:e.firstFile.url},scopedSlots:e._u([e._l(e.$scopedSlots,(function(t,n){return{key:n,fn:function(t){return[e._t(n,null,null,t)]}}}))],null,!0)}):e.isOtherFile?n("div",{staticClass:"vac-image-reply vac-file-container"},[n("div",[e._t("file-icon",(function(){return[n("svg-icon",{attrs:{name:"file"}})]}))],2),n("div",{staticClass:"vac-text-ellipsis"},[e._v(" "+e._s(e.firstFile.name)+" ")]),e.firstFile.extension?n("div",{staticClass:"vac-text-ellipsis vac-text-extension"},[e._v(" "+e._s(e.firstFile.extension)+" ")]):e._e()]):e._e()],1),n("div",{staticClass:"vac-icon-reply"},[n("div",{staticClass:"vac-svg-button",on:{click:function(t){return e.$emit("reset-message")}}},[e._t("reply-close-icon",(function(){return[n("svg-icon",{attrs:{name:"close-outline"}})]}))],2)])]):e._e()])},Qe=[],Je=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"vac-audio-player"},[n("div",{staticClass:"vac-svg-button",on:{click:e.playback}},[e.isPlaying?e._t("audio-pause-icon",(function(){return[n("svg-icon",{attrs:{name:"audio-pause"}})]})):e._t("audio-play-icon",(function(){return[n("svg-icon",{attrs:{name:"audio-play"}})]}))],2),n("audio-control",{attrs:{percentage:e.progress},on:{"change-linehead":e.onUpdateProgress,"hover-audio-progress":function(t){return e.$emit("hover-audio-progress",t)}}}),n("audio",{attrs:{id:e.playerUniqId,src:e.audioSource}})],1)])},et=[],tt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"progress",staticClass:"vac-player-bar",on:{mousedown:e.onMouseDown,mouseover:function(t){return e.$emit("hover-audio-progress",!0)},mouseout:function(t){return e.$emit("hover-audio-progress",!1)}}},[n("div",{staticClass:"vac-player-progress"},[n("div",{staticClass:"vac-line-container"},[n("div",{staticClass:"vac-line-progress",style:{width:e.percentage+"%"}}),n("div",{staticClass:"vac-line-dot",class:{"vac-line-dot__active":e.isMouseDown},style:{left:e.percentage+"%"}})])])])},nt=[],rt={props:{percentage:{type:Number,default:0}},emits:["hover-audio-progress","change-linehead"],data:function(){return{isMouseDown:!1}},methods:{onMouseDown:function(e){this.isMouseDown=!0;var t=this.calculateLineHeadPosition(e,this.$refs["progress"]);this.$emit("change-linehead",t),document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp)},onMouseUp:function(e){this.isMouseDown=!1,document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("mousemove",this.onMouseMove);var t=this.calculateLineHeadPosition(e,this.$refs["progress"]);this.$emit("change-linehead",t)},onMouseMove:function(e){var t=this.calculateLineHeadPosition(e,this.$refs["progress"]);this.$emit("change-linehead",t)},calculateLineHeadPosition:function(e,t){var n=t.getBoundingClientRect().width,r=t.getBoundingClientRect().left,o=(e.clientX-r)/n;return o=o<0?0:o,o=o>1?1:o,o}}},ot=rt,at=v(ot,tt,nt,!1,null,null,null),it=at.exports,st={name:"AudioPlayer",components:{SvgIcon:O,AudioControl:it},props:{src:{type:String,default:null}},emits:["hover-audio-progress","update-progress-time"],data:function(){return{isPlaying:!1,duration:this.convertTimeMMSS(0),playedTime:this.convertTimeMMSS(0),progress:0}},computed:{playerUniqId:function(){return"audio-player".concat(this._uid)},audioSource:function(){return this.src?this.src:(this.resetProgress(),null)}},mounted:function(){var e=this;this.player=document.getElementById(this.playerUniqId),this.player.addEventListener("ended",(function(){e.isPlaying=!1})),this.player.addEventListener("loadeddata",(function(){e.resetProgress(),e.duration=e.convertTimeMMSS(e.player.duration),e.updateProgressTime()})),this.player.addEventListener("timeupdate",this.onTimeUpdate)},methods:{convertTimeMMSS:function(e){return new Date(1e3*e).toISOString().substr(14,5)},playback:function(){var e=this;this.audioSource&&(this.isPlaying?this.player.pause():setTimeout((function(){return e.player.play()})),this.isPlaying=!this.isPlaying)},resetProgress:function(){this.isPlaying&&this.player.pause(),this.duration=this.convertTimeMMSS(0),this.playedTime=this.convertTimeMMSS(0),this.progress=0,this.isPlaying=!1,this.updateProgressTime()},onTimeUpdate:function(){this.playedTime=this.convertTimeMMSS(this.player.currentTime),this.progress=this.player.currentTime/this.player.duration*100,this.updateProgressTime()},onUpdateProgress:function(e){e&&(this.player.currentTime=e*this.player.duration)},updateProgressTime:function(){this.$emit("update-progress-time",this.progress>1?this.playedTime:this.duration)}}},ct=st,lt=v(ct,Je,et,!1,null,null,null),ut=lt.exports,ft=n("bd43"),dt=ft.isAudioFile,ht=ft.isImageFile,pt=ft.isVideoFile,mt={name:"RoomMessageReply",components:{SvgIcon:O,FormatMessage:J,AudioPlayer:ut},props:{room:{type:Object,required:!0},messageReply:{type:Object,default:null},textFormatting:{type:Boolean,required:!0},linkOptions:{type:Object,required:!0}},emits:["reset-message"],computed:{firstFile:function(){return this.messageReply.files?this.messageReply.files[0]:{}},isImage:function(){return ht(this.firstFile)},isVideo:function(){return pt(this.firstFile)},isAudio:function(){return dt(this.firstFile)},isOtherFile:function(){return this.messageReply.files&&!this.isAudio&&!this.isVideo&&!this.isImage}}},_t=mt,gt=v(_t,Ze,Qe,!1,null,null,null),bt=gt.exports,vt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"vac-slide-up"}},[e.filteredUsersTag.length?n("div",{staticClass:"vac-tags-container",style:{bottom:e.$parent.$refs.roomFooter.clientHeight+"px"}},e._l(e.filteredUsersTag,(function(t){return n("div",{key:t._id,staticClass:"vac-tags-box",on:{click:function(n){return e.$emit("select-user-tag",t)}}},[n("div",{staticClass:"vac-tags-info"},[t.avatar?n("div",{staticClass:"vac-avatar vac-tags-avatar",style:{"background-image":"url('"+t.avatar+"')"}}):e._e(),n("div",{staticClass:"vac-tags-username"},[e._v(" "+e._s(t.username)+" ")])])])})),0):e._e()])},yt=[],wt={name:"RoomUsersTag",props:{filteredUsersTag:{type:Array,required:!0}},emits:["select-user-tag"]},xt=wt,kt=v(xt,vt,yt,!1,null,null,null),St=kt.exports,At=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"vac-slide-up"}},[e.filteredEmojis.length?n("div",{staticClass:"vac-emojis-container",style:{bottom:e.$parent.$refs.roomFooter.clientHeight+"px"}},e._l(e.filteredEmojis,(function(t){return n("div",{key:t,staticClass:"vac-emoji-element",on:{click:function(n){return e.$emit("select-emoji",t)}}},[e._v(" "+e._s(t)+" ")])})),0):e._e()])},Mt=[],Rt={name:"RoomEmojis",props:{filteredEmojis:{type:Array,required:!0}},emits:["select-emoji"]},Et=Rt,Tt=v(Et,At,Mt,!1,null,null,null),Ot=Tt.exports,Lt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.message._id,staticClass:"vac-message-wrapper",attrs:{id:e.message._id}},[e.showDate?n("div",{staticClass:"vac-card-info vac-card-date"},[e._v(" "+e._s(e.message.date)+" ")]):e._e(),e.newMessage._id===e.message._id?n("div",{staticClass:"vac-line-new"},[e._v(" "+e._s(e.textMessages.NEW_MESSAGES)+" ")]):e._e(),e.message.system?n("div",{staticClass:"vac-card-info vac-card-system"},[n("format-message",{attrs:{content:e.message.content,users:e.roomUsers,"text-formatting":e.textFormatting,"link-options":e.linkOptions},on:{"open-user-tag":e.openUserTag},scopedSlots:e._u([e._l(e.$scopedSlots,(function(t,n){return{key:n,fn:function(t){return[e._t(n,null,null,t)]}}}))],null,!0)})],1):n("div",{staticClass:"vac-message-box",class:{"vac-offset-current":e.message.senderId===e.currentUserId}},[e._t("message",(function(){return[e.message.avatar&&e.message.senderId!==e.currentUserId?n("div",{staticClass:"vac-avatar",style:{"background-image":"url('"+e.message.avatar+"')"}}):e._e(),n("div",{staticClass:"vac-message-container",class:{"vac-message-container-offset":e.messageOffset}},[n("div",{staticClass:"vac-message-card",class:{"vac-message-highlight":e.isMessageHover,"vac-message-current":e.message.senderId===e.currentUserId,"vac-message-deleted":e.message.deleted},on:{mouseover:e.onHoverMessage,mouseleave:e.onLeaveMessage}},[e.roomUsers.length>2&&e.message.senderId!==e.currentUserId?n("div",{staticClass:"vac-text-username",class:{"vac-username-reply":!e.message.deleted&&e.message.replyMessage}},[n("span",[e._v(e._s(e.message.username))])]):e._e(),!e.message.deleted&&e.message.replyMessage?n("message-reply",{attrs:{message:e.message,"room-users":e.roomUsers,"text-formatting":e.textFormatting,"link-options":e.linkOptions},scopedSlots:e._u([e._l(e.$scopedSlots,(function(t,n){return{key:n,fn:function(t){return[e._t(n,null,null,t)]}}}))],null,!0)}):e._e(),e.message.deleted?n("div",[e._t("deleted-icon",(function(){return[n("svg-icon",{staticClass:"vac-icon-deleted",attrs:{name:"deleted"}})]})),n("span",[e._v(e._s(e.textMessages.MESSAGE_DELETED))])],2):e.message.files&&e.message.files.length?!e.isAudio||e.message.files.length>1?n("message-files",{attrs:{"current-user-id":e.currentUserId,message:e.message,"room-users":e.roomUsers,"text-formatting":e.textFormatting,"link-options":e.linkOptions},on:{"open-file":e.openFile},scopedSlots:e._u([e._l(e.$scopedSlots,(function(t,n){return{key:n,fn:function(t){return[e._t(n,null,null,t)]}}}))],null,!0)}):[n("audio-player",{attrs:{src:e.message.files[0].url},on:{"update-progress-time":function(t){e.progressTime=t},"hover-audio-progress":function(t){e.hoverAudioProgress=t}},scopedSlots:e._u([e._l(e.$scopedSlots,(function(t,n){return{key:n,fn:function(t){return[e._t(n,null,null,t)]}}}))],null,!0)}),e.message.deleted?e._e():n("div",{staticClass:"vac-progress-time"},[e._v(" "+e._s(e.progressTime)+" ")])]:n("format-message",{attrs:{content:e.message.content,users:e.roomUsers,"text-formatting":e.textFormatting,"link-options":e.linkOptions},on:{"open-user-tag":e.openUserTag},scopedSlots:e._u([e._l(e.$scopedSlots,(function(t,n){return{key:n,fn:function(t){return[e._t(n,null,null,t)]}}}))],null,!0)}),n("div",{staticClass:"vac-text-timestamp"},[e.message.edited&&!e.message.deleted?n("div",{staticClass:"vac-icon-edited"},[e._t("pencil-icon",(function(){return[n("svg-icon",{attrs:{name:"pencil"}})]}))],2):e._e(),n("span",[e._v(e._s(e.message.timestamp))]),e.isCheckmarkVisible?n("span",[e._t("checkmark-icon",(function(){return[n("svg-icon",{staticClass:"vac-icon-check",attrs:{name:e.message.distributed?"double-checkmark":"checkmark",param:e.message.seen?"seen":""}})]}),null,{message:e.message})],2):e._e()]),n("message-actions",{attrs:{"current-user-id":e.currentUserId,message:e.message,"message-actions":e.messageActions,"room-footer-ref":e.roomFooterRef,"show-reaction-emojis":e.showReactionEmojis,"hide-options":e.hideOptions,"message-hover":e.messageHover,"hover-message-id":e.hoverMessageId,"hover-audio-progress":e.hoverAudioProgress},on:{"hide-options":function(t){return e.$emit("hide-options",!1)},"update-message-hover":function(t){e.messageHover=t},"update-options-opened":function(t){e.optionsOpened=t},"update-emoji-opened":function(t){e.emojiOpened=t},"message-action-handler":e.messageActionHandler,"send-message-reaction":e.sendMessageReaction},scopedSlots:e._u([e._l(e.$scopedSlots,(function(t,n){return{key:n,fn:function(t){return[e._t(n,null,null,t)]}}}))],null,!0)})],2),n("message-reactions",{attrs:{"current-user-id":e.currentUserId,message:e.message},on:{"send-message-reaction":e.sendMessageReaction}})],1)]}),null,{message:e.message})],2)])},Bt=[],It=(n("13d5"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vac-reply-message"},[n("div",{staticClass:"vac-reply-username"},[e._v(" "+e._s(e.replyUsername)+" ")]),e.isImage?n("div",{staticClass:"vac-image-reply-container"},[n("div",{staticClass:"vac-message-image vac-message-image-reply",style:{"background-image":"url('"+e.firstFile.url+"')"}})]):e.isVideo?n("div",{staticClass:"vac-video-reply-container"},[n("video",{attrs:{width:"100%",height:"100%",controls:""}},[n("source",{attrs:{src:e.firstFile.url}})])]):e.isAudio?n("audio-player",{attrs:{src:e.firstFile.url},on:{"update-progress-time":function(t){e.progressTime=t},"hover-audio-progress":function(t){e.hoverAudioProgress=t}},scopedSlots:e._u([e._l(e.$scopedSlots,(function(t,n){return{key:n,fn:function(t){return[e._t(n,null,null,t)]}}}))],null,!0)}):e._e(),n("div",{staticClass:"vac-reply-content"},[n("format-message",{attrs:{content:e.message.replyMessage.content,users:e.roomUsers,"text-formatting":e.textFormatting,"link-options":e.linkOptions,reply:!0},scopedSlots:e._u([e._l(e.$scopedSlots,(function(t,n){return{key:n,fn:function(t){return[e._t(n,null,null,t)]}}}))],null,!0)})],1)],1)}),Ct=[],Pt=n("bd43"),jt=Pt.isAudioFile,Nt=Pt.isImageFile,Ht=Pt.isVideoFile,Ft={name:"MessageReply",components:{AudioPlayer:ut,FormatMessage:J},props:{message:{type:Object,required:!0},textFormatting:{type:Boolean,required:!0},linkOptions:{type:Object,required:!0},roomUsers:{type:Array,required:!0}},computed:{replyUsername:function(){var e=this.message.replyMessage.senderId,t=this.roomUsers.find((function(t){return t._id===e}));return t?t.username:""},firstFile:function(){return this.message.replyMessage.files?this.message.replyMessage.files[0]:{}},isAudio:function(){return jt(this.firstFile)},isImage:function(){return Nt(this.firstFile)},isVideo:function(){return Ht(this.firstFile)}}},Dt=Ft,Ut=v(Dt,It,Ct,!1,null,null,null),Vt=Ut.exports,qt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vac-message-files-container"},[e._l(e.imageVideoFiles,(function(t,r){return n("div",{key:r+"iv"},[n("message-file",{attrs:{file:t,"current-user-id":e.currentUserId,message:e.message,index:r},on:{"open-file":function(t){return e.$emit("open-file",t)}},scopedSlots:e._u([e._l(e.$scopedSlots,(function(t,n){return{key:n,fn:function(t){return[e._t(n,null,null,t)]}}}))],null,!0)})],1)})),e._l(e.otherFiles,(function(t,r){return n("div",{key:r+"a"},[n("div",{staticClass:"vac-file-container",on:{click:function(n){return n.stopPropagation(),e.openFile(t,"download")}}},[n("div",{staticClass:"vac-svg-button"},[e._t("document-icon",(function(){return[n("svg-icon",{attrs:{name:"document"}})]}))],2),n("div",{staticClass:"vac-text-ellipsis"},[e._v(" "+e._s(t.name)+" ")]),t.extension?n("div",{staticClass:"vac-text-ellipsis vac-text-extension"},[e._v(" "+e._s(t.extension)+" ")]):e._e()])])})),n("format-message",{attrs:{content:e.message.content,users:e.roomUsers,"text-formatting":e.textFormatting,"link-options":e.linkOptions},on:{"open-user-tag":function(t){return e.$emit("open-user-tag")}},scopedSlots:e._u([e._l(e.$scopedSlots,(function(t,n){return{key:n,fn:function(t){return[e._t(n,null,null,t)]}}}))],null,!0)})],2)},$t=[],zt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vac-message-file-container"},[e.isImage?n("div",{ref:"imageRef"+e.index,on:{mouseover:function(t){e.imageHover=!0},mouseleave:function(t){e.imageHover=!1}}},[n("loader",{style:{top:e.imageResponsive.loaderTop+"px"},attrs:{show:e.isImageLoading}}),n("div",{staticClass:"vac-message-image",class:{"vac-image-loading":e.isImageLoading&&e.message.senderId===e.currentUserId},style:{"background-image":"url('"+(e.isImageLoading&&e.file.preview||e.file.url)+"')","max-height":e.imageResponsive.maxHeight+"px"}},[n("transition",{attrs:{name:"vac-fade-image"}},[e.imageHover&&!e.isImageLoading?n("div",{staticClass:"vac-image-buttons"},[n("div",{staticClass:"vac-svg-button vac-button-view",on:{click:function(t){return t.stopPropagation(),e.openFile("preview")}}},[e._t("eye-icon",(function(){return[n("svg-icon",{attrs:{name:"eye"}})]}))],2),n("div",{staticClass:"vac-svg-button vac-button-download",on:{click:function(t){return t.stopPropagation(),e.openFile("download")}}},[e._t("document-icon",(function(){return[n("svg-icon",{attrs:{name:"document"}})]}))],2)]):e._e()])],1)],1):e.isVideo?n("div",{staticClass:"vac-video-container"},[n("video",{attrs:{width:"100%",height:"100%",controls:""}},[n("source",{attrs:{src:e.file.url}})])]):e._e()])},Yt=[],Xt=n("bd43"),Gt=Xt.isImageFile,Kt=Xt.isVideoFile,Wt={name:"MessageFile",components:{SvgIcon:O,Loader:x},props:{currentUserId:{type:[String,Number],required:!0},message:{type:Object,required:!0},file:{type:Object,required:!0},index:{type:Number,required:!0}},emits:["open-file"],data:function(){return{imageResponsive:"",imageLoading:!1,imageHover:!1}},computed:{isImageLoading:function(){return-1!==this.file.url.indexOf("blob:http")||this.imageLoading},isImage:function(){return Gt(this.file)},isVideo:function(){return Kt(this.file)}},watch:{file:{immediate:!0,handler:function(){this.checkImgLoad()}}},mounted:function(){var e=this.$refs["imageRef"+this.index];e&&(this.imageResponsive={maxHeight:e.clientWidth-18,loaderTop:e.clientHeight/2-9})},methods:{checkImgLoad:function(){var e=this;if(Gt(this.file)){this.imageLoading=!0;var t=new Image;t.src=this.file.url,t.addEventListener("load",(function(){return e.imageLoading=!1}))}},openFile:function(e){this.$emit("open-file",{file:this.file,action:e})}}},Zt=Wt,Qt=v(Zt,zt,Yt,!1,null,null,null),Jt=Qt.exports,en=n("bd43"),tn=en.isImageVideoFile,nn={name:"MessageFiles",components:{SvgIcon:O,FormatMessage:J,MessageFile:Jt},props:{currentUserId:{type:[String,Number],required:!0},message:{type:Object,required:!0},roomUsers:{type:Array,required:!0},textFormatting:{type:Boolean,required:!0},linkOptions:{type:Object,required:!0}},emits:["open-file","open-user-tag"],computed:{imageVideoFiles:function(){return this.message.files.filter((function(e){return tn(e)}))},otherFiles:function(){return this.message.files.filter((function(e){return!tn(e)}))}},methods:{openFile:function(e,t){this.$emit("open-file",{file:e,action:t})}}},rn=nn,on=v(rn,qt,$t,!1,null,null,null),an=on.exports,sn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vac-message-actions-wrapper"},[n("div",{staticClass:"vac-options-container",style:{display:e.hoverAudioProgress?"none":"initial",width:e.filteredMessageActions.length&&e.showReactionEmojis?"70px":"45px"}},[n("transition-group",{attrs:{name:"vac-slide-left",tag:"span"}},[e.isMessageActions||e.isMessageReactions?n("div",{key:"1",staticClass:"vac-blur-container",class:{"vac-options-me":e.message.senderId===e.currentUserId}}):e._e(),e.isMessageActions?n("div",{key:"2",ref:"actionIcon",staticClass:"vac-svg-button vac-message-options",on:{click:e.openOptions}},[e._t("dropdown-icon",(function(){return[n("svg-icon",{attrs:{name:"dropdown",param:"message"}})]}))],2):e._e(),e.isMessageReactions?n("emoji-picker-container",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.closeEmoji,expression:"closeEmoji"}],key:"3",staticClass:"vac-message-emojis",style:{right:e.isMessageActions?"30px":"5px"},attrs:{"emoji-opened":e.emojiOpened,"emoji-reaction":!0,"room-footer-ref":e.roomFooterRef,"position-right":e.message.senderId===e.currentUserId},on:{"add-emoji":e.sendMessageReaction,"open-emoji":e.openEmoji},scopedSlots:e._u([{key:"emoji-picker-icon",fn:function(){return[e._t("emoji-picker-reaction-icon")]},proxy:!0}],null,!0)}):e._e()],1)],1),e.filteredMessageActions.length?n("transition",{attrs:{name:e.message.senderId===e.currentUserId?"vac-slide-left":"vac-slide-right"}},[e.optionsOpened?n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.closeOptions,expression:"closeOptions"}],ref:"menuOptions",staticClass:"vac-menu-options",class:{"vac-menu-left":e.message.senderId!==e.currentUserId},style:{top:e.menuOptionsTop+"px"}},[n("div",{staticClass:"vac-menu-list"},e._l(e.filteredMessageActions,(function(t){return n("div",{key:t.name},[n("div",{staticClass:"vac-menu-item",on:{click:function(n){return e.messageActionHandler(t)}}},[e._v(" "+e._s(t.title)+" ")])])})),0)]):e._e()]):e._e()],1)},cn=[],ln={name:"MessageActions",components:{SvgIcon:O,EmojiPickerContainer:Te},directives:{clickOutside:H.a.directive},props:{currentUserId:{type:[String,Number],required:!0},message:{type:Object,required:!0},messageActions:{type:Array,required:!0},roomFooterRef:{type:HTMLDivElement,default:null},showReactionEmojis:{type:Boolean,required:!0},hideOptions:{type:Boolean,required:!0},messageHover:{type:Boolean,required:!0},hoverMessageId:{type:[String,Number],default:null},hoverAudioProgress:{type:Boolean,required:!0}},emits:["update-emoji-opened","update-options-opened","update-message-hover","hide-options","message-action-handler","send-message-reaction"],data:function(){return{menuOptionsTop:0,optionsOpened:!1,optionsClosing:!1,emojiOpened:!1}},computed:{isMessageActions:function(){return this.filteredMessageActions.length&&this.messageHover&&!this.message.deleted&&!this.message.disableActions&&!this.hoverAudioProgress},isMessageReactions:function(){return this.showReactionEmojis&&this.messageHover&&!this.message.deleted&&!this.message.disableReactions&&!this.hoverAudioProgress},filteredMessageActions:function(){return this.message.senderId===this.currentUserId?this.messageActions:this.messageActions.filter((function(e){return!e.onlyMe}))}},watch:{emojiOpened:function(e){this.$emit("update-emoji-opened",e),e&&(this.optionsOpened=!1)},hideOptions:function(e){e&&(this.closeEmoji(),this.closeOptions())},optionsOpened:function(e){this.$emit("update-options-opened",e)}},methods:{openOptions:function(){var e=this;this.optionsClosing||(this.optionsOpened=!this.optionsOpened,this.optionsOpened&&(this.$emit("hide-options",!1),setTimeout((function(){if(e.roomFooterRef&&e.$refs.menuOptions&&e.$refs.actionIcon){var t=e.$refs.menuOptions.getBoundingClientRect().height,n=e.$refs.actionIcon.getBoundingClientRect().top,r=e.roomFooterRef.getBoundingClientRect().top,o=r-n>t+50;e.menuOptionsTop=o?30:-t}}))))},closeOptions:function(){var e=this;this.optionsOpened=!1,this.optionsClosing=!0,this.updateMessageHover(),setTimeout((function(){return e.optionsClosing=!1}),100)},openEmoji:function(){this.emojiOpened=!this.emojiOpened,this.$emit("hide-options",!1)},closeEmoji:function(){this.emojiOpened=!1,this.updateMessageHover()},updateMessageHover:function(){this.hoverMessageId!==this.message._id&&this.$emit("update-message-hover",!1)},messageActionHandler:function(e){this.closeOptions(),this.$emit("message-action-handler",e)},sendMessageReaction:function(e,t){this.$emit("send-message-reaction",{emoji:e,reaction:t}),this.closeEmoji()}}},un=ln,fn=v(un,sn,cn,!1,null,null,null),dn=fn.exports,hn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.message.deleted?e._e():n("transition-group",{attrs:{name:"vac-slide-left",tag:"span"}},e._l(e.message.reactions,(function(t,r){return n("button",{directives:[{name:"show",rawName:"v-show",value:t.length,expression:"reaction.length"}],key:r+0,staticClass:"vac-button-reaction",class:{"vac-reaction-me":-1!==t.indexOf(e.currentUserId)},style:{float:e.message.senderId===e.currentUserId?"right":"left"},on:{click:function(n){return e.sendMessageReaction({unicode:r},t)}}},[e._v(" "+e._s(r)),n("span",[e._v(e._s(t.length))])])})),0)},pn=[],mn={name:"MessageReactions",props:{currentUserId:{type:[String,Number],required:!0},message:{type:Object,required:!0}},emits:["send-message-reaction"],methods:{sendMessageReaction:function(e,t){this.$emit("send-message-reaction",{emoji:e,reaction:t})}}},_n=mn,gn=v(_n,hn,pn,!1,null,null,null),bn=gn.exports,vn=n("4c1d"),yn=vn.messagesValidation,wn=n("bd43"),xn=wn.isAudioFile,kn={name:"Message",components:{SvgIcon:O,FormatMessage:J,AudioPlayer:ut,MessageReply:Vt,MessageFiles:an,MessageActions:dn,MessageReactions:bn},props:{currentUserId:{type:[String,Number],required:!0},textMessages:{type:Object,required:!0},index:{type:Number,required:!0},message:{type:Object,required:!0},messages:{type:Array,required:!0},editedMessage:{type:Object,required:!0},roomUsers:{type:Array,default:function(){return[]}},messageActions:{type:Array,required:!0},roomFooterRef:{type:HTMLDivElement,default:null},newMessages:{type:Array,default:function(){return[]}},showReactionEmojis:{type:Boolean,required:!0},showNewMessagesDivider:{type:Boolean,required:!0},textFormatting:{type:Boolean,required:!0},linkOptions:{type:Object,required:!0},hideOptions:{type:Boolean,required:!0}},emits:["hide-options","message-added","open-file","open-user-tag","message-action-handler","send-message-reaction"],data:function(){return{hoverMessageId:null,messageHover:!1,optionsOpened:!1,emojiOpened:!1,newMessage:{},progressTime:"- : -",hoverAudioProgress:!1}},computed:{showDate:function(){return this.index>0&&this.message.date!==this.messages[this.index-1].date},messageOffset:function(){return this.index>0&&this.message.senderId!==this.messages[this.index-1].senderId},isMessageHover:function(){return this.editedMessage._id===this.message._id||this.hoverMessageId===this.message._id},isAudio:function(){var e;return null===(e=this.message.files)||void 0===e?void 0:e.some((function(e){return xn(e)}))},isCheckmarkVisible:function(){return this.message.senderId===this.currentUserId&&!this.message.deleted&&(this.message.saved||this.message.distributed||this.message.seen)}},watch:{newMessages:{immediate:!0,deep:!0,handler:function(e){if(!e.length||!this.showNewMessagesDivider)return this.newMessage={};this.newMessage=e.reduce((function(e,t){return t.index<e.index?t:e}))}}},mounted:function(){yn(this.message),this.$emit("message-added",{message:this.message,index:this.index,ref:this.$refs[this.message._id]})},methods:{onHoverMessage:function(){this.messageHover=!0,this.canEditMessage()&&(this.hoverMessageId=this.message._id)},canEditMessage:function(){return!this.message.deleted},onLeaveMessage:function(){this.optionsOpened||this.emojiOpened||(this.messageHover=!1),this.hoverMessageId=null},openFile:function(e){this.$emit("open-file",{message:this.message,file:e})},openUserTag:function(e){this.$emit("open-user-tag",{user:e})},messageActionHandler:function(e){var t=this;this.messageHover=!1,this.hoverMessageId=null,setTimeout((function(){t.$emit("message-action-handler",{action:e,message:t.message})}),300)},sendMessageReaction:function(e){var t=e.emoji,n=e.reaction;this.$emit("send-message-reaction",{messageId:this.message._id,reaction:t,remove:n&&-1!==n.indexOf(this.currentUserId)}),this.messageHover=!1}}},Sn=kn,An=v(Sn,Lt,Bt,!1,null,null,null),Mn=An.exports;function Rn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function En(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Tn(e,t,n){return t&&En(e.prototype,t),n&&En(e,n),e}var On;n("c0b6"),n("acd8"),n("b680"),n("ace4"),n("fd87"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("d5d6"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ca91"),n("25a1"),n("cd26"),n("3c5d"),n("2954"),n("649e"),n("219c"),n("170b"),n("b39a"),n("72f7"),n("6eba"),n("cfc3"),n("8b09");try{On=n("db3f")}catch(er){On={missing:!0}}var Ln=On,Bn=Ln.Mp3Encoder,In=function(){function e(t){if(Rn(this,e),On.missing)throw new Error('You must add lamejs in your dependencies to use the audio recorder. Please run "npm install lamejs --save"');this.bitRate=t.bitRate,this.sampleRate=t.sampleRate,this.dataBuffer=[],this.encoder=new Bn(1,this.sampleRate,this.bitRate)}return Tn(e,[{key:"encode",value:function(e){for(var t=1152,n=this._convertBuffer(e),r=n.length,o=0;r>=0;o+=t){var a=n.subarray(o,o+t),i=this.encoder.encodeBuffer(a);this.dataBuffer.push(new Int8Array(i)),r-=t}}},{key:"finish",value:function(){this.dataBuffer.push(this.encoder.flush());var e=new Blob(this.dataBuffer,{type:"audio/mp3"});return this.dataBuffer=[],{id:Date.now(),blob:e,url:URL.createObjectURL(e)}}},{key:"_floatTo16BitPCM",value:function(e,t){for(var n=0;n<e.length;n++){var r=Math.max(-1,Math.min(1,e[n]));t[n]=r<0?32768*r:32767*r}}},{key:"_convertBuffer",value:function(e){var t=new Float32Array(e),n=new Int16Array(e.length);return this._floatTo16BitPCM(t,n),n}}]),e}(),Cn=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Rn(this,e),this.beforeRecording=t.beforeRecording,this.pauseRecording=t.pauseRecording,this.afterRecording=t.afterRecording,this.micFailed=t.micFailed,this.encoderOptions={bitRate:128,sampleRate:44100},this.bufferSize=4096,this.records=[],this.isPause=!1,this.isRecording=!1,this.duration=0,this.volume=0,this._duration=0}return Tn(e,[{key:"start",value:function(){var e={video:!1,audio:{channelCount:1,echoCancellation:!1}};this.beforeRecording&&this.beforeRecording("start recording"),navigator.mediaDevices.getUserMedia(e).then(this._micCaptured.bind(this))["catch"](this._micError.bind(this)),this.isPause=!1,this.isRecording=!0,this.lameEncoder||(this.lameEncoder=new In(this.encoderOptions))}},{key:"stop",value:function(){this.stream.getTracks().forEach((function(e){return e.stop()})),this.input.disconnect(),this.processor.disconnect(),this.context.close();var e=null;e=this.lameEncoder.finish(),e.duration=this.duration,this.records.push(e),this._duration=0,this.duration=0,this.isPause=!1,this.isRecording=!1,this.afterRecording&&this.afterRecording(e)}},{key:"pause",value:function(){this.stream.getTracks().forEach((function(e){return e.stop()})),this.input.disconnect(),this.processor.disconnect(),this._duration=this.duration,this.isPause=!0,this.pauseRecording&&this.pauseRecording("pause recording")}},{key:"_micCaptured",value:function(e){var t=this;this.context=new(window.AudioContext||window.webkitAudioContext),this.duration=this._duration,this.input=this.context.createMediaStreamSource(e),this.processor=this.context.createScriptProcessor(this.bufferSize,1,1),this.stream=e,this.processor.onaudioprocess=function(e){var n=e.inputBuffer.getChannelData(0),r=0;t.lameEncoder&&t.lameEncoder.encode(n);for(var o=0;o<n.length;++o)r+=n[o]*n[o];t.duration=parseFloat(t._duration)+parseFloat(t.context.currentTime.toFixed(2)),t.volume=Math.sqrt(r/n.length).toFixed(2)},this.input.connect(this.processor),this.processor.connect(this.context.destination)}},{key:"_micError",value:function(e){this.micFailed&&this.micFailed(e)}}]),e}(),Pn=n("1a98"),jn=Pn.detectMobile,Nn=Pn.iOSDevice,Hn=function(e,t){var n;return function(){var r=this,o=arguments;clearTimeout(n),n=setTimeout((function(){return e.apply(r,o)}),t)}},Fn={name:"Room",components:{InfiniteLoading:p.a,Loader:x,SvgIcon:O,EmojiPickerContainer:Te,RoomHeader:Pe,RoomFiles:We,RoomMessageReply:bt,RoomUsersTag:St,RoomEmojis:Ot,Message:Mn},directives:{clickOutside:H.a.directive},props:{currentUserId:{type:[String,Number],required:!0},textMessages:{type:Object,required:!0},singleRoom:{type:Boolean,required:!0},showRoomsList:{type:Boolean,required:!0},isMobile:{type:Boolean,required:!0},rooms:{type:Array,required:!0},roomId:{type:[String,Number],required:!0},loadFirstRoom:{type:Boolean,required:!0},messages:{type:Array,required:!0},roomMessage:{type:String,default:null},messagesLoaded:{type:Boolean,required:!0},menuActions:{type:Array,required:!0},messageActions:{type:Array,required:!0},showSendIcon:{type:Boolean,required:!0},showFiles:{type:Boolean,required:!0},showAudio:{type:Boolean,required:!0},showEmojis:{type:Boolean,required:!0},showReactionEmojis:{type:Boolean,required:!0},showNewMessagesDivider:{type:Boolean,required:!0},showFooter:{type:Boolean,required:!0},acceptedFiles:{type:String,required:!0},textFormatting:{type:Boolean,required:!0},linkOptions:{type:Object,required:!0},loadingRooms:{type:Boolean,required:!0},roomInfoEnabled:{type:Boolean,required:!0},textareaActionEnabled:{type:Boolean,required:!0}},emits:["toggle-rooms-list","room-info","menu-action-handler","edit-message","send-message","delete-message","message-action-handler","fetch-messages","send-message-reaction","typing-message","open-file","open-user-tag","textarea-action-handler"],data:function(){return{message:"",editedMessage:{},messageReply:null,infiniteState:null,loadingMessages:!1,loadingMoreMessages:!1,files:[],fileDialog:!1,emojiOpened:!1,hideOptions:!0,scrollIcon:!1,scrollMessagesCount:0,newMessages:[],keepKeyboardOpen:!1,filteredEmojis:[],filteredUsersTag:[],selectedUsersTag:[],textareaCursorPosition:null,cursorRangePosition:null,emojisDB:new ke["a"],recorder:this.initRecorder(),isRecording:!1,format:"mp3"}},computed:{room:function(){var e=this;return this.rooms.find((function(t){return t.roomId===e.roomId}))||{}},showNoMessages:function(){return this.room.roomId&&!this.messages.length&&!this.loadingMessages&&!this.loadingRooms},showNoRoom:function(){var e=!this.rooms.length&&!this.loadingRooms||!this.room.roomId&&!this.loadFirstRoom;return e&&(this.loadingMessages=!1),e},showMessagesStarted:function(){return this.messages.length&&this.messagesLoaded},isMessageEmpty:function(){return!this.files.length&&!this.message.trim()},recordedTime:function(){return new Date(1e3*this.recorder.duration).toISOString().substr(14,5)},shadowFooter:function(){return!!this.filteredEmojis.length||!!this.filteredUsersTag.length||!!this.files.length||!!this.messageReply}},watch:{message:function(e){this.$refs.roomTextarea.value=e},loadingMessages:function(e){e?this.infiniteState=null:(this.infiniteState&&this.infiniteState.loaded(),this.focusTextarea(!0))},room:{immediate:!0,handler:function(e,t){!e.roomId||t&&e.roomId===t.roomId||this.onRoomChanged()}},roomMessage:{immediate:!0,handler:function(e){e&&(this.message=this.roomMessage)}},messages:{deep:!0,handler:function(e,t){var n=this;e.forEach((function(e,t){n.showNewMessagesDivider&&!e.seen&&e.senderId!==n.currentUserId&&n.newMessages.push({_id:e._id,index:t})})),(null===t||void 0===t?void 0:t.length)===(null===e||void 0===e?void 0:e.length)-1&&(this.newMessages=[]),this.infiniteState&&this.infiniteState.loaded(),setTimeout((function(){return n.loadingMoreMessages=!1}))}},messagesLoaded:function(e){e&&(this.loadingMessages=!1),this.infiniteState&&this.infiniteState.complete()}},mounted:function(){var e=this;this.newMessages=[];var t=jn();this.$refs.roomTextarea.addEventListener("keyup",Hn((function(n){"Enter"!==n.key||n.shiftKey||e.fileDialog||(t?(e.message=e.message+"\n",setTimeout((function(){return e.onChangeInput()}))):e.sendMessage()),setTimeout((function(){e.updateFooterList("@"),e.updateFooterList(":")}),60)})),50),this.$refs["roomTextarea"].addEventListener("click",(function(){t&&(e.keepKeyboardOpen=!0),e.updateFooterList("@"),e.updateFooterList(":")})),this.$refs["roomTextarea"].addEventListener("blur",(function(){e.resetFooterList(),t&&setTimeout((function(){return e.keepKeyboardOpen=!1}))}))},beforeDestroy:function(){this.stopRecorder()},methods:{touchStart:function(e){var t=this;if(1===e.changedTouches.length){var n=e.changedTouches[0].clientX;addEventListener("touchend",(function(e){return t.touchEnd(e,n)}),{once:!0})}},touchEnd:function(e,t){if(1===e.changedTouches.length){var n=e.changedTouches[0].clientX;n-t>30&&this.$emit("toggle-rooms-list")}},onRoomChanged:function(){var e=this;this.loadingMessages=!0,this.scrollIcon=!1,this.scrollMessagesCount=0,this.resetMessage(!0,!0),this.roomMessage&&(this.message=this.roomMessage,setTimeout((function(){return e.onChangeInput()}))),!this.messages.length&&this.messagesLoaded&&(this.loadingMessages=!1);var t=this.$watch((function(){return e.messages}),(function(n){if(n&&n.length){var r=e.$refs.scrollContainer;r&&(t(),setTimeout((function(){r.scrollTo({top:r.scrollHeight}),e.loadingMessages=!1})))}}))},onMessageAdded:function(e){var t=this,n=e.message,r=e.index,o=e.ref;if(r===this.messages.length-1){var a=o.offsetHeight+60;setTimeout((function(){t.getBottomScroll(t.$refs.scrollContainer)<a||n.senderId===t.currentUserId?t.scrollToBottom():(t.scrollIcon=!0,t.scrollMessagesCount++)}))}},onContainerScroll:function(e){if(this.hideOptions=!0,e.target){var t=this.getBottomScroll(e.target);t<60&&(this.scrollMessagesCount=0),this.scrollIcon=t>500||this.scrollMessagesCount}},updateFooterList:function(e){if(this.$refs["roomTextarea"]&&("@"!==e||this.room.users&&!(this.room.users.length<=2))&&this.textareaCursorPosition!==this.$refs["roomTextarea"].selectionStart){this.textareaCursorPosition=this.$refs["roomTextarea"].selectionStart;var t=this.textareaCursorPosition;while(t>0&&this.message.charAt(t-1)!==e&&" "!==this.message.charAt(t-1))t--;var n=this.message.charAt(t-2),r=!n.match(/^[0-9a-zA-Z]+$/);if(this.message.charAt(t-1)!==e||n&&" "!==n&&!r)this.resetFooterList(e);else{var o=this.message.substring(t,this.textareaCursorPosition);":"===e?this.updateEmojis(o):"@"===e&&this.updateShowUsersTag(o)}}},getCharPosition:function(e){var t=this.$refs["roomTextarea"].selectionStart,n=t;while(n>0&&this.message.charAt(n-1)!==e)n--;var r=n;while(this.message.charAt(r)&&this.message.charAt(r).trim())r++;return{position:n,endPosition:r}},updateEmojis:function(e){var t=this;return xe(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(e){n.next=2;break}return n.abrupt("return");case 2:return n.next=4,t.emojisDB.getEmojiBySearchQuery(e);case 4:r=n.sent,t.filteredEmojis=r.map((function(e){return e.unicode}));case 6:case"end":return n.stop()}}),n)})))()},selectEmoji:function(e){var t=this.getCharPosition(":"),n=t.position,r=t.endPosition;this.message=this.message.substr(0,n-1)+e+this.message.substr(r,this.message.length-1),this.cursorRangePosition=n,this.focusTextarea()},updateShowUsersTag:function(e){var t=this;this.filteredUsersTag=se(this.room.users,"username",e,!0).filter((function(e){return e._id!==t.currentUserId}))},selectUserTag:function(e){var t=this.getCharPosition("@"),n=t.position,r=t.endPosition,o=this.message.substr(r,r).length?"":" ";this.message=this.message.substr(0,n)+e.username+o+this.message.substr(r,this.message.length-1),this.selectedUsersTag=[].concat(ye(this.selectedUsersTag),[u({},e)]),this.cursorRangePosition=n+e.username.length+o.length+1,this.focusTextarea()},resetFooterList:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;":"===e?this.filteredEmojis=[]:("@"===e||(this.filteredEmojis=[]),this.filteredUsersTag=[]),this.textareaCursorPosition=null},escapeTextarea:function(){this.filteredEmojis.length?this.filteredEmojis=[]:this.filteredUsersTag.length?this.filteredUsersTag=[]:this.resetMessage()},resetMessage:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n||this.$emit("typing-message",null),this.selectedUsersTag=[],this.resetFooterList(),this.resetTextareaSize(),this.message="",this.editedMessage={},this.messageReply=null,this.files=[],this.emojiOpened=!1,this.preventKeyboardFromClosing(),setTimeout((function(){return e.focusTextarea(t)}))},resetTextareaSize:function(){this.$refs["roomTextarea"]&&(this.$refs["roomTextarea"].style.height="20px")},focusTextarea:function(e){var t=this;jn()&&e||this.$refs["roomTextarea"]&&(this.$refs["roomTextarea"].focus(),this.cursorRangePosition&&setTimeout((function(){t.$refs["roomTextarea"].setSelectionRange(t.cursorRangePosition,t.cursorRangePosition),t.cursorRangePosition=null})))},preventKeyboardFromClosing:function(){this.keepKeyboardOpen&&this.$refs["roomTextarea"].focus()},sendMessage:function(){var e=this.message.trim();if(this.files.length||e){this.selectedUsersTag.forEach((function(t){e=e.replace("@".concat(t.username),"<usertag>".concat(t._id,"</usertag>"))}));var t=this.files.length?this.files:null;this.editedMessage._id?(this.editedMessage.content!==e||t)&&this.$emit("edit-message",{messageId:this.editedMessage._id,newContent:e,files:t,replyMessage:this.messageReply,usersTag:this.selectedUsersTag}):this.$emit("send-message",{content:e,files:t,replyMessage:this.messageReply,usersTag:this.selectedUsersTag}),this.resetMessage(!0)}},loadMoreMessages:function(e){var t=this;this.loadingMessages?this.infiniteState=e:setTimeout((function(){if(!t.loadingMoreMessages){if(t.messagesLoaded||!t.room.roomId)return e.complete();t.infiniteState=e,t.$emit("fetch-messages"),t.loadingMoreMessages=!0}}),Nn()?500:0)},messageActionHandler:function(e){var t=e.action,n=e.message;switch(t.name){case"replyMessage":return this.replyMessage(n);case"editMessage":return this.editMessage(n);case"deleteMessage":return this.$emit("delete-message",n);default:return this.$emit("message-action-handler",{action:t,message:n})}},sendMessageReaction:function(e){this.$emit("send-message-reaction",e)},replyMessage:function(e){this.editedMessage={},this.messageReply=e,this.focusTextarea()},editMessage:function(e){this.resetMessage(),this.editedMessage=u({},e),this.message=e.content,e.files&&(this.files=ye(e.files))},getBottomScroll:function(e){var t=e.scrollHeight,n=e.clientHeight,r=e.scrollTop;return t-n-r},scrollToBottom:function(){var e=this;setTimeout((function(){var t=e.$refs.scrollContainer;t.classList.add("vac-scroll-smooth"),t.scrollTo({top:t.scrollHeight,behavior:"smooth"}),setTimeout((function(){return t.classList.remove("vac-scroll-smooth")}))}),50)},onChangeInput:Hn((function(e){this.message=e.target.value,this.keepKeyboardOpen=!0,this.resizeTextarea(),this.$emit("typing-message",this.message)}),100),resizeTextarea:function(){var e=this.$refs["roomTextarea"];if(e){var t=window.getComputedStyle(e,null).getPropertyValue("padding-top").replace("px","");e.style.height=0,e.style.height=e.scrollHeight-2*t+"px"}},addEmoji:function(e){this.message+=e.unicode,this.focusTextarea(!0)},launchFilePicker:function(){this.$refs.file.value="",this.$refs.file.click()},onPasteImage:function(e){var t,n=this,r=null===(t=e.clipboardData)||void 0===t?void 0:t.items;r&&r.forEach((function(e){if(e.type.includes("image")){var t=e.getAsFile();n.onFileChange([t])}}))},onFileChange:function(e){var t=this;return xe(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:t.fileDialog=!0,t.focusTextarea(),e.forEach(function(){var e=xe(regeneratorRuntime.mark((function e(n){var r,o,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=URL.createObjectURL(n),e.next=3,fetch(r).then((function(e){return e.blob()}));case 3:o=e.sent,a=n.name.lastIndexOf("."),t.files.push({blob:o,name:n.name.substring(0,a),size:n.size,type:n.type,extension:n.name.substring(a+1),localUrl:r});case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),setTimeout((function(){return t.fileDialog=!1}),500);case 4:case"end":return n.stop()}}),n)})))()},removeFile:function(e){this.files.splice(e,1)},initRecorder:function(){return this.isRecording=!1,new Cn({beforeRecording:null,afterRecording:null,pauseRecording:null,micFailed:this.micFailed})},micFailed:function(){this.isRecording=!1,this.recorder=this.initRecorder()},toggleRecorder:function(e){var t=this;if(this.isRecording=e,this.recorder.isRecording)try{this.recorder.stop();var n=this.recorder.records[0];this.files.push({blob:n.blob,name:"audio.".concat(this.format),size:n.blob.size,duration:n.duration,type:n.blob.type,audio:!0,localUrl:URL.createObjectURL(n.blob)}),this.recorder=this.initRecorder(),this.sendMessage()}catch(r){setTimeout((function(){return t.stopRecorder()}),100)}else setTimeout((function(){return t.recorder.start()}),200)},stopRecorder:function(){var e=this;if(this.recorder.isRecording)try{this.recorder.stop(),this.recorder=this.initRecorder()}catch(t){setTimeout((function(){return e.stopRecorder()}),100)}},openFile:function(e){var t=e.message,n=e.file;this.$emit("open-file",{message:t,file:n})},openUserTag:function(e){this.$emit("open-user-tag",e)},textareaActionHandler:function(){this.$emit("textarea-action-handler",this.message)}}},Dn=Fn,Un=v(Dn,he,pe,!1,null,null,null),Vn=Un.exports,qn={ROOMS_EMPTY:"No rooms",ROOM_EMPTY:"No room selected",NEW_MESSAGES:"New Messages",MESSAGE_DELETED:"This message was deleted",MESSAGES_EMPTY:"No messages",CONVERSATION_STARTED:"Conversation started on:",TYPE_MESSAGE:"Type message",SEARCH:"Search",IS_ONLINE:"is online",LAST_SEEN:"last seen ",IS_TYPING:"is writing..."},$n=(n("841c"),{light:{general:{color:"#0a0a0a",backgroundInput:"#fff",colorPlaceholder:"#9ca6af",colorCaret:"#1976d2",colorSpinner:"#333",borderStyle:"1px solid #e1e4e8",backgroundScrollIcon:"#fff"},container:{border:"none",borderRadius:"4px",boxShadow:"0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)"},header:{background:"#fff",colorRoomName:"#0a0a0a",colorRoomInfo:"#9ca6af"},footer:{background:"#f8f9fa",borderStyleInput:"1px solid #e1e4e8",borderInputSelected:"#1976d2",backgroundReply:"#e5e5e6",backgroundTagActive:"#e5e5e6"},content:{background:"#f8f9fa"},sidemenu:{background:"#fff",backgroundHover:"#f6f6f6",backgroundActive:"#e5effa",colorActive:"#1976d2",borderColorSearch:"#e1e5e8"},dropdown:{background:"#fff",backgroundHover:"#f6f6f6"},message:{background:"#fff",backgroundMe:"#ccf2cf",color:"#0a0a0a",colorStarted:"#9ca6af",backgroundDeleted:"#dadfe2",colorDeleted:"#757e85",colorUsername:"#9ca6af",colorTimestamp:"#828c94",backgroundDate:"#e5effa",colorDate:"#505a62",backgroundSystem:"#e5effa",colorSystem:"#505a62",backgroundMedia:"rgba(0, 0, 0, 0.15)",backgroundReply:"rgba(0, 0, 0, 0.08)",colorReplyUsername:"#0a0a0a",colorReply:"#6e6e6e",colorTag:"#0d579c",backgroundImage:"#ddd",colorNewMessages:"#1976d2",backgroundScrollCounter:"#0696c7",colorScrollCounter:"#fff",backgroundReaction:"#eee",borderStyleReaction:"1px solid #eee",backgroundReactionHover:"#fff",borderStyleReactionHover:"1px solid #ddd",colorReactionCounter:"#0a0a0a",backgroundReactionMe:"#cfecf5",borderStyleReactionMe:"1px solid #3b98b8",backgroundReactionHoverMe:"#cfecf5",borderStyleReactionHoverMe:"1px solid #3b98b8",colorReactionCounterMe:"#0b59b3",backgroundAudioRecord:"#eb4034",backgroundAudioLine:"rgba(0, 0, 0, 0.15)",backgroundAudioProgress:"#455247",backgroundAudioProgressSelector:"#455247",colorFileExtension:"#757e85"},markdown:{background:"rgba(239, 239, 239, 0.7)",border:"rgba(212, 212, 212, 0.9)",color:"#e01e5a",colorMulti:"#0a0a0a"},room:{colorUsername:"#0a0a0a",colorMessage:"#67717a",colorTimestamp:"#a2aeb8",colorStateOnline:"#4caf50",colorStateOffline:"#9ca6af",backgroundCounterBadge:"#0696c7",colorCounterBadge:"#fff"},emoji:{background:"#fff"},icons:{search:"#9ca6af",add:"#1976d2",toggle:"#0a0a0a",menu:"#0a0a0a",close:"#9ca6af",closeImage:"#fff",file:"#1976d2",paperclip:"#1976d2",closeOutline:"#000",send:"#1976d2",sendDisabled:"#9ca6af",emoji:"#1976d2",emojiReaction:"rgba(0, 0, 0, 0.3)",document:"#1976d2",pencil:"#9e9e9e",checkmark:"#9e9e9e",checkmarkSeen:"#0696c7",eye:"#fff",dropdownMessage:"#fff",dropdownMessageBackground:"rgba(0, 0, 0, 0.25)",dropdownRoom:"#9e9e9e",dropdownScroll:"#0a0a0a",microphone:"#1976d2",audioPlay:"#455247",audioPause:"#455247",audioCancel:"#eb4034",audioConfirm:"#1ba65b"}},dark:{general:{color:"#fff",backgroundInput:"#202223",colorPlaceholder:"#596269",colorCaret:"#fff",colorSpinner:"#fff",borderStyle:"none",backgroundScrollIcon:"#fff"},container:{border:"none",borderRadius:"4px",boxShadow:"0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)"},header:{background:"#181a1b",colorRoomName:"#fff",colorRoomInfo:"#9ca6af"},footer:{background:"#131415",borderStyleInput:"none",borderInputSelected:"#1976d2",backgroundReply:"#1b1c1c",backgroundTagActive:"#1b1c1c"},content:{background:"#131415"},sidemenu:{background:"#181a1b",backgroundHover:"#202224",backgroundActive:"#151617",colorActive:"#fff",borderColorSearch:"#181a1b"},dropdown:{background:"#2a2c33",backgroundHover:"#26282e"},message:{background:"#22242a",backgroundMe:"#1f7e80",color:"#fff",colorStarted:"#9ca6af",backgroundDeleted:"#1b1c21",colorDeleted:"#a2a5a8",colorUsername:"#b3bac9",colorTimestamp:"#ebedf2",backgroundDate:"rgba(0, 0, 0, 0.3)",colorDate:"#bec5cc",backgroundSystem:"rgba(0, 0, 0, 0.3)",colorSystem:"#bec5cc",backgroundMedia:"rgba(0, 0, 0, 0.18)",backgroundReply:"rgba(0, 0, 0, 0.18)",colorReplyUsername:"#fff",colorReply:"#d6d6d6",colorTag:"#f0c60a",backgroundImage:"#ddd",colorNewMessages:"#fff",backgroundScrollCounter:"#1976d2",colorScrollCounter:"#fff",backgroundReaction:"none",borderStyleReaction:"none",backgroundReactionHover:"#202223",borderStyleReactionHover:"none",colorReactionCounter:"#fff",backgroundReactionMe:"#4e9ad1",borderStyleReactionMe:"none",backgroundReactionHoverMe:"#4e9ad1",borderStyleReactionHoverMe:"none",colorReactionCounterMe:"#fff",backgroundAudioRecord:"#eb4034",backgroundAudioLine:"rgba(255, 255, 255, 0.15)",backgroundAudioProgress:"#b7d4d3",backgroundAudioProgressSelector:"#b7d4d3",colorFileExtension:"#a2a5a8"},markdown:{background:"rgba(239, 239, 239, 0.7)",border:"rgba(212, 212, 212, 0.9)",color:"#e01e5a",colorMulti:"#0a0a0a"},room:{colorUsername:"#fff",colorMessage:"#6c7278",colorTimestamp:"#6c7278",colorStateOnline:"#4caf50",colorStateOffline:"#596269",backgroundCounterBadge:"#1976d2",colorCounterBadge:"#fff"},emoji:{background:"#343740"},icons:{search:"#596269",add:"#fff",toggle:"#fff",menu:"#fff",close:"#9ca6af",closeImage:"#fff",file:"#1976d2",paperclip:"#fff",closeOutline:"#fff",send:"#fff",sendDisabled:"#646a70",emoji:"#fff",emojiReaction:"#fff",document:"#1976d2",pencil:"#ebedf2",checkmark:"#ebedf2",checkmarkSeen:"#f0d90a",eye:"#fff",dropdownMessage:"#fff",dropdownMessageBackground:"rgba(0, 0, 0, 0.25)",dropdownRoom:"#fff",dropdownScroll:"#0a0a0a",microphone:"#fff",audioPlay:"#b7d4d3",audioPause:"#b7d4d3",audioCancel:"#eb4034",audioConfirm:"#1ba65b"}}}),zn=function(e){var t=e.general,n=e.container,r=e.header,o=e.footer,a=e.sidemenu,i=e.content,s=e.dropdown,c=e.message,l=e.markdown,u=e.room,f=e.emoji,d=e.icons;return{"--chat-color":t.color,"--chat-bg-color-input":t.backgroundInput,"--chat-color-spinner":t.colorSpinner,"--chat-color-placeholder":t.colorPlaceholder,"--chat-color-caret":t.colorCaret,"--chat-border-style":t.borderStyle,"--chat-bg-scroll-icon":t.backgroundScrollIcon,"--chat-container-border":n.border,"--chat-container-border-radius":n.borderRadius,"--chat-container-box-shadow":n.boxShadow,"--chat-header-bg-color":r.background,"--chat-header-color-name":r.colorRoomName,"--chat-header-color-info":r.colorRoomInfo,"--chat-footer-bg-color":o.background,"--chat-border-style-input":o.borderStyleInput,"--chat-border-color-input-selected":o.borderInputSelected,"--chat-footer-bg-color-reply":o.backgroundReply,"--chat-footer-bg-color-tag-active":o.backgroundTagActive,"--chat-content-bg-color":i.background,"--chat-sidemenu-bg-color":a.background,"--chat-sidemenu-bg-color-hover":a.backgroundHover,"--chat-sidemenu-bg-color-active":a.backgroundActive,"--chat-sidemenu-color-active":a.colorActive,"--chat-sidemenu-border-color-search":a.borderColorSearch,"--chat-dropdown-bg-color":s.background,"--chat-dropdown-bg-color-hover":s.backgroundHover,"--chat-message-bg-color":c.background,"--chat-message-bg-color-me":c.backgroundMe,"--chat-message-color-started":c.colorStarted,"--chat-message-bg-color-deleted":c.backgroundDeleted,"--chat-message-color-deleted":c.colorDeleted,"--chat-message-color-username":c.colorUsername,"--chat-message-color-timestamp":c.colorTimestamp,"--chat-message-bg-color-date":c.backgroundDate,"--chat-message-color-date":c.colorDate,"--chat-message-bg-color-system":c.backgroundSystem,"--chat-message-color-system":c.colorSystem,"--chat-message-color":c.color,"--chat-message-bg-color-media":c.backgroundMedia,"--chat-message-bg-color-reply":c.backgroundReply,"--chat-message-color-reply-username":c.colorReplyUsername,"--chat-message-color-reply-content":c.colorReply,"--chat-message-color-tag":c.colorTag,"--chat-message-bg-color-image":c.backgroundImage,"--chat-message-color-new-messages":c.colorNewMessages,"--chat-message-bg-color-scroll-counter":c.backgroundScrollCounter,"--chat-message-color-scroll-counter":c.colorScrollCounter,"--chat-message-bg-color-reaction":c.backgroundReaction,"--chat-message-border-style-reaction":c.borderStyleReaction,"--chat-message-bg-color-reaction-hover":c.backgroundReactionHover,"--chat-message-border-style-reaction-hover":c.borderStyleReactionHover,"--chat-message-color-reaction-counter":c.colorReactionCounter,"--chat-message-bg-color-reaction-me":c.backgroundReactionMe,"--chat-message-border-style-reaction-me":c.borderStyleReactionMe,"--chat-message-bg-color-reaction-hover-me":c.backgroundReactionHoverMe,"--chat-message-border-style-reaction-hover-me":c.borderStyleReactionHoverMe,"--chat-message-color-reaction-counter-me":c.colorReactionCounterMe,"--chat-message-bg-color-audio-record":c.backgroundAudioRecord,"--chat-message-bg-color-audio-line":c.backgroundAudioLine,"--chat-message-bg-color-audio-progress":c.backgroundAudioProgress,"--chat-message-bg-color-audio-progress-selector":c.backgroundAudioProgressSelector,"--chat-message-color-file-extension":c.colorFileExtension,"--chat-markdown-bg":l.background,"--chat-markdown-border":l.border,"--chat-markdown-color":l.color,"--chat-markdown-color-multi":l.colorMulti,"--chat-room-color-username":u.colorUsername,"--chat-room-color-message":u.colorMessage,"--chat-room-color-timestamp":u.colorTimestamp,"--chat-room-color-online":u.colorStateOnline,"--chat-room-color-offline":u.colorStateOffline,"--chat-room-bg-color-badge":u.backgroundCounterBadge,"--chat-room-color-badge":u.colorCounterBadge,"--chat-emoji-bg-color":f.background,"--chat-icon-color-search":d.search,"--chat-icon-color-add":d.add,"--chat-icon-color-toggle":d.toggle,"--chat-icon-color-menu":d.menu,"--chat-icon-color-close":d.close,"--chat-icon-color-close-image":d.closeImage,"--chat-icon-color-file":d.file,"--chat-icon-color-paperclip":d.paperclip,"--chat-icon-color-close-outline":d.closeOutline,"--chat-icon-color-send":d.send,"--chat-icon-color-send-disabled":d.sendDisabled,"--chat-icon-color-emoji":d.emoji,"--chat-icon-color-emoji-reaction":d.emojiReaction,"--chat-icon-color-document":d.document,"--chat-icon-color-pencil":d.pencil,"--chat-icon-color-checkmark":d.checkmark,"--chat-icon-color-checkmark-seen":d.checkmarkSeen,"--chat-icon-color-eye":d.eye,"--chat-icon-color-dropdown-message":d.dropdownMessage,"--chat-icon-bg-dropdown-message":d.dropdownMessageBackground,"--chat-icon-color-dropdown-room":d.dropdownRoom,"--chat-icon-color-dropdown-scroll":d.dropdownScroll,"--chat-icon-color-microphone":d.microphone,"--chat-icon-color-audio-play":d.audioPlay,"--chat-icon-color-audio-pause":d.audioPause,"--chat-icon-color-audio-cancel":d.audioCancel,"--chat-icon-color-audio-confirm":d.audioConfirm}},Yn=n("4c1d"),Xn=Yn.roomsValidation,Gn=Yn.partcipantsValidation,Kn={name:"ChatContainer",components:{RoomsList:de,Room:Vn},props:{height:{type:String,default:"600px"},theme:{type:String,default:"light"},styles:{type:Object,default:function(){return{}}},responsiveBreakpoint:{type:Number,default:900},singleRoom:{type:Boolean,default:!1},roomsListOpened:{type:Boolean,default:!0},textMessages:{type:Object,default:null},currentUserId:{type:[String,Number],default:""},rooms:{type:Array,default:function(){return[]}},loadingRooms:{type:Boolean,default:!1},roomsLoaded:{type:Boolean,default:!1},roomId:{type:[String,Number],default:null},loadFirstRoom:{type:Boolean,default:!0},messages:{type:Array,default:function(){return[]}},messagesLoaded:{type:Boolean,default:!1},roomActions:{type:Array,default:function(){return[]}},menuActions:{type:Array,default:function(){return[]}},messageActions:{type:Array,default:function(){return[{name:"replyMessage",title:"Reply"},{name:"editMessage",title:"Edit Message",onlyMe:!0},{name:"deleteMessage",title:"Delete Message",onlyMe:!0}]}},showSearch:{type:Boolean,default:!0},showAddRoom:{type:Boolean,default:!0},showSendIcon:{type:Boolean,default:!0},showFiles:{type:Boolean,default:!0},showAudio:{type:Boolean,default:!0},showEmojis:{type:Boolean,default:!0},showReactionEmojis:{type:Boolean,default:!0},showNewMessagesDivider:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0},textFormatting:{type:Boolean,default:!0},linkOptions:{type:Object,default:function(){return{disabled:!1,target:"_blank"}}},roomInfoEnabled:{type:Boolean,default:!1},textareaActionEnabled:{type:Boolean,default:!1},roomMessage:{type:String,default:""},acceptedFiles:{type:String,default:"*"}},emits:["toggle-rooms-list","room-info","fetch-messages","send-message","edit-message","delete-message","open-file","open-user-tag","menu-action-handler","message-action-handler","send-message-reaction","typing-message","textarea-action-handler","fetch-more-rooms","add-room","room-action-handler"],data:function(){return{room:{},loadingMoreRooms:!1,showRoomsList:!0,isMobile:!1}},computed:{t:function(){return u(u({},qn),this.textMessages)},cssVars:function(){var e=this,t=$n[this.theme],n={};return Object.keys(t).map((function(r){n[r]=u(u({},t[r]),e.styles[r]||{})})),zn(n)},orderedRooms:function(){return this.rooms.slice().sort((function(e,t){var n=e.index||0,r=t.index||0;return n>r?-1:r>n?1:0}))}},watch:{rooms:{immediate:!0,deep:!0,handler:function(e,t){var n=this;if(e[0]&&e.find((function(e){return e.roomId===n.room.roomId}))||(this.showRoomsList=!0),!this.loadingMoreRooms&&this.loadFirstRoom&&e[0]&&(!t||e.length!==t.length))if(this.roomId){var r=e.find((function(e){return e.roomId===n.roomId}))||{};this.fetchRoom({room:r})}else!this.isMobile||this.singleRoom?this.fetchRoom({room:this.orderedRooms[0]}):this.showRoomsList=!0}},loadingRooms:function(e){e&&(this.room={})},roomId:{immediate:!0,handler:function(e,t){if(e&&!this.loadingRooms&&this.rooms.length){var n=this.rooms.find((function(t){return t.roomId===e}));this.fetchRoom({room:n})}else t&&!e&&(this.room={})}},room:function(e){e&&0!==Object.entries(e).length&&(Xn(e),e.users.forEach((function(e){Gn(e)})))},roomsListOpened:function(e){this.showRoomsList=e}},created:function(){var e=this;this.updateResponsive(),window.addEventListener("resize",(function(t){t.isTrusted&&e.updateResponsive()}))},methods:{updateResponsive:function(){this.isMobile=window.innerWidth<this.responsiveBreakpoint},toggleRoomsList:function(){this.showRoomsList=!this.showRoomsList,this.isMobile&&(this.room={}),this.$emit("toggle-rooms-list",{opened:this.showRoomsList})},fetchRoom:function(e){var t=e.room;this.room=t,this.fetchMessages({reset:!0}),this.isMobile&&(this.showRoomsList=!1)},fetchMoreRooms:function(){this.$emit("fetch-more-rooms")},roomInfo:function(){this.$emit("room-info",this.room)},addRoom:function(){this.$emit("add-room")},fetchMessages:function(e){this.$emit("fetch-messages",{room:this.room,options:e})},sendMessage:function(e){this.$emit("send-message",u(u({},e),{},{roomId:this.room.roomId}))},editMessage:function(e){this.$emit("edit-message",u(u({},e),{},{roomId:this.room.roomId}))},deleteMessage:function(e){this.$emit("delete-message",{message:e,roomId:this.room.roomId})},openFile:function(e){var t=e.message,n=e.file;this.$emit("open-file",{message:t,file:n})},openUserTag:function(e){var t=e.user;this.$emit("open-user-tag",{user:t})},menuActionHandler:function(e){this.$emit("menu-action-handler",{action:e,roomId:this.room.roomId})},roomActionHandler:function(e){var t=e.action,n=e.roomId;this.$emit("room-action-handler",{action:t,roomId:n})},messageActionHandler:function(e){this.$emit("message-action-handler",u(u({},e),{},{roomId:this.room.roomId}))},sendMessageReaction:function(e){this.$emit("send-message-reaction",u(u({},e),{},{roomId:this.room.roomId}))},typingMessage:function(e){this.$emit("typing-message",{message:e,roomId:this.room.roomId})},textareaActionHandler:function(e){this.$emit("textarea-action-handler",{message:e,roomId:this.room.roomId})}}},Wn=Kn,Zn=(n("eb23"),v(Wn,i,s,!1,null,null,null)),Qn=Zn.exports;Object.defineProperty(Qn,"install",{configurable:!1,enumerable:!1,value:function(e){e.component("ChatWindow",Qn)}});var Jn=Qn;t["default"]=Jn},fb6a:function(e,t,n){"use strict";var r=n("23e7"),o=n("861d"),a=n("e8b5"),i=n("23cb"),s=n("50c4"),c=n("fc6a"),l=n("8418"),u=n("b622"),f=n("1dde"),d=f("slice"),h=u("species"),p=[].slice,m=Math.max;r({target:"Array",proto:!0,forced:!d},{slice:function(e,t){var n,r,u,f=c(this),d=s(f.length),_=i(e,d),g=i(void 0===t?d:t,d);if(a(f)&&(n=f.constructor,"function"!=typeof n||n!==Array&&!a(n.prototype)?o(n)&&(n=n[h],null===n&&(n=void 0)):n=void 0,n===Array||void 0===n))return p.call(f,_,g);for(r=new(void 0===n?Array:n)(m(g-_,0)),u=0;_<g;_++,u++)_ in f&&l(r,u,f[_]);return r.length=u,r}})},fc6a:function(e,t,n){var r=n("44ad"),o=n("1d80");e.exports=function(e){return r(o(e))}},fce3:function(e,t,n){var r=n("d039");e.exports=r((function(){var e=RegExp(".","string".charAt(0));return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},fd87:function(e,t,n){var r=n("74e8");r("Int8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},fdbc:function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(e,t,n){var r=n("4930");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fea9:function(e,t,n){var r=n("da84");e.exports=r.Promise},ff81:function(e,t,n){var r=n("0206"),o=r.System,a=(r.VbrMode,r.Float,r.ShortBlock,r.Util,r.Arrays,r.new_array_n,r.new_byte,r.new_double,r.new_float,r.new_float_n,r.new_int),i=(r.new_int_n,r.assert,n("4b5e"));function s(e,t,n,r){this.l=a(1+i.SBMAX_l),this.s=a(1+i.SBMAX_s),this.psfb21=a(1+i.PSFB21),this.psfb12=a(1+i.PSFB12);var s=this.l,c=this.s;4==arguments.length&&(this.arrL=arguments[0],this.arrS=arguments[1],this.arr21=arguments[2],this.arr12=arguments[3],o.arraycopy(this.arrL,0,s,0,Math.min(this.arrL.length,this.l.length)),o.arraycopy(this.arrS,0,c,0,Math.min(this.arrS.length,this.s.length)),o.arraycopy(this.arr21,0,this.psfb21,0,Math.min(this.arr21.length,this.psfb21.length)),o.arraycopy(this.arr12,0,this.psfb12,0,Math.min(this.arr12.length,this.psfb12.length)))}e.exports=s}})}));
//# sourceMappingURL=vue-advanced-chat.umd.min.js.map