/* eslint-disable */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("trtc-js-sdk")):"function"==typeof define&&define.amd?define(["trtc-js-sdk"],e):(t=t||self).RTCBeautyPlugin=e(t.TRTC)}(this,(function(t){function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var r=0;r=74)&&(a=S.match(/Chrome\/(\d+)/))&&(u=a[1]);var _=u&&+u,P=!!Object.getOwnPropertySymbols&&!l((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&_&&_<41})),k=P&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,D=k?function(t){return"symbol"==typeof t}:function(t){var e=E("Symbol");return"function"==typeof e&&Object(t)instanceof e},U=function(t,e){try{Object.defineProperty(c,t,{value:e,configurable:!0,writable:!0})}catch(r){c[t]=e}return e},j=c["__core-js_shared__"]||U("__core-js_shared__",{}),L=o((function(t){(t.exports=function(t,e){return j[t]||(j[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.16.0",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),M=function(t){return Object(T(t))},F={}.hasOwnProperty,B=Object.hasOwn||function(t,e){return F.call(M(t),e)},N=0,Y=Math.random(),V=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++N+Y).toString(36)},W=L("wks"),G=c.Symbol,z=k?G:G&&G.withoutSetter||V,$=function(t){return B(W,t)&&(P||"string"==typeof W[t])||(P&&B(G,t)?W[t]=G[t]:W[t]=z("Symbol."+t)),W[t]},X=$("toPrimitive"),H=function(t,e){if(!A(t)||D(t))return t;var r,n=t[X];if(void 0!==n){if(void 0===e&&(e="default"),r=n.call(t,e),!A(r)||D(r))return r;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&"function"==typeof(r=t.toString)&&!A(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!A(n=r.call(t)))return n;if("string"!==e&&"function"==typeof(r=t.toString)&&!A(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")}(t,e)},K=function(t){var e=H(t,"string");return D(e)?e:String(e)},q=c.document,J=A(q)&&A(q.createElement),Q=function(t){return J?q.createElement(t):{}},Z=!f&&!l((function(){return 7!=Object.defineProperty(Q("div"),"a",{get:function(){return 7}}).a})),tt=Object.getOwnPropertyDescriptor,et={f:f?tt:function(t,e){if(t=x(t),e=K(e),Z)try{return tt(t,e)}catch(r){}if(B(t,e))return d(!p.f.call(t,e),t[e])}},rt=function(t){if(!A(t))throw TypeError(String(t)+" is not an object");return t},nt=Object.defineProperty,it={f:f?nt:function(t,e,r){if(rt(t),e=K(e),rt(r),Z)try{return nt(t,e,r)}catch(n){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},ot=f?function(t,e,r){return it.f(t,e,d(1,r))}:function(t,e,r){return t[e]=r,t},at=Function.toString;"function"!=typeof j.inspectSource&&(j.inspectSource=function(t){return at.call(t)});var ut,st,ct,lt=j.inspectSource,ft=c.WeakMap,ht="function"==typeof ft&&/native code/.test(lt(ft)),vt=L("keys"),pt=function(t){return vt[t]||(vt[t]=V(t))},dt={},gt=c.WeakMap;if(ht||j.state){var yt=j.state||(j.state=new gt),bt=yt.get,mt=yt.has,Tt=yt.set;ut=function(t,e){if(mt.call(yt,t))throw new TypeError("Object already initialized");return e.facade=t,Tt.call(yt,t,e),e},st=function(t){return bt.call(yt,t)||{}},ct=function(t){return mt.call(yt,t)}}else{var xt=pt("state");dt[xt]=!0,ut=function(t,e){if(B(t,xt))throw new TypeError("Object already initialized");return e.facade=t,ot(t,xt,e),e},st=function(t){return B(t,xt)?t[xt]:{}},ct=function(t){return B(t,xt)}}var At={set:ut,get:st,has:ct,enforce:function(t){return ct(t)?st(t):ut(t,{})},getterFor:function(t){return function(e){var r;if(!A(e)||(r=st(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},wt=o((function(t){var e=At.get,r=At.enforce,n=String(String).split("String");(t.exports=function(t,e,i,o){var a,u=!!o&&!!o.unsafe,s=!!o&&!!o.enumerable,l=!!o&&!!o.noTargetGet;"function"==typeof i&&("string"!=typeof e||B(i,"name")||ot(i,"name",e),(a=r(i)).source||(a.source=n.join("string"==typeof e?e:""))),t!==c?(u?!l&&t[e]&&(s=!0):delete t[e],s?t[e]=i:ot(t,e,i)):s?t[e]=i:U(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||lt(this)}))})),Et=Math.ceil,St=Math.floor,Ct=function(t){return isNaN(t=+t)?0:(t>0?St:Et)(t)},Ot=Math.min,Rt=function(t){return t>0?Ot(Ct(t),9007199254740991):0},It=Math.max,_t=Math.min,Pt=function(t,e){var r=Ct(t);return r<0?It(r+e,0):_t(r,e)},kt=function(t){return function(e,r,n){var i,o=x(e),a=Rt(o.length),u=Pt(n,a);if(t&&r!=r){for(;a>u;)if((i=o[u++])!=i)return!0}else for(;a>u;u++)if((t||u in o)&&o[u]===r)return t||u||0;return!t&&-1}},Dt={includes:kt(!0),indexOf:kt(!1)},Ut=Dt.indexOf,jt=function(t,e){var r,n=x(t),i=0,o=[];for(r in n)!B(dt,r)&&B(n,r)&&o.push(r);for(;e.length>i;)B(n,r=e[i++])&&(~Ut(o,r)||o.push(r));return o},Lt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Mt=Lt.concat("length","prototype"),Ft={f:Object.getOwnPropertyNames||function(t){return jt(t,Mt)}},Bt={f:Object.getOwnPropertySymbols},Nt=E("Reflect","ownKeys")||function(t){var e=Ft.f(rt(t)),r=Bt.f;return r?e.concat(r(t)):e},Yt=function(t,e){for(var r=Nt(e),n=it.f,i=et.f,o=0;ob;b++)if((u||b in d)&&(v=g(h=d[b],b,p),t))if(e)x[b]=v;else if(v)switch(t){case 3:return!0;case 5:return h;case 6:return b;case 2:re.call(x,h)}else switch(t){case 4:return!1;case 7:re.call(x,h)}return o?-1:n||i?i:x}},ie={forEach:ne(0),map:ne(1),filter:ne(2),some:ne(3),every:ne(4),find:ne(5),findIndex:ne(6),filterReject:ne(7)},oe=$("species"),ae=ie.filter,ue=function(t){return _>=51||!l((function(){var e=[];return(e.constructor={})[oe]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}("filter");qt({target:"Array",proto:!0,forced:!ue},{filter:function(t){return ae(this,t,arguments.length>1?arguments[1]:void 0)}});var se=Date.prototype,ce=se.toString,le=se.getTime;"Invalid Date"!=String(new Date(NaN))&&wt(se,"toString",(function(){var t=le.call(this);return t==t?ce.call(this):"Invalid Date"}));var fe=[].slice,he={},ve=function(t,e,r){if(!(e in he)){for(var n=[],i=0;i2,i=n?de.call(arguments,2):void 0;return t(n?function(){("function"==typeof e?e:Function(e)).apply(this,i)}:e,r)}};qt({global:!0,bind:!0,forced:ge},{setTimeout:ye(c.setTimeout),setInterval:ye(c.setInterval)});var be,me=Object.keys||function(t){return jt(t,Lt)},Te=f?Object.defineProperties:function(t,e){rt(t);for(var r,n=me(e),i=n.length,o=0;i>o;)it.f(t,r=n[o++],e[r]);return t},xe=E("document","documentElement"),Ae=pt("IE_PROTO"),we=function(){},Ee=function(t){return"