@zhangxuejing123./sip-phone-sdk 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,14 @@
1
- (function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["sip-phone-sdk"]=t(require("vue")):e["sip-phone-sdk"]=t(e["Vue"])})("undefined"!==typeof self?self:this,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.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 i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));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")}({"00b4":function(e,t,n){"use strict";n("ac1f");var r=n("23e7"),i=n("c65b"),o=n("1626"),s=n("825a"),a=n("577e"),u=function(){var e=!1,t=/[ac]/;return t.exec=function(){return e=!0,/./.exec.apply(this,arguments)},!0===t.test("abc")&&e}(),c=/./.test;r({target:"RegExp",proto:!0,forced:!u},{test:function(e){var t=s(this),n=a(e),r=t.exec;if(!o(r))return i(c,t,n);var u=i(r,t,n);return null!==u&&(s(u),!0)}})},"00ee":function(e,t,n){"use strict";var r=n("b622"),i=r("toStringTag"),o={};o[i]="z",e.exports="[object z]"===String(o)},"015d":function(e,t,n){"use strict";var r=n("cfe9"),i=n("e330"),o=r.Uint8Array,s=r.SyntaxError,a=r.parseInt,u=Math.min,c=/[^\da-f]/i,l=i(c.exec),d=i("".slice);e.exports=function(e,t){var n=e.length;if(n%2!==0)throw new s("String should be an even number of characters");var r=t?u(t.length,n/2):n/2,i=t||new o(r),h=0,f=0;while(f<r){var p=d(e,h,h+=2);if(l(c,p))throw new s("String should only contain hex characters");i[f++]=a(p,16)}return{bytes:i,read:h}}},"01b4":function(e,t,n){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e){var t=this.head=e.next;return null===t&&(this.tail=null),e.item}}},e.exports=r},"02ec":function(e,t,n){"use strict";var r=n("23e7"),i=n("67b6");r({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==i},{trimLeft:i})},"0366":function(e,t,n){"use strict";var r=n("4625"),i=n("59ed"),o=n("40d5"),s=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?s(e,t):function(){return e.apply(t,arguments)}}},"04f8":function(e,t,n){"use strict";var r=n("1212"),i=n("d039"),o=n("cfe9"),s=o.String;e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol("symbol detection");return!s(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},"057f":function(e,t,n){"use strict";var r=n("c6b6"),i=n("fc6a"),o=n("241c").f,s=n("f36a"),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(e){try{return o(e)}catch(t){return s(a)}};e.exports.f=function(e){return a&&"Window"===r(e)?u(e):o(i(e))}},"06cf":function(e,t,n){"use strict";var r=n("83ab"),i=n("c65b"),o=n("d1e7"),s=n("5c6c"),a=n("fc6a"),u=n("a04b"),c=n("1a2d"),l=n("0cfb"),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=a(e),t=u(t),l)try{return d(e,t)}catch(n){}if(c(e,t))return s(!i(o.f,e,t),e[t])}},"07fa":function(e,t,n){"use strict";var r=n("50c4");e.exports=function(e){return r(e.length)}},"083a":function(e,t,n){"use strict";var r=n("0d51"),i=TypeError;e.exports=function(e,t){if(!delete e[t])throw new i("Cannot delete property "+r(t)+" of "+r(e))}},"0a00":function(e,t,n){"use strict";n("34af")},"0b25":function(e,t,n){"use strict";var r=n("5926"),i=n("50c4"),o=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw new o("Wrong length or index");return n}},"0b42":function(e,t,n){"use strict";var r=n("e8b5"),i=n("68ee"),o=n("861d"),s=n("b622"),a=s("species"),u=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,i(t)&&(t===u||r(t.prototype))?t=void 0:o(t)&&(t=t[a],null===t&&(t=void 0))),void 0===t?u:t}},"0cb2":function(e,t,n){"use strict";var r=n("e330"),i=n("7b0b"),o=Math.floor,s=r("".charAt),a=r("".replace),u=r("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,d,h){var f=n+e.length,p=r.length,v=l;return void 0!==d&&(d=i(d),v=c),a(h,v,(function(i,a){var c;switch(s(a,0)){case"$":return"$";case"&":return e;case"`":return u(t,0,n);case"'":return u(t,f);case"<":c=d[u(a,1,-1)];break;default:var l=+a;if(0===l)return i;if(l>p){var h=o(l/10);return 0===h?i:h<=p?void 0===r[h-1]?s(a,1):r[h-1]+s(a,1):i}c=r[l-1]}return void 0===c?"":c}))}},"0cfb":function(e,t,n){"use strict";var r=n("83ab"),i=n("d039"),o=n("cc12");e.exports=!r&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d26":function(e,t,n){"use strict";var r=n("e330"),i=Error,o=r("".replace),s=function(e){return String(new i(e).stack)}("zxcasd"),a=/\n\s*at [^:]*:[^\n]*/,u=a.test(s);e.exports=function(e,t){if(u&&"string"==typeof e&&!i.prepareStackTrace)while(t--)e=o(e,a,"");return e}},"0d51":function(e,t,n){"use strict";var r=String;e.exports=function(e){try{return r(e)}catch(t){return"Object"}}},"0eb6":function(e,t,n){"use strict";var r=n("23e7"),i=n("d066"),o=n("2a07"),s=n("d039"),a=n("7c73"),u=n("5c6c"),c=n("9bf2").f,l=n("cb2d"),d=n("edd0"),h=n("1a2d"),f=n("19aa"),p=n("825a"),v=n("aa1f"),m=n("e391"),g=n("cf98"),_=n("0d26"),y=n("69f3"),b=n("83ab"),w=n("c430"),T="DOMException",S="DATA_CLONE_ERR",C=i("Error"),E=i(T)||function(){try{var e=i("MessageChannel")||o("worker_threads").MessageChannel;(new e).port1.postMessage(new WeakMap)}catch(t){if(t.name===S&&25===t.code)return t.constructor}}(),A=E&&E.prototype,x=C.prototype,R=y.set,O=y.getterFor(T),I="stack"in new C(T),k=function(e){return h(g,e)&&g[e].m?g[e].c:0},P=function(){f(this,M);var e=arguments.length,t=m(e<1?void 0:arguments[0]),n=m(e<2?void 0:arguments[1],"Error"),r=k(n);if(R(this,{type:T,name:n,message:t,code:r}),b||(this.name=n,this.message=t,this.code=r),I){var i=new C(t);i.name=T,c(this,"stack",u(1,_(i.stack,1)))}},M=P.prototype=a(x),N=function(e){return{enumerable:!0,configurable:!0,get:e}},L=function(e){return N((function(){return O(this)[e]}))};b&&(d(M,"code",L("code")),d(M,"message",L("message")),d(M,"name",L("name"))),c(M,"constructor",u(1,P));var D=s((function(){return!(new E instanceof C)})),U=D||s((function(){return x.toString!==v||"2: 1"!==String(new E(1,2))})),j=D||s((function(){return 25!==new E(1,"DataCloneError").code})),F=D||25!==E[S]||25!==A[S],H=w?U||j||F:D;r({global:!0,constructor:!0,forced:H},{DOMException:H?P:E});var B=i(T),$=B.prototype;for(var q in U&&(w||E===B)&&l($,"toString",v),j&&b&&E===B&&d($,"code",N((function(){return k(p(this).name)}))),g)if(h(g,q)){var V=g[q],z=V.s,W=u(6,V.c);h(B,z)||c(B,z,W),h($,z)||c($,z,W)}},"0f33":function(e,t,n){"use strict";var r=n("cfe9"),i=n("d039"),o=r.RegExp,s=!i((function(){var e=!0;try{o(".","d")}catch(c){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",i=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},s={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(s.hasIndices="d"),s)i(a,s[a]);var u=Object.getOwnPropertyDescriptor(o.prototype,"flags").get.call(t);return u!==r||n!==r}));e.exports={correct:s}},"107c":function(e,t,n){"use strict";var r=n("d039"),i=n("cfe9"),o=i.RegExp;e.exports=r((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},1148:function(e,t,n){"use strict";var r=n("5926"),i=n("577e"),o=n("1d80"),s=RangeError;e.exports=function(e){var t=i(o(this)),n="",a=r(e);if(a<0||a===1/0)throw new s("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(t+=t))1&a&&(n+=t);return n}},"11c1":function(e,t,n){var r=n("c437"),i=n("c64e"),o=i;o.v1=r,o.v4=i,e.exports=o},1212:function(e,t,n){"use strict";var r,i,o=n("cfe9"),s=n("b5db"),a=o.process,u=o.Deno,c=a&&a.versions||u&&u.version,l=c&&c.v8;l&&(r=l.split("."),i=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&s&&(r=s.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/),r&&(i=+r[1]))),e.exports=i},1236:function(e,t,n){"use strict";var r=n("23e7"),i=n("83ab"),o=n("cfe9"),s=n("d066"),a=n("e330"),u=n("c65b"),c=n("1626"),l=n("861d"),d=n("e8b5"),h=n("1a2d"),f=n("577e"),p=n("07fa"),v=n("8418"),m=n("d039"),g=n("d24a"),_=n("04f8"),y=o.JSON,b=o.Number,w=o.SyntaxError,T=y&&y.parse,S=s("Object","keys"),C=Object.getOwnPropertyDescriptor,E=a("".charAt),A=a("".slice),x=a(/./.exec),R=a([].push),O=/^\d$/,I=/^[1-9]$/,k=/^[\d-]$/,P=/^[\t\n\r ]$/,M=0,N=1,L=function(e,t){e=f(e);var n=new F(e,0,""),r=n.parse(),i=r.value,o=n.skip(P,r.end);if(o<e.length)throw new w('Unexpected extra character: "'+E(e,o)+'" after the parsed data at: '+o);return c(t)?D({"":i},"",t,r):i},D=function(e,t,n,r){var i,o,s,a,c,f=e[t],v=r&&f===r.value,m=v&&"string"==typeof r.source?{source:r.source}:{};if(l(f)){var g=d(f),_=v?r.nodes:g?[]:{};if(g)for(i=_.length,s=p(f),a=0;a<s;a++)U(f,a,D(f,""+a,n,a<i?_[a]:void 0));else for(o=S(f),s=p(o),a=0;a<s;a++)c=o[a],U(f,c,D(f,c,n,h(_,c)?_[c]:void 0))}return u(n,e,t,f,m)},U=function(e,t,n){if(i){var r=C(e,t);if(r&&!r.configurable)return}void 0===n?delete e[t]:v(e,t,n)},j=function(e,t,n,r){this.value=e,this.end=t,this.source=n,this.nodes=r},F=function(e,t){this.source=e,this.index=t};F.prototype={fork:function(e){return new F(this.source,e)},parse:function(){var e=this.source,t=this.skip(P,this.index),n=this.fork(t),r=E(e,t);if(x(k,r))return n.number();switch(r){case"{":return n.object();case"[":return n.array();case'"':return n.string();case"t":return n.keyword(!0);case"f":return n.keyword(!1);case"n":return n.keyword(null)}throw new w('Unexpected character: "'+r+'" at: '+t)},node:function(e,t,n,r,i){return new j(t,r,e?null:A(this.source,n,r),i)},object:function(){var e=this.source,t=this.index+1,n=!1,r={},i={};while(t<e.length){if(t=this.until(['"',"}"],t),"}"===E(e,t)&&!n){t++;break}var o=this.fork(t).string(),s=o.value;t=o.end,t=this.until([":"],t)+1,t=this.skip(P,t),o=this.fork(t).parse(),v(i,s,o),v(r,s,o.value),t=this.until([",","}"],o.end);var a=E(e,t);if(","===a)n=!0,t++;else if("}"===a){t++;break}}return this.node(N,r,this.index,t,i)},array:function(){var e=this.source,t=this.index+1,n=!1,r=[],i=[];while(t<e.length){if(t=this.skip(P,t),"]"===E(e,t)&&!n){t++;break}var o=this.fork(t).parse();if(R(i,o),R(r,o.value),t=this.until([",","]"],o.end),","===E(e,t))n=!0,t++;else if("]"===E(e,t)){t++;break}}return this.node(N,r,this.index,t,i)},string:function(){var e=this.index,t=g(this.source,this.index+1);return this.node(M,t.value,e,t.end)},number:function(){var e=this.source,t=this.index,n=t;if("-"===E(e,n)&&n++,"0"===E(e,n))n++;else{if(!x(I,E(e,n)))throw new w("Failed to parse number at: "+n);n=this.skip(O,n+1)}if("."===E(e,n)&&(n=this.skip(O,n+1)),"e"===E(e,n)||"E"===E(e,n)){n++,"+"!==E(e,n)&&"-"!==E(e,n)||n++;var r=n;if(n=this.skip(O,n),r===n)throw new w("Failed to parse number's exponent value at: "+n)}return this.node(M,b(A(e,t,n)),t,n)},keyword:function(e){var t=""+e,n=this.index,r=n+t.length;if(A(this.source,n,r)!==t)throw new w("Failed to parse value at: "+n);return this.node(M,e,n,r)},skip:function(e,t){for(var n=this.source;t<n.length;t++)if(!x(e,E(n,t)))break;return t},until:function(e,t){t=this.skip(P,t);for(var n=E(this.source,t),r=0;r<e.length;r++)if(e[r]===n)return t;throw new w('Unexpected character: "'+n+'" at: '+t)}};var H=m((function(){var e,t="9007199254740993";return T(t,(function(t,n,r){e=r.source})),e!==t})),B=_&&!m((function(){return 1/T("-0 \t")!==-1/0}));r({target:"JSON",stat:!0,forced:H},{parse:function(e,t){return B&&!c(t)?T(e):L(e,t)}})},1276:function(e,t,n){"use strict";var r=n("c65b"),i=n("e330"),o=n("d784"),s=n("825a"),a=n("861d"),u=n("1d80"),c=n("4840"),l=n("8aa5"),d=n("50c4"),h=n("577e"),f=n("dc4a"),p=n("14c3"),v=n("9f7f"),m=n("d039"),g=v.UNSUPPORTED_Y,_=4294967295,y=Math.min,b=i([].push),w=i("".slice),T=!m((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),S="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;o("split",(function(e,t,n){var i="0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:r(t,this,e,n)}:t;return[function(t,n){var o=u(this),s=a(t)?f(t,e):void 0;return s?r(s,t,o,n):r(i,h(o),t,n)},function(e,r){var o=s(this),a=h(e);if(!S){var u=n(i,o,a,r,i!==t);if(u.done)return u.value}var f=c(o,RegExp),v=o.unicode,m=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(g?"g":"y"),T=new f(g?"^(?:"+o.source+")":o,m),C=void 0===r?_:r>>>0;if(0===C)return[];if(0===a.length)return null===p(T,a)?[a]:[];var E=0,A=0,x=[];while(A<a.length){T.lastIndex=g?0:A;var R,O=p(T,g?w(a,A):a);if(null===O||(R=y(d(T.lastIndex+(g?A:0)),a.length))===E)A=l(a,A,v);else{if(b(x,w(a,E,A)),x.length===C)return x;for(var I=1;I<=O.length-1;I++)if(b(x,O[I]),x.length===C)return x;A=E=R}}return b(x,w(a,E)),x}]}),S||!T,g)},"129f":function(e,t,n){"use strict";e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}},"13a6":function(e,t,n){"use strict";var r=Math.round;e.exports=function(e){var t=r(e);return t<0?0:t>255?255:255&t}},"13d2":function(e,t,n){"use strict";var r=n("e330"),i=n("d039"),o=n("1626"),s=n("1a2d"),a=n("83ab"),u=n("5e77").CONFIGURABLE,c=n("8925"),l=n("69f3"),d=l.enforce,h=l.get,f=String,p=Object.defineProperty,v=r("".slice),m=r("".replace),g=r([].join),_=a&&!i((function(){return 8!==p((function(){}),"length",{value:8}).length})),y=String(String).split("String"),b=e.exports=function(e,t,n){"Symbol("===v(f(t),0,7)&&(t="["+m(f(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!s(e,"name")||u&&e.name!==t)&&(a?p(e,"name",{value:t,configurable:!0}):e.name=t),_&&n&&s(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&s(n,"constructor")&&n.constructor?a&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var r=d(e);return s(r,"source")||(r.source=g(y,"string"==typeof t?t:"")),e};Function.prototype.toString=b((function(){return o(this)&&h(this).source||c(this)}),"toString")},"13d5":function(e,t,n){"use strict";var r=n("23e7"),i=n("d58f").left,o=n("a640"),s=n("1212"),a=n("9adc"),u=!a&&s>79&&s<83,c=u||!o("reduce");r({target:"Array",proto:!0,forced:c},{reduce:function(e){var t=arguments.length;return i(this,e,t,t>1?arguments[1]:void 0)}})},"14c3":function(e,t,n){"use strict";var r=n("c65b"),i=n("825a"),o=n("1626"),s=n("c6b6"),a=n("9263"),u=TypeError;e.exports=function(e,t){var n=e.exec;if(o(n)){var c=r(n,e,t);return null!==c&&i(c),c}if("RegExp"===s(e))return r(a,e,t);throw new u("RegExp#exec called on incompatible receiver")}},"14d9":function(e,t,n){"use strict";var r=n("23e7"),i=n("7b0b"),o=n("07fa"),s=n("3a34"),a=n("3511"),u=n("d039"),c=u((function(){return 4294967297!==[].push.call({length:4294967296},1)})),l=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},d=c||!l();r({target:"Array",proto:!0,arity:1,forced:d},{push:function(e){var t=i(this),n=o(t),r=arguments.length;a(n+r);for(var u=0;u<r;u++)t[n]=arguments[u],n++;return s(t,n),n}})},"14e5":function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),o=n("59ed"),s=n("f069"),a=n("e667"),u=n("2266"),c=n("5eed");r({target:"Promise",stat:!0,forced:c},{all:function(e){var t=this,n=s.f(t),r=n.resolve,c=n.reject,l=a((function(){var n=o(t.resolve),s=[],a=0,l=1;u(e,(function(e){var o=a++,u=!1;l++,i(n,t,e).then((function(e){u||(u=!0,s[o]=e,--l||r(s))}),c)})),--l||r(s)}));return l.error&&c(l.value),n.promise}})},"157a":function(e,t,n){"use strict";var r=n("cfe9"),i=n("83ab"),o=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!i)return r[e];var t=o(r,e);return t&&t.value}},"159b":function(e,t,n){"use strict";var r=n("cfe9"),i=n("fdbc"),o=n("785a"),s=n("17c2"),a=n("9112"),u=function(e){if(e&&e.forEach!==s)try{a(e,"forEach",s)}catch(t){e.forEach=s}};for(var c in i)i[c]&&u(r[c]&&r[c].prototype);u(o)},1626:function(e,t,n){"use strict";var r="object"==typeof document&&document.all;e.exports="undefined"==typeof r&&void 0!==r?function(e){return"function"==typeof e||e===r}:function(e){return"function"==typeof e}},1787:function(e,t,n){"use strict";var r=n("861d");e.exports=function(e){return r(e)||null===e}},"17c2":function(e,t,n){"use strict";var r=n("b727").forEach,i=n("a640"),o=i("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},"182d":function(e,t,n){"use strict";var r=n("f8cd"),i=RangeError;e.exports=function(e,t){var n=r(e);if(n%t)throw new i("Wrong offset");return n}},"19aa":function(e,t,n){"use strict";var r=n("3a9b"),i=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new i("Incorrect invocation")}},"1a2d":function(e,t,n){"use strict";var r=n("e330"),i=n("7b0b"),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},"1be4":function(e,t,n){"use strict";var r=n("d066");e.exports=r("document","documentElement")},"1c59":function(e,t,n){"use strict";var r=n("6d61"),i=n("6566");r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},"1c7e":function(e,t,n){"use strict";var r=n("b622"),i=r("iterator"),o=!1;try{var s=0,a={next:function(){return{done:!!s++}},return:function(){o=!0}};a[i]=function(){return this},Array.from(a,(function(){throw 2}))}catch(u){}e.exports=function(e,t){try{if(!t&&!o)return!1}catch(u){return!1}var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(u){}return n}},"1d02":function(e,t,n){"use strict";var r=n("ebb5"),i=n("a258").findLastIndex,o=r.aTypedArray,s=r.exportTypedArrayMethod;s("findLastIndex",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},"1d80":function(e,t,n){"use strict";var r=n("7234"),i=TypeError;e.exports=function(e){if(r(e))throw new i("Can't call method on "+e);return e}},"1e5a":function(e,t,n){"use strict";var r=n("23e7"),i=n("9961"),o=n("5320"),s=n("dad2"),a=!s("symmetricDifference")||!o("symmetricDifference");r({target:"Set",proto:!0,real:!0,forced:a},{symmetricDifference:i})},"1e70":function(e,t,n){"use strict";var r=n("23e7"),i=n("a5f7"),o=n("d039"),s=n("dad2"),a=!s("difference",(function(e){return 0===e.size})),u=a||o((function(){var e={size:1,has:function(){return!0},keys:function(){var e=0;return{next:function(){var n=e++>1;return t.has(1)&&t.clear(),{done:n,value:2}}}}},t=new Set([1,2,3,4]);return 3!==t.difference(e).size}));r({target:"Set",proto:!0,real:!0,forced:u},{difference:i})},"1fb5":function(e,t,n){"use strict";t.byteLength=l,t.toByteArray=h,t.fromByteArray=v;for(var r=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=s.length;a<u;++a)r[a]=s[a],i[s.charCodeAt(a)]=a;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function l(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function d(e,t,n){return 3*(t+n)/4-n}function h(e){var t,n,r=c(e),s=r[0],a=r[1],u=new o(d(e,s,a)),l=0,h=a>0?s-4:s;for(n=0;n<h;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],u[l++]=t>>16&255,u[l++]=t>>8&255,u[l++]=255&t;return 2===a&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,u[l++]=255&t),1===a&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t),u}function f(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function p(e,t,n){for(var r,i=[],o=t;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(f(r));return i.join("")}function v(e){for(var t,n=e.length,i=n%3,o=[],s=16383,a=0,u=n-i;a<u;a+=s)o.push(p(e,a,a+s>u?u:a+s));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},2005:function(e,t,n){"use strict";var r=n("75bd"),i=TypeError;e.exports=function(e){if(r(e))throw new i("ArrayBuffer is detached");return e}},"20bf":function(e,t,n){"use strict";var r=n("8aa7"),i=n("ebb5").exportTypedArrayStaticMethod,o=n("a078");i("from",o,r)},"219c":function(e,t,n){"use strict";var r=n("cfe9"),i=n("4625"),o=n("d039"),s=n("59ed"),a=n("addb"),u=n("ebb5"),c=n("3f7e"),l=n("99f4"),d=n("1212"),h=n("ea83"),f=u.aTypedArray,p=u.exportTypedArrayMethod,v=r.Uint16Array,m=v&&i(v.prototype.sort),g=!!m&&!(o((function(){m(new v(2),null)}))&&o((function(){m(new v(2),{})}))),_=!!m&&!o((function(){if(d)return d<74;if(c)return c<67;if(l)return!0;if(h)return h<602;var e,t,n=new v(516),r=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(m(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==r[e])return!0})),y=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){return void 0!==e&&s(e),_?m(this,e):a(f(this),y(e))}),!_||g)},2266:function(e,t,n){"use strict";var r=n("0366"),i=n("c65b"),o=n("825a"),s=n("0d51"),a=n("e95a"),u=n("07fa"),c=n("3a9b"),l=n("9a1f"),d=n("35a1"),h=n("2a62"),f=TypeError,p=function(e,t){this.stopped=e,this.result=t},v=p.prototype;e.exports=function(e,t,n){var m,g,_,y,b,w,T,S=n&&n.that,C=!(!n||!n.AS_ENTRIES),E=!(!n||!n.IS_RECORD),A=!(!n||!n.IS_ITERATOR),x=!(!n||!n.INTERRUPTED),R=r(t,S),O=function(e){return m&&h(m,"normal"),new p(!0,e)},I=function(e){return C?(o(e),x?R(e[0],e[1],O):R(e[0],e[1])):x?R(e,O):R(e)};if(E)m=e.iterator;else if(A)m=e;else{if(g=d(e),!g)throw new f(s(e)+" is not iterable");if(a(g)){for(_=0,y=u(e);y>_;_++)if(b=I(e[_]),b&&c(v,b))return b;return new p(!1)}m=l(e,g)}w=E?e.next:m.next;while(!(T=i(w,m)).done){try{b=I(T.value)}catch(k){h(m,"throw",k)}if("object"==typeof b&&b&&c(v,b))return b}return new p(!1)}},2366:function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);function i(e,t){var r=t||0,i=n;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}e.exports=i},"23cb":function(e,t,n){"use strict";var r=n("5926"),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},"23e7":function(e,t,n){"use strict";var r=n("cfe9"),i=n("06cf").f,o=n("9112"),s=n("cb2d"),a=n("6374"),u=n("e893"),c=n("94ca");e.exports=function(e,t){var n,l,d,h,f,p,v=e.target,m=e.global,g=e.stat;if(l=m?r:g?r[v]||a(v,{}):r[v]&&r[v].prototype,l)for(d in t){if(f=t[d],e.dontCallGetSet?(p=i(l,d),h=p&&p.value):h=l[d],n=c(m?d:v+(g?".":"#")+d,e.forced),!n&&void 0!==h){if(typeof f==typeof h)continue;u(f,h)}(e.sham||h&&h.sham)&&o(f,"sham",!0),s(l,d,f,e)}}},2419:function(e,t,n){"use strict";n("f38e")},"241c":function(e,t,n){"use strict";var r=n("ca84"),i=n("7839"),o=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},"249d":function(e,t,n){"use strict";var r=n("23e7"),i=n("41f6");i&&r({target:"ArrayBuffer",proto:!0},{transfer:function(){return i(this,arguments.length?arguments[0]:void 0,!0)}})},2532:function(e,t,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("5a34"),s=n("1d80"),a=n("577e"),u=n("ab13"),c=i("".indexOf);r({target:"String",proto:!0,forced:!u("includes")},{includes:function(e){return!!~c(a(s(this)),a(o(e)),arguments.length>1?arguments[1]:void 0)}})},"25a8":function(e,t,n){},"25f0":function(e,t,n){"use strict";var r=n("5e77").PROPER,i=n("cb2d"),o=n("825a"),s=n("577e"),a=n("d039"),u=n("90d8"),c="toString",l=RegExp.prototype,d=l[c],h=a((function(){return"/a/b"!==d.call({source:"a",flags:"b"})})),f=r&&d.name!==c;(h||f)&&i(l,c,(function(){var e=o(this),t=s(e.source),n=s(u(e));return"/"+t+"/"+n}),{unsafe:!0})},2626:function(e,t,n){"use strict";var r=n("d066"),i=n("edd0"),o=n("b622"),s=n("83ab"),a=o("species");e.exports=function(e){var t=r(e);s&&t&&!t[a]&&i(t,a,{configurable:!0,get:function(){return this}})}},"26e9":function(e,t,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("e8b5"),s=i([].reverse),a=[1,2];r({target:"Array",proto:!0,forced:String(a)===String(a.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),s(this)}})},"271a":function(e,t,n){"use strict";var r=n("cb2d"),i=n("e330"),o=n("577e"),s=n("d6d6"),a=URLSearchParams,u=a.prototype,c=i(u.getAll),l=i(u.has),d=new a("a=1");!d.has("a",2)&&d.has("a",void 0)||r(u,"has",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return l(this,e);var r=c(this,e);s(t,1);var i=o(n),a=0;while(a<r.length)if(r[a++]===i)return!0;return!1}),{enumerable:!0,unsafe:!0})},"282b":function(e,t,n){"use strict";const r={generateIdentifier:function(){return Math.random().toString(36).substring(2,12)}};r.localCName=r.generateIdentifier(),r.splitLines=function(e){return e.trim().split("\n").map(e=>e.trim())},r.splitSections=function(e){const t=e.split("\nm=");return t.map((e,t)=>(t>0?"m="+e:e).trim()+"\r\n")},r.getDescription=function(e){const t=r.splitSections(e);return t&&t[0]},r.getMediaSections=function(e){const t=r.splitSections(e);return t.shift(),t},r.matchPrefix=function(e,t){return r.splitLines(e).filter(e=>0===e.indexOf(t))},r.parseCandidate=function(e){let t;t=0===e.indexOf("a=candidate:")?e.substring(12).split(" "):e.substring(10).split(" ");const n={foundation:t[0],component:{1:"rtp",2:"rtcp"}[t[1]]||t[1],protocol:t[2].toLowerCase(),priority:parseInt(t[3],10),ip:t[4],address:t[4],port:parseInt(t[5],10),type:t[7]};for(let r=8;r<t.length;r+=2)switch(t[r]){case"raddr":n.relatedAddress=t[r+1];break;case"rport":n.relatedPort=parseInt(t[r+1],10);break;case"tcptype":n.tcpType=t[r+1];break;case"ufrag":n.ufrag=t[r+1],n.usernameFragment=t[r+1];break;default:void 0===n[t[r]]&&(n[t[r]]=t[r+1]);break}return n},r.writeCandidate=function(e){const t=[];t.push(e.foundation);const n=e.component;"rtp"===n?t.push(1):"rtcp"===n?t.push(2):t.push(n),t.push(e.protocol.toUpperCase()),t.push(e.priority),t.push(e.address||e.ip),t.push(e.port);const r=e.type;return t.push("typ"),t.push(r),"host"!==r&&e.relatedAddress&&e.relatedPort&&(t.push("raddr"),t.push(e.relatedAddress),t.push("rport"),t.push(e.relatedPort)),e.tcpType&&"tcp"===e.protocol.toLowerCase()&&(t.push("tcptype"),t.push(e.tcpType)),(e.usernameFragment||e.ufrag)&&(t.push("ufrag"),t.push(e.usernameFragment||e.ufrag)),"candidate:"+t.join(" ")},r.parseIceOptions=function(e){return e.substring(14).split(" ")},r.parseRtpMap=function(e){let t=e.substring(9).split(" ");const n={payloadType:parseInt(t.shift(),10)};return t=t[0].split("/"),n.name=t[0],n.clockRate=parseInt(t[1],10),n.channels=3===t.length?parseInt(t[2],10):1,n.numChannels=n.channels,n},r.writeRtpMap=function(e){let t=e.payloadType;void 0!==e.preferredPayloadType&&(t=e.preferredPayloadType);const n=e.channels||e.numChannels||1;return"a=rtpmap:"+t+" "+e.name+"/"+e.clockRate+(1!==n?"/"+n:"")+"\r\n"},r.parseExtmap=function(e){const t=e.substring(9).split(" ");return{id:parseInt(t[0],10),direction:t[0].indexOf("/")>0?t[0].split("/")[1]:"sendrecv",uri:t[1],attributes:t.slice(2).join(" ")}},r.writeExtmap=function(e){return"a=extmap:"+(e.id||e.preferredId)+(e.direction&&"sendrecv"!==e.direction?"/"+e.direction:"")+" "+e.uri+(e.attributes?" "+e.attributes:"")+"\r\n"},r.parseFmtp=function(e){const t={};let n;const r=e.substring(e.indexOf(" ")+1).split(";");for(let i=0;i<r.length;i++)n=r[i].trim().split("="),t[n[0].trim()]=n[1];return t},r.writeFmtp=function(e){let t="",n=e.payloadType;if(void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.parameters&&Object.keys(e.parameters).length){const r=[];Object.keys(e.parameters).forEach(t=>{void 0!==e.parameters[t]?r.push(t+"="+e.parameters[t]):r.push(t)}),t+="a=fmtp:"+n+" "+r.join(";")+"\r\n"}return t},r.parseRtcpFb=function(e){const t=e.substring(e.indexOf(" ")+1).split(" ");return{type:t.shift(),parameter:t.join(" ")}},r.writeRtcpFb=function(e){let t="",n=e.payloadType;return void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.rtcpFeedback&&e.rtcpFeedback.length&&e.rtcpFeedback.forEach(e=>{t+="a=rtcp-fb:"+n+" "+e.type+(e.parameter&&e.parameter.length?" "+e.parameter:"")+"\r\n"}),t},r.parseSsrcMedia=function(e){const t=e.indexOf(" "),n={ssrc:parseInt(e.substring(7,t),10)},r=e.indexOf(":",t);return r>-1?(n.attribute=e.substring(t+1,r),n.value=e.substring(r+1)):n.attribute=e.substring(t+1),n},r.parseSsrcGroup=function(e){const t=e.substring(13).split(" ");return{semantics:t.shift(),ssrcs:t.map(e=>parseInt(e,10))}},r.getMid=function(e){const t=r.matchPrefix(e,"a=mid:")[0];if(t)return t.substring(6)},r.parseFingerprint=function(e){const t=e.substring(14).split(" ");return{algorithm:t[0].toLowerCase(),value:t[1].toUpperCase()}},r.getDtlsParameters=function(e,t){const n=r.matchPrefix(e+t,"a=fingerprint:");return{role:"auto",fingerprints:n.map(r.parseFingerprint)}},r.writeDtlsParameters=function(e,t){let n="a=setup:"+t+"\r\n";return e.fingerprints.forEach(e=>{n+="a=fingerprint:"+e.algorithm+" "+e.value+"\r\n"}),n},r.parseCryptoLine=function(e){const t=e.substring(9).split(" ");return{tag:parseInt(t[0],10),cryptoSuite:t[1],keyParams:t[2],sessionParams:t.slice(3)}},r.writeCryptoLine=function(e){return"a=crypto:"+e.tag+" "+e.cryptoSuite+" "+("object"===typeof e.keyParams?r.writeCryptoKeyParams(e.keyParams):e.keyParams)+(e.sessionParams?" "+e.sessionParams.join(" "):"")+"\r\n"},r.parseCryptoKeyParams=function(e){if(0!==e.indexOf("inline:"))return null;const t=e.substring(7).split("|");return{keyMethod:"inline",keySalt:t[0],lifeTime:t[1],mkiValue:t[2]?t[2].split(":")[0]:void 0,mkiLength:t[2]?t[2].split(":")[1]:void 0}},r.writeCryptoKeyParams=function(e){return e.keyMethod+":"+e.keySalt+(e.lifeTime?"|"+e.lifeTime:"")+(e.mkiValue&&e.mkiLength?"|"+e.mkiValue+":"+e.mkiLength:"")},r.getCryptoParameters=function(e,t){const n=r.matchPrefix(e+t,"a=crypto:");return n.map(r.parseCryptoLine)},r.getIceParameters=function(e,t){const n=r.matchPrefix(e+t,"a=ice-ufrag:")[0],i=r.matchPrefix(e+t,"a=ice-pwd:")[0];return n&&i?{usernameFragment:n.substring(12),password:i.substring(10)}:null},r.writeIceParameters=function(e){let t="a=ice-ufrag:"+e.usernameFragment+"\r\na=ice-pwd:"+e.password+"\r\n";return e.iceLite&&(t+="a=ice-lite\r\n"),t},r.parseRtpParameters=function(e){const t={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},n=r.splitLines(e),i=n[0].split(" ");t.profile=i[2];for(let s=3;s<i.length;s++){const n=i[s],o=r.matchPrefix(e,"a=rtpmap:"+n+" ")[0];if(o){const i=r.parseRtpMap(o),s=r.matchPrefix(e,"a=fmtp:"+n+" ");switch(i.parameters=s.length?r.parseFmtp(s[0]):{},i.rtcpFeedback=r.matchPrefix(e,"a=rtcp-fb:"+n+" ").map(r.parseRtcpFb),t.codecs.push(i),i.name.toUpperCase()){case"RED":case"ULPFEC":t.fecMechanisms.push(i.name.toUpperCase());break;default:break}}}r.matchPrefix(e,"a=extmap:").forEach(e=>{t.headerExtensions.push(r.parseExtmap(e))});const o=r.matchPrefix(e,"a=rtcp-fb:* ").map(r.parseRtcpFb);return t.codecs.forEach(e=>{o.forEach(t=>{const n=e.rtcpFeedback.find(e=>e.type===t.type&&e.parameter===t.parameter);n||e.rtcpFeedback.push(t)})}),t},r.writeRtpDescription=function(e,t){let n="";n+="m="+e+" ",n+=t.codecs.length>0?"9":"0",n+=" "+(t.profile||"UDP/TLS/RTP/SAVPF")+" ",n+=t.codecs.map(e=>void 0!==e.preferredPayloadType?e.preferredPayloadType:e.payloadType).join(" ")+"\r\n",n+="c=IN IP4 0.0.0.0\r\n",n+="a=rtcp:9 IN IP4 0.0.0.0\r\n",t.codecs.forEach(e=>{n+=r.writeRtpMap(e),n+=r.writeFmtp(e),n+=r.writeRtcpFb(e)});let i=0;return t.codecs.forEach(e=>{e.maxptime>i&&(i=e.maxptime)}),i>0&&(n+="a=maxptime:"+i+"\r\n"),t.headerExtensions&&t.headerExtensions.forEach(e=>{n+=r.writeExtmap(e)}),n},r.parseRtpEncodingParameters=function(e){const t=[],n=r.parseRtpParameters(e),i=-1!==n.fecMechanisms.indexOf("RED"),o=-1!==n.fecMechanisms.indexOf("ULPFEC"),s=r.matchPrefix(e,"a=ssrc:").map(e=>r.parseSsrcMedia(e)).filter(e=>"cname"===e.attribute),a=s.length>0&&s[0].ssrc;let u;const c=r.matchPrefix(e,"a=ssrc-group:FID").map(e=>{const t=e.substring(17).split(" ");return t.map(e=>parseInt(e,10))});c.length>0&&c[0].length>1&&c[0][0]===a&&(u=c[0][1]),n.codecs.forEach(e=>{if("RTX"===e.name.toUpperCase()&&e.parameters.apt){let n={ssrc:a,codecPayloadType:parseInt(e.parameters.apt,10)};a&&u&&(n.rtx={ssrc:u}),t.push(n),i&&(n=JSON.parse(JSON.stringify(n)),n.fec={ssrc:a,mechanism:o?"red+ulpfec":"red"},t.push(n))}}),0===t.length&&a&&t.push({ssrc:a});let l=r.matchPrefix(e,"b=");return l.length&&(l=0===l[0].indexOf("b=TIAS:")?parseInt(l[0].substring(7),10):0===l[0].indexOf("b=AS:")?1e3*parseInt(l[0].substring(5),10)*.95-16e3:void 0,t.forEach(e=>{e.maxBitrate=l})),t},r.parseRtcpParameters=function(e){const t={},n=r.matchPrefix(e,"a=ssrc:").map(e=>r.parseSsrcMedia(e)).filter(e=>"cname"===e.attribute)[0];n&&(t.cname=n.value,t.ssrc=n.ssrc);const i=r.matchPrefix(e,"a=rtcp-rsize");t.reducedSize=i.length>0,t.compound=0===i.length;const o=r.matchPrefix(e,"a=rtcp-mux");return t.mux=o.length>0,t},r.writeRtcpParameters=function(e){let t="";return e.reducedSize&&(t+="a=rtcp-rsize\r\n"),e.mux&&(t+="a=rtcp-mux\r\n"),void 0!==e.ssrc&&e.cname&&(t+="a=ssrc:"+e.ssrc+" cname:"+e.cname+"\r\n"),t},r.parseMsid=function(e){let t;const n=r.matchPrefix(e,"a=msid:");if(1===n.length)return t=n[0].substring(7).split(" "),{stream:t[0],track:t[1]};const i=r.matchPrefix(e,"a=ssrc:").map(e=>r.parseSsrcMedia(e)).filter(e=>"msid"===e.attribute);return i.length>0?(t=i[0].value.split(" "),{stream:t[0],track:t[1]}):void 0},r.parseSctpDescription=function(e){const t=r.parseMLine(e),n=r.matchPrefix(e,"a=max-message-size:");let i;n.length>0&&(i=parseInt(n[0].substring(19),10)),isNaN(i)&&(i=65536);const o=r.matchPrefix(e,"a=sctp-port:");if(o.length>0)return{port:parseInt(o[0].substring(12),10),protocol:t.fmt,maxMessageSize:i};const s=r.matchPrefix(e,"a=sctpmap:");if(s.length>0){const e=s[0].substring(10).split(" ");return{port:parseInt(e[0],10),protocol:e[1],maxMessageSize:i}}},r.writeSctpDescription=function(e,t){let n=[];return n="DTLS/SCTP"!==e.protocol?["m="+e.kind+" 9 "+e.protocol+" "+t.protocol+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctp-port:"+t.port+"\r\n"]:["m="+e.kind+" 9 "+e.protocol+" "+t.port+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctpmap:"+t.port+" "+t.protocol+" 65535\r\n"],void 0!==t.maxMessageSize&&n.push("a=max-message-size:"+t.maxMessageSize+"\r\n"),n.join("")},r.generateSessionId=function(){return Math.random().toString().substr(2,22)},r.writeSessionBoilerplate=function(e,t,n){let i;const o=void 0!==t?t:2;i=e||r.generateSessionId();const s=n||"thisisadapterortc";return"v=0\r\no="+s+" "+i+" "+o+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},r.getDirection=function(e,t){const n=r.splitLines(e);for(let r=0;r<n.length;r++)switch(n[r]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return n[r].substring(2);default:}return t?r.getDirection(t):"sendrecv"},r.getKind=function(e){const t=r.splitLines(e),n=t[0].split(" ");return n[0].substring(2)},r.isRejected=function(e){return"0"===e.split(" ",2)[1]},r.parseMLine=function(e){const t=r.splitLines(e),n=t[0].substring(2).split(" ");return{kind:n[0],port:parseInt(n[1],10),protocol:n[2],fmt:n.slice(3).join(" ")}},r.parseOLine=function(e){const t=r.matchPrefix(e,"o=")[0],n=t.substring(2).split(" ");return{username:n[0],sessionId:n[1],sessionVersion:parseInt(n[2],10),netType:n[3],addressType:n[4],address:n[5]}},r.isValidSDP=function(e){if("string"!==typeof e||0===e.length)return!1;const t=r.splitLines(e);for(let n=0;n<t.length;n++)if(t[n].length<2||"="!==t[n].charAt(1))return!1;return!0},e.exports=r},2834:function(e,t,n){"use strict";var r=n("ebb5"),i=n("e330"),o=n("59ed"),s=n("dfb9"),a=r.aTypedArray,u=r.getTypedArrayConstructor,c=r.exportTypedArrayMethod,l=i(r.TypedArrayPrototype.sort);c("toSorted",(function(e){void 0!==e&&o(e);var t=a(this),n=s(u(t),t);return l(n,e)}))},"2a07":function(e,t,n){"use strict";var r=n("cfe9"),i=n("9adc");e.exports=function(e){if(i){try{return r.process.getBuiltinModule(e)}catch(t){}try{return Function('return require("'+e+'")')()}catch(t){}}}},"2a62":function(e,t,n){"use strict";var r=n("c65b"),i=n("825a"),o=n("dc4a");e.exports=function(e,t,n){var s,a;i(e);try{if(s=o(e,"return"),!s){if("throw"===t)throw n;return n}s=r(s,e)}catch(u){a=!0,s=u}if("throw"===t)throw n;if(a)throw s;return i(s),n}},"2b3d":function(e,t,n){"use strict";n("4002")},"2ba4":function(e,t,n){"use strict";var r=n("40d5"),i=Function.prototype,o=i.apply,s=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?s.bind(o):function(){return s.apply(o,arguments)})},"2baa":function(e,t,n){"use strict";e.exports=function(e,t){var n="function"==typeof Iterator&&Iterator.prototype[e];if(n)try{n.call({next:null},t).next()}catch(r){return!0}}},"2c66":function(e,t,n){"use strict";var r=n("83ab"),i=n("edd0"),o=n("75bd"),s=ArrayBuffer.prototype;r&&!("detached"in s)&&i(s,"detached",{configurable:!0,get:function(){return o(this)}})},"2ca0":function(e,t,n){"use strict";var r=n("23e7"),i=n("4625"),o=n("06cf").f,s=n("50c4"),a=n("577e"),u=n("5a34"),c=n("1d80"),l=n("ab13"),d=n("c430"),h=i("".slice),f=Math.min,p=l("startsWith"),v=!d&&!p&&!!function(){var e=o(String.prototype,"startsWith");return e&&!e.writable}();r({target:"String",proto:!0,forced:!v&&!p},{startsWith:function(e){var t=a(c(this));u(e);var n=s(f(arguments.length>1?arguments[1]:void 0,t.length)),r=a(e);return h(t,n,n+r.length)===r}})},"2cf4":function(e,t,n){"use strict";var r,i,o,s,a=n("cfe9"),u=n("2ba4"),c=n("0366"),l=n("1626"),d=n("1a2d"),h=n("d039"),f=n("1be4"),p=n("f36a"),v=n("cc12"),m=n("d6d6"),g=n("52c8"),_=n("9adc"),y=a.setImmediate,b=a.clearImmediate,w=a.process,T=a.Dispatch,S=a.Function,C=a.MessageChannel,E=a.String,A=0,x={},R="onreadystatechange";h((function(){r=a.location}));var O=function(e){if(d(x,e)){var t=x[e];delete x[e],t()}},I=function(e){return function(){O(e)}},k=function(e){O(e.data)},P=function(e){a.postMessage(E(e),r.protocol+"//"+r.host)};y&&b||(y=function(e){m(arguments.length,1);var t=l(e)?e:S(e),n=p(arguments,1);return x[++A]=function(){u(t,void 0,n)},i(A),A},b=function(e){delete x[e]},_?i=function(e){w.nextTick(I(e))}:T&&T.now?i=function(e){T.now(I(e))}:C&&!g?(o=new C,s=o.port2,o.port1.onmessage=k,i=c(s.postMessage,s)):a.addEventListener&&l(a.postMessage)&&!a.importScripts&&r&&"file:"!==r.protocol&&!h(P)?(i=P,a.addEventListener("message",k,!1)):i=R in v("script")?function(e){f.appendChild(v("script"))[R]=function(){f.removeChild(this),O(e)}}:function(e){setTimeout(I(e),0)}),e.exports={set:y,clear:b}},"313d":function(e,t,n){"use strict";var r=n("23e7"),i=n("cfe9"),o=n("d066"),s=n("e330"),a=n("c65b"),u=n("d039"),c=n("577e"),l=n("d6d6"),d=n("b917").i2c,h=o("btoa"),f=s("".charAt),p=s("".charCodeAt),v=!!h&&!u((function(){return"aGk="!==h("hi")})),m=v&&!u((function(){h()})),g=v&&u((function(){return"bnVsbA=="!==h(null)})),_=v&&1!==h.length;r({global:!0,bind:!0,enumerable:!0,forced:!v||m||g||_},{btoa:function(e){if(l(arguments.length,1),v)return a(h,i,c(e));var t,n,r=c(e),s="",u=0,m=d;while(f(r,u)||(m="=",u%1)){if(n=p(r,u+=3/4),n>255)throw new(o("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");t=t<<8|n,s+=f(m,63&t>>8-u%1*8)}return s}})},"34af":function(e,t,n){"use strict";var r=n("23e7"),i=n("cfe9"),o=n("8a96"),s=n("6b37"),a=n("2005"),u=n("015d");i.Uint8Array&&r({target:"Uint8Array",proto:!0},{setFromHex:function(e){s(this),o(e),a(this.buffer);var t=u(e,this).read;return{read:t,written:t/2}}})},3511:function(e,t,n){"use strict";var r=TypeError,i=9007199254740991;e.exports=function(e){if(e>i)throw r("Maximum allowed index exceeded");return e}},3529:function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),o=n("59ed"),s=n("f069"),a=n("e667"),u=n("2266"),c=n("5eed");r({target:"Promise",stat:!0,forced:c},{race:function(e){var t=this,n=s.f(t),r=n.reject,c=a((function(){var s=o(t.resolve);u(e,(function(e){i(s,t,e).then(n.resolve,r)}))}));return c.error&&r(c.value),n.promise}})},"35a1":function(e,t,n){"use strict";var r=n("f5df"),i=n("dc4a"),o=n("7234"),s=n("3f8c"),a=n("b622"),u=a("iterator");e.exports=function(e){if(!o(e))return i(e,u)||i(e,"@@iterator")||s[r(e)]}},"368e":function(e,t,n){},"36f2":function(e,t,n){"use strict";var r,i,o,s,a=n("cfe9"),u=n("2a07"),c=n("dbe5"),l=a.structuredClone,d=a.ArrayBuffer,h=a.MessageChannel,f=!1;if(c)f=function(e){l(e,{transfer:[e]})};else if(d)try{h||(r=u("worker_threads"),r&&(h=r.MessageChannel)),h&&(i=new h,o=new d(2),s=function(e){i.port1.postMessage(null,[e])},2===o.byteLength&&(s(o),0===o.byteLength&&(f=s)))}catch(p){}e.exports=f},"37e8":function(e,t,n){"use strict";var r=n("83ab"),i=n("aed9"),o=n("9bf2"),s=n("825a"),a=n("fc6a"),u=n("df75");t.f=r&&!i?Object.defineProperties:function(e,t){s(e);var n,r=a(t),i=u(t),c=i.length,l=0;while(c>l)o.f(e,n=i[l++],r[n]);return e}},"384f":function(e,t,n){"use strict";var r=n("e330"),i=n("5388"),o=n("cb27"),s=o.Set,a=o.proto,u=r(a.forEach),c=r(a.keys),l=c(new s).next;e.exports=function(e,t,n){return n?i({iterator:c(e),next:l},t):u(e,t)}},"395e":function(e,t,n){"use strict";var r=n("dc19"),i=n("cb27").has,o=n("8e16"),s=n("7f65"),a=n("5388"),u=n("2a62");e.exports=function(e){var t=r(this),n=s(e);if(o(t)<n.size)return!1;var c=n.getIterator();return!1!==a(c,(function(e){if(!i(t,e))return u(c,"normal",!1)}))}},"398e":function(e,t,n){n("e01a"),n("d9e2");var r=n("e99a");function i(){
1
+ (function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["sip-phone-sdk"]=t(require("vue")):e["sip-phone-sdk"]=t(e["Vue"])})("undefined"!==typeof self?self:this,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.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 i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));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")}({"00b4":function(e,t,n){"use strict";n("ac1f");var r=n("23e7"),i=n("c65b"),o=n("1626"),s=n("825a"),a=n("577e"),u=function(){var e=!1,t=/[ac]/;return t.exec=function(){return e=!0,/./.exec.apply(this,arguments)},!0===t.test("abc")&&e}(),c=/./.test;r({target:"RegExp",proto:!0,forced:!u},{test:function(e){var t=s(this),n=a(e),r=t.exec;if(!o(r))return i(c,t,n);var u=i(r,t,n);return null!==u&&(s(u),!0)}})},"00ee":function(e,t,n){"use strict";var r=n("b622"),i=r("toStringTag"),o={};o[i]="z",e.exports="[object z]"===String(o)},"015d":function(e,t,n){"use strict";var r=n("cfe9"),i=n("e330"),o=r.Uint8Array,s=r.SyntaxError,a=r.parseInt,u=Math.min,c=/[^\da-f]/i,l=i(c.exec),d=i("".slice);e.exports=function(e,t){var n=e.length;if(n%2!==0)throw new s("String should be an even number of characters");var r=t?u(t.length,n/2):n/2,i=t||new o(r),h=0,f=0;while(f<r){var p=d(e,h,h+=2);if(l(c,p))throw new s("String should only contain hex characters");i[f++]=a(p,16)}return{bytes:i,read:h}}},"01b4":function(e,t,n){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e){var t=this.head=e.next;return null===t&&(this.tail=null),e.item}}},e.exports=r},"02ec":function(e,t,n){"use strict";var r=n("23e7"),i=n("67b6");r({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==i},{trimLeft:i})},"0366":function(e,t,n){"use strict";var r=n("4625"),i=n("59ed"),o=n("40d5"),s=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?s(e,t):function(){return e.apply(t,arguments)}}},"04f8":function(e,t,n){"use strict";var r=n("1212"),i=n("d039"),o=n("cfe9"),s=o.String;e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol("symbol detection");return!s(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},"057f":function(e,t,n){"use strict";var r=n("c6b6"),i=n("fc6a"),o=n("241c").f,s=n("f36a"),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(e){try{return o(e)}catch(t){return s(a)}};e.exports.f=function(e){return a&&"Window"===r(e)?u(e):o(i(e))}},"06cf":function(e,t,n){"use strict";var r=n("83ab"),i=n("c65b"),o=n("d1e7"),s=n("5c6c"),a=n("fc6a"),u=n("a04b"),c=n("1a2d"),l=n("0cfb"),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=a(e),t=u(t),l)try{return d(e,t)}catch(n){}if(c(e,t))return s(!i(o.f,e,t),e[t])}},"07fa":function(e,t,n){"use strict";var r=n("50c4");e.exports=function(e){return r(e.length)}},"083a":function(e,t,n){"use strict";var r=n("0d51"),i=TypeError;e.exports=function(e,t){if(!delete e[t])throw new i("Cannot delete property "+r(t)+" of "+r(e))}},"0a00":function(e,t,n){"use strict";n("34af")},"0b25":function(e,t,n){"use strict";var r=n("5926"),i=n("50c4"),o=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw new o("Wrong length or index");return n}},"0b42":function(e,t,n){"use strict";var r=n("e8b5"),i=n("68ee"),o=n("861d"),s=n("b622"),a=s("species"),u=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,i(t)&&(t===u||r(t.prototype))?t=void 0:o(t)&&(t=t[a],null===t&&(t=void 0))),void 0===t?u:t}},"0cb2":function(e,t,n){"use strict";var r=n("e330"),i=n("7b0b"),o=Math.floor,s=r("".charAt),a=r("".replace),u=r("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,d,h){var f=n+e.length,p=r.length,v=l;return void 0!==d&&(d=i(d),v=c),a(h,v,(function(i,a){var c;switch(s(a,0)){case"$":return"$";case"&":return e;case"`":return u(t,0,n);case"'":return u(t,f);case"<":c=d[u(a,1,-1)];break;default:var l=+a;if(0===l)return i;if(l>p){var h=o(l/10);return 0===h?i:h<=p?void 0===r[h-1]?s(a,1):r[h-1]+s(a,1):i}c=r[l-1]}return void 0===c?"":c}))}},"0cfb":function(e,t,n){"use strict";var r=n("83ab"),i=n("d039"),o=n("cc12");e.exports=!r&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d26":function(e,t,n){"use strict";var r=n("e330"),i=Error,o=r("".replace),s=function(e){return String(new i(e).stack)}("zxcasd"),a=/\n\s*at [^:]*:[^\n]*/,u=a.test(s);e.exports=function(e,t){if(u&&"string"==typeof e&&!i.prepareStackTrace)while(t--)e=o(e,a,"");return e}},"0d51":function(e,t,n){"use strict";var r=String;e.exports=function(e){try{return r(e)}catch(t){return"Object"}}},"0dd1":function(e,t,n){"use strict";n("7e8e")},"0eb6":function(e,t,n){"use strict";var r=n("23e7"),i=n("d066"),o=n("2a07"),s=n("d039"),a=n("7c73"),u=n("5c6c"),c=n("9bf2").f,l=n("cb2d"),d=n("edd0"),h=n("1a2d"),f=n("19aa"),p=n("825a"),v=n("aa1f"),m=n("e391"),g=n("cf98"),_=n("0d26"),y=n("69f3"),b=n("83ab"),w=n("c430"),T="DOMException",S="DATA_CLONE_ERR",C=i("Error"),E=i(T)||function(){try{var e=i("MessageChannel")||o("worker_threads").MessageChannel;(new e).port1.postMessage(new WeakMap)}catch(t){if(t.name===S&&25===t.code)return t.constructor}}(),A=E&&E.prototype,x=C.prototype,R=y.set,O=y.getterFor(T),I="stack"in new C(T),k=function(e){return h(g,e)&&g[e].m?g[e].c:0},P=function(){f(this,M);var e=arguments.length,t=m(e<1?void 0:arguments[0]),n=m(e<2?void 0:arguments[1],"Error"),r=k(n);if(R(this,{type:T,name:n,message:t,code:r}),b||(this.name=n,this.message=t,this.code=r),I){var i=new C(t);i.name=T,c(this,"stack",u(1,_(i.stack,1)))}},M=P.prototype=a(x),N=function(e){return{enumerable:!0,configurable:!0,get:e}},L=function(e){return N((function(){return O(this)[e]}))};b&&(d(M,"code",L("code")),d(M,"message",L("message")),d(M,"name",L("name"))),c(M,"constructor",u(1,P));var D=s((function(){return!(new E instanceof C)})),U=D||s((function(){return x.toString!==v||"2: 1"!==String(new E(1,2))})),j=D||s((function(){return 25!==new E(1,"DataCloneError").code})),F=D||25!==E[S]||25!==A[S],H=w?U||j||F:D;r({global:!0,constructor:!0,forced:H},{DOMException:H?P:E});var B=i(T),$=B.prototype;for(var q in U&&(w||E===B)&&l($,"toString",v),j&&b&&E===B&&d($,"code",N((function(){return k(p(this).name)}))),g)if(h(g,q)){var V=g[q],z=V.s,W=u(6,V.c);h(B,z)||c(B,z,W),h($,z)||c($,z,W)}},"0f33":function(e,t,n){"use strict";var r=n("cfe9"),i=n("d039"),o=r.RegExp,s=!i((function(){var e=!0;try{o(".","d")}catch(c){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",i=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},s={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(s.hasIndices="d"),s)i(a,s[a]);var u=Object.getOwnPropertyDescriptor(o.prototype,"flags").get.call(t);return u!==r||n!==r}));e.exports={correct:s}},"107c":function(e,t,n){"use strict";var r=n("d039"),i=n("cfe9"),o=i.RegExp;e.exports=r((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},1148:function(e,t,n){"use strict";var r=n("5926"),i=n("577e"),o=n("1d80"),s=RangeError;e.exports=function(e){var t=i(o(this)),n="",a=r(e);if(a<0||a===1/0)throw new s("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(t+=t))1&a&&(n+=t);return n}},"11c1":function(e,t,n){var r=n("c437"),i=n("c64e"),o=i;o.v1=r,o.v4=i,e.exports=o},1212:function(e,t,n){"use strict";var r,i,o=n("cfe9"),s=n("b5db"),a=o.process,u=o.Deno,c=a&&a.versions||u&&u.version,l=c&&c.v8;l&&(r=l.split("."),i=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&s&&(r=s.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/),r&&(i=+r[1]))),e.exports=i},1236:function(e,t,n){"use strict";var r=n("23e7"),i=n("83ab"),o=n("cfe9"),s=n("d066"),a=n("e330"),u=n("c65b"),c=n("1626"),l=n("861d"),d=n("e8b5"),h=n("1a2d"),f=n("577e"),p=n("07fa"),v=n("8418"),m=n("d039"),g=n("d24a"),_=n("04f8"),y=o.JSON,b=o.Number,w=o.SyntaxError,T=y&&y.parse,S=s("Object","keys"),C=Object.getOwnPropertyDescriptor,E=a("".charAt),A=a("".slice),x=a(/./.exec),R=a([].push),O=/^\d$/,I=/^[1-9]$/,k=/^[\d-]$/,P=/^[\t\n\r ]$/,M=0,N=1,L=function(e,t){e=f(e);var n=new F(e,0,""),r=n.parse(),i=r.value,o=n.skip(P,r.end);if(o<e.length)throw new w('Unexpected extra character: "'+E(e,o)+'" after the parsed data at: '+o);return c(t)?D({"":i},"",t,r):i},D=function(e,t,n,r){var i,o,s,a,c,f=e[t],v=r&&f===r.value,m=v&&"string"==typeof r.source?{source:r.source}:{};if(l(f)){var g=d(f),_=v?r.nodes:g?[]:{};if(g)for(i=_.length,s=p(f),a=0;a<s;a++)U(f,a,D(f,""+a,n,a<i?_[a]:void 0));else for(o=S(f),s=p(o),a=0;a<s;a++)c=o[a],U(f,c,D(f,c,n,h(_,c)?_[c]:void 0))}return u(n,e,t,f,m)},U=function(e,t,n){if(i){var r=C(e,t);if(r&&!r.configurable)return}void 0===n?delete e[t]:v(e,t,n)},j=function(e,t,n,r){this.value=e,this.end=t,this.source=n,this.nodes=r},F=function(e,t){this.source=e,this.index=t};F.prototype={fork:function(e){return new F(this.source,e)},parse:function(){var e=this.source,t=this.skip(P,this.index),n=this.fork(t),r=E(e,t);if(x(k,r))return n.number();switch(r){case"{":return n.object();case"[":return n.array();case'"':return n.string();case"t":return n.keyword(!0);case"f":return n.keyword(!1);case"n":return n.keyword(null)}throw new w('Unexpected character: "'+r+'" at: '+t)},node:function(e,t,n,r,i){return new j(t,r,e?null:A(this.source,n,r),i)},object:function(){var e=this.source,t=this.index+1,n=!1,r={},i={};while(t<e.length){if(t=this.until(['"',"}"],t),"}"===E(e,t)&&!n){t++;break}var o=this.fork(t).string(),s=o.value;t=o.end,t=this.until([":"],t)+1,t=this.skip(P,t),o=this.fork(t).parse(),v(i,s,o),v(r,s,o.value),t=this.until([",","}"],o.end);var a=E(e,t);if(","===a)n=!0,t++;else if("}"===a){t++;break}}return this.node(N,r,this.index,t,i)},array:function(){var e=this.source,t=this.index+1,n=!1,r=[],i=[];while(t<e.length){if(t=this.skip(P,t),"]"===E(e,t)&&!n){t++;break}var o=this.fork(t).parse();if(R(i,o),R(r,o.value),t=this.until([",","]"],o.end),","===E(e,t))n=!0,t++;else if("]"===E(e,t)){t++;break}}return this.node(N,r,this.index,t,i)},string:function(){var e=this.index,t=g(this.source,this.index+1);return this.node(M,t.value,e,t.end)},number:function(){var e=this.source,t=this.index,n=t;if("-"===E(e,n)&&n++,"0"===E(e,n))n++;else{if(!x(I,E(e,n)))throw new w("Failed to parse number at: "+n);n=this.skip(O,n+1)}if("."===E(e,n)&&(n=this.skip(O,n+1)),"e"===E(e,n)||"E"===E(e,n)){n++,"+"!==E(e,n)&&"-"!==E(e,n)||n++;var r=n;if(n=this.skip(O,n),r===n)throw new w("Failed to parse number's exponent value at: "+n)}return this.node(M,b(A(e,t,n)),t,n)},keyword:function(e){var t=""+e,n=this.index,r=n+t.length;if(A(this.source,n,r)!==t)throw new w("Failed to parse value at: "+n);return this.node(M,e,n,r)},skip:function(e,t){for(var n=this.source;t<n.length;t++)if(!x(e,E(n,t)))break;return t},until:function(e,t){t=this.skip(P,t);for(var n=E(this.source,t),r=0;r<e.length;r++)if(e[r]===n)return t;throw new w('Unexpected character: "'+n+'" at: '+t)}};var H=m((function(){var e,t="9007199254740993";return T(t,(function(t,n,r){e=r.source})),e!==t})),B=_&&!m((function(){return 1/T("-0 \t")!==-1/0}));r({target:"JSON",stat:!0,forced:H},{parse:function(e,t){return B&&!c(t)?T(e):L(e,t)}})},1276:function(e,t,n){"use strict";var r=n("c65b"),i=n("e330"),o=n("d784"),s=n("825a"),a=n("861d"),u=n("1d80"),c=n("4840"),l=n("8aa5"),d=n("50c4"),h=n("577e"),f=n("dc4a"),p=n("14c3"),v=n("9f7f"),m=n("d039"),g=v.UNSUPPORTED_Y,_=4294967295,y=Math.min,b=i([].push),w=i("".slice),T=!m((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),S="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;o("split",(function(e,t,n){var i="0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:r(t,this,e,n)}:t;return[function(t,n){var o=u(this),s=a(t)?f(t,e):void 0;return s?r(s,t,o,n):r(i,h(o),t,n)},function(e,r){var o=s(this),a=h(e);if(!S){var u=n(i,o,a,r,i!==t);if(u.done)return u.value}var f=c(o,RegExp),v=o.unicode,m=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(g?"g":"y"),T=new f(g?"^(?:"+o.source+")":o,m),C=void 0===r?_:r>>>0;if(0===C)return[];if(0===a.length)return null===p(T,a)?[a]:[];var E=0,A=0,x=[];while(A<a.length){T.lastIndex=g?0:A;var R,O=p(T,g?w(a,A):a);if(null===O||(R=y(d(T.lastIndex+(g?A:0)),a.length))===E)A=l(a,A,v);else{if(b(x,w(a,E,A)),x.length===C)return x;for(var I=1;I<=O.length-1;I++)if(b(x,O[I]),x.length===C)return x;A=E=R}}return b(x,w(a,E)),x}]}),S||!T,g)},"129f":function(e,t,n){"use strict";e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}},"13a6":function(e,t,n){"use strict";var r=Math.round;e.exports=function(e){var t=r(e);return t<0?0:t>255?255:255&t}},"13d2":function(e,t,n){"use strict";var r=n("e330"),i=n("d039"),o=n("1626"),s=n("1a2d"),a=n("83ab"),u=n("5e77").CONFIGURABLE,c=n("8925"),l=n("69f3"),d=l.enforce,h=l.get,f=String,p=Object.defineProperty,v=r("".slice),m=r("".replace),g=r([].join),_=a&&!i((function(){return 8!==p((function(){}),"length",{value:8}).length})),y=String(String).split("String"),b=e.exports=function(e,t,n){"Symbol("===v(f(t),0,7)&&(t="["+m(f(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!s(e,"name")||u&&e.name!==t)&&(a?p(e,"name",{value:t,configurable:!0}):e.name=t),_&&n&&s(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&s(n,"constructor")&&n.constructor?a&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var r=d(e);return s(r,"source")||(r.source=g(y,"string"==typeof t?t:"")),e};Function.prototype.toString=b((function(){return o(this)&&h(this).source||c(this)}),"toString")},"13d5":function(e,t,n){"use strict";var r=n("23e7"),i=n("d58f").left,o=n("a640"),s=n("1212"),a=n("9adc"),u=!a&&s>79&&s<83,c=u||!o("reduce");r({target:"Array",proto:!0,forced:c},{reduce:function(e){var t=arguments.length;return i(this,e,t,t>1?arguments[1]:void 0)}})},"14c3":function(e,t,n){"use strict";var r=n("c65b"),i=n("825a"),o=n("1626"),s=n("c6b6"),a=n("9263"),u=TypeError;e.exports=function(e,t){var n=e.exec;if(o(n)){var c=r(n,e,t);return null!==c&&i(c),c}if("RegExp"===s(e))return r(a,e,t);throw new u("RegExp#exec called on incompatible receiver")}},"14d9":function(e,t,n){"use strict";var r=n("23e7"),i=n("7b0b"),o=n("07fa"),s=n("3a34"),a=n("3511"),u=n("d039"),c=u((function(){return 4294967297!==[].push.call({length:4294967296},1)})),l=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},d=c||!l();r({target:"Array",proto:!0,arity:1,forced:d},{push:function(e){var t=i(this),n=o(t),r=arguments.length;a(n+r);for(var u=0;u<r;u++)t[n]=arguments[u],n++;return s(t,n),n}})},"14e5":function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),o=n("59ed"),s=n("f069"),a=n("e667"),u=n("2266"),c=n("5eed");r({target:"Promise",stat:!0,forced:c},{all:function(e){var t=this,n=s.f(t),r=n.resolve,c=n.reject,l=a((function(){var n=o(t.resolve),s=[],a=0,l=1;u(e,(function(e){var o=a++,u=!1;l++,i(n,t,e).then((function(e){u||(u=!0,s[o]=e,--l||r(s))}),c)})),--l||r(s)}));return l.error&&c(l.value),n.promise}})},"157a":function(e,t,n){"use strict";var r=n("cfe9"),i=n("83ab"),o=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!i)return r[e];var t=o(r,e);return t&&t.value}},"159b":function(e,t,n){"use strict";var r=n("cfe9"),i=n("fdbc"),o=n("785a"),s=n("17c2"),a=n("9112"),u=function(e){if(e&&e.forEach!==s)try{a(e,"forEach",s)}catch(t){e.forEach=s}};for(var c in i)i[c]&&u(r[c]&&r[c].prototype);u(o)},1626:function(e,t,n){"use strict";var r="object"==typeof document&&document.all;e.exports="undefined"==typeof r&&void 0!==r?function(e){return"function"==typeof e||e===r}:function(e){return"function"==typeof e}},1787:function(e,t,n){"use strict";var r=n("861d");e.exports=function(e){return r(e)||null===e}},"17c2":function(e,t,n){"use strict";var r=n("b727").forEach,i=n("a640"),o=i("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},"182d":function(e,t,n){"use strict";var r=n("f8cd"),i=RangeError;e.exports=function(e,t){var n=r(e);if(n%t)throw new i("Wrong offset");return n}},"19aa":function(e,t,n){"use strict";var r=n("3a9b"),i=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new i("Incorrect invocation")}},"1a2d":function(e,t,n){"use strict";var r=n("e330"),i=n("7b0b"),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},"1be4":function(e,t,n){"use strict";var r=n("d066");e.exports=r("document","documentElement")},"1c59":function(e,t,n){"use strict";var r=n("6d61"),i=n("6566");r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},"1c7e":function(e,t,n){"use strict";var r=n("b622"),i=r("iterator"),o=!1;try{var s=0,a={next:function(){return{done:!!s++}},return:function(){o=!0}};a[i]=function(){return this},Array.from(a,(function(){throw 2}))}catch(u){}e.exports=function(e,t){try{if(!t&&!o)return!1}catch(u){return!1}var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(u){}return n}},"1d02":function(e,t,n){"use strict";var r=n("ebb5"),i=n("a258").findLastIndex,o=r.aTypedArray,s=r.exportTypedArrayMethod;s("findLastIndex",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},"1d80":function(e,t,n){"use strict";var r=n("7234"),i=TypeError;e.exports=function(e){if(r(e))throw new i("Can't call method on "+e);return e}},"1e5a":function(e,t,n){"use strict";var r=n("23e7"),i=n("9961"),o=n("5320"),s=n("dad2"),a=!s("symmetricDifference")||!o("symmetricDifference");r({target:"Set",proto:!0,real:!0,forced:a},{symmetricDifference:i})},"1e70":function(e,t,n){"use strict";var r=n("23e7"),i=n("a5f7"),o=n("d039"),s=n("dad2"),a=!s("difference",(function(e){return 0===e.size})),u=a||o((function(){var e={size:1,has:function(){return!0},keys:function(){var e=0;return{next:function(){var n=e++>1;return t.has(1)&&t.clear(),{done:n,value:2}}}}},t=new Set([1,2,3,4]);return 3!==t.difference(e).size}));r({target:"Set",proto:!0,real:!0,forced:u},{difference:i})},"1fb5":function(e,t,n){"use strict";t.byteLength=l,t.toByteArray=h,t.fromByteArray=v;for(var r=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=s.length;a<u;++a)r[a]=s[a],i[s.charCodeAt(a)]=a;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function l(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function d(e,t,n){return 3*(t+n)/4-n}function h(e){var t,n,r=c(e),s=r[0],a=r[1],u=new o(d(e,s,a)),l=0,h=a>0?s-4:s;for(n=0;n<h;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],u[l++]=t>>16&255,u[l++]=t>>8&255,u[l++]=255&t;return 2===a&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,u[l++]=255&t),1===a&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t),u}function f(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function p(e,t,n){for(var r,i=[],o=t;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(f(r));return i.join("")}function v(e){for(var t,n=e.length,i=n%3,o=[],s=16383,a=0,u=n-i;a<u;a+=s)o.push(p(e,a,a+s>u?u:a+s));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},2005:function(e,t,n){"use strict";var r=n("75bd"),i=TypeError;e.exports=function(e){if(r(e))throw new i("ArrayBuffer is detached");return e}},"20bf":function(e,t,n){"use strict";var r=n("8aa7"),i=n("ebb5").exportTypedArrayStaticMethod,o=n("a078");i("from",o,r)},"219c":function(e,t,n){"use strict";var r=n("cfe9"),i=n("4625"),o=n("d039"),s=n("59ed"),a=n("addb"),u=n("ebb5"),c=n("3f7e"),l=n("99f4"),d=n("1212"),h=n("ea83"),f=u.aTypedArray,p=u.exportTypedArrayMethod,v=r.Uint16Array,m=v&&i(v.prototype.sort),g=!!m&&!(o((function(){m(new v(2),null)}))&&o((function(){m(new v(2),{})}))),_=!!m&&!o((function(){if(d)return d<74;if(c)return c<67;if(l)return!0;if(h)return h<602;var e,t,n=new v(516),r=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(m(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==r[e])return!0})),y=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){return void 0!==e&&s(e),_?m(this,e):a(f(this),y(e))}),!_||g)},2266:function(e,t,n){"use strict";var r=n("0366"),i=n("c65b"),o=n("825a"),s=n("0d51"),a=n("e95a"),u=n("07fa"),c=n("3a9b"),l=n("9a1f"),d=n("35a1"),h=n("2a62"),f=TypeError,p=function(e,t){this.stopped=e,this.result=t},v=p.prototype;e.exports=function(e,t,n){var m,g,_,y,b,w,T,S=n&&n.that,C=!(!n||!n.AS_ENTRIES),E=!(!n||!n.IS_RECORD),A=!(!n||!n.IS_ITERATOR),x=!(!n||!n.INTERRUPTED),R=r(t,S),O=function(e){return m&&h(m,"normal"),new p(!0,e)},I=function(e){return C?(o(e),x?R(e[0],e[1],O):R(e[0],e[1])):x?R(e,O):R(e)};if(E)m=e.iterator;else if(A)m=e;else{if(g=d(e),!g)throw new f(s(e)+" is not iterable");if(a(g)){for(_=0,y=u(e);y>_;_++)if(b=I(e[_]),b&&c(v,b))return b;return new p(!1)}m=l(e,g)}w=E?e.next:m.next;while(!(T=i(w,m)).done){try{b=I(T.value)}catch(k){h(m,"throw",k)}if("object"==typeof b&&b&&c(v,b))return b}return new p(!1)}},2366:function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);function i(e,t){var r=t||0,i=n;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}e.exports=i},"23cb":function(e,t,n){"use strict";var r=n("5926"),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},"23e7":function(e,t,n){"use strict";var r=n("cfe9"),i=n("06cf").f,o=n("9112"),s=n("cb2d"),a=n("6374"),u=n("e893"),c=n("94ca");e.exports=function(e,t){var n,l,d,h,f,p,v=e.target,m=e.global,g=e.stat;if(l=m?r:g?r[v]||a(v,{}):r[v]&&r[v].prototype,l)for(d in t){if(f=t[d],e.dontCallGetSet?(p=i(l,d),h=p&&p.value):h=l[d],n=c(m?d:v+(g?".":"#")+d,e.forced),!n&&void 0!==h){if(typeof f==typeof h)continue;u(f,h)}(e.sham||h&&h.sham)&&o(f,"sham",!0),s(l,d,f,e)}}},"241c":function(e,t,n){"use strict";var r=n("ca84"),i=n("7839"),o=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},"249d":function(e,t,n){"use strict";var r=n("23e7"),i=n("41f6");i&&r({target:"ArrayBuffer",proto:!0},{transfer:function(){return i(this,arguments.length?arguments[0]:void 0,!0)}})},2532:function(e,t,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("5a34"),s=n("1d80"),a=n("577e"),u=n("ab13"),c=i("".indexOf);r({target:"String",proto:!0,forced:!u("includes")},{includes:function(e){return!!~c(a(s(this)),a(o(e)),arguments.length>1?arguments[1]:void 0)}})},"25a8":function(e,t,n){},"25f0":function(e,t,n){"use strict";var r=n("5e77").PROPER,i=n("cb2d"),o=n("825a"),s=n("577e"),a=n("d039"),u=n("90d8"),c="toString",l=RegExp.prototype,d=l[c],h=a((function(){return"/a/b"!==d.call({source:"a",flags:"b"})})),f=r&&d.name!==c;(h||f)&&i(l,c,(function(){var e=o(this),t=s(e.source),n=s(u(e));return"/"+t+"/"+n}),{unsafe:!0})},2626:function(e,t,n){"use strict";var r=n("d066"),i=n("edd0"),o=n("b622"),s=n("83ab"),a=o("species");e.exports=function(e){var t=r(e);s&&t&&!t[a]&&i(t,a,{configurable:!0,get:function(){return this}})}},"26e9":function(e,t,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("e8b5"),s=i([].reverse),a=[1,2];r({target:"Array",proto:!0,forced:String(a)===String(a.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),s(this)}})},"271a":function(e,t,n){"use strict";var r=n("cb2d"),i=n("e330"),o=n("577e"),s=n("d6d6"),a=URLSearchParams,u=a.prototype,c=i(u.getAll),l=i(u.has),d=new a("a=1");!d.has("a",2)&&d.has("a",void 0)||r(u,"has",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return l(this,e);var r=c(this,e);s(t,1);var i=o(n),a=0;while(a<r.length)if(r[a++]===i)return!0;return!1}),{enumerable:!0,unsafe:!0})},"282b":function(e,t,n){"use strict";const r={generateIdentifier:function(){return Math.random().toString(36).substring(2,12)}};r.localCName=r.generateIdentifier(),r.splitLines=function(e){return e.trim().split("\n").map(e=>e.trim())},r.splitSections=function(e){const t=e.split("\nm=");return t.map((e,t)=>(t>0?"m="+e:e).trim()+"\r\n")},r.getDescription=function(e){const t=r.splitSections(e);return t&&t[0]},r.getMediaSections=function(e){const t=r.splitSections(e);return t.shift(),t},r.matchPrefix=function(e,t){return r.splitLines(e).filter(e=>0===e.indexOf(t))},r.parseCandidate=function(e){let t;t=0===e.indexOf("a=candidate:")?e.substring(12).split(" "):e.substring(10).split(" ");const n={foundation:t[0],component:{1:"rtp",2:"rtcp"}[t[1]]||t[1],protocol:t[2].toLowerCase(),priority:parseInt(t[3],10),ip:t[4],address:t[4],port:parseInt(t[5],10),type:t[7]};for(let r=8;r<t.length;r+=2)switch(t[r]){case"raddr":n.relatedAddress=t[r+1];break;case"rport":n.relatedPort=parseInt(t[r+1],10);break;case"tcptype":n.tcpType=t[r+1];break;case"ufrag":n.ufrag=t[r+1],n.usernameFragment=t[r+1];break;default:void 0===n[t[r]]&&(n[t[r]]=t[r+1]);break}return n},r.writeCandidate=function(e){const t=[];t.push(e.foundation);const n=e.component;"rtp"===n?t.push(1):"rtcp"===n?t.push(2):t.push(n),t.push(e.protocol.toUpperCase()),t.push(e.priority),t.push(e.address||e.ip),t.push(e.port);const r=e.type;return t.push("typ"),t.push(r),"host"!==r&&e.relatedAddress&&e.relatedPort&&(t.push("raddr"),t.push(e.relatedAddress),t.push("rport"),t.push(e.relatedPort)),e.tcpType&&"tcp"===e.protocol.toLowerCase()&&(t.push("tcptype"),t.push(e.tcpType)),(e.usernameFragment||e.ufrag)&&(t.push("ufrag"),t.push(e.usernameFragment||e.ufrag)),"candidate:"+t.join(" ")},r.parseIceOptions=function(e){return e.substring(14).split(" ")},r.parseRtpMap=function(e){let t=e.substring(9).split(" ");const n={payloadType:parseInt(t.shift(),10)};return t=t[0].split("/"),n.name=t[0],n.clockRate=parseInt(t[1],10),n.channels=3===t.length?parseInt(t[2],10):1,n.numChannels=n.channels,n},r.writeRtpMap=function(e){let t=e.payloadType;void 0!==e.preferredPayloadType&&(t=e.preferredPayloadType);const n=e.channels||e.numChannels||1;return"a=rtpmap:"+t+" "+e.name+"/"+e.clockRate+(1!==n?"/"+n:"")+"\r\n"},r.parseExtmap=function(e){const t=e.substring(9).split(" ");return{id:parseInt(t[0],10),direction:t[0].indexOf("/")>0?t[0].split("/")[1]:"sendrecv",uri:t[1],attributes:t.slice(2).join(" ")}},r.writeExtmap=function(e){return"a=extmap:"+(e.id||e.preferredId)+(e.direction&&"sendrecv"!==e.direction?"/"+e.direction:"")+" "+e.uri+(e.attributes?" "+e.attributes:"")+"\r\n"},r.parseFmtp=function(e){const t={};let n;const r=e.substring(e.indexOf(" ")+1).split(";");for(let i=0;i<r.length;i++)n=r[i].trim().split("="),t[n[0].trim()]=n[1];return t},r.writeFmtp=function(e){let t="",n=e.payloadType;if(void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.parameters&&Object.keys(e.parameters).length){const r=[];Object.keys(e.parameters).forEach(t=>{void 0!==e.parameters[t]?r.push(t+"="+e.parameters[t]):r.push(t)}),t+="a=fmtp:"+n+" "+r.join(";")+"\r\n"}return t},r.parseRtcpFb=function(e){const t=e.substring(e.indexOf(" ")+1).split(" ");return{type:t.shift(),parameter:t.join(" ")}},r.writeRtcpFb=function(e){let t="",n=e.payloadType;return void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.rtcpFeedback&&e.rtcpFeedback.length&&e.rtcpFeedback.forEach(e=>{t+="a=rtcp-fb:"+n+" "+e.type+(e.parameter&&e.parameter.length?" "+e.parameter:"")+"\r\n"}),t},r.parseSsrcMedia=function(e){const t=e.indexOf(" "),n={ssrc:parseInt(e.substring(7,t),10)},r=e.indexOf(":",t);return r>-1?(n.attribute=e.substring(t+1,r),n.value=e.substring(r+1)):n.attribute=e.substring(t+1),n},r.parseSsrcGroup=function(e){const t=e.substring(13).split(" ");return{semantics:t.shift(),ssrcs:t.map(e=>parseInt(e,10))}},r.getMid=function(e){const t=r.matchPrefix(e,"a=mid:")[0];if(t)return t.substring(6)},r.parseFingerprint=function(e){const t=e.substring(14).split(" ");return{algorithm:t[0].toLowerCase(),value:t[1].toUpperCase()}},r.getDtlsParameters=function(e,t){const n=r.matchPrefix(e+t,"a=fingerprint:");return{role:"auto",fingerprints:n.map(r.parseFingerprint)}},r.writeDtlsParameters=function(e,t){let n="a=setup:"+t+"\r\n";return e.fingerprints.forEach(e=>{n+="a=fingerprint:"+e.algorithm+" "+e.value+"\r\n"}),n},r.parseCryptoLine=function(e){const t=e.substring(9).split(" ");return{tag:parseInt(t[0],10),cryptoSuite:t[1],keyParams:t[2],sessionParams:t.slice(3)}},r.writeCryptoLine=function(e){return"a=crypto:"+e.tag+" "+e.cryptoSuite+" "+("object"===typeof e.keyParams?r.writeCryptoKeyParams(e.keyParams):e.keyParams)+(e.sessionParams?" "+e.sessionParams.join(" "):"")+"\r\n"},r.parseCryptoKeyParams=function(e){if(0!==e.indexOf("inline:"))return null;const t=e.substring(7).split("|");return{keyMethod:"inline",keySalt:t[0],lifeTime:t[1],mkiValue:t[2]?t[2].split(":")[0]:void 0,mkiLength:t[2]?t[2].split(":")[1]:void 0}},r.writeCryptoKeyParams=function(e){return e.keyMethod+":"+e.keySalt+(e.lifeTime?"|"+e.lifeTime:"")+(e.mkiValue&&e.mkiLength?"|"+e.mkiValue+":"+e.mkiLength:"")},r.getCryptoParameters=function(e,t){const n=r.matchPrefix(e+t,"a=crypto:");return n.map(r.parseCryptoLine)},r.getIceParameters=function(e,t){const n=r.matchPrefix(e+t,"a=ice-ufrag:")[0],i=r.matchPrefix(e+t,"a=ice-pwd:")[0];return n&&i?{usernameFragment:n.substring(12),password:i.substring(10)}:null},r.writeIceParameters=function(e){let t="a=ice-ufrag:"+e.usernameFragment+"\r\na=ice-pwd:"+e.password+"\r\n";return e.iceLite&&(t+="a=ice-lite\r\n"),t},r.parseRtpParameters=function(e){const t={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},n=r.splitLines(e),i=n[0].split(" ");t.profile=i[2];for(let s=3;s<i.length;s++){const n=i[s],o=r.matchPrefix(e,"a=rtpmap:"+n+" ")[0];if(o){const i=r.parseRtpMap(o),s=r.matchPrefix(e,"a=fmtp:"+n+" ");switch(i.parameters=s.length?r.parseFmtp(s[0]):{},i.rtcpFeedback=r.matchPrefix(e,"a=rtcp-fb:"+n+" ").map(r.parseRtcpFb),t.codecs.push(i),i.name.toUpperCase()){case"RED":case"ULPFEC":t.fecMechanisms.push(i.name.toUpperCase());break;default:break}}}r.matchPrefix(e,"a=extmap:").forEach(e=>{t.headerExtensions.push(r.parseExtmap(e))});const o=r.matchPrefix(e,"a=rtcp-fb:* ").map(r.parseRtcpFb);return t.codecs.forEach(e=>{o.forEach(t=>{const n=e.rtcpFeedback.find(e=>e.type===t.type&&e.parameter===t.parameter);n||e.rtcpFeedback.push(t)})}),t},r.writeRtpDescription=function(e,t){let n="";n+="m="+e+" ",n+=t.codecs.length>0?"9":"0",n+=" "+(t.profile||"UDP/TLS/RTP/SAVPF")+" ",n+=t.codecs.map(e=>void 0!==e.preferredPayloadType?e.preferredPayloadType:e.payloadType).join(" ")+"\r\n",n+="c=IN IP4 0.0.0.0\r\n",n+="a=rtcp:9 IN IP4 0.0.0.0\r\n",t.codecs.forEach(e=>{n+=r.writeRtpMap(e),n+=r.writeFmtp(e),n+=r.writeRtcpFb(e)});let i=0;return t.codecs.forEach(e=>{e.maxptime>i&&(i=e.maxptime)}),i>0&&(n+="a=maxptime:"+i+"\r\n"),t.headerExtensions&&t.headerExtensions.forEach(e=>{n+=r.writeExtmap(e)}),n},r.parseRtpEncodingParameters=function(e){const t=[],n=r.parseRtpParameters(e),i=-1!==n.fecMechanisms.indexOf("RED"),o=-1!==n.fecMechanisms.indexOf("ULPFEC"),s=r.matchPrefix(e,"a=ssrc:").map(e=>r.parseSsrcMedia(e)).filter(e=>"cname"===e.attribute),a=s.length>0&&s[0].ssrc;let u;const c=r.matchPrefix(e,"a=ssrc-group:FID").map(e=>{const t=e.substring(17).split(" ");return t.map(e=>parseInt(e,10))});c.length>0&&c[0].length>1&&c[0][0]===a&&(u=c[0][1]),n.codecs.forEach(e=>{if("RTX"===e.name.toUpperCase()&&e.parameters.apt){let n={ssrc:a,codecPayloadType:parseInt(e.parameters.apt,10)};a&&u&&(n.rtx={ssrc:u}),t.push(n),i&&(n=JSON.parse(JSON.stringify(n)),n.fec={ssrc:a,mechanism:o?"red+ulpfec":"red"},t.push(n))}}),0===t.length&&a&&t.push({ssrc:a});let l=r.matchPrefix(e,"b=");return l.length&&(l=0===l[0].indexOf("b=TIAS:")?parseInt(l[0].substring(7),10):0===l[0].indexOf("b=AS:")?1e3*parseInt(l[0].substring(5),10)*.95-16e3:void 0,t.forEach(e=>{e.maxBitrate=l})),t},r.parseRtcpParameters=function(e){const t={},n=r.matchPrefix(e,"a=ssrc:").map(e=>r.parseSsrcMedia(e)).filter(e=>"cname"===e.attribute)[0];n&&(t.cname=n.value,t.ssrc=n.ssrc);const i=r.matchPrefix(e,"a=rtcp-rsize");t.reducedSize=i.length>0,t.compound=0===i.length;const o=r.matchPrefix(e,"a=rtcp-mux");return t.mux=o.length>0,t},r.writeRtcpParameters=function(e){let t="";return e.reducedSize&&(t+="a=rtcp-rsize\r\n"),e.mux&&(t+="a=rtcp-mux\r\n"),void 0!==e.ssrc&&e.cname&&(t+="a=ssrc:"+e.ssrc+" cname:"+e.cname+"\r\n"),t},r.parseMsid=function(e){let t;const n=r.matchPrefix(e,"a=msid:");if(1===n.length)return t=n[0].substring(7).split(" "),{stream:t[0],track:t[1]};const i=r.matchPrefix(e,"a=ssrc:").map(e=>r.parseSsrcMedia(e)).filter(e=>"msid"===e.attribute);return i.length>0?(t=i[0].value.split(" "),{stream:t[0],track:t[1]}):void 0},r.parseSctpDescription=function(e){const t=r.parseMLine(e),n=r.matchPrefix(e,"a=max-message-size:");let i;n.length>0&&(i=parseInt(n[0].substring(19),10)),isNaN(i)&&(i=65536);const o=r.matchPrefix(e,"a=sctp-port:");if(o.length>0)return{port:parseInt(o[0].substring(12),10),protocol:t.fmt,maxMessageSize:i};const s=r.matchPrefix(e,"a=sctpmap:");if(s.length>0){const e=s[0].substring(10).split(" ");return{port:parseInt(e[0],10),protocol:e[1],maxMessageSize:i}}},r.writeSctpDescription=function(e,t){let n=[];return n="DTLS/SCTP"!==e.protocol?["m="+e.kind+" 9 "+e.protocol+" "+t.protocol+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctp-port:"+t.port+"\r\n"]:["m="+e.kind+" 9 "+e.protocol+" "+t.port+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctpmap:"+t.port+" "+t.protocol+" 65535\r\n"],void 0!==t.maxMessageSize&&n.push("a=max-message-size:"+t.maxMessageSize+"\r\n"),n.join("")},r.generateSessionId=function(){return Math.random().toString().substr(2,22)},r.writeSessionBoilerplate=function(e,t,n){let i;const o=void 0!==t?t:2;i=e||r.generateSessionId();const s=n||"thisisadapterortc";return"v=0\r\no="+s+" "+i+" "+o+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},r.getDirection=function(e,t){const n=r.splitLines(e);for(let r=0;r<n.length;r++)switch(n[r]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return n[r].substring(2);default:}return t?r.getDirection(t):"sendrecv"},r.getKind=function(e){const t=r.splitLines(e),n=t[0].split(" ");return n[0].substring(2)},r.isRejected=function(e){return"0"===e.split(" ",2)[1]},r.parseMLine=function(e){const t=r.splitLines(e),n=t[0].substring(2).split(" ");return{kind:n[0],port:parseInt(n[1],10),protocol:n[2],fmt:n.slice(3).join(" ")}},r.parseOLine=function(e){const t=r.matchPrefix(e,"o=")[0],n=t.substring(2).split(" ");return{username:n[0],sessionId:n[1],sessionVersion:parseInt(n[2],10),netType:n[3],addressType:n[4],address:n[5]}},r.isValidSDP=function(e){if("string"!==typeof e||0===e.length)return!1;const t=r.splitLines(e);for(let n=0;n<t.length;n++)if(t[n].length<2||"="!==t[n].charAt(1))return!1;return!0},e.exports=r},2834:function(e,t,n){"use strict";var r=n("ebb5"),i=n("e330"),o=n("59ed"),s=n("dfb9"),a=r.aTypedArray,u=r.getTypedArrayConstructor,c=r.exportTypedArrayMethod,l=i(r.TypedArrayPrototype.sort);c("toSorted",(function(e){void 0!==e&&o(e);var t=a(this),n=s(u(t),t);return l(n,e)}))},"2a07":function(e,t,n){"use strict";var r=n("cfe9"),i=n("9adc");e.exports=function(e){if(i){try{return r.process.getBuiltinModule(e)}catch(t){}try{return Function('return require("'+e+'")')()}catch(t){}}}},"2a62":function(e,t,n){"use strict";var r=n("c65b"),i=n("825a"),o=n("dc4a");e.exports=function(e,t,n){var s,a;i(e);try{if(s=o(e,"return"),!s){if("throw"===t)throw n;return n}s=r(s,e)}catch(u){a=!0,s=u}if("throw"===t)throw n;if(a)throw s;return i(s),n}},"2b3d":function(e,t,n){"use strict";n("4002")},"2ba4":function(e,t,n){"use strict";var r=n("40d5"),i=Function.prototype,o=i.apply,s=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?s.bind(o):function(){return s.apply(o,arguments)})},"2baa":function(e,t,n){"use strict";e.exports=function(e,t){var n="function"==typeof Iterator&&Iterator.prototype[e];if(n)try{n.call({next:null},t).next()}catch(r){return!0}}},"2c66":function(e,t,n){"use strict";var r=n("83ab"),i=n("edd0"),o=n("75bd"),s=ArrayBuffer.prototype;r&&!("detached"in s)&&i(s,"detached",{configurable:!0,get:function(){return o(this)}})},"2ca0":function(e,t,n){"use strict";var r=n("23e7"),i=n("4625"),o=n("06cf").f,s=n("50c4"),a=n("577e"),u=n("5a34"),c=n("1d80"),l=n("ab13"),d=n("c430"),h=i("".slice),f=Math.min,p=l("startsWith"),v=!d&&!p&&!!function(){var e=o(String.prototype,"startsWith");return e&&!e.writable}();r({target:"String",proto:!0,forced:!v&&!p},{startsWith:function(e){var t=a(c(this));u(e);var n=s(f(arguments.length>1?arguments[1]:void 0,t.length)),r=a(e);return h(t,n,n+r.length)===r}})},"2cf4":function(e,t,n){"use strict";var r,i,o,s,a=n("cfe9"),u=n("2ba4"),c=n("0366"),l=n("1626"),d=n("1a2d"),h=n("d039"),f=n("1be4"),p=n("f36a"),v=n("cc12"),m=n("d6d6"),g=n("52c8"),_=n("9adc"),y=a.setImmediate,b=a.clearImmediate,w=a.process,T=a.Dispatch,S=a.Function,C=a.MessageChannel,E=a.String,A=0,x={},R="onreadystatechange";h((function(){r=a.location}));var O=function(e){if(d(x,e)){var t=x[e];delete x[e],t()}},I=function(e){return function(){O(e)}},k=function(e){O(e.data)},P=function(e){a.postMessage(E(e),r.protocol+"//"+r.host)};y&&b||(y=function(e){m(arguments.length,1);var t=l(e)?e:S(e),n=p(arguments,1);return x[++A]=function(){u(t,void 0,n)},i(A),A},b=function(e){delete x[e]},_?i=function(e){w.nextTick(I(e))}:T&&T.now?i=function(e){T.now(I(e))}:C&&!g?(o=new C,s=o.port2,o.port1.onmessage=k,i=c(s.postMessage,s)):a.addEventListener&&l(a.postMessage)&&!a.importScripts&&r&&"file:"!==r.protocol&&!h(P)?(i=P,a.addEventListener("message",k,!1)):i=R in v("script")?function(e){f.appendChild(v("script"))[R]=function(){f.removeChild(this),O(e)}}:function(e){setTimeout(I(e),0)}),e.exports={set:y,clear:b}},"313d":function(e,t,n){"use strict";var r=n("23e7"),i=n("cfe9"),o=n("d066"),s=n("e330"),a=n("c65b"),u=n("d039"),c=n("577e"),l=n("d6d6"),d=n("b917").i2c,h=o("btoa"),f=s("".charAt),p=s("".charCodeAt),v=!!h&&!u((function(){return"aGk="!==h("hi")})),m=v&&!u((function(){h()})),g=v&&u((function(){return"bnVsbA=="!==h(null)})),_=v&&1!==h.length;r({global:!0,bind:!0,enumerable:!0,forced:!v||m||g||_},{btoa:function(e){if(l(arguments.length,1),v)return a(h,i,c(e));var t,n,r=c(e),s="",u=0,m=d;while(f(r,u)||(m="=",u%1)){if(n=p(r,u+=3/4),n>255)throw new(o("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");t=t<<8|n,s+=f(m,63&t>>8-u%1*8)}return s}})},"34af":function(e,t,n){"use strict";var r=n("23e7"),i=n("cfe9"),o=n("8a96"),s=n("6b37"),a=n("2005"),u=n("015d");i.Uint8Array&&r({target:"Uint8Array",proto:!0},{setFromHex:function(e){s(this),o(e),a(this.buffer);var t=u(e,this).read;return{read:t,written:t/2}}})},3511:function(e,t,n){"use strict";var r=TypeError,i=9007199254740991;e.exports=function(e){if(e>i)throw r("Maximum allowed index exceeded");return e}},3529:function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),o=n("59ed"),s=n("f069"),a=n("e667"),u=n("2266"),c=n("5eed");r({target:"Promise",stat:!0,forced:c},{race:function(e){var t=this,n=s.f(t),r=n.reject,c=a((function(){var s=o(t.resolve);u(e,(function(e){i(s,t,e).then(n.resolve,r)}))}));return c.error&&r(c.value),n.promise}})},"35a1":function(e,t,n){"use strict";var r=n("f5df"),i=n("dc4a"),o=n("7234"),s=n("3f8c"),a=n("b622"),u=a("iterator");e.exports=function(e){if(!o(e))return i(e,u)||i(e,"@@iterator")||s[r(e)]}},"368e":function(e,t,n){},"36f2":function(e,t,n){"use strict";var r,i,o,s,a=n("cfe9"),u=n("2a07"),c=n("dbe5"),l=a.structuredClone,d=a.ArrayBuffer,h=a.MessageChannel,f=!1;if(c)f=function(e){l(e,{transfer:[e]})};else if(d)try{h||(r=u("worker_threads"),r&&(h=r.MessageChannel)),h&&(i=new h,o=new d(2),s=function(e){i.port1.postMessage(null,[e])},2===o.byteLength&&(s(o),0===o.byteLength&&(f=s)))}catch(p){}e.exports=f},"37e8":function(e,t,n){"use strict";var r=n("83ab"),i=n("aed9"),o=n("9bf2"),s=n("825a"),a=n("fc6a"),u=n("df75");t.f=r&&!i?Object.defineProperties:function(e,t){s(e);var n,r=a(t),i=u(t),c=i.length,l=0;while(c>l)o.f(e,n=i[l++],r[n]);return e}},"384f":function(e,t,n){"use strict";var r=n("e330"),i=n("5388"),o=n("cb27"),s=o.Set,a=o.proto,u=r(a.forEach),c=r(a.keys),l=c(new s).next;e.exports=function(e,t,n){return n?i({iterator:c(e),next:l},t):u(e,t)}},"395e":function(e,t,n){"use strict";var r=n("dc19"),i=n("cb27").has,o=n("8e16"),s=n("7f65"),a=n("5388"),u=n("2a62");e.exports=function(e){var t=r(this),n=s(e);if(o(t)<n.size)return!1;var c=n.getIterator();return!1!==a(c,(function(e){if(!i(t,e))return u(c,"normal",!1)}))}},"398e":function(e,t,n){n("e01a"),n("d9e2");var r=n("e99a");function i(){
2
2
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
3
- var t,n,o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",a=o.toStringTag||"@@toStringTag";function u(e,i,o,s){var a=i&&i.prototype instanceof l?i:l,u=Object.create(a.prototype);return r(u,"_invoke",function(e,r,i){var o,s,a,u=0,l=i||[],d=!1,h={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,n){return o=e,s=0,a=t,h.n=n,c}};function f(e,r){for(s=e,a=r,n=0;!d&&u&&!i&&n<l.length;n++){var i,o=l[n],f=h.p,p=o[2];e>3?(i=p===r)&&(a=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=t):o[0]<=f&&((i=e<2&&f<o[1])?(s=0,h.v=r,h.n=o[1]):f<p&&(i=e<3||o[0]>r||r>p)&&(o[4]=e,o[5]=r,h.n=p,s=0))}if(i||e>1)return c;throw d=!0,r}return function(i,l,p){if(u>1)throw TypeError("Generator is already running");for(d&&1===l&&f(l,p),s=l,a=p;(n=s<2?t:a)||!d;){o||(s?s<3?(s>1&&(h.n=-1),f(s,a)):h.n=a:h.v=a);try{if(u=2,o){if(s||(i="next"),n=o[i]){if(!(n=n.call(o,a)))throw TypeError("iterator result is not an object");if(!n.done)return n;a=n.value,s<2&&(s=0)}else 1===s&&(n=o["return"])&&n.call(o),s<2&&(a=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=t}else if((n=(d=h.n<0)?a:e.call(r,h))!==c)break}catch(n){o=t,s=1,a=n}finally{u=1}}return{value:n,done:d}}}(e,o,s),!0),u}var c={};function l(){}function d(){}function h(){}n=Object.getPrototypeOf;var f=[][s]?n(n([][s]())):(r(n={},s,(function(){return this})),n),p=h.prototype=l.prototype=Object.create(f);function v(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,r(e,a,"GeneratorFunction")),e.prototype=Object.create(p),e}return d.prototype=h,r(p,"constructor",h),r(h,"constructor",d),d.displayName="GeneratorFunction",r(h,a,"GeneratorFunction"),r(p),r(p,a,"Generator"),r(p,s,(function(){return this})),r(p,"toString",(function(){return"[object Generator]"})),(e.exports=i=function(){return{w:u,m:v}},e.exports.__esModule=!0,e.exports["default"]=e.exports)()}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},"3a34":function(e,t,n){"use strict";var r=n("83ab"),i=n("e8b5"),o=TypeError,s=Object.getOwnPropertyDescriptor,a=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=a?function(e,t){if(i(e)&&!s(e,"length").writable)throw new o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},"3a9b":function(e,t,n){"use strict";var r=n("e330");e.exports=r({}.isPrototypeOf)},"3bbe":function(e,t,n){"use strict";var r=n("1787"),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o("Can't set "+i(e)+" as a prototype")}},"3c5d":function(e,t,n){"use strict";var r=n("cfe9"),i=n("c65b"),o=n("ebb5"),s=n("07fa"),a=n("182d"),u=n("7b0b"),c=n("d039"),l=r.RangeError,d=r.Int8Array,h=d&&d.prototype,f=h&&h.set,p=o.aTypedArray,v=o.exportTypedArrayMethod,m=!c((function(){var e=new Uint8ClampedArray(2);return i(f,e,{length:1,0:3},1),3!==e[1]})),g=m&&o.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var e=new d(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));v("set",(function(e){p(this);var t=a(arguments.length>1?arguments[1]:void 0,1),n=u(e);if(m)return i(f,this,n,t);var r=this.length,o=s(n),c=0;if(o+t>r)throw new l("Wrong length");while(c<o)this[t+c]=n[c++]}),!m||g)},"3c65":function(e,t,n){"use strict";var r=n("23e7"),i=n("7b0b"),o=n("07fa"),s=n("3a34"),a=n("083a"),u=n("3511"),c=1!==[].unshift(0),l=function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}},d=c||!l();r({target:"Array",proto:!0,arity:1,forced:d},{unshift:function(e){var t=i(this),n=o(t),r=arguments.length;if(r){u(n+r);var c=n;while(c--){var l=c+r;c in t?t[l]=t[c]:a(t,l)}for(var d=0;d<r;d++)t[d]=arguments[d]}return s(t,n+r)}})},"3c93":function(e,t,n){},"3ca3":function(e,t,n){"use strict";var r=n("6547").charAt,i=n("577e"),o=n("69f3"),s=n("c6d2"),a=n("4754"),u="String Iterator",c=o.set,l=o.getterFor(u);s(String,"String",(function(e){c(this,{type:u,string:i(e),index:0})}),(function(){var e,t=l(this),n=t.string,i=t.index;return i>=n.length?a(void 0,!0):(e=r(n,i),t.index+=e.length,a(e,!1))}))},"3f7e":function(e,t,n){"use strict";var r=n("b5db"),i=r.match(/firefox\/(\d+)/i);e.exports=!!i&&+i[1]},"3f8c":function(e,t,n){"use strict";e.exports={}},4002:function(e,t,n){"use strict";n("3ca3");var r,i=n("23e7"),o=n("83ab"),s=n("f354"),a=n("cfe9"),u=n("0366"),c=n("e330"),l=n("cb2d"),d=n("edd0"),h=n("19aa"),f=n("1a2d"),p=n("60da"),v=n("4df4"),m=n("f36a"),g=n("6547").codeAt,_=n("5fb2"),y=n("577e"),b=n("d44e"),w=n("d6d6"),T=n("5352"),S=n("69f3"),C=S.set,E=S.getterFor("URL"),A=T.URLSearchParams,x=T.getState,R=a.URL,O=a.TypeError,I=a.parseInt,k=Math.floor,P=Math.pow,M=c("".charAt),N=c(/./.exec),L=c([].join),D=c(1.1.toString),U=c([].pop),j=c([].push),F=c("".replace),H=c([].shift),B=c("".split),$=c("".slice),q=c("".toLowerCase),V=c([].unshift),z="Invalid authority",W="Invalid scheme",G="Invalid host",Y="Invalid port",K=/[a-z]/i,X=/[\d+-.a-z]/i,J=/\d/,Q=/^0x/i,Z=/^[0-7]+$/,ee=/^\d+$/,te=/^[\da-f]+$/i,ne=/[\0\t\n\r #%/:<>?@[\\\]^|]/,re=/[\0\t\n\r #/:<>?@[\\\]^|]/,ie=/^[\u0000-\u0020]+/,oe=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,se=/[\t\n\r]/g,ae=function(e){var t,n,r,i,o,s,a,u=B(e,".");if(u.length&&""===u[u.length-1]&&u.length--,t=u.length,t>4)return e;for(n=[],r=0;r<t;r++){if(i=u[r],""===i)return e;if(o=10,i.length>1&&"0"===M(i,0)&&(o=N(Q,i)?16:8,i=$(i,8===o?1:2)),""===i)s=0;else{if(!N(10===o?ee:8===o?Z:te,i))return e;s=I(i,o)}j(n,s)}for(r=0;r<t;r++)if(s=n[r],r===t-1){if(s>=P(256,5-t))return null}else if(s>255)return null;for(a=U(n),r=0;r<n.length;r++)a+=n[r]*P(256,3-r);return a},ue=function(e){var t,n,r,i,o,s,a,u=[0,0,0,0,0,0,0,0],c=0,l=null,d=0,h=function(){return M(e,d)};if(":"===h()){if(":"!==M(e,1))return;d+=2,c++,l=c}while(h()){if(8===c)return;if(":"!==h()){t=n=0;while(n<4&&N(te,h()))t=16*t+I(h(),16),d++,n++;if("."===h()){if(0===n)return;if(d-=n,c>6)return;r=0;while(h()){if(i=null,r>0){if(!("."===h()&&r<4))return;d++}if(!N(J,h()))return;while(N(J,h())){if(o=I(h(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;d++}u[c]=256*u[c]+i,r++,2!==r&&4!==r||c++}if(4!==r)return;break}if(":"===h()){if(d++,!h())return}else if(h())return;u[c++]=t}else{if(null!==l)return;d++,c++,l=c}}if(null!==l){s=c-l,c=7;while(0!==c&&s>0)a=u[c],u[c--]=u[l+s-1],u[l+--s]=a}else if(8!==c)return;return u},ce=function(e){for(var t=null,n=1,r=null,i=0,o=0;o<8;o++)0!==e[o]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n?r:t},le=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)V(t,e%256),e=k(e/256);return L(t,".")}if("object"==typeof e){for(t="",r=ce(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=D(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},de={},he=p({},de,{" ":1,'"':1,"<":1,">":1,"`":1}),fe=p({},he,{"#":1,"?":1,"{":1,"}":1}),pe=p({},fe,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ve=function(e,t){var n=g(e,0);return n>32&&n<127&&!f(t,e)?e:encodeURIComponent(e)},me={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ge=function(e,t){var n;return 2===e.length&&N(K,M(e,0))&&(":"===(n=M(e,1))||!t&&"|"===n)},_e=function(e){var t;return e.length>1&&ge($(e,0,2))&&(2===e.length||"/"===(t=M(e,2))||"\\"===t||"?"===t||"#"===t)},ye=function(e){return"."===e||"%2e"===q(e)},be=function(e){return e=q(e),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},we={},Te={},Se={},Ce={},Ee={},Ae={},xe={},Re={},Oe={},Ie={},ke={},Pe={},Me={},Ne={},Le={},De={},Ue={},je={},Fe={},He={},Be={},$e=function(e,t,n){var r,i,o,s=y(e);if(t){if(i=this.parse(s),i)throw new O(i);this.searchParams=null}else{if(void 0!==n&&(r=new $e(n,!0)),i=this.parse(s,null,r),i)throw new O(i);o=x(new A),o.bindURL(this),this.searchParams=o}};$e.prototype={type:"URL",parse:function(e,t,n){var i,o,s,a,u=this,c=t||we,l=0,d="",h=!1,p=!1,g=!1;e=y(e),t||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,e=F(e,ie,""),e=F(e,oe,"$1")),e=F(e,se,""),i=v(e);while(l<=i.length){switch(o=i[l],c){case we:if(!o||!N(K,o)){if(t)return W;c=Se;continue}d+=q(o),c=Te;break;case Te:if(o&&(N(X,o)||"+"===o||"-"===o||"."===o))d+=q(o);else{if(":"!==o){if(t)return W;d="",c=Se,l=0;continue}if(t&&(u.isSpecial()!==f(me,d)||"file"===d&&(u.includesCredentials()||null!==u.port)||"file"===u.scheme&&!u.host))return;if(u.scheme=d,t)return void(u.isSpecial()&&me[u.scheme]===u.port&&(u.port=null));d="","file"===u.scheme?c=Ne:u.isSpecial()&&n&&n.scheme===u.scheme?c=Ce:u.isSpecial()?c=Re:"/"===i[l+1]?(c=Ee,l++):(u.cannotBeABaseURL=!0,j(u.path,""),c=Fe)}break;case Se:if(!n||n.cannotBeABaseURL&&"#"!==o)return W;if(n.cannotBeABaseURL&&"#"===o){u.scheme=n.scheme,u.path=m(n.path),u.query=n.query,u.fragment="",u.cannotBeABaseURL=!0,c=Be;break}c="file"===n.scheme?Ne:Ae;continue;case Ce:if("/"!==o||"/"!==i[l+1]){c=Ae;continue}c=Oe,l++;break;case Ee:if("/"===o){c=Ie;break}c=je;continue;case Ae:if(u.scheme=n.scheme,o===r)u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=m(n.path),u.query=n.query;else if("/"===o||"\\"===o&&u.isSpecial())c=xe;else if("?"===o)u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=m(n.path),u.query="",c=He;else{if("#"!==o){u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=m(n.path),u.path.length--,c=je;continue}u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=m(n.path),u.query=n.query,u.fragment="",c=Be}break;case xe:if(!u.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,c=je;continue}c=Ie}else c=Oe;break;case Re:if(c=Oe,"/"!==o||"/"!==M(d,l+1))continue;l++;break;case Oe:if("/"!==o&&"\\"!==o){c=Ie;continue}break;case Ie:if("@"===o){h&&(d="%40"+d),h=!0,s=v(d);for(var _=0;_<s.length;_++){var b=s[_];if(":"!==b||g){var w=ve(b,pe);g?u.password+=w:u.username+=w}else g=!0}d=""}else if(o===r||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()){if(h&&""===d)return z;l-=v(d).length+1,d="",c=ke}else d+=o;break;case ke:case Pe:if(t&&"file"===u.scheme){c=De;continue}if(":"!==o||p){if(o===r||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()){if(u.isSpecial()&&""===d)return G;if(t&&""===d&&(u.includesCredentials()||null!==u.port))return;if(a=u.parseHost(d),a)return a;if(d="",c=Ue,t)return;continue}"["===o?p=!0:"]"===o&&(p=!1),d+=o}else{if(""===d)return G;if(a=u.parseHost(d),a)return a;if(d="",c=Me,t===Pe)return}break;case Me:if(!N(J,o)){if(o===r||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()||t){if(""!==d){var T=I(d,10);if(T>65535)return Y;u.port=u.isSpecial()&&T===me[u.scheme]?null:T,d=""}if(t)return;c=Ue;continue}return Y}d+=o;break;case Ne:if(u.scheme="file","/"===o||"\\"===o)c=Le;else{if(!n||"file"!==n.scheme){c=je;continue}switch(o){case r:u.host=n.host,u.path=m(n.path),u.query=n.query;break;case"?":u.host=n.host,u.path=m(n.path),u.query="",c=He;break;case"#":u.host=n.host,u.path=m(n.path),u.query=n.query,u.fragment="",c=Be;break;default:_e(L(m(i,l),""))||(u.host=n.host,u.path=m(n.path),u.shortenPath()),c=je;continue}}break;case Le:if("/"===o||"\\"===o){c=De;break}n&&"file"===n.scheme&&!_e(L(m(i,l),""))&&(ge(n.path[0],!0)?j(u.path,n.path[0]):u.host=n.host),c=je;continue;case De:if(o===r||"/"===o||"\\"===o||"?"===o||"#"===o){if(!t&&ge(d))c=je;else if(""===d){if(u.host="",t)return;c=Ue}else{if(a=u.parseHost(d),a)return a;if("localhost"===u.host&&(u.host=""),t)return;d="",c=Ue}continue}d+=o;break;case Ue:if(u.isSpecial()){if(c=je,"/"!==o&&"\\"!==o)continue}else if(t||"?"!==o)if(t||"#"!==o){if(o!==r&&(c=je,"/"!==o))continue}else u.fragment="",c=Be;else u.query="",c=He;break;case je:if(o===r||"/"===o||"\\"===o&&u.isSpecial()||!t&&("?"===o||"#"===o)){if(be(d)?(u.shortenPath(),"/"===o||"\\"===o&&u.isSpecial()||j(u.path,"")):ye(d)?"/"===o||"\\"===o&&u.isSpecial()||j(u.path,""):("file"===u.scheme&&!u.path.length&&ge(d)&&(u.host&&(u.host=""),d=M(d,0)+":"),j(u.path,d)),d="","file"===u.scheme&&(o===r||"?"===o||"#"===o))while(u.path.length>1&&""===u.path[0])H(u.path);"?"===o?(u.query="",c=He):"#"===o&&(u.fragment="",c=Be)}else d+=ve(o,fe);break;case Fe:"?"===o?(u.query="",c=He):"#"===o?(u.fragment="",c=Be):o!==r&&(u.path[0]+=ve(o,de));break;case He:t||"#"!==o?o!==r&&("'"===o&&u.isSpecial()?u.query+="%27":u.query+="#"===o?"%23":ve(o,de)):(u.fragment="",c=Be);break;case Be:o!==r&&(u.fragment+=ve(o,he));break}l++}},parseHost:function(e){var t,n,r;if("["===M(e,0)){if("]"!==M(e,e.length-1))return G;if(t=ue($(e,1,-1)),!t)return G;this.host=t}else if(this.isSpecial()){if(e=_(e),N(ne,e))return G;if(t=ae(e),null===t)return G;this.host=t}else{if(N(re,e))return G;for(t="",n=v(e),r=0;r<n.length;r++)t+=ve(n[r],de);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return f(me,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&ge(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,s=e.path,a=e.query,u=e.fragment,c=t+":";return null!==i?(c+="//",e.includesCredentials()&&(c+=n+(r?":"+r:"")+"@"),c+=le(i),null!==o&&(c+=":"+o)):"file"===t&&(c+="//"),c+=e.cannotBeABaseURL?s[0]:s.length?"/"+L(s,"/"):"",null!==a&&(c+="?"+a),null!==u&&(c+="#"+u),c},setHref:function(e){var t=this.parse(e);if(t)throw new O(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new qe(e.path[0]).origin}catch(n){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+le(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(y(e)+":",we)},getUsername:function(){return this.username},setUsername:function(e){var t=v(y(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=ve(t[n],pe)}},getPassword:function(){return this.password},setPassword:function(e){var t=v(y(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=ve(t[n],pe)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?le(e):le(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,ke)},getHostname:function(){var e=this.host;return null===e?"":le(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Pe)},getPort:function(){var e=this.port;return null===e?"":y(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(e=y(e),""===e?this.port=null:this.parse(e,Me))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+L(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Ue))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){e=y(e),""===e?this.query=null:("?"===M(e,0)&&(e=$(e,1)),this.query="",this.parse(e,He)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){e=y(e),""!==e?("#"===M(e,0)&&(e=$(e,1)),this.fragment="",this.parse(e,Be)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var qe=function(e){var t=h(this,Ve),n=w(arguments.length,1)>1?arguments[1]:void 0,r=C(t,new $e(e,!1,n));o||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},Ve=qe.prototype,ze=function(e,t){return{get:function(){return E(this)[e]()},set:t&&function(e){return E(this)[t](e)},configurable:!0,enumerable:!0}};if(o&&(d(Ve,"href",ze("serialize","setHref")),d(Ve,"origin",ze("getOrigin")),d(Ve,"protocol",ze("getProtocol","setProtocol")),d(Ve,"username",ze("getUsername","setUsername")),d(Ve,"password",ze("getPassword","setPassword")),d(Ve,"host",ze("getHost","setHost")),d(Ve,"hostname",ze("getHostname","setHostname")),d(Ve,"port",ze("getPort","setPort")),d(Ve,"pathname",ze("getPathname","setPathname")),d(Ve,"search",ze("getSearch","setSearch")),d(Ve,"searchParams",ze("getSearchParams")),d(Ve,"hash",ze("getHash","setHash"))),l(Ve,"toJSON",(function(){return E(this).serialize()}),{enumerable:!0}),l(Ve,"toString",(function(){return E(this).serialize()}),{enumerable:!0}),R){var We=R.createObjectURL,Ge=R.revokeObjectURL;We&&l(qe,"createObjectURL",u(We,R)),Ge&&l(qe,"revokeObjectURL",u(Ge,R))}b(qe,"URL"),i({global:!0,constructor:!0,forced:!s,sham:!o},{URL:qe})},4022:function(e,t,n){(function(t,r){var i,o=n("ac14").default,s=n("398e").default,a=n("c973").default,u=n("63748").default,c=n("ded3").default;n("e01a"),n("d9e2"),n("a630"),n("caad"),n("e260"),n("14d9"),n("13d5"),n("26e9"),n("4e82"),n("3c65"),n("c19f"),n("ace4"),n("2c66"),n("249d"),n("40e9"),n("6c57"),n("e9f5"),n("910d"),n("f665"),n("7d54"),n("ab43"),n("9485"),n("a732"),n("e9c4"),n("cca6"),n("acd8"),n("e25e"),n("e6cf"),n("f8c9"),n("4d63"),n("c607"),n("ac1f"),n("00b4"),n("25f0"),n("8a79"),n("2532"),n("466d"),n("5319"),n("841c"),n("1276"),n("2ca0"),n("498a"),n("eee7"),n("5cc6"),n("fb2c"),n("907a"),n("735e"),n("986a"),n("1d02"),n("20bf"),n("ec97"),n("3c5d"),n("219c"),n("b39a"),n("6ce5"),n("2834"),n("4ea1"),n("5087e"),n("61ae"),n("0a00"),n("b6f3"),n("4801"),n("81b2"),n("313d"),n("159b"),n("ddb0"),n("0eb6"),n("b7ef"),n("8bd4"),n("c73d"),n("2b3d"),n("bf19"),n("9861"),n("88a7"),n("271a"),n("5494"),i=function(){return n={566:function(e,t){var n;function r(){}function i(){i.init.call(this)}function l(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function d(e,t,n,i){var o,s;if("function"!=typeof n)throw new TypeError('"listener" argument must be a function');return(o=e._events)?(o.newListener&&(e.emit("newListener",t,n.listener||n),o=e._events),s=o[t]):(o=e._events=new r,e._eventsCount=0),s?("function"==typeof s?s=o[t]=i?[n,s]:[s,n]:i?s.unshift(n):s.push(n),!s.warned&&(i=l(e))&&0<i&&s.length>i&&(s.warned=!0,(i=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",i.emitter=e,i.type=t,i.count=s.length,i=i,"function"==typeof console.warn?console.warn(i):console.log(i))):(s=o[t]=n,++e._eventsCount),e}function h(e,t,n){function r(){e.removeListener(t,r),i||(i=!0,n.apply(e,arguments))}var i=!1;return r.listener=n,r}function f(e){var t=this._events;if(t){if(t=t[e],"function"==typeof t)return 1;if(t)return t.length}return 0}function p(e,t){for(var n=Array(t);t--;)n[t]=e[t];return n}Object.defineProperty(t,"__esModule",{value:!0}),r.prototype=Object.create(null),(i.EventEmitter=i).usingDomains=!1,i.prototype.domain=void 0,i.prototype._events=void 0,i.prototype._maxListeners=void 0,i.defaultMaxListeners=10,i.init=function(){this.domain=null,!i.usingDomains||!n.active||this instanceof n.Domain||(this.domain=n.active),this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new r,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return l(this)},i.prototype.emit=function(e){var t,n,r,i="error"===e,o=this._events;if(o)i=i&&null==o.error;else if(!i)return!1;if(s=this.domain,i){var s;i=arguments[1];if(s)return(i=i||new Error('Uncaught, unspecified "error" event')).domainEmitter=this,i.domain=s,i.domainThrown=!1,s.emit("error",i),!1;throw i instanceof Error?i:((s=new Error('Uncaught, unspecified "error" event. ('+i+")")).context=i,s)}if(!(t=o[e]))return!1;var a,u="function"==typeof t;switch(a=arguments.length){case 1:var c=t,l=u,d=this;if(l)c.call(d);else for(var h=c.length,f=p(c,h),v=0;v<h;++v)f[v].call(d);break;case 2:l=t,c=u;var m=this,g=arguments[1];if(c)l.call(m,g);else for(var _=l.length,y=p(l,_),b=0;b<_;++b)y[b].call(m,g);break;case 3:var w=t,T=u,S=this,C=arguments[1],E=arguments[2];if(T)w.call(S,C,E);else for(var A=w.length,x=p(w,A),R=0;R<A;++R)x[R].call(S,C,E);break;case 4:T=t,w=u;var O=this,I=arguments[1],k=arguments[2],P=arguments[3];if(w)T.call(O,I,k,P);else for(var M=T.length,N=p(T,M),L=0;L<M;++L)N[L].call(O,I,k,P);break;default:for(n=Array(a-1),r=1;r<a;r++)n[r-1]=arguments[r];var D=t,U=u,j=this,F=n;if(U)D.apply(j,F);else for(var H=D.length,B=p(D,H),$=0;$<H;++$)B[$].apply(j,F)}return!0},i.prototype.on=i.prototype.addListener=function(e,t){return d(this,e,t,!1)},i.prototype.prependListener=function(e,t){return d(this,e,t,!0)},i.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,h(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,h(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,i,o,s,a;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if((i=this._events)&&(n=i[e]))if(n===t||n.listener&&n.listener===t)0==--this._eventsCount?this._events=new r:(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,s=n.length;0<s--;)if(n[s]===t||n[s].listener&&n[s].listener===t){a=n[s].listener,o=s;break}if(o<0)return this;if(1===n.length){if(n[0]=void 0,0==--this._eventsCount)return this._events=new r,this;delete i[e]}else{for(var u=n,c=o,l=c,d=l+1,h=u.length;d<h;l+=1,d+=1)u[l]=u[d];u.pop()}i.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.removeAllListeners=function(e){var t,n=this._events;if(n)if(n.removeListener){if(0===arguments.length){for(var i,o=Object.keys(n),s=0;s<o.length;++s)"removeListener"!==(i=o[s])&&this.removeAllListeners(i);this.removeAllListeners("removeListener"),this._events=new r,this._eventsCount=0}else if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(t)for(;this.removeListener(e,t[t.length-1]),t[0];);}else 0===arguments.length?(this._events=new r,this._eventsCount=0):n[e]&&(0==--this._eventsCount?this._events=new r:delete n[e]);return this},i.prototype.listeners=function(e){var t=this._events;e=t&&(t=t[e])?"function"==typeof t?[t.listener||t]:(e=>{for(var t=Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t})(t):[];return e},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},i.prototype.listenerCount=f,i.prototype.eventNames=function(){return 0<this._eventsCount?Reflect.ownKeys(this._events):[]};for(var v,m=new Uint8Array(16),g=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,_=[],y=0;y<256;++y)_.push((y+256).toString(16).substr(1));function b(e,t){t=1<arguments.length&&void 0!==t?t:0,e=(_[e[t+0]]+_[e[t+1]]+_[e[t+2]]+_[e[t+3]]+"-"+_[e[t+4]]+_[e[t+5]]+"-"+_[e[t+6]]+_[e[t+7]]+"-"+_[e[t+8]]+_[e[t+9]]+"-"+_[e[t+10]]+_[e[t+11]]+_[e[t+12]]+_[e[t+13]]+_[e[t+14]]+_[e[t+15]]).toLowerCase();if("string"==typeof(t=e)&&g.test(t))return e;throw TypeError("Stringified UUID is invalid")}function w(e,t,n){var r=(e=e||{}).random||(e.rng||function(){if(v||(v="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))return v(m);throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")})();if(r[6]=64|15&r[6],r[8]=128|63&r[8],t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return b(r)}function T(e,t){var n;return e&&t?((e=c({},e)).localCandidateId&&(n=t.get(e.localCandidateId),e.local=c({},n)),e.remoteCandidateId&&(n=t.get(e.remoteCandidateId),e.remote=c({},n)),e):{}}function S(e,t,n){return 8*(t=t,r=(e=e)[n=n],n=t?t[n]:null,null===r||null===n?null:(r-n)/(e.timestamp-t.timestamp)*1e3);var r}function C(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return null;var r={audio:{inbound:[],outbound:[]},video:{inbound:[],outbound:[]},connection:{inbound:[],outbound:[]}};n.remote&&(r.remote={audio:{inbound:[],outbound:[]},video:{inbound:[],outbound:[]}});var i,o,s,a=u(e.values());try{for(a.s();!(i=a.n()).done;){var l=i.value;switch(l.type){case"outbound-rtp":var d,h=l.mediaType||l.kind,f={};["audio","video"].includes(h)&&(l.codecId&&(d=e.get(l.codecId))&&(f.clockRate=d.clockRate,f.mimeType=d.mimeType,f.payloadType=d.payloadType),d=e.get(l.mediaSourceId)||e.get(l.trackId)||{},r[h].outbound.push(c(c(c({},l),f),{},{track:c({},d)})));break;case"inbound-rtp":var p,v=l.mediaType||l.kind;h={};if(!["audio","video"].includes(v))if(l.id.includes("Video"))v="video";else{if(!l.id.includes("Audio"))continue;v="audio"}l.codecId&&(f=e.get(l.codecId))&&(h.clockRate=f.clockRate,h.mimeType=f.mimeType,h.payloadType=f.payloadType),!r.connection.id&&l.transportId&&(p=e.get(l.transportId))&&p.selectedCandidatePairId&&(p=e.get(p.selectedCandidatePairId),r.connection=T(p,e)),p=e.get(l.mediaSourceId)||e.get(l.trackId)||{},r[v].inbound.push(c(c(c({},l),h),{},{track:c({},p)}));break;case"peer-connection":r.connection.dataChannelsClosed=l.dataChannelsClosed,r.connection.dataChannelsOpened=l.dataChannelsOpened;break;case"remote-inbound-rtp":if(!n.remote)break;var m,g=l.mediaType||l.kind,_={};if(!["audio","video"].includes(g))if(l.id.includes("Video"))g="video";else{if(!l.id.includes("Audio"))continue;g="audio"}l.codecId&&(m=e.get(l.codecId))&&(_.clockRate=m.clockRate,_.mimeType=m.mimeType,_.payloadType=m.payloadType),!r.connection.id&&l.transportId&&(m=e.get(l.transportId))&&m.selectedCandidatePairId&&(y=e.get(m.selectedCandidatePairId),r.connection=T(y,e)),r.remote[g].inbound.push(c(c({},l),_));break;case"remote-outbound-rtp":var y,b;n.remote&&(y=l.mediaType||l.kind,_={},["audio","video"].includes(y))&&(l.codecId&&(b=e.get(l.codecId))&&(_.clockRate=b.clockRate,_.mimeType=b.mimeType,_.payloadType=b.payloadType),r.remote[y].outbound.push(c(c({},l),_)))}}}catch(A){a.e(A)}finally{a.f()}if(!r.connection.id){var w,C=u(e.values());try{for(C.s();!(w=C.n()).done;){var E=w.value;"candidate-pair"===E.type&&E.nominated&&"succeeded"===E.state&&(r.connection=T(E,e))}}catch(A){C.e(A)}finally{C.f()}}return o=r,(s=t)&&(o.audio.inbound.map(e=>{var t=s.audio.inbound.find(t=>t.id===e.id);e.bitrate=S(e,t,"bytesReceived"),e.packetRate=S(e,t,"packetsReceived")}),o.audio.outbound.map(e=>{var t=s.audio.outbound.find(t=>t.id===e.id);e.bitrate=S(e,t,"bytesSent"),e.packetRate=S(e,t,"packetsSent")}),o.video.inbound.map(e=>{var t=s.video.inbound.find(t=>t.id===e.id);e.bitrate=S(e,t,"bytesReceived"),e.packetRate=S(e,t,"packetsReceived")}),o.video.outbound.map(e=>{var t=s.video.outbound.find(t=>t.id===e.id);e.bitrate=S(e,t,"bytesSent"),e.packetRate=S(e,t,"packetsSent")})),o}var E,A={},x=[];class R extends i{constructor(e){if(super(),this.monitoringSetInterval=0,this.connectionMonitoringSetInterval=0,this.connectionMonitoringInterval=1e3,this.remote=!0,this.peersToMonitor={},this.timeline=[],this.statsToMonitor=["inbound-rtp","outbound-rtp","remote-inbound-rtp","remote-outbound-rtp","peer-connection","data-channel","stream","track","sender","receiver","transport","candidate-pair","local-candidate","remote-candidate"],"undefined"==typeof window)throw new Error("WebRTCStats only works in browser");e=c({},e),this.isEdge=!!window.RTCIceGatherer,this.getStatsInterval=e.getStatsInterval||1e3,this.rawStats=!!e.rawStats,this.statsObject=!!e.statsObject,this.filteredStats=!!e.filteredStats,this.shouldWrapGetUserMedia=!!e.wrapGetUserMedia,"boolean"==typeof e.remote&&(this.remote=e.remote),this.debug=!!e.debug,this.logLevel=e.logLevel||"none",this.shouldWrapGetUserMedia&&this.wrapGetUserMedia()}addPeer(e,t){var n=this;return a(s().m((function r(){return s().w((function(r){while(1)switch(r.n){case 0:return r.a(2,(console.warn("The addPeer() method has been deprecated, please use addConnection()"),n.addConnection({peerId:e,pc:t})))}}),r)})))()}addConnection(e){var t=this;return a(s().m((function n(){var r,i,a,u,c,l,d,h;return s().w((function(n){while(1)switch(n.n){case 0:if(r=e.pc,i=e.peerId,a=e.connectionId,u=e.remote,u="boolean"==typeof u?u:t.remote,r&&r instanceof RTCPeerConnection){n.n=1;break}throw new Error("Missing argument 'pc' or is not of instance RTCPeerConnection");case 1:if(i){n.n=2;break}throw new Error("Missing argument peerId");case 2:if(!t.isEdge){n.n=3;break}throw new Error("Can't monitor peers in Edge at this time.");case 3:if(!t.peersToMonitor[i]){n.n=7;break}if(!a||!(a in t.peersToMonitor[i])){n.n=4;break}throw new Error(`We are already monitoring connection with id ${a}.`);case 4:d=o(t.peersToMonitor[i]);case 5:if((h=d()).done){n.n=7;break}if(c=h.value,c=t.peersToMonitor[i][c],c.pc!==r){n.n=6;break}throw new Error(`We are already monitoring peer with id ${i}.`);case 6:"closed"===c.pc.connectionState&&t.removeConnection({pc:c.pc}),n.n=5;break;case 7:return l=r.getConfiguration(),n.a(2,(l.iceServers&&l.iceServers.forEach((function(e){delete e.credential})),a=a||w(),t.emitEvent({event:"addConnection",tag:"peer",peerId:i,connectionId:a,data:{options:e,peerConfiguration:l}}),t.monitorPeer({peerId:i,connectionId:a,pc:r,remote:u}),{connectionId:a}))}}),n)})))()}getTimeline(e){return this.timeline=this.timeline.sort((e,t)=>e.timestamp.getTime()-t.timestamp.getTime()),e?this.timeline.filter(t=>t.tag===e):this.timeline}get logger(){var e=e=>{var t=["none","error","warn","info","debug"];return-1<t.slice(0,t.indexOf(this.logLevel)+1).indexOf(e)};return{error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];this.debug&&e("error")&&console.error("[webrtc-stats][error] ",...n)},warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];this.debug&&e("warn")&&console.warn("[webrtc-stats][warn] ",...n)},info(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];this.debug&&e("info")&&console.log("[webrtc-stats][info] ",...n)},debug(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];this.debug&&e("debug")&&console.debug("[webrtc-stats][debug] ",...n)}}}removeConnection(e){var t,n=e.connectionId,r=e.pc;if(!r&&!n)throw new Error("Missing arguments. You need to either send pc or a connectionId.");if(n){if("string"!=typeof n)throw new Error("connectionId must be a string.");for(var i in this.peersToMonitor)n in this.peersToMonitor[i]&&(r=this.peersToMonitor[i][n].pc,t=i)}else if(r){if(!(r instanceof RTCPeerConnection))throw new Error("pc must be an instance of RTCPeerConnection.");for(var o in this.peersToMonitor)for(var s in this.peersToMonitor[o])this.peersToMonitor[o][s].pc===r&&(n=s,t=o)}if(r&&n)return this.removePeerConnectionEventListeners(n,r),delete this.peersToMonitor[t][n],0===Object.values(this.peersToMonitor[t]).length&&delete this.peersToMonitor[t],{connectionId:n};throw new Error("Could not find the desired connection.")}removeAllPeers(){for(var e in this.peersToMonitor)this.removePeer(e)}removePeer(e){if(this.logger.info(`Removing PeerConnection with id ${e}.`),this.peersToMonitor[e]){for(var t in this.peersToMonitor[e]){var n=this.peersToMonitor[e][t].pc;this.removePeerConnectionEventListeners(t,n)}delete this.peersToMonitor[e]}}destroy(){this.removeAllPeers(),x.forEach(e=>{this.removeTrackEventListeners(e)}),x=[],this.shouldWrapGetUserMedia&&E&&(navigator.mediaDevices.getUserMedia=E)}monitorPeer(e){var t=e,n=(e=t.peerId,t.connectionId),r=t.pc,i=t.remote;if(r){if(i={pc:r,connectionId:n,stream:null,stats:{parsed:null,raw:null},options:{remote:i}},this.peersToMonitor[e]){if(n in this.peersToMonitor[e])return void this.logger.warn("Already watching connection with ID "+n);this.peersToMonitor[e][n]=i}else this.peersToMonitor[e]={[n]:i};this.addPeerConnectionEventListeners(e,n,r),1===this.numberOfMonitoredPeers&&(this.startStatsMonitoring(),this.startConnectionStateMonitoring())}else this.logger.warn("Did not receive pc argument when calling monitorPeer()")}startStatsMonitoring(){this.monitoringSetInterval||(this.monitoringSetInterval=window.setInterval(()=>{this.numberOfMonitoredPeers||this.stopStatsMonitoring(),this.getStats().then(e=>{e.forEach(e=>{this.emitEvent(e)})})},this._getStatsInterval))}stopStatsMonitoring(){this.monitoringSetInterval&&(window.clearInterval(this.monitoringSetInterval),this.monitoringSetInterval=0)}getStats(){var e=arguments,t=this;return a(s().m((function n(){var r,i,a,u,c,l,d,h,f,p,v,m,g,_,y,b,w,T,S,E;return s().w((function(n){while(1)switch(n.p=n.n){case 0:if(r=e.length>0&&void 0!==e[0]?e[0]:null,t.logger.info(r?"Getting stats from peer "+r:"Getting stats from all peers"),i={},!r){n.n=2;break}if(t.peersToMonitor[r]){n.n=1;break}throw new Error(`Cannot get stats. Peer with id ${r} does not exist`);case 1:i[r]=t.peersToMonitor[r],n.n=3;break;case 2:i=t.peersToMonitor;case 3:a=[],b=o(i);case 4:if((w=b()).done){n.n=13;break}u=w.value,T=o(i[u]);case 5:if((S=T()).done){n.n=12;break}if(c=S.value,l=i[u][c],d=l.pc,!d||t.checkIfConnectionIsClosed(u,c,d)){n.n=11;break}if(n.p=6,_=t.getTimestamp(),y=d.getStats(null),!y){n.n=8;break}return n.n=7,y;case 7:h=n.v,f=t.getTimestamp(),p=(e=>{if(!e.entries)return e;var t={};return e.forEach((function(e,n){t[n]=e})),t})(h),v={remote:l.options.remote},m=C(h,l.stats.parsed,v),g={event:"stats",tag:"stats",peerId:u,connectionId:c,timeTaken:f-_,data:m},!0===t.rawStats&&(g.rawStats=h),!0===t.statsObject&&(g.statsObject=p),!0===t.filteredStats&&(g.filteredStats=t.filteroutStats(p)),a.push(g),l.stats.parsed=m,n.n=9;break;case 8:t.logger.error(`PeerConnection from peer ${u} did not return any stats data`);case 9:n.n=11;break;case 10:n.p=10,E=n.v,t.logger.error(E);case 11:n.n=5;break;case 12:n.n=4;break;case 13:return n.a(2,a)}}),n,null,[[6,10]])})))()}startConnectionStateMonitoring(){this.connectionMonitoringSetInterval=window.setInterval(()=>{for(var e in this.numberOfMonitoredPeers||this.stopConnectionStateMonitoring(),this.peersToMonitor)for(var t in this.peersToMonitor[e]){var n=this.peersToMonitor[e][t].pc;this.checkIfConnectionIsClosed(e,t,n)}},this.connectionMonitoringInterval)}checkIfConnectionIsClosed(e,t,n){var r=this.isConnectionClosed(n);return r&&(this.removeConnection({pc:n}),n="closed"===n.connectionState?"onconnectionstatechange":"oniceconnectionstatechange",this.emitEvent({event:n,peerId:e,connectionId:t,tag:"connection",data:"closed"})),r}isConnectionClosed(e){return"closed"===e.connectionState||"closed"===e.iceConnectionState}stopConnectionStateMonitoring(){this.connectionMonitoringSetInterval&&(window.clearInterval(this.connectionMonitoringSetInterval),this.connectionMonitoringSetInterval=0)}wrapGetUserMedia(){if(navigator.mediaDevices&&navigator.mediaDevices.getUserMedia){this.logger.info("Wrapping getUsermedia functions."),E=navigator.mediaDevices.getUserMedia.bind(navigator.mediaDevices);var e=this.parseGetUserMedia.bind(this);navigator.mediaDevices.getUserMedia=function(){return e({constraints:arguments[0]}),E.apply(navigator.mediaDevices,arguments).then(t=>(e({stream:t}),t),t=>(e({error:t}),Promise.reject(t)))}.bind(navigator.mediaDevices)}else this.logger.warn("'navigator.mediaDevices.getUserMedia' is not available in browser. Will not wrap getUserMedia.")}filteroutStats(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=c({},t);for(e in n){var r=n[e];this.statsToMonitor.includes(r.type)||delete n[e]}return n}get peerConnectionListeners(){return{icecandidate:(e,t,n,r)=>{this.logger.debug("[pc-event] icecandidate | peerId: ${peerId}",r),this.emitEvent({event:"onicecandidate",tag:"connection",peerId:e,connectionId:t,data:r.candidate})},track:(e,t,n,r)=>{this.logger.debug("[pc-event] track | peerId: "+e,r);var i=r.track,o=r.streams[0];e in this.peersToMonitor&&t in this.peersToMonitor[e]&&(this.peersToMonitor[e][t].stream=o),this.addTrackEventListeners(i,t),this.emitEvent({event:"ontrack",tag:"track",peerId:e,connectionId:t,data:{stream:o?this.getStreamDetails(o):null,track:i?this.getMediaTrackDetails(i):null,title:r.track.kind+":"+r.track.id+" "+r.streams.map((function(e){return"stream:"+e.id}))}})},signalingstatechange:(e,t,n)=>{this.logger.debug("[pc-event] signalingstatechange | peerId: "+e),this.emitEvent({event:"onsignalingstatechange",tag:"connection",peerId:e,connectionId:t,data:{signalingState:n.signalingState,localDescription:n.localDescription,remoteDescription:n.remoteDescription}})},iceconnectionstatechange:(e,t,n)=>{this.logger.debug("[pc-event] iceconnectionstatechange | peerId: "+e),this.emitEvent({event:"oniceconnectionstatechange",tag:"connection",peerId:e,connectionId:t,data:n.iceConnectionState})},icegatheringstatechange:(e,t,n)=>{this.logger.debug("[pc-event] icegatheringstatechange | peerId: "+e),this.emitEvent({event:"onicegatheringstatechange",tag:"connection",peerId:e,connectionId:t,data:n.iceGatheringState})},icecandidateerror:(e,t,n,r)=>{this.logger.debug("[pc-event] icecandidateerror | peerId: "+e),this.emitEvent({event:"onicecandidateerror",tag:"connection",peerId:e,connectionId:t,error:{errorCode:r.errorCode}})},connectionstatechange:(e,t,n)=>{this.logger.debug("[pc-event] connectionstatechange | peerId: "+e),this.emitEvent({event:"onconnectionstatechange",tag:"connection",peerId:e,connectionId:t,data:n.connectionState})},negotiationneeded:(e,t,n)=>{this.logger.debug("[pc-event] negotiationneeded | peerId: "+e),this.emitEvent({event:"onnegotiationneeded",tag:"connection",peerId:e,connectionId:t})},datachannel:(e,t,n,r)=>{this.logger.debug("[pc-event] datachannel | peerId: "+e,r),this.emitEvent({event:"ondatachannel",tag:"datachannel",peerId:e,connectionId:t,data:r.channel})}}}addPeerConnectionEventListeners(e,t,n){this.logger.debug(`Adding event listeners for peer ${e} and connection ${t}.`),A[t]={},Object.keys(this.peerConnectionListeners).forEach(r=>{A[t][r]=this.peerConnectionListeners[r].bind(this,e,t,n),n.addEventListener(r,A[t][r],!1)})}parseGetUserMedia(e){try{var t={event:"getUserMedia",tag:"getUserMedia",data:c({},e)};e.stream&&(t.data.details=this.parseStream(e.stream),e.stream.getTracks().map(e=>{this.addTrackEventListeners(e),x.push(e)})),this.emitEvent(t)}catch(e){}}parseStream(e){var t={audio:[],video:[]};return e.getTracks().forEach(e=>{t[e.kind].push(this.getMediaTrackDetails(e))}),t}getMediaTrackDetails(e){return{enabled:e.enabled,id:e.id,contentHint:e.contentHint,kind:e.kind,label:e.label,muted:e.muted,readyState:e.readyState,constructorName:e.constructor.name,capabilities:e.getCapabilities?e.getCapabilities():{},constraints:e.getConstraints?e.getConstraints():{},settings:e.getSettings?e.getSettings():{},_track:e}}getStreamDetails(e){return{active:e.active,id:e.id,_stream:e}}getTrackEventObject(e){return{mute:t=>{this.emitEvent({event:"mute",tag:"track",connectionId:e,data:{event:t}})},unmute:t=>{this.emitEvent({event:"unmute",tag:"track",connectionId:e,data:{event:t}})},overconstrained:t=>{this.emitEvent({event:"overconstrained",tag:"track",connectionId:e,data:{event:t}})},ended:t=>{this.emitEvent({event:"ended",tag:"track",connectionId:e,data:{event:t}}),this.removeTrackEventListeners(t.target)}}}addTrackEventListeners(e,t){A[e.id]={};var n=this.getTrackEventObject(t);Object.keys(n).forEach(t=>{A[e.id][t]=n[t].bind(this),e.addEventListener(t,A[e.id][t])}),A[e.id].readyState=setInterval(()=>{var t;"ended"===e.readyState&&(t=new CustomEvent("ended",{detail:{check:"readyState"}}),e.dispatchEvent(t))},1e3)}removeTrackEventListeners(e){var t;e.id in A&&(t=this.getTrackEventObject(),Object.keys(t).forEach(t=>{e.removeEventListener(t,A[e.id][t])}),clearInterval(A[e.id].readyState),delete A[e.id])}addToTimeline(e){this.timeline.push(e),this.emit("timeline",e)}emitEvent(e){e=c(c({},e),{},{timestamp:new Date}),this.addToTimeline(e),e.tag&&this.emit(e.tag,e)}set getStatsInterval(e){if(!Number.isInteger(e))throw new Error("getStatsInterval should be an integer, got: "+e);this._getStatsInterval=e,this.monitoringSetInterval&&(this.stopStatsMonitoring(),this.startStatsMonitoring())}get numberOfMonitoredPeers(){return Object.keys(this.peersToMonitor).length}removePeerConnectionEventListeners(e,t){e in A&&(Object.keys(this.peerConnectionListeners).forEach(n=>{t.removeEventListener(n,A[e][n],!1)}),delete A[e]),t.getSenders().forEach(e=>{e.track&&this.removeTrackEventListeners(e.track)}),t.getReceivers().forEach(e=>{e.track&&this.removeTrackEventListeners(e.track)})}getTimestamp(){return Date.now()}wrapGetDisplayMedia(){var e=this;if(navigator.mediaDevices&&navigator.mediaDevices.getDisplayMedia){var t=navigator.mediaDevices.getDisplayMedia.bind(navigator.mediaDevices);navigator.mediaDevices.getDisplayMedia=function(){return e.debug("navigator.mediaDevices.getDisplayMedia",null,arguments[0]),t.apply(navigator.mediaDevices,arguments).then((function(e){return e}),(function(t){return e.debug("navigator.mediaDevices.getDisplayMediaOnFailure",null,t.name),Promise.reject(t)}))}.bind(navigator.mediaDevices)}}}t.WebRTCStats=R},9033:function(e){function t(e){var i;return(r[e]||(i=r[e]={i:e,l:!1,exports:{}},n[e].call(i.exports,i,i.exports,t),i.l=!0,i)).exports}var n,r;e.exports=(n={17:function(e,t,n){t.__esModule=!0,t.default=void 0;var r=n(18);function i(){}i.getFirstMatch=function(e,t){return t=t.match(e),t&&0<t.length&&t[1]||""},i.getSecondMatch=function(e,t){return t=t.match(e),t&&1<t.length&&t[2]||""},i.matchAndReturnConst=function(e,t,n){if(e.test(t))return n},i.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},i.getMacOSVersionName=function(e){if(e=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0})),e.push(0),10===e[0])switch(e[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},i.getAndroidVersionName=function(e){if(e=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0})),e.push(0),!(1===e[0]&&e[1]<5))return 1===e[0]&&e[1]<6?"Cupcake":1===e[0]&&6<=e[1]?"Donut":2===e[0]&&e[1]<2?"Eclair":2===e[0]&&2===e[1]?"Froyo":2===e[0]&&2<e[1]?"Gingerbread":3===e[0]?"Honeycomb":4===e[0]&&e[1]<1?"Ice Cream Sandwich":4===e[0]&&e[1]<4?"Jelly Bean":4===e[0]&&4<=e[1]?"KitKat":5===e[0]?"Lollipop":6===e[0]?"Marshmallow":7===e[0]?"Nougat":8===e[0]?"Oreo":9===e[0]?"Pie":void 0},i.getVersionPrecision=function(e){return e.split(".").length},i.compareVersions=function(e,t,n){void 0===n&&(n=!1);var r=i.getVersionPrecision(e),o=i.getVersionPrecision(t),s=Math.max(r,o),a=0,u=i.map([e,t],(function(e){var t=s-i.getVersionPrecision(e);e+=new Array(1+t).join(".0");return i.map(e.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(n&&(a=s-Math.min(r,o)),--s;a<=s;){if(u[0][s]>u[1][s])return 1;if(u[0][s]===u[1][s]){if(s===a)return 0;--s}else if(u[0][s]<u[1][s])return-1}},i.map=function(e,t){var n,r=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(n=0;n<e.length;n+=1)r.push(t(e[n]));return r},i.find=function(e,t){var n,r;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(n=0,r=e.length;n<r;n+=1){var i=e[n];if(t(i,n))return i}},i.assign=function(e){for(var t=e,n=arguments.length,r=new Array(1<n?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(Object.assign)return Object.assign.apply(Object,[e].concat(r));for(var o=0,s=r.length;o<s;o+=1)(()=>{var e=r[o];"object"==typeof e&&null!==e&&Object.keys(e).forEach((function(n){t[n]=e[n]}))})();return e},i.getBrowserAlias=function(e){return r.BROWSER_ALIASES_MAP[e]},i.getBrowserTypeByAlias=function(e){return r.BROWSER_MAP[e]||""},t.default=i,e.exports=t.default},18:function(e,t,n){t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},t.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,i=(r=n(91))&&r.__esModule?r:{default:r},o=n(18);function s(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 a(){}a.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new Error("UserAgent should be a string");return new i.default(e,t)},a.parse=function(e){return new i.default(e).getResult()},r=a,n=[{key:"BROWSER_MAP",get:function(){return o.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return o.ENGINE_MAP}},{key:"OS_MAP",get:function(){return o.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return o.PLATFORMS_MAP}}],s(r,n),t.default=a,e.exports=t.default},91:function(e,t,n){t.__esModule=!0,t.default=void 0;var r=u(n(92)),i=u(n(93)),o=u(n(94)),s=u(n(95)),a=u(n(17));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}(n=c.prototype).getUA=function(){return this._ua},n.test=function(e){return e.test(this._ua)},n.parseBrowser=function(){var e=this,t=(this.parsedResult.browser={},a.default.find(r.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")})));return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},n.getBrowser=function(){return this.parsedResult.browser||this.parseBrowser()},n.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},n.getBrowserVersion=function(){return this.getBrowser().version},n.getOS=function(){return this.parsedResult.os||this.parseOS()},n.parseOS=function(){var e=this,t=(this.parsedResult.os={},a.default.find(i.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")})));return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},n.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},n.getOSVersion=function(){return this.getOS().version},n.getPlatform=function(){return this.parsedResult.platform||this.parsePlatform()},n.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},n.parsePlatform=function(){var e=this,t=(this.parsedResult.platform={},a.default.find(o.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")})));return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},n.getEngine=function(){return this.parsedResult.engine||this.parseEngine()},n.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},n.parseEngine=function(){var e=this,t=(this.parsedResult.engine={},a.default.find(s.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")})));return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},n.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},n.getResult=function(){return a.default.assign({},this.parsedResult)},n.satisfies=function(e){var t=this,n={},r=0,i={},o=0;if(Object.keys(e).forEach((function(t){var s=e[t];"string"==typeof s?(i[t]=s,o+=1):"object"==typeof s&&(n[t]=s,r+=1)})),0<r){var s=Object.keys(n),u=a.default.find(s,(function(e){return t.isOS(e)}));if(u&&(u=this.satisfies(n[u]),void 0!==u))return u;if(u=a.default.find(s,(function(e){return t.isPlatform(e)})),u&&(s=this.satisfies(n[u]),void 0!==s))return s}if(0<o&&(u=Object.keys(i),s=a.default.find(u,(function(e){return t.isBrowser(e,!0)})),void 0!==s))return this.compareVersion(i[s])},n.isBrowser=function(e,t){void 0===t&&(t=!1);var n=this.getBrowserName().toLowerCase(),r=(e=e.toLowerCase(),a.default.getBrowserTypeByAlias(e));return(e=t&&r?r.toLowerCase():e)===n},n.compareVersion=function(e){var t=[0],n=e,r=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(n=e.substr(1),"="===e[1]?(r=!0,n=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?n=e.substr(1):"~"===e[0]&&(r=!0,n=e.substr(1)),-1<t.indexOf(a.default.compareVersions(i,n,r))},n.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},n.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},n.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},n.is=function(e,t){return this.isBrowser(e,t=void 0!==t&&t)||this.isOS(e)||this.isPlatform(e)},n.some=function(e){var t=this;return(e=void 0===e?[]:e).some((function(e){return t.is(e)}))},t.default=c,e.exports=t.default},92:function(e,t,n){t.__esModule=!0,t.default=void 0;var r=(n=n(17))&&n.__esModule?n:{default:n},i=/version\/(\d+(\.?_?\d+)+)/i;t.default=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"};e=r.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||r.default.getFirstMatch(i,e);return e&&(t.version=e),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"};e=r.default.getFirstMatch(i,e)||r.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"};e=r.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||r.default.getFirstMatch(i,e);return e&&(t.version=e),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"};e=r.default.getFirstMatch(i,e)||r.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"};e=r.default.getFirstMatch(i,e)||r.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"};e=r.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||r.default.getFirstMatch(i,e);return e&&(t.version=e),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"};e=r.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||r.default.getFirstMatch(i,e);return e&&(t.version=e),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"};e=r.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||r.default.getFirstMatch(i,e);return e&&(t.version=e),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"};e=r.default.getFirstMatch(i,e)||r.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"};e=r.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||r.default.getFirstMatch(i,e);return e&&(t.version=e),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"};e=r.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||r.default.getFirstMatch(i,e);return e&&(t.version=e),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"};e=r.default.getFirstMatch(i,e)||r.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"};e=r.default.getFirstMatch(i,e)||r.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"};e=r.default.getFirstMatch(i,e)||r.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"};e=r.default.getFirstMatch(i,e)||r.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"};e=r.default.getFirstMatch(i,e)||r.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"};e=r.default.getFirstMatch(i,e)||r.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"};e=r.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||r.default.getFirstMatch(i,e);return e&&(t.version=e),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"};e=r.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||r.default.getFirstMatch(i,e);return e&&(t.version=e),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"};e=r.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"};e=r.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"};e=r.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"};e=r.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"};e=r.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"};e=r.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return e&&(t.version=e),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"};e=r.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"};e=r.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"};e=r.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"};e=r.default.getFirstMatch(i,e)||r.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"};e=r.default.getFirstMatch(i,e)||r.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"};e=r.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"};e=r.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||r.default.getFirstMatch(i,e);return e&&(t.version=e),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"};e=r.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||r.default.getFirstMatch(i,e);return e&&(t.version=e),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"};e=r.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"};e=r.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"};e=r.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"};e=r.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||r.default.getFirstMatch(i,e);return e&&(t.version=e),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"};e=r.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"};e=r.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:function(e){var t=!e.test(/like android/i);e=e.test(/android/i);return t&&e},describe:function(e){var t={name:"Android Browser"};e=r.default.getFirstMatch(i,e);return e&&(t.version=e),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"};e=r.default.getFirstMatch(i,e);return e&&(t.version=e),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"};e=r.default.getFirstMatch(i,e);return e&&(t.version=e),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:r.default.getFirstMatch(t,e),version:r.default.getSecondMatch(t,e)}}}],e.exports=t.default},93:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18);t.default=[{test:[/Roku\/DVP/],describe:function(e){return e=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e),{name:o.OS_MAP.Roku,version:e}}},{test:[/windows phone/i],describe:function(e){return e=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e),{name:o.OS_MAP.WindowsPhone,version:e}}},{test:[/windows /i],describe:function(e){e=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e);var t=i.default.getWindowsVersionName(e);return{name:o.OS_MAP.Windows,version:e,versionName:t}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:o.OS_MAP.iOS};e=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return e&&(t.version=e),t}},{test:[/macintosh/i],describe:function(e){e=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,".");var t=i.default.getMacOSVersionName(e);e={name:o.OS_MAP.MacOS,version:e};return t&&(e.versionName=t),e}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){return e=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,"."),{name:o.OS_MAP.iOS,version:e}}},{test:function(e){var t=!e.test(/like android/i);e=e.test(/android/i);return t&&e},describe:function(e){e=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e);var t=i.default.getAndroidVersionName(e);e={name:o.OS_MAP.Android,version:e};return t&&(e.versionName=t),e}},{test:[/(web|hpw)[o0]s/i],describe:function(e){e=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e);var t={name:o.OS_MAP.WebOS};return e&&e.length&&(t.version=e),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){return e=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e),{name:o.OS_MAP.BlackBerry,version:e}}},{test:[/bada/i],describe:function(e){return e=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e),{name:o.OS_MAP.Bada,version:e}}},{test:[/tizen/i],describe:function(e){return e=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e),{name:o.OS_MAP.Tizen,version:e}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){return e=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e),{name:o.OS_MAP.PlayStation4,version:e}}}],e.exports=t.default},94:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18);t.default=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){e=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova";var t={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return e&&(t.model=e),t}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i);e=e.test(/like (ipod|iphone)/i);return t&&!e},describe:function(e){return e=i.default.getFirstMatch(/(ipod|iphone)/i,e),{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:e}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&3<=t},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}}],e.exports=t.default},95:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18);t.default=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){return/\sedg\//i.test(e)?{name:o.ENGINE_MAP.Blink}:(e=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e),{name:o.ENGINE_MAP.EdgeHTML,version:e})}},{test:[/trident/i],describe:function(e){var t={name:o.ENGINE_MAP.Trident};e=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:o.ENGINE_MAP.Presto};e=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:function(e){var t=e.test(/gecko/i);e=e.test(/like gecko/i);return t&&!e},describe:function(e){var t={name:o.ENGINE_MAP.Gecko};e=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:o.ENGINE_MAP.WebKit};e=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}}],e.exports=t.default}},r={},t.m=n,t.c=r,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(r,i,function(t){return e[t]}.bind(null,i));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=90))},8878:function(e,n,r){n.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),this.useColors){var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e)&&(i=r)}),t.splice(i,0,n)}},n.save=function(e){try{e?n.storage.setItem("debug",e):n.storage.removeItem("debug")}catch(e){}},n.load=function(){var e;try{e=n.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof t&&"env"in t&&(e=Object({NODE_ENV:"production",BASE_URL:"/sip-phone-demo/"}).DEBUG),e},n.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&31<=parseInt(RegExp.$1,10)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},n.storage=(()=>{try{return localStorage}catch(r){}})(),n.destroy=(()=>{var e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],n.log=console.debug||console.log||(()=>{}),e.exports=r(8945)(n),r=e.exports.formatters,r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},8945:function(e,t,n){e.exports=function(e){function t(e){var n,i,o,s=null;function a(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];if(a.enabled){var o=a,s=Number(new Date),u=s-(n||s);o.diff=u,o.prev=n,o.curr=s,n=s,r[0]=t.coerce(r[0]),"string"!=typeof r[0]&&r.unshift("%O");var c=0;r[0]=r[0].replace(/%([a-zA-Z%])/g,(e,n)=>{if("%%"===e)return"%";c++;var i;n=t.formatters[n];return"function"==typeof n&&(i=r[c],e=n.call(o,i),r.splice(c,1),c--),e}),t.formatArgs.call(o,r),(o.log||t.log).apply(o,r)}}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=r,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{s=e}}),"function"==typeof t.init&&t.init(a),a}function r(e,n){return n=t(this.namespace+(void 0===n?":":n)+e),n.log=this.log,n}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return((t.debug=t).default=t).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){var e=[...t.names.map(i),...t.skips.map(i).map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];var n,r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(9192),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){for(var n=0,r=0;r<e.length;r++)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},4143:function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,s){if("function"!=typeof r)throw new TypeError("The listener must be a function");return r=new i(r,o||e,s),o=n?n+t:t,e._events[o]?e._events[o].fn?e._events[o]=[e._events[o],r]:e._events[o].push(r):(e._events[o]=r,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function a(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),a.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},a.prototype.listeners=function(e){e=n?n+e:e;var t=this._events[e];if(!t)return[];if(t.fn)return[t.fn];for(var r=0,i=t.length,o=new Array(i);r<i;r++)o[r]=t[r].fn;return o},a.prototype.listenerCount=function(e){return e=n?n+e:e,e=this._events[e],e?e.fn?1:e.length:0},a.prototype.emit=function(e,t,r,i,o,s){var a=n?n+e:e;if(!this._events[a])return!1;var u,c=this._events[a],l=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),l){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,r),!0;case 4:return c.fn.call(c.context,t,r,i),!0;case 5:return c.fn.call(c.context,t,r,i,o),!0;case 6:return c.fn.call(c.context,t,r,i,o,s),!0}for(f=1,u=new Array(l-1);f<l;f++)u[f-1]=arguments[f];c.fn.apply(c.context,u)}else for(var d,h=c.length,f=0;f<h;f++)switch(c[f].once&&this.removeListener(e,c[f].fn,void 0,!0),l){case 1:c[f].fn.call(c[f].context);break;case 2:c[f].fn.call(c[f].context,t);break;case 3:c[f].fn.call(c[f].context,t,r);break;case 4:c[f].fn.call(c[f].context,t,r,i);break;default:if(!u)for(d=1,u=new Array(l-1);d<l;d++)u[d-1]=arguments[d];c[f].fn.apply(c[f].context,u)}return!0},a.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},a.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},a.prototype.removeListener=function(e,t,r,i){if(e=n?n+e:e,this._events[e])if(t){var o=this._events[e];if(o.fn)o.fn!==t||i&&!o.once||r&&o.context!==r||s(this,e);else{for(var a=0,u=[],c=o.length;a<c;a++)(o[a].fn!==t||i&&!o[a].once||r&&o[a].context!==r)&&u.push(o[a]);u.length?this._events[e]=1===u.length?u[0]:u:s(this,e)}}else s(this,e);return this},a.prototype.removeAllListeners=function(e){return e?(e=n?n+e:e,this._events[e]&&s(this,e)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,e.exports=a.EventEmitter=a},9032:function(e){var t="object"==typeof Reflect?Reflect:null,n=t&&"function"==typeof t.apply?t.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},r=t&&"function"==typeof t.ownKeys?t.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)},i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}var s,a,u;p(e,t,o,{once:!0}),"error"!==t&&(a=i,u={once:!0},"function"==typeof(s=e).on)&&p(s,"error",a,u)}))},(o.EventEmitter=o).prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var i,o;return a(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener||n),i=e._events),o=i[t]),void 0===o?(o=i[t]=n,++e._eventsCount):("function"==typeof o?o=i[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),0<(i=u(e))&&o.length>i&&!o.warned&&(o.warned=!0,(r=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",r.emitter=e,r.type=t,r.count=o.length,n=r,console)&&console.warn&&console.warn(n)),e}function l(e,t,n){return e={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},t=function(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}.bind(e),t.listener=n,e.wrapFn=t}function d(e,t,n){if(e=e._events,void 0===e)return[];if(e=e[t],void 0===e)return[];if("function"==typeof e)return n?[e.listener||e]:[e];if(n){for(var r=e,i=new Array(r.length),o=0;o<i.length;++o)i[o]=r[o].listener||r[o];return i}return f(e,e.length)}function h(e){var t=this._events;if(void 0!==t){if(t=t[e],"function"==typeof t)return 1;if(void 0!==t)return t.length}return 0}function f(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function p(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){r.once&&e.removeEventListener(t,i),n(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){if((s=0<t.length?t[0]:s)instanceof Error)throw s;throw i=new Error("Unhandled error."+(s?" ("+s.message+")":"")),i.context=s,i}var s=o[e];if(void 0===s)return!1;if("function"==typeof s)n(s,this,t);else{var a=s.length,u=f(s,a);for(r=0;r<a;++r)n(u[r],this,t)}return!0},o.prototype.on=o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return a(t),this.on(e,l(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,l(this,e,t)),this},o.prototype.off=o.prototype.removeListener=function(e,t){var n,r,i,o,s;if(a(t),void 0!==(r=this._events)&&void 0!==(n=r[e]))if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;0<=o;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;if(0===i)n.shift();else{for(var u=n,c=i;c+1<u.length;c++)u[c]=u[c+1];u.pop()}1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.removeAllListeners=function(e){var t,n=this._events;if(void 0!==n)if(void 0===n.removeListener)0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]);else if(0===arguments.length){for(var r,i=Object.keys(n),o=0;o<i.length;++o)"removeListener"!==(r=i[o])&&this.removeAllListeners(r);this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0}else if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(o=t.length-1;0<=o;o--)this.removeListener(e,t[o]);return this},o.prototype.listeners=function(e){return d(this,e,!0)},o.prototype.rawListeners=function(e){return d(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return 0<this._eventsCount?r(this._events):[]}},914:function(e,t,n){"undefined"==typeof self&&"undefined"==typeof window&&void 0!==n.g&&n.g,e.exports=(()=>{function e(e){return e.replace(/=/g,"").replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"}))}function t(e){for(var t,n,r,i="",o=e.length%3,s=0;s<e.length;){if(255<(t=e.charCodeAt(s++))||255<(n=e.charCodeAt(s++))||255<(r=e.charCodeAt(s++)))throw new TypeError("invalid character found");i+=b[(t=t<<16|n<<8|r)>>18&63]+b[t>>12&63]+b[t>>6&63]+b[63&t]}return o?i.slice(0,o-3)+"===".substring(o):i}function n(t,n){return(n=void 0!==n&&n)?e(x(t)):x(t)}function i(e){var t;return e.length<2?(t=e.charCodeAt(0))<128?e:t<2048?S(192|t>>>6)+S(128|63&t):S(224|t>>>12&15)+S(128|t>>>6&63)+S(128|63&t):(t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320),S(240|t>>>18&7)+S(128|t>>>12&63)+S(128|t>>>6&63)+S(128|63&t))}function o(e){return e.replace(R,i)}function s(t,n){return(n=void 0!==n&&n)?e(O(t)):O(t)}function a(e){return s(e,!0)}function u(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return S(55296+(t>>>10))+S(56320+(1023&t));case 3:return S((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return S((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}}function c(e){return e.replace(I,u)}function l(e){if(e=e.replace(/\s+/g,""),!T.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));for(var t,n,r,i="",o=0;o<e.length;)t=w[e.charAt(o++)]<<18|w[e.charAt(o++)]<<12|(n=w[e.charAt(o++)])<<6|(r=w[e.charAt(o++)]),i+=64===n?S(t>>16&255):64===r?S(t>>16&255,t>>8&255):S(t>>16&255,t>>8&255,255&t);return i}function d(e){return P(h(e))}function h(e){return E(e.replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})))}function f(e){return M(h(e))}function p(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}}function v(){function e(e,t){Object.defineProperty(String.prototype,e,p(t))}e("fromBase64",(function(){return f(this)})),e("toBase64",(function(e){return s(this,e)})),e("toBase64URI",(function(){return s(this,!0)})),e("toBase64URL",(function(){return s(this,!0)})),e("toUint8Array",(function(){return d(this)}))}function m(){function e(e,t){Object.defineProperty(Uint8Array.prototype,e,p(t))}e("toBase64",(function(e){return n(this,e)})),e("toBase64URI",(function(){return n(this,!0)})),e("toBase64URL",(function(){return n(this,!0)}))}var g="function"==typeof r,_="function"==typeof TextDecoder?new TextDecoder:void 0,y="function"==typeof TextEncoder?new TextEncoder:void 0,b=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),w=(()=>{var e={};return b.forEach((function(t,n){return e[t]=n})),e})(),T=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,S=String.fromCharCode.bind(String),C="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):function(e){return new Uint8Array(Array.prototype.slice.call(e,0))},E=function(e){return e.replace(/[^A-Za-z0-9\+\/]/g,"")},A="function"==typeof btoa?function(e){return btoa(e)}:g?function(e){return r.from(e,"binary").toString("base64")}:t,x=g?function(e){return r.from(e).toString("base64")}:function(e){for(var t=[],n=0,r=e.length;n<r;n+=4096)t.push(S.apply(null,e.subarray(n,n+4096)));return A(t.join(""))},R=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,O=g?function(e){return r.from(e,"utf8").toString("base64")}:y?function(e){return x(y.encode(e))}:function(e){return A(o(e))},I=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,k="function"==typeof atob?function(e){return atob(E(e))}:g?function(e){return r.from(e,"base64").toString("binary")}:l,P=g?function(e){return C(r.from(e,"base64"))}:function(e){return C(k(e).split("").map((function(e){return e.charCodeAt(0)})))},M=g?function(e){return r.from(e,"base64").toString("utf8")}:_?function(e){return _.decode(P(e))}:function(e){return c(k(e))},N={version:"3.7.7",VERSION:"3.7.7",atob:k,atobPolyfill:l,btoa:A,btoaPolyfill:t,fromBase64:f,toBase64:s,encode:s,encodeURI:a,encodeURL:a,utob:o,btou:c,decode:f,isValid:function(e){return"string"==typeof e&&(e=e.replace(/\s+/g,"").replace(/={0,2}$/,""),!/[^\s0-9a-zA-Z\+/]/.test(e)||!/[^\s0-9a-zA-Z\-_]/.test(e))},fromUint8Array:n,toUint8Array:d,extendString:v,extendUint8Array:m,extendBuiltins:function(){v(),m()},Base64:{}};return Object.keys(N).forEach((function(e){return N.Base64[e]=N[e]})),N})()},8611:function(e,t,n){var r=n(7196),i=n(9896),o=n(9656),s=n(7019),a=n(5944),c=n(8239),l=(t.settings={authorization_user:null,password:null,realm:null,ha1:null,authorization_jwt:null,display_name:null,uri:null,contact_uri:null,instance_id:null,use_preloaded_route:!1,session_timers:!0,session_timers_refresh_method:i.UPDATE,session_timers_force_refresher:!1,no_answer_timeout:60,register:!0,register_expires:600,registrar_server:null,sockets:null,connection_recovery_max_interval:i.CONNECTION_RECOVERY_MAX_INTERVAL,connection_recovery_min_interval:i.CONNECTION_RECOVERY_MIN_INTERVAL,extra_headers:null,via_host:r.createRandomToken(12)+".invalid"},{mandatory:{sockets(e){var t=[];if(a.isSocket(e))t.push({socket:e});else{if(!Array.isArray(e)||!e.length)return;var n,r=u(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;Object.prototype.hasOwnProperty.call(i,"socket")&&a.isSocket(i.socket)?t.push(i):a.isSocket(i)&&t.push({socket:i})}}catch(o){r.e(o)}finally{r.f()}}return t},uri(e){if(/^sip:/i.test(e)||(e=i.SIP+":"+e),e=s.parse(e),e&&e.user)return e}},optional:{authorization_user(e){if(-1!==o.parse(`"${e}"`,"quoted_string"))return e},authorization_jwt(e){if("string"==typeof e)return e},user_agent(e){if("string"==typeof e)return e},connection_recovery_max_interval(e){if(r.isDecimal(e)&&(e=Number(e),0<e))return e},connection_recovery_min_interval(e){if(r.isDecimal(e)&&(e=Number(e),0<e))return e},contact_uri(e){if("string"==typeof e&&(e=o.parse(e,"SIP_URI"),-1!==e))return e},display_name(e){return e},instance_id(e){if(/^uuid:/i.test(e)&&(e=e.substr(5)),-1!==o.parse(e,"uuid"))return e},no_answer_timeout(e){if(r.isDecimal(e)&&(e=Number(e),0<e))return e},session_timers(e){if("boolean"==typeof e)return e},session_timers_refresh_method(e){if("string"==typeof e&&((e=e.toUpperCase())===i.INVITE||e===i.UPDATE))return e},session_timers_force_refresher(e){if("boolean"==typeof e)return e},password(e){return String(e)},realm(e){return String(e)},ha1(e){return String(e)},register(e){if("boolean"==typeof e)return e},register_expires(e){if(r.isDecimal(e)&&(e=Number(e),0<e))return e},registrar_server(e){if(/^sip:/i.test(e)||(e=i.SIP+":"+e),e=s.parse(e),e&&!e.user)return e},use_preloaded_route(e){if("boolean"==typeof e)return e},extra_headers(e){var t=[];if(Array.isArray(e)&&e.length){var n,r=u(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;"string"==typeof i&&t.push(i)}}catch(o){r.e(o)}finally{r.f()}return t}}}});t.load=(e,t)=>{for(var n in l.mandatory){if(!t.hasOwnProperty(n))throw new c.ConfigurationError(n);var i=t[n],o=l.mandatory[n](i);if(void 0===o)throw new c.ConfigurationError(n,i);e[n]=o}for(var s in l.optional)if(t.hasOwnProperty(s)){var a=t[s];if(!r.isEmpty(a)){var u=l.optional[s](a);if(void 0===u)throw new c.ConfigurationError(s,a);e[s]=u}}}},9896:function(e,t,n){n=n(633),e.exports={USER_AGENT:n.title+" "+n.version,SIP:"sip",SIPS:"sips",causes:{CONNECTION_ERROR:"Connection Error",REQUEST_TIMEOUT:"Request Timeout",SIP_FAILURE_CODE:"SIP Failure Code",INTERNAL_ERROR:"Internal Error",BUSY:"Busy",REJECTED:"Rejected",REDIRECTED:"Redirected",UNAVAILABLE:"Unavailable",NOT_FOUND:"Not Found",ADDRESS_INCOMPLETE:"Address Incomplete",INCOMPATIBLE_SDP:"Incompatible SDP",MISSING_SDP:"Missing SDP",AUTHENTICATION_ERROR:"Authentication Error",BYE:"Terminated",WEBRTC_ERROR:"WebRTC Error",CANCELED:"Canceled",NO_ANSWER:"No Answer",EXPIRES:"Expires",NO_ACK:"No ACK",DIALOG_ERROR:"Dialog Error",USER_DENIED_MEDIA_ACCESS:"User Denied Media Access",BAD_MEDIA_DESCRIPTION:"Bad Media Description",RTP_TIMEOUT:"RTP Timeout"},SIP_ERROR_CAUSES:{REDIRECTED:[300,301,302,305,380],BUSY:[486,600],REJECTED:[403,603],NOT_FOUND:[404,604],UNAVAILABLE:[480,410,408,430],ADDRESS_INCOMPLETE:[484,424],INCOMPATIBLE_SDP:[488,606],AUTHENTICATION_ERROR:[401,407]},ACK:"ACK",BYE:"BYE",CANCEL:"CANCEL",INFO:"INFO",INVITE:"INVITE",MESSAGE:"MESSAGE",NOTIFY:"NOTIFY",OPTIONS:"OPTIONS",REGISTER:"REGISTER",REFER:"REFER",UPDATE:"UPDATE",SUBSCRIBE:"SUBSCRIBE",DTMF_TRANSPORT:{INFO:"INFO",RFC2833:"RFC2833"},REASON_PHRASE:{100:"Trying",180:"Ringing",181:"Call Is Being Forwarded",182:"Queued",183:"Session Progress",199:"Early Dialog Terminated",200:"OK",202:"Accepted",204:"No Notification",300:"Multiple Choices",301:"Moved Permanently",302:"Moved Temporarily",305:"Use Proxy",380:"Alternative Service",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",410:"Gone",412:"Conditional Request Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Unsupported URI Scheme",417:"Unknown Resource-Priority",420:"Bad Extension",421:"Extension Required",422:"Session Interval Too Small",423:"Interval Too Brief",424:"Bad Location Information",428:"Use Identity Header",429:"Provide Referrer Identity",430:"Flow Failed",433:"Anonymity Disallowed",436:"Bad Identity-Info",437:"Unsupported Certificate",438:"Invalid Identity Header",439:"First Hop Lacks Outbound Support",440:"Max-Breadth Exceeded",469:"Bad Info Package",470:"Consent Needed",478:"Unresolvable Destination",480:"Temporarily Unavailable",481:"Call/Transaction Does Not Exist",482:"Loop Detected",483:"Too Many Hops",484:"Address Incomplete",485:"Ambiguous",486:"Busy Here",487:"Request Terminated",488:"Not Acceptable Here",489:"Bad Event",491:"Request Pending",493:"Undecipherable",494:"Security Agreement Required",500:"JsSIP Internal Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Server Time-out",505:"Version Not Supported",513:"Message Too Large",580:"Precondition Failure",600:"Busy Everywhere",603:"Decline",604:"Does Not Exist Anywhere",606:"Not Acceptable"},ALLOWED_METHODS:"INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS,REFER,INFO,NOTIFY",ACCEPTED_BODY_TYPES:"application/sdp, application/dtmf-relay",MAX_FORWARDS:69,SESSION_EXPIRES:90,MIN_SESSION_EXPIRES:60,CONNECTION_RECOVERY_MAX_INTERVAL:30,CONNECTION_RECOVERY_MIN_INTERVAL:2}},2517:function(e,t,n){var r=n(3422),i=n(2602),o=n(9896),s=n(1164),a=n(546),u=n(7196),c=new r("Dialog"),l={STATUS_EARLY:1,STATUS_CONFIRMED:2,STATUS_TERMINATED:3};e.exports=class{static get C(){return l}constructor(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:l.STATUS_CONFIRMED;if(this._owner=e,this._ua=e._ua,this._uac_pending_reply=!1,this._uas_pending_reply=!1,!t.hasHeader("contact"))return{error:"unable to create a Dialog without Contact header field"};t instanceof i.IncomingResponse&&(r=t.status_code<200?l.STATUS_EARLY:l.STATUS_CONFIRMED),e=t.parseHeader("contact"),"UAS"===n?(this._id={call_id:t.call_id,local_tag:t.to_tag,remote_tag:t.from_tag,toString(){return this.call_id+this.local_tag+this.remote_tag}},this._state=r,this._remote_seqnum=t.cseq,this._local_uri=t.parseHeader("to").uri,this._remote_uri=t.parseHeader("from").uri,this._remote_target=e.uri,this._route_set=t.getHeaders("record-route"),this._ack_seqnum=this._remote_seqnum):"UAC"===n&&(this._id={call_id:t.call_id,local_tag:t.from_tag,remote_tag:t.to_tag,toString(){return this.call_id+this.local_tag+this.remote_tag}},this._state=r,this._local_seqnum=t.cseq,this._local_uri=t.parseHeader("from").uri,this._remote_uri=t.parseHeader("to").uri,this._remote_target=e.uri,this._route_set=t.getHeaders("record-route").reverse(),this._ack_seqnum=null),this._ua.newDialog(this),c.debug(`new ${n} dialog created with status `+(this._state===l.STATUS_EARLY?"EARLY":"CONFIRMED"))}get id(){return this._id}get local_seqnum(){return this._local_seqnum}set local_seqnum(e){this._local_seqnum=e}get owner(){return this._owner}get uac_pending_reply(){return this._uac_pending_reply}set uac_pending_reply(e){this._uac_pending_reply=e}get uas_pending_reply(){return this._uas_pending_reply}isTerminated(){return this._status===l.STATUS_TERMINATED}update(e,t){this._state=l.STATUS_CONFIRMED,c.debug(`dialog ${this._id.toString()} changed to CONFIRMED state`),"UAC"===t&&(this._route_set=e.getHeaders("record-route").reverse())}terminate(){c.debug(`dialog ${this._id.toString()} deleted`),this._ua.destroyDialog(this),this._state=l.STATUS_TERMINATED}sendRequest(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,n){var r=u.cloneArray(n.extraHeaders),i=u.cloneObject(n.eventHandlers);n=n.body||null,e=t._createRequest(e,r,n);return i.onAuthenticated=()=>{t._local_seqnum+=1},new a(t,e,i).send(),e}(e,n)}receiveRequest(e){this._checkInDialogRequest(e)&&(e.method===o.ACK&&null!==this._ack_seqnum?this._ack_seqnum=null:e.method===o.INVITE&&(this._ack_seqnum=e.cseq),this._owner.receiveRequest(e))}_createRequest(e,t,n){t=u.cloneArray(t),this._local_seqnum||(this._local_seqnum=Math.floor(1e4*Math.random()));var r=e===o.CANCEL||e===o.ACK?this._local_seqnum:this._local_seqnum+=1;return new i.OutgoingRequest(e,this._remote_target,this._ua,{cseq:r,call_id:this._id.call_id,from_uri:this._local_uri,from_tag:this._id.local_tag,to_uri:this._remote_uri,to_tag:this._id.remote_tag,route_set:this._route_set},t,n)}_checkInDialogRequest(e){if(this._remote_seqnum)if(e.cseq<this._remote_seqnum){if(e.method!==o.ACK)return e.reply(500),!1;if(null===this._ack_seqnum||e.cseq!==this._ack_seqnum)return!1}else e.cseq>this._remote_seqnum&&(this._remote_seqnum=e.cseq);else this._remote_seqnum=e.cseq;if(e.method===o.INVITE||e.method===o.UPDATE&&e.body){if(!0===this._uac_pending_reply)e.reply(491);else{var t;if(!0===this._uas_pending_reply)return t=1+(10*Math.random()|0),e.reply(500,null,["Retry-After:"+t]),!1;this._uas_pending_reply=!0;var n=()=>{e.server_transaction.state!==s.C.STATUS_ACCEPTED&&e.server_transaction.state!==s.C.STATUS_COMPLETED&&e.server_transaction.state!==s.C.STATUS_TERMINATED||(e.server_transaction.removeListener("stateChanged",n),this._uas_pending_reply=!1)};e.server_transaction.on("stateChanged",n)}e.hasHeader("contact")&&e.server_transaction.on("stateChanged",()=>{e.server_transaction.state===s.C.STATUS_ACCEPTED&&(this._remote_target=e.parseHeader("contact").uri)})}else e.method===o.NOTIFY&&e.hasHeader("contact")&&e.server_transaction.on("stateChanged",()=>{e.server_transaction.state===s.C.STATUS_COMPLETED&&(this._remote_target=e.parseHeader("contact").uri)});return!0}}},546:function(e,t,n){var r=n(9896),i=n(1164),o=n(5117),s={onRequestTimeout:()=>{},onTransportError:()=>{},onSuccessResponse:()=>{},onErrorResponse:()=>{},onAuthenticated:()=>{},onDialogError:()=>{}};e.exports=class{constructor(e,t,n){for(var r in this._dialog=e,this._ua=e._ua,this._request=t,this._eventHandlers=n,this._reattempt=!1,this._reattemptTimer=null,s)!Object.prototype.hasOwnProperty.call(s,r)||this._eventHandlers[r]||(this._eventHandlers[r]=s[r])}get request(){return this._request}send(){var e=new o(this._ua,this._request,{onRequestTimeout:()=>{this._eventHandlers.onRequestTimeout()},onTransportError:()=>{this._eventHandlers.onTransportError()},onAuthenticated:e=>{this._eventHandlers.onAuthenticated(e)},onReceiveResponse:e=>{this._receiveResponse(e)}});if(e.send(),(this._request.method===r.INVITE||this._request.method===r.UPDATE&&this._request.body)&&e.clientTransaction.state!==i.C.STATUS_TERMINATED){this._dialog.uac_pending_reply=!0;var t=()=>{e.clientTransaction.state!==i.C.STATUS_ACCEPTED&&e.clientTransaction.state!==i.C.STATUS_COMPLETED&&e.clientTransaction.state!==i.C.STATUS_TERMINATED||(e.clientTransaction.removeListener("stateChanged",t),this._dialog.uac_pending_reply=!1)};e.clientTransaction.on("stateChanged",t)}}_receiveResponse(e){408===e.status_code||481===e.status_code?this._eventHandlers.onDialogError(e):e.method!==r.INVITE||491!==e.status_code||this._reattempt?200<=e.status_code&&e.status_code<300?this._eventHandlers.onSuccessResponse(e):300<=e.status_code&&this._eventHandlers.onErrorResponse(e):(this._request.cseq=this._dialog.local_seqnum+=1,this._reattemptTimer=setTimeout(()=>{this._dialog.isTerminated()||(this._reattempt=!0,this.send())},1e3))}}},3889:function(e,t,n){var r=n(3422),i=n(7196),o=new r("DigestAuthentication");e.exports=class{constructor(e){this._credentials=e,this._cnonce=null,this._nc=0,this._ncHex="00000000",this._algorithm=null,this._realm=null,this._nonce=null,this._opaque=null,this._stale=null,this._qop=null,this._method=null,this._uri=null,this._ha1=null,this._response=null}get(e){switch(e){case"realm":return this._realm;case"ha1":return this._ha1;default:return void o.warn('get() | cannot get "%s" parameter',e)}}authenticate(e,t){var n,r,s=e.method,a=e.ruri,u=e.body,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(this._algorithm=t.algorithm,this._realm=t.realm,this._nonce=t.nonce,this._opaque=t.opaque,this._stale=t.stale,this._algorithm){if("MD5"!==this._algorithm)return o.warn('authenticate() | challenge with Digest algorithm different than "MD5", authentication aborted'),!1}else this._algorithm="MD5";if(!this._nonce)return o.warn("authenticate() | challenge without Digest nonce, authentication aborted"),!1;if(!this._realm)return o.warn("authenticate() | challenge without Digest realm, authentication aborted"),!1;if(!this._credentials.password){if(!this._credentials.ha1)return o.warn("authenticate() | no plain SIP password nor ha1 provided, authentication aborted"),!1;if(this._credentials.realm!==this._realm)return o.warn('authenticate() | no plain SIP password, and stored `realm` does not match the given `realm`, cannot authenticate [stored:"%s", given:"%s"]',this._credentials.realm,this._realm),!1}if(t.qop)if(-1<t.qop.indexOf("auth-int"))this._qop="auth-int";else{if(!(-1<t.qop.indexOf("auth")))return o.warn('authenticate() | challenge without Digest qop different than "auth" or "auth-int", authentication aborted'),!1;this._qop="auth"}else this._qop=null;return this._method=s,this._uri=a,this._cnonce=c||i.createRandomToken(12),this._nc+=1,t=Number(this._nc).toString(16),this._ncHex="00000000".substr(0,8-t.length)+t,4294967296===this._nc&&(this._nc=1,this._ncHex="00000001"),this._credentials.password?this._ha1=i.calculateMD5(`${this._credentials.username}:${this._realm}:`+this._credentials.password):this._ha1=this._credentials.ha1,"auth"===this._qop?(n=this._method+":"+this._uri,r=i.calculateMD5(n),o.debug('authenticate() | using qop=auth [a2:"%s"]',n),this._response=i.calculateMD5(`${this._ha1}:${this._nonce}:${this._ncHex}:${this._cnonce}:auth:`+r)):"auth-int"===this._qop?(n=`${this._method}:${this._uri}:`+i.calculateMD5(u||""),r=i.calculateMD5(n),o.debug('authenticate() | using qop=auth-int [a2:"%s"]',n),this._response=i.calculateMD5(`${this._ha1}:${this._nonce}:${this._ncHex}:${this._cnonce}:auth-int:`+r)):null===this._qop&&(n=this._method+":"+this._uri,r=i.calculateMD5(n),o.debug('authenticate() | using qop=null [a2:"%s"]',n),this._response=i.calculateMD5(`${this._ha1}:${this._nonce}:`+r)),o.debug("authenticate() | response generated"),!0}toString(){var e=[];if(this._response)return e.push("algorithm="+this._algorithm),e.push(`username="${this._credentials.username}"`),e.push(`realm="${this._realm}"`),e.push(`nonce="${this._nonce}"`),e.push(`uri="${this._uri}"`),e.push(`response="${this._response}"`),this._opaque&&e.push(`opaque="${this._opaque}"`),this._qop&&(e.push("qop="+this._qop),e.push(`cnonce="${this._cnonce}"`),e.push("nc="+this._ncHex)),"Digest "+e.join(", ");throw new Error("response field does not exist, cannot generate Authorization header")}}},8239:function(e){class t extends Error{constructor(e,t){super(),this.code=1,this.name="CONFIGURATION_ERROR",this.parameter=e,this.value=t,this.message=this.value?`Invalid value ${JSON.stringify(this.value)} for parameter "${this.parameter}"`:"Missing parameter: "+this.parameter}}class n extends Error{constructor(e){super(),this.code=2,this.name="INVALID_STATE_ERROR",this.status=e,this.message="Invalid status: "+e}}class r extends Error{constructor(e){super(),this.code=3,this.name="NOT_SUPPORTED_ERROR",this.message=e}}class i extends Error{constructor(e){super(),this.code=4,this.name="NOT_READY_ERROR",this.message=e}}e.exports={ConfigurationError:t,InvalidStateError:n,NotSupportedError:r,NotReadyError:i}},9656:function(e,t,n){function r(e){return'"'+e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E-\x1F\x80-\uFFFF]/g,escape)+'"'}e.exports=((e={parse:function(e,t){var i={CRLF:l,DIGIT:d,ALPHA:h,HEXDIG:f,WSP:p,OCTET:v,DQUOTE:m,SP:g,HTAB:_,alphanum:y,reserved:b,unreserved:w,mark:T,escaped:S,LWS:C,SWS:E,HCOLON:A,TEXT_UTF8_TRIM:x,TEXT_UTF8char:R,UTF8_NONASCII:O,UTF8_CONT:I,LHEX:function(){var t;return null===(t=d())&&(/^[a-f]/.test(e.charAt(o))?(t=e.charAt(o),o++):(t=null,0===s&&c("[a-f]"))),t},token:k,token_nodot:P,separators:function(){var t;return 40===e.charCodeAt(o)?(t="(",o++):(t=null,0===s&&c('"("')),null===t&&(41===e.charCodeAt(o)?(t=")",o++):(t=null,0===s&&c('")"')),null===t)&&(60===e.charCodeAt(o)?(t="<",o++):(t=null,0===s&&c('"<"')),null===t)&&(62===e.charCodeAt(o)?(t=">",o++):(t=null,0===s&&c('">"')),null===t)&&(64===e.charCodeAt(o)?(t="@",o++):(t=null,0===s&&c('"@"')),null===t)&&(44===e.charCodeAt(o)?(t=",",o++):(t=null,0===s&&c('","')),null===t)&&(59===e.charCodeAt(o)?(t=";",o++):(t=null,0===s&&c('";"')),null===t)&&(58===e.charCodeAt(o)?(t=":",o++):(t=null,0===s&&c('":"')),null===t)&&(92===e.charCodeAt(o)?(t="\\",o++):(t=null,0===s&&c('"\\\\"')),null===t)&&null===(t=m())&&(47===e.charCodeAt(o)?(t="/",o++):(t=null,0===s&&c('"/"')),null===t)&&(91===e.charCodeAt(o)?(t="[",o++):(t=null,0===s&&c('"["')),null===t)&&(93===e.charCodeAt(o)?(t="]",o++):(t=null,0===s&&c('"]"')),null===t)&&(63===e.charCodeAt(o)?(t="?",o++):(t=null,0===s&&c('"?"')),null===t)&&(61===e.charCodeAt(o)?(t="=",o++):(t=null,0===s&&c('"="')),null===t)&&(123===e.charCodeAt(o)?(t="{",o++):(t=null,0===s&&c('"{"')),null===t)&&(125===e.charCodeAt(o)?(t="}",o++):(t=null,0===s&&c('"}"')),null===t)&&null===(t=g())&&(t=_()),t},word:M,STAR:N,SLASH:L,EQUAL:D,LPAREN:U,RPAREN:j,RAQUOT:F,LAQUOT:H,COMMA:B,SEMI:$,COLON:q,LDQUOT:V,RDQUOT:z,comment:function e(){var t,n,r,i;if(i=o,t=U(),null!==t){for(n=[],null===(r=W())&&null===(r=X())&&(r=e());null!==r;)n.push(r),null===(r=W())&&null===(r=X())&&(r=e());null!==n&&null!==(r=j())?t=[t,n,r]:(t=null,o=i)}else t=null,o=i;return t},ctext:W,quoted_string:G,quoted_string_clean:Y,qdtext:K,quoted_pair:X,SIP_URI_noparams:J,SIP_URI:Q,uri_scheme:Z,uri_scheme_sips:ee,uri_scheme_sip:te,userinfo:ne,user:re,user_unreserved:ie,password:oe,hostport:se,host:ae,hostname:ue,domainlabel:ce,toplabel:le,IPv6reference:de,IPv6address:he,h16:fe,ls32:pe,IPv4address:ve,dec_octet:me,port:ge,uri_parameters:_e,uri_parameter:ye,transport_param:be,user_param:we,method_param:Te,ttl_param:Se,maddr_param:Ce,lr_param:Ee,other_param:Ae,pname:xe,pvalue:Re,paramchar:Oe,param_unreserved:Ie,headers:ke,header:Pe,hname:Me,hvalue:Ne,hnv_unreserved:Le,Request_Response:function(){var e;return null===(e=dt())&&(e=De()),e},Request_Line:De,Request_URI:Ue,absoluteURI:je,hier_part:Fe,net_path:He,abs_path:Be,opaque_part:$e,uric:qe,uric_no_slash:Ve,path_segments:ze,segment:We,param:Ge,pchar:Ye,scheme:Ke,authority:Xe,srvr:Je,reg_name:Qe,query:Ze,SIP_Version:et,INVITEm:tt,ACKm:nt,OPTIONSm:rt,BYEm:it,CANCELm:ot,REGISTERm:st,SUBSCRIBEm:at,NOTIFYm:ut,REFERm:ct,Method:lt,Status_Line:dt,Status_Code:ht,extension_code:ft,Reason_Phrase:pt,Allow_Events:function(){var e,t,n,r,i,s;if(i=o,null!==(e=jt())){for(t=[],s=o,null!==(n=B())&&null!==(r=jt())?n=[n,r]:(n=null,o=s);null!==n;)t.push(n),s=o,null!==(n=B())&&null!==(r=jt())?n=[n,r]:(n=null,o=s);null!==t?e=[e,t]:(e=null,o=i)}else e=null,o=i;return e},Call_ID:function(){var t,n,r,i,a,u;return a=i=o,null!==(t=M())&&(u=o,64===e.charCodeAt(o)?(n="@",o++):(n=null,0===s&&c('"@"')),null!==n&&null!==(r=M())?n=[n,r]:(n=null,o=u),null!==(n=null!==n?n:""))?t=[t,n]:(t=null,o=a),null!==t&&(t=void(qn=e.substring(o,i))),null===t&&(o=i),t},Contact:function(){var e,t,n,r,i,s,a;if(i=o,null===(e=N()))if(s=o,null!==(e=vt())){for(t=[],a=o,null!==(n=B())&&null!==(r=vt())?n=[n,r]:(n=null,o=a);null!==n;)t.push(n),a=o,null!==(n=B())&&null!==(r=vt())?n=[n,r]:(n=null,o=a);null!==t?e=[e,t]:(e=null,o=s)}else e=null,o=s;return null!==e&&(e=(()=>{for(var e=qn.multi_header.length,t=0;t<e;t++)if(null===qn.multi_header[t].parsed){qn=null;break}qn=null!==qn?qn.multi_header:-1})()),null===e&&(o=i),e},contact_param:vt,name_addr:mt,display_name:gt,contact_params:_t,c_p_q:yt,c_p_expires:bt,delta_seconds:wt,qvalue:Tt,generic_param:St,gen_value:Ct,Content_Disposition:function(){var e,t,n,r,i,s;if(i=o,null!==(e=Et())){for(t=[],s=o,null!==(n=$())&&null!==(r=At())?n=[n,r]:(n=null,o=s);null!==n;)t.push(n),s=o,null!==(n=$())&&null!==(r=At())?n=[n,r]:(n=null,o=s);null!==t?e=[e,t]:(e=null,o=i)}else e=null,o=i;return e},disp_type:Et,disp_param:At,handling_param:xt,Content_Encoding:function(){var e,t,n,r,i,s;if(i=o,null!==(e=k())){for(t=[],s=o,null!==(n=B())&&null!==(r=k())?n=[n,r]:(n=null,o=s);null!==n;)t.push(n),s=o,null!==(n=B())&&null!==(r=k())?n=[n,r]:(n=null,o=s);null!==t?e=[e,t]:(e=null,o=i)}else e=null,o=i;return e},Content_Length:function(){var e,t,n;if(n=o,null!==(t=d()))for(e=[];null!==t;)e.push(t),t=d();else e=null;return null!==e&&(e=void(qn=parseInt(e.join("")))),null===e&&(o=n),e},Content_Type:function(){var t,n;return n=o,null!==(t=Rt())&&(t=void(qn=e.substring(o,n))),null===t&&(o=n),t},media_type:Rt,m_type:Ot,discrete_type:It,composite_type:kt,extension_token:Pt,x_token:Mt,m_subtype:Nt,m_parameter:Lt,m_value:Dt,CSeq:function(){var e,t,n,r;return r=o,null!==(e=Ut())&&null!==(t=C())&&null!==(n=lt())?e=[e,t,n]:(e=null,o=r),e},CSeq_value:Ut,Expires:function(){var e,t;return t=o,null!==(e=wt())&&(e=void(qn=e)),null===e&&(o=t),e},Event:function(){var e,t,n,r,i,s,a;if(s=i=o,null!==(e=jt())){for(t=[],a=o,null!==(n=$())&&null!==(r=St())?n=[n,r]:(n=null,o=a);null!==n;)t.push(n),a=o,null!==(n=$())&&null!==(r=St())?n=[n,r]:(n=null,o=a);null!==t?e=[e,t]:(e=null,o=s)}else e=null,o=s;return null!==e&&(e=(e=>{qn.event=e.join("").toLowerCase()})(e[0])),null===e&&(o=i),e},event_type:jt,From:function(){var e,t,n,r,i,s,a;if(s=i=o,null===(e=J())&&(e=mt()),null!==e){for(t=[],a=o,null!==(n=$())&&null!==(r=Ft())?n=[n,r]:(n=null,o=a);null!==n;)t.push(n),a=o,null!==(n=$())&&null!==(r=Ft())?n=[n,r]:(n=null,o=a);null!==t?e=[e,t]:(e=null,o=s)}else e=null,o=s;return null!==e&&(e=(()=>{var e=qn.tag;try{qn=new $n(qn.uri,qn.display_name,qn.params),e&&qn.setParam("tag",e)}catch(e){qn=-1}})()),null===e&&(o=i),e},from_param:Ft,tag_param:Ht,Max_Forwards:function(){var e,t,n;if(n=o,null!==(t=d()))for(e=[];null!==t;)e.push(t),t=d();else e=null;return null!==e&&(e=void(qn=parseInt(e.join("")))),null===e&&(o=n),e},Min_Expires:function(){var e,t;return t=o,null!==(e=wt())&&(e=void(qn=e)),null===e&&(o=t),e},Name_Addr_Header:function(){var e,t,n,r,i,s,a,u,c,l;for(c=u=o,e=[],t=gt();null!==t;)e.push(t),t=gt();if(null!==e)if(null!==(t=H()))if(null!==(n=Q()))if(null!==(r=F())){for(i=[],l=o,null!==(s=$())&&null!==(a=St())?s=[s,a]:(s=null,o=l);null!==s;)i.push(s),l=o,null!==(s=$())&&null!==(a=St())?s=[s,a]:(s=null,o=l);null!==i?e=[e,t,n,r,i]:(e=null,o=c)}else e=null,o=c;else e=null,o=c;else e=null,o=c;else e=null,o=c;return null!==e&&(e=(()=>{try{qn=new $n(qn.uri,qn.display_name,qn.params)}catch(e){qn=-1}})()),null===e&&(o=u),e},Proxy_Authenticate:function(){return Bt()},challenge:Bt,other_challenge:$t,auth_param:qt,digest_cln:Vt,realm:zt,realm_value:Wt,domain:Gt,URI:Yt,nonce:Kt,nonce_value:Xt,opaque:Jt,stale:Qt,algorithm:Zt,qop_options:en,qop_value:tn,Proxy_Require:function(){var e,t,n,r,i,s;if(i=o,null!==(e=k())){for(t=[],s=o,null!==(n=B())&&null!==(r=k())?n=[n,r]:(n=null,o=s);null!==n;)t.push(n),s=o,null!==(n=B())&&null!==(r=k())?n=[n,r]:(n=null,o=s);null!==t?e=[e,t]:(e=null,o=i)}else e=null,o=i;return e},Record_Route:function(){var e,t,n,r,i,s,a;if(s=i=o,null!==(e=nn())){for(t=[],a=o,null!==(n=B())&&null!==(r=nn())?n=[n,r]:(n=null,o=a);null!==n;)t.push(n),a=o,null!==(n=B())&&null!==(r=nn())?n=[n,r]:(n=null,o=a);null!==t?e=[e,t]:(e=null,o=s)}else e=null,o=s;return null!==e&&(e=(()=>{for(var e=qn.multi_header.length,t=0;t<e;t++)if(null===qn.multi_header[t].parsed){qn=null;break}qn=null!==qn?qn.multi_header:-1})()),null===e&&(o=i),e},rec_route:nn,Reason:function(){var t,n,r,i,a,u,l;if(u=a=o,"sip"===e.substr(o,3).toLowerCase()?(t=e.substr(o,3),o+=3):(t=null,0===s&&c('"SIP"')),null===t&&(t=k()),null!==t){for(n=[],l=o,null!==(r=$())&&null!==(i=rn())?r=[r,i]:(r=null,o=l);null!==r;)n.push(r),l=o,null!==(r=$())&&null!==(i=rn())?r=[r,i]:(r=null,o=l);null!==n?t=[t,n]:(t=null,o=u)}else t=null,o=u;return null!==t&&(t=(e=>{qn.protocol=e.toLowerCase(),qn.params||(qn.params={}),qn.params.text&&'"'===qn.params.text[0]&&(e=qn.params.text,qn.text=e.substring(1,e.length-1),delete qn.params.text)})(t[0])),null===t&&(o=a),t},reason_param:rn,reason_cause:on,Require:function(){var e,t,n,r,i,s;if(i=o,null!==(e=k())){for(t=[],s=o,null!==(n=B())&&null!==(r=k())?n=[n,r]:(n=null,o=s);null!==n;)t.push(n),s=o,null!==(n=B())&&null!==(r=k())?n=[n,r]:(n=null,o=s);null!==t?e=[e,t]:(e=null,o=i)}else e=null,o=i;return e},Route:function(){var e,t,n,r,i,s;if(i=o,null!==(e=sn())){for(t=[],s=o,null!==(n=B())&&null!==(r=sn())?n=[n,r]:(n=null,o=s);null!==n;)t.push(n),s=o,null!==(n=B())&&null!==(r=sn())?n=[n,r]:(n=null,o=s);null!==t?e=[e,t]:(e=null,o=i)}else e=null,o=i;return e},route_param:sn,Subscription_State:function(){var e,t,n,r,i,s;if(i=o,null!==(e=an())){for(t=[],s=o,null!==(n=$())&&null!==(r=un())?n=[n,r]:(n=null,o=s);null!==n;)t.push(n),s=o,null!==(n=$())&&null!==(r=un())?n=[n,r]:(n=null,o=s);null!==t?e=[e,t]:(e=null,o=i)}else e=null,o=i;return e},substate_value:an,subexp_params:un,event_reason_value:cn,Subject:function(){var e;return null!==(e=x())?e:""},Supported:function(){var e,t,n,r,i,s;if(i=o,null!==(e=k())){for(t=[],s=o,null!==(n=B())&&null!==(r=k())?n=[n,r]:(n=null,o=s);null!==n;)t.push(n),s=o,null!==(n=B())&&null!==(r=k())?n=[n,r]:(n=null,o=s);null!==t?e=[e,t]:(e=null,o=i)}else e=null,o=i;return null!==e?e:""},To:function(){var e,t,n,r,i,s,a;if(s=i=o,null===(e=J())&&(e=mt()),null!==e){for(t=[],a=o,null!==(n=$())&&null!==(r=ln())?n=[n,r]:(n=null,o=a);null!==n;)t.push(n),a=o,null!==(n=$())&&null!==(r=ln())?n=[n,r]:(n=null,o=a);null!==t?e=[e,t]:(e=null,o=s)}else e=null,o=s;return null!==e&&(e=(()=>{var e=qn.tag;try{qn=new $n(qn.uri,qn.display_name,qn.params),e&&qn.setParam("tag",e)}catch(e){qn=-1}})()),null===e&&(o=i),e},to_param:ln,Via:function(){var e,t,n,r,i,s;if(i=o,null!==(e=dn())){for(t=[],s=o,null!==(n=B())&&null!==(r=dn())?n=[n,r]:(n=null,o=s);null!==n;)t.push(n),s=o,null!==(n=B())&&null!==(r=dn())?n=[n,r]:(n=null,o=s);null!==t?e=[e,t]:(e=null,o=i)}else e=null,o=i;return e},via_param:dn,via_params:hn,via_ttl:fn,via_maddr:pn,via_received:vn,via_branch:mn,response_port:gn,rport:_n,sent_protocol:yn,protocol_name:bn,transport:wn,sent_by:Tn,via_host:Sn,via_port:Cn,ttl:En,WWW_Authenticate:function(){return Bt()},Session_Expires:function(){var e,t,n,r,i,s;if(i=o,null!==(e=An())){for(t=[],s=o,null!==(n=$())&&null!==(r=xn())?n=[n,r]:(n=null,o=s);null!==n;)t.push(n),s=o,null!==(n=$())&&null!==(r=xn())?n=[n,r]:(n=null,o=s);null!==t?e=[e,t]:(e=null,o=i)}else e=null,o=i;return e},s_e_expires:An,s_e_params:xn,s_e_refresher:Rn,extension_header:function(){var e,t,n,r;return r=o,null!==(e=k())&&null!==(t=A())&&null!==(n=On())?e=[e,t,n]:(e=null,o=r),e},header_value:On,message_body:function(){var e,t;for(e=[],t=v();null!==t;)e.push(t),t=v();return e},uuid_URI:function(){var t,n,r;return r=o,"uuid:"===e.substr(o,5)?(t="uuid:",o+=5):(t=null,0===s&&c('"uuid:"')),null!==t&&null!==(n=In())?t=[t,n]:(t=null,o=r),t},uuid:In,hex4:kn,hex8:Pn,hex12:Mn,Refer_To:function(){var e,t,n,r,i,s,a;if(s=i=o,null===(e=J())&&(e=mt()),null!==e){for(t=[],a=o,null!==(n=$())&&null!==(r=St())?n=[n,r]:(n=null,o=a);null!==n;)t.push(n),a=o,null!==(n=$())&&null!==(r=St())?n=[n,r]:(n=null,o=a);null!==t?e=[e,t]:(e=null,o=s)}else e=null,o=s;return null!==e&&(e=(()=>{try{qn=new $n(qn.uri,qn.display_name,qn.params)}catch(e){qn=-1}})()),null===e&&(o=i),e},Replaces:function(){var e,t,n,r,i,s;if(i=o,null!==(e=Nn())){for(t=[],s=o,null!==(n=$())&&null!==(r=Ln())?n=[n,r]:(n=null,o=s);null!==n;)t.push(n),s=o,null!==(n=$())&&null!==(r=Ln())?n=[n,r]:(n=null,o=s);null!==t?e=[e,t]:(e=null,o=i)}else e=null,o=i;return e},call_id:Nn,replaces_param:Ln,to_tag:Dn,from_tag:Un,early_flag:jn};if(void 0!==t){if(void 0===i[t])throw new Error("Invalid rule name: "+r(t)+".")}else t="CRLF";var o=0,s=0,a=0,u=[];function c(e){o<a||(a<o&&(a=o,u=[]),u.push(e))}function l(){var t;return"\r\n"===e.substr(o,2)?(t="\r\n",o+=2):(t=null,0===s&&c('"\\r\\n"')),t}function d(){var t;return/^[0-9]/.test(e.charAt(o))?(t=e.charAt(o),o++):(t=null,0===s&&c("[0-9]")),t}function h(){var t;return/^[a-zA-Z]/.test(e.charAt(o))?(t=e.charAt(o),o++):(t=null,0===s&&c("[a-zA-Z]")),t}function f(){var t;return/^[0-9a-fA-F]/.test(e.charAt(o))?(t=e.charAt(o),o++):(t=null,0===s&&c("[0-9a-fA-F]")),t}function p(){var e=g();return null===e?_():e}function v(){var t;return/^[\0-\xFF]/.test(e.charAt(o))?(t=e.charAt(o),o++):(t=null,0===s&&c("[\\0-\\xFF]")),t}function m(){var t;return/^["]/.test(e.charAt(o))?(t=e.charAt(o),o++):(t=null,0===s&&c('["]')),t}function g(){var t;return 32===e.charCodeAt(o)?(t=" ",o++):(t=null,0===s&&c('" "')),t}function _(){var t;return 9===e.charCodeAt(o)?(t="\t",o++):(t=null,0===s&&c('"\\t"')),t}function y(){var t;return/^[a-zA-Z0-9]/.test(e.charAt(o))?(t=e.charAt(o),o++):(t=null,0===s&&c("[a-zA-Z0-9]")),t}function b(){var t;return 59===e.charCodeAt(o)?(t=";",o++):(t=null,0===s&&c('";"')),null===t&&(47===e.charCodeAt(o)?(t="/",o++):(t=null,0===s&&c('"/"')),null===t)&&(63===e.charCodeAt(o)?(t="?",o++):(t=null,0===s&&c('"?"')),null===t)&&(58===e.charCodeAt(o)?(t=":",o++):(t=null,0===s&&c('":"')),null===t)&&(64===e.charCodeAt(o)?(t="@",o++):(t=null,0===s&&c('"@"')),null===t)&&(38===e.charCodeAt(o)?(t="&",o++):(t=null,0===s&&c('"&"')),null===t)&&(61===e.charCodeAt(o)?(t="=",o++):(t=null,0===s&&c('"="')),null===t)&&(43===e.charCodeAt(o)?(t="+",o++):(t=null,0===s&&c('"+"')),null===t)&&(36===e.charCodeAt(o)?(t="$",o++):(t=null,0===s&&c('"$"')),null===t)&&(44===e.charCodeAt(o)?(t=",",o++):(t=null,0===s&&c('","'))),t}function w(){var e=y();return null===e?T():e}function T(){var t;return 45===e.charCodeAt(o)?(t="-",o++):(t=null,0===s&&c('"-"')),null===t&&(95===e.charCodeAt(o)?(t="_",o++):(t=null,0===s&&c('"_"')),null===t)&&(46===e.charCodeAt(o)?(t=".",o++):(t=null,0===s&&c('"."')),null===t)&&(33===e.charCodeAt(o)?(t="!",o++):(t=null,0===s&&c('"!"')),null===t)&&(126===e.charCodeAt(o)?(t="~",o++):(t=null,0===s&&c('"~"')),null===t)&&(42===e.charCodeAt(o)?(t="*",o++):(t=null,0===s&&c('"*"')),null===t)&&(39===e.charCodeAt(o)?(t="'",o++):(t=null,0===s&&c('"\'"')),null===t)&&(40===e.charCodeAt(o)?(t="(",o++):(t=null,0===s&&c('"("')),null===t)&&(41===e.charCodeAt(o)?(t=")",o++):(t=null,0===s&&c('")"'))),t}function S(){var t,n,r,i=o,a=o;return 37===e.charCodeAt(o)?(t="%",o++):(t=null,0===s&&c('"%"')),null!==t&&null!==(n=f())&&null!==(r=f())?t=[t,n,r]:(t=null,o=a),null===(t=null!==t?t.join(""):t)&&(o=i),t}function C(){for(var e,t=o,n=o,r=o,i=[],s=p();null!==s;)i.push(s),s=p();if(null!==i&&null!==(s=l())?i=[i,s]:(i=null,o=r),null!==(i=null!==i?i:"")){if(null!==(e=p()))for(s=[];null!==e;)s.push(e),e=p();else s=null;null!==s?i=[i,s]:(i=null,o=n)}else i=null,o=n;return null===(i=null!==i?" ":i)&&(o=t),i}function E(){var e=C();return null!==e?e:""}function A(){var t,n=o,r=o,i=[],a=g();for(null===a&&(a=_());null!==a;)i.push(a),null===(a=g())&&(a=_());return null!==i&&(58===e.charCodeAt(o)?(a=":",o++):(a=null,0===s&&c('":"')),null!==a)&&null!==(t=E())?i=[i,a,t]:(i=null,o=r),null===(i=null!==i?":":i)&&(o=n),i}function x(){var t,n,r,i,s=o,a=o,u=R();if(null!==u)for(t=[];null!==u;)t.push(u),u=R();else t=null;if(null!==t){for(u=[],i=o,n=[],r=C();null!==r;)n.push(r),r=C();for(null!==n&&null!==(r=R())?n=[n,r]:(n=null,o=i);null!==n;){for(u.push(n),i=o,n=[],r=C();null!==r;)n.push(r),r=C();null!==n&&null!==(r=R())?n=[n,r]:(n=null,o=i)}null!==u?t=[t,u]:(t=null,o=a)}else t=null,o=a;return null===(t=null!==t?e.substring(o,s):t)&&(o=s),t}function R(){var t;return/^[!-~]/.test(e.charAt(o))?(t=e.charAt(o),o++):(t=null,0===s&&c("[!-~]")),null===t?O():t}function O(){var t;return/^[\x80-\uFFFF]/.test(e.charAt(o))?(t=e.charAt(o),o++):(t=null,0===s&&c("[\\x80-\\uFFFF]")),t}function I(){var t;return/^[\x80-\xBF]/.test(e.charAt(o))?(t=e.charAt(o),o++):(t=null,0===s&&c("[\\x80-\\xBF]")),t}function k(){var t,n=o,r=y();if(null===r&&(45===e.charCodeAt(o)?(r="-",o++):(r=null,0===s&&c('"-"')),null===r)&&(46===e.charCodeAt(o)?(r=".",o++):(r=null,0===s&&c('"."')),null===r)&&(33===e.charCodeAt(o)?(r="!",o++):(r=null,0===s&&c('"!"')),null===r)&&(37===e.charCodeAt(o)?(r="%",o++):(r=null,0===s&&c('"%"')),null===r)&&(42===e.charCodeAt(o)?(r="*",o++):(r=null,0===s&&c('"*"')),null===r)&&(95===e.charCodeAt(o)?(r="_",o++):(r=null,0===s&&c('"_"')),null===r)&&(43===e.charCodeAt(o)?(r="+",o++):(r=null,0===s&&c('"+"')),null===r)&&(96===e.charCodeAt(o)?(r="`",o++):(r=null,0===s&&c('"`"')),null===r)&&(39===e.charCodeAt(o)?(r="'",o++):(r=null,0===s&&c('"\'"')),null===r)&&(126===e.charCodeAt(o)?(r="~",o++):(r=null,0===s&&c('"~"'))),null!==r)for(t=[];null!==r;)t.push(r),null===(r=y())&&(45===e.charCodeAt(o)?(r="-",o++):(r=null,0===s&&c('"-"')),null===r)&&(46===e.charCodeAt(o)?(r=".",o++):(r=null,0===s&&c('"."')),null===r)&&(33===e.charCodeAt(o)?(r="!",o++):(r=null,0===s&&c('"!"')),null===r)&&(37===e.charCodeAt(o)?(r="%",o++):(r=null,0===s&&c('"%"')),null===r)&&(42===e.charCodeAt(o)?(r="*",o++):(r=null,0===s&&c('"*"')),null===r)&&(95===e.charCodeAt(o)?(r="_",o++):(r=null,0===s&&c('"_"')),null===r)&&(43===e.charCodeAt(o)?(r="+",o++):(r=null,0===s&&c('"+"')),null===r)&&(96===e.charCodeAt(o)?(r="`",o++):(r=null,0===s&&c('"`"')),null===r)&&(39===e.charCodeAt(o)?(r="'",o++):(r=null,0===s&&c('"\'"')),null===r)&&(126===e.charCodeAt(o)?(r="~",o++):(r=null,0===s&&c('"~"')));else t=null;return null===(t=null!==t?e.substring(o,n):t)&&(o=n),t}function P(){var t,n=o,r=y();if(null===r&&(45===e.charCodeAt(o)?(r="-",o++):(r=null,0===s&&c('"-"')),null===r)&&(33===e.charCodeAt(o)?(r="!",o++):(r=null,0===s&&c('"!"')),null===r)&&(37===e.charCodeAt(o)?(r="%",o++):(r=null,0===s&&c('"%"')),null===r)&&(42===e.charCodeAt(o)?(r="*",o++):(r=null,0===s&&c('"*"')),null===r)&&(95===e.charCodeAt(o)?(r="_",o++):(r=null,0===s&&c('"_"')),null===r)&&(43===e.charCodeAt(o)?(r="+",o++):(r=null,0===s&&c('"+"')),null===r)&&(96===e.charCodeAt(o)?(r="`",o++):(r=null,0===s&&c('"`"')),null===r)&&(39===e.charCodeAt(o)?(r="'",o++):(r=null,0===s&&c('"\'"')),null===r)&&(126===e.charCodeAt(o)?(r="~",o++):(r=null,0===s&&c('"~"'))),null!==r)for(t=[];null!==r;)t.push(r),null===(r=y())&&(45===e.charCodeAt(o)?(r="-",o++):(r=null,0===s&&c('"-"')),null===r)&&(33===e.charCodeAt(o)?(r="!",o++):(r=null,0===s&&c('"!"')),null===r)&&(37===e.charCodeAt(o)?(r="%",o++):(r=null,0===s&&c('"%"')),null===r)&&(42===e.charCodeAt(o)?(r="*",o++):(r=null,0===s&&c('"*"')),null===r)&&(95===e.charCodeAt(o)?(r="_",o++):(r=null,0===s&&c('"_"')),null===r)&&(43===e.charCodeAt(o)?(r="+",o++):(r=null,0===s&&c('"+"')),null===r)&&(96===e.charCodeAt(o)?(r="`",o++):(r=null,0===s&&c('"`"')),null===r)&&(39===e.charCodeAt(o)?(r="'",o++):(r=null,0===s&&c('"\'"')),null===r)&&(126===e.charCodeAt(o)?(r="~",o++):(r=null,0===s&&c('"~"')));else t=null;return null===(t=null!==t?e.substring(o,n):t)&&(o=n),t}function M(){var t,n=o,r=y();if(null===r&&(45===e.charCodeAt(o)?(r="-",o++):(r=null,0===s&&c('"-"')),null===r)&&(46===e.charCodeAt(o)?(r=".",o++):(r=null,0===s&&c('"."')),null===r)&&(33===e.charCodeAt(o)?(r="!",o++):(r=null,0===s&&c('"!"')),null===r)&&(37===e.charCodeAt(o)?(r="%",o++):(r=null,0===s&&c('"%"')),null===r)&&(42===e.charCodeAt(o)?(r="*",o++):(r=null,0===s&&c('"*"')),null===r)&&(95===e.charCodeAt(o)?(r="_",o++):(r=null,0===s&&c('"_"')),null===r)&&(43===e.charCodeAt(o)?(r="+",o++):(r=null,0===s&&c('"+"')),null===r)&&(96===e.charCodeAt(o)?(r="`",o++):(r=null,0===s&&c('"`"')),null===r)&&(39===e.charCodeAt(o)?(r="'",o++):(r=null,0===s&&c('"\'"')),null===r)&&(126===e.charCodeAt(o)?(r="~",o++):(r=null,0===s&&c('"~"')),null===r)&&(40===e.charCodeAt(o)?(r="(",o++):(r=null,0===s&&c('"("')),null===r)&&(41===e.charCodeAt(o)?(r=")",o++):(r=null,0===s&&c('")"')),null===r)&&(60===e.charCodeAt(o)?(r="<",o++):(r=null,0===s&&c('"<"')),null===r)&&(62===e.charCodeAt(o)?(r=">",o++):(r=null,0===s&&c('">"')),null===r)&&(58===e.charCodeAt(o)?(r=":",o++):(r=null,0===s&&c('":"')),null===r)&&(92===e.charCodeAt(o)?(r="\\",o++):(r=null,0===s&&c('"\\\\"')),null===r)&&null===(r=m())&&(47===e.charCodeAt(o)?(r="/",o++):(r=null,0===s&&c('"/"')),null===r)&&(91===e.charCodeAt(o)?(r="[",o++):(r=null,0===s&&c('"["')),null===r)&&(93===e.charCodeAt(o)?(r="]",o++):(r=null,0===s&&c('"]"')),null===r)&&(63===e.charCodeAt(o)?(r="?",o++):(r=null,0===s&&c('"?"')),null===r)&&(123===e.charCodeAt(o)?(r="{",o++):(r=null,0===s&&c('"{"')),null===r)&&(125===e.charCodeAt(o)?(r="}",o++):(r=null,0===s&&c('"}"'))),null!==r)for(t=[];null!==r;)t.push(r),null===(r=y())&&(45===e.charCodeAt(o)?(r="-",o++):(r=null,0===s&&c('"-"')),null===r)&&(46===e.charCodeAt(o)?(r=".",o++):(r=null,0===s&&c('"."')),null===r)&&(33===e.charCodeAt(o)?(r="!",o++):(r=null,0===s&&c('"!"')),null===r)&&(37===e.charCodeAt(o)?(r="%",o++):(r=null,0===s&&c('"%"')),null===r)&&(42===e.charCodeAt(o)?(r="*",o++):(r=null,0===s&&c('"*"')),null===r)&&(95===e.charCodeAt(o)?(r="_",o++):(r=null,0===s&&c('"_"')),null===r)&&(43===e.charCodeAt(o)?(r="+",o++):(r=null,0===s&&c('"+"')),null===r)&&(96===e.charCodeAt(o)?(r="`",o++):(r=null,0===s&&c('"`"')),null===r)&&(39===e.charCodeAt(o)?(r="'",o++):(r=null,0===s&&c('"\'"')),null===r)&&(126===e.charCodeAt(o)?(r="~",o++):(r=null,0===s&&c('"~"')),null===r)&&(40===e.charCodeAt(o)?(r="(",o++):(r=null,0===s&&c('"("')),null===r)&&(41===e.charCodeAt(o)?(r=")",o++):(r=null,0===s&&c('")"')),null===r)&&(60===e.charCodeAt(o)?(r="<",o++):(r=null,0===s&&c('"<"')),null===r)&&(62===e.charCodeAt(o)?(r=">",o++):(r=null,0===s&&c('">"')),null===r)&&(58===e.charCodeAt(o)?(r=":",o++):(r=null,0===s&&c('":"')),null===r)&&(92===e.charCodeAt(o)?(r="\\",o++):(r=null,0===s&&c('"\\\\"')),null===r)&&null===(r=m())&&(47===e.charCodeAt(o)?(r="/",o++):(r=null,0===s&&c('"/"')),null===r)&&(91===e.charCodeAt(o)?(r="[",o++):(r=null,0===s&&c('"["')),null===r)&&(93===e.charCodeAt(o)?(r="]",o++):(r=null,0===s&&c('"]"')),null===r)&&(63===e.charCodeAt(o)?(r="?",o++):(r=null,0===s&&c('"?"')),null===r)&&(123===e.charCodeAt(o)?(r="{",o++):(r=null,0===s&&c('"{"')),null===r)&&(125===e.charCodeAt(o)?(r="}",o++):(r=null,0===s&&c('"}"')));else t=null;return null===(t=null!==t?e.substring(o,n):t)&&(o=n),t}function N(){var t,n,r=o,i=o,a=E();return null!==a&&(42===e.charCodeAt(o)?(t="*",o++):(t=null,0===s&&c('"*"')),null!==t)&&null!==(n=E())?a=[a,t,n]:(a=null,o=i),null===(a=null!==a?"*":a)&&(o=r),a}function L(){var t,n,r=o,i=o,a=E();return null!==a&&(47===e.charCodeAt(o)?(t="/",o++):(t=null,0===s&&c('"/"')),null!==t)&&null!==(n=E())?a=[a,t,n]:(a=null,o=i),null===(a=null!==a?"/":a)&&(o=r),a}function D(){var t,n,r=o,i=o,a=E();return null!==a&&(61===e.charCodeAt(o)?(t="=",o++):(t=null,0===s&&c('"="')),null!==t)&&null!==(n=E())?a=[a,t,n]:(a=null,o=i),null===(a=null!==a?"=":a)&&(o=r),a}function U(){var t,n,r=o,i=o,a=E();return null!==a&&(40===e.charCodeAt(o)?(t="(",o++):(t=null,0===s&&c('"("')),null!==t)&&null!==(n=E())?a=[a,t,n]:(a=null,o=i),null===(a=null!==a?"(":a)&&(o=r),a}function j(){var t,n,r=o,i=o,a=E();return null!==a&&(41===e.charCodeAt(o)?(t=")",o++):(t=null,0===s&&c('")"')),null!==t)&&null!==(n=E())?a=[a,t,n]:(a=null,o=i),null===(a=null!==a?")":a)&&(o=r),a}function F(){var t,n,r=o,i=o;return 62===e.charCodeAt(o)?(t=">",o++):(t=null,0===s&&c('">"')),null!==t&&null!==(n=E())?t=[t,n]:(t=null,o=i),null===(t=null!==t?">":t)&&(o=r),t}function H(){var t,n=o,r=o,i=E();return null!==i&&(60===e.charCodeAt(o)?(t="<",o++):(t=null,0===s&&c('"<"')),null!==t)?i=[i,t]:(i=null,o=r),null===(i=null!==i?"<":i)&&(o=n),i}function B(){var t,n,r=o,i=o,a=E();return null!==a&&(44===e.charCodeAt(o)?(t=",",o++):(t=null,0===s&&c('","')),null!==t)&&null!==(n=E())?a=[a,t,n]:(a=null,o=i),null===(a=null!==a?",":a)&&(o=r),a}function $(){var t,n,r=o,i=o,a=E();return null!==a&&(59===e.charCodeAt(o)?(t=";",o++):(t=null,0===s&&c('";"')),null!==t)&&null!==(n=E())?a=[a,t,n]:(a=null,o=i),null===(a=null!==a?";":a)&&(o=r),a}function q(){var t,n,r=o,i=o,a=E();return null!==a&&(58===e.charCodeAt(o)?(t=":",o++):(t=null,0===s&&c('":"')),null!==t)&&null!==(n=E())?a=[a,t,n]:(a=null,o=i),null===(a=null!==a?":":a)&&(o=r),a}function V(){var e,t=o,n=o,r=E();return null!==r&&null!==(e=m())?r=[r,e]:(r=null,o=n),null===(r=null!==r?'"':r)&&(o=t),r}function z(){var e,t=o,n=o,r=m();return null!==r&&null!==(e=E())?r=[r,e]:(r=null,o=n),null===(r=null!==r?'"':r)&&(o=t),r}function W(){var t;return/^[!-']/.test(e.charAt(o))?(t=e.charAt(o),o++):(t=null,0===s&&c("[!-']")),null===t&&(/^[*-[]/.test(e.charAt(o))?(t=e.charAt(o),o++):(t=null,0===s&&c("[*-[]")),null===t)&&(/^[\]-~]/.test(e.charAt(o))?(t=e.charAt(o),o++):(t=null,0===s&&c("[\\]-~]")),null===t)&&null===(t=O())?C():t}function G(){var t,n,r,i=o,s=o,a=E();if(null!==a)if(null!==(t=m())){for(n=[],null===(r=K())&&(r=X());null!==r;)n.push(r),null===(r=K())&&(r=X());null!==n&&null!==(r=m())?a=[a,t,n,r]:(a=null,o=s)}else a=null,o=s;else a=null,o=s;return null===(a=null!==a?e.substring(o,i):a)&&(o=i),a}function Y(){var t,n,r,i=o,s=o,a=E();if(null!==a)if(null!==(r=m())){for(t=[],null===(n=K())&&(n=X());null!==n;)t.push(n),null===(n=K())&&(n=X());null!==t&&null!==(n=m())?a=[a,r,t,n]:(a=null,o=s)}else a=null,o=s;else a=null,o=s;return null===(a=null!==a?(r=e.substring(o,i).trim()).substring(1,r.length-1).replace(/\\([\x00-\x09\x0b-\x0c\x0e-\x7f])/g,"$1"):a)&&(o=i),a}function K(){var t=C();return null===t&&(33===e.charCodeAt(o)?(t="!",o++):(t=null,0===s&&c('"!"')),null===t)&&(/^[#-[]/.test(e.charAt(o))?(t=e.charAt(o),o++):(t=null,0===s&&c("[#-[]")),null===t)&&(/^[\]-~]/.test(e.charAt(o))?(t=e.charAt(o),o++):(t=null,0===s&&c("[\\]-~]")),null===t)?O():t}function X(){var t,n,r=o;return 92===e.charCodeAt(o)?(t="\\",o++):(t=null,0===s&&c('"\\\\"')),null!==t&&(/^[\0-\t]/.test(e.charAt(o))?(n=e.charAt(o),o++):(n=null,0===s&&c("[\\0-\\t]")),null===n&&(/^[\x0B-\f]/.test(e.charAt(o))?(n=e.charAt(o),o++):(n=null,0===s&&c("[\\x0B-\\f]")),null===n)&&(/^[\x0E-]/.test(e.charAt(o))?(n=e.charAt(o),o++):(n=null,0===s&&c("[\\x0E-]"))),null!==n)?t=[t,n]:(t=null,o=r),t}function J(){var t,n,r,i=o,a=o,u=Z();return null!==u&&(58===e.charCodeAt(o)?(t=":",o++):(t=null,0===s&&c('":"')),null!==t)&&null!==(n=null!==(n=ne())?n:"")&&null!==(r=se())?u=[u,t,n,r]:(u=null,o=a),null===(u=null!==u?(()=>{try{qn.uri=new Bn(qn.scheme,qn.user,qn.host,qn.port),delete qn.scheme,delete qn.user,delete qn.host,delete qn.host_type,delete qn.port}catch(t){qn=-1}})():u)&&(o=i),u}function Q(){var n,r,i,a,u,l=o,d=o,h=Z();return null!==h&&(58===e.charCodeAt(o)?(n=":",o++):(n=null,0===s&&c('":"')),null!==n)&&null!==(r=null!==(r=ne())?r:"")&&null!==(i=se())&&null!==(a=_e())&&null!==(u=null!==(u=ke())?u:"")?h=[h,n,r,i,a,u]:(h=null,o=d),null===(h=null!==h?(()=>{try{qn.uri=new Bn(qn.scheme,qn.user,qn.host,qn.port,qn.uri_params,qn.uri_headers),delete qn.scheme,delete qn.user,delete qn.host,delete qn.host_type,delete qn.port,delete qn.uri_params,"SIP_URI"===t&&(qn=qn.uri)}catch(n){qn=-1}})():h)&&(o=l),h}function Z(){var e=ee();return null===e?te():e}function ee(){var t,n,r=o;return"sips"===e.substr(o,4).toLowerCase()?(t=e.substr(o,4),o+=4):(t=null,0===s&&c('"sips"')),null!==t&&(n=t,t=void(qn.scheme=n.toLowerCase())),null===t&&(o=r),t}function te(){var t,n,r=o;return"sip"===e.substr(o,3).toLowerCase()?(t=e.substr(o,3),o+=3):(t=null,0===s&&c('"sip"')),null!==t&&(n=t,t=void(qn.scheme=n.toLowerCase())),null===t&&(o=r),t}function ne(){var t,n,r,i=o,a=o,u=re();return null!==u&&(r=o,58===e.charCodeAt(o)?(t=":",o++):(t=null,0===s&&c('":"')),null!==t&&null!==(n=oe())?t=[t,n]:(t=null,o=r),null!==(t=null!==t?t:""))&&(64===e.charCodeAt(o)?(n="@",o++):(n=null,0===s&&c('"@"')),null!==n)?u=[u,t,n]:(u=null,o=a),null===(u=null!==u?void(qn.user=decodeURIComponent(e.substring(o-1,i))):u)&&(o=i),u}function re(){var e,t=w();if(null!==(t=null===t&&null===(t=S())?ie():t))for(e=[];null!==t;)e.push(t),null===(t=w())&&null===(t=S())&&(t=ie());else e=null;return e}function ie(){var t;return 38===e.charCodeAt(o)?(t="&",o++):(t=null,0===s&&c('"&"')),null===t&&(61===e.charCodeAt(o)?(t="=",o++):(t=null,0===s&&c('"="')),null===t)&&(43===e.charCodeAt(o)?(t="+",o++):(t=null,0===s&&c('"+"')),null===t)&&(36===e.charCodeAt(o)?(t="$",o++):(t=null,0===s&&c('"$"')),null===t)&&(44===e.charCodeAt(o)?(t=",",o++):(t=null,0===s&&c('","')),null===t)&&(59===e.charCodeAt(o)?(t=";",o++):(t=null,0===s&&c('";"')),null===t)&&(63===e.charCodeAt(o)?(t="?",o++):(t=null,0===s&&c('"?"')),null===t)&&(47===e.charCodeAt(o)?(t="/",o++):(t=null,0===s&&c('"/"'))),t}function oe(){var t=o,n=[],r=w();for(null===r&&null===(r=S())&&(38===e.charCodeAt(o)?(r="&",o++):(r=null,0===s&&c('"&"')),null===r)&&(61===e.charCodeAt(o)?(r="=",o++):(r=null,0===s&&c('"="')),null===r)&&(43===e.charCodeAt(o)?(r="+",o++):(r=null,0===s&&c('"+"')),null===r)&&(36===e.charCodeAt(o)?(r="$",o++):(r=null,0===s&&c('"$"')),null===r)&&(44===e.charCodeAt(o)?(r=",",o++):(r=null,0===s&&c('","')));null!==r;)n.push(r),null===(r=w())&&null===(r=S())&&(38===e.charCodeAt(o)?(r="&",o++):(r=null,0===s&&c('"&"')),null===r)&&(61===e.charCodeAt(o)?(r="=",o++):(r=null,0===s&&c('"="')),null===r)&&(43===e.charCodeAt(o)?(r="+",o++):(r=null,0===s&&c('"+"')),null===r)&&(36===e.charCodeAt(o)?(r="$",o++):(r=null,0===s&&c('"$"')),null===r)&&(44===e.charCodeAt(o)?(r=",",o++):(r=null,0===s&&c('","')));return null===(n=null!==n?void(qn.password=e.substring(o,t)):n)&&(o=t),n}function se(){var t,n,r,i=o,a=ae();return null!==a&&(r=o,58===e.charCodeAt(o)?(t=":",o++):(t=null,0===s&&c('":"')),null!==t&&null!==(n=ge())?t=[t,n]:(t=null,o=r),null!==(t=null!==t?t:""))?a=[a,t]:(a=null,o=i),a}function ae(){var t=o,n=ue();return null!==(n=null===n&&null===(n=ve())?de():n)&&(qn.host=e.substring(o,t).toLowerCase(),n=qn.host),null===n&&(o=t),n}function ue(){var t,n=o,r=o,i=[],a=o,u=ce();for(null!==u&&(46===e.charCodeAt(o)?(t=".",o++):(t=null,0===s&&c('"."')),null!==t)?u=[u,t]:(u=null,o=a);null!==u;)i.push(u),a=o,null!==(u=ce())&&(46===e.charCodeAt(o)?(t=".",o++):(t=null,0===s&&c('"."')),null!==t)?u=[u,t]:(u=null,o=a);return null!==i&&null!==(u=le())&&(46===e.charCodeAt(o)?(t=".",o++):(t=null,0===s&&c('"."')),null!==(t=null!==t?t:""))?i=[i,u,t]:(i=null,o=r),null!==i&&(r=n,qn.host_type="domain",i=e.substring(o,r)),null===i&&(o=n),i}function ce(){var t,n,r=o,i=y();if(null!==i){for(t=[],null===(n=y())&&(45===e.charCodeAt(o)?(n="-",o++):(n=null,0===s&&c('"-"')),null===n)&&(95===e.charCodeAt(o)?(n="_",o++):(n=null,0===s&&c('"_"')));null!==n;)t.push(n),null===(n=y())&&(45===e.charCodeAt(o)?(n="-",o++):(n=null,0===s&&c('"-"')),null===n)&&(95===e.charCodeAt(o)?(n="_",o++):(n=null,0===s&&c('"_"')));null!==t?i=[i,t]:(i=null,o=r)}else i=null,o=r;return i}function le(){var t,n,r=o,i=h();if(null!==i){for(t=[],null===(n=y())&&(45===e.charCodeAt(o)?(n="-",o++):(n=null,0===s&&c('"-"')),null===n)&&(95===e.charCodeAt(o)?(n="_",o++):(n=null,0===s&&c('"_"')));null!==n;)t.push(n),null===(n=y())&&(45===e.charCodeAt(o)?(n="-",o++):(n=null,0===s&&c('"-"')),null===n)&&(95===e.charCodeAt(o)?(n="_",o++):(n=null,0===s&&c('"_"')));null!==t?i=[i,t]:(i=null,o=r)}else i=null,o=r;return i}function de(){var t,n,r,i=o,a=o;return 91===e.charCodeAt(o)?(t="[",o++):(t=null,0===s&&c('"["')),null!==t&&null!==(r=he())&&(93===e.charCodeAt(o)?(n="]",o++):(n=null,0===s&&c('"]"')),null!==n)?t=[t,r,n]:(t=null,o=a),null!==t&&(r=i,qn.host_type="IPv6",t=e.substring(o,r)),null===t&&(o=i),t}function he(){var t,n,r,i,a,u,l,d,h,f,p,v,m,g=o,_=o,y=fe();return null!==y&&(58===e.charCodeAt(o)?(t=":",o++):(t=null,0===s&&c('":"')),null!==t)&&null!==(n=fe())&&(58===e.charCodeAt(o)?(r=":",o++):(r=null,0===s&&c('":"')),null!==r)&&null!==(i=fe())&&(58===e.charCodeAt(o)?(a=":",o++):(a=null,0===s&&c('":"')),null!==a)&&null!==(u=fe())&&(58===e.charCodeAt(o)?(l=":",o++):(l=null,0===s&&c('":"')),null!==l)&&null!==(d=fe())&&(58===e.charCodeAt(o)?(h=":",o++):(h=null,0===s&&c('":"')),null!==h)&&null!==(f=fe())&&(58===e.charCodeAt(o)?(p=":",o++):(p=null,0===s&&c('":"')),null!==p)&&null!==(m=pe())?y=[y,t,n,r,i,a,u,l,d,h,f,p,m]:(y=null,o=_),null===y&&(_=o,"::"===e.substr(o,2)?(y="::",o+=2):(y=null,0===s&&c('"::"')),null!==y&&null!==(t=fe())&&(58===e.charCodeAt(o)?(n=":",o++):(n=null,0===s&&c('":"')),null!==n)&&null!==(r=fe())&&(58===e.charCodeAt(o)?(i=":",o++):(i=null,0===s&&c('":"')),null!==i)&&null!==(a=fe())&&(58===e.charCodeAt(o)?(u=":",o++):(u=null,0===s&&c('":"')),null!==u)&&null!==(l=fe())&&(58===e.charCodeAt(o)?(d=":",o++):(d=null,0===s&&c('":"')),null!==d)&&null!==(h=fe())&&(58===e.charCodeAt(o)?(f=":",o++):(f=null,0===s&&c('":"')),null!==f)&&null!==(p=pe())?y=[y,t,n,r,i,a,u,l,d,h,f,p]:(y=null,o=_),null===y)&&(_=o,"::"===e.substr(o,2)?(y="::",o+=2):(y=null,0===s&&c('"::"')),null!==y&&null!==(t=fe())&&(58===e.charCodeAt(o)?(n=":",o++):(n=null,0===s&&c('":"')),null!==n)&&null!==(r=fe())&&(58===e.charCodeAt(o)?(i=":",o++):(i=null,0===s&&c('":"')),null!==i)&&null!==(a=fe())&&(58===e.charCodeAt(o)?(u=":",o++):(u=null,0===s&&c('":"')),null!==u)&&null!==(l=fe())&&(58===e.charCodeAt(o)?(d=":",o++):(d=null,0===s&&c('":"')),null!==d)&&null!==(h=pe())?y=[y,t,n,r,i,a,u,l,d,h]:(y=null,o=_),null===y)&&(_=o,"::"===e.substr(o,2)?(y="::",o+=2):(y=null,0===s&&c('"::"')),null!==y&&null!==(t=fe())&&(58===e.charCodeAt(o)?(n=":",o++):(n=null,0===s&&c('":"')),null!==n)&&null!==(r=fe())&&(58===e.charCodeAt(o)?(i=":",o++):(i=null,0===s&&c('":"')),null!==i)&&null!==(a=fe())&&(58===e.charCodeAt(o)?(u=":",o++):(u=null,0===s&&c('":"')),null!==u)&&null!==(l=pe())?y=[y,t,n,r,i,a,u,l]:(y=null,o=_),null===y)&&(_=o,"::"===e.substr(o,2)?(y="::",o+=2):(y=null,0===s&&c('"::"')),null!==y&&null!==(t=fe())&&(58===e.charCodeAt(o)?(n=":",o++):(n=null,0===s&&c('":"')),null!==n)&&null!==(r=fe())&&(58===e.charCodeAt(o)?(i=":",o++):(i=null,0===s&&c('":"')),null!==i)&&null!==(a=pe())?y=[y,t,n,r,i,a]:(y=null,o=_),null===y)&&(_=o,"::"===e.substr(o,2)?(y="::",o+=2):(y=null,0===s&&c('"::"')),null!==y&&null!==(t=fe())&&(58===e.charCodeAt(o)?(n=":",o++):(n=null,0===s&&c('":"')),null!==n)&&null!==(r=pe())?y=[y,t,n,r]:(y=null,o=_),null===y)&&(_=o,"::"===e.substr(o,2)?(y="::",o+=2):(y=null,0===s&&c('"::"')),null!==y&&null!==(t=pe())?y=[y,t]:(y=null,o=_),null===y)&&(_=o,"::"===e.substr(o,2)?(y="::",o+=2):(y=null,0===s&&c('"::"')),null!==y&&null!==(t=fe())?y=[y,t]:(y=null,o=_),null===y)&&(_=o,null!==(y=fe())&&("::"===e.substr(o,2)?(t="::",o+=2):(t=null,0===s&&c('"::"')),null!==t)&&null!==(n=fe())&&(58===e.charCodeAt(o)?(r=":",o++):(r=null,0===s&&c('":"')),null!==r)&&null!==(i=fe())&&(58===e.charCodeAt(o)?(a=":",o++):(a=null,0===s&&c('":"')),null!==a)&&null!==(u=fe())&&(58===e.charCodeAt(o)?(l=":",o++):(l=null,0===s&&c('":"')),null!==l)&&null!==(d=fe())&&(58===e.charCodeAt(o)?(h=":",o++):(h=null,0===s&&c('":"')),null!==h)&&null!==(f=pe())?y=[y,t,n,r,i,a,u,l,d,h,f]:(y=null,o=_),null===y)&&(_=o,null!==(y=fe())&&(v=o,58===e.charCodeAt(o)?(t=":",o++):(t=null,0===s&&c('":"')),null!==t&&null!==(n=fe())?t=[t,n]:(t=null,o=v),null!==(t=null!==t?t:""))&&("::"===e.substr(o,2)?(n="::",o+=2):(n=null,0===s&&c('"::"')),null!==n)&&null!==(r=fe())&&(58===e.charCodeAt(o)?(i=":",o++):(i=null,0===s&&c('":"')),null!==i)&&null!==(a=fe())&&(58===e.charCodeAt(o)?(u=":",o++):(u=null,0===s&&c('":"')),null!==u)&&null!==(l=fe())&&(58===e.charCodeAt(o)?(d=":",o++):(d=null,0===s&&c('":"')),null!==d)&&null!==(h=pe())?y=[y,t,n,r,i,a,u,l,d,h]:(y=null,o=_),null===y)&&(_=o,null!==(y=fe())&&(v=o,58===e.charCodeAt(o)?(t=":",o++):(t=null,0===s&&c('":"')),null!==t&&null!==(n=fe())?t=[t,n]:(t=null,o=v),null!==(t=null!==t?t:""))&&(v=o,58===e.charCodeAt(o)?(n=":",o++):(n=null,0===s&&c('":"')),null!==n&&null!==(r=fe())?n=[n,r]:(n=null,o=v),null!==(n=null!==n?n:""))&&("::"===e.substr(o,2)?(r="::",o+=2):(r=null,0===s&&c('"::"')),null!==r)&&null!==(i=fe())&&(58===e.charCodeAt(o)?(a=":",o++):(a=null,0===s&&c('":"')),null!==a)&&null!==(u=fe())&&(58===e.charCodeAt(o)?(l=":",o++):(l=null,0===s&&c('":"')),null!==l)&&null!==(d=pe())?y=[y,t,n,r,i,a,u,l,d]:(y=null,o=_),null===y)&&(_=o,null!==(y=fe())&&(v=o,58===e.charCodeAt(o)?(t=":",o++):(t=null,0===s&&c('":"')),null!==t&&null!==(n=fe())?t=[t,n]:(t=null,o=v),null!==(t=null!==t?t:""))&&(v=o,58===e.charCodeAt(o)?(n=":",o++):(n=null,0===s&&c('":"')),null!==n&&null!==(r=fe())?n=[n,r]:(n=null,o=v),null!==(n=null!==n?n:""))&&(v=o,58===e.charCodeAt(o)?(r=":",o++):(r=null,0===s&&c('":"')),null!==r&&null!==(i=fe())?r=[r,i]:(r=null,o=v),null!==(r=null!==r?r:""))&&("::"===e.substr(o,2)?(i="::",o+=2):(i=null,0===s&&c('"::"')),null!==i)&&null!==(a=fe())&&(58===e.charCodeAt(o)?(u=":",o++):(u=null,0===s&&c('":"')),null!==u)&&null!==(l=pe())?y=[y,t,n,r,i,a,u,l]:(y=null,o=_),null===y)&&(_=o,null!==(y=fe())&&(v=o,58===e.charCodeAt(o)?(t=":",o++):(t=null,0===s&&c('":"')),null!==t&&null!==(n=fe())?t=[t,n]:(t=null,o=v),null!==(t=null!==t?t:""))&&(v=o,58===e.charCodeAt(o)?(n=":",o++):(n=null,0===s&&c('":"')),null!==n&&null!==(r=fe())?n=[n,r]:(n=null,o=v),null!==(n=null!==n?n:""))&&(v=o,58===e.charCodeAt(o)?(r=":",o++):(r=null,0===s&&c('":"')),null!==r&&null!==(i=fe())?r=[r,i]:(r=null,o=v),null!==(r=null!==r?r:""))&&(v=o,58===e.charCodeAt(o)?(i=":",o++):(i=null,0===s&&c('":"')),null!==i&&null!==(a=fe())?i=[i,a]:(i=null,o=v),null!==(i=null!==i?i:""))&&("::"===e.substr(o,2)?(a="::",o+=2):(a=null,0===s&&c('"::"')),null!==a)&&null!==(u=pe())?y=[y,t,n,r,i,a,u]:(y=null,o=_),null===y)&&(_=o,null!==(y=fe())&&(v=o,58===e.charCodeAt(o)?(t=":",o++):(t=null,0===s&&c('":"')),null!==t&&null!==(n=fe())?t=[t,n]:(t=null,o=v),null!==(t=null!==t?t:""))&&(v=o,58===e.charCodeAt(o)?(n=":",o++):(n=null,0===s&&c('":"')),null!==n&&null!==(r=fe())?n=[n,r]:(n=null,o=v),null!==(n=null!==n?n:""))&&(v=o,58===e.charCodeAt(o)?(r=":",o++):(r=null,0===s&&c('":"')),null!==r&&null!==(i=fe())?r=[r,i]:(r=null,o=v),null!==(r=null!==r?r:""))&&(v=o,58===e.charCodeAt(o)?(i=":",o++):(i=null,0===s&&c('":"')),null!==i&&null!==(a=fe())?i=[i,a]:(i=null,o=v),null!==(i=null!==i?i:""))&&(v=o,58===e.charCodeAt(o)?(a=":",o++):(a=null,0===s&&c('":"')),null!==a&&null!==(u=fe())?a=[a,u]:(a=null,o=v),null!==(a=null!==a?a:""))&&("::"===e.substr(o,2)?(u="::",o+=2):(u=null,0===s&&c('"::"')),null!==u)&&null!==(l=fe())?y=[y,t,n,r,i,a,u,l]:(y=null,o=_),null===y)&&(_=o,null!==(y=fe())&&(v=o,58===e.charCodeAt(o)?(t=":",o++):(t=null,0===s&&c('":"')),null!==t&&null!==(n=fe())?t=[t,n]:(t=null,o=v),null!==(t=null!==t?t:""))&&(v=o,58===e.charCodeAt(o)?(n=":",o++):(n=null,0===s&&c('":"')),null!==n&&null!==(r=fe())?n=[n,r]:(n=null,o=v),null!==(n=null!==n?n:""))&&(v=o,58===e.charCodeAt(o)?(r=":",o++):(r=null,0===s&&c('":"')),null!==r&&null!==(i=fe())?r=[r,i]:(r=null,o=v),null!==(r=null!==r?r:""))&&(v=o,58===e.charCodeAt(o)?(i=":",o++):(i=null,0===s&&c('":"')),null!==i&&null!==(a=fe())?i=[i,a]:(i=null,o=v),null!==(i=null!==i?i:""))&&(v=o,58===e.charCodeAt(o)?(a=":",o++):(a=null,0===s&&c('":"')),null!==a&&null!==(u=fe())?a=[a,u]:(a=null,o=v),null!==(a=null!==a?a:""))&&(v=o,58===e.charCodeAt(o)?(u=":",o++):(u=null,0===s&&c('":"')),null!==u&&null!==(l=fe())?u=[u,l]:(u=null,o=v),null!==(u=null!==u?u:""))&&("::"===e.substr(o,2)?(l="::",o+=2):(l=null,0===s&&c('"::"')),null!==l)?y=[y,t,n,r,i,a,u,l]:(y=null,o=_)),null!==y&&(m=g,qn.host_type="IPv6",y=e.substring(o,m)),null===y&&(o=g),y}function fe(){var e,t,n,r=o,i=f();return null!==i&&null!==(e=null!==(e=f())?e:"")&&null!==(t=null!==(t=f())?t:"")&&null!==(n=null!==(n=f())?n:"")?i=[i,e,t,n]:(i=null,o=r),i}function pe(){var t,n,r=o,i=fe();return null!==i&&(58===e.charCodeAt(o)?(t=":",o++):(t=null,0===s&&c('":"')),null!==t)&&null!==(n=fe())?i=[i,t,n]:(i=null,o=r),null===i?ve():i}function ve(){var t,n,r,i,a,u,l=o,d=o,h=me();return null!==h&&(46===e.charCodeAt(o)?(u=".",o++):(u=null,0===s&&c('"."')),null!==u)&&null!==(t=me())&&(46===e.charCodeAt(o)?(n=".",o++):(n=null,0===s&&c('"."')),null!==n)&&null!==(r=me())&&(46===e.charCodeAt(o)?(i=".",o++):(i=null,0===s&&c('"."')),null!==i)&&null!==(a=me())?h=[h,u,t,n,r,i,a]:(h=null,o=d),null!==h&&(u=l,qn.host_type="IPv4",h=e.substring(o,u)),null===h&&(o=l),h}function me(){var t,n,r,i=o;return"25"===e.substr(o,2)?(t="25",o+=2):(t=null,0===s&&c('"25"')),null!==t&&(/^[0-5]/.test(e.charAt(o))?(n=e.charAt(o),o++):(n=null,0===s&&c("[0-5]")),null!==n)?t=[t,n]:(t=null,o=i),null===t&&(i=o,50===e.charCodeAt(o)?(t="2",o++):(t=null,0===s&&c('"2"')),null!==t&&(/^[0-4]/.test(e.charAt(o))?(n=e.charAt(o),o++):(n=null,0===s&&c("[0-4]")),null!==n)&&null!==(r=d())?t=[t,n,r]:(t=null,o=i),null===t)&&(i=o,49===e.charCodeAt(o)?(t="1",o++):(t=null,0===s&&c('"1"')),null!==t&&null!==(n=d())&&null!==(r=d())?t=[t,n,r]:(t=null,o=i),null===t)&&(i=o,/^[1-9]/.test(e.charAt(o))?(t=e.charAt(o),o++):(t=null,0===s&&c("[1-9]")),null!==t&&null!==(n=d())?t=[t,n]:(t=null,o=i),null===t)?d():t}function ge(){var e,t,n,r,i=o,s=o,a=d();return null!==(a=null!==a?a:"")&&null!==(r=null!==(r=d())?r:"")&&null!==(e=null!==(e=d())?e:"")&&null!==(t=null!==(t=d())?t:"")&&null!==(n=null!==(n=d())?n:"")?a=[a,r,e,t,n]:(a=null,o=s),null!==a&&(r=a,r=parseInt(r.join("")),a=qn.port=r),null===a&&(o=i),a}function _e(){var t,n,r=[],i=o;for(59===e.charCodeAt(o)?(t=";",o++):(t=null,0===s&&c('";"')),null!==t&&null!==(n=ye())?t=[t,n]:(t=null,o=i);null!==t;)r.push(t),i=o,59===e.charCodeAt(o)?(t=";",o++):(t=null,0===s&&c('";"')),null!==t&&null!==(n=ye())?t=[t,n]:(t=null,o=i);return r}function ye(){var e=be();return null===e&&null===(e=we())&&null===(e=Te())&&null===(e=Se())&&null===(e=Ce())&&null===(e=Ee())?Ae():e}function be(){var t,n,r=o,i=o;return"transport="===e.substr(o,10).toLowerCase()?(t=e.substr(o,10),o+=10):(t=null,0===s&&c('"transport="')),null!==t&&("udp"===e.substr(o,3).toLowerCase()?(n=e.substr(o,3),o+=3):(n=null,0===s&&c('"udp"')),null!==(n=null===n&&("tcp"===e.substr(o,3).toLowerCase()?(n=e.substr(o,3),o+=3):(n=null,0===s&&c('"tcp"')),null===n)&&("sctp"===e.substr(o,4).toLowerCase()?(n=e.substr(o,4),o+=4):(n=null,0===s&&c('"sctp"')),null===n)&&("tls"===e.substr(o,3).toLowerCase()?(n=e.substr(o,3),o+=3):(n=null,0===s&&c('"tls"')),null===n)?k():n))?t=[t,n]:(t=null,o=i),null!==t&&(n=t[1],qn.uri_params||(qn.uri_params={}),t=void(qn.uri_params.transport=n.toLowerCase())),null===t&&(o=r),t}function we(){var t,n,r=o,i=o;return"user="===e.substr(o,5).toLowerCase()?(t=e.substr(o,5),o+=5):(t=null,0===s&&c('"user="')),null!==t&&("phone"===e.substr(o,5).toLowerCase()?(n=e.substr(o,5),o+=5):(n=null,0===s&&c('"phone"')),null!==(n=null===n&&("ip"===e.substr(o,2).toLowerCase()?(n=e.substr(o,2),o+=2):(n=null,0===s&&c('"ip"')),null===n)?k():n))?t=[t,n]:(t=null,o=i),null!==t&&(n=t[1],qn.uri_params||(qn.uri_params={}),t=void(qn.uri_params.user=n.toLowerCase())),null===t&&(o=r),t}function Te(){var t,n,r=o,i=o;return"method="===e.substr(o,7).toLowerCase()?(t=e.substr(o,7),o+=7):(t=null,0===s&&c('"method="')),null!==t&&null!==(n=lt())?t=[t,n]:(t=null,o=i),null!==t&&(n=t[1],qn.uri_params||(qn.uri_params={}),t=void(qn.uri_params.method=n)),null===t&&(o=r),t}function Se(){var t,n,r=o,i=o;return"ttl="===e.substr(o,4).toLowerCase()?(t=e.substr(o,4),o+=4):(t=null,0===s&&c('"ttl="')),null!==t&&null!==(n=En())?t=[t,n]:(t=null,o=i),null!==t&&(n=t[1],qn.params||(qn.params={}),t=void(qn.params.ttl=n)),null===t&&(o=r),t}function Ce(){var t,n,r=o,i=o;return"maddr="===e.substr(o,6).toLowerCase()?(t=e.substr(o,6),o+=6):(t=null,0===s&&c('"maddr="')),null!==t&&null!==(n=ae())?t=[t,n]:(t=null,o=i),null!==t&&(n=t[1],qn.uri_params||(qn.uri_params={}),t=void(qn.uri_params.maddr=n)),null===t&&(o=r),t}function Ee(){var t,n,r,i,a=o,u=o;return"lr"===e.substr(o,2).toLowerCase()?(t=e.substr(o,2),o+=2):(t=null,0===s&&c('"lr"')),null!==t&&(i=o,61===e.charCodeAt(o)?(n="=",o++):(n=null,0===s&&c('"="')),null!==n&&null!==(r=k())?n=[n,r]:(n=null,o=i),null!==(n=null!==n?n:""))?t=[t,n]:(t=null,o=u),null!==t&&(qn.uri_params||(qn.uri_params={}),t=void(qn.uri_params.lr=void 0)),null===t&&(o=a),t}function Ae(){var t,n,r,i=o,a=o,u=xe();return null!==u&&(r=o,61===e.charCodeAt(o)?(t="=",o++):(t=null,0===s&&c('"="')),null!==t&&null!==(n=Re())?t=[t,n]:(t=null,o=r),null!==(t=null!==t?t:""))?u=[u,t]:(u=null,o=a),null!==u&&(n=u[0],r=u[1],qn.uri_params||(qn.uri_params={}),r=void 0===r?void 0:r[1],u=void(qn.uri_params[n.toLowerCase()]=r)),null===u&&(o=i),u}function xe(){var e,t=o,n=Oe();if(null!==n)for(e=[];null!==n;)e.push(n),n=Oe();else e=null;return null===(e=null!==e?e.join(""):e)&&(o=t),e}function Re(){var e,t=o,n=Oe();if(null!==n)for(e=[];null!==n;)e.push(n),n=Oe();else e=null;return null===(e=null!==e?e.join(""):e)&&(o=t),e}function Oe(){var e=Ie();return null===e&&null===(e=w())?S():e}function Ie(){var t;return 91===e.charCodeAt(o)?(t="[",o++):(t=null,0===s&&c('"["')),null===t&&(93===e.charCodeAt(o)?(t="]",o++):(t=null,0===s&&c('"]"')),null===t)&&(47===e.charCodeAt(o)?(t="/",o++):(t=null,0===s&&c('"/"')),null===t)&&(58===e.charCodeAt(o)?(t=":",o++):(t=null,0===s&&c('":"')),null===t)&&(38===e.charCodeAt(o)?(t="&",o++):(t=null,0===s&&c('"&"')),null===t)&&(43===e.charCodeAt(o)?(t="+",o++):(t=null,0===s&&c('"+"')),null===t)&&(36===e.charCodeAt(o)?(t="$",o++):(t=null,0===s&&c('"$"'))),t}function ke(){var t,n,r,i,a,u,l=o;if(63===e.charCodeAt(o)?(t="?",o++):(t=null,0===s&&c('"?"')),null!==t)if(null!==(n=Pe())){for(r=[],u=o,38===e.charCodeAt(o)?(i="&",o++):(i=null,0===s&&c('"&"')),null!==i&&null!==(a=Pe())?i=[i,a]:(i=null,o=u);null!==i;)r.push(i),u=o,38===e.charCodeAt(o)?(i="&",o++):(i=null,0===s&&c('"&"')),null!==i&&null!==(a=Pe())?i=[i,a]:(i=null,o=u);null!==r?t=[t,n,r]:(t=null,o=l)}else t=null,o=l;else t=null,o=l;return t}function Pe(){var t,n,r=o,i=o,a=Me();return null!==a&&(61===e.charCodeAt(o)?(t="=",o++):(t=null,0===s&&c('"="')),null!==t)&&null!==(n=Ne())?a=[a,t,n]:(a=null,o=i),null!==a&&(t=a[0],n=a[2],t=t.join("").toLowerCase(),n=n.join(""),qn.uri_headers||(qn.uri_headers={}),a=void(qn.uri_headers[t]?qn.uri_headers[t].push(n):qn.uri_headers[t]=[n])),null===a&&(o=r),a}function Me(){var e,t=Le();if(null!==(t=null===t&&null===(t=w())?S():t))for(e=[];null!==t;)e.push(t),null===(t=Le())&&null===(t=w())&&(t=S());else e=null;return e}function Ne(){var e=[],t=Le();for(null===t&&null===(t=w())&&(t=S());null!==t;)e.push(t),null===(t=Le())&&null===(t=w())&&(t=S());return e}function Le(){var t;return 91===e.charCodeAt(o)?(t="[",o++):(t=null,0===s&&c('"["')),null===t&&(93===e.charCodeAt(o)?(t="]",o++):(t=null,0===s&&c('"]"')),null===t)&&(47===e.charCodeAt(o)?(t="/",o++):(t=null,0===s&&c('"/"')),null===t)&&(63===e.charCodeAt(o)?(t="?",o++):(t=null,0===s&&c('"?"')),null===t)&&(58===e.charCodeAt(o)?(t=":",o++):(t=null,0===s&&c('":"')),null===t)&&(43===e.charCodeAt(o)?(t="+",o++):(t=null,0===s&&c('"+"')),null===t)&&(36===e.charCodeAt(o)?(t="$",o++):(t=null,0===s&&c('"$"'))),t}function De(){var e,t,n,r,i=o,s=lt();return null!==s&&null!==(e=g())&&null!==(t=Ue())&&null!==(n=g())&&null!==(r=et())?s=[s,e,t,n,r]:(s=null,o=i),s}function Ue(){var e=Q();return null===e?je():e}function je(){var t,n,r=o,i=Ke();return null!==i&&(58===e.charCodeAt(o)?(t=":",o++):(t=null,0===s&&c('":"')),null!==t)&&null!==(n=null===(n=Fe())?$e():n)?i=[i,t,n]:(i=null,o=r),i}function Fe(){var t,n,r,i=o,a=He();return null!==(a=null===a?Be():a)&&(r=o,63===e.charCodeAt(o)?(t="?",o++):(t=null,0===s&&c('"?"')),null!==t&&null!==(n=Ze())?t=[t,n]:(t=null,o=r),null!==(t=null!==t?t:""))?a=[a,t]:(a=null,o=i),a}function He(){var t,n,r,i=o;return"//"===e.substr(o,2)?(t="//",o+=2):(t=null,0===s&&c('"//"')),null!==t&&null!==(n=Xe())&&null!==(r=null!==(r=Be())?r:"")?t=[t,n,r]:(t=null,o=i),t}function Be(){var t,n,r=o;return 47===e.charCodeAt(o)?(t="/",o++):(t=null,0===s&&c('"/"')),null!==t&&null!==(n=ze())?t=[t,n]:(t=null,o=r),t}function $e(){var e,t,n=o,r=Ve();if(null!==r){for(e=[],t=qe();null!==t;)e.push(t),t=qe();null!==e?r=[r,e]:(r=null,o=n)}else r=null,o=n;return r}function qe(){var e=b();return null===e&&null===(e=w())?S():e}function Ve(){var t=w();return null===t&&null===(t=S())&&(59===e.charCodeAt(o)?(t=";",o++):(t=null,0===s&&c('";"')),null===t)&&(63===e.charCodeAt(o)?(t="?",o++):(t=null,0===s&&c('"?"')),null===t)&&(58===e.charCodeAt(o)?(t=":",o++):(t=null,0===s&&c('":"')),null===t)&&(64===e.charCodeAt(o)?(t="@",o++):(t=null,0===s&&c('"@"')),null===t)&&(38===e.charCodeAt(o)?(t="&",o++):(t=null,0===s&&c('"&"')),null===t)&&(61===e.charCodeAt(o)?(t="=",o++):(t=null,0===s&&c('"="')),null===t)&&(43===e.charCodeAt(o)?(t="+",o++):(t=null,0===s&&c('"+"')),null===t)&&(36===e.charCodeAt(o)?(t="$",o++):(t=null,0===s&&c('"$"')),null===t)&&(44===e.charCodeAt(o)?(t=",",o++):(t=null,0===s&&c('","'))),t}function ze(){var t,n,r,i,a=o,u=We();if(null!==u){for(t=[],i=o,47===e.charCodeAt(o)?(n="/",o++):(n=null,0===s&&c('"/"')),null!==n&&null!==(r=We())?n=[n,r]:(n=null,o=i);null!==n;)t.push(n),i=o,47===e.charCodeAt(o)?(n="/",o++):(n=null,0===s&&c('"/"')),null!==n&&null!==(r=We())?n=[n,r]:(n=null,o=i);null!==t?u=[u,t]:(u=null,o=a)}else u=null,o=a;return u}function We(){for(var t,n,r,i=o,a=[],u=Ye();null!==u;)a.push(u),u=Ye();if(null!==a){for(u=[],r=o,59===e.charCodeAt(o)?(t=";",o++):(t=null,0===s&&c('";"')),null!==t&&null!==(n=Ge())?t=[t,n]:(t=null,o=r);null!==t;)u.push(t),r=o,59===e.charCodeAt(o)?(t=";",o++):(t=null,0===s&&c('";"')),null!==t&&null!==(n=Ge())?t=[t,n]:(t=null,o=r);null!==u?a=[a,u]:(a=null,o=i)}else a=null,o=i;return a}function Ge(){for(var e=[],t=Ye();null!==t;)e.push(t),t=Ye();return e}function Ye(){var t=w();return null===t&&null===(t=S())&&(58===e.charCodeAt(o)?(t=":",o++):(t=null,0===s&&c('":"')),null===t)&&(64===e.charCodeAt(o)?(t="@",o++):(t=null,0===s&&c('"@"')),null===t)&&(38===e.charCodeAt(o)?(t="&",o++):(t=null,0===s&&c('"&"')),null===t)&&(61===e.charCodeAt(o)?(t="=",o++):(t=null,0===s&&c('"="')),null===t)&&(43===e.charCodeAt(o)?(t="+",o++):(t=null,0===s&&c('"+"')),null===t)&&(36===e.charCodeAt(o)?(t="$",o++):(t=null,0===s&&c('"$"')),null===t)&&(44===e.charCodeAt(o)?(t=",",o++):(t=null,0===s&&c('","'))),t}function Ke(){var t,n,r=o,i=o,a=h();if(null!==a){for(t=[],null===(n=h())&&null===(n=d())&&(43===e.charCodeAt(o)?(n="+",o++):(n=null,0===s&&c('"+"')),null===n)&&(45===e.charCodeAt(o)?(n="-",o++):(n=null,0===s&&c('"-"')),null===n)&&(46===e.charCodeAt(o)?(n=".",o++):(n=null,0===s&&c('"."')));null!==n;)t.push(n),null===(n=h())&&null===(n=d())&&(43===e.charCodeAt(o)?(n="+",o++):(n=null,0===s&&c('"+"')),null===n)&&(45===e.charCodeAt(o)?(n="-",o++):(n=null,0===s&&c('"-"')),null===n)&&(46===e.charCodeAt(o)?(n=".",o++):(n=null,0===s&&c('"."')));null!==t?a=[a,t]:(a=null,o=i)}else a=null,o=i;return null===(a=null!==a?void(qn.scheme=e.substring(o,r)):a)&&(o=r),a}function Xe(){var e=Je();return null===e?Qe():e}function Je(){var t,n=o,r=o,i=ne();return null!==i&&(64===e.charCodeAt(o)?(t="@",o++):(t=null,0===s&&c('"@"')),null!==t)?i=[i,t]:(i=null,o=r),null!==(i=null!==i?i:"")&&null!==(t=se())?i=[i,t]:(i=null,o=n),null!==i?i:""}function Qe(){var t,n=w();if(null===n&&null===(n=S())&&(36===e.charCodeAt(o)?(n="$",o++):(n=null,0===s&&c('"$"')),null===n)&&(44===e.charCodeAt(o)?(n=",",o++):(n=null,0===s&&c('","')),null===n)&&(59===e.charCodeAt(o)?(n=";",o++):(n=null,0===s&&c('";"')),null===n)&&(58===e.charCodeAt(o)?(n=":",o++):(n=null,0===s&&c('":"')),null===n)&&(64===e.charCodeAt(o)?(n="@",o++):(n=null,0===s&&c('"@"')),null===n)&&(38===e.charCodeAt(o)?(n="&",o++):(n=null,0===s&&c('"&"')),null===n)&&(61===e.charCodeAt(o)?(n="=",o++):(n=null,0===s&&c('"="')),null===n)&&(43===e.charCodeAt(o)?(n="+",o++):(n=null,0===s&&c('"+"'))),null!==n)for(t=[];null!==n;)t.push(n),null===(n=w())&&null===(n=S())&&(36===e.charCodeAt(o)?(n="$",o++):(n=null,0===s&&c('"$"')),null===n)&&(44===e.charCodeAt(o)?(n=",",o++):(n=null,0===s&&c('","')),null===n)&&(59===e.charCodeAt(o)?(n=";",o++):(n=null,0===s&&c('";"')),null===n)&&(58===e.charCodeAt(o)?(n=":",o++):(n=null,0===s&&c('":"')),null===n)&&(64===e.charCodeAt(o)?(n="@",o++):(n=null,0===s&&c('"@"')),null===n)&&(38===e.charCodeAt(o)?(n="&",o++):(n=null,0===s&&c('"&"')),null===n)&&(61===e.charCodeAt(o)?(n="=",o++):(n=null,0===s&&c('"="')),null===n)&&(43===e.charCodeAt(o)?(n="+",o++):(n=null,0===s&&c('"+"')));else t=null;return t}function Ze(){for(var e=[],t=qe();null!==t;)e.push(t),t=qe();return e}function et(){var t,n,r,i,a,u,l=o,h=o;if("sip"===e.substr(o,3).toLowerCase()?(t=e.substr(o,3),o+=3):(t=null,0===s&&c('"SIP"')),null!==t)if(47===e.charCodeAt(o)?(n="/",o++):(n=null,0===s&&c('"/"')),null!==n){if(null!==(i=d()))for(r=[];null!==i;)r.push(i),i=d();else r=null;if(null!==r)if(46===e.charCodeAt(o)?(i=".",o++):(i=null,0===s&&c('"."')),null!==i){if(null!==(u=d()))for(a=[];null!==u;)a.push(u),u=d();else a=null;null!==a?t=[t,n,r,i,a]:(t=null,o=h)}else t=null,o=h;else t=null,o=h}else t=null,o=h;else t=null,o=h;return null===(t=null!==t?void(qn.sip_version=e.substring(o,l)):t)&&(o=l),t}function tt(){var t;return"INVITE"===e.substr(o,6)?(t="INVITE",o+=6):(t=null,0===s&&c('"INVITE"')),t}function nt(){var t;return"ACK"===e.substr(o,3)?(t="ACK",o+=3):(t=null,0===s&&c('"ACK"')),t}function rt(){var t;return"OPTIONS"===e.substr(o,7)?(t="OPTIONS",o+=7):(t=null,0===s&&c('"OPTIONS"')),t}function it(){var t;return"BYE"===e.substr(o,3)?(t="BYE",o+=3):(t=null,0===s&&c('"BYE"')),t}function ot(){var t;return"CANCEL"===e.substr(o,6)?(t="CANCEL",o+=6):(t=null,0===s&&c('"CANCEL"')),t}function st(){var t;return"REGISTER"===e.substr(o,8)?(t="REGISTER",o+=8):(t=null,0===s&&c('"REGISTER"')),t}function at(){var t;return"SUBSCRIBE"===e.substr(o,9)?(t="SUBSCRIBE",o+=9):(t=null,0===s&&c('"SUBSCRIBE"')),t}function ut(){var t;return"NOTIFY"===e.substr(o,6)?(t="NOTIFY",o+=6):(t=null,0===s&&c('"NOTIFY"')),t}function ct(){var t;return"REFER"===e.substr(o,5)?(t="REFER",o+=5):(t=null,0===s&&c('"REFER"')),t}function lt(){var t=o,n=tt();return null!==(n=null===n&&null===(n=nt())&&null===(n=rt())&&null===(n=it())&&null===(n=ot())&&null===(n=st())&&null===(n=at())&&null===(n=ut())&&null===(n=ct())?k():n)&&(qn.method=e.substring(o,t),n=qn.method),null===n&&(o=t),n}function dt(){var e,t,n,r,i=o,s=et();return null!==s&&null!==(e=g())&&null!==(t=ht())&&null!==(n=g())&&null!==(r=pt())?s=[s,e,t,n,r]:(s=null,o=i),s}function ht(){var e,t=o,n=ft();return null!==n&&(e=n,n=void(qn.status_code=parseInt(e.join("")))),null===n&&(o=t),n}function ft(){var e,t,n=o,r=d();return null!==r&&null!==(e=d())&&null!==(t=d())?r=[r,e,t]:(r=null,o=n),r}function pt(){var t=o,n=[],r=b();for(null===r&&null===(r=w())&&null===(r=S())&&null===(r=O())&&null===(r=I())&&null===(r=g())&&(r=_());null!==r;)n.push(r),null===(r=b())&&null===(r=w())&&null===(r=S())&&null===(r=O())&&null===(r=I())&&null===(r=g())&&(r=_());return null===(n=null!==n?void(qn.reason_phrase=e.substring(o,t)):n)&&(o=t),n}function vt(){var e,t,n,r,i=o,s=o,a=J();if(null!==(a=null===a?mt():a)){for(e=[],r=o,null!==(t=$())&&null!==(n=_t())?t=[t,n]:(t=null,o=r);null!==t;)e.push(t),r=o,null!==(t=$())&&null!==(n=_t())?t=[t,n]:(t=null,o=r);null!==e?a=[a,e]:(a=null,o=s)}else a=null,o=s;return null===(a=null!==a?(e=>{var t;qn.multi_header||(qn.multi_header=[]);try{t=new $n(qn.uri,qn.display_name,qn.params),delete qn.uri,delete qn.display_name,delete qn.params}catch(e){t=null}qn.multi_header.push({possition:o,offset:e,parsed:t})})(i):a)&&(o=i),a}function mt(){var e,t,n,r=o,i=gt();return null!==(i=null!==i?i:"")&&null!==(e=H())&&null!==(t=Q())&&null!==(n=F())?i=[i,e,t,n]:(i=null,o=r),i}function gt(){var e,t,n,r,i=o,s=o,a=k();if(null!==a){for(e=[],r=o,null!==(t=C())&&null!==(n=k())?t=[t,n]:(t=null,o=r);null!==t;)e.push(t),r=o,null!==(t=C())&&null!==(n=k())?t=[t,n]:(t=null,o=r);null!==e?a=[a,e]:(a=null,o=s)}else a=null,o=s;return null!==(a=null===a?Y():a)&&(s=a,a=void(qn.display_name="string"==typeof s?s:s[1].reduce((function(e,t){return e+t[0]+t[1]}),s[0]))),null===a&&(o=i),a}function _t(){var e=yt();return null===e&&null===(e=bt())?St():e}function yt(){var t,n,r,i=o,a=o;return"q"===e.substr(o,1).toLowerCase()?(t=e.substr(o,1),o++):(t=null,0===s&&c('"q"')),null!==t&&null!==(r=D())&&null!==(n=Tt())?t=[t,r,n]:(t=null,o=a),null!==t&&(r=t[2],qn.params||(qn.params={}),t=void(qn.params.q=r)),null===t&&(o=i),t}function bt(){var t,n,r,i=o,a=o;return"expires"===e.substr(o,7).toLowerCase()?(t=e.substr(o,7),o+=7):(t=null,0===s&&c('"expires"')),null!==t&&null!==(r=D())&&null!==(n=wt())?t=[t,r,n]:(t=null,o=a),null!==t&&(r=t[2],qn.params||(qn.params={}),t=void(qn.params.expires=r)),null===t&&(o=i),t}function wt(){var e,t=o,n=d();if(null!==n)for(e=[];null!==n;)e.push(n),n=d();else e=null;return null===(e=null!==e?parseInt(e.join("")):e)&&(o=t),e}function Tt(){var t,n,r,i,a,u,l=o,h=o;return 48===e.charCodeAt(o)?(t="0",o++):(t=null,0===s&&c('"0"')),null!==t&&(u=o,46===e.charCodeAt(o)?(n=".",o++):(n=null,0===s&&c('"."')),null!==n&&null!==(r=null!==(r=d())?r:"")&&null!==(i=null!==(i=d())?i:"")&&null!==(a=null!==(a=d())?a:"")?n=[n,r,i,a]:(n=null,o=u),null!==(n=null!==n?n:""))?t=[t,n]:(t=null,o=h),null===(t=null!==t?parseFloat(e.substring(o,l)):t)&&(o=l),t}function St(){var e,t,n,r=o,i=o,s=k();return null!==s&&(n=o,null!==(e=D())&&null!==(t=Ct())?e=[e,t]:(e=null,o=n),null!==(e=null!==e?e:""))?s=[s,e]:(s=null,o=i),null!==s&&(t=s[0],n=s[1],qn.params||(qn.params={}),n=void 0===n?void 0:n[1],s=void(qn.params[t.toLowerCase()]=n)),null===s&&(o=r),s}function Ct(){var e=k();return null===e&&null===(e=ae())?G():e}function Et(){var t;return"render"===e.substr(o,6).toLowerCase()?(t=e.substr(o,6),o+=6):(t=null,0===s&&c('"render"')),null===t&&("session"===e.substr(o,7).toLowerCase()?(t=e.substr(o,7),o+=7):(t=null,0===s&&c('"session"')),null===t)&&("icon"===e.substr(o,4).toLowerCase()?(t=e.substr(o,4),o+=4):(t=null,0===s&&c('"icon"')),null===t)&&("alert"===e.substr(o,5).toLowerCase()?(t=e.substr(o,5),o+=5):(t=null,0===s&&c('"alert"')),null===t)?k():t}function At(){var e=xt();return null===e?St():e}function xt(){var t,n,r,i=o;return"handling"===e.substr(o,8).toLowerCase()?(t=e.substr(o,8),o+=8):(t=null,0===s&&c('"handling"')),null!==t&&null!==(n=D())&&("optional"===e.substr(o,8).toLowerCase()?(r=e.substr(o,8),o+=8):(r=null,0===s&&c('"optional"')),null!==(r=null===r&&("required"===e.substr(o,8).toLowerCase()?(r=e.substr(o,8),o+=8):(r=null,0===s&&c('"required"')),null===r)?k():r))?t=[t,n,r]:(t=null,o=i),t}function Rt(){var e,t,n,r,i,s,a=o,u=Ot();if(null!==u)if(null!==(e=L()))if(null!==(t=Nt())){for(n=[],s=o,null!==(r=$())&&null!==(i=Lt())?r=[r,i]:(r=null,o=s);null!==r;)n.push(r),s=o,null!==(r=$())&&null!==(i=Lt())?r=[r,i]:(r=null,o=s);null!==n?u=[u,e,t,n]:(u=null,o=a)}else u=null,o=a;else u=null,o=a;else u=null,o=a;return u}function Ot(){var e=It();return null===e?kt():e}function It(){var t;return"text"===e.substr(o,4).toLowerCase()?(t=e.substr(o,4),o+=4):(t=null,0===s&&c('"text"')),null===t&&("image"===e.substr(o,5).toLowerCase()?(t=e.substr(o,5),o+=5):(t=null,0===s&&c('"image"')),null===t)&&("audio"===e.substr(o,5).toLowerCase()?(t=e.substr(o,5),o+=5):(t=null,0===s&&c('"audio"')),null===t)&&("video"===e.substr(o,5).toLowerCase()?(t=e.substr(o,5),o+=5):(t=null,0===s&&c('"video"')),null===t)&&("application"===e.substr(o,11).toLowerCase()?(t=e.substr(o,11),o+=11):(t=null,0===s&&c('"application"')),null===t)?Pt():t}function kt(){var t;return"message"===e.substr(o,7).toLowerCase()?(t=e.substr(o,7),o+=7):(t=null,0===s&&c('"message"')),null===t&&("multipart"===e.substr(o,9).toLowerCase()?(t=e.substr(o,9),o+=9):(t=null,0===s&&c('"multipart"')),null===t)?Pt():t}function Pt(){var e=k();return null===e?Mt():e}function Mt(){var t,n,r=o;return"x-"===e.substr(o,2).toLowerCase()?(t=e.substr(o,2),o+=2):(t=null,0===s&&c('"x-"')),null!==t&&null!==(n=k())?t=[t,n]:(t=null,o=r),t}function Nt(){var e=Pt();return null===e?k():e}function Lt(){var e,t,n=o,r=k();return null!==r&&null!==(e=D())&&null!==(t=Dt())?r=[r,e,t]:(r=null,o=n),r}function Dt(){var e=k();return null===e?G():e}function Ut(){var e,t,n=o,r=d();if(null!==r)for(e=[];null!==r;)e.push(r),r=d();else e=null;return null!==e&&(t=e,e=void(qn.value=parseInt(t.join("")))),null===e&&(o=n),e}function jt(){var t,n,r,i,a=o,u=P();if(null!==u){for(t=[],i=o,46===e.charCodeAt(o)?(n=".",o++):(n=null,0===s&&c('"."')),null!==n&&null!==(r=P())?n=[n,r]:(n=null,o=i);null!==n;)t.push(n),i=o,46===e.charCodeAt(o)?(n=".",o++):(n=null,0===s&&c('"."')),null!==n&&null!==(r=P())?n=[n,r]:(n=null,o=i);null!==t?u=[u,t]:(u=null,o=a)}else u=null,o=a;return u}function Ft(){var e=Ht();return null===e?St():e}function Ht(){var t,n,r,i=o,a=o;return"tag"===e.substr(o,3).toLowerCase()?(t=e.substr(o,3),o+=3):(t=null,0===s&&c('"tag"')),null!==t&&null!==(r=D())&&null!==(n=k())?t=[t,r,n]:(t=null,o=a),null!==t&&(r=t[2],t=void(qn.tag=r)),null===t&&(o=i),t}function Bt(){var t,n,r,i,a,u,l,d=o;if("digest"===e.substr(o,6).toLowerCase()?(t=e.substr(o,6),o+=6):(t=null,0===s&&c('"Digest"')),null!==t)if(null!==(n=C()))if(null!==(r=Vt())){for(i=[],l=o,null!==(a=B())&&null!==(u=Vt())?a=[a,u]:(a=null,o=l);null!==a;)i.push(a),l=o,null!==(a=B())&&null!==(u=Vt())?a=[a,u]:(a=null,o=l);null!==i?t=[t,n,r,i]:(t=null,o=d)}else t=null,o=d;else t=null,o=d;else t=null,o=d;return null===t?$t():t}function $t(){var e,t,n,r,i,s,a=o,u=k();if(null!==u)if(null!==(e=C()))if(null!==(t=qt())){for(n=[],s=o,null!==(r=B())&&null!==(i=qt())?r=[r,i]:(r=null,o=s);null!==r;)n.push(r),s=o,null!==(r=B())&&null!==(i=qt())?r=[r,i]:(r=null,o=s);null!==n?u=[u,e,t,n]:(u=null,o=a)}else u=null,o=a;else u=null,o=a;else u=null,o=a;return u}function qt(){var e,t,n=o,r=k();return null!==r&&null!==(e=D())&&null!==(t=null===(t=k())?G():t)?r=[r,e,t]:(r=null,o=n),r}function Vt(){var e=zt();return null===e&&null===(e=Gt())&&null===(e=Kt())&&null===(e=Jt())&&null===(e=Qt())&&null===(e=Zt())&&null===(e=en())?qt():e}function zt(){var t,n,r,i=o;return"realm"===e.substr(o,5).toLowerCase()?(t=e.substr(o,5),o+=5):(t=null,0===s&&c('"realm"')),null!==t&&null!==(n=D())&&null!==(r=Wt())?t=[t,n,r]:(t=null,o=i),t}function Wt(){var e,t=o,n=Y();return null!==n&&(e=n,n=void(qn.realm=e)),null===n&&(o=t),n}function Gt(){var t,n,r,i,a,u,l,d,h=o;if("domain"===e.substr(o,6).toLowerCase()?(t=e.substr(o,6),o+=6):(t=null,0===s&&c('"domain"')),null!==t)if(null!==(n=D()))if(null!==(r=V()))if(null!==(i=Yt())){if(a=[],d=o,null!==(l=g()))for(u=[];null!==l;)u.push(l),l=g();else u=null;for(null!==u&&null!==(l=Yt())?u=[u,l]:(u=null,o=d);null!==u;){if(a.push(u),d=o,null!==(l=g()))for(u=[];null!==l;)u.push(l),l=g();else u=null;null!==u&&null!==(l=Yt())?u=[u,l]:(u=null,o=d)}null!==a&&null!==(u=z())?t=[t,n,r,i,a,u]:(t=null,o=h)}else t=null,o=h;else t=null,o=h;else t=null,o=h;else t=null,o=h;return t}function Yt(){var e=je();return null===e?Be():e}function Kt(){var t,n,r,i=o;return"nonce"===e.substr(o,5).toLowerCase()?(t=e.substr(o,5),o+=5):(t=null,0===s&&c('"nonce"')),null!==t&&null!==(n=D())&&null!==(r=Xt())?t=[t,n,r]:(t=null,o=i),t}function Xt(){var e,t=o,n=Y();return null!==n&&(e=n,n=void(qn.nonce=e)),null===n&&(o=t),n}function Jt(){var t,n,r,i=o,a=o;return"opaque"===e.substr(o,6).toLowerCase()?(t=e.substr(o,6),o+=6):(t=null,0===s&&c('"opaque"')),null!==t&&null!==(r=D())&&null!==(n=Y())?t=[t,r,n]:(t=null,o=a),null!==t&&(r=t[2],t=void(qn.opaque=r)),null===t&&(o=i),t}function Qt(){var t,n,r,i,a=o;return"stale"===e.substr(o,5).toLowerCase()?(t=e.substr(o,5),o+=5):(t=null,0===s&&c('"stale"')),null!==t&&null!==(n=D())&&(i=o,"true"===e.substr(o,4).toLowerCase()?(r=e.substr(o,4),o+=4):(r=null,0===s&&c('"true"')),null===(r=null!==r?void(qn.stale=!0):r)&&(o=i),null===r&&(i=o,"false"===e.substr(o,5).toLowerCase()?(r=e.substr(o,5),o+=5):(r=null,0===s&&c('"false"')),null===(r=null!==r?void(qn.stale=!1):r))&&(o=i),null!==r)?t=[t,n,r]:(t=null,o=a),t}function Zt(){var t,n,r,i=o,a=o;return"algorithm"===e.substr(o,9).toLowerCase()?(t=e.substr(o,9),o+=9):(t=null,0===s&&c('"algorithm"')),null!==t&&null!==(r=D())&&("md5"===e.substr(o,3).toLowerCase()?(n=e.substr(o,3),o+=3):(n=null,0===s&&c('"MD5"')),null!==(n=null===n&&("md5-sess"===e.substr(o,8).toLowerCase()?(n=e.substr(o,8),o+=8):(n=null,0===s&&c('"MD5-sess"')),null===n)?k():n))?t=[t,r,n]:(t=null,o=a),null!==t&&(r=t[2],t=void(qn.algorithm=r.toUpperCase())),null===t&&(o=i),t}function en(){var t,n,r,i,a,u,l,d,h,f=o;if("qop"===e.substr(o,3).toLowerCase()?(t=e.substr(o,3),o+=3):(t=null,0===s&&c('"qop"')),null!==t)if(null!==(n=D()))if(null!==(r=V())){if(d=o,null!==(i=tn())){for(a=[],h=o,44===e.charCodeAt(o)?(u=",",o++):(u=null,0===s&&c('","')),null!==u&&null!==(l=tn())?u=[u,l]:(u=null,o=h);null!==u;)a.push(u),h=o,44===e.charCodeAt(o)?(u=",",o++):(u=null,0===s&&c('","')),null!==u&&null!==(l=tn())?u=[u,l]:(u=null,o=h);null!==a?i=[i,a]:(i=null,o=d)}else i=null,o=d;null!==i&&null!==(a=z())?t=[t,n,r,i,a]:(t=null,o=f)}else t=null,o=f;else t=null,o=f;else t=null,o=f;return t}function tn(){var t,n,r=o;return"auth-int"===e.substr(o,8).toLowerCase()?(t=e.substr(o,8),o+=8):(t=null,0===s&&c('"auth-int"')),null!==(t=null===t&&("auth"===e.substr(o,4).toLowerCase()?(t=e.substr(o,4),o+=4):(t=null,0===s&&c('"auth"')),null===t)?k():t)&&(n=t,qn.qop||(qn.qop=[]),t=void qn.qop.push(n.toLowerCase())),null===t&&(o=r),t}function nn(){var e,t,n,r,i=o,s=o,a=mt();if(null!==a){for(e=[],r=o,null!==(t=$())&&null!==(n=St())?t=[t,n]:(t=null,o=r);null!==t;)e.push(t),r=o,null!==(t=$())&&null!==(n=St())?t=[t,n]:(t=null,o=r);null!==e?a=[a,e]:(a=null,o=s)}else a=null,o=s;return null===(a=null!==a?(e=>{var t;qn.multi_header||(qn.multi_header=[]);try{t=new $n(qn.uri,qn.display_name,qn.params),delete qn.uri,delete qn.display_name,delete qn.params}catch(e){t=null}qn.multi_header.push({possition:o,offset:e,parsed:t})})(i):a)&&(o=i),a}function rn(){var e=on();return null===e?St():e}function on(){var t,n,r,i,a=o,u=o;if("cause"===e.substr(o,5).toLowerCase()?(t=e.substr(o,5),o+=5):(t=null,0===s&&c('"cause"')),null!==t)if(null!==(i=D())){if(null!==(r=d()))for(n=[];null!==r;)n.push(r),r=d();else n=null;null!==n?t=[t,i,n]:(t=null,o=u)}else t=null,o=u;else t=null,o=u;return null!==t&&(i=t[2],t=void(qn.cause=parseInt(i.join("")))),null===t&&(o=a),t}function sn(){var e,t,n,r,i=o,s=mt();if(null!==s){for(e=[],r=o,null!==(t=$())&&null!==(n=St())?t=[t,n]:(t=null,o=r);null!==t;)e.push(t),r=o,null!==(t=$())&&null!==(n=St())?t=[t,n]:(t=null,o=r);null!==e?s=[s,e]:(s=null,o=i)}else s=null,o=i;return s}function an(){var t,n=o;return"active"===e.substr(o,6).toLowerCase()?(t=e.substr(o,6),o+=6):(t=null,0===s&&c('"active"')),null===(t=null!==(t=null===t&&("pending"===e.substr(o,7).toLowerCase()?(t=e.substr(o,7),o+=7):(t=null,0===s&&c('"pending"')),null===t)&&("terminated"===e.substr(o,10).toLowerCase()?(t=e.substr(o,10),o+=10):(t=null,0===s&&c('"terminated"')),null===t)?k():t)?void(qn.state=e.substring(o,n)):t)&&(o=n),t}function un(){var t,n,r,i,a=o,u=o;return"reason"===e.substr(o,6).toLowerCase()?(t=e.substr(o,6),o+=6):(t=null,0===s&&c('"reason"')),null!==t&&null!==(r=D())&&null!==(n=cn())?t=[t,r,n]:(t=null,o=u),null===(t=null!==t?void(void 0!==(i=t[2])&&(qn.reason=i)):t)&&(o=a),null===t&&(u=a=o,"expires"===e.substr(o,7).toLowerCase()?(t=e.substr(o,7),o+=7):(t=null,0===s&&c('"expires"')),null!==t&&null!==(r=D())&&null!==(n=wt())?t=[t,r,n]:(t=null,o=u),null===(t=null!==t?void(void 0!==(i=t[2])&&(qn.expires=i)):t)&&(o=a),null===t)&&(u=a=o,"retry_after"===e.substr(o,11).toLowerCase()?(t=e.substr(o,11),o+=11):(t=null,0===s&&c('"retry_after"')),null!==t&&null!==(r=D())&&null!==(n=wt())?t=[t,r,n]:(t=null,o=u),null===(t=null!==t?void(void 0!==(r=t[2])&&(qn.retry_after=r)):t)&&(o=a),null===t)?St():t}function cn(){var t;return"deactivated"===e.substr(o,11).toLowerCase()?(t=e.substr(o,11),o+=11):(t=null,0===s&&c('"deactivated"')),null===t&&("probation"===e.substr(o,9).toLowerCase()?(t=e.substr(o,9),o+=9):(t=null,0===s&&c('"probation"')),null===t)&&("rejected"===e.substr(o,8).toLowerCase()?(t=e.substr(o,8),o+=8):(t=null,0===s&&c('"rejected"')),null===t)&&("timeout"===e.substr(o,7).toLowerCase()?(t=e.substr(o,7),o+=7):(t=null,0===s&&c('"timeout"')),null===t)&&("giveup"===e.substr(o,6).toLowerCase()?(t=e.substr(o,6),o+=6):(t=null,0===s&&c('"giveup"')),null===t)&&("noresource"===e.substr(o,10).toLowerCase()?(t=e.substr(o,10),o+=10):(t=null,0===s&&c('"noresource"')),null===t)&&("invariant"===e.substr(o,9).toLowerCase()?(t=e.substr(o,9),o+=9):(t=null,0===s&&c('"invariant"')),null===t)?k():t}function ln(){var e=Ht();return null===e?St():e}function dn(){var e,t,n,r,i,s,a=o,u=yn();if(null!==u)if(null!==(e=C()))if(null!==(t=Tn())){for(n=[],s=o,null!==(r=$())&&null!==(i=hn())?r=[r,i]:(r=null,o=s);null!==r;)n.push(r),s=o,null!==(r=$())&&null!==(i=hn())?r=[r,i]:(r=null,o=s);null!==n?u=[u,e,t,n]:(u=null,o=a)}else u=null,o=a;else u=null,o=a;else u=null,o=a;return u}function hn(){var e=fn();return null===e&&null===(e=pn())&&null===(e=vn())&&null===(e=mn())&&null===(e=gn())?St():e}function fn(){var t,n,r,i=o,a=o;return"ttl"===e.substr(o,3).toLowerCase()?(t=e.substr(o,3),o+=3):(t=null,0===s&&c('"ttl"')),null!==t&&null!==(r=D())&&null!==(n=En())?t=[t,r,n]:(t=null,o=a),null!==t&&(r=t[2],t=void(qn.ttl=r)),null===t&&(o=i),t}function pn(){var t,n,r,i=o,a=o;return"maddr"===e.substr(o,5).toLowerCase()?(t=e.substr(o,5),o+=5):(t=null,0===s&&c('"maddr"')),null!==t&&null!==(r=D())&&null!==(n=ae())?t=[t,r,n]:(t=null,o=a),null!==t&&(r=t[2],t=void(qn.maddr=r)),null===t&&(o=i),t}function vn(){var t,n,r,i=o,a=o;return"received"===e.substr(o,8).toLowerCase()?(t=e.substr(o,8),o+=8):(t=null,0===s&&c('"received"')),null!==t&&null!==(r=D())&&null!==(n=null===(n=ve())?he():n)?t=[t,r,n]:(t=null,o=a),null!==t&&(r=t[2],t=void(qn.received=r)),null===t&&(o=i),t}function mn(){var t,n,r,i=o,a=o;return"branch"===e.substr(o,6).toLowerCase()?(t=e.substr(o,6),o+=6):(t=null,0===s&&c('"branch"')),null!==t&&null!==(r=D())&&null!==(n=k())?t=[t,r,n]:(t=null,o=a),null!==t&&(r=t[2],t=void(qn.branch=r)),null===t&&(o=i),t}function gn(){var t,n,r,i,a=o;return"rport"===e.substr(o,5).toLowerCase()?(t=e.substr(o,5),o+=5):(t=null,0===s&&c('"rport"')),null!==t&&(i=o,null!==(n=D())&&null!==(r=_n())?n=[n,r]:(n=null,o=i),null!==(n=null!==n?n:""))?t=[t,n]:(t=null,o=a),t}function _n(){var e,t,n,r,i=o,s=o,a=d();return null!==(a=null!==a?a:"")&&null!==(r=null!==(r=d())?r:"")&&null!==(e=null!==(e=d())?e:"")&&null!==(t=null!==(t=d())?t:"")&&null!==(n=null!==(n=d())?n:"")?a=[a,r,e,t,n]:(a=null,o=s),null!==a&&(r=a,a=void(qn.rport=parseInt(r.join("")))),null===a&&(o=i),a}function yn(){var e,t,n,r,i=o,s=bn();return null!==s&&null!==(e=L())&&null!==(t=k())&&null!==(n=L())&&null!==(r=wn())?s=[s,e,t,n,r]:(s=null,o=i),s}function bn(){var t,n,r=o;return"sip"===e.substr(o,3).toLowerCase()?(t=e.substr(o,3),o+=3):(t=null,0===s&&c('"SIP"')),null!==(t=null===t?k():t)&&(n=t,t=void(qn.protocol=n)),null===t&&(o=r),t}function wn(){var t,n,r=o;return"udp"===e.substr(o,3).toLowerCase()?(t=e.substr(o,3),o+=3):(t=null,0===s&&c('"UDP"')),null!==(t=null===t&&("tcp"===e.substr(o,3).toLowerCase()?(t=e.substr(o,3),o+=3):(t=null,0===s&&c('"TCP"')),null===t)&&("tls"===e.substr(o,3).toLowerCase()?(t=e.substr(o,3),o+=3):(t=null,0===s&&c('"TLS"')),null===t)&&("sctp"===e.substr(o,4).toLowerCase()?(t=e.substr(o,4),o+=4):(t=null,0===s&&c('"SCTP"')),null===t)?k():t)&&(n=t,t=void(qn.transport=n)),null===t&&(o=r),t}function Tn(){var e,t,n,r=o,i=Sn();return null!==i&&(n=o,null!==(e=q())&&null!==(t=Cn())?e=[e,t]:(e=null,o=n),null!==(e=null!==e?e:""))?i=[i,e]:(i=null,o=r),i}function Sn(){var t=o,n=ve();return null===(n=null!==(n=null===n&&null===(n=de())?ue():n)?void(qn.host=e.substring(o,t)):n)&&(o=t),n}function Cn(){var e,t,n,r,i=o,s=o,a=d();return null!==(a=null!==a?a:"")&&null!==(r=null!==(r=d())?r:"")&&null!==(e=null!==(e=d())?e:"")&&null!==(t=null!==(t=d())?t:"")&&null!==(n=null!==(n=d())?n:"")?a=[a,r,e,t,n]:(a=null,o=s),null!==a&&(r=a,a=void(qn.port=parseInt(r.join("")))),null===a&&(o=i),a}function En(){var e,t,n=o,r=o,i=d();return null!==i&&null!==(e=null!==(e=d())?e:"")&&null!==(t=null!==(t=d())?t:"")?i=[i,e,t]:(i=null,o=r),null===(i=null!==i?parseInt(i.join("")):i)&&(o=n),i}function An(){var e,t=o,n=wt();return null!==n&&(e=n,n=void(qn.expires=e)),null===n&&(o=t),n}function xn(){var e=Rn();return null===e?St():e}function Rn(){var t,n,r,i=o,a=o;return"refresher"===e.substr(o,9).toLowerCase()?(t=e.substr(o,9),o+=9):(t=null,0===s&&c('"refresher"')),null!==t&&null!==(r=D())&&("uac"===e.substr(o,3).toLowerCase()?(n=e.substr(o,3),o+=3):(n=null,0===s&&c('"uac"')),null===n&&("uas"===e.substr(o,3).toLowerCase()?(n=e.substr(o,3),o+=3):(n=null,0===s&&c('"uas"'))),null!==n)?t=[t,r,n]:(t=null,o=a),null!==t&&(r=t[2],t=void(qn.refresher=r.toLowerCase())),null===t&&(o=i),t}function On(){var e=[],t=R();for(null===t&&null===(t=I())&&(t=C());null!==t;)e.push(t),null===(t=R())&&null===(t=I())&&(t=C());return e}function In(){var t,n,r,i,a,u,l,d,h=o,f=o,p=Pn();return null!==p&&(45===e.charCodeAt(o)?(t="-",o++):(t=null,0===s&&c('"-"')),null!==t)&&null!==(n=kn())&&(45===e.charCodeAt(o)?(r="-",o++):(r=null,0===s&&c('"-"')),null!==r)&&null!==(i=kn())&&(45===e.charCodeAt(o)?(a="-",o++):(a=null,0===s&&c('"-"')),null!==a)&&null!==(u=kn())&&(45===e.charCodeAt(o)?(l="-",o++):(l=null,0===s&&c('"-"')),null!==l)&&null!==(d=Mn())?p=[p,t,n,r,i,a,u,l,d]:(p=null,o=f),null!==p&&(p[0],p=void(qn=e.substring(o+5,h))),null===p&&(o=h),p}function kn(){var e,t,n,r=o,i=f();return null!==i&&null!==(e=f())&&null!==(t=f())&&null!==(n=f())?i=[i,e,t,n]:(i=null,o=r),i}function Pn(){var e,t=o,n=kn();return null!==n&&null!==(e=kn())?n=[n,e]:(n=null,o=t),n}function Mn(){var e,t,n=o,r=kn();return null!==r&&null!==(e=kn())&&null!==(t=kn())?r=[r,e,t]:(r=null,o=n),r}function Nn(){var t,n,r,i=o,a=o,u=M();return null!==u&&(r=o,64===e.charCodeAt(o)?(t="@",o++):(t=null,0===s&&c('"@"')),null!==t&&null!==(n=M())?t=[t,n]:(t=null,o=r),null!==(t=null!==t?t:""))?u=[u,t]:(u=null,o=a),null===(u=null!==u?void(qn.call_id=e.substring(o,i)):u)&&(o=i),u}function Ln(){var e=Dn();return null===e&&null===(e=Un())&&null===(e=jn())?St():e}function Dn(){var t,n,r,i=o,a=o;return"to-tag"===e.substr(o,6)?(t="to-tag",o+=6):(t=null,0===s&&c('"to-tag"')),null!==t&&null!==(r=D())&&null!==(n=k())?t=[t,r,n]:(t=null,o=a),null!==t&&(r=t[2],t=void(qn.to_tag=r)),null===t&&(o=i),t}function Un(){var t,n,r,i=o,a=o;return"from-tag"===e.substr(o,8)?(t="from-tag",o+=8):(t=null,0===s&&c('"from-tag"')),null!==t&&null!==(r=D())&&null!==(n=k())?t=[t,r,n]:(t=null,o=a),null!==t&&(r=t[2],t=void(qn.from_tag=r)),null===t&&(o=i),t}function jn(){var t,n=o;return"early-only"===e.substr(o,10)?(t="early-only",o+=10):(t=null,0===s&&c('"early-only"')),null===(t=null!==t?void(qn.early_only=!0):t)&&(o=n),t}var Fn,Hn,Bn=n(7019),$n=n(900),qn={};return null===i[t]()||o!==e.length?(Fn=(i=Math.max(o,a))<e.length?e.charAt(i):null,Hn=(()=>{for(var t=1,n=1,r=!1,i=0;i<Math.max(o,a);i++){var s=e.charAt(i);r="\n"===s?(r||t++,!(n=1)):"\r"===s||"\u2028"===s||"\u2029"===s?(t++,n=1,!0):(n++,!1)}return{line:t,column:n}})(),new this.SyntaxError((e=>{e.sort();for(var t=null,n=[],r=0;r<e.length;r++)e[r]!==t&&(n.push(e[r]),t=e[r]);return n})(u),Fn,i,Hn.line,Hn.column),-1):qn},toSource:function(){return this._source}}).SyntaxError=function(e,t,n,i,o){this.name="SyntaxError",this.expected=e,this.found=t,this.message=((e,t)=>{var n;switch(e.length){case 0:n="end of input";break;case 1:n=e[0];break;default:n=e.slice(0,e.length-1).join(", ")+" or "+e[e.length-1]}return"Expected "+n+" but "+(t?r(t):"end of input")+" found."})(e,t),this.offset=n,this.line=i,this.column=o},e.SyntaxError.prototype=Error.prototype,e)},4524:function(e,t,n){var r=n(633),i=n(9896),o=n(8239),s=n(7196),a=n(1675),u=n(7019),c=n(900),l=n(9656),d=n(2159);n(8878)("JsSIP")("version %s",r.version),e.exports={C:i,Exceptions:o,Utils:s,UA:a,URI:u,NameAddrHeader:c,WebSocketInterface:d,Grammar:l,debug:n(8878),get name(){return r.title},get version(){return r.version}}},5409:function(e,t,n){var r=n(8878),i="JsSIP";e.exports=class{constructor(e){e?(this._debug=r.default("JsSIP:"+e),this._warn=r.default("JsSIP:WARN:"+e),this._error=r.default("JsSIP:ERROR:"+e)):(this._debug=r.default(i),this._warn=r.default("JsSIP:WARN"),this._error=r.default("JsSIP:ERROR")),this._debug.log=console.info.bind(console),this._warn.log=console.warn.bind(console),this._error.log=console.error.bind(console)}get debug(){return this._debug}get warn(){return this._warn}get error(){return this._error}}},3834:function(e,t,n){var r=n(9032).EventEmitter,i=n(3422),o=n(9896),s=n(2602),a=n(7196),u=n(5117),c=n(8239),l=n(7019),d=new i("Message");e.exports=class extends r{constructor(e){super(),this._ua=e,this._request=null,this._closed=!1,this._direction=null,this._local_identity=null,this._remote_identity=null,this._is_replied=!1,this._data={}}get direction(){return this._direction}get local_identity(){return this._local_identity}get remote_identity(){return this._remote_identity}send(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e;if(void 0===e||void 0===t)throw new TypeError("Not enough arguments");if(!(e=this._ua.normalizeTarget(e)))throw new TypeError("Invalid target: "+r);r=a.cloneArray(n.extraHeaders);var i,c=a.cloneObject(n.eventHandlers),d=n.contentType||"text/plain",h={};for(i in n.fromUserName&&(h.from_uri=new l("sip",n.fromUserName,this._ua.configuration.uri.host),r.push("P-Preferred-Identity: "+this._ua.configuration.uri.toString())),n.fromDisplayName&&(h.from_display_name=n.fromDisplayName),c)Object.prototype.hasOwnProperty.call(c,i)&&this.on(i,c[i]);r.push("Content-Type: "+d),this._request=new s.OutgoingRequest(o.MESSAGE,e,this._ua,h,r),t&&(this._request.body=t),n=new u(this._ua,this._request,{onRequestTimeout:()=>{this._onRequestTimeout()},onTransportError:()=>{this._onTransportError()},onReceiveResponse:e=>{this._receiveResponse(e)}}),this._newMessage("local",this._request),n.send()}init_incoming(e){this._request=e,this._newMessage("remote",e),this._is_replied||(this._is_replied=!0,e.reply(200)),this._close()}accept(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=a.cloneArray(t.extraHeaders);t=t.body;if("incoming"!==e._direction)throw new c.NotSupportedError('"accept" not supported for outgoing Message');if(e._is_replied)throw new Error("incoming Message already replied");e._is_replied=!0,e._request.reply(200,null,n,t)}(t)}reject(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=t.status_code||480,r=t.reason_phrase,i=a.cloneArray(t.extraHeaders);t=t.body;if("incoming"!==e._direction)throw new c.NotSupportedError('"reject" not supported for outgoing Message');if(e._is_replied)throw new Error("incoming Message already replied");if(n<300||700<=n)throw new TypeError("Invalid status_code: "+n);e._is_replied=!0,e._request.reply(n,r,i,t)}(t)}_receiveResponse(e){if(!this._closed)switch(!0){case/^1[0-9]{2}$/.test(e.status_code):break;case/^2[0-9]{2}$/.test(e.status_code):this._succeeded("remote",e);break;default:var t=a.sipErrorCause(e.status_code);this._failed("remote",e,t)}}_onRequestTimeout(){this._closed||this._failed("system",null,o.causes.REQUEST_TIMEOUT)}_onTransportError(){this._closed||this._failed("system",null,o.causes.CONNECTION_ERROR)}_close(){this._closed=!0,this._ua.destroyMessage(this)}_newMessage(e,t){"remote"===e?(this._direction="incoming",this._local_identity=t.to,this._remote_identity=t.from):"local"===e&&(this._direction="outgoing",this._local_identity=t.from,this._remote_identity=t.to),this._ua.newMessage(this,{originator:e,message:this,request:t})}_failed(e,t,n){d.debug("MESSAGE failed"),this._close(),d.debug('emit "failed"'),this.emit("failed",{originator:e,response:t||null,cause:n})}_succeeded(e,t){d.debug("MESSAGE succeeded"),this._close(),d.debug('emit "succeeded"'),this.emit("succeeded",{originator:e,response:t})}}},900:function(e,t,n){var r=n(7019),i=n(9656);e.exports=class e{static parse(e){if(-1!==(e=i.parse(e,"Name_Addr_Header")))return e}constructor(e,t,n){if(!(e&&e instanceof r))throw new TypeError('missing or invalid "uri" parameter');for(var i in this._uri=e,this._parameters={},this.display_name=t,n)Object.prototype.hasOwnProperty.call(n,i)&&this.setParam(i,n[i])}get uri(){return this._uri}get display_name(){return this._display_name}set display_name(e){this._display_name=0===e?"0":e}setParam(e,t){e&&(this._parameters[e.toLowerCase()]=null==t?null:t.toString())}getParam(e){if(e)return this._parameters[e.toLowerCase()]}hasParam(e){if(e)return!!this._parameters.hasOwnProperty(e.toLowerCase())}deleteParam(e){var t;if(e=e.toLowerCase(),this._parameters.hasOwnProperty(e))return t=this._parameters[e],delete this._parameters[e],t}clearParams(){this._parameters={}}clone(){return new e(this._uri.clone(),this._display_name,JSON.parse(JSON.stringify(this._parameters)))}_quote(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}toString(){var e=this._display_name?`"${this._quote(this._display_name)}" `:"";for(var t in e+=`<${this._uri.toString()}>`,this._parameters)Object.prototype.hasOwnProperty.call(this._parameters,t)&&(e+=";"+t,null!==this._parameters[t])&&(e+="="+this._parameters[t]);return e}}},7659:function(e,t,n){var r=n(9032).EventEmitter,i=n(3422),o=n(9896),s=n(2602),a=n(7196),u=n(5117),c=n(8239),l=new i("Options");e.exports=class extends r{constructor(e){super(),this._ua=e,this._request=null,this._closed=!1,this._direction=null,this._local_identity=null,this._remote_identity=null,this._is_replied=!1,this._data={}}get direction(){return this._direction}get local_identity(){return this._local_identity}get remote_identity(){return this._remote_identity}send(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(r){var i=e;if(void 0===e)throw new TypeError("A target is required for OPTIONS");if(!(e=n._ua.normalizeTarget(e)))throw new TypeError("Invalid target: "+i);i=a.cloneArray(r.extraHeaders);var c,l=a.cloneObject(r.eventHandlers);r=r.contentType||"application/sdp";for(c in l)Object.prototype.hasOwnProperty.call(l,c)&&n.on(c,l[c]);i.push("Content-Type: "+r),n._request=new s.OutgoingRequest(o.OPTIONS,e,n._ua,null,i),t&&(n._request.body=t),r=new u(n._ua,n._request,{onRequestTimeout:()=>{n._onRequestTimeout()},onTransportError:()=>{n._onTransportError()},onReceiveResponse:e=>{n._receiveResponse(e)}}),n._newOptions("local",n._request),r.send()}(r)}init_incoming(e){this._request=e,this._newOptions("remote",e),this._is_replied||(this._is_replied=!0,e.reply(200)),this._close()}accept(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=a.cloneArray(t.extraHeaders);t=t.body;if("incoming"!==e._direction)throw new c.NotSupportedError('"accept" not supported for outgoing Options');if(e._is_replied)throw new Error("incoming Options already replied");e._is_replied=!0,e._request.reply(200,null,n,t)}(t)}reject(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=t.status_code||480,r=t.reason_phrase,i=a.cloneArray(t.extraHeaders);t=t.body;if("incoming"!==e._direction)throw new c.NotSupportedError('"reject" not supported for outgoing Options');if(e._is_replied)throw new Error("incoming Options already replied");if(n<300||700<=n)throw new TypeError("Invalid status_code: "+n);e._is_replied=!0,e._request.reply(n,r,i,t)}(t)}_receiveResponse(e){if(!this._closed)switch(!0){case/^1[0-9]{2}$/.test(e.status_code):break;case/^2[0-9]{2}$/.test(e.status_code):this._succeeded("remote",e);break;default:var t=a.sipErrorCause(e.status_code);this._failed("remote",e,t)}}_onRequestTimeout(){this._closed||this._failed("system",null,o.causes.REQUEST_TIMEOUT)}_onTransportError(){this._closed||this._failed("system",null,o.causes.CONNECTION_ERROR)}_close(){this._closed=!0,this._ua.destroyMessage(this)}_newOptions(e,t){"remote"===e?(this._direction="incoming",this._local_identity=t.to,this._remote_identity=t.from):"local"===e&&(this._direction="outgoing",this._local_identity=t.from,this._remote_identity=t.to),this._ua.newOptions(this,{originator:e,message:this,request:t})}_failed(e,t,n){l.debug("OPTIONS failed"),this._close(),l.debug('emit "failed"'),this.emit("failed",{originator:e,response:t||null,cause:n})}_succeeded(e,t){l.debug("OPTIONS succeeded"),this._close(),l.debug('emit "succeeded"'),this.emit("succeeded",{originator:e,response:t})}}},9070:function(e,t,n){var r=n(3422),i=n(9656),o=n(2602),s=new r("Parser");t.parseMessage=(e,t)=>{var n,r,a=e.indexOf("\r\n");if(-1===a)s.warn("parseMessage() | no CRLF found, not a SIP message");else{var c=e.substring(0,a),l=i.parse(c,"Request_Response");if(-1!==l){l.status_code?((n=new o.IncomingResponse).status_code=l.status_code,n.reason_phrase=l.reason_phrase):((n=new o.IncomingRequest(t)).method=l.method,n.ruri=l.uri),n.data=e;for(var d=a+2;;){if(-2===(a=((e,t)=>{var n=t,r=0,i=0;if(e.substring(n,n+2).match(/(^\r\n)/))return-2;for(;0===r;){if(-1===(i=e.indexOf("\r\n",n)))return i;!e.substring(i+2,i+4).match(/(^\r\n)/)&&e.charAt(i+2).match(/(^\s+)/)?n=i+2:r=i}return r})(e,d))){r=d+2;break}if(-1===a)return void s.warn("parseMessage() | malformed message");if(!0!==(l=((e,t,n,r)=>{var s,a=t.indexOf(":",n),c=t.substring(n,a).trim(),l=t.substring(a+1,r).trim();switch(c.toLowerCase()){case"via":case"v":e.addHeader("via",l),1===e.getHeaders("via").length?(s=e.parseHeader("Via"))&&(e.via=s,e.via_branch=s.branch):s=0;break;case"from":case"f":e.setHeader("from",l),(s=e.parseHeader("from"))&&(e.from=s,e.from_tag=s.getParam("tag"));break;case"to":case"t":e.setHeader("to",l),(s=e.parseHeader("to"))&&(e.to=s,e.to_tag=s.getParam("tag"));break;case"record-route":if(-1===(s=i.parse(l,"Record_Route")))s=void 0;else{var d,h=u(s);try{for(h.s();!(d=h.n()).done;){var f=d.value;e.addHeader("record-route",l.substring(f.possition,f.offset)),e.headers["Record-Route"][e.getHeaders("record-route").length-1].parsed=f.parsed}}catch(g){h.e(g)}finally{h.f()}}break;case"call-id":case"i":e.setHeader("call-id",l),(s=e.parseHeader("call-id"))&&(e.call_id=l);break;case"contact":case"m":if(-1===(s=i.parse(l,"Contact")))s=void 0;else{var p,v=u(s);try{for(v.s();!(p=v.n()).done;){var m=p.value;e.addHeader("contact",l.substring(m.possition,m.offset)),e.headers.Contact[e.getHeaders("contact").length-1].parsed=m.parsed}}catch(g){v.e(g)}finally{v.f()}}break;case"content-length":case"l":e.setHeader("content-length",l),s=e.parseHeader("content-length");break;case"content-type":case"c":e.setHeader("content-type",l),s=e.parseHeader("content-type");break;case"cseq":e.setHeader("cseq",l),(s=e.parseHeader("cseq"))&&(e.cseq=s.value),e instanceof o.IncomingResponse&&(e.method=s.method);break;case"max-forwards":e.setHeader("max-forwards",l),s=e.parseHeader("max-forwards");break;case"www-authenticate":e.setHeader("www-authenticate",l),s=e.parseHeader("www-authenticate");break;case"proxy-authenticate":e.setHeader("proxy-authenticate",l),s=e.parseHeader("proxy-authenticate");break;case"session-expires":case"x":e.setHeader("session-expires",l),(s=e.parseHeader("session-expires"))&&(e.session_expires=s.expires,e.session_expires_refresher=s.refresher);break;case"refer-to":case"r":e.setHeader("refer-to",l),(s=e.parseHeader("refer-to"))&&(e.refer_to=s);break;case"replaces":e.setHeader("replaces",l),(s=e.parseHeader("replaces"))&&(e.replaces=s);break;case"event":case"o":e.setHeader("event",l),(s=e.parseHeader("event"))&&(e.event=s);break;default:e.addHeader(c,l),s=0}return void 0!==s||{error:`error parsing header "${c}"`}})(n,e,d,a)))return void s.warn("parseMessage() |",l.error);d=a+2}return n.hasHeader("content-length")?(t=n.getHeader("content-length"),n.body=e.substr(r,t)):n.body=e.substring(r),n}s.warn(`parseMessage() | error parsing first line of SIP message: "${c}"`)}}},7356:function(e,t,n){var r=n(9032).EventEmitter,i=n(8844),o=n(3422),s=n(9896),a=n(8239),c=n(1164),l=n(7196),d=n(2615),h=n(2602),f=n(2517),p=n(5117),v=n(2608),m=n(3211),g=n(1087),_=n(9535),y=n(7019),b=new o("RTCSession"),w={STATUS_NULL:0,STATUS_INVITE_SENT:1,STATUS_1XX_RECEIVED:2,STATUS_INVITE_RECEIVED:3,STATUS_WAITING_FOR_ANSWER:4,STATUS_ANSWERED:5,STATUS_WAITING_FOR_ACK:6,STATUS_CANCELED:7,STATUS_TERMINATED:8,STATUS_CONFIRMED:9},T=["audio","video"];e.exports=class e extends r{static get C(){return w}constructor(e){b.debug("new"),super(),this._id=null,this._ua=e,this._status=w.STATUS_NULL,this._dialog=null,this._earlyDialogs={},this._contact=null,this._from_tag=null,this._to_tag=null,this._connection=null,this._connectionPromiseQueue=Promise.resolve(),this._request=null,this._is_canceled=!1,this._cancel_reason="",this._is_confirmed=!1,this._late_sdp=!1,this._rtcOfferConstraints=null,this._rtcAnswerConstraints=null,this._localMediaStream=null,this._localMediaStreamLocallyGenerated=!1,this._rtcReady=!0,this._iceReady=!1,this._timers={ackTimer:null,expiresTimer:null,invite2xxTimer:null,userNoAnswerTimer:null},this._direction=null,this._local_identity=null,this._remote_identity=null,this._start_time=null,this._end_time=null,this._tones=null,this._audioMuted=!1,this._videoMuted=!1,this._localHold=!1,this._remoteHold=!1,this._sessionTimers={enabled:this._ua.configuration.session_timers,refreshMethod:this._ua.configuration.session_timers_refresh_method,defaultExpires:s.SESSION_EXPIRES,currentExpires:null,running:!1,refresher:!1,timer:null},this._referSubscribers={},this._data={}}get C(){return w}get causes(){return s.causes}get id(){return this._id}get connection(){return this._connection}get contact(){return this._contact}get direction(){return this._direction}get local_identity(){return this._local_identity}get remote_identity(){return this._remote_identity}get start_time(){return this._start_time}get end_time(){return this._end_time}get data(){return this._data}set data(e){this._data=e}get status(){return this._status}isInProgress(){switch(this._status){case w.STATUS_NULL:case w.STATUS_INVITE_SENT:case w.STATUS_1XX_RECEIVED:case w.STATUS_INVITE_RECEIVED:case w.STATUS_WAITING_FOR_ANSWER:return!0;default:return!1}}isEstablished(){switch(this._status){case w.STATUS_ANSWERED:case w.STATUS_WAITING_FOR_ACK:case w.STATUS_CONFIRMED:return!0;default:return!1}}isEnded(){switch(this._status){case w.STATUS_CANCELED:case w.STATUS_TERMINATED:return!0;default:return!1}}isMuted(){return{audio:this._audioMuted,video:this._videoMuted}}isOnHold(){return{local:this._localHold,remote:this._remoteHold}}connect(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;b.debug("connect()");var r,i=e,o=l.cloneObject(t.eventHandlers),u=l.cloneArray(t.extraHeaders),c=l.cloneObject(t.mediaConstraints,{audio:!0,video:!0}),d=t.mediaStream||null,f=l.cloneObject(t.pcConfig,{iceServers:[]}),p=t.rtcConstraints||null,v=t.rtcOfferConstraints||null;if(this._rtcOfferConstraints=v,this._rtcAnswerConstraints=t.rtcAnswerConstraints||null,this._data=t.data||this._data,void 0===e)throw new TypeError("Not enough arguments");if(this._status!==w.STATUS_NULL)throw new a.InvalidStateError(this._status);if(!window.RTCPeerConnection)throw new a.NotSupportedError("WebRTC not supported");if(!(e=this._ua.normalizeTarget(e)))throw new TypeError("Invalid target: "+i);for(r in this._sessionTimers.enabled&&l.isDecimal(t.sessionTimersExpires)&&(t.sessionTimersExpires>=s.MIN_SESSION_EXPIRES?this._sessionTimers.defaultExpires=t.sessionTimersExpires:this._sessionTimers.defaultExpires=s.SESSION_EXPIRES),o)Object.prototype.hasOwnProperty.call(o,r)&&this.on(r,o[r]);this._from_tag=l.newTag();i=t.anonymous||!1;var m={from_tag:this._from_tag};this._contact=this._ua.contact.toString({anonymous:i,outbound:!0}),i?(m.from_display_name="Anonymous",m.from_uri=new y("sip","anonymous","anonymous.invalid"),u.push("P-Preferred-Identity: "+this._ua.configuration.uri.toString()),u.push("Privacy: id")):t.fromUserName&&(m.from_uri=new y("sip",t.fromUserName,this._ua.configuration.uri.host),u.push("P-Preferred-Identity: "+this._ua.configuration.uri.toString())),t.fromDisplayName&&(m.from_display_name=t.fromDisplayName),u.push("Contact: "+this._contact),u.push("Content-Type: application/sdp"),this._sessionTimers.enabled&&u.push("Session-Expires: "+this._sessionTimers.defaultExpires+(this._ua.configuration.session_timers_force_refresher?";refresher=uac":"")),this._request=new h.InitialOutgoingInviteRequest(e,this._ua,m,u),this._id=this._request.call_id+this._from_tag,this._createRTCConnection(f,p),this._direction="outgoing",this._local_identity=this._request.from,this._remote_identity=this._request.to,n&&n(this),this._newRTCSession("local",this._request),this._sendInitialRequest(c,v,d)}init_incoming(e,t){var n;b.debug("init_incoming()");var r=e.hasHeader("Content-Type")?e.getHeader("Content-Type").toLowerCase():void 0;e.body&&"application/sdp"!==r?e.reply(415):(this._status=w.STATUS_INVITE_RECEIVED,this._from_tag=e.from_tag,this._id=e.call_id+this._from_tag,this._request=e,this._contact=this._ua.contact.toString(),e.hasHeader("expires")&&(n=1e3*e.getHeader("expires")),e.to_tag=l.newTag(),this._createDialog(e,"UAS",!0)?(e.body?this._late_sdp=!1:this._late_sdp=!0,this._status=w.STATUS_WAITING_FOR_ANSWER,this._timers.userNoAnswerTimer=setTimeout(()=>{e.reply(408),this._failed("local",null,s.causes.NO_ANSWER)},this._ua.configuration.no_answer_timeout),n&&(this._timers.expiresTimer=setTimeout(()=>{this._status===w.STATUS_WAITING_FOR_ANSWER&&(e.reply(487),this._failed("system",null,s.causes.EXPIRES))},n)),this._direction="incoming",this._local_identity=e.to,this._remote_identity=e.from,t&&t(this),this._newRTCSession("remote",e),this._status!==w.STATUS_TERMINATED&&(e.reply(180,null,["Contact: "+this._contact]),this._progress("local",null))):e.reply(500,"Missing Contact header field"))}answer(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){b.debug("answer()");var n=e._request,r=l.cloneArray(t.extraHeaders),i=l.cloneObject(t.mediaConstraints),o=t.mediaStream||null,c=l.cloneObject(t.pcConfig,{iceServers:[]}),d=t.rtcConstraints||null,h=t.rtcAnswerConstraints||null,f=l.cloneObject(t.rtcOfferConstraints),p=!1,v=!1,m=!1,g=!1;if(e._rtcAnswerConstraints=h,e._rtcOfferConstraints=t.rtcOfferConstraints||null,e._data=t.data||e._data,"incoming"!==e._direction)throw new a.NotSupportedError('"answer" not supported for outgoing RTCSession');if(e._status!==w.STATUS_WAITING_FOR_ANSWER)throw new a.InvalidStateError(e._status);if(e._sessionTimers.enabled&&l.isDecimal(t.sessionTimersExpires)&&(t.sessionTimersExpires>=s.MIN_SESSION_EXPIRES?e._sessionTimers.defaultExpires=t.sessionTimersExpires:e._sessionTimers.defaultExpires=s.SESSION_EXPIRES),e._status=w.STATUS_ANSWERED,e._createDialog(n,"UAS")){clearTimeout(e._timers.userNoAnswerTimer),r.unshift("Contact: "+e._contact);var _;t=n.parseSDP();Array.isArray(t.media)||(t.media=[t.media]);var y,T=u(t.media);try{for(T.s();!(y=T.n()).done;)_=y.value,"audio"===_.type&&(p=!0,_.direction&&"sendrecv"!==_.direction||(m=!0)),"video"===_.type&&(v=!0,_.direction&&"sendrecv"!==_.direction||(g=!0))}catch(O){T.e(O)}finally{T.f()}if(o&&!1===i.audio){var S,C=u(o.getAudioTracks());try{for(C.s();!(S=C.n()).done;){var E=S.value;o.removeTrack(E)}}catch(O){C.e(O)}finally{C.f()}}if(o&&!1===i.video){var A,x=u(o.getVideoTracks());try{for(x.s();!(A=x.n()).done;){var R=A.value;o.removeTrack(R)}}catch(O){x.e(O)}finally{x.f()}}o||void 0!==i.audio||(i.audio=m),o||void 0!==i.video||(i.video=g),o||p||f.offerToReceiveAudio||(i.audio=!1),o||v||f.offerToReceiveVideo||(i.video=!1),e._createRTCConnection(c,d),Promise.resolve().then(()=>o||(i.audio||i.video?(e._localMediaStreamLocallyGenerated=!0,navigator.mediaDevices.getUserMedia(i).catch(t=>{if(e._status===w.STATUS_TERMINATED)throw new Error("terminated");throw n.reply(480),e._failed("local",null,s.causes.USER_DENIED_MEDIA_ACCESS),b.warn('emit "getusermediafailed" [error:%o]',t),e.emit("getusermediafailed",t),new Error("getUserMedia() failed")})):void 0)).then(t=>{if(e._status===w.STATUS_TERMINATED)throw new Error("terminated");(e._localMediaStream=t)&&t.getTracks().forEach(n=>{e._connection.addTrack(n,t)})}).then(()=>{if(!e._late_sdp){var t={originator:"remote",type:"offer",sdp:n.body};b.debug('emit "sdp"'),e.emit("sdp",t);var r=new RTCSessionDescription({type:"offer",sdp:t.sdp});return e._connectionPromiseQueue=e._connectionPromiseQueue.then(()=>e._connection.setRemoteDescription(r)).catch(t=>{throw n.reply(488),e._failed("system",null,s.causes.WEBRTC_ERROR),b.warn('emit "peerconnection:setremotedescriptionfailed" [error:%o]',t),e.emit("peerconnection:setremotedescriptionfailed",t),new Error("peerconnection.setRemoteDescription() failed")}),e._connectionPromiseQueue}}).then(()=>{if(e._status===w.STATUS_TERMINATED)throw new Error("terminated");return e._connecting(n),(e._late_sdp?e._createLocalDescription("offer",e._rtcOfferConstraints):e._createLocalDescription("answer",h)).catch(()=>{throw n.reply(500),new Error("_createLocalDescription() failed")})}).then(t=>{if(e._status===w.STATUS_TERMINATED)throw new Error("terminated");e._handleSessionTimersInIncomingRequest(n,r),n.reply(200,null,r,t,()=>{e._status=w.STATUS_WAITING_FOR_ACK,e._setInvite2xxTimer(n,t),e._setACKTimer(),e._accepted("local")},()=>{e._failed("system",null,s.causes.CONNECTION_ERROR)})}).catch(t=>{e._status!==w.STATUS_TERMINATED&&b.warn(t)})}else n.reply(500,"Error creating dialog")}(t)}terminate(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};b.debug("terminate()");var t,n=e.cause||s.causes.BYE,r=l.cloneArray(e.extraHeaders),i=e.body,o=e.status_code,u=e.reason_phrase;if(this._status===w.STATUS_TERMINATED)throw new a.InvalidStateError(this._status);switch(this._status){case w.STATUS_NULL:case w.STATUS_INVITE_SENT:case w.STATUS_1XX_RECEIVED:if(b.debug("canceling session"),o&&(o<200||700<=o))throw new TypeError("Invalid status_code: "+o);o&&(u=u||s.REASON_PHRASE[o]||"",t=`SIP ;cause=${o} ;text="${u}"`),this._status===w.STATUS_NULL||this._status===w.STATUS_INVITE_SENT?(this._is_canceled=!0,this._cancel_reason=t):this._status===w.STATUS_1XX_RECEIVED&&this._request.cancel(t),this._status=w.STATUS_CANCELED,this._failed("local",null,s.causes.CANCELED);break;case w.STATUS_WAITING_FOR_ANSWER:case w.STATUS_ANSWERED:if(b.debug("rejecting session"),(o=o||480)<300||700<=o)throw new TypeError("Invalid status_code: "+o);this._request.reply(o,u,r,i),this._failed("local",null,s.causes.REJECTED);break;case w.STATUS_WAITING_FOR_ACK:case w.STATUS_CONFIRMED:if(b.debug("terminating session"),u=e.reason_phrase||s.REASON_PHRASE[o]||"",o&&(o<200||700<=o))throw new TypeError("Invalid status_code: "+o);if(o&&r.push(`Reason: SIP ;cause=${o}; text="${u}"`),this._status===w.STATUS_WAITING_FOR_ACK&&"incoming"===this._direction&&this._request.server_transaction.state!==c.C.STATUS_TERMINATED){var d=this._dialog;this.receiveRequest=e=>{var t=e.method;t===s.ACK&&(this.sendRequest(s.BYE,{extraHeaders:r,body:i}),d.terminate())},this._request.server_transaction.on("stateChanged",()=>{this._request.server_transaction.state===c.C.STATUS_TERMINATED&&(this.sendRequest(s.BYE,{extraHeaders:r,body:i}),d.terminate())}),this._ended("local",null,n),this._dialog=d,this._ua.newDialog(d)}else this.sendRequest(s.BYE,{extraHeaders:r,body:i}),this._ended("local",null,n)}}sendDTMF(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};b.debug("sendDTMF() | tones: %s",e);var n=0,r=t.duration||null,i=t.interToneGap||null,o=t.transportType||s.DTMF_TRANSPORT.INFO;if(void 0===e)throw new TypeError("Not enough arguments");if(this._status!==w.STATUS_CONFIRMED&&this._status!==w.STATUS_WAITING_FOR_ACK&&this._status!==w.STATUS_1XX_RECEIVED)throw new a.InvalidStateError(this._status);if(o!==s.DTMF_TRANSPORT.INFO&&o!==s.DTMF_TRANSPORT.RFC2833)throw new TypeError("invalid transportType: "+o);if(!(e="number"==typeof e?e.toString():e)||"string"!=typeof e||!e.match(/^[0-9A-DR#*,]+$/i))throw new TypeError("Invalid tones: "+e);if(r&&!l.isDecimal(r))throw new TypeError("Invalid tone duration: "+r);if(r=r?r<v.C.MIN_DURATION?(b.debug(`"duration" value is lower than the minimum allowed, setting it to ${v.C.MIN_DURATION} milliseconds`),v.C.MIN_DURATION):r>v.C.MAX_DURATION?(b.debug(`"duration" value is greater than the maximum allowed, setting it to ${v.C.MAX_DURATION} milliseconds`),v.C.MAX_DURATION):Math.abs(r):v.C.DEFAULT_DURATION,t.duration=r,i&&!l.isDecimal(i))throw new TypeError("Invalid interToneGap: "+i);function u(){var e,o,s;this._status===w.STATUS_TERMINATED||!this._tones||n>=this._tones.length?this._tones=null:(o=this._tones[n],n+=1,e=","===o?2e3:(s=new v(this),t.eventHandlers={onFailed:()=>{this._tones=null}},s.send(o,t),r+i),setTimeout(u.bind(this),e))}i=i?i<v.C.MIN_INTER_TONE_GAP?(b.debug(`"interToneGap" value is lower than the minimum allowed, setting it to ${v.C.MIN_INTER_TONE_GAP} milliseconds`),v.C.MIN_INTER_TONE_GAP):Math.abs(i):v.C.DEFAULT_INTER_TONE_GAP,o===s.DTMF_TRANSPORT.RFC2833?(o=this._getDTMFRTPSender())&&(e=o.toneBuffer+e,o.insertDTMF(e,r,i)):this._tones?this._tones+=e:(this._tones=e,u.call(this))}sendInfo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(b.debug("sendInfo()"),this._status!==w.STATUS_CONFIRMED&&this._status!==w.STATUS_WAITING_FOR_ACK&&this._status!==w.STATUS_1XX_RECEIVED)throw new a.InvalidStateError(this._status);new m(this).send(e,t,n)}mute(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{audio:!0,video:!1};b.debug("mute()");var t=!1,n=!1;!1===this._audioMuted&&e.audio&&(t=!0,this._audioMuted=!0,this._toggleMuteAudio(!0)),!1===this._videoMuted&&e.video&&(n=!0,this._videoMuted=!0,this._toggleMuteVideo(!0)),!0!==t&&!0!==n||this._onmute({audio:t,video:n})}unmute(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{audio:!0,video:!0};b.debug("unmute()");var t=!1,n=!1;!0===this._audioMuted&&e.audio&&(t=!0,(this._audioMuted=!1)===this._localHold)&&this._toggleMuteAudio(!1),!0===this._videoMuted&&e.video&&(n=!0,(this._videoMuted=!1)===this._localHold)&&this._toggleMuteVideo(!1),!0!==t&&!0!==n||this._onunmute({audio:t,video:n})}hold(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(b.debug("hold()"),this._status!==w.STATUS_WAITING_FOR_ACK&&this._status!==w.STATUS_CONFIRMED)return!1;if(!0===this._localHold)return!1;if(!this._isReadyToReOffer())return!1;this._localHold=!0,this._onhold("local");var n={succeeded:()=>{t&&t()},failed:()=>{this.terminate({cause:s.causes.WEBRTC_ERROR,status_code:500,reason_phrase:"Hold Failed"})}};return e.useUpdate?this._sendUpdate({sdpOffer:!0,eventHandlers:n,extraHeaders:e.extraHeaders}):this._sendReinvite({eventHandlers:n,extraHeaders:e.extraHeaders}),!0}unhold(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(b.debug("unhold()"),this._status!==w.STATUS_WAITING_FOR_ACK&&this._status!==w.STATUS_CONFIRMED)return!1;if(!1===this._localHold)return!1;if(!this._isReadyToReOffer())return!1;this._localHold=!1,this._onunhold("local");var n={succeeded:()=>{t&&t()},failed:()=>{this.terminate({cause:s.causes.WEBRTC_ERROR,status_code:500,reason_phrase:"Unhold Failed"})}};return e.useUpdate?this._sendUpdate({sdpOffer:!0,eventHandlers:n,extraHeaders:e.extraHeaders}):this._sendReinvite({eventHandlers:n,extraHeaders:e.extraHeaders}),!0}renegotiate(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;b.debug("renegotiate()");var n,r=e.rtcOfferConstraints||null;return!(this._status!==w.STATUS_WAITING_FOR_ACK&&this._status!==w.STATUS_CONFIRMED||!this._isReadyToReOffer()||(n={succeeded:()=>{t&&t()},failed:()=>{this.terminate({cause:s.causes.WEBRTC_ERROR,status_code:500,reason_phrase:"Media Renegotiation Failed"})}},this._setLocalMediaStatus(),e.useUpdate?this._sendUpdate({sdpOffer:!0,eventHandlers:n,rtcOfferConstraints:r,extraHeaders:e.extraHeaders}):this._sendReinvite({eventHandlers:n,rtcOfferConstraints:r,extraHeaders:e.extraHeaders}),0))}refer(e,t){b.debug("refer()");var n=e;if(this._status!==w.STATUS_WAITING_FOR_ACK&&this._status!==w.STATUS_CONFIRMED)return!1;if(!(e=this._ua.normalizeTarget(e)))throw new TypeError("Invalid target: "+n);n=new _(this),n.sendRefer(e,t);var r=n.id;return(this._referSubscribers[r]=n).on("requestFailed",()=>{delete this._referSubscribers[r]}),n.on("accepted",()=>{delete this._referSubscribers[r]}),n.on("failed",()=>{delete this._referSubscribers[r]}),n}sendRequest(e,t){return b.debug("sendRequest()"),this._dialog.sendRequest(e,t)}receiveRequest(e){if(b.debug("receiveRequest()"),e.method===s.CANCEL)this._status!==w.STATUS_WAITING_FOR_ANSWER&&this._status!==w.STATUS_ANSWERED||(this._status=w.STATUS_CANCELED,this._request.reply(487),this._failed("remote",e,s.causes.CANCELED));else switch(e.method){case s.ACK:if(this._status===w.STATUS_WAITING_FOR_ACK)if(this._status=w.STATUS_CONFIRMED,clearTimeout(this._timers.ackTimer),clearTimeout(this._timers.invite2xxTimer),this._late_sdp){if(!e.body){this.terminate({cause:s.causes.MISSING_SDP,status_code:400});break}var t={originator:"remote",type:"answer",sdp:e.body};b.debug('emit "sdp"'),this.emit("sdp",t);var n=new RTCSessionDescription({type:"answer",sdp:t.sdp});this._connectionPromiseQueue=this._connectionPromiseQueue.then(()=>this._connection.setRemoteDescription(n)).then(()=>{this._is_confirmed||this._confirmed("remote",e)}).catch(e=>{this.terminate({cause:s.causes.BAD_MEDIA_DESCRIPTION,status_code:488}),b.warn('emit "peerconnection:setremotedescriptionfailed" [error:%o]',e),this.emit("peerconnection:setremotedescriptionfailed",e)})}else this._is_confirmed||this._confirmed("remote",e);break;case s.BYE:this._status===w.STATUS_CONFIRMED||this._status===w.STATUS_WAITING_FOR_ACK?(e.reply(200),this._ended("remote",e,s.causes.BYE)):this._status===w.STATUS_INVITE_RECEIVED||this._status===w.STATUS_WAITING_FOR_ANSWER?(e.reply(200),this._request.reply(487,"BYE Received"),this._ended("remote",e,s.causes.BYE)):e.reply(403,"Wrong Status");break;case s.INVITE:this._status===w.STATUS_CONFIRMED?e.hasHeader("replaces")?this._receiveReplaces(e):this._receiveReinvite(e):e.reply(403,"Wrong Status");break;case s.INFO:this._status===w.STATUS_1XX_RECEIVED||this._status===w.STATUS_WAITING_FOR_ANSWER||this._status===w.STATUS_ANSWERED||this._status===w.STATUS_WAITING_FOR_ACK||this._status===w.STATUS_CONFIRMED?(t=e.hasHeader("Content-Type")?e.getHeader("Content-Type").toLowerCase():void 0)&&t.match(/^application\/dtmf-relay/i)?new v(this).init_incoming(e):void 0!==t?new m(this).init_incoming(e):e.reply(415):e.reply(403,"Wrong Status");break;case s.UPDATE:this._status===w.STATUS_CONFIRMED?this._receiveUpdate(e):e.reply(403,"Wrong Status");break;case s.REFER:this._status===w.STATUS_CONFIRMED?this._receiveRefer(e):e.reply(403,"Wrong Status");break;case s.NOTIFY:this._status===w.STATUS_CONFIRMED?this._receiveNotify(e):e.reply(403,"Wrong Status");break;default:e.reply(501)}}onTransportError(){b.warn("onTransportError()"),this._status!==w.STATUS_TERMINATED&&this.terminate({status_code:500,reason_phrase:s.causes.CONNECTION_ERROR,cause:s.causes.CONNECTION_ERROR})}onRequestTimeout(){b.warn("onRequestTimeout()"),this._status!==w.STATUS_TERMINATED&&this.terminate({status_code:408,reason_phrase:s.causes.REQUEST_TIMEOUT,cause:s.causes.REQUEST_TIMEOUT})}onDialogError(){b.warn("onDialogError()"),this._status!==w.STATUS_TERMINATED&&this.terminate({status_code:500,reason_phrase:s.causes.DIALOG_ERROR,cause:s.causes.DIALOG_ERROR})}newDTMF(e){b.debug("newDTMF()"),this.emit("newDTMF",e)}newInfo(e){b.debug("newInfo()"),this.emit("newInfo",e)}_isReadyToReOffer(){return this._rtcReady?this._dialog?!0!==this._dialog.uac_pending_reply&&!0!==this._dialog.uas_pending_reply||(b.debug("_isReadyToReOffer() | there is another INVITE/UPDATE transaction in progress"),!1):(b.debug("_isReadyToReOffer() | session not established yet"),!1):(b.debug("_isReadyToReOffer() | internal WebRTC status not ready"),!1)}_close(){if(b.debug("close()"),this._localMediaStream&&this._localMediaStreamLocallyGenerated&&(b.debug("close() | closing local MediaStream"),l.closeMediaStream(this._localMediaStream)),this._status!==w.STATUS_TERMINATED){if(this._status=w.STATUS_TERMINATED,this._connection)try{this._connection.close()}catch(e){b.warn("close() | error closing the RTCPeerConnection: %o",e)}for(var e in this._timers)Object.prototype.hasOwnProperty.call(this._timers,e)&&clearTimeout(this._timers[e]);for(var t in clearTimeout(this._sessionTimers.timer),this._dialog&&(this._dialog.terminate(),delete this._dialog),this._earlyDialogs)Object.prototype.hasOwnProperty.call(this._earlyDialogs,t)&&(this._earlyDialogs[t].terminate(),delete this._earlyDialogs[t]);for(var n in this._referSubscribers)Object.prototype.hasOwnProperty.call(this._referSubscribers,n)&&delete this._referSubscribers[n];this._ua.destroyRTCSession(this)}}_setInvite2xxTimer(e,t){var n=d.T1;function r(){this._status===w.STATUS_WAITING_FOR_ACK&&(e.reply(200,null,["Contact: "+this._contact],t),n<d.T2&&(n*=2)>d.T2&&(n=d.T2),this._timers.invite2xxTimer=setTimeout(r.bind(this),n))}this._timers.invite2xxTimer=setTimeout(r.bind(this),n)}_setACKTimer(){this._timers.ackTimer=setTimeout(()=>{this._status===w.STATUS_WAITING_FOR_ACK&&(b.debug("no ACK received, terminating the session"),clearTimeout(this._timers.invite2xxTimer),this.sendRequest(s.BYE),this._ended("remote",null,s.causes.NO_ACK))},d.TIMER_H)}_createRTCConnection(e,t){this._connection=new RTCPeerConnection(e,t),this._connection.addEventListener("iceconnectionstatechange",()=>{"failed"===this._connection.iceConnectionState&&this.terminate({cause:s.causes.RTP_TIMEOUT,status_code:408,reason_phrase:s.causes.RTP_TIMEOUT})}),b.debug('emit "peerconnection"'),this.emit("peerconnection",{peerconnection:this._connection})}_createLocalDescription(e,t){if(b.debug("createLocalDescription()"),"offer"!==e&&"answer"!==e)throw new Error(`createLocalDescription() | invalid type "${e}"`);var n=this._connection;return this._rtcReady=!1,Promise.resolve().then(()=>"offer"===e?n.createOffer(t).catch(e=>(b.warn('emit "peerconnection:createofferfailed" [error:%o]',e),this.emit("peerconnection:createofferfailed",e),Promise.reject(e))):n.createAnswer(t).catch(e=>(b.warn('emit "peerconnection:createanswerfailed" [error:%o]',e),this.emit("peerconnection:createanswerfailed",e),Promise.reject(e)))).then(e=>n.setLocalDescription(e).catch(e=>(this._rtcReady=!0,b.warn('emit "peerconnection:setlocaldescriptionfailed" [error:%o]',e),this.emit("peerconnection:setlocaldescriptionfailed",e),Promise.reject(e)))).then(()=>{var r=t&&t.iceRestart;return"complete"===n.iceGatheringState&&!r||"gathering"===n.iceGatheringState&&this._iceReady?(this._rtcReady=!0,r={originator:"local",type:e,sdp:n.localDescription.sdp},b.debug('emit "sdp"'),this.emit("sdp",r),Promise.resolve(r.sdp)):new Promise(t=>{var r,i,o=!1,s=(this._iceReady=!1,()=>{var s;o||(n.removeEventListener("icecandidate",r),n.removeEventListener("icegatheringstatechange",i),o=!0,this._rtcReady=!0,this._iceReady=!0,s={originator:"local",type:e,sdp:n.localDescription.sdp},b.debug('emit "sdp"'),this.emit("sdp",s),t(s.sdp))});n.addEventListener("icecandidate",r=e=>{e=e.candidate,e?this.emit("icecandidate",{candidate:e,ready:s}):s()}),n.addEventListener("icegatheringstatechange",i=()=>{"complete"===n.iceGatheringState&&s()})})})}_createDialog(e,t,n){var r="UAS"===t?e.to_tag:e.from_tag,i="UAS"===t?e.from_tag:e.to_tag,o=(r=e.call_id+r+i,this._earlyDialogs[r]);return n?!!o||((o=new f(this,e,t,f.C.STATUS_EARLY)).error?(b.debug(o.error),this._failed("remote",e,s.causes.INTERNAL_ERROR),!1):(this._earlyDialogs[r]=o,!0)):(this._from_tag=e.from_tag,this._to_tag=e.to_tag,o?(o.update(e,t),this._dialog=o,delete this._earlyDialogs[r],!0):(i=new f(this,e,t)).error?(b.debug(i.error),this._failed("remote",e,s.causes.INTERNAL_ERROR),!1):(this._dialog=i,!0))}_receiveReinvite(e){b.debug("receiveReinvite()");var t=e.hasHeader("Content-Type")?e.getHeader("Content-Type").toLowerCase():void 0,n={request:e,callback:void 0,reject:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(n){r=!0;var i=n.status_code||403,o=n.reason_phrase||"";n=l.cloneArray(n.extraHeaders);if(t._status!==w.STATUS_CONFIRMED)return!1;if(i<300||700<=i)throw new TypeError("Invalid status_code: "+i);e.reply(i,o,n)}(n)}.bind(this)},r=!1;function i(t){var r=["Contact: "+this._contact];this._handleSessionTimersInIncomingRequest(e,r),this._late_sdp&&(t=this._mangleOffer(t)),e.reply(200,null,r,t,()=>{this._status=w.STATUS_WAITING_FOR_ACK,this._setInvite2xxTimer(e,t),this._setACKTimer()}),"function"==typeof n.callback&&n.callback()}this.emit("reinvite",n),r||(this._late_sdp=!1,e.body?"application/sdp"!==t?(b.debug("invalid Content-Type"),e.reply(415)):this._processInDialogSdpOffer(e).then(e=>{this._status!==w.STATUS_TERMINATED&&i.call(this,e)}).catch(e=>{b.warn(e)}):(this._late_sdp=!0,this._remoteHold&&(this._remoteHold=!1,this._onunhold("remote")),this._connectionPromiseQueue=this._connectionPromiseQueue.then(()=>this._createLocalDescription("offer",this._rtcOfferConstraints)).then(e=>{i.call(this,e)}).catch(()=>{e.reply(500)})))}_receiveUpdate(e){b.debug("receiveUpdate()");var t=e.hasHeader("Content-Type")?e.getHeader("Content-Type").toLowerCase():void 0,n={request:e,callback:void 0,reject:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(n){r=!0;var i=n.status_code||403,o=n.reason_phrase||"";n=l.cloneArray(n.extraHeaders);if(t._status!==w.STATUS_CONFIRMED)return!1;if(i<300||700<=i)throw new TypeError("Invalid status_code: "+i);e.reply(i,o,n)}(n)}.bind(this)},r=!1;function i(t){var r=["Contact: "+this._contact];this._handleSessionTimersInIncomingRequest(e,r),e.reply(200,null,r,t),"function"==typeof n.callback&&n.callback()}this.emit("update",n),r||(e.body?"application/sdp"!==t?(b.debug("invalid Content-Type"),e.reply(415)):this._processInDialogSdpOffer(e).then(e=>{this._status!==w.STATUS_TERMINATED&&i.call(this,e)}).catch(e=>{b.warn(e)}):i.call(this,null))}_processInDialogSdpOffer(e){b.debug("_processInDialogSdpOffer()");var t,n,r=e.parseSDP(),i=!1,o=u(r.media);try{for(o.s();!(n=o.n()).done;)if(t=n.value,-1!==T.indexOf(t.type)){var s=t.direction||r.direction||"sendrecv";if("sendonly"!==s&&"inactive"!==s){i=!1;break}i=!0}}catch(l){o.e(l)}finally{o.f()}var a={originator:"remote",type:"offer",sdp:e.body};b.debug('emit "sdp"'),this.emit("sdp",a);var c=new RTCSessionDescription({type:"offer",sdp:a.sdp});return this._connectionPromiseQueue=this._connectionPromiseQueue.then(()=>{if(this._status===w.STATUS_TERMINATED)throw new Error("terminated");return this._connection.setRemoteDescription(c).catch(t=>{throw e.reply(488),b.warn('emit "peerconnection:setremotedescriptionfailed" [error:%o]',t),this.emit("peerconnection:setremotedescriptionfailed",t),t})}).then(()=>{if(this._status===w.STATUS_TERMINATED)throw new Error("terminated");!0===this._remoteHold&&!1===i?(this._remoteHold=!1,this._onunhold("remote")):!1===this._remoteHold&&!0===i&&(this._remoteHold=!0,this._onhold("remote"))}).then(()=>{if(this._status===w.STATUS_TERMINATED)throw new Error("terminated");return this._createLocalDescription("answer",this._rtcAnswerConstraints).catch(t=>{throw e.reply(500),b.warn('emit "peerconnection:createtelocaldescriptionfailed" [error:%o]',t),t})}).catch(e=>{b.warn("_processInDialogSdpOffer() failed [error: %o]",e)}),this._connectionPromiseQueue}_receiveRefer(t){if(b.debug("receiveRefer()"),t.refer_to)if(t.refer_to.uri.scheme!==s.SIP)b.debug("Refer-To header field points to a non-SIP URI scheme"),t.reply(416);else{t.reply(202);var n=new g(this,t.cseq);b.debug('emit "refer"'),this.emit("refer",{request:t,accept:(r,i)=>{(function(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r="function"==typeof r?r:null,this._status!==w.STATUS_WAITING_FOR_ACK&&this._status!==w.STATUS_CONFIRMED)return!1;var o,s=new e(this._ua);s.on("progress",e=>{var t=e.response;n.notify(t.status_code,t.reason_phrase)}),s.on("accepted",e=>{var t=e.response;n.notify(t.status_code,t.reason_phrase)}),s.on("_failed",e=>{var t=e.message,r=e.cause;t?n.notify(t.status_code,t.reason_phrase):n.notify(487,r)}),t.refer_to.uri.hasHeader("replaces")&&(o=decodeURIComponent(t.refer_to.uri.getHeader("replaces")),i.extraHeaders=l.cloneArray(i.extraHeaders),i.extraHeaders.push("Replaces: "+o)),s.connect(t.refer_to.uri.toAor(),i,r)}).call(this,r,i)},reject:()=>{(function(){n.notify(603)}).call(this)}})}else b.debug("no Refer-To header field present in REFER"),t.reply(400)}_receiveNotify(e){switch(b.debug("receiveNotify()"),e.event||e.reply(400),e.event.event){case"refer":var t,n;if(e.event.params&&e.event.params.id)t=e.event.params.id,n=this._referSubscribers[t];else{if(1!==Object.keys(this._referSubscribers).length)return void e.reply(400,"Missing event id parameter");n=this._referSubscribers[Object.keys(this._referSubscribers)[0]]}if(!n)return void e.reply(481,"Subscription does not exist");n.receiveNotify(e),e.reply(200);break;default:e.reply(489)}}_receiveReplaces(t){b.debug("receiveReplaces()"),this.emit("replaces",{request:t,accept:n=>{(function(n){if(this._status!==w.STATUS_WAITING_FOR_ACK&&this._status!==w.STATUS_CONFIRMED)return!1;var r=new e(this._ua);r.on("confirmed",()=>{this.terminate()}),r.init_incoming(t,n)}).call(this,n)},reject:()=>{(function(){b.debug("Replaced INVITE rejected by the user"),t.reply(486)}).call(this)}})}_sendInitialRequest(e,t,n){var r=new p(this._ua,this._request,{onRequestTimeout:()=>{this.onRequestTimeout()},onTransportError:()=>{this.onTransportError()},onAuthenticated:e=>{this._request=e},onReceiveResponse:e=>{this._receiveInviteResponse(e)}});Promise.resolve().then(()=>n||(e.audio||e.video?(this._localMediaStreamLocallyGenerated=!0,navigator.mediaDevices.getUserMedia(e).catch(e=>{if(this._status===w.STATUS_TERMINATED)throw new Error("terminated");throw this._failed("local",null,s.causes.USER_DENIED_MEDIA_ACCESS),b.warn('emit "getusermediafailed" [error:%o]',e),this.emit("getusermediafailed",e),e})):void 0)).then(e=>{if(this._status===w.STATUS_TERMINATED)throw new Error("terminated");return(this._localMediaStream=e)&&e.getTracks().forEach(t=>{this._connection.addTrack(t,e)}),this._connecting(this._request),this._createLocalDescription("offer",t).catch(e=>{throw this._failed("local",null,s.causes.WEBRTC_ERROR),e})}).then(e=>{if(this._is_canceled||this._status===w.STATUS_TERMINATED)throw new Error("terminated");this._request.body=e,this._status=w.STATUS_INVITE_SENT,b.debug('emit "sending" [request:%o]',this._request),this.emit("sending",{request:this._request}),r.send()}).catch(e=>{this._status!==w.STATUS_TERMINATED&&b.warn(e)})}_getDTMFRTPSender(){var e=this._connection.getSenders().find(e=>e.track&&"audio"===e.track.kind);if(e&&e.dtmf)return e.dtmf;b.warn("sendDTMF() | no local audio track to send DTMF with")}_receiveInviteResponse(e){var t;if(b.debug("receiveInviteResponse()"),this._dialog&&200<=e.status_code&&e.status_code<=299)return this._dialog.id.call_id===e.call_id&&this._dialog.id.local_tag===e.from_tag&&this._dialog.id.remote_tag===e.to_tag?void this.sendRequest(s.ACK):void 0!==(t=new f(this,e,"UAC")).error?void b.debug(t.error):(this.sendRequest(s.ACK),void this.sendRequest(s.BYE));if(this._is_canceled)100<=e.status_code&&e.status_code<200?this._request.cancel(this._cancel_reason):200<=e.status_code&&e.status_code<299&&this._acceptAndTerminate(e);else if(this._status===w.STATUS_INVITE_SENT||this._status===w.STATUS_1XX_RECEIVED)switch(!0){case/^100$/.test(e.status_code):this._status=w.STATUS_1XX_RECEIVED;break;case/^1[0-9]{2}$/.test(e.status_code):if(!e.to_tag){b.debug("1xx response received without to tag");break}if(e.hasHeader("contact")&&!this._createDialog(e,"UAC",!0))break;if(this._status=w.STATUS_1XX_RECEIVED,!e.body){this._progress("remote",e);break}var n={originator:"remote",type:"answer",sdp:e.body};b.debug('emit "sdp"'),this.emit("sdp",n);var r=new RTCSessionDescription({type:"answer",sdp:n.sdp});this._connectionPromiseQueue=this._connectionPromiseQueue.then(()=>this._connection.setRemoteDescription(r)).then(()=>this._progress("remote",e)).catch(e=>{b.warn('emit "peerconnection:setremotedescriptionfailed" [error:%o]',e),this.emit("peerconnection:setremotedescriptionfailed",e)});break;case/^2[0-9]{2}$/.test(e.status_code):if(this._status=w.STATUS_CONFIRMED,!e.body){this._acceptAndTerminate(e,400,s.causes.MISSING_SDP),this._failed("remote",e,s.causes.BAD_MEDIA_DESCRIPTION);break}if(!this._createDialog(e,"UAC"))break;n={originator:"remote",type:"answer",sdp:e.body},b.debug('emit "sdp"'),this.emit("sdp",n);var i=new RTCSessionDescription({type:"answer",sdp:n.sdp});this._connectionPromiseQueue=this._connectionPromiseQueue.then(()=>{if("stable"===this._connection.signalingState)return this._connection.createOffer(this._rtcOfferConstraints).then(e=>this._connection.setLocalDescription(e)).catch(t=>{this._acceptAndTerminate(e,500,t.toString()),this._failed("local",e,s.causes.WEBRTC_ERROR)})}).then(()=>{this._connection.setRemoteDescription(i).then(()=>{this._handleSessionTimersInIncomingResponse(e),this._accepted("remote",e),this.sendRequest(s.ACK),this._confirmed("local",null)}).catch(t=>{this._acceptAndTerminate(e,488,"Not Acceptable Here"),this._failed("remote",e,s.causes.BAD_MEDIA_DESCRIPTION),b.warn('emit "peerconnection:setremotedescriptionfailed" [error:%o]',t),this.emit("peerconnection:setremotedescriptionfailed",t)})});break;default:n=l.sipErrorCause(e.status_code),this._failed("remote",e,n)}}_sendReinvite(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};b.debug("sendReinvite()");var t=l.cloneArray(e.extraHeaders),n=l.cloneObject(e.eventHandlers),r=e.rtcOfferConstraints||this._rtcOfferConstraints||null,i=!1;function o(e){n.failed&&n.failed(e)}t.push("Contact: "+this._contact),t.push("Content-Type: application/sdp"),this._sessionTimers.running&&t.push(`Session-Expires: ${this._sessionTimers.currentExpires};refresher=`+(this._sessionTimers.refresher?"uac":"uas")),this._connectionPromiseQueue=this._connectionPromiseQueue.then(()=>this._createLocalDescription("offer",r)).then(e=>{var r={originator:"local",type:"offer",sdp:e=this._mangleOffer(e)};b.debug('emit "sdp"'),this.emit("sdp",r),this.sendRequest(s.INVITE,{extraHeaders:t,body:e,eventHandlers:{onSuccessResponse:e=>{(function(e){if(this._status!==w.STATUS_TERMINATED&&(this.sendRequest(s.ACK),!i))if(this._handleSessionTimersInIncomingResponse(e),e.body)if(e.hasHeader("Content-Type")&&"application/sdp"===e.getHeader("Content-Type").toLowerCase()){var t={originator:"remote",type:"answer",sdp:e.body};b.debug('emit "sdp"'),this.emit("sdp",t);var r=new RTCSessionDescription({type:"answer",sdp:t.sdp});this._connectionPromiseQueue=this._connectionPromiseQueue.then(()=>this._connection.setRemoteDescription(r)).then(()=>{n.succeeded&&n.succeeded(e)}).catch(e=>{o.call(this),b.warn('emit "peerconnection:setremotedescriptionfailed" [error:%o]',e),this.emit("peerconnection:setremotedescriptionfailed",e)})}else o.call(this);else o.call(this)}).call(this,e),i=!0},onErrorResponse:e=>{o.call(this,e)},onTransportError:()=>{this.onTransportError()},onRequestTimeout:()=>{this.onRequestTimeout()},onDialogError:()=>{this.onDialogError()}}})}).catch(()=>{o()})}_sendUpdate(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};b.debug("sendUpdate()");var t=l.cloneArray(e.extraHeaders),n=l.cloneObject(e.eventHandlers),r=e.rtcOfferConstraints||this._rtcOfferConstraints||null,i=e.sdpOffer||!1,o=!1;function a(e){if(this._status!==w.STATUS_TERMINATED&&!o)if(this._handleSessionTimersInIncomingResponse(e),i)if(e.body)if(e.hasHeader("Content-Type")&&"application/sdp"===e.getHeader("Content-Type").toLowerCase()){var t={originator:"remote",type:"answer",sdp:e.body};b.debug('emit "sdp"'),this.emit("sdp",t);var r=new RTCSessionDescription({type:"answer",sdp:t.sdp});this._connectionPromiseQueue=this._connectionPromiseQueue.then(()=>this._connection.setRemoteDescription(r)).then(()=>{n.succeeded&&n.succeeded(e)}).catch(e=>{u.call(this),b.warn('emit "peerconnection:setremotedescriptionfailed" [error:%o]',e),this.emit("peerconnection:setremotedescriptionfailed",e)})}else u.call(this);else u.call(this);else n.succeeded&&n.succeeded(e)}function u(e){n.failed&&n.failed(e)}t.push("Contact: "+this._contact),this._sessionTimers.running&&t.push(`Session-Expires: ${this._sessionTimers.currentExpires};refresher=`+(this._sessionTimers.refresher?"uac":"uas")),i?(t.push("Content-Type: application/sdp"),this._connectionPromiseQueue=this._connectionPromiseQueue.then(()=>this._createLocalDescription("offer",r)).then(e=>{var n={originator:"local",type:"offer",sdp:e=this._mangleOffer(e)};b.debug('emit "sdp"'),this.emit("sdp",n),this.sendRequest(s.UPDATE,{extraHeaders:t,body:e,eventHandlers:{onSuccessResponse:e=>{a.call(this,e),o=!0},onErrorResponse:e=>{u.call(this,e)},onTransportError:()=>{this.onTransportError()},onRequestTimeout:()=>{this.onRequestTimeout()},onDialogError:()=>{this.onDialogError()}}})}).catch(()=>{u.call(this)})):this.sendRequest(s.UPDATE,{extraHeaders:t,eventHandlers:{onSuccessResponse:e=>{a.call(this,e)},onErrorResponse:e=>{u.call(this,e)},onTransportError:()=>{this.onTransportError()},onRequestTimeout:()=>{this.onRequestTimeout()},onDialogError:()=>{this.onDialogError()}}})}_acceptAndTerminate(e,t,n){b.debug("acceptAndTerminate()");var r=[];t&&(n=n||s.REASON_PHRASE[t]||"",r.push(`Reason: SIP ;cause=${t}; text="${n}"`)),(this._dialog||this._createDialog(e,"UAC"))&&(this.sendRequest(s.ACK),this.sendRequest(s.BYE,{extraHeaders:r})),this._status=w.STATUS_TERMINATED}_mangleOffer(e){if(!this._localHold&&!this._remoteHold)return e;if(e=i.parse(e),this._localHold&&!this._remoteHold){b.debug("mangleOffer() | me on hold, mangling offer");var t,n=u(e.media);try{for(n.s();!(t=n.n()).done;){var r=t.value;-1!==T.indexOf(r.type)&&(r.direction&&"sendrecv"!==r.direction?"recvonly"===r.direction&&(r.direction="inactive"):r.direction="sendonly")}}catch(h){n.e(h)}finally{n.f()}}else if(this._localHold&&this._remoteHold){b.debug("mangleOffer() | both on hold, mangling offer");var o,s=u(e.media);try{for(s.s();!(o=s.n()).done;){var a=o.value;-1!==T.indexOf(a.type)&&(a.direction="inactive")}}catch(h){s.e(h)}finally{s.f()}}else if(this._remoteHold){b.debug("mangleOffer() | remote on hold, mangling offer");var c,l=u(e.media);try{for(l.s();!(c=l.n()).done;){var d=c.value;-1!==T.indexOf(d.type)&&(d.direction&&"sendrecv"!==d.direction?"recvonly"===d.direction&&(d.direction="inactive"):d.direction="recvonly")}}catch(h){l.e(h)}finally{l.f()}}return i.write(e)}_setLocalMediaStatus(){var e=!0,t=!0;(this._localHold||this._remoteHold)&&(e=!1,t=!1),this._audioMuted&&(e=!1),this._videoMuted&&(t=!1),this._toggleMuteAudio(!e),this._toggleMuteVideo(!t)}_handleSessionTimersInIncomingRequest(e,t){var n;this._sessionTimers.enabled&&(n=e.session_expires&&e.session_expires>=s.MIN_SESSION_EXPIRES?(this._sessionTimers.currentExpires=e.session_expires,e.session_expires_refresher||"uas"):(this._sessionTimers.currentExpires=this._sessionTimers.defaultExpires,"uas"),t.push(`Session-Expires: ${this._sessionTimers.currentExpires};refresher=`+n),this._sessionTimers.refresher="uas"===n,this._runSessionTimer())}_handleSessionTimersInIncomingResponse(e){var t;this._sessionTimers.enabled&&(t=e.session_expires&&e.session_expires>=s.MIN_SESSION_EXPIRES?(this._sessionTimers.currentExpires=e.session_expires,e.session_expires_refresher||"uac"):(this._sessionTimers.currentExpires=this._sessionTimers.defaultExpires,"uac"),this._sessionTimers.refresher="uac"===t,this._runSessionTimer())}_runSessionTimer(){var e=this._sessionTimers.currentExpires;this._sessionTimers.running=!0,clearTimeout(this._sessionTimers.timer),this._sessionTimers.refresher?this._sessionTimers.timer=setTimeout(()=>{this._status!==w.STATUS_TERMINATED&&this._isReadyToReOffer()&&(b.debug("runSessionTimer() | sending session refresh request"),this._sessionTimers.refreshMethod===s.UPDATE?this._sendUpdate():this._sendReinvite())},500*e):this._sessionTimers.timer=setTimeout(()=>{this._status!==w.STATUS_TERMINATED&&(b.warn("runSessionTimer() | timer expired, terminating the session"),this.terminate({cause:s.causes.REQUEST_TIMEOUT,status_code:408,reason_phrase:"Session Timer Expired"}))},1100*e)}_toggleMuteAudio(e){var t,n,r=u(this._connection.getSenders().filter(e=>e.track&&"audio"===e.track.kind));try{for(r.s();!(n=r.n()).done;)t=n.value,t.track.enabled=!e}catch(i){r.e(i)}finally{r.f()}}_toggleMuteVideo(e){var t,n,r=u(this._connection.getSenders().filter(e=>e.track&&"video"===e.track.kind));try{for(r.s();!(n=r.n()).done;)t=n.value,t.track.enabled=!e}catch(i){r.e(i)}finally{r.f()}}_newRTCSession(e,t){b.debug("newRTCSession()"),this._ua.newRTCSession(this,{originator:e,session:this,request:t})}_connecting(e){b.debug("session connecting"),b.debug('emit "connecting"'),this.emit("connecting",{request:e})}_progress(e,t){b.debug("session progress"),b.debug('emit "progress"'),this.emit("progress",{originator:e,response:t||null})}_accepted(e,t){b.debug("session accepted"),this._start_time=new Date,b.debug('emit "accepted"'),this.emit("accepted",{originator:e,response:t||null})}_confirmed(e,t){b.debug("session confirmed"),this._is_confirmed=!0,b.debug('emit "confirmed"'),this.emit("confirmed",{originator:e,ack:t||null})}_ended(e,t,n){b.debug("session ended"),this._end_time=new Date,this._close(),b.debug('emit "ended"'),this.emit("ended",{originator:e,message:t||null,cause:n})}_failed(e,t,n){b.debug("session failed"),b.debug('emit "_failed"'),this.emit("_failed",{originator:e,message:t||null,cause:n}),this._close(),b.debug('emit "failed"'),this.emit("failed",{originator:e,message:t||null,cause:n})}_onhold(e){b.debug("session onhold"),this._setLocalMediaStatus(),b.debug('emit "hold"'),this.emit("hold",{originator:e})}_onunhold(e){b.debug("session onunhold"),this._setLocalMediaStatus(),b.debug('emit "unhold"'),this.emit("unhold",{originator:e})}_onmute(e){var t=e.audio,n=e.video;b.debug("session onmute"),this._setLocalMediaStatus(),b.debug('emit "muted"'),this.emit("muted",{audio:t,video:n})}_onunmute(e){var t=e.audio,n=e.video;b.debug("session onunmute"),this._setLocalMediaStatus(),b.debug('emit "unmuted"'),this.emit("unmuted",{audio:t,video:n})}}},2608:function(e,t,n){var r=n(9032).EventEmitter,i=n(5409),o=n(9896),s=n(8239),a=n(7196),u=new i("RTCSession:DTMF"),c={MIN_DURATION:70,MAX_DURATION:6e3,DEFAULT_DURATION:100,MIN_INTER_TONE_GAP:50,DEFAULT_INTER_TONE_GAP:500};e.exports=class extends r{constructor(e){super(),this._session=e,this._direction=null,this._tone=null,this._duration=null,this._request=null}get tone(){return this._tone}get duration(){return this._duration}send(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===e)throw new TypeError("Not enough arguments");if(this._direction="outgoing",this._session.status!==this._session.C.STATUS_CONFIRMED&&this._session.status!==this._session.C.STATUS_WAITING_FOR_ACK)throw new s.InvalidStateError(this._session.status);var n=a.cloneArray(t.extraHeaders);if(this.eventHandlers=a.cloneObject(t.eventHandlers),"string"==typeof e)e=e.toUpperCase();else{if("number"!=typeof e)throw new TypeError("Invalid tone: "+e);e=e.toString()}if(!e.match(/^[0-9A-DR#*]$/))throw new TypeError("Invalid tone: "+e);this._tone=e,this._duration=t.duration,n.push("Content-Type: application/dtmf-relay"),e=`Signal=${this._tone}\r\n`,e+="Duration="+this._duration,this._session.newDTMF({originator:"local",dtmf:this,request:this._request}),this._session.sendRequest(o.INFO,{extraHeaders:n,eventHandlers:{onSuccessResponse:e=>{this.emit("succeeded",{originator:"remote",response:e})},onErrorResponse:e=>{this.eventHandlers.onFailed&&this.eventHandlers.onFailed(),this.emit("failed",{originator:"remote",response:e})},onRequestTimeout:()=>{this._session.onRequestTimeout()},onTransportError:()=>{this._session.onTransportError()},onDialogError:()=>{this._session.onDialogError()}},body:e})}init_incoming(e){var t,n=/^(Signal\s*?=\s*?)([0-9A-D#*]{1})(\s)?.*/,r=/^(Duration\s?=\s?)([0-9]{1,4})(\s)?.*/;this._direction="incoming",(this._request=e).reply(200),e.body&&(1<=(t=e.body.split("\n")).length&&n.test(t[0])&&(this._tone=t[0].replace(n,"$2")),2<=t.length)&&r.test(t[1])&&(this._duration=parseInt(t[1].replace(r,"$2"),10)),this._duration||(this._duration=c.DEFAULT_DURATION),this._tone?this._session.newDTMF({originator:"remote",dtmf:this,request:e}):u.debug("invalid INFO DTMF received, discarded")}},e.exports.C=c},3211:function(e,t,n){var r=n(9032).EventEmitter,i=n(9896),o=n(8239),s=n(7196);e.exports=class extends r{constructor(e){super(),this._session=e,this._direction=null,this._contentType=null,this._body=null}get contentType(){return this._contentType}get body(){return this._body}send(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this._direction="outgoing",void 0===e)throw new TypeError("Not enough arguments");if(this._session.status!==this._session.C.STATUS_CONFIRMED&&this._session.status!==this._session.C.STATUS_WAITING_FOR_ACK)throw new o.InvalidStateError(this._session.status);this._contentType=e,this._body=t,n=s.cloneArray(n.extraHeaders),n.push("Content-Type: "+e),this._session.newInfo({originator:"local",info:this,request:this.request}),this._session.sendRequest(i.INFO,{extraHeaders:n,eventHandlers:{onSuccessResponse:e=>{this.emit("succeeded",{originator:"remote",response:e})},onErrorResponse:e=>{this.emit("failed",{originator:"remote",response:e})},onTransportError:()=>{this._session.onTransportError()},onRequestTimeout:()=>{this._session.onRequestTimeout()},onDialogError:()=>{this._session.onDialogError()}},body:t})}init_incoming(e){this._direction="incoming",(this.request=e).reply(200),this._contentType=e.hasHeader("Content-Type")?e.getHeader("Content-Type").toLowerCase():void 0,this._body=e.body,this._session.newInfo({originator:"remote",info:this,request:e})}}},1087:function(e,t,n){var r=n(5409),i=n(9896),o=new r("RTCSession:ReferNotifier"),s={event_type:"refer",body_type:"message/sipfrag;version=2.0",expires:300};e.exports=class{constructor(e,t,n){this._session=e,this._id=t,this._expires=n||s.expires,this._active=!0,this.notify(100)}notify(e,t){var n;(o.debug("notify()"),!1!==this._active)&&(t=t||i.REASON_PHRASE[e]||"",n=200<=e?"terminated;reason=noresource":"active;expires="+this._expires,this._session.sendRequest(i.NOTIFY,{extraHeaders:[`Event: ${s.event_type};id=`+this._id,"Subscription-State: "+n,"Content-Type: "+s.body_type],body:`SIP/2.0 ${e} `+t,eventHandlers:{onErrorResponse(){this._active=!1}}}))}}},9535:function(e,t,n){var r=n(9032).EventEmitter,i=n(5409),o=n(9896),s=n(9656),a=n(7196),u=new i("RTCSession:ReferSubscriber");e.exports=class extends r{constructor(e){super(),this._id=null,this._session=e}get id(){return this._id}sendRefer(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u.debug("sendRefer()");var n,r=a.cloneArray(t.extraHeaders),i=a.cloneObject(t.eventHandlers);for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&this.on(n,i[n]);var s=null;t.replaces&&(s=t.replaces._request.call_id,s=(s+=";to-tag="+t.replaces._to_tag)+";from-tag="+t.replaces._from_tag,s=encodeURIComponent(s)),t=`Refer-To: <${e}${s?"?Replaces="+s:""}>`,r.push(t),r.some(e=>e.toLowerCase().startsWith("referred-by:"))||(e=`Referred-By: <${this._session._ua._configuration.uri._scheme}:${this._session._ua._configuration.uri._user}@${this._session._ua._configuration.uri._host}>`,r.push(e)),r.push("Contact: "+this._session.contact),t=this._session.sendRequest(o.REFER,{extraHeaders:r,eventHandlers:{onSuccessResponse:e=>{this._requestSucceeded(e)},onErrorResponse:e=>{this._requestFailed(e,o.causes.REJECTED)},onTransportError:()=>{this._requestFailed(null,o.causes.CONNECTION_ERROR)},onRequestTimeout:()=>{this._requestFailed(null,o.causes.REQUEST_TIMEOUT)},onDialogError:()=>{this._requestFailed(null,o.causes.DIALOG_ERROR)}}}),this._id=t.cseq}receiveNotify(e){if(u.debug("receiveNotify()"),e.body){var t=s.parse(e.body.trim().split("\r\n",1)[0],"Status_Line");if(-1===t)u.debug(`receiveNotify() | error parsing NOTIFY body: "${e.body}"`);else switch(!0){case/^100$/.test(t.status_code):this.emit("trying",{request:e,status_line:t});break;case/^1[0-9]{2}$/.test(t.status_code):this.emit("progress",{request:e,status_line:t});break;case/^2[0-9]{2}$/.test(t.status_code):this.emit("accepted",{request:e,status_line:t});break;default:this.emit("failed",{request:e,status_line:t})}}}_requestSucceeded(e){u.debug("REFER succeeded"),u.debug('emit "requestSucceeded"'),this.emit("requestSucceeded",{response:e})}_requestFailed(e,t){u.debug("REFER failed"),u.debug('emit "requestFailed"'),this.emit("requestFailed",{response:e||null,cause:t})}}},145:function(e,t,n){var r=n(3422),i=n(7196),o=n(9896),s=n(2602),a=n(5117),u=new r("Registrator");e.exports=class{constructor(e,t){this._reg_id=1,this._ua=e,this._transport=t,this._registrar=e.configuration.registrar_server,this._expires=e.configuration.register_expires,this._call_id=i.createRandomToken(22),this._cseq=0,this._to_uri=e.configuration.uri,this._registrationTimer=null,this._registering=!1,this._registered=!1,this._contact=this._ua.contact.toString(),this._contact+=";+sip.ice",this._extraHeaders=[],this._extraContactParams="",this._sipInstance=`"<urn:uuid:${this._ua.configuration.instance_id}>"`,this._contact+=";reg-id="+this._reg_id,this._contact+=";+sip.instance="+this._sipInstance}get registered(){return this._registered}setExtraHeaders(e){Array.isArray(e)||(e=[]),this._extraHeaders=e.slice()}setExtraContactParams(e){for(var t in e instanceof Object||(e={}),this._extraContactParams="",e){var n;Object.prototype.hasOwnProperty.call(e,t)&&(n=e[t],this._extraContactParams+=";"+t,n)&&(this._extraContactParams+="="+n)}}register(){var e;this._registering?u.debug("Register request in progress..."):((e=this._extraHeaders.slice()).push(`Contact: ${this._contact};expires=`+this._expires+this._extraContactParams),e.push("Expires: "+this._expires),e=new s.OutgoingRequest(o.REGISTER,this._registrar,this._ua,{to_uri:this._to_uri,call_id:this._call_id,cseq:this._cseq+=1},e),e=new a(this._ua,e,{onRequestTimeout:()=>{this._registrationFailure(null,o.causes.REQUEST_TIMEOUT)},onTransportError:()=>{this._registrationFailure(null,o.causes.CONNECTION_ERROR)},onAuthenticated:()=>{this._cseq+=1},onReceiveResponse:e=>{if(e.cseq===this._cseq)switch(null!==this._registrationTimer&&(clearTimeout(this._registrationTimer),this._registrationTimer=null),!0){case/^1[0-9]{2}$/.test(e.status_code):break;case/^2[0-9]{2}$/.test(e.status_code):if(this._registering=!1,!e.hasHeader("Contact")){u.debug("no Contact header in response to REGISTER, response ignored");break}var t=e.headers.Contact.reduce((e,t)=>e.concat(t.parsed),[]),n=t.find(e=>this._sipInstance===e.getParam("+sip.instance")&&this._reg_id===parseInt(e.getParam("reg-id")));if(!(n=n||t.find(e=>e.uri.user===this._ua.contact.uri.user))){u.debug("no Contact header pointing to us, response ignored");break}var r=n.getParam("expires");r=(r=!r&&e.hasHeader("expires")?e.getHeader("expires"):r)||this._expires,t=64<(r=(r=Number(r))<10?10:r)?1e3*r/2+Math.floor(1e3*(r/2-32)*Math.random()):1e3*r-5e3,this._registrationTimer=setTimeout(()=>{this._registrationTimer=null,0===this._ua.listeners("registrationExpiring").length?this.register():this._ua.emit("registrationExpiring")},t),n.hasParam("temp-gruu")&&(this._ua.contact.temp_gruu=n.getParam("temp-gruu").replace(/"/g,"")),n.hasParam("pub-gruu")&&(this._ua.contact.pub_gruu=n.getParam("pub-gruu").replace(/"/g,"")),this._registered||(this._registered=!0,this._ua.registered({response:e}));break;case/^423$/.test(e.status_code):e.hasHeader("min-expires")?(this._expires=Number(e.getHeader("min-expires")),this._expires<10&&(this._expires=10),this.register()):(u.debug("423 response received for REGISTER without Min-Expires"),this._registrationFailure(e,o.causes.SIP_FAILURE_CODE));break;default:t=i.sipErrorCause(e.status_code),this._registrationFailure(e,t)}}}),this._registering=!0,e.send())}unregister(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._registered?(this._registered=!1,null!==this._registrationTimer&&(clearTimeout(this._registrationTimer),this._registrationTimer=null),e=this._extraHeaders.slice(),t.all?e.push("Contact: *"+this._extraContactParams):e.push(`Contact: ${this._contact};expires=0`+this._extraContactParams),e.push("Expires: 0"),t=new s.OutgoingRequest(o.REGISTER,this._registrar,this._ua,{to_uri:this._to_uri,call_id:this._call_id,cseq:this._cseq+=1},e),new a(this._ua,t,{onRequestTimeout:()=>{this._unregistered(null,o.causes.REQUEST_TIMEOUT)},onTransportError:()=>{this._unregistered(null,o.causes.CONNECTION_ERROR)},onAuthenticated:()=>{this._cseq+=1},onReceiveResponse:e=>{switch(!0){case/^1[0-9]{2}$/.test(e.status_code):break;case/^2[0-9]{2}$/.test(e.status_code):this._unregistered(e);break;default:var t=i.sipErrorCause(e.status_code);this._unregistered(e,t)}}}).send()):u.debug("already unregistered")}close(){this._registered&&this.unregister()}onTransportClosed(){this._registering=!1,null!==this._registrationTimer&&(clearTimeout(this._registrationTimer),this._registrationTimer=null),this._registered&&(this._registered=!1,this._ua.unregistered({}))}_registrationFailure(e,t){this._registering=!1,this._ua.registrationFailed({response:e||null,cause:t}),this._registered&&(this._registered=!1,this._ua.unregistered({response:e||null,cause:t}))}_unregistered(e,t){this._registering=!1,this._registered=!1,this._ua.unregistered({response:e||null,cause:t||null})}}},5117:function(e,t,n){var r=n(3422),i=n(9896),o=n(3889),s=n(1164),a=new r("RequestSender"),u={onRequestTimeout:()=>{},onTransportError:()=>{},onReceiveResponse:()=>{},onAuthenticated:()=>{}};e.exports=class{constructor(e,t,n){for(var r in this._ua=e,this._eventHandlers=n,this._method=t.method,this._request=t,this._auth=null,this._challenged=!1,this._staled=!1,u)!Object.prototype.hasOwnProperty.call(u,r)||this._eventHandlers[r]||(this._eventHandlers[r]=u[r]);e.status!==e.C.STATUS_USER_CLOSED||this._method===i.BYE&&this._method===i.ACK||this._eventHandlers.onTransportError()}send(){var e={onRequestTimeout:()=>{this._eventHandlers.onRequestTimeout()},onTransportError:()=>{this._eventHandlers.onTransportError()},onReceiveResponse:e=>{this._receiveResponse(e)}};switch(this._method){case"INVITE":this.clientTransaction=new s.InviteClientTransaction(this._ua,this._ua.transport,this._request,e);break;case"ACK":this.clientTransaction=new s.AckClientTransaction(this._ua,this._ua.transport,this._request,e);break;default:this.clientTransaction=new s.NonInviteClientTransaction(this._ua,this._ua.transport,this._request,e)}this._ua._configuration.authorization_jwt&&this._request.setHeader("Authorization",this._ua._configuration.authorization_jwt),this.clientTransaction.send()}_receiveResponse(e){var t,n,r=e.status_code;401!==r&&407!==r||null===this._ua.configuration.password&&null===this._ua.configuration.ha1?this._eventHandlers.onReceiveResponse(e):(n=401===e.status_code?(t=e.parseHeader("www-authenticate"),"authorization"):(t=e.parseHeader("proxy-authenticate"),"proxy-authorization"),t?this._challenged&&(this._staled||!0!==t.stale)||(this._auth||(this._auth=new o({username:this._ua.configuration.authorization_user,password:this._ua.configuration.password,realm:this._ua.configuration.realm,ha1:this._ua.configuration.ha1})),!this._auth.authenticate(this._request,t))?this._eventHandlers.onReceiveResponse(e):(this._challenged=!0,this._ua.set("realm",this._auth.get("realm")),this._ua.set("ha1",this._auth.get("ha1")),t.stale&&(this._staled=!0),this._request=this._request.clone(),this._request.cseq+=1,this._request.setHeader("cseq",this._request.cseq+" "+this._method),this._request.setHeader(n,this._auth.toString()),this._eventHandlers.onAuthenticated(this._request),this.send()):(a.debug(e.status_code+" with wrong or missing challenge, cannot authenticate"),this._eventHandlers.onReceiveResponse(e)))}}},2602:function(e,t,n){var r=n(8844),i=n(3422),o=n(9896),s=n(7196),a=n(900),c=n(9656),l=new i("SIPMessage");class d{constructor(e,t,n,r,i,u){if(!e||!t||!n)return null;var c;r=r||{},this.ua=n,this.headers={},this.method=e,this.ruri=t,this.body=u,this.extraHeaders=s.cloneArray(i),this.ua.configuration.extra_headers&&(this.extraHeaders=this.extraHeaders.concat(this.ua.configuration.extra_headers)),r.route_set?this.setHeader("route",r.route_set):n.configuration.use_preloaded_route&&this.setHeader("route",`<${n.transport.sip_uri};lr>`),this.setHeader("via",""),this.setHeader("max-forwards",o.MAX_FORWARDS),u=r.to_uri||t,i=r.to_tag?{tag:r.to_tag}:null,t=void 0!==r.to_display_name?r.to_display_name:null,this.to=new a(u,t,i),this.setHeader("to",this.to.toString()),u=r.from_uri||n.configuration.uri,t={tag:r.from_tag||s.newTag()},c=void 0!==r.from_display_name?r.from_display_name:n.configuration.display_name||null,this.from=new a(u,c,t),this.setHeader("from",this.from.toString()),i=r.call_id||n.configuration.jssip_id+s.createRandomToken(15),this.call_id=i,this.setHeader("call-id",i),u=r.cseq||Math.floor(1e4*Math.random()),this.cseq=u,this.setHeader("cseq",u+" "+e)}setHeader(e,t){for(var n=new RegExp(`^\\s*${e}\\s*:`,"i"),r=0;r<this.extraHeaders.length;r++)n.test(this.extraHeaders[r])&&this.extraHeaders.splice(r,1);this.headers[s.headerize(e)]=Array.isArray(t)?t:[t]}getHeader(e){var t=this.headers[s.headerize(e)];if(t){if(t[0])return t[0]}else{var n,r,i=new RegExp(`^\\s*${e}\\s*:`,"i"),o=u(this.extraHeaders);try{for(o.s();!(r=o.n()).done;)if(n=r.value,i.test(n))return n.substring(n.indexOf(":")+1).trim()}catch(a){o.e(a)}finally{o.f()}}}getHeaders(e){var t=this.headers[s.headerize(e)],n=[];if(t){var r,i=u(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;n.push(o)}}catch(h){i.e(h)}finally{i.f()}}else{var a,c,l=new RegExp(`^\\s*${e}\\s*:`,"i"),d=u(this.extraHeaders);try{for(d.s();!(c=d.n()).done;)a=c.value,l.test(a)&&n.push(a.substring(a.indexOf(":")+1).trim())}catch(h){d.e(h)}finally{d.f()}}return n}hasHeader(e){if(this.headers[s.headerize(e)])return!0;var t,n,r=new RegExp(`^\\s*${e}\\s*:`,"i"),i=u(this.extraHeaders);try{for(i.s();!(n=i.n()).done;)if(t=n.value,r.test(t))return!0}catch(o){i.e(o)}finally{i.f()}return!1}parseSDP(e){return!e&&this.sdp||(this.sdp=r.parse(this.body||"")),this.sdp}toString(){var e=`${this.method} ${this.ruri} SIP/2.0\r\n`;for(var t in this.headers)if(Object.prototype.hasOwnProperty.call(this.headers,t)){var n,r=u(this.headers[t]);try{for(r.s();!(n=r.n()).done;){var i=n.value;e+=`${t}: ${i}\r\n`}}catch(f){r.e(f)}finally{r.f()}}var a,c=u(this.extraHeaders);try{for(c.s();!(a=c.n()).done;){var l=a.value;e+=l.trim()+"\r\n"}}catch(f){c.e(f)}finally{c.f()}var d=[];switch(this.method){case o.REGISTER:d.push("path","gruu");break;case o.INVITE:this.ua.configuration.session_timers&&d.push("timer"),(this.ua.contact.pub_gruu||this.ua.contact.temp_gruu)&&d.push("gruu"),d.push("ice","replaces");break;case o.UPDATE:this.ua.configuration.session_timers&&d.push("timer"),d.push("ice")}d.push("outbound");var h=this.ua.configuration.user_agent||o.USER_AGENT;return e=(e+=`Allow: ${o.ALLOWED_METHODS}\r\n`)+`Supported: ${d}\r\n`+`User-Agent: ${h}\r\n`,this.body?(h=s.str_utf8_length(this.body),e=(e+=`Content-Length: ${h}\r\n\r\n`)+this.body):e+="Content-Length: 0\r\n\r\n",e}clone(){var e=new d(this.method,this.ruri,this.ua);return Object.keys(this.headers).forEach((function(t){e.headers[t]=this.headers[t].slice()}),this),e.body=this.body,e.extraHeaders=s.cloneArray(this.extraHeaders),e.to=this.to,e.from=this.from,e.call_id=this.call_id,e.cseq=this.cseq,e}}class h extends d{constructor(e,t,n,r,i){super(o.INVITE,e,t,n,r,i),this.transaction=null}cancel(e){this.transaction.cancel(e)}clone(){var e=new h(this.ruri,this.ua);return Object.keys(this.headers).forEach((function(t){e.headers[t]=this.headers[t].slice()}),this),e.body=this.body,e.extraHeaders=s.cloneArray(this.extraHeaders),e.to=this.to,e.from=this.from,e.call_id=this.call_id,e.cseq=this.cseq,e.transaction=this.transaction,e}}class f{constructor(){this.data=null,this.headers=null,this.method=null,this.via=null,this.via_branch=null,this.call_id=null,this.cseq=null,this.from=null,this.from_tag=null,this.to=null,this.to_tag=null,this.body=null,this.sdp=null}addHeader(e,t){t={raw:t},e=s.headerize(e),this.headers[e]?this.headers[e].push(t):this.headers[e]=[t]}getHeader(e){if(e=this.headers[s.headerize(e)],e&&e[0])return e[0].raw}getHeaders(e){e=this.headers[s.headerize(e)];var t,n=[];if(!e)return[];var r,i=u(e);try{for(i.s();!(r=i.n()).done;)t=r.value,n.push(t.raw)}catch(o){i.e(o)}finally{i.f()}return n}hasHeader(e){return!!this.headers[s.headerize(e)]}parseHeader(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e=s.headerize(e),this.headers[e]){var n,r,i;if(!(t>=this.headers[e].length))return r=(n=this.headers[e][t]).raw,n.parsed||(-1!==(i=c.parse(r,e.replace(/-/g,"_")))?n.parsed=i:(this.headers[e].splice(t,1),void l.debug(`error parsing "${e}" header field with value "${r}"`)));l.debug(`not so many "${e}" headers present`)}else l.debug(`header "${e}" not present`)}s(e,t){return this.parseHeader(e,t)}setHeader(e,t){t={raw:t},this.headers[s.headerize(e)]=[t]}parseSDP(e){return!e&&this.sdp||(this.sdp=r.parse(this.body||"")),this.sdp}toString(){return this.data}}class p extends f{constructor(e){super(),this.ua=e,this.headers={},this.ruri=null,this.transport=null,this.server_transaction=null}reply(e,t,n,r,i,a){var c,l,d,h=[],f=this.getHeader("To");if(t=t||null,!(e=e||null)||e<100||699<e)throw new TypeError("Invalid status_code: "+e);if(t&&"string"!=typeof t&&!(t instanceof String))throw new TypeError("Invalid reason_phrase: "+t);t=t||o.REASON_PHRASE[e]||"",n=s.cloneArray(n),this.ua.configuration.extra_headers&&(n=n.concat(this.ua.configuration.extra_headers));var p=`SIP/2.0 ${e} ${t}\r\n`;if(this.method===o.INVITE&&100<e&&e<=200){var v,m=u(this.getHeaders("record-route"));try{for(m.s();!(v=m.n()).done;)c=v.value,p+=`Record-Route: ${c}\r\n`}catch(w){m.e(w)}finally{m.f()}}var g,_=u(this.getHeaders("via"));try{for(_.s();!(g=_.n()).done;)l=g.value,p+=`Via: ${l}\r\n`}catch(w){_.e(w)}finally{_.f()}!this.to_tag&&100<e?f+=";tag="+s.newTag():this.to_tag&&!this.s("to").hasParam("tag")&&(f+=";tag="+this.to_tag),p=(p=(p=(p+=`To: ${f}\r\n`)+`From: ${this.getHeader("From")}\r\n`)+`Call-ID: ${this.call_id}\r\n`)+`CSeq: ${this.cseq} ${this.method}\r\n`;var y,b=u(n);try{for(b.s();!(y=b.n()).done;)d=y.value,p+=d.trim()+"\r\n"}catch(w){b.e(w)}finally{b.f()}switch(this.method){case o.INVITE:this.ua.configuration.session_timers&&h.push("timer"),(this.ua.contact.pub_gruu||this.ua.contact.temp_gruu)&&h.push("gruu"),h.push("ice","replaces");break;case o.UPDATE:this.ua.configuration.session_timers&&h.push("timer"),r&&h.push("ice"),h.push("replaces")}h.push("outbound"),this.method===o.OPTIONS?p=(p+=`Allow: ${o.ALLOWED_METHODS}\r\n`)+`Accept: ${o.ACCEPTED_BODY_TYPES}\r\n`:405===e?p+=`Allow: ${o.ALLOWED_METHODS}\r\n`:415===e&&(p+=`Accept: ${o.ACCEPTED_BODY_TYPES}\r\n`),p+=`Supported: ${h}\r\n`,r?(t=s.str_utf8_length(r),p=(p+="Content-Type: application/sdp\r\n")+`Content-Length: ${t}\r\n\r\n`+r):p+="Content-Length: 0\r\n\r\n",this.server_transaction.receiveResponse(e,p,i,a)}reply_sl(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=this.getHeaders("via");if(!t||t<100||699<t)throw new TypeError("Invalid status_code: "+t);if(n&&"string"!=typeof n&&!(n instanceof String))throw new TypeError("Invalid reason_phrase: "+n);var i,a=`SIP/2.0 ${t} ${n=n||o.REASON_PHRASE[t]||""}\r\n`,c=u(r);try{for(c.s();!(i=c.n()).done;)e=i.value,a+=`Via: ${e}\r\n`}catch(p){c.e(p)}finally{c.f()}var l=this.getHeader("To");if(!this.to_tag&&100<t?l+=";tag="+s.newTag():this.to_tag&&!this.s("to").hasParam("tag")&&(l+=";tag="+this.to_tag),a=(a=(a=(a+=`To: ${l}\r\n`)+`From: ${this.getHeader("From")}\r\n`)+`Call-ID: ${this.call_id}\r\n`)+`CSeq: ${this.cseq} ${this.method}\r\n`,this.ua.configuration.extra_headers){var d,h=u(this.ua.configuration.extra_headers);try{for(h.s();!(d=h.n()).done;){var f=d.value;a+=f.trim()+"\r\n"}}catch(p){h.e(p)}finally{h.f()}}a+="Content-Length: 0\r\n\r\n",this.transport.send(a)}}class v extends f{constructor(){super(),this.headers={},this.status_code=null,this.reason_phrase=null}}e.exports={OutgoingRequest:d,InitialOutgoingInviteRequest:h,IncomingRequest:p,IncomingResponse:v}},5944:function(e,t,n){var r=n(3422),i=n(7196),o=n(9656),s=new r("Socket");t.isSocket=t=>{if(Array.isArray(t))return!1;if(void 0===t)return s.warn("undefined JsSIP.Socket instance"),!1;try{if(!i.isString(t.url))throw s.warn("missing or invalid JsSIP.Socket url property"),new Error("Missing or invalid JsSIP.Socket url property");if(!i.isString(t.via_transport))throw s.warn("missing or invalid JsSIP.Socket via_transport property"),new Error("Missing or invalid JsSIP.Socket via_transport property");if(-1===o.parse(t.sip_uri,"SIP_URI"))throw s.warn("missing or invalid JsSIP.Socket sip_uri property"),new Error("missing or invalid JsSIP.Socket sip_uri property")}catch(e){return!1}try{["connect","disconnect","send"].forEach(e=>{if(!i.isFunction(t[e]))throw s.warn("missing or invalid JsSIP.Socket method: "+e),new Error("Missing or invalid JsSIP.Socket method: "+e)})}catch(e){return!1}return!0}},2615:function(e){var t=500;e.exports={T1:t,T2:4e3,T4:5e3,TIMER_B:32e3,TIMER_D:0,TIMER_F:32e3,TIMER_H:32e3,TIMER_I:0,TIMER_J:0,TIMER_K:0,TIMER_L:32e3,TIMER_M:32e3,PROVISIONAL_RESPONSE_INTERVAL:6e4}},1164:function(e,t,n){var r=n(9032).EventEmitter,i=n(3422),o=n(9896),s=n(2602),a=n(2615),u=new i("NonInviteClientTransaction"),c=new i("InviteClientTransaction"),l=new i("AckClientTransaction"),d=new i("NonInviteServerTransaction"),h=new i("InviteServerTransaction"),f={STATUS_TRYING:1,STATUS_PROCEEDING:2,STATUS_CALLING:3,STATUS_ACCEPTED:4,STATUS_COMPLETED:5,STATUS_TERMINATED:6,STATUS_CONFIRMED:7,NON_INVITE_CLIENT:"nict",NON_INVITE_SERVER:"nist",INVITE_CLIENT:"ict",INVITE_SERVER:"ist"};class p extends r{constructor(e,t,n,r){super(),this.type=f.NON_INVITE_CLIENT,this.id="z9hG4bK"+Math.floor(1e7*Math.random()),this.ua=e,this.transport=t,this.request=n,this.eventHandlers=r,n="SIP/2.0/"+t.via_transport,n+=` ${e.configuration.via_host};branch=`+this.id,this.request.setHeader("via",n),this.ua.newTransaction(this)}get C(){return f}stateChanged(e){this.state=e,this.emit("stateChanged")}send(){this.stateChanged(f.STATUS_TRYING),this.F=setTimeout(()=>{this.timer_F()},a.TIMER_F),this.transport.send(this.request)||this.onTransportError()}onTransportError(){u.debug("transport error occurred, deleting transaction "+this.id),clearTimeout(this.F),clearTimeout(this.K),this.stateChanged(f.STATUS_TERMINATED),this.ua.destroyTransaction(this),this.eventHandlers.onTransportError()}timer_F(){u.debug("Timer F expired for transaction "+this.id),this.stateChanged(f.STATUS_TERMINATED),this.ua.destroyTransaction(this),this.eventHandlers.onRequestTimeout()}timer_K(){this.stateChanged(f.STATUS_TERMINATED),this.ua.destroyTransaction(this)}receiveResponse(e){var t=e.status_code;if(t<200)switch(this.state){case f.STATUS_TRYING:case f.STATUS_PROCEEDING:this.stateChanged(f.STATUS_PROCEEDING),this.eventHandlers.onReceiveResponse(e)}else switch(this.state){case f.STATUS_TRYING:case f.STATUS_PROCEEDING:this.stateChanged(f.STATUS_COMPLETED),clearTimeout(this.F),408===t?this.eventHandlers.onRequestTimeout():this.eventHandlers.onReceiveResponse(e),this.K=setTimeout(()=>{this.timer_K()},a.TIMER_K);break;case f.STATUS_COMPLETED:}}}class v extends r{constructor(e,t,n,r){super(),this.type=f.INVITE_CLIENT,this.id="z9hG4bK"+Math.floor(1e7*Math.random()),this.ua=e,this.transport=t,this.request=n,this.eventHandlers=r,n.transaction=this,r="SIP/2.0/"+t.via_transport,r+=` ${e.configuration.via_host};branch=`+this.id,this.request.setHeader("via",r),this.ua.newTransaction(this)}get C(){return f}stateChanged(e){this.state=e,this.emit("stateChanged")}send(){this.stateChanged(f.STATUS_CALLING),this.B=setTimeout(()=>{this.timer_B()},a.TIMER_B),this.transport.send(this.request)||this.onTransportError()}onTransportError(){clearTimeout(this.B),clearTimeout(this.D),clearTimeout(this.M),this.state!==f.STATUS_ACCEPTED&&(c.debug("transport error occurred, deleting transaction "+this.id),this.eventHandlers.onTransportError()),this.stateChanged(f.STATUS_TERMINATED),this.ua.destroyTransaction(this)}timer_M(){c.debug("Timer M expired for transaction "+this.id),this.state===f.STATUS_ACCEPTED&&(clearTimeout(this.B),this.stateChanged(f.STATUS_TERMINATED),this.ua.destroyTransaction(this))}timer_B(){c.debug("Timer B expired for transaction "+this.id),this.state===f.STATUS_CALLING&&(this.stateChanged(f.STATUS_TERMINATED),this.ua.destroyTransaction(this),this.eventHandlers.onRequestTimeout())}timer_D(){c.debug("Timer D expired for transaction "+this.id),clearTimeout(this.B),this.stateChanged(f.STATUS_TERMINATED),this.ua.destroyTransaction(this)}sendACK(e){var t=new s.OutgoingRequest(o.ACK,this.request.ruri,this.ua,{route_set:this.request.getHeaders("route"),call_id:this.request.getHeader("call-id"),cseq:this.request.cseq});t.setHeader("from",this.request.getHeader("from")),t.setHeader("via",this.request.getHeader("via")),t.setHeader("to",e.getHeader("to")),this.D=setTimeout(()=>{this.timer_D()},a.TIMER_D),this.transport.send(t)}cancel(e){var t;this.state===f.STATUS_PROCEEDING&&((t=new s.OutgoingRequest(o.CANCEL,this.request.ruri,this.ua,{route_set:this.request.getHeaders("route"),call_id:this.request.getHeader("call-id"),cseq:this.request.cseq})).setHeader("from",this.request.getHeader("from")),t.setHeader("via",this.request.getHeader("via")),t.setHeader("to",this.request.getHeader("to")),e&&t.setHeader("reason",e),this.transport.send(t))}receiveResponse(e){var t=e.status_code;if(100<=t&&t<=199)switch(this.state){case f.STATUS_CALLING:this.stateChanged(f.STATUS_PROCEEDING),this.eventHandlers.onReceiveResponse(e);break;case f.STATUS_PROCEEDING:this.eventHandlers.onReceiveResponse(e)}else if(200<=t&&t<=299)switch(this.state){case f.STATUS_CALLING:case f.STATUS_PROCEEDING:this.stateChanged(f.STATUS_ACCEPTED),this.M=setTimeout(()=>{this.timer_M()},a.TIMER_M),this.eventHandlers.onReceiveResponse(e);break;case f.STATUS_ACCEPTED:this.eventHandlers.onReceiveResponse(e)}else if(300<=t&&t<=699)switch(this.state){case f.STATUS_CALLING:case f.STATUS_PROCEEDING:this.stateChanged(f.STATUS_COMPLETED),this.sendACK(e),this.eventHandlers.onReceiveResponse(e);break;case f.STATUS_COMPLETED:this.sendACK(e)}}}class m extends r{constructor(e,t,n,r){super(),this.id="z9hG4bK"+Math.floor(1e7*Math.random()),this.transport=t,this.request=n,this.eventHandlers=r,n="SIP/2.0/"+t.via_transport,n+=` ${e.configuration.via_host};branch=`+this.id,this.request.setHeader("via",n)}get C(){return f}send(){this.transport.send(this.request)||this.onTransportError()}onTransportError(){l.debug("transport error occurred for transaction "+this.id),this.eventHandlers.onTransportError()}}class g extends r{constructor(e,t,n){super(),this.type=f.NON_INVITE_SERVER,this.id=n.via_branch,this.ua=e,this.transport=t,this.request=n,this.last_response="",(n.server_transaction=this).state=f.STATUS_TRYING,e.newTransaction(this)}get C(){return f}stateChanged(e){this.state=e,this.emit("stateChanged")}timer_J(){d.debug("Timer J expired for transaction "+this.id),this.stateChanged(f.STATUS_TERMINATED),this.ua.destroyTransaction(this)}onTransportError(){this.transportError||(this.transportError=!0,d.debug("transport error occurred, deleting transaction "+this.id),clearTimeout(this.J),this.stateChanged(f.STATUS_TERMINATED),this.ua.destroyTransaction(this))}receiveResponse(e,t,n,r){if(100===e)switch(this.state){case f.STATUS_TRYING:this.stateChanged(f.STATUS_PROCEEDING),this.transport.send(t)||this.onTransportError();break;case f.STATUS_PROCEEDING:this.last_response=t,this.transport.send(t)?n&&n():(this.onTransportError(),r&&r())}else if(200<=e&&e<=699)switch(this.state){case f.STATUS_TRYING:case f.STATUS_PROCEEDING:this.stateChanged(f.STATUS_COMPLETED),this.last_response=t,this.J=setTimeout(()=>{this.timer_J()},a.TIMER_J),this.transport.send(t)?n&&n():(this.onTransportError(),r&&r());break;case f.STATUS_COMPLETED:}}}class _ extends r{constructor(e,t,n){super(),this.type=f.INVITE_SERVER,this.id=n.via_branch,this.ua=e,this.transport=t,this.request=n,this.last_response="",(n.server_transaction=this).state=f.STATUS_PROCEEDING,e.newTransaction(this),this.resendProvisionalTimer=null,n.reply(100)}get C(){return f}stateChanged(e){this.state=e,this.emit("stateChanged")}timer_H(){h.debug("Timer H expired for transaction "+this.id),this.state===f.STATUS_COMPLETED&&h.debug("ACK not received, dialog will be terminated"),this.stateChanged(f.STATUS_TERMINATED),this.ua.destroyTransaction(this)}timer_I(){this.stateChanged(f.STATUS_TERMINATED),this.ua.destroyTransaction(this)}timer_L(){h.debug("Timer L expired for transaction "+this.id),this.state===f.STATUS_ACCEPTED&&(this.stateChanged(f.STATUS_TERMINATED),this.ua.destroyTransaction(this))}onTransportError(){this.transportError||(this.transportError=!0,h.debug("transport error occurred, deleting transaction "+this.id),null!==this.resendProvisionalTimer&&(clearInterval(this.resendProvisionalTimer),this.resendProvisionalTimer=null),clearTimeout(this.L),clearTimeout(this.H),clearTimeout(this.I),this.stateChanged(f.STATUS_TERMINATED),this.ua.destroyTransaction(this))}resend_provisional(){this.transport.send(this.last_response)||this.onTransportError()}receiveResponse(e,t,n,r){if(100<=e&&e<=199&&this.state===f.STATUS_PROCEEDING&&(this.transport.send(t)||this.onTransportError(),this.last_response=t),100<e&&e<=199&&this.state===f.STATUS_PROCEEDING)null===this.resendProvisionalTimer&&(this.resendProvisionalTimer=setInterval(()=>{this.resend_provisional()},a.PROVISIONAL_RESPONSE_INTERVAL));else if(200<=e&&e<=299)switch(this.state){case f.STATUS_PROCEEDING:this.stateChanged(f.STATUS_ACCEPTED),this.last_response=t,this.L=setTimeout(()=>{this.timer_L()},a.TIMER_L),null!==this.resendProvisionalTimer&&(clearInterval(this.resendProvisionalTimer),this.resendProvisionalTimer=null);case f.STATUS_ACCEPTED:this.transport.send(t)?n&&n():(this.onTransportError(),r&&r())}else 300<=e&&e<=699&&this.state===f.STATUS_PROCEEDING&&(null!==this.resendProvisionalTimer&&(clearInterval(this.resendProvisionalTimer),this.resendProvisionalTimer=null),this.transport.send(t)?(this.stateChanged(f.STATUS_COMPLETED),this.H=setTimeout(()=>{this.timer_H()},a.TIMER_H),n&&n()):(this.onTransportError(),r&&r()))}}e.exports={C:f,NonInviteClientTransaction:p,InviteClientTransaction:v,AckClientTransaction:m,NonInviteServerTransaction:g,InviteServerTransaction:_,checkTransaction:function(e,t){var n,r=e._transactions;switch(t.method){case o.INVITE:if(n=r.ist[t.via_branch]){switch(n.state){case f.STATUS_PROCEEDING:n.transport.send(n.last_response);break;case f.STATUS_ACCEPTED:}return!0}break;case o.ACK:if(!(n=r.ist[t.via_branch]))return!1;if(n.state===f.STATUS_ACCEPTED)return!1;if(n.state===f.STATUS_COMPLETED)return n.state=f.STATUS_CONFIRMED,n.I=setTimeout(()=>{n.timer_I()},a.TIMER_I),!0;break;case o.CANCEL:return(n=r.ist[t.via_branch])?(t.reply_sl(200),n.state!==f.STATUS_PROCEEDING):(t.reply_sl(481),!0);default:if(n=r.nist[t.via_branch]){switch(n.state){case f.STATUS_TRYING:break;case f.STATUS_PROCEEDING:case f.STATUS_COMPLETED:n.transport.send(n.last_response)}return!0}}}}},764:function(e,t,n){var r=n(3422),i=n(5944);n=n(9896);var o=new r("Transport"),s={STATUS_CONNECTED:0,STATUS_CONNECTING:1,STATUS_DISCONNECTED:2,SOCKET_STATUS_READY:0,SOCKET_STATUS_ERROR:1,recovery_options:{min_interval:n.CONNECTION_RECOVERY_MIN_INTERVAL,max_interval:n.CONNECTION_RECOVERY_MAX_INTERVAL}};e.exports=class{constructor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.recovery_options;o.debug("new()"),this.status=s.STATUS_DISCONNECTED,this.socket=null,this.sockets=[],this.recovery_options=t,this.recover_attempts=0,this.recovery_timer=null,this.close_requested=!1;try{this.textDecoder=new TextDecoder("utf8")}catch(e){o.warn("cannot use TextDecoder: "+e)}if(void 0===e)throw new TypeError("Invalid argument. undefined 'sockets' argument");(e=e instanceof Array?e:[e]).forEach((function(e){if(!i.isSocket(e.socket))throw new TypeError("Invalid argument. invalid 'JsSIP.Socket' instance");if(e.weight&&!Number(e.weight))throw new TypeError("Invalid argument. 'weight' attribute is not a number");this.sockets.push({socket:e.socket,weight:e.weight||0,status:s.SOCKET_STATUS_READY})}),this),this._getSocket()}get via_transport(){return this.socket.via_transport}get url(){return this.socket.url}get sip_uri(){return this.socket.sip_uri}connect(){o.debug("connect()"),this.isConnected()?o.debug("Transport is already connected"):this.isConnecting()?o.debug("Transport is connecting"):(this.close_requested=!1,this.status=s.STATUS_CONNECTING,this.onconnecting({socket:this.socket,attempts:this.recover_attempts}),this.close_requested||(this.socket.onconnect=this._onConnect.bind(this),this.socket.ondisconnect=this._onDisconnect.bind(this),this.socket.ondata=this._onData.bind(this),this.socket.connect()))}disconnect(){o.debug("close()"),this.close_requested=!0,this.recover_attempts=0,this.status=s.STATUS_DISCONNECTED,null!==this.recovery_timer&&(clearTimeout(this.recovery_timer),this.recovery_timer=null),this.socket.onconnect=()=>{},this.socket.ondisconnect=()=>{},this.socket.ondata=()=>{},this.socket.disconnect(),this.ondisconnect({socket:this.socket,error:!1})}send(e){return o.debug("send()"),this.isConnected()?(e=e.toString(),o.debug(`sending message:\n\n${e}\n`),this.socket.send(e)):(o.warn("unable to send message, transport is not connected"),!1)}isConnected(){return this.status===s.STATUS_CONNECTED}isConnecting(){return this.status===s.STATUS_CONNECTING}_reconnect(){this.recover_attempts+=1;var e=Math.floor(Math.random()*Math.pow(2,this.recover_attempts)+1);e<this.recovery_options.min_interval?e=this.recovery_options.min_interval:e>this.recovery_options.max_interval&&(e=this.recovery_options.max_interval),o.debug(`reconnection attempt: ${this.recover_attempts}. next connection attempt in ${e} seconds`),this.recovery_timer=setTimeout(()=>{this.close_requested||this.isConnected()||this.isConnecting()||(this._getSocket(),this.connect())},1e3*e)}_getSocket(){var e,t=[];this.sockets.forEach(e=>{e.status!==s.SOCKET_STATUS_ERROR&&(0===t.length?t.push(e):e.weight>t[0].weight?t=[e]:e.weight===t[0].weight&&t.push(e))}),0===t.length?(this.sockets.forEach(e=>{e.status=s.SOCKET_STATUS_READY}),this._getSocket()):(e=Math.floor(Math.random()*t.length),this.socket=t[e].socket)}_onConnect(){this.recover_attempts=0,this.status=s.STATUS_CONNECTED,null!==this.recovery_timer&&(clearTimeout(this.recovery_timer),this.recovery_timer=null),this.onconnect({socket:this})}_onDisconnect(e,t,n){this.status=s.STATUS_DISCONNECTED,this.ondisconnect({socket:this.socket,error:e,code:t,reason:n}),this.close_requested||(this.sockets.forEach((function(e){this.socket===e.socket&&(e.status=s.SOCKET_STATUS_ERROR)}),this),this._reconnect(e))}_onData(e){if("\r\n\r\n"===e){o.debug("received message with double-CRLF Keep Alive request");try{this.socket.send("\r\n")}catch(e){o.warn("error sending Keep Alive response: "+e)}}else if("\r\n"===e)o.debug("received message with CRLF Keep Alive response");else{if("string"!=typeof e){try{e=this.textDecoder?this.textDecoder.decode(e):String.fromCharCode.apply(null,new Uint8Array(e))}catch(e){return void o.debug("received binary message failed to be converted into string, message discarded")}o.debug(`received binary message:\n\n${e}\n`)}else o.debug(`received text message:\n\n${e}\n`);this.ondata({transport:this,message:e})}}}},1675:function(e,t,n){var r=n(9032).EventEmitter,i=n(3422),o=n(9896),s=n(145),a=n(7356),u=n(3834),c=n(7659),l=n(1164),d=n(764),h=n(7196),f=n(8239),p=n(7019),v=n(9070),m=n(2602),g=n(5443),_=n(8611),y=new i("UA"),b={STATUS_INIT:0,STATUS_READY:1,STATUS_USER_CLOSED:2,STATUS_NOT_READY:3,CONFIGURATION_ERROR:1,NETWORK_ERROR:2};e.exports=class extends r{static get C(){return b}constructor(e){if(y.debug("new() [configuration:%o]",e),super(),this._cache={credentials:{}},this._configuration=Object.assign({},_.settings),this._dynConfiguration={},this._dialogs={},this._applicants={},this._sessions={},this._transport=null,this._contact=null,this._status=b.STATUS_INIT,this._error=null,this._transactions={nist:{},nict:{},ist:{},ict:{}},this._data={},this._closeTimer=null,void 0===e)throw new TypeError("Not enough arguments");try{this._loadConfig(e)}catch(e){throw this._status=b.STATUS_NOT_READY,this._error=b.CONFIGURATION_ERROR,e}this._registrator=new s(this)}get C(){return b}get status(){return this._status}get contact(){return this._contact}get configuration(){return this._configuration}get transport(){return this._transport}start(){y.debug("start()"),this._status===b.STATUS_INIT?this._transport.connect():this._status===b.STATUS_USER_CLOSED?(y.debug("restarting UA"),null!==this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null,this._transport.disconnect()),this._status=b.STATUS_INIT,this._transport.connect()):this._status===b.STATUS_READY?y.debug("UA is in READY status, not restarted"):y.debug("ERROR: connection is down, Auto-Recovery system is trying to reconnect"),this._dynConfiguration.register=this._configuration.register}register(){y.debug("register()"),this._dynConfiguration.register=!0,this._registrator.register()}unregister(e){y.debug("unregister()"),this._dynConfiguration.register=!1,this._registrator.unregister(e)}registrator(){return this._registrator}isRegistered(){return this._registrator.registered}isConnected(){return this._transport.isConnected()}call(e,t){y.debug("call()");var n=new a(this);return n.connect(e,t),n}sendMessage(e,t,n){y.debug("sendMessage()");var r=new u(this);return r.send(e,t,n),r}sendOptions(e,t,n){y.debug("sendOptions()");var r=new c(this);return r.send(e,t,n),r}terminateSessions(e){for(var t in y.debug("terminateSessions()"),this._sessions)this._sessions[t].isEnded()||this._sessions[t].terminate(e)}stop(){if(y.debug("stop()"),this._dynConfiguration={},this._status===b.STATUS_USER_CLOSED)y.debug("UA already closed");else{this._registrator.close();var e,t,n=Object.keys(this._sessions).length;for(e in this._sessions)if(Object.prototype.hasOwnProperty.call(this._sessions,e)){y.debug("closing session "+e);try{this._sessions[e].terminate()}catch(e){}}for(t in this._applicants)if(Object.prototype.hasOwnProperty.call(this._applicants,t))try{this._applicants[t].close()}catch(e){}this._status=b.STATUS_USER_CLOSED,0===Object.keys(this._transactions.nict).length+Object.keys(this._transactions.nist).length+Object.keys(this._transactions.ict).length+Object.keys(this._transactions.ist).length&&0===n?this._transport.disconnect():this._closeTimer=setTimeout(()=>{this._closeTimer=null,this._transport.disconnect()},2e3)}}normalizeTarget(e){return h.normalizeTarget(e,this._configuration.hostport_params)}get(e){switch(e){case"authorization_user":return this._configuration.authorization_user;case"realm":return this._configuration.realm;case"ha1":return this._configuration.ha1;case"authorization_jwt":return this._configuration.authorization_jwt;default:return void y.warn('get() | cannot get "%s" parameter in runtime',e)}}set(e,t){switch(e){case"authorization_user":this._configuration.authorization_user=String(t);break;case"password":this._configuration.password=String(t);break;case"realm":this._configuration.realm=String(t);break;case"ha1":this._configuration.ha1=String(t),this._configuration.password=null;break;case"authorization_jwt":this._configuration.authorization_jwt=String(t);break;case"display_name":this._configuration.display_name=t;break;case"extra_headers":this._configuration.extra_headers=t;break;default:return y.warn('set() | cannot set "%s" parameter in runtime',e),!1}return!0}newTransaction(e){this._transactions[e.type][e.id]=e,this.emit("newTransaction",{transaction:e})}destroyTransaction(e){delete this._transactions[e.type][e.id],this.emit("transactionDestroyed",{transaction:e})}newDialog(e){this._dialogs[e.id]=e}destroyDialog(e){delete this._dialogs[e.id]}newMessage(e,t){this._applicants[e]=e,this.emit("newMessage",t)}newOptions(e,t){this._applicants[e]=e,this.emit("newOptions",t)}destroyMessage(e){delete this._applicants[e]}newRTCSession(e,t){this._sessions[e.id]=e,this.emit("newRTCSession",t)}destroyRTCSession(e){delete this._sessions[e.id]}registered(e){this.emit("registered",e)}unregistered(e){this.emit("unregistered",e)}registrationFailed(e){this.emit("registrationFailed",e)}receiveRequest(e){var t,n=e.method;if(e.ruri.user!==this._configuration.uri.user&&e.ruri.user!==this._contact.uri.user)y.debug("Request-URI does not point to us"),e.method!==o.ACK&&e.reply_sl(404);else if(e.ruri.scheme===o.SIPS)e.reply_sl(416);else if(!l.checkTransaction(this,e)){if(n===o.INVITE?new l.InviteServerTransaction(this,this._transport,e):n!==o.ACK&&n!==o.CANCEL&&new l.NonInviteServerTransaction(this,this._transport,e),n===o.OPTIONS){if(0===this.listeners("newOptions").length)return void e.reply(200);new c(this).init_incoming(e)}else if(n===o.MESSAGE){if(0===this.listeners("newMessage").length)return void e.reply(405);new u(this).init_incoming(e)}else if(n===o.INVITE&&!e.to_tag&&0===this.listeners("newRTCSession").length)return void e.reply(405);var r,i;if(e.to_tag)(r=this._findDialog(e.call_id,e.from_tag,e.to_tag))?r.receiveRequest(e):n===o.NOTIFY?(i=this._findSession(e))?i.receiveRequest(e):(y.debug("received NOTIFY request for a non existent subscription"),e.reply(481,"Subscription does not exist")):n!==o.ACK&&e.reply(481);else switch(n){case o.INVITE:window.RTCPeerConnection?e.hasHeader("replaces")?(t=e.replaces,(r=this._findDialog(t.call_id,t.from_tag,t.to_tag))?(i=r.owner).isEnded()?e.reply(603):i.receiveRequest(e):e.reply(481)):(i=new a(this)).init_incoming(e):(y.warn("INVITE received but WebRTC is not supported"),e.reply(488));break;case o.BYE:e.reply(481);break;case o.CANCEL:(i=this._findSession(e))?i.receiveRequest(e):y.debug("received CANCEL request for a non existent session");break;case o.ACK:break;case o.NOTIFY:this.emit("sipEvent",{event:e.event,request:e}),e.reply(200);break;default:e.reply(405)}}}_findSession(e){var t=e.call_id,n=e.from_tag,r=e.to_tag;return n=this._sessions[t+n],t=this._sessions[t+r],n||t||null}_findDialog(e,t,n){var r=this._dialogs[e+t+n];return r||this._dialogs[e+n+t]||null}_loadConfig(e){try{_.load(this._configuration,e)}catch(e){throw e}0===this._configuration.display_name&&(this._configuration.display_name="0"),this._configuration.instance_id||(this._configuration.instance_id=h.newUUID()),this._configuration.jssip_id=h.createRandomToken(5);e=this._configuration.uri.clone();e.user=null,this._configuration.hostport_params=e.toString().replace(/^sip:/i,"");try{this._transport=new d(this._configuration.sockets,{max_interval:this._configuration.connection_recovery_max_interval,min_interval:this._configuration.connection_recovery_min_interval}),this._transport.onconnecting=function(e){this.emit("connecting",e)}.bind(this),this._transport.onconnect=function(e){this._status!==b.STATUS_USER_CLOSED&&(this._status=b.STATUS_READY,this._error=null,this.emit("connected",e),this._dynConfiguration.register)&&this._registrator.register()}.bind(this),this._transport.ondisconnect=function(e){for(var t=0,n=["nict","ict","nist","ist"];t<n.length;t++){var r=n[t];for(var i in this._transactions[r])Object.prototype.hasOwnProperty.call(this._transactions[r],i)&&this._transactions[r][i].onTransportError()}this.emit("disconnected",e),this._registrator.onTransportClosed(),this._status!==b.STATUS_USER_CLOSED&&(this._status=b.STATUS_NOT_READY,this._error=b.NETWORK_ERROR)}.bind(this),this._transport.ondata=function(e){var t=e.transport,n=e.message;if((n=v.parseMessage(n,this))&&!(this._status===b.STATUS_USER_CLOSED&&n instanceof m.IncomingRequest)&&g(n,this,t))if(n instanceof m.IncomingRequest)n.transport=t,this.receiveRequest(n);else if(n instanceof m.IncomingResponse){var r;switch(n.method){case o.INVITE:(r=this._transactions.ict[n.via_branch])&&r.receiveResponse(n);break;case o.ACK:break;default:(r=this._transactions.nict[n.via_branch])&&r.receiveResponse(n)}}}.bind(this)}catch(e){throw y.warn(e),new f.ConfigurationError("sockets",this._configuration.sockets)}delete this._configuration.sockets,this._configuration.authorization_user||(this._configuration.authorization_user=this._configuration.uri.user),this._configuration.registrar_server||((e=this._configuration.uri.clone()).user=null,e.clearParams(),e.clearHeaders(),this._configuration.registrar_server=e),this._configuration.no_answer_timeout*=1e3,this._configuration.contact_uri?this._configuration.via_host=this._configuration.contact_uri.host:this._configuration.contact_uri=new p("sip",h.createRandomToken(8),this._configuration.via_host,null,{transport:"ws"}),this._contact={pub_gruu:null,temp_gruu:null,uri:this._configuration.contact_uri,toString(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=t.anonymous||null,r=(t=t.outbound||null,"<");return r+=n?e.temp_gruu||"sip:anonymous@anonymous.invalid;transport=ws":e.pub_gruu||e.uri.toString(),!t||(n?e.temp_gruu:e.pub_gruu)||(r+=";ob"),r+">"}(t)}};var t,n,r=["authorization_user","password","realm","ha1","authorization_jwt","display_name","register","extra_headers"];for(t in this._configuration)Object.prototype.hasOwnProperty.call(this._configuration,t)&&(-1!==r.indexOf(t)?Object.defineProperty(this._configuration,t,{writable:!0,configurable:!1}):Object.defineProperty(this._configuration,t,{writable:!1,configurable:!1}));for(n in y.debug("configuration parameters after validation:"),this._configuration)if(Object.prototype.hasOwnProperty.call(_.settings,n))switch(n){case"uri":case"registrar_server":y.debug(`- ${n}: `+this._configuration[n]);break;case"password":case"ha1":case"authorization_jwt":y.debug(`- ${n}: NOT SHOWN`);break;default:y.debug(`- ${n}: `+JSON.stringify(this._configuration[n]))}}}},7019:function(e,t,n){var r=n(9896),i=n(7196),o=n(9656);e.exports=class e{static parse(e){if(-1!==(e=o.parse(e,"SIP_URI")))return e}constructor(e,t,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(!n)throw new TypeError('missing or invalid "host" parameter');for(var a in this._parameters={},this._headers={},this._scheme=e||r.SIP,this._user=t,this._host=n,this._port=i,o)Object.prototype.hasOwnProperty.call(o,a)&&this.setParam(a,o[a]);for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&this.setHeader(u,s[u])}get scheme(){return this._scheme}set scheme(e){this._scheme=e.toLowerCase()}get user(){return this._user}set user(e){this._user=e}get host(){return this._host}set host(e){this._host=e.toLowerCase()}get port(){return this._port}set port(e){this._port=0===e?e:parseInt(e,10)||null}setParam(e,t){e&&(this._parameters[e.toLowerCase()]=null==t?null:t.toString())}getParam(e){if(e)return this._parameters[e.toLowerCase()]}hasParam(e){if(e)return!!this._parameters.hasOwnProperty(e.toLowerCase())}deleteParam(e){var t;if(e=e.toLowerCase(),this._parameters.hasOwnProperty(e))return t=this._parameters[e],delete this._parameters[e],t}clearParams(){this._parameters={}}setHeader(e,t){this._headers[i.headerize(e)]=Array.isArray(t)?t:[t]}getHeader(e){if(e)return this._headers[i.headerize(e)]}hasHeader(e){if(e)return!!this._headers.hasOwnProperty(i.headerize(e))}deleteHeader(e){var t;if(e=i.headerize(e),this._headers.hasOwnProperty(e))return t=this._headers[e],delete this._headers[e],t}clearHeaders(){this._headers={}}clone(){return new e(this._scheme,this._user,this._host,this._port,JSON.parse(JSON.stringify(this._parameters)),JSON.parse(JSON.stringify(this._headers)))}toString(){var e,t,n=[],r=this._scheme+":";for(e in this._user&&(r+=i.escapeUser(this._user)+"@"),r+=this._host,!this._port&&0!==this._port||(r+=":"+this._port),this._parameters)Object.prototype.hasOwnProperty.call(this._parameters,e)&&(r+=";"+e,null!==this._parameters[e])&&(r+="="+this._parameters[e]);for(t in this._headers)if(Object.prototype.hasOwnProperty.call(this._headers,t)){var o,s=u(this._headers[t]);try{for(s.s();!(o=s.n()).done;){var a=o.value;n.push(t+"="+a)}}catch(c){s.e(c)}finally{s.f()}}return 0<n.length&&(r+="?"+n.join("&")),r}toAor(e){var t=this._scheme+":";return this._user&&(t+=i.escapeUser(this._user)+"@"),t+=this._host,e&&(this._port||0===this._port)&&(t+=":"+this._port),t}}},7196:function(e,t,n){var r=n(9896),i=n(7019),o=n(9656),s=(t.str_utf8_length=e=>unescape(encodeURIComponent(e)).length,t.isFunction=e=>void 0!==e&&"[object Function]"===Object.prototype.toString.call(e)),a=(t.isString=e=>void 0!==e&&"[object String]"===Object.prototype.toString.call(e),t.isDecimal=e=>!isNaN(e)&&parseFloat(e)===parseInt(e,10),t.isEmpty=e=>null===e||""===e||void 0===e||Array.isArray(e)&&0===e.length||"number"==typeof e&&isNaN(e),t.hasMethods=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i];if(s(e[a]))return!1}return!0},t.createRandomToken=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:32,i="";for(t=0;t<e;t++)n=Math.random()*r|0,i+=n.toString(r);return i}),c=(t.newTag=()=>a(10),t.newUUID=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}),t.hostType=e=>{if(e&&-1!==(e=o.parse(e,"host")))return e.host_type},t.escapeUser=e=>encodeURIComponent(decodeURIComponent(e)).replace(/%3A/gi,":").replace(/%2B/gi,"+").replace(/%3F/gi,"?").replace(/%2F/gi,"/"));t.normalizeTarget=(e,t)=>{if(e){if(e instanceof i)return e;if("string"==typeof e){var n,o,s,a=e.split("@");switch(a.length){case 1:if(!t)return;o=e,s=t;break;case 2:o=a[0],s=a[1];break;default:o=a.slice(0,a.length-1).join("@"),s=a[a.length-1]}if(o=o.replace(/^(sips?|tel):/i,""),/^[-.()]*\+?[0-9\-.()]+$/.test(o)&&(o=o.replace(/[-.()]/g,"")),e=`${r.SIP}:${c(o)}@`+s,n=i.parse(e))return n}}},t.headerize=e=>{var t,n={"Call-Id":"Call-ID",Cseq:"CSeq","Www-Authenticate":"WWW-Authenticate"},r=e.toLowerCase().replace(/_/g,"-").split("-"),i="",o=r.length;for(t=0;t<o;t++)0!==t&&(i+="-"),i+=r[t].charAt(0).toUpperCase()+r[t].substring(1);return n[i]?n[i]:i},t.sipErrorCause=e=>{for(var t in r.SIP_ERROR_CAUSES)if(-1!==r.SIP_ERROR_CAUSES[t].indexOf(e))return r.causes[t];return r.causes.SIP_FAILURE_CODE},t.getRandomTestNetIP=()=>{return"192.0.2."+(e=1,t=254,Math.floor(Math.random()*(t-e+1)+e));var e,t},t.calculateMD5=e=>{function t(e,t){return e<<t|e>>>32-t}function n(e,t){var n=2147483648&e,r=2147483648&t,i=1073741824&e,o=1073741824&t;e=(1073741823&e)+(1073741823&t);return i&o?2147483648^e^n^r:i|o?1073741824&e?3221225472^e^n^r:1073741824^e^n^r:e^n^r}function r(e,r,i,o,s,a,u){return e=n(e,n(n(r&i|~r&o,s),u)),n(t(e,a),r)}function i(e,r,i,o,s,a,u){return e=n(e,n(n(r&o|i&~o,s),u)),n(t(e,a),r)}function o(e,r,i,o,s,a,u){return e=n(e,n(n(r^i^o,s),u)),n(t(e,a),r)}function s(e,r,i,o,s,a,u){return e=n(e,n(n(i^(r|~o),s),u)),n(t(e,a),r)}function a(e){var t,n,r="",i="";for(n=0;n<=3;n++)t=e>>>8*n&255,i="0"+t.toString(16),r+=i.substr(i.length-2,2);return r}var u,c,l,d,h,f,p,v,m,g=(e=>{for(var t,n=e.length,r=16*(1+((r=n+8)-r%64)/64),i=new Array(r-1),o=0,s=0;s<n;)t=(s-s%4)/4,o=s%4*8,i[t]=i[t]|e.charCodeAt(s)<<o,s++;return t=(s-s%4)/4,o=s%4*8,i[t]=i[t]|128<<o,i[r-2]=n<<3,i[r-1]=n>>>29,i})(e=(e=>{for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t+=String.fromCharCode(r):t=127<r&&r<2048?(t+=String.fromCharCode(r>>6|192))+String.fromCharCode(63&r|128):(t=(t+=String.fromCharCode(r>>12|224))+String.fromCharCode(r>>6&63|128))+String.fromCharCode(63&r|128)}return t})(e));for(f=1732584193,p=4023233417,v=2562383102,m=271733878,u=0;u<g.length;u+=16)c=f,l=p,d=v,h=m,f=r(f,p,v,m,g[u+0],7,3614090360),m=r(m,f,p,v,g[u+1],12,3905402710),v=r(v,m,f,p,g[u+2],17,606105819),p=r(p,v,m,f,g[u+3],22,3250441966),f=r(f,p,v,m,g[u+4],7,4118548399),m=r(m,f,p,v,g[u+5],12,1200080426),v=r(v,m,f,p,g[u+6],17,2821735955),p=r(p,v,m,f,g[u+7],22,4249261313),f=r(f,p,v,m,g[u+8],7,1770035416),m=r(m,f,p,v,g[u+9],12,2336552879),v=r(v,m,f,p,g[u+10],17,4294925233),p=r(p,v,m,f,g[u+11],22,2304563134),f=r(f,p,v,m,g[u+12],7,1804603682),m=r(m,f,p,v,g[u+13],12,4254626195),v=r(v,m,f,p,g[u+14],17,2792965006),p=r(p,v,m,f,g[u+15],22,1236535329),f=i(f,p,v,m,g[u+1],5,4129170786),m=i(m,f,p,v,g[u+6],9,3225465664),v=i(v,m,f,p,g[u+11],14,643717713),p=i(p,v,m,f,g[u+0],20,3921069994),f=i(f,p,v,m,g[u+5],5,3593408605),m=i(m,f,p,v,g[u+10],9,38016083),v=i(v,m,f,p,g[u+15],14,3634488961),p=i(p,v,m,f,g[u+4],20,3889429448),f=i(f,p,v,m,g[u+9],5,568446438),m=i(m,f,p,v,g[u+14],9,3275163606),v=i(v,m,f,p,g[u+3],14,4107603335),p=i(p,v,m,f,g[u+8],20,1163531501),f=i(f,p,v,m,g[u+13],5,2850285829),m=i(m,f,p,v,g[u+2],9,4243563512),v=i(v,m,f,p,g[u+7],14,1735328473),p=i(p,v,m,f,g[u+12],20,2368359562),f=o(f,p,v,m,g[u+5],4,4294588738),m=o(m,f,p,v,g[u+8],11,2272392833),v=o(v,m,f,p,g[u+11],16,1839030562),p=o(p,v,m,f,g[u+14],23,4259657740),f=o(f,p,v,m,g[u+1],4,2763975236),m=o(m,f,p,v,g[u+4],11,1272893353),v=o(v,m,f,p,g[u+7],16,4139469664),p=o(p,v,m,f,g[u+10],23,3200236656),f=o(f,p,v,m,g[u+13],4,681279174),m=o(m,f,p,v,g[u+0],11,3936430074),v=o(v,m,f,p,g[u+3],16,3572445317),p=o(p,v,m,f,g[u+6],23,76029189),f=o(f,p,v,m,g[u+9],4,3654602809),m=o(m,f,p,v,g[u+12],11,3873151461),v=o(v,m,f,p,g[u+15],16,530742520),p=o(p,v,m,f,g[u+2],23,3299628645),f=s(f,p,v,m,g[u+0],6,4096336452),m=s(m,f,p,v,g[u+7],10,1126891415),v=s(v,m,f,p,g[u+14],15,2878612391),p=s(p,v,m,f,g[u+5],21,4237533241),f=s(f,p,v,m,g[u+12],6,1700485571),m=s(m,f,p,v,g[u+3],10,2399980690),v=s(v,m,f,p,g[u+10],15,4293915773),p=s(p,v,m,f,g[u+1],21,2240044497),f=s(f,p,v,m,g[u+8],6,1873313359),m=s(m,f,p,v,g[u+15],10,4264355552),v=s(v,m,f,p,g[u+6],15,2734768916),p=s(p,v,m,f,g[u+13],21,1309151649),f=s(f,p,v,m,g[u+4],6,4149444226),m=s(m,f,p,v,g[u+11],10,3174756917),v=s(v,m,f,p,g[u+2],15,718787259),p=s(p,v,m,f,g[u+9],21,3951481745),f=n(f,c),p=n(p,l),v=n(v,d),m=n(m,h);return(a(f)+a(p)+a(v)+a(m)).toLowerCase()},t.closeMediaStream=t=>{if(t)try{if(t.getTracks){var n,r=u(t.getTracks());try{for(r.s();!(n=r.n()).done;){var i=n.value;i.stop()}}catch(h){r.e(h)}finally{r.f()}}else{var o,s=u(t.getAudioTracks());try{for(s.s();!(o=s.n()).done;){var a=o.value;a.stop()}}catch(h){s.e(h)}finally{s.f()}var c,l=u(t.getVideoTracks());try{for(l.s();!(c=l.n()).done;){var d=c.value;d.stop()}}catch(h){l.e(h)}finally{l.f()}}}catch(e){"function"!=typeof t.stop&&"object"!=typeof t.stop||t.stop()}},t.cloneArray=e=>e&&e.slice()||[],t.cloneObject=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e&&Object.assign({},e)||t}},2159:function(e,t,n){var r=n(3422),i=n(9656),o=new r("WebSocketInterface");e.exports=class{constructor(e){o.debug('new() [url:"%s"]',e),this._url=e,this._sip_uri=null,this._via_transport=null,this._ws=null;var t=i.parse(e,"absoluteURI");if(-1===t)throw o.warn("invalid WebSocket URI: "+e),new TypeError("Invalid argument: "+e);if("wss"!==t.scheme&&"ws"!==t.scheme)throw o.warn("invalid WebSocket URI scheme: "+t.scheme),new TypeError("Invalid argument: "+e);this._sip_uri=`sip:${t.host}${t.port?":"+t.port:""};transport=ws`,this._via_transport=t.scheme.toUpperCase()}get via_transport(){return this._via_transport}set via_transport(e){this._via_transport=e.toUpperCase()}get sip_uri(){return this._sip_uri}get url(){return this._url}connect(){if(o.debug("connect()"),this.isConnected())o.debug(`WebSocket ${this._url} is already connected`);else if(this.isConnecting())o.debug(`WebSocket ${this._url} is connecting`);else{this._ws&&this.disconnect(),o.debug("connecting to WebSocket "+this._url);try{this._ws=new WebSocket(this._url,"sip"),this._ws.binaryType="arraybuffer",this._ws.onopen=this._onOpen.bind(this),this._ws.onclose=this._onClose.bind(this),this._ws.onmessage=this._onMessage.bind(this),this._ws.onerror=this._onError.bind(this)}catch(e){this._onError(e)}}}disconnect(){o.debug("disconnect()"),this._ws&&(this._ws.onopen=()=>{},this._ws.onclose=()=>{},this._ws.onmessage=()=>{},this._ws.onerror=()=>{},this._ws.close(),this._ws=null)}send(e){return o.debug("send()"),this.isConnected()?(this._ws.send(e),!0):(o.warn("unable to send message, WebSocket is not open"),!1)}isConnected(){return this._ws&&this._ws.readyState===this._ws.OPEN}isConnecting(){return this._ws&&this._ws.readyState===this._ws.CONNECTING}_onOpen(){o.debug(`WebSocket ${this._url} connected`),this.onconnect()}_onClose(e){var t=e.wasClean,n=e.code,r=e.reason;o.debug(`WebSocket ${this._url} closed`),!1===t&&o.debug("WebSocket abrupt disconnection"),this.ondisconnect(!t,n,r)}_onMessage(e){var t=e.data;o.debug("received WebSocket message"),this.ondata(t)}_onError(e){o.warn(`WebSocket ${this._url} error: `,e)}}},5443:function(e,t,n){var r,i,o,s=n(3422),a=n(9896),c=n(2602),l=n(7196),d=new s("sanityCheck"),h=[function(){for(var e=0,t=["from","to","call_id","cseq","via"];e<t.length;e++){var n=t[e];if(!r.hasHeader(n))return d.debug(`missing mandatory header field : ${n}, dropping the response`),!1}}],f=[function(){if("sip"!==r.s("to").uri.scheme)return v(416),!1},function(){if(!r.to_tag&&r.call_id.substr(0,5)===i.configuration.jssip_id)return v(482),!1},function(){var e=l.str_utf8_length(r.body),t=r.getHeader("content-length");if(e<t)return v(400),!1},function(){var e,t=r.from_tag,n=r.call_id,o=r.cseq;if(!r.to_tag)if(r.method===a.INVITE){if(i._transactions.ist[r.via_branch])return!1;for(var s in i._transactions.ist)if(Object.prototype.hasOwnProperty.call(i._transactions.ist,s)&&(e=i._transactions.ist[s]).request.from_tag===t&&e.request.call_id===n&&e.request.cseq===o)return v(482),!1}else{if(i._transactions.nist[r.via_branch])return!1;for(var u in i._transactions.nist)if(Object.prototype.hasOwnProperty.call(i._transactions.nist,u)&&(e=i._transactions.nist[u]).request.from_tag===t&&e.request.call_id===n&&e.request.cseq===o)return v(482),!1}}],p=[function(){if(1<r.getHeaders("via").length)return d.debug("more than one Via header field present in the response, dropping the response"),!1},function(){var e=l.str_utf8_length(r.body),t=r.getHeader("content-length");if(e<t)return d.debug("message body length is lower than the value in Content-Length header field, dropping the response"),!1}];function v(e){var t,n,i,s=r.getHeaders("via"),c=`SIP/2.0 ${e} ${a.REASON_PHRASE[e]}\r\n`,d=u(s);try{for(d.s();!(i=d.n()).done;)t=i.value,c+=`Via: ${t}\r\n`}catch(h){d.e(h)}finally{d.f()}n=r.getHeader("To"),r.to_tag||(n+=";tag="+l.newTag()),c=(c=(c=(c+=`To: ${n}\r\n`)+`From: ${r.getHeader("From")}\r\n`)+`Call-ID: ${r.call_id}\r\n`)+`CSeq: ${r.cseq} ${r.method}\r\n\r\n`,o.send(c)}e.exports=(e,t,n)=>{r=e,i=t,o=n;for(var s=0,a=h;s<a.length;s++){var u=a[s];if(!1===u())return!1}if(r instanceof c.IncomingRequest)for(var l=0,d=f;l<d.length;l++){var v=d[l];if(!1===v())return!1}else if(r instanceof c.IncomingResponse)for(var m=0,g=p;m<g.length;m++){var _=g[m];if(!1===_())return!1}return!0}},9192:function(e){var t=864e5;function n(e,t,n,r){return t=1.5*n<=t,Math.round(e/n)+" "+r+(t?"s":"")}e.exports=function(e,r){r=r||{};var i=typeof e;if(!("string"==i&&0<e.length)){if("number"==i&&isFinite(e))return(r.long?e=>{var r=Math.abs(e);return t<=r?n(e,r,t,"day"):36e5<=r?n(e,r,36e5,"hour"):6e4<=r?n(e,r,6e4,"minute"):1e3<=r?n(e,r,1e3,"second"):e+" ms"}:e=>{var n=Math.abs(e);return t<=n?Math.round(e/t)+"d":36e5<=n?Math.round(e/36e5)+"h":6e4<=n?Math.round(e/6e4)+"m":1e3<=n?Math.round(e/1e3)+"s":e+"ms"})(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}if(i=e,!(100<(i=String(i)).length)&&(i=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i),i)){var o=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*o;case"weeks":case"week":case"w":return 6048e5*o;case"days":case"day":case"d":return o*t;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*o;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*o;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*o;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}}},7893:function(e){var t=e.exports={v:[{name:"version",reg:/^(\d*)$/}],o:[{name:"origin",reg:/^(\S*) (\d*) (\d*) (\S*) IP(\d) (\S*)/,names:["username","sessionId","sessionVersion","netType","ipVer","address"],format:"%s %s %d %s IP%d %s"}],s:[{name:"name"}],i:[{name:"description"}],u:[{name:"uri"}],e:[{name:"email"}],p:[{name:"phone"}],z:[{name:"timezones"}],r:[{name:"repeats"}],t:[{name:"timing",reg:/^(\d*) (\d*)/,names:["start","stop"],format:"%d %d"}],c:[{name:"connection",reg:/^IN IP(\d) (\S*)/,names:["version","ip"],format:"IN IP%d %s"}],b:[{push:"bandwidth",reg:/^(TIAS|AS|CT|RR|RS):(\d*)/,names:["type","limit"],format:"%s:%s"}],m:[{reg:/^(\w*) (\d*) ([\w/]*)(?: (.*))?/,names:["type","port","protocol","payloads"],format:"%s %d %s %s"}],a:[{push:"rtp",reg:/^rtpmap:(\d*) ([\w\-.]*)(?:\s*\/(\d*)(?:\s*\/(\S*))?)?/,names:["payload","codec","rate","encoding"],format:function(e){return e.encoding?"rtpmap:%d %s/%s/%s":e.rate?"rtpmap:%d %s/%s":"rtpmap:%d %s"}},{push:"fmtp",reg:/^fmtp:(\d*) ([\S| ]*)/,names:["payload","config"],format:"fmtp:%d %s"},{name:"control",reg:/^control:(.*)/,format:"control:%s"},{name:"rtcp",reg:/^rtcp:(\d*)(?: (\S*) IP(\d) (\S*))?/,names:["port","netType","ipVer","address"],format:function(e){return null!=e.address?"rtcp:%d %s IP%d %s":"rtcp:%d"}},{push:"rtcpFbTrrInt",reg:/^rtcp-fb:(\*|\d*) trr-int (\d*)/,names:["payload","value"],format:"rtcp-fb:%s trr-int %d"},{push:"rtcpFb",reg:/^rtcp-fb:(\*|\d*) ([\w-_]*)(?: ([\w-_]*))?/,names:["payload","type","subtype"],format:function(e){return null!=e.subtype?"rtcp-fb:%s %s %s":"rtcp-fb:%s %s"}},{push:"ext",reg:/^extmap:(\d+)(?:\/(\w+))?(?: (urn:ietf:params:rtp-hdrext:encrypt))? (\S*)(?: (\S*))?/,names:["value","direction","encrypt-uri","uri","config"],format:function(e){return"extmap:%d"+(e.direction?"/%s":"%v")+(e["encrypt-uri"]?" %s":"%v")+" %s"+(e.config?" %s":"")}},{name:"extmapAllowMixed",reg:/^(extmap-allow-mixed)/},{push:"crypto",reg:/^crypto:(\d*) ([\w_]*) (\S*)(?: (\S*))?/,names:["id","suite","config","sessionConfig"],format:function(e){return null!=e.sessionConfig?"crypto:%d %s %s %s":"crypto:%d %s %s"}},{name:"setup",reg:/^setup:(\w*)/,format:"setup:%s"},{name:"connectionType",reg:/^connection:(new|existing)/,format:"connection:%s"},{name:"mid",reg:/^mid:([^\s]*)/,format:"mid:%s"},{name:"msid",reg:/^msid:(.*)/,format:"msid:%s"},{name:"ptime",reg:/^ptime:(\d*(?:\.\d*)*)/,format:"ptime:%d"},{name:"maxptime",reg:/^maxptime:(\d*(?:\.\d*)*)/,format:"maxptime:%d"},{name:"direction",reg:/^(sendrecv|recvonly|sendonly|inactive)/},{name:"icelite",reg:/^(ice-lite)/},{name:"iceUfrag",reg:/^ice-ufrag:(\S*)/,format:"ice-ufrag:%s"},{name:"icePwd",reg:/^ice-pwd:(\S*)/,format:"ice-pwd:%s"},{name:"fingerprint",reg:/^fingerprint:(\S*) (\S*)/,names:["type","hash"],format:"fingerprint:%s %s"},{push:"candidates",reg:/^candidate:(\S*) (\d*) (\S*) (\d*) (\S*) (\d*) typ (\S*)(?: raddr (\S*) rport (\d*))?(?: tcptype (\S*))?(?: generation (\d*))?(?: network-id (\d*))?(?: network-cost (\d*))?/,names:["foundation","component","transport","priority","ip","port","type","raddr","rport","tcptype","generation","network-id","network-cost"],format:function(e){var t="candidate:%s %d %s %d %s %d typ %s";t=(t+=null!=e.raddr?" raddr %s rport %d":"%v%v")+(null!=e.tcptype?" tcptype %s":"%v");return null!=e.generation&&(t+=" generation %d"),t+(null!=e["network-id"]?" network-id %d":"%v")+(null!=e["network-cost"]?" network-cost %d":"%v")}},{name:"endOfCandidates",reg:/^(end-of-candidates)/},{name:"remoteCandidates",reg:/^remote-candidates:(.*)/,format:"remote-candidates:%s"},{name:"iceOptions",reg:/^ice-options:(\S*)/,format:"ice-options:%s"},{push:"ssrcs",reg:/^ssrc:(\d*) ([\w_-]*)(?::(.*))?/,names:["id","attribute","value"],format:function(e){var t="ssrc:%d";return null!=e.attribute&&(t+=" %s",null!=e.value)&&(t+=":%s"),t}},{push:"ssrcGroups",reg:/^ssrc-group:([\x21\x23\x24\x25\x26\x27\x2A\x2B\x2D\x2E\w]*) (.*)/,names:["semantics","ssrcs"],format:"ssrc-group:%s %s"},{name:"msidSemantic",reg:/^msid-semantic:\s?(\w*) (\S*)/,names:["semantic","token"],format:"msid-semantic: %s %s"},{push:"groups",reg:/^group:(\w*) (.*)/,names:["type","mids"],format:"group:%s %s"},{name:"rtcpMux",reg:/^(rtcp-mux)/},{name:"rtcpRsize",reg:/^(rtcp-rsize)/},{name:"sctpmap",reg:/^sctpmap:([\w_/]*) (\S*)(?: (\S*))?/,names:["sctpmapNumber","app","maxMessageSize"],format:function(e){return null!=e.maxMessageSize?"sctpmap:%s %s %s":"sctpmap:%s %s"}},{name:"xGoogleFlag",reg:/^x-google-flag:([^\s]*)/,format:"x-google-flag:%s"},{push:"rids",reg:/^rid:([\d\w]+) (\w+)(?: ([\S| ]*))?/,names:["id","direction","params"],format:function(e){return e.params?"rid:%s %s %s":"rid:%s %s"}},{push:"imageattrs",reg:new RegExp("^imageattr:(\\d+|\\*)[\\s\\t]+(send|recv)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*)(?:[\\s\\t]+(recv|send)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*))?"),names:["pt","dir1","attrs1","dir2","attrs2"],format:function(e){return"imageattr:%s %s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast",reg:new RegExp("^simulcast:(send|recv) ([a-zA-Z0-9\\-_~;,]+)(?:\\s?(send|recv) ([a-zA-Z0-9\\-_~;,]+))?$"),names:["dir1","list1","dir2","list2"],format:function(e){return"simulcast:%s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast_03",reg:/^simulcast:[\s\t]+([\S+\s\t]+)$/,names:["value"],format:"simulcast: %s"},{name:"framerate",reg:/^framerate:(\d+(?:$|\.\d+))/,format:"framerate:%s"},{name:"sourceFilter",reg:/^source-filter: *(excl|incl) (\S*) (IP4|IP6|\*) (\S*) (.*)/,names:["filterMode","netType","addressTypes","destAddress","srcList"],format:"source-filter: %s %s %s %s %s"},{name:"bundleOnly",reg:/^(bundle-only)/},{name:"label",reg:/^label:(.+)/,format:"label:%s"},{name:"sctpPort",reg:/^sctp-port:(\d+)$/,format:"sctp-port:%s"},{name:"maxMessageSize",reg:/^max-message-size:(\d+)$/,format:"max-message-size:%s"},{push:"tsRefClocks",reg:/^ts-refclk:([^\s=]*)(?:=(\S*))?/,names:["clksrc","clksrcExt"],format:function(e){return"ts-refclk:%s"+(null!=e.clksrcExt?"=%s":"")}},{name:"mediaClk",reg:/^mediaclk:(?:id=(\S*))? *([^\s=]*)(?:=(\S*))?(?: *rate=(\d+)\/(\d+))?/,names:["id","mediaClockName","mediaClockValue","rateNumerator","rateDenominator"],format:function(e){var t="mediaclk:";return(t+=null!=e.id?"id=%s %s":"%v%s")+(null!=e.mediaClockValue?"=%s":"")+(null!=e.rateNumerator?" rate=%s":"")+(null!=e.rateDenominator?"/%s":"")}},{name:"keywords",reg:/^keywds:(.+)$/,format:"keywds:%s"},{name:"content",reg:/^content:(.+)/,format:"content:%s"},{name:"bfcpFloorCtrl",reg:/^floorctrl:(c-only|s-only|c-s)/,format:"floorctrl:%s"},{name:"bfcpConfId",reg:/^confid:(\d+)/,format:"confid:%s"},{name:"bfcpUserId",reg:/^userid:(\d+)/,format:"userid:%s"},{name:"bfcpFloorId",reg:/^floorid:(.+) (?:m-stream|mstrm):(.+)/,names:["id","mStream"],format:"floorid:%s mstrm:%s"},{push:"invalid",names:["value"]}]};Object.keys(t).forEach((function(e){t[e].forEach((function(e){e.reg||(e.reg=/(.*)/),e.format||(e.format="%s")}))}))},8844:function(e,t,n){var r=n(937),i=n(2473);n=n(7893);t.grammar=n,t.write=i,t.parse=r.parse,t.parseParams=r.parseParams,t.parseFmtpConfig=r.parseFmtpConfig,t.parsePayloads=r.parsePayloads,t.parseRemoteCandidates=r.parseRemoteCandidates,t.parseImageAttributes=r.parseImageAttributes,t.parseSimulcastStreamList=r.parseSimulcastStreamList},937:function(e,t,n){function r(e,t,n){var r=e.name&&e.names,i=(r=(e.push&&!t[e.push]?t[e.push]=[]:r&&!t[e.name]&&(t[e.name]={}),e.push?{}:r?t[e.name]:t),n.match(e.reg)),s=r,a=e.names;if((n=e.name)&&!a)s[n]=o(i[1]);else for(var u=0;u<a.length;u+=1)null!=i[u+1]&&(s[a[u]]=o(i[u+1]));e.push&&t[e.push].push(r)}function i(e,t){var n=t.split(/=(.+)/,2);return 2===n.length?e[n[0]]=o(n[1]):1===n.length&&1<t.length&&(e[n[0]]=void 0),e}var o=function(e){return String(Number(e))===e?Number(e):e},s=n(7893),a=RegExp.prototype.test.bind(/^([a-z])=(.*)/);t.parse=function(e){var t={},n=[],i=t;return e.split(/(\r\n|\r|\n)/).filter(a).forEach((function(e){var t=e[0],o=e.slice(2);"m"===t&&(n.push({rtp:[],fmtp:[]}),i=n[n.length-1]);for(var a=0;a<(s[t]||[]).length;a+=1){var u=s[t][a];if(u.reg.test(o))return r(u,i,o)}})),t.media=n,t},t.parseParams=function(e){return e.split(/;\s?/).reduce(i,{})},t.parseFmtpConfig=t.parseParams,t.parsePayloads=function(e){return e.toString().split(" ").map(Number)},t.parseRemoteCandidates=function(e){for(var t=[],n=e.split(" ").map(o),r=0;r<n.length;r+=3)t.push({component:n[r],ip:n[r+1],port:n[r+2]});return t},t.parseImageAttributes=function(e){return e.split(" ").map((function(e){return e.substring(1,e.length-1).split(",").reduce(i,{})}))},t.parseSimulcastStreamList=function(e){return e.split(";").map((function(e){return e.split(",").map((function(e){var t,n=!1;return"~"!==e[0]?t=o(e):(t=o(e.substring(1,e.length)),n=!0),{scid:t,paused:n}}))}))}},2473:function(e,t,n){function r(e,t,n){var r=[e+"="+(t.format instanceof Function?t.format(t.push?n:n[t.name]):t.format)];if(t.names)for(var i=0;i<t.names.length;i+=1){var s=t.names[i];r.push(t.name?n[t.name][s]:n[t.names[i]])}else r.push(n[t.name]);return function(e){var t=1,n=arguments,r=n.length;return e.replace(o,(function(e){if(r<=t)return e;var i=n[t];switch(t+=1,e){case"%%":return"%";case"%s":return String(i);case"%d":return Number(i);case"%v":return""}}))}.apply(null,r)}var i=n(7893),o=/%[sdv%]/g,s=["v","o","s","i","u","e","p","c","b","t","r","z","a"],a=["i","c","b","a"];e.exports=function(e,t){t=t||{},null==e.version&&(e.version=0),null==e.name&&(e.name=" "),e.media.forEach((function(e){null==e.payloads&&(e.payloads="")}));var n=t.outerOrder||s,o=t.innerOrder||a,u=[];return n.forEach((function(t){i[t].forEach((function(n){n.name in e&&null!=e[n.name]?u.push(r(t,n,e)):n.push in e&&null!=e[n.push]&&e[n.push].forEach((function(e){u.push(r(t,n,e))}))}))})),e.media.forEach((function(e){u.push(r("m",i.m[0],e)),o.forEach((function(t){i[t].forEach((function(n){n.name in e&&null!=e[n.name]?u.push(r(t,n,e)):n.push in e&&null!=e[n.push]&&e[n.push].forEach((function(e){u.push(r(t,n,e))}))}))}))})),u.join("\r\n")+"\r\n"}},962:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"MAX",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"v1ToV6",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"v6",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"v6ToV1",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"v7",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return m.default}});var r=g(n(4768)),i=g(n(8413)),o=g(n(7777)),s=g(n(2463)),a=g(n(3253)),u=g(n(3948)),c=g(n(4659)),l=g(n(970)),d=g(n(7401)),h=g(n(2752)),f=g(n(4736)),p=g(n(1527)),v=g(n(6838)),m=g(n(5830));function g(e){return e&&e.__esModule?e:{default:e}}},4768:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="ffffffff-ffff-ffff-ffff-ffffffffffff"},2414:function(e,t){function n(e){return 14+(e+64>>>9<<4)+1}function r(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function i(e,t,n,i,o,s){return r((t=r(r(t,e),r(i,s)))<<o|t>>>32-o,n)}function o(e,t,n,r,o,s,a){return i(t&n|~t&r,e,t,o,s,a)}function s(e,t,n,r,o,s,a){return i(t&r|n&~r,e,t,o,s,a)}function a(e,t,n,r,o,s,a){return i(t^n^r,e,t,o,s,a)}function u(e,t,n,r,o,s,a){return i(n^(t|~r),e,t,o,s,a)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var i=0;i<t.length;++i)e[i]=t.charCodeAt(i)}for(var c=((e,t)=>{e[t>>5]|=128<<t%32,e[n(t)-1]=t;for(var i=1732584193,c=-271733879,l=-1732584194,d=271733878,h=0;h<e.length;h+=16){var f=i,p=c,v=l,m=d;i=o(i,c,l,d,e[h],7,-680876936),d=o(d,i,c,l,e[h+1],12,-389564586),l=o(l,d,i,c,e[h+2],17,606105819),c=o(c,l,d,i,e[h+3],22,-1044525330),i=o(i,c,l,d,e[h+4],7,-176418897),d=o(d,i,c,l,e[h+5],12,1200080426),l=o(l,d,i,c,e[h+6],17,-1473231341),c=o(c,l,d,i,e[h+7],22,-45705983),i=o(i,c,l,d,e[h+8],7,1770035416),d=o(d,i,c,l,e[h+9],12,-1958414417),l=o(l,d,i,c,e[h+10],17,-42063),c=o(c,l,d,i,e[h+11],22,-1990404162),i=o(i,c,l,d,e[h+12],7,1804603682),d=o(d,i,c,l,e[h+13],12,-40341101),l=o(l,d,i,c,e[h+14],17,-1502002290),c=o(c,l,d,i,e[h+15],22,1236535329),i=s(i,c,l,d,e[h+1],5,-165796510),d=s(d,i,c,l,e[h+6],9,-1069501632),l=s(l,d,i,c,e[h+11],14,643717713),c=s(c,l,d,i,e[h],20,-373897302),i=s(i,c,l,d,e[h+5],5,-701558691),d=s(d,i,c,l,e[h+10],9,38016083),l=s(l,d,i,c,e[h+15],14,-660478335),c=s(c,l,d,i,e[h+4],20,-405537848),i=s(i,c,l,d,e[h+9],5,568446438),d=s(d,i,c,l,e[h+14],9,-1019803690),l=s(l,d,i,c,e[h+3],14,-187363961),c=s(c,l,d,i,e[h+8],20,1163531501),i=s(i,c,l,d,e[h+13],5,-1444681467),d=s(d,i,c,l,e[h+2],9,-51403784),l=s(l,d,i,c,e[h+7],14,1735328473),c=s(c,l,d,i,e[h+12],20,-1926607734),i=a(i,c,l,d,e[h+5],4,-378558),d=a(d,i,c,l,e[h+8],11,-2022574463),l=a(l,d,i,c,e[h+11],16,1839030562),c=a(c,l,d,i,e[h+14],23,-35309556),i=a(i,c,l,d,e[h+1],4,-1530992060),d=a(d,i,c,l,e[h+4],11,1272893353),l=a(l,d,i,c,e[h+7],16,-155497632),c=a(c,l,d,i,e[h+10],23,-1094730640),i=a(i,c,l,d,e[h+13],4,681279174),d=a(d,i,c,l,e[h],11,-358537222),l=a(l,d,i,c,e[h+3],16,-722521979),c=a(c,l,d,i,e[h+6],23,76029189),i=a(i,c,l,d,e[h+9],4,-640364487),d=a(d,i,c,l,e[h+12],11,-421815835),l=a(l,d,i,c,e[h+15],16,530742520),c=a(c,l,d,i,e[h+2],23,-995338651),i=u(i,c,l,d,e[h],6,-198630844),d=u(d,i,c,l,e[h+7],10,1126891415),l=u(l,d,i,c,e[h+14],15,-1416354905),c=u(c,l,d,i,e[h+5],21,-57434055),i=u(i,c,l,d,e[h+12],6,1700485571),d=u(d,i,c,l,e[h+3],10,-1894986606),l=u(l,d,i,c,e[h+10],15,-1051523),c=u(c,l,d,i,e[h+1],21,-2054922799),i=u(i,c,l,d,e[h+8],6,1873313359),d=u(d,i,c,l,e[h+15],10,-30611744),l=u(l,d,i,c,e[h+6],15,-1560198380),c=u(c,l,d,i,e[h+13],21,1309151649),i=u(i,c,l,d,e[h+4],6,-145523070),d=u(d,i,c,l,e[h+11],10,-1120210379),l=u(l,d,i,c,e[h+2],15,718787259),c=u(c,l,d,i,e[h+9],21,-343485551),i=r(i,f),c=r(c,p),l=r(l,v),d=r(d,m)}return[i,c,l,d]})((e=>{if(0===e.length)return[];for(var t=8*e.length,r=new Uint32Array(n(t)),i=0;i<t;i+=8)r[i>>5]|=(255&e[i/8])<<i%32;return r})(e),8*e.length),l=[],d=32*c.length,h="0123456789abcdef",f=0;f<d;f+=8){var p=c[f>>5]>>>f%32&255;p=parseInt(h.charAt(p>>>4&15)+h.charAt(15&p),16);l.push(p)}return l}},7167:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);t.default={randomUUID:n}},8413:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},7777:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(n=n(6838))&&n.__esModule?n:{default:n};t.default=function(e){var t,n;if((0,r.default)(e))return(n=new Uint8Array(16))[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n;throw TypeError("Invalid UUID")}},3541:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i},5175:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(r)};var n,r=new Uint8Array(16)},4361:function(e,t){function n(e,t){return e<<t|e>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var i=unescape(encodeURIComponent(e));e=[];for(var o=0;o<i.length;++o)e.push(i.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var s=e.length/4+2,a=Math.ceil(s/16),u=new Array(a),c=0;c<a;++c){for(var l=new Uint32Array(16),d=0;d<16;++d)l[d]=e[64*c+4*d]<<24|e[64*c+4*d+1]<<16|e[64*c+4*d+2]<<8|e[64*c+4*d+3];u[c]=l}u[a-1][14]=8*(e.length-1)/Math.pow(2,32),u[a-1][14]=Math.floor(u[a-1][14]),u[a-1][15]=8*(e.length-1)&4294967295;for(var h=0;h<a;++h){for(var f=new Uint32Array(80),p=0;p<16;++p)f[p]=u[h][p];for(var v=16;v<80;++v)f[v]=n(f[v-3]^f[v-8]^f[v-14]^f[v-16],1);for(var m=r[0],g=r[1],_=r[2],y=r[3],b=r[4],w=0;w<80;++w){var T=Math.floor(w/20);T=n(m,5)+((e,t,n,r)=>{switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}})(T,g,_,y)+b+t[T]+f[w]>>>0,b=y,y=_,_=n(g,30)>>>0,g=m,m=T}r[0]=r[0]+m>>>0,r[1]=r[1]+g>>>0,r[2]=r[2]+_>>>0,r[3]=r[3]+y>>>0,r[4]=r[4]+b>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}},2463:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=s;for(var r=(n=n(6838))&&n.__esModule?n:{default:n},i=[],o=0;o<256;++o)i.push((o+256).toString(16).slice(1));function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase()}t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e=s(e,t),(0,r.default)(e))return e;throw TypeError("Stringified UUID is invalid")}},3253:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i,o,s=(r=n(5175))&&r.__esModule?r:{default:r},a=n(2463),u=0,c=0;t.default=function(e,t,n){var r=t&&n||0,l=t||new Array(16),d=(e=e||{}).node,h=(n=e.clockseq,e._v6||(d=d||i,null==n&&(n=o)),null!=d&&null!=n||(h=e.random||(e.rng||s.default)(),null==d&&(d=[h[0],h[1],h[2],h[3],h[4],h[5]],i||e._v6||(d[0]|=1,i=d)),null==n&&(n=16383&(h[6]<<8|h[7]),void 0!==o||e._v6||(o=n))),void 0!==e.msecs?e.msecs:Date.now()),f=void 0!==e.nsecs?e.nsecs:c+1,p=h-u+(f-c)/1e4;if(p<0&&void 0===e.clockseq&&(n=n+1&16383),1e4<=(f=(p<0||u<h)&&void 0===e.nsecs?0:f))throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=h,o=n,p=(1e4*(268435455&(h+=122192928e5))+(c=f))%4294967296,l[r++]=p>>>24&255,l[r++]=p>>>16&255,l[r++]=p>>>8&255,l[r++]=255&p,l[r++]=(e=h/4294967296*1e4&268435455)>>>8&255,l[r++]=255&e,l[r++]=e>>>24&15|16,l[r++]=e>>>16&255,l[r++]=n>>>8|128,l[r++]=255&n;for(var v=0;v<6;++v)l[r+v]=d[v];return t||(0,a.unsafeStringify)(l)}},3948:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=(e=>Uint8Array.of((15&e[6])<<4|e[7]>>4&15,(15&e[7])<<4|(240&e[4])>>4,(15&e[4])<<4|(240&e[5])>>4,(15&e[5])<<4|(240&e[0])>>4,(15&e[0])<<4|(240&e[1])>>4,(15&e[1])<<4|(240&e[2])>>4,96|15&e[2],e[3],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]))("string"==typeof e?(0,r.default)(e):e);return"string"==typeof e?(0,i.unsafeStringify)(t):t};var r=(t=n(7777))&&t.__esModule?t:{default:t},i=n(2463)},4659:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4416));n=i(n(2414));function i(e){return e&&e.__esModule?e:{default:e}}r=(0,r.default)("v3",48,n.default),t.default=r},4416:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,n){function a(e,o,s,a){var u;if("string"==typeof e&&(e=(e=>{e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t})(e)),16!==(null==(u=o="string"==typeof o?(0,i.default)(o):o)?void 0:u.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var c=new Uint8Array(16+e.length);if(c.set(o),c.set(e,o.length),(c=n(c))[6]=15&c[6]|t,c[8]=63&c[8]|128,s){a=a||0;for(var l=0;l<16;++l)s[a+l]=c[l];return s}return(0,r.unsafeStringify)(c)}try{a.name=e}catch(e){}return a.DNS=o,a.URL=s,a};var r=n(2463),i=(n=n(7777))&&n.__esModule?n:{default:n},o=t.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",s=t.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8"},970:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(7167)),i=s(n(5175)),o=n(2463);function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,n){if(r.default.randomUUID&&!t&&!e)return r.default.randomUUID();var s=(e=e||{}).random||(e.rng||i.default)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){n=n||0;for(var a=0;a<16;++a)t[n+a]=s[a];return t}return(0,o.unsafeStringify)(s)}},7401:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4416));n=i(n(4361));function i(e){return e&&e.__esModule?e:{default:e}}r=(0,r.default)("v5",80,n.default),t.default=r},2752:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=(0,i.default)(u(u({},e),{},{_v6:!0}),new Uint8Array(16));if(s=(0,o.default)(s),t){for(var a=0;a<16;a++)t[n+a]=s[a];return t}return(0,r.unsafeStringify)(s)};var r=n(2463),i=s(n(3253)),o=s(n(3948));function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){var r,i;r=e,i=n[t=t],(t=(e=>"symbol"==typeof(e=((e,t)=>{if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);if("object"!=typeof(n=n.call(e,t||"default")))return n;throw new TypeError("@@toPrimitive must return a primitive value.")})(e,"string"))?e:e+"")(t))in r?Object.defineProperty(r,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[t]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},4736:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=(e=>Uint8Array.of((15&e[3])<<4|e[4]>>4&15,(15&e[4])<<4|(240&e[5])>>4,(15&e[5])<<4|15&e[6],e[7],(15&e[1])<<4|(240&e[2])>>4,(15&e[2])<<4|(240&e[3])>>4,16|(240&e[0])>>4,(15&e[0])<<4|(240&e[1])>>4,e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]))("string"==typeof e?(0,r.default)(e):e);return"string"==typeof e?(0,i.unsafeStringify)(t):t};var r=(t=n(7777))&&t.__esModule?t:{default:t},i=n(2463)},1527:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(5175))&&r.__esModule?r:{default:r},o=n(2463),s=null,a=null,u=0;t.default=function(e,t,n){e=e||{};n=t&&n||0;var r=t||new Uint8Array(16),c=e.random||(e.rng||i.default)(),l=void 0!==e.msecs?e.msecs:Date.now(),d=void 0!==e.seq?e.seq:null,h=a,f=s;return u<l&&void 0===e.msecs&&(u=l,null!==d)&&(f=h=null),null!==d&&(h=(d=2147483647<d?2147483647:d)>>>19&4095,f=524287&d),null!==h&&null!==f||(h=(h=127&c[6])<<8|c[7],f=(f=(f=63&c[8])<<8|c[9])<<5|c[10]>>>3),u<l+1e4&&null===d?524287<++f&&(f=0,4095<++h)&&(h=0,u++):u=l,a=h,s=f,r[n++]=u/1099511627776&255,r[n++]=u/4294967296&255,r[n++]=u/16777216&255,r[n++]=u/65536&255,r[n++]=u/256&255,r[n++]=255&u,r[n++]=h>>>4&15|112,r[n++]=255&h,r[n++]=f>>>13&63|128,r[n++]=f>>>5&255,r[n++]=f<<3&255|7&c[10],r[n++]=c[11],r[n++]=c[12],r[n++]=c[13],r[n++]=c[14],r[+n]=c[15],t||(0,o.unsafeStringify)(r)}},6838:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(n=n(3541))&&n.__esModule?n:{default:n};t.default=function(e){return"string"==typeof e&&r.default.test(e)}},5830:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(n=n(6838))&&n.__esModule?n:{default:n};t.default=function(e){if((0,r.default)(e))return parseInt(e.slice(14,15),16);throw TypeError("Invalid UUID")}},3422:function(e,t,n){var r=n(8569),i=r(n(2942)),o=r(n(8408)),s=n(8878),a="SIP_MIX";function u(e){"undefined"!=typeof window&&window.CustomEvent&&(e=new CustomEvent("__AppLog",{detail:e}),document.dispatchEvent(e))}e.exports=(()=>(0,o.default)((function e(t){(0,i.default)(this,e),t?(this._debug=s.default("".concat(a,":").concat(t)),this._warn=s.default("".concat(a,":WARN:").concat(t)),this._error=s.default("".concat(a,":ERROR:").concat(t))):(this._debug=s.default(a),this._warn=s.default("".concat(a,":WARN")),this._error=s.default("".concat(a,":ERROR"))),this._debug.log=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];console.info.apply(console,n),u({type:"info",app:a,prefix:t,args:n})},this._warn.log=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];console.warn.apply(console,n),u({type:"warn",app:a,prefix:t,args:n})},this._error.log=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];console.error.apply(console,n),u({type:"error",app:a,prefix:t,args:n})}}),[{key:"debug",get:function(){return this._debug}},{key:"warn",get:function(){return this._warn}},{key:"error",get:function(){return this._error}}]))()},604:function(e,t,n){var r=n(8569),i=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(n(2942))),o=r(n(8408)),s=r(n(6759)),a=r(n(9165)),u=r(n(5878)),c=n(9032),l=r(n(9896)),d=r(n(8239)),h=r(n(7196));r=(e=>{function t(e){var n,r,o;return(0,i.default)(this,t),n=this,r=t,r=(0,a.default)(r),(r=(0,s.default)(n,(()=>{if("undefined"!=typeof Reflect&&Reflect.construct&&!Reflect.construct.sham){if("function"==typeof Proxy)return 1;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}}})()?Reflect.construct(r,o||[],(0,a.default)(n).constructor):r.apply(n,o)))._session=e,r._direction=null,r._contentType=null,r._body=null,r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"contentType",get:function(){return this._contentType}},{key:"body",get:function(){return this._body}},{key:"send",value:function(e,t){var n=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};if(this._direction="outgoing",void 0===e)throw new TypeError("Not enough arguments");if(this._session.status!==this._session.C.STATUS_CONFIRMED&&this._session.status!==this._session.C.STATUS_WAITING_FOR_ACK)throw new d.default.InvalidStateError(this._session.status);this._contentType=e,this._body=t;var i=h.default.cloneArray(r.extraHeaders);i.push("Content-Type: ".concat(e)),this._session.newMessage({originator:"local",info:this,request:this.request}),this._session.sendRequest(l.default.MESSAGE,{extraHeaders:i,eventHandlers:{onSuccessResponse:function(e){n.emit("succeeded",{originator:"remote",response:e}),r.eventHandlers&&"function"==typeof r.eventHandlers.succeeded&&r.eventHandlers.succeeded({originator:"remote",response:e})},onErrorResponse:function(e){n.emit("failed",{originator:"remote",response:e}),r.eventHandlers&&"function"==typeof r.eventHandlers.failed&&r.eventHandlers.failed({originator:"remote",response:e})},onTransportError:function(){n._session.onTransportError()},onRequestTimeout:function(){n._session.onRequestTimeout()},onDialogError:function(){n._session.onDialogError()}},body:t})}},{key:"init_incoming",value:function(e){this._direction="incoming",(this.request=e).reply(200),this._contentType=e.hasHeader("Content-Type")?e.getHeader("Content-Type").toLowerCase():void 0,this._body=e.body,this._session.newMessage({originator:"remote",info:this,request:e})}}])})(c.EventEmitter),t.default=r,e.exports=t.default},1521:function(e,t,n){var r=n(8569),i=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(n(2942))),o=r(n(8408)),s=r(n(6759)),a=r(n(9165)),u=r(n(5878)),c=n(9032),l=r(n(5409)),d=r(n(9896)),h=r(n(2602)),f=r(n(7196)),p=r(n(5117)),v=r(n(8239)),m=r(n(2517)),g=new l.default("Subscribe");t.default=(e=>{function t(e){var n,r,o;return(0,i.default)(this,t),n=this,r=t,r=(0,a.default)(r),(r=(0,s.default)(n,(()=>{if("undefined"!=typeof Reflect&&Reflect.construct&&!Reflect.construct.sham){if("function"==typeof Proxy)return 1;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}}})()?Reflect.construct(r,o||[],(0,a.default)(n).constructor):r.apply(n,o)))._ua=e,r._request=null,r._closed=!1,r._direction=null,r._local_identity=null,r._remote_identity=null,r._is_replied=!1,r._data={},r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"direction",get:function(){return this._direction}},{key:"local_identity",get:function(){return this._local_identity}},{key:"remote_identity",get:function(){return this._remote_identity}},{key:"send",value:function(e,t){var n=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},i=e;if(void 0===e)throw new TypeError("A target is required for SUBSCRIBE");if(!(e=this._ua.normalizeTarget(e)))throw new TypeError("Invalid target: ".concat(i));i=f.default.cloneArray(r.extraHeaders);var o,s=f.default.cloneObject(r.eventHandlers);for(o in s)Object.prototype.hasOwnProperty.call(s,o)&&this.on(o,s[o]);r=this._ua.contact.toString({anonymous:!1,outbound:!0}),i.push("Contact: ".concat(r)),this._request=new h.default.OutgoingRequest(d.default.SUBSCRIBE,e,this._ua,null,i),t&&(this._request.body=t),r=new p.default(this._ua,this._request,{onRequestTimeout:function(){n._onRequestTimeout()},onTransportError:function(){n._onTransportError()},onReceiveResponse:function(e){n._receiveResponse(e)}}),this._newSubscribe("local",this._request),r.send()}},{key:"init_incoming",value:function(e){this._request=e,this._newSubscribe("remote",e),this._is_replied||(this._is_replied=!0,e.reply(200)),this._close()}},{key:"accept",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=f.default.cloneArray(e.extraHeaders);e=e.body;if("incoming"!==this._direction)throw new v.default.NotSupportedError('"accept" not supported for outgoing Options');if(this._is_replied)throw new Error("incoming Options already replied");this._is_replied=!0,this._request.reply(200,null,t,e)}},{key:"reject",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.status_code||480,n=e.reason_phrase,r=f.default.cloneArray(e.extraHeaders);e=e.body;if("incoming"!==this._direction)throw new v.default.NotSupportedError('"reject" not supported for outgoing Options');if(this._is_replied)throw new Error("incoming Options already replied");if(t<300||700<=t)throw new TypeError("Invalid status_code: ".concat(t));this._is_replied=!0,this._request.reply(t,n,r,e)}},{key:"_receiveResponse",value:function(e){if(!this._closed)switch(!0){case/^1[0-9]{2}$/.test(e.status_code):break;case/^2[0-9]{2}$/.test(e.status_code):this._succeeded("remote",e);break;default:var t=f.default.sipErrorCause(e.status_code);this._failed("remote",e,t)}}},{key:"_onRequestTimeout",value:function(){this._closed||this._failed("system",null,d.default.causes.REQUEST_TIMEOUT)}},{key:"_onTransportError",value:function(){this._closed||this._failed("system",null,d.default.causes.CONNECTION_ERROR)}},{key:"_close",value:function(){this._closed=!0,this._ua.destroyMessage(this)}},{key:"_newSubscribe",value:function(e,t){"remote"===e?(this._direction="incoming",this._local_identity=t.to,this._remote_identity=t.from):"local"===e&&(this._direction="outgoing",this._local_identity=t.from,this._remote_identity=t.to)}},{key:"_failed",value:function(e,t,n){g.debug("SUBSCRIBE failed"),this._close(),g.debug('emit "failed"'),this.emit("failed",{originator:e,response:t||null,cause:n})}},{key:"_succeeded",value:function(e,t){g.debug("SUBSCRIBE succeeded");var n=new m.default(this,t,"UAC",m.default.C.STATUS_CONFIRMED);this._ua.newDialog(n),g.debug('emit "succeeded"'),this.emit("succeeded",{originator:e,response:t})}},{key:"receiveRequest",value:function(e){this.emit("notify",e),e.reply(200)}}])})(c.EventEmitter),e.exports=t.default},3897:function(e,t,n){var r=n(8569),i=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(n(5117))),o=r(n(2517)),s=r(n(7356)),a=r(n(604)),u=r(n(1521)),c=r(n(4524)),l=r(n(5409)),d=r(n(7196)),h=r(n(8239)),f=r(n(9896)),p=r(n(7019)),v=r(n(2602));function m(e,t){var n,r,i,o,s="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(s)return r=!(n=!0),{s:function(){s=s.call(e)},n:function(){var e=s.next();return n=e.done,e},e:function(e){r=!0,i=e},f:function(){try{n||null==s.return||s.return()}finally{if(r)throw i}}};if(Array.isArray(e)||(s=((e,t)=>{var n;if(e)return"string"==typeof e?g(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0})(e))||t&&e&&"number"==typeof e.length)return s&&(e=s),o=0,{s:t=function(){},n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(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}var _=new l.default("SIP_MIX:Patch"),y=s.default.C;v.default.OutgoingRequest.prototype.toString=function(){var e,t="".concat(this.method," ").concat(this.ruri," SIP/2.0\r\n");for(e in this.headers)if(Object.prototype.hasOwnProperty.call(this.headers,e)){var n,r=m(this.headers[e]);try{for(r.s();!(n=r.n()).done;){var i=n.value;t+="".concat(e,": ").concat(i,"\r\n")}}catch(e){r.e(e)}finally{r.f()}}var o,s=m(this.extraHeaders);try{for(s.s();!(o=s.n()).done;){var a=o.value;t+="".concat(a.trim(),"\r\n")}}catch(e){s.e(e)}finally{s.f()}var u=[];switch(this.method){case f.default.REGISTER:u.push("path","gruu");break;case f.default.INVITE:this.ua.configuration.session_timers&&u.push("timer"),(this.ua.contact.pub_gruu||this.ua.contact.temp_gruu)&&u.push("gruu"),u.push("ice","replaces");break;case f.default.UPDATE:this.ua.configuration.session_timers&&u.push("timer"),u.push("ice")}u.push("outbound"),u.push("ccinfo");var c=this.ua.configuration.user_agent||f.default.USER_AGENT;return t=(t=(t+="Allow: ".concat(f.default.ALLOWED_METHODS,"\r\n"))+"Supported: ".concat(u,"\r\n"))+"User-Agent: ".concat(c,"\r\n"),this.body?(c=d.default.str_utf8_length(this.body),t=(t+="Content-Length: ".concat(c,"\r\n\r\n"))+this.body):t+="Content-Length: 0\r\n\r\n",t},c.default.Utils.isFunction=function(e){return void 0!==e&&("[object Function]"===Object.prototype.toString.call(e)||"[object AsyncFunction]"===Object.prototype.toString.call(e))},s.default.prototype.connect=function(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=2<arguments.length?arguments[2]:void 0,i=(_.debug("connect()"),e),o=d.default.cloneObject(n.eventHandlers),s=d.default.cloneArray(n.extraHeaders),a=d.default.cloneObject(n.mediaConstraints,{audio:!0,video:!0}),u=n.mediaStream||null,c=d.default.cloneObject(n.pcConfig,{iceServers:[]}),l=n.rtcConstraints||null,m=n.rtcOfferConstraints||null;if(this._rtcOfferConstraints=m,this._rtcAnswerConstraints=n.rtcAnswerConstraints||null,this._data=n.data||this._data,void 0===e)throw new TypeError("Not enough arguments");if(this._status!==y.STATUS_NULL)throw new h.default.InvalidStateError(this._status);if("undefined"!=typeof window){if(!window.RTCPeerConnection)throw new h.default.NotSupportedError("WebRTC not supported")}else if("undefined"!=typeof wx&&wx.canIUse){if(!wx.canIUse("live-player"))throw new h.default.NotSupportedError("live-player not supported");if(!wx.canIUse("live-pusher"))throw new h.default.NotSupportedError("live-pusher not supported")}if(!(e=this._ua.normalizeTarget(e)))throw new TypeError("Invalid target: ".concat(i));for(t in this._sessionTimers.enabled&&d.default.isDecimal(n.sessionTimersExpires)&&(n.sessionTimersExpires>=f.default.MIN_SESSION_EXPIRES?this._sessionTimers.defaultExpires=n.sessionTimersExpires:this._sessionTimers.defaultExpires=f.default.SESSION_EXPIRES),o)Object.prototype.hasOwnProperty.call(o,t)&&this.on(t,o[t]);this._from_tag=d.default.newTag();i=n.anonymous||!1;var g={from_tag:this._from_tag};this._contact=this._ua.contact.toString({anonymous:i,outbound:!0}),i?(g.from_display_name="Anonymous",g.from_uri=new p.default("sip","anonymous","anonymous.invalid"),s.push("P-Preferred-Identity: ".concat(this._ua.configuration.uri.toString())),s.push("Privacy: id")):n.fromUserName&&(g.from_uri=new p.default("sip",n.fromUserName,this._ua.configuration.uri.host),s.push("P-Preferred-Identity: ".concat(this._ua.configuration.uri.toString()))),n.fromDisplayName&&(g.from_display_name=n.fromDisplayName),s.push("Contact: ".concat(this._contact)),"webrtc"===n.mediaType&&s.push("Content-Type: application/sdp"),this._sessionTimers.enabled&&s.push("Session-Expires: ".concat(this._sessionTimers.defaultExpires).concat(this._ua.configuration.session_timers_force_refresher?";refresher=uac":"")),n.intercom&&e.setParam("intercom","true"),this._request=new v.default.InitialOutgoingInviteRequest(e,this._ua,g,s),this._id=this._request.call_id+this._from_tag,"webrtc"===n.mediaType&&this._createRTCConnection(c,l),this._direction="outgoing",this._local_identity=this._request.from,this._remote_identity=this._request.to,r&&r(this),this._mediaType=n.mediaType,this._newRTCSession("local",this._request),this._sendInitialRequest(a,m,u)},s.default.prototype._sendInitialRequest=function(e,t,n){var r=this,o=new i.default(this._ua,this._request,{onRequestTimeout:function(){r.onRequestTimeout()},onTransportError:function(){r.onTransportError()},onAuthenticated:function(e){r._request=e},onReceiveResponse:function(e){r._receiveInviteResponse(e)}});"webrtc"===this._mediaType?Promise.resolve().then((function(){return n||(e.audio||e.video?(r._localMediaStreamLocallyGenerated=!0,navigator.mediaDevices.getUserMedia(e).catch((function(e){if(r._status===y.STATUS_TERMINATED)throw new Error("terminated");throw r._failed("local",null,f.default.causes.USER_DENIED_MEDIA_ACCESS),_.warn('emit "getusermediafailed" [error:%o]',e),r.emit("getusermediafailed",e),e}))):void 0)})).then((function(n){if(r._status===y.STATUS_TERMINATED)throw new Error("terminated");return(r._localMediaStream=n)&&n.getTracks().forEach((function(e){r._connection.addTrack(e,n)})),e._recvVideoOnly&&r._connection.getTransceivers().forEach((function(e){e.direction="recvonly"})),r._connecting(r._request),r._createLocalDescription("offer",t).catch((function(e){throw r._failed("local",null,f.default.causes.WEBRTC_ERROR),e}))})).then((function(e){if(r._is_canceled||r._status===y.STATUS_TERMINATED)throw new Error("terminated");r._request.body=e,r._status=y.STATUS_INVITE_SENT,_.debug('emit "sending" [request:%o]',r._request),r.emit("sending",{request:r._request}),o.send()})).catch((function(e){r._status!==y.STATUS_TERMINATED&&_.warn(e)})):("control"===this._data._localParams.mediaType&&this._data._localParams.content?this._request.body=this._data._localParams.content:this._request.body="",this._status=y.STATUS_INVITE_SENT,_.debug('emit "sending" [request:%o]',this._request),this.emit("sending",{request:this._request}),o.send())},s.default.prototype._receiveInviteResponse=function(e){var t,n,r,i=this;if(_.debug("receiveInviteResponse()"),this._dialog&&200<=e.status_code&&e.status_code<=299)return this._dialog.id.call_id===e.call_id&&this._dialog.id.local_tag===e.from_tag&&this._dialog.id.remote_tag===e.to_tag?void this.sendRequest(f.default.ACK):void 0!==(t=new o.default(this,e,"UAC")).error?void _.debug(t.error):(this.sendRequest(f.default.ACK),void this.sendRequest(f.default.BYE));if(this._is_canceled)100<=e.status_code&&e.status_code<200?this._request.cancel(this._cancel_reason):200<=e.status_code&&e.status_code<299&&this._acceptAndTerminate(e);else if(this._status===y.STATUS_INVITE_SENT||this._status===y.STATUS_1XX_RECEIVED)switch(!0){case/^100$/.test(e.status_code):this._status=y.STATUS_1XX_RECEIVED;break;case/^1[0-9]{2}$/.test(e.status_code):e.to_tag?e.hasHeader("contact")&&!this._createDialog(e,"UAC",!0)||(this._status=y.STATUS_1XX_RECEIVED,e.body?"webrtc"===this._mediaType&&(s={originator:"remote",type:"answer",sdp:e.body},_.debug('emit "sdp"'),this.emit("sdp",s),n=new RTCSessionDescription({type:"answer",sdp:s.sdp}),this._connectionPromiseQueue=this._connectionPromiseQueue.then((function(){return i._connection.setRemoteDescription(n)})).then((function(){return i._progress("remote",e)})).catch((function(e){_.warn('emit "peerconnection:setremotedescriptionfailed" [error:%o]',e),i.emit("peerconnection:setremotedescriptionfailed",e)}))):this._progress("remote",e)):_.debug("1xx response received without to tag");break;case/^2[0-9]{2}$/.test(e.status_code):this._status=y.STATUS_CONFIRMED,"webrtc"!==this._mediaType||e.body?this._createDialog(e,"UAC")&&("webrtc"===this._mediaType?(s={originator:"remote",type:"answer",sdp:e.body},_.debug('emit "sdp"'),this.emit("sdp",s),r=new RTCSessionDescription({type:"answer",sdp:s.sdp}),this._connectionPromiseQueue=this._connectionPromiseQueue.then((function(){if("stable"===i._connection.signalingState)return i._connection.createOffer(i._rtcOfferConstraints).then((function(e){return i._connection.setLocalDescription(e)})).catch((function(t){i._acceptAndTerminate(e,500,t.toString()),i._failed("local",e,f.default.causes.WEBRTC_ERROR)}))})).then((function(){i._connection.setRemoteDescription(r).then((function(){i._handleSessionTimersInIncomingResponse(e),i._accepted("remote",e),i.sendRequest(f.default.ACK),i._confirmed("local",null)})).catch((function(t){i._acceptAndTerminate(e,488,"Not Acceptable Here"),i._failed("remote",e,f.default.causes.BAD_MEDIA_DESCRIPTION),_.warn('emit "peerconnection:setremotedescriptionfailed" [error:%o]',t),i.emit("peerconnection:setremotedescriptionfailed",t)}))}))):(this._handleSessionTimersInIncomingResponse(e),this._accepted("remote",e),this.sendRequest(f.default.ACK),this._confirmed("local",null))):(this._acceptAndTerminate(e,400,f.default.causes.MISSING_SDP),this._failed("remote",e,f.default.causes.BAD_MEDIA_DESCRIPTION));break;default:var s=d.default.sipErrorCause(e.status_code);this._failed("remote",e,s)}},s.default.prototype._createDialog=function(e,t,n){var r="UAS"===t?e.to_tag:e.from_tag,i="UAS"===t?e.from_tag:e.to_tag;r=e.call_id+r+i,i=this._earlyDialogs[r];return n?!!i||((i=new o.default(this,e,t,o.default.C.STATUS_EARLY)).error?(_.debug(i.error),this._failed("remote",e,f.default.causes.INTERNAL_ERROR),!1):(this._earlyDialogs[r]=i,!0)):(this._from_tag=e.from_tag,this._to_tag=e.to_tag,i?(i.update(e,t),this._dialog=i,delete this._earlyDialogs[r],!0):(n=new o.default(this,e,t)).error?(_.debug(n.error),this._failed("remote",e,f.default.causes.INTERNAL_ERROR),!1):(this._dialog=n,!0))},s.default.prototype.newMessage=function(e){_.debug("newMessage()"),this.emit("newMessage",e)},s.default.prototype.sendMessage=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};if(_.debug("sendMessage()[InnerSession]"),this._status!==y.STATUS_CONFIRMED&&this._status!==y.STATUS_WAITING_FOR_ACK&&this._status!==y.STATUS_1XX_RECEIVED)throw new h.default.InvalidStateError(this._status);new a.default(this).send(e,t,n)},s.default.prototype.answer=function(){var e=this,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=(_.debug("answer()"),this._request),r=d.default.cloneArray(t.extraHeaders),i=d.default.cloneObject(t.mediaConstraints),o=t.mediaStream||null,s=d.default.cloneObject(t.pcConfig,{iceServers:[]}),a=t.rtcConstraints||null,u=t.rtcAnswerConstraints||null,c=d.default.cloneObject(t.rtcOfferConstraints),l=!1,p=!1,v=!1,g=!1;if(this._rtcAnswerConstraints=u,this._rtcOfferConstraints=t.rtcOfferConstraints||null,this._data=t.data||this._data,"incoming"!==this._direction)throw new h.default.NotSupportedError('"answer" not supported for outgoing RTCSession');if(this._status!==y.STATUS_WAITING_FOR_ANSWER)throw new h.default.InvalidStateError(this._status);if(this._sessionTimers.enabled&&d.default.isDecimal(t.sessionTimersExpires)&&(t.sessionTimersExpires>=f.default.MIN_SESSION_EXPIRES?this._sessionTimers.defaultExpires=t.sessionTimersExpires:this._sessionTimers.defaultExpires=f.default.SESSION_EXPIRES),this._status=y.STATUS_ANSWERED,this._createDialog(n,"UAS"))if(clearTimeout(this._timers.userNoAnswerTimer),r.unshift("Contact: ".concat(this._contact)),this._mediaType=t.mediaType,"webrtc"===this._mediaType){t=n.parseSDP();var b,w=(Array.isArray(t.media)||(t.media=[t.media]),m(t.media));try{for(w.s();!(b=w.n()).done;){var T=b.value;"audio"===T.type&&(l=!0,T.direction&&"sendrecv"!==T.direction||(v=!0)),"video"===T.type&&(p=!0,T.direction&&"sendrecv"!==T.direction||(g=!0))}}catch(t){w.e(t)}finally{w.f()}if(o&&!1===i.audio){var S,C=m(o.getAudioTracks());try{for(C.s();!(S=C.n()).done;){var E=S.value;o.removeTrack(E)}}catch(t){C.e(t)}finally{C.f()}}if(o&&!1===i.video){var A,x=m(o.getVideoTracks());try{for(x.s();!(A=x.n()).done;){var R=A.value;o.removeTrack(R)}}catch(t){x.e(t)}finally{x.f()}}o||void 0!==i.audio||(i.audio=v),o||void 0!==i.video||(i.video=g),o||l||c.offerToReceiveAudio||(i.audio=!1),o||p||c.offerToReceiveVideo||(i.video=!1),this._createRTCConnection(s,a),Promise.resolve().then((function(){return o||(i.audio||i.video?(e._localMediaStreamLocallyGenerated=!0,navigator.mediaDevices.getUserMedia(i).catch((function(t){if(e._status===y.STATUS_TERMINATED)throw new Error("terminated");throw n.reply(480),e._failed("local",null,f.default.causes.USER_DENIED_MEDIA_ACCESS),_.warn('emit "getusermediafailed" [error:%o]',t),e.emit("getusermediafailed",t),new Error("getUserMedia() failed")}))):void 0)})).then((function(t){if(e._status===y.STATUS_TERMINATED)throw new Error("terminated");(e._localMediaStream=t)&&t.getTracks().forEach((function(n){e._connection.addTrack(n,t)}))})).then((function(){var t,r;if(!e._late_sdp)return t={originator:"remote",type:"offer",sdp:n.body},_.debug('emit "sdp"'),e.emit("sdp",t),r=new RTCSessionDescription({type:"offer",sdp:t.sdp}),e._connectionPromiseQueue=e._connectionPromiseQueue.then((function(){return e._connection.setRemoteDescription(r)})).catch((function(t){throw n.reply(488),e._failed("system",null,f.default.causes.WEBRTC_ERROR),_.warn('emit "peerconnection:setremotedescriptionfailed" [error:%o]',t),e.emit("peerconnection:setremotedescriptionfailed",t),new Error("peerconnection.setRemoteDescription() failed")})),e._connectionPromiseQueue})).then((function(){if(e._status===y.STATUS_TERMINATED)throw new Error("terminated");return e._connecting(n),(e._late_sdp?e._createLocalDescription("offer",e._rtcOfferConstraints):e._createLocalDescription("answer",u)).catch((function(){throw n.reply(500),new Error("_createLocalDescription() failed")}))})).then((function(t){if(e._status===y.STATUS_TERMINATED)throw new Error("terminated");e._handleSessionTimersInIncomingRequest(n,r),n.reply(200,null,r,t,(function(){e._status=y.STATUS_WAITING_FOR_ACK,e._setInvite2xxTimer(n,t),e._setACKTimer(),e._accepted("local")}),(function(){e._failed("system",null,f.default.causes.CONNECTION_ERROR)}))})).catch((function(t){e._status!==y.STATUS_TERMINATED&&_.warn(t)}))}else{if(this._status===y.STATUS_TERMINATED)throw new Error("terminated");this._handleSessionTimersInIncomingRequest(n,r),n.reply(200,null,r,"",(function(){e._status=y.STATUS_WAITING_FOR_ACK,e._setInvite2xxTimer(n,""),e._setACKTimer(),e._accepted("local")}),(function(){e._failed("system",null,f.default.causes.CONNECTION_ERROR)}))}else n.reply(500,"Error creating dialog")},s.default.prototype._receiveReinvite=function(e){var t=this,n=(_.debug("receiveReinvite()"),e.hasHeader("Content-Type")?e.getHeader("Content-Type").toLowerCase():void 0),r={request:e,callback:void 0,reject:s.bind(this),delay:function(){return o=!0,{reject:s.bind(this),accept:a.bind(this)}}.bind(this)},i=!1,o=!1;function s(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=(i=!0,t.status_code||403),r=t.reason_phrase||"";t=d.default.cloneArray(t.extraHeaders);if(this._status!==y.STATUS_CONFIRMED)return!1;if(n<300||700<=n)throw new TypeError("Invalid status_code: ".concat(n));e.reply(n,r,t)}function a(){var t=this;this._processInDialogSdpOffer(e).then((function(e){t._status!==y.STATUS_TERMINATED&&u.call(t,e)})).catch((function(e){_.warn(e)}))}function u(t){var n=this,i=["Contact: ".concat(this._contact)];this._handleSessionTimersInIncomingRequest(e,i),this._late_sdp&&(t=this._mangleOffer(t)),e.reply(200,null,i,t,(function(){n._status=y.STATUS_WAITING_FOR_ACK,n._setInvite2xxTimer(e,t),n._setACKTimer()})),"function"==typeof r.callback&&r.callback()}this.emit("reinvite",r),i||(this._late_sdp=!1,e.body?"application/sdp"!==n?(_.debug("invalid Content-Type"),e.reply(415)):o||a():(this._late_sdp=!0,this._remoteHold&&(this._remoteHold=!1,this._onunhold("remote")),"webrtc"===this._mediaType?this._connectionPromiseQueue=this._connectionPromiseQueue.then((function(){return t._createLocalDescription("offer",t._rtcOfferConstraints)})).then((function(e){u.call(t,e)})).catch((function(){e.reply(500)})):(this._late_sdp=!1,Promise.resolve().then((function(){u.call(t,"")})))))},s.default.prototype.renegotiate=function(){var e,t=this,n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=1<arguments.length?arguments[1]:void 0,i=(_.debug("renegotiate()"),n.rtcOfferConstraints||null);return!(this._status!==y.STATUS_WAITING_FOR_ACK&&this._status!==y.STATUS_CONFIRMED||!this._isReadyToReOffer()||(e={succeeded:function(){var e;null!=(e=n.eventHandlers)&&e.succeeded&&n.eventHandlers.succeeded(),r&&r()},failed:function(){var e;null!=(e=n.eventHandlers)&&e.failed?n.eventHandlers.failed():t.terminate({cause:f.default.causes.WEBRTC_ERROR,status_code:500,reason_phrase:"Media Renegotiation Failed"})}},this._setLocalMediaStatus(),n.useUpdate?this._sendUpdate({sdpOffer:!0,eventHandlers:e,rtcOfferConstraints:i,extraHeaders:n.extraHeaders}):this._sendReinvite({eventHandlers:e,rtcOfferConstraints:i,extraHeaders:n.extraHeaders}),0))},c.default.UA.prototype.sendSubscribe=function(e,t,n){_.debug("sendSubscribe()");var r=new u.default(this);return r.send(e,t,n),r},t.default=c.default,e.exports=t.default},4433:function(e,t,n){var r=n(8569),i=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(n(9844))),o=r(n(2942)),s=r(n(8408)),a=r(n(6759)),u=r(n(9165)),c=r(n(5878)),l=r(n(4728)),d=r(n(4143)),h=n(7667),f=r(n(5409)),p=r(n(8844));function v(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}var m=["P-CIN-CallId","P-CIN-Service","P-CIN-Identity","Agora-Info","User-Agent","Allow","CSeq","Call-ID","Content-Type","Content-Length","From","To","Max-Forwards","Min-Se","Via","Session-Expires","Supported","Contact"].map((function(e){return e.toLowerCase()})),g=new f.default("SIP_MIX");r=(e=>{function t(){var e,n,r,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},s=i.domain,c=i.port,d=(c=void 0===c?5049:c,i.path),h=(d=void 0===d?"webcall":d,i.autoRecovery);h=void 0!==h&&h,i=i.singleCallMode,i=void 0!==i&&i;return(0,o.default)(this,t),e=this,n=t,n=(0,u.default)(n),n=(0,a.default)(e,(()=>{if("undefined"!=typeof Reflect&&Reflect.construct&&!Reflect.construct.sham){if("function"==typeof Proxy)return 1;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}}})()?Reflect.construct(n,r||[],(0,u.default)(e).constructor):n.apply(e,r)),(0,l.default)(n,"domain",void 0),(0,l.default)(n,"port",void 0),(0,l.default)(n,"path",void 0),(0,l.default)(n,"socket",void 0),(0,l.default)(n,"ua",void 0),n.name="SipMix",n.domain=s,n.port=c,n.path=d,n.ua=null,n.socket=null,n.deviceId="H5User",n._subscribe={},n._mediaSDKAppId="",n._defaultSessionExpires=100,n._autoRecovery=h,n._sipOptionHandler=-1,n._recoveryCache=[],n.singleCallMode=!!i,n}return(0,c.default)(t,e),(0,s.default)(t,[{key:"setMediaSDKAppId",value:function(){this._mediaSDKAppId=0<arguments.length&&void 0!==arguments[0]?arguments[0]:""}},{key:"start",value:function(e,t,n){var r=this,i=e.deviceId,o=e.password,s=e.register,a=(s=void 0!==s&&s,e=e.debug,e=void 0!==e&&e,i=(this.deviceId=void 0===i?"H5User":i,"wss://".concat(this.domain,":").concat(this.port).concat(this.path?"/"+this.path:"")),"sip:".concat(this.deviceId,"@").concat(this.domain,":").concat(this.port));this.ua&&(this.ua.removeAllListeners(),this.ua.stop(),this.ua=null,this.socket=null),e?t.debug.enable("SIP_MIX:*"):t.debug.disable(),this.socket=new t.WebSocketInterface(i),this.socket.errorHandler=function(e){r.emit("socketError",e)},e={sockets:this.socket,uri:a,display_name:this.deviceId,authorization_user:this.deviceId,password:o,register:s,user_agent:n,session_timers_force_refresher:!0},this._autoRecovery&&(e.connection_recovery_max_interval=1,e.connection_recovery_min_interval=1),i=new t.UA(e);i.on("connecting",(function(){return r.emit("connecting")})),i.on("connected",(function(){r.emit("connected"),r._autoRecovery&&(r._startSendOptions(),0<r._recoveryCache.length)&&(r._recoveryCache.forEach((function(e){var t=e.params;r._call(t,e.id,e.callId)})),r._recoveryCache.length=0)})),i.on("disconnected",(function(){r._autoRecovery&&(r._stopSendOptions(),r._refreshSessions()),r.emit("disconnected")})),i.on("registered",(function(){return r.emit("registered")})),i.on("unregistered",(function(e){return e=e.cause,r.emit("unregistered",e)})),i.on("registrationFailed",(function(e){return e=e.cause,r.emit("registrationFailed",e)})),i.on("newRTCSession",this._onNewRTCSession.bind(this)),i.on("newMessage",this._onNewMessage.bind(this)),i.on("sipEvent",(function(e){return r.emit("sipEvent",e)})),(this.ua=i).start()}},{key:"stop",value:function(){var e;null!=(e=this.ua)&&e.stop()}},{key:"_call",value:function(e){var t=e.target,n=(e=e.options,1<arguments.length&&void 0!==arguments[1]?arguments[1]:""),r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return this._autoRecovery&&(e.data._callParams=(0,h.deepClone)({target:t,options:e}),e.data._oldSessionId=n||"",r)&&(e.extraHeaders=e.extraHeaders||[],-1<(n=e.extraHeaders.findIndex((function(e){return e.startsWith("P-CIN-RECONNECT:")})))&&e.extraHeaders.splice(n,1),e.extraHeaders.push("P-CIN-RECONNECT: ".concat(r))),this.ua.call(t,e)}},{key:"_paramsToObject",value:function(e){e=e.split("-"),e=(0,i.default)(e,9);var t=e[0],n=e[3],r=e[8];return{appId:e[1],channel:e[2],userId:t.startsWith("agora")?parseInt(n):n,token:t.startsWith("trtc")?(0,h.base64Decode)(r):r,audio:!0,video:t.endsWith("video")}}},{key:"_updateSessionData",value:function(e,t){var n,r,i,o,s;e&&(n={},Object.keys(e.headers).forEach((function(t){var r=e.getHeaders(t);n[t.toUpperCase()]=1<r.length?r:r[0]})),r=n["P-CIN-CALLID"],i=n["P-CIN-IDENTITY"],o=n["AGORA-INFO"],s=n["USER-AGENT"],r&&(t.data._eventData.callId=r),i&&(t.data._eventData.agentId=i),o&&(t.data._eventData.sdkParams=this._paramsToObject(o)),t.data._eventData.isRecoveredCall="reconnect"===s,Object.keys(n).forEach((function(e){-1<m.indexOf(e.toLowerCase())&&delete n[e]})),0<n.length)&&(t.data._eventData.extraHeaders=n)}},{key:"_onNewRTCSession",value:function(e){var t,n=this,r=e.originator,i=e.session;e=e.request;"remote"===r&&this.singleCallMode&&1<Object.keys(this.ua._sessions).length?(i.terminate({status_code:486}),console.warn("The call was rejected because singleCallMode is set to true.")):(i.data._eventData||(i.data._eventData={}),i.data._eventData.sessionId=i.id,i.data._eventData.uri=i.remote_identity.uri.toString(),i.data._eventData.userNumber=i.remote_identity.uri.user,"remote"===(i.data._eventData.originator=r)&&(this._updateSessionData(e,i),i.data._remoteParams||(i.data._remoteParams={mediaType:"webrtc",video:!1,audio:!0}),i.data._eventData.sdkParams?(i.data._remoteParams.mediaType=i.data._eventData.sdkParams,i.data._remoteParams.video=i.data._eventData.video,i.data._remoteParams.audio=!0):(r=e.parseSDP(),i.data._remoteParams.mediaType="webrtc",i.data._remoteParams.video=r.media.some((function(e){return"video"===e.type&&e.port})),i.data._remoteParams.audio=r.media.some((function(e){return"audio"===e.type&&e.port})))),this._autoRecovery&&(i.onTransportError=function(){g.warn("onTransportError()")}),i.on("sdp",(function(e){var t=e.originator;e=e.sdp;"remote"===t&&(i.data._remoteParams||(i.data._remoteParams={mediaType:"webrtc",video:!1,audio:!1,videoTrackReady:!1,audioTrackReady:!1}),t=p.default.parse(e),i.data._remoteParams.mediaType="webrtc",i.data._remoteParams.video=t.media.some((function(e){return"video"===e.type&&e.port})),i.data._remoteParams.audio=t.media.some((function(e){return"audio"===e.type&&e.port})),i.data._remoteParams.videoTrackReady=!1,i.data._remoteParams.audioTrackReady=!1)})),i.on("progress",(function(e){var t=e.originator;e=e.response;console.info("progress",{originator:t,response:e}),"local"===t?n.emit(i.data._oldSessionId?"reconnect:localRing":"localRing",(0,h.deepClone)(i.data._eventData),(0,h.deepClone)(i.data._remoteParams)):(n._updateSessionData(e,i),n.emit(i.data._oldSessionId?"reconnect:remoteRing":"remoteRing",(0,h.deepClone)(i.data._eventData)))})),i.on("accepted",(function(e){"remote"===e.originator&&n._updateSessionData(e.response,i),i.data._oldSessionId||n.emit("accepted",(0,h.deepClone)(i.data._eventData))})),i.on("confirmed",(function(){i.data._oldSessionId?n.emit("sessionRestored",(0,h.deepClone)(i.data._eventData),i.data._oldSessionId):n.emit("confirmed",(0,h.deepClone)(i.data._eventData))})),i.on("newInfo",(function(e){var t=e.originator,r=e.info;e=e.request;"remote"===t&&n.emit("newInfo",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){(0,l.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({content:n._formatContent(r.body,e.getHeader("Content-Type")),contentType:r.contentType},i.data._eventData))})),t=function(e,t){var r=t.originator,o=t.cause,s=(t=t.message,i.data._oldSessionId&&-1<(s=n._recoveryCache.findIndex((function(e){return e.params.target===i.data._callParams.target})))&&n._recoveryCache.splice(s,1),Object.assign({},i.data._eventData,{originator:r,cause:o}));"remote"===r&&t&&(s.statusCode=t.status_code,s.reasonPhrase=t.reason_phrase),n.emit(e,s)},i.on("failed",(function(e){var n=e.originator;return t("failed",{originator:n,cause:e.cause,message:e.message})})),i.on("ended",(function(e){var n=e.originator;return t("ended",{originator:n,cause:e.cause,message:e.message})})),i.on("update",(function(){})),i.on("reinvite",(function(e){var t=e.request,r=(e=(0,e.delay)(),e.accept);return n._onReinvite?n._onReinvite({request:t,session:i,acceptCallback:r,rejectCallback:e.reject}):null})),i.on("peerconnection:createofferfailed",(function(e){return console.error("peerconnection:createofferfailed",e)})),i.on("peerconnection:createanswerfailed",(function(e){return console.error("peerconnection:createanswerfailed",e)})),i.on("peerconnection:setlocaldescriptionfailed",(function(e){return console.error("peerconnection:setlocaldescriptionfailed",e)})),i.on("peerconnection:setremotedescriptionfailed",(function(e){return console.error("peerconnection:setremotedescriptionfailed",e)})),this.emit(i.data._oldSessionId?"reconnect:newSession":"newSession",(0,h.deepClone)(i.data._eventData)))}},{key:"_onRegistrationResponse",value:function(){}},{key:"_formatContent",value:function(e,t){return-1<t.indexOf("+base64")&&(t=(0,h.base64Decode)(e),(0,h.isUtf8)(t))?(0,h.tryJSON)(t):(0,h.tryJSON)(e)}},{key:"_onNewMessage",value:function(e){var t=e.originator;e=e.request;"remote"===t&&this.emit("newMessage",{content:this._formatContent(e.body,e.getHeader("Content-Type")),contentType:e.getHeader("Content-Type"),uri:e.from.uri.toString(),userNumber:e.from.uri.user})}},{key:"_getSession",value:function(e){var t;return e?null==(t=this.ua)?void 0:t._sessions[e]:Object.values(this.ua._sessions)[0]}},{key:"_getSessionCount",value:function(){return Object.values(this.ua._sessions).length}},{key:"sendInfo",value:function(e){var t=e.sessionId,n=e.contentType,r=(n=void 0===n?"application/json":n,e.encode);r=void 0===r||r,e=e.content,e=void 0===e?"":e,t=this._getSession(t);if(!t)throw new Error("没有找到会话实例");var i=Object.prototype.toString.call(e);i="[object Object]"===i||"[object Array]"===i?JSON.stringify(e):"[object String]"===i?e:null==e?void 0:e.toString();t.sendInfo(r?"".concat(n,"+base64"):n,r?(0,h.base64Encode)(i):i)}},{key:"_stringify",value:function(e){var t=Object.prototype.toString.call(e);t="[object Object]"===t||"[object Array]"===t?JSON.stringify(e):"[object String]"===t?e:null==e?void 0:e.toString();return t}},{key:"sendSessionMessage",value:function(e){var t,n=e.sessionId,r=e.contentType,i=void 0===r?"application/json":r,o=(r=e.encode,void 0===r||r),s=(r=e.content,e=void 0===r?"":r,this._getSession(n));if(s)return t=this._stringify(e),new Promise((function(e,n){s.sendMessage(i,o?(0,h.base64Encode)(t):t,{eventHandlers:{succeeded:function(){e()},failed:function(){n()}}})}));throw new Error("没有找到会话实例")}},{key:"sendMessage",value:function(e){var t=this,n=e.target,r=e.contentType,i=void 0===r?"application/json":r,o=(r=e.encode,void 0===r||r),s=(r=e.content,this._stringify(void 0===r?"":r));return new Promise((function(e,r){t.ua.sendMessage(n,o?(0,h.base64Encode)(s):s,{contentType:i,eventHandlers:{succeeded:function(){e()},failed:function(){r()}}})}))}},{key:"sendDTMF",value:function(e){var t=e.sessionId;e=e.tones,t=this._getSession(t);if(!t)throw new Error("没有找到会话实例");t.sendDTMF(e,{duration:100,interToneGap:500,transportType:"INFO"})}},{key:"hangup",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.sessionId,n=(e=e.statusCode,{});e&&(n.status_code=e),t?null!=(e=this.ua._sessions[t])&&e.terminate(n):this.ua.terminateSessions(n)}},{key:"_startSendOptions",value:function(){var e=this;this._stopSendOptions(),this._sipOptionHandler=setInterval((function(){e.ua?e.ua.sendOptions(e.deviceId,"",{eventHandlers:{succeeded:function(){e._sendOptionFailedCount=0},failed:e._optionFailedHandler.bind(e)}}):e._stopSendOptions()}),5e3)}},{key:"_stopSendOptions",value:function(){clearInterval(this._sipOptionHandler)}},{key:"_refreshSessions",value:function(){var e=this,t=Object.values(this.ua._sessions);0===this._recoveryCache.length&&(this._recoveryCache=t.map((function(e){return{params:e.data._callParams,id:e.id,callId:null==(e=e.data._eventData)?void 0:e.callId}}))),t.forEach((function(t){t.removeAllListeners(),e.ua.destroyRTCSession(t)})),this.ua._sessions={}}},{key:"_optionFailedHandler",value:function(){var e=this;this._sendOptionFailedCount++,1===this._sendOptionFailedCount&&(this._stopSendOptions(),g.debug("Send options failed, prepare reconnect..."),this._refreshSessions(),this.ua.stop(),g.debug("Reconnect after 1s..."),setTimeout((function(){e.ua.start()}),1e3))}}],[{key:"destroyInstance",value:function(){var e;null!=(e=this.instance)&&e.removeAllListeners(),null!=(e=this.instance)&&e.stop(),delete this.instance,this.instance=null}}])})(d.default);(0,l.default)(r,"SDK_VERSION","2.1.0 Build(20251110182326)"),t.default=r,e.exports=t.default},4321:function(e,t,n){var r=n(8569),i=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(n(2971))),o=r(n(6585)),s=r(n(4728)),a=r(n(936)),u=r(n(2942)),c=r(n(8408)),l=r(n(6759)),d=r(n(7384)),h=r(n(9165)),f=r(n(5878)),p=r(n(4433)),v=r(n(3897)),m=(r=r(n(9033)),n(7667)),g=n(566);function _(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function y(e,t){var n,r,i,o,s="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(s)return r=!(n=!0),{s:function(){s=s.call(e)},n:function(){var e=s.next();return n=e.done,e},e:function(e){r=!0,i=e},f:function(){try{n||null==s.return||s.return()}finally{if(r)throw i}}};if(Array.isArray(e)||(s=((e,t)=>{var n;if(e)return"string"==typeof e?b(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0})(e))||t&&e&&"number"==typeof e.length)return s&&(e=s),o=0,{s:t=function(){},n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function b(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 w(e){var t=e.audio,n=(e=e.video,{});return!0===t?n.audio=!0:!1===t&&(n.audio=!1),!0===e?n.video=!0:!1===e&&(n.video=!1),n}var T,S="XF-H5-SIPMIX/".concat("2.0.0"," (").concat((r=(n=r.default.parse(window.navigator.userAgent)).os,T=n.browser,n=n.platform,r.name=r.name||"",r.version=r.version||"",T.name=T.name||"",T.version=T.version||"",n.type=n.type||"",n.model=n.model||"",n.vendor=n.vendor||"","".concat(n.type.replace(/[<>;|]/g," ")||"*"," ").concat(n.model.replace(/[<>;|]/g," ")||"*"," ").concat(n.vendor.replace(/[<>;|]/g," ")||"*",";").concat(r.name.replace(/[<>;|]/g," ")||"*"," ").concat(r.version.replace(/[<>;|]/g," ")||"*",";").concat(T.name.replace(/[<>;|]/g," ")||"*"," ").concat(T.version.replace(/[<>;|]/g," ")||"*")),")");function C(){var e;this.removeAllListeners(),null!=(e=this.ua)&&e.stop()}function E(e,t){if(t){var n,r=y(t.getSenders());try{for(r.s();!(n=r.n()).done;){var i,o=n.value;e._localMediaStream.removeTrack(o.track),null!=(i=o.track)&&i.stop()}}catch(e){r.e(e)}finally{r.f()}t.close()}delete e.data._pc_beforeReinvite,delete e.data._localParams_beforeReinvite}n=(e=>{function t(){(0,u.default)(this,t);for(var e,n,r,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return e=this,n=t,r=[].concat(o),n=(0,h.default)(n),(n=(0,l.default)(e,(()=>{if("undefined"!=typeof Reflect&&Reflect.construct&&!Reflect.construct.sham){if("function"==typeof Proxy)return 1;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}}})()?Reflect.construct(n,r||[],(0,h.default)(e).constructor):n.apply(e,r)))._canvasEl=null,n.webrtcStats=null,window.removeEventListener("beforeunload",C.bind(n)),window.addEventListener("beforeunload",C.bind(n)),n}return(0,f.default)(t,e),(0,c.default)(t,[{key:"start",value:function(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];(e=(0,d.default)((0,h.default)(t.prototype),"start",this)).call.apply(e,[this].concat(r,[v.default,S]))}},{key:"call",value:function(e){var t=e.target,n=e.stream,r=e.video,i=(r=void 0===r||r,e.audio),o=(i=void 0===i||i,e.mediaType),s=(o=void 0===o?"string"==typeof _DEF_MEDIA_TYPE?_DEF_MEDIA_TYPE:"webrtc":o,e.extraHeaders),a=e.token,u=e.callData,c=e.transParam;e=e.videoCodec,e=void 0===e?"H264":e,s={mediaType:o,extraHeaders:void 0===s?[]:s,sessionTimersExpires:this._defaultSessionExpires};if("webrtc"===o)n?s.mediaStream=n:!1===i&&!1===r?(this._canvasEl||(this._canvasEl=document.createElement("canvas"),this._canvasEl.width=1,this._canvasEl.height=1),s.mediaStream=this._canvasEl.captureStream(1),s.mediaConstraints={_recvVideoOnly:!0}):s.mediaConstraints={video:r,audio:i},s.extraHeaders.push("X-RTC-Info: webrtc");else if("agora"===o)s.mediaConstraints={video:!!r,audio:!!i},s.extraHeaders.push("Agora-Info: ".concat((0,m.geneCallHeader)({type:r?"agoravideo":"agora",appId:this._mediaSDKAppId,videoCodec:e})),"X-RTC-Info: ".concat((0,m.geneCallHeader)({type:r?"agoravideo":"agora",appId:this._mediaSDKAppId,videoCodec:e})));else{if("trtc"!==o)throw new Error("媒体类型不支持 [".concat(o,"]"));s.mediaConstraints={video:!!r,audio:!!i},s.extraHeaders.push("Agora-Info: ".concat((0,m.geneCallHeader)({type:r?"trtcvideo":"trtc",appId:this._mediaSDKAppId,videoCodec:e})),"X-RTC-Info: ".concat((0,m.geneCallHeader)({type:r?"trtcvideo":"trtc",appId:this._mediaSDKAppId,videoCodec:e})))}a&&s.extraHeaders.push("Token: ".concat(a)),(u||c)&&s.extraHeaders.push("P-CIN-Service: --".concat(c?(0,m.strToHex)(c,!0):"","--").concat(u?(0,m.strToHex)(u,!0):"")),s.data={_localParams:{mediaType:o,video:r,audio:i},_eventData:{}},this._call({target:t,options:s})}},{key:"rejectCall",value:function(e){this._call({target:e,options:{extraHeaders:["Content-Type: application/cincc_control+json"],data:{_localParams:{mediaType:"control",content:JSON.stringify({action:"decline"})}}}})}},{key:"answer",value:function(e){var t=e.sessionId,n=e.video,r=e.audio,i=e.stream,o=e.mediaType,s=e.extraHeaders,a=(s=void 0===s?[]:s,e.token),u=e.callData;e=e.videoCodec,e=void 0===e?"H264":e,t=this._getSession(t);if(!t)throw new Error("会话不存在");if(o=o||t.data._remoteParams.mediaType,void 0===r&&(r=t.data._remoteParams.audio),void 0===n&&(n=t.data._remoteParams.video),s={mediaType:o,extraHeaders:s},"webrtc"===o)i?s.mediaStream=i:s.mediaConstraints={video:n,audio:r};else if("agora"===o)s.mediaConstraints={video:!!n,audio:!!r},s.extraHeaders.push("Agora-Info: ".concat((0,m.geneCallHeader)({type:n?"agoravideo":"agora",appId:this._mediaSDKAppId,videoCodec:e})));else if("trtc"===o)s.mediaConstraints={video:!!n,audio:!!r},s.extraHeaders.push("Agora-Info: ".concat((0,m.geneCallHeader)({type:n?"trtcvideo":"trtc",appId:this._mediaSDKAppId,videoCodec:e})));else{if("rtmp"!==o)throw new Error("媒体类型不支持 [".concat(o,"]"));s.mediaConstraints={video:!!n,audio:!!r},s.extraHeaders.push("RTMP-Path: ".concat(n?"rtmpvideo":"rtmpaudio"))}a&&s.extraHeaders.push("Token: ".concat(a)),u&&s.extraHeaders.push("P-CIN-Service: ----".concat((0,m.strToHex)(u,!0))),t.data._localParams={mediaType:o,video:!!i||!!n,audio:!!i||!!r},null!=t&&t.answer(s)}},{key:"mute",value:function(e){var t=e.sessionId,n=e.audio;e=e.video,t=this._getSession(t);if(!t)throw new Error("没有找到会话实例");if("webrtc"!==t.data._localParams.mediaType)throw new Error("mute 仅支持媒体类型为 webrtc 方式");t.mute(w({audio:n,video:e}))}},{key:"unmute",value:function(e){var t=e.sessionId,n=e.audio;e=e.video,t=this._getSession(t);if(!t)throw new Error("没有找到会话实例");if("webrtc"!==t.data._localParams.mediaType)throw new Error("unmute 仅支持媒体类型为 webrtc 方式");t.unmute(w({audio:n,video:e}))}},{key:"_holdTrigger",value:function(e){if(e=e.sessionId,e=this._getSession(e),!e)throw new Error("没有找到会话实例");if("webrtc"!==e.data._localParams.mediaType)throw new Error("hold 仅支持媒体类型为 webrtc 方式");e.sendDTMF("A",{duration:100,interToneGap:500,transportType:"INFO"})}},{key:"hold",value:function(e){e=e.sessionId,this._holdTrigger({sessionId:e})}},{key:"unhold",value:function(e){e=e.sessionId,this._holdTrigger({sessionId:e})}},{key:"_onTrack",value:function(e){var t=e.track,n=e.stream,r=e.eventName,i=(e=e.session,"remoteStream"===r?"_remoteParams":"_localParams");if("audio"===t.kind){if(e.data[i].audioTrackReady=!0,!e.data[i].audio)return void n.removeTrack(t)}else if("video"===t.kind&&(e.data[i].videoTrackReady=!0,!e.data[i].video))return void n.removeTrack(t);e.data[i].video&&e.data[i].audio?e.data[i].audioTrackReady&&e.data[i].videoTrackReady&&this.emit(r,n,(0,m.deepClone)(e.data._eventData)):(e.data[i].audioTrackReady&&e.data[i].audio&&this.emit(r,n,(0,m.deepClone)(e.data._eventData)),e.data[i].videoTrackReady&&e.data[i].video&&this.emit(r,n,(0,m.deepClone)(e.data._eventData)))}},{key:"_bindWebRTCStats",value:function(e){var t=this,n=e.pc;e=e.peerId;this.webrtcStats||(this.webrtcStats=new g.WebRTCStats({getStatsInterval:1e3}),this.webrtcStats.on("stats",(function(e){t.emit("webRTCStats",e)}))),this.webrtcStats.addConnection({pc:n,peerId:e})}},{key:"_onNewRTCSession",value:function(e){var n,r,i=this,o=e.originator,s=e.session;e=e.request;"local"===o&&(n=s.connection)&&(r=n.addTrack,n.addTrack=function(e,t){i._onTrack({track:e,stream:t,eventName:"localStream",session:s});for(var o=arguments.length,a=new Array(2<o?o-2:0),u=2;u<o;u++)a[u-2]=arguments[u];r.call.apply(r,[n,e,t].concat(a)),n.getSenders().forEach((function(e){var t;e.track&&"video"===e.track.kind&&(t=e.getParameters()).encodings&&t.encodings[0]&&(t.encodings[0].priority="high",t.encodings[0].networkPriority="high",t.encodings[0].maxBitrate=5e6,t.encodings[0].maxFramerate=30,e.setParameters(t))}))},n.ontrack=function(e){var t=e.streams;i._onTrack({track:e.track,stream:t[0],eventName:"remoteStream",session:s})},this._bindWebRTCStats({pc:n,peerId:s.id})),s.on("peerconnection",(function(e){var t=e.peerconnection,n=t.addTrack;t.addTrack=function(e,r){i._onTrack({track:e,stream:r,eventName:"localStream",session:s});for(var o=arguments.length,a=new Array(2<o?o-2:0),u=2;u<o;u++)a[u-2]=arguments[u];n.call.apply(n,[t,e,r].concat(a))},t.ontrack=function(e){var t=e.streams;i._onTrack({track:e.track,stream:t[0],eventName:"remoteStream",session:s})},i._bindWebRTCStats({pc:t,peerId:s.id})})),(0,d.default)((0,h.default)(t.prototype),"_onNewRTCSession",this).call(this,{originator:o,session:s,request:e})}},{key:"_onReinvite",value:function(e){var t,n=e.request,r=e.session,o=e.acceptCallback,u=e.rejectCallback,c=(e=n.parseSDP(),{video:e.media.some((function(e){return"video"===e.type&&e.port})),audio:e.media.some((function(e){return"audio"===e.type&&e.port}))}),l=-1,d={accept:(t=(0,a.default)(i.default.mark((function e(){var t,n,s,a,u,d,h=arguments;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=(s=0<h.length&&void 0!==h[0]?h[0]:{}).stream,n=(void 0!==s.video?s:c).video,s=(void 0!==s.audio?s:c).audio,"webrtc"!==r.data._localParams.mediaType?e.next=29:t?(a=t.getVideoTracks()[0],u=t.getAudioTracks()[0],e.next=15):e.next=10;break;case 10:return e.next=12,navigator.mediaDevices.getUserMedia({video:n,audio:s});case 12:t=e.sent,a=t.getVideoTracks()[0],u=t.getAudioTracks()[0];case 15:c.video&&!a&&console.warn("The remote stream contains a video track, but the new stream does not have a video track."),c.audio&&!u&&console.warn("The remote stream contains a audio track, but the new stream does not have a audio track."),r.data._localParams.audio=!!u,r.data._localParams.video=!!a,r.data._localParams.audioTrackReady=!1,r.data._localParams.videoTrackReady=!1,d=r.connection,r._createRTCConnection(),E(r,d),r._localMediaStream||(r._localMediaStream=new MediaStream),a&&(r.connection.addTrack(a,t),r._localMediaStream.addTrack(a)),u&&(r.connection.addTrack(u,t),r._localMediaStream.addTrack(u)),o(),l&&clearInterval(l);case 29:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)}),reject:function(){!1===c.video&&!0===c.audio?console.warn("Cannot reject when the call switches to audio-only mode."):(u({status_code:487}),clearInterval(l))}};this.emit("reinvite",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){(0,s.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({remoteMediaInfo:c,handler:d,timerFn:function(e){var t=20;l=setInterval((function(){try{e(t,0===t)}catch(e){console.error(e)}0===t?(clearInterval(l),d.reject(),delete d.reject,delete d.accept):t--}),1e3)}},r.data._eventData))}},{key:"_changeLocalTrack",value:(n=(0,a.default)(i.default.mark((function e(t){var n,r,o,s,a,u,c,l,d,h,f,p=this;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.type,r=t.stream,d=t.sessionId,o=void 0===(o=t.extraHeaders)?[]:o,!(s=this._getSession(d))){e.next=44;break}if("webrtc"!==s.data._localParams.mediaType){e.next=41;break}if(!(a=s.connection)){e.next=39;break}if("connected"!==a.connectionState){e.next=39;break}if("both"===n){e.next=29;break}if("audio"!==n){e.next=14;break}if(u=r.getAudioTracks()[0]){e.next=12;break}return e.abrupt("return",Promise.reject("Stream has no audio track"));case 12:e.next=17;break;case 14:if(u=r.getVideoTracks()[0]){e.next=17;break}return e.abrupt("return",Promise.reject("Stream has no video track"));case 17:if(c=a.getSenders().filter((function(e){return(null==(e=e.track)?void 0:e.kind)===n}))[0]){e.next=20;break}return e.abrupt("return",Promise.reject("PeerConnection has no video sender"));case 20:return l=c.track,e.next=23,c.replaceTrack(u);case 23:s._localMediaStream.addTrack(u),l.stop(),d=new MediaStream(a.getSenders().map((function(e){return e.track}))),this.emit("localStream",d,(0,m.deepClone)(s.data._eventData)),e.next=38;break;case 29:s.data._localParams_beforeReinvite=(0,m.deepClone)(s.data._localParams),s.data._pc_beforeReinvite=a,s._createRTCConnection(),h=r.getAudioTracks()[0],f=r.getVideoTracks()[0],s.data._localParams.audio=!!h,s.data._localParams.video=!!f,h&&(s.connection.addTrack(h,r),s._localMediaStream.addTrack(h)),f&&(s.connection.addTrack(f,r),s._localMediaStream.addTrack(f),s.data._remoteParams.video=!0);case 38:"both"===n&&s.renegotiate({extraHeaders:o,eventHandlers:{succeeded:function(){var e,t=s.data._pc_beforeReinvite,n=(t&&E(s,t),new MediaStream),r=y(s.connection.getSenders());try{for(r.s();!(e=r.n()).done;){var i=e.value;n.addTrack(i.track)}}catch(e){r.e(e)}finally{r.f()}p.emit("localStream",n,(0,m.deepClone)(s.data._eventData)),console.warn("renegotiate succeeded")},failed:function(){var e,t=s.connection,n=(s._connection=s.data._pc_beforeReinvite,s._localParams=(0,m.deepClone)(s.data._localParams_beforeReinvite),new MediaStream),r=y(s.data._pc_beforeReinvite.getSenders());try{for(r.s();!(e=r.n()).done;){var i=e.value;n.addTrack(i.track)}}catch(e){r.e(e)}finally{r.f()}p._bindWebRTCStats({pc:s.connection,peerId:s.id}),p.emit("localStream",n,(0,m.deepClone)(s.data._eventData)),E(s,t),console.warn("renegotiate failed")}}});case 39:e.next=42;break;case 41:throw new Error("会话非内置WebRTC类型");case 42:e.next=45;break;case 44:throw new Error("没有找到会话实例");case 45:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"changeLocalVideoTrack",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.stream;return this._changeLocalTrack({type:"video",stream:t,sessionId:e.sessionId,extraHeaders:e.extraHeaders})}},{key:"changeLocalAudioTrack",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.stream;return this._changeLocalTrack({type:"audio",stream:t,sessionId:e.sessionId,extraHeaders:e.extraHeaders})}},{key:"changeLocalStream",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.stream;return this._changeLocalTrack({type:"both",stream:t,sessionId:e.sessionId,extraHeaders:e.extraHeaders})}}],[{key:"getInstance",value:function(){if(!this.instance){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];this.instance=(0,o.default)(t,n)}return this.instance}}]);var n})(p.default),t.default=n,e.exports=t.default},7667:function(e,t,n){var r=n(8569),i=(Object.defineProperty(t,"__esModule",{value:!0}),t.base64Decode=function(e){return u.Base64.decode(e)},t.base64Encode=function(e){return u.Base64.encode(e)},t.bindDebugDownload=function(){var e=document.getElementById("__Debug_CT");e||((e=document.createElement("code")).id="__Debug_CT",e.style.display="none",document.addEventListener("__AppLog",(function(t){t=t.detail,e.innerHTML=e.innerHTML+t.args.reduce((function(e,t){var n;if("object"===(0,s.default)(t))try{n=JSON.stringify(t)}catch(e){console.info(e)}else n=t;return t=n.trimStart().replace(/%c|%s|%o/g,""),t&&!t.startsWith("color: ")&&e.push(t+"\n"),e}),[]).join("\r\n")})),document.addEventListener("keydown",(function(t){var n;t.shiftKey&&t.altKey&&"D"===t.key&&(t=document.createElement("a"),n=new Blob([e.innerText],{type:"text/plain"}),t.setAttribute("href",URL.createObjectURL(n)),t.setAttribute("download","log.txt"),t.click(),t.remove())})))},t.cancelAnimationFrame=void 0,t.checkWebrtcEnv=function(e){return f.apply(this,arguments)},t.checkWxEnv=function(){if("undefined"!=typeof wx&&wx.canIUse){if(!wx.canIUse("live-player"))throw new Exceptions.NotSupportedError("live-player not supported");if(!wx.canIUse("live-pusher"))throw new Exceptions.NotSupportedError("live-pusher not supported")}},t.closeStream=h,t.deepClone=function e(t){var n,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=(r=r.keyReplaceFn,void 0===r?function(e){return e}:r);if(!t&&"object"!==(0,s.default)(t))throw new Error("error arguments","deepClone");return t.constructor===Array?n=t.map((function(t){return"object"===(0,s.default)(t)?e(t,{keyReplaceFn:i}):t})):(n={},Object.keys(t).forEach((function(r){"object"===(0,s.default)(t[r])?n[i(r)]=e(t[r],{keyReplaceFn:i}):n[i(r)]=t[r]}))),n},t.detectStream=void 0,t.formatDate=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"yyyyMMddhhmmss",t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:new Date;if(!t)return"";/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var n,r={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds(),"i+":t.getMilliseconds()};for(n in r){var i;new RegExp("(".concat(n,")")).test(e)&&(i=r[n]+"",e=e.replace(RegExp.$1,1===RegExp.$1.length?i:((e,t)=>(new Array(t).fill("0").join("")+e).substr(e.length))(i,RegExp.$1.length)))}return e},t.geneCallHeader=function(e){var t=e.type,n=e.appId;n=void 0===n?"":n,e=e.videoCodec,e=void 0===e?"H264":e;return"webrtc"===t?"":"h264"===e.toLowerCase()||"agora"===t||"trtc"===t?t+(n?"-"+n:""):[t,n,"","","","","","","","",e].join("-")},t.hexToStr=function(e){if(e.length%2!=0)return"";for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substring(n,n+2),16));return(e=>{if("string"==typeof e)return e;for(var t="",n=e,r=0;r<n.length;r++){var i=n[r].toString(2),o=i.match(/^1+?(?=0)/);if(o&&8===i.length){for(var s=o[0].length,a=n[r].toString(2).slice(7-s),u=1;u<s;u++)a+=n[u+r].toString(2).slice(2);t+=String.fromCharCode(parseInt(a,2)),r+=s-1}else t+=String.fromCharCode(n[r])}return t})(t)},t.isFunction=function(e){return e=Object.prototype.toString.call(e),"[object Function]"===e||"[object AsyncFunction]"===e},t.isUtf8=function(e){return/[a-zA-Z0-9\u4e00-\u9fa5]+/g.test(e)},t.randomNumber=function(){for(var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:8,t="";e--;)t+=Math.floor(10*Math.random());return t},t.requestAnimationFrame=void 0,t.strToDate=function(e){var t;return e?(t=(e=e).length,e+=new Array(14-t).fill("0").join(""),new Date(parseInt(e.substring(0,4)),parseInt(e.substring(4,6))-1,parseInt(e.substring(6,8)),parseInt(e.substring(8,10)),parseInt(e.substring(10,12)),parseInt(e.substring(12,14)))):null},t.strToHex=function(e){for(var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=[],r=0;r<e.length;r++){var i="";if(i=d.test(e.charAt(r))?encodeURI(e.charAt(r)).replace(/%/g,""):e.charCodeAt(r).toString(16),t){for(var o="",s=0;s<i.length;s+=2)o+=i.charAt(s+1)+i.charAt(s);i=o}n.push(i)}return n.join("")},t.tryJSON=function(e){if("string"!=typeof e)return e;try{var t=JSON.parse(e);return"object"==(0,s.default)(t)&&t?t:e}catch(t){return e}},t.uuid=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"-",t=(0,a.v4)();return e&&(t=t.replace(new RegExp("-","g"),"")),t},r(n(2971))),o=r(n(936)),s=r(n(9091)),a=n(962),u=n(914);function c(e,t){var n,r,i,o,s="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(s)return r=!(n=!0),{s:function(){s=s.call(e)},n:function(){var e=s.next();return n=e.done,e},e:function(e){r=!0,i=e},f:function(){try{n||null==s.return||s.return()}finally{if(r)throw i}}};if(Array.isArray(e)||(s=((e,t)=>{var n;if(e)return"string"==typeof e?l(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0})(e))||t&&e&&"number"==typeof e.length)return s&&(e=s),o=0,{s:t=function(){},n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(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}var d=/[\u4e00-\u9fa5|\u3002\uff1f\uff01\uff0c\u3001\uff1b\uff1a\u201c\u201d\u2018\u2019\uff08\uff09\u300a\u300b\u3010\u3011\u007e]/;function h(e){if(e)try{if(e.getTracks){var t,n=c(e.getTracks());try{for(n.s();!(t=n.n()).done;)t.value.stop()}catch(t){n.e(t)}finally{n.f()}}else{var r,i=c(e.getAudioTracks());try{for(i.s();!(r=i.n()).done;)r.value.stop()}catch(t){i.e(t)}finally{i.f()}var o,a=c(e.getVideoTracks());try{for(a.s();!(o=a.n()).done;)o.value.stop()}catch(t){a.e(t)}finally{a.f()}}}catch(t){"function"!=typeof e.stop&&"object"!==(0,s.default)(e.stop)||e.stop()}}function f(){return(f=(0,o.default)(i.default.mark((function e(t){var n,r,o,s=this;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=t.checkGeolocation,o=void 0!==o&&o,n=void 0===(n=t.checkVideo)||n,r=void 0===(r=t.checkAudio)||r,o?navigator.geolocation?(navigator.geolocation.getCurrentPosition((function(e){e=(null==e?void 0:e.coords)||{};var t=e.latitude;s.position={latitude:t,longitude:e.longitude,accuracy:e.accuracy}})),e.next=7):e.next=6:e.next=7;break;case 6:return e.abrupt("return",Promise.reject("不支持地里位置接口"));case 7:if(r||n)return e.next=10,navigator.mediaDevices.getUserMedia({video:n,audio:r});e.next=19;break;case 10:(o=e.sent)?(h(o),e.next=16):e.next=15;break;case 15:return e.abrupt("return",Promise.reject("不支持开启摄像头或Mic接口"));case 16:if(window.RTCPeerConnection){e.next=18;break}return e.abrupt("return",Promise.reject("不支持WebRTC"));case 18:case 19:return e.abrupt("return",Promise.resolve(!0));case 20:case"end":return e.stop()}}),e)})))).apply(this,arguments)}t.requestAnimationFrame="undefined"==typeof window?function(){}:window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,t.cancelAnimationFrame="undefined"==typeof window?function(){}:window.cancelAnimationFrame||window.mozCancelAnimationFrame,t.detectStream=function(e){var t=e.stream,n=e.extra;return new Promise((function(e){var r=document.createElement("video"),i=(r.muted=!0,r.volume=0,r.addEventListener("loadedmetadata",(function(){e({stream:t,extra:n,hasAudio:t.getTracks().some((function(e){return"audio"===e.kind})),videoEl:r,width:r.videoWidth,height:r.videoHeight})}),{once:!0}),r.srcObject=t,r.play());void 0!==i&&i.catch((function(e){console.info("自动播放失败"),console.error(e)}))}))}},4958:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},3502:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},4568:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},936:function(e){function t(e,t,n,r,i,o,s){try{var a=e[o](s),u=a.value}catch(e){return n(e)}a.done?t(u):Promise.resolve(u).then(r,i)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise((function(i,o){var s=e.apply(n,r);function a(e){t(s,i,o,a,u,"next",e)}function u(e){t(s,i,o,a,u,"throw",e)}a(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},2942:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},6585:function(e,t,n){var r=n(1659),i=n(9985);e.exports=function(e,t,n){var o;return r()?Reflect.construct.apply(null,arguments):((o=[null]).push.apply(o,t),t=new(e.bind.apply(e,o)),n&&i(t,n.prototype),t)},e.exports.__esModule=!0,e.exports.default=e.exports},8408:function(e,t,n){var r=n(3543);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}e.exports=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},4728:function(e,t,n){var r=n(3543);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},7384:function(e,t,n){var r=n(1699);function i(){return e.exports=i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=r(e,t);if(i)return(i=Object.getOwnPropertyDescriptor(i,t)).get?i.get.call(arguments.length<3?e:n):i.value},e.exports.__esModule=!0,e.exports.default=e.exports,i.apply(null,arguments)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},9165:function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},5878:function(e,t,n){var r=n(9985);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},8569:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},1659:function(e){function t(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return e.exports=function(){return!!t},e.exports.__esModule=!0,(e.exports.default=e.exports)()}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},7881:function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}},e.exports.__esModule=!0,e.exports.default=e.exports},7911:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},6759:function(e,t,n){var r=n(9091).default,i=n(4568);e.exports=function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},8636:function(e,t,n){var r=n(9091).default;function i(){e.exports=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},i=Object.prototype,o=i.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(t){d=function(e,t,n){return e[t]=n}}function h(e,n,r,i){var o,a,u,c;n=n&&n.prototype instanceof y?n:y,n=Object.create(n.prototype),i=new R(i||[]);return s(n,"_invoke",{value:(o=e,a=r,u=i,c=p,function(e,n){if(c===m)throw Error("Generator is already running");if(c===g){if("throw"===e)throw n;return{value:t,done:!0}}for(u.method=e,u.arg=n;;){var r=u.delegate;if(r&&(r=function e(n,r){var i=r.method,o=n.iterator[i];return o===t?(r.delegate=null,"throw"===i&&n.iterator.return&&(r.method="return",r.arg=t,e(n,r),"throw"===r.method)||"return"!==i&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+i+"' method")),_):(i=f(o,n.iterator,r.arg),"throw"===i.type?(r.method="throw",r.arg=i.arg,r.delegate=null,_):(o=i.arg,o?o.done?(r[n.resultName]=o.value,r.next=n.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,_):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,_)))}(r,u),r)){if(r===_)continue;return r}if("next"===u.method)u.sent=u._sent=u.arg;else if("throw"===u.method){if(c===p)throw c=g,u.arg;u.dispatchException(u.arg)}else"return"===u.method&&u.abrupt("return",u.arg);if(c=m,r=f(o,a,u),"normal"===r.type){if(c=u.done?g:v,r.arg===_)continue;return{value:r.arg,done:u.done}}"throw"===r.type&&(c=g,u.method="throw",u.arg=r.arg)}})}),n}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=h;var p="suspendedStart",v="suspendedYield",m="executing",g="completed",_={};function y(){}function b(){}function w(){}a={};var T=(d(a,u,(function(){return this})),Object.getPrototypeOf),S=(T=T&&T(T(O([]))),T&&T!==i&&o.call(T,u)&&(a=T),w.prototype=y.prototype=Object.create(a));function C(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){var n;s(this,"_invoke",{value:function(i,s){function a(){return new t((function(n,a){!function n(i,s,a,u){var c;i=f(e[i],e,s);if("throw"!==i.type)return(s=(c=i.arg).value)&&"object"==r(s)&&o.call(s,"__await")?t.resolve(s.__await).then((function(e){n("next",e,a,u)}),(function(e){n("throw",e,a,u)})):t.resolve(s).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,u)}));u(i.arg)}(i,s,n,a)}))}return n=n?n.then(a,a):a()}})}function A(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 x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function O(e){if(e||""===e){var n,i=e[u];if(i)return i.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return n=-1,(i=function r(){for(;++n<e.length;)if(o.call(e,n))return r.value=e[n],r.done=!1,r;return r.value=t,r.done=!0,r}).next=i}throw new TypeError(r(e)+" is not iterable")}return s(S,"constructor",{value:b.prototype=w,configurable:!0}),s(w,"constructor",{value:b,configurable:!0}),b.displayName=d(w,l,"GeneratorFunction"),n.isGeneratorFunction=function(e){return e="function"==typeof e&&e.constructor,!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,d(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},n.awrap=function(e){return{__await:e}},C(E.prototype),d(E.prototype,c,(function(){return this})),n.AsyncIterator=E,n.async=function(e,t,r,i,o){void 0===o&&(o=Promise);var s=new E(h(e,t,r,i),o);return n.isGeneratorFunction(t)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},C(S),d(S,l,"Generator"),d(S,u,(function(){return this})),d(S,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t,n=Object(e),r=[];for(t in n)r.push(t);return r.reverse(),function e(){for(;r.length;){var t=r.pop();if(t in n)return e.value=t,e.done=!1,e}return e.done=!0,e}},n.values=O,R.prototype={constructor:R,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(x),!e)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,i){return a.type="throw",a.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var i=this.tryEntries.length-1;0<=i;--i){var s=this.tryEntries[i],a=s.completion;if("root"===s.tryLoc)return r("end");if(s.tryLoc<=this.prev){var u=o.call(s,"catchLoc"),c=o.call(s,"finallyLoc");if(u&&c){if(this.prev<s.catchLoc)return r(s.catchLoc,!0);if(this.prev<s.finallyLoc)return r(s.finallyLoc)}else if(u){if(this.prev<s.catchLoc)return r(s.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return r(s.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}var s=(i=i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc?null:i)?i.completion:{};return s.type=e,s.arg=t,i?(this.method="next",this.next=i.finallyLoc,_):this.complete(s)},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),_},finish:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),_}},catch:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n,r,i=this.tryEntries[t];if(i.tryLoc===e)return"throw"===(n=i.completion).type&&(r=n.arg,x(i)),r}throw 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),_}},n}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},9985:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},9844:function(e,t,n){var r=n(3502),i=n(7881),o=n(1535),s=n(7911);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||s()},e.exports.__esModule=!0,e.exports.default=e.exports},1699:function(e,t,n){var r=n(9165);e.exports=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e},e.exports.__esModule=!0,e.exports.default=e.exports},9906:function(e,t,n){var r=n(9091).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);if(n=n.call(e,t||"default"),"object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")},e.exports.__esModule=!0,e.exports.default=e.exports},3543:function(e,t,n){var r=n(9091).default,i=n(9906);e.exports=function(e){return e=i(e,"string"),"symbol"==r(e)?e:e+""},e.exports.__esModule=!0,e.exports.default=e.exports},9091:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},1535:function(e,t,n){var r=n(4958);e.exports=function(e,t){var n;if(e)return"string"==typeof e?r(e,t):"Map"===(n="Object"===(n={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0},e.exports.__esModule=!0,e.exports.default=e.exports},2971:function(e,t,n){n=n(8636)(),e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},633:function(e){e.exports=JSON.parse('{"name":"jssip","title":"JsSIP","description":"the Javascript SIP library","version":"3.10.1","homepage":"https://jssip.net","contributors":["José Luis Millán <jmillan@aliax.net> (https://github.com/jmillan)","Iñaki Baz Castillo <ibc@aliax.net> (https://inakibaz.me)"],"types":"lib/JsSIP.d.ts","main":"lib-es5/JsSIP.js","keywords":["sip","websocket","webrtc","node","browser","library"],"license":"MIT","repository":{"type":"git","url":"https://github.com/versatica/JsSIP.git"},"bugs":{"url":"https://github.com/versatica/JsSIP/issues"},"dependencies":{"@types/events":"^3.0.0","@types/debug":"^4.1.7","debug":"^4.3.1","events":"^3.3.0","sdp-transform":"^2.14.1"},"devDependencies":{"@babel/core":"^7.19.6","@babel/preset-env":"^7.19.4","ansi-colors":"^3.2.4","browserify":"^16.5.1","eslint":"^5.16.0","fancy-log":"^1.3.3","gulp":"^4.0.2","gulp-babel":"^8.0.0","gulp-eslint":"^5.0.0","gulp-expect-file":"^1.0.2","gulp-header":"^2.0.9","gulp-nodeunit-runner":"^0.2.2","gulp-plumber":"^1.2.1","gulp-rename":"^1.4.0","gulp-uglify-es":"^1.0.4","pegjs":"^0.7.0","vinyl-buffer":"^1.0.1","vinyl-source-stream":"^2.0.0"},"scripts":{"lint":"node npm-scripts.js lint","test":"node npm-scripts.js test","prepublish":"node npm-scripts.js prepublish","release":"node npm-scripts.js release"}}')}},i={},e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e(4321);function e(t){var r=i[t];return void 0!==r||(r=i[t]={exports:{}},n[t].call(r.exports,r,r.exports,e)),r.exports}var n,i},e.exports=i()}).call(this,n("4362"),n("b639").Buffer)},"408a":function(e,t,n){"use strict";var r=n("e330");e.exports=r(1.1.valueOf)},"40d5":function(e,t,n){"use strict";var r=n("d039");e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},"40e9":function(e,t,n){"use strict";var r=n("23e7"),i=n("41f6");i&&r({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return i(this,arguments.length?arguments[0]:void 0,!1)}})},"418f":function(e,t,n){"use strict";var r=n("23e7"),i=n("cfe9"),o=n("e330"),s=n("f69d"),a=n("6b37"),u=n("2005"),c=n("b917"),l=n("da63"),d=c.i2c,h=c.i2cUrl,f=o("".charAt),p=i.Uint8Array,v=!p||!p.prototype.toBase64||!function(){try{var e=new p;e.toBase64(null)}catch(t){return!0}}();p&&r({target:"Uint8Array",proto:!0,forced:v},{toBase64:function(){var e=a(this),t=arguments.length?s(arguments[0]):void 0,n="base64"===l(t)?d:h,r=!!t&&!!t.omitPadding;u(this.buffer);for(var i,o="",c=0,p=e.length,v=function(e){return f(n,i>>6*e&63)};c+2<p;c+=3)i=(e[c]<<16)+(e[c+1]<<8)+e[c+2],o+=v(3)+v(2)+v(1)+v(0);return c+2===p?(i=(e[c]<<16)+(e[c+1]<<8),o+=v(3)+v(2)+v(1)+(r?"":"=")):c+1===p&&(i=e[c]<<16,o+=v(3)+v(2)+(r?"":"==")),o}})},"41f6":function(e,t,n){"use strict";var r=n("cfe9"),i=n("e330"),o=n("7282"),s=n("0b25"),a=n("2005"),u=n("b620"),c=n("36f2"),l=n("dbe5"),d=r.structuredClone,h=r.ArrayBuffer,f=r.DataView,p=Math.min,v=h.prototype,m=f.prototype,g=i(v.slice),_=o(v,"resizable","get"),y=o(v,"maxByteLength","get"),b=i(m.getInt8),w=i(m.setInt8);e.exports=(l||c)&&function(e,t,n){var r,i=u(e),o=void 0===t?i:s(t),v=!_||!_(e);if(a(e),l&&(e=d(e,{transfer:[e]}),i===o&&(n||v)))return e;if(i>=o&&(!n||v))r=g(e,0,o);else{var m=n&&!v&&y?{maxByteLength:y(e)}:void 0;r=new h(o,m);for(var T=new f(e),S=new f(r),C=p(o,i),E=0;E<C;E++)w(S,E,b(T,E))}return l||c(e),r}},"428f":function(e,t,n){"use strict";var r=n("cfe9");e.exports=r},4362:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,r="/";t.cwd=function(){return r},t.chdir=function(t){e||(e=n("df7c")),r=e.resolve(t,r)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"44ad":function(e,t,n){"use strict";var r=n("e330"),i=n("d039"),o=n("c6b6"),s=Object,a=r("".split);e.exports=i((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"===o(e)?a(e,""):s(e)}:s},"44d2":function(e,t,n){"use strict";var r=n("b622"),i=n("7c73"),o=n("9bf2").f,s=r("unscopables"),a=Array.prototype;void 0===a[s]&&o(a,s,{configurable:!0,value:i(null)}),e.exports=function(e){a[s][e]=!0}},"44de":function(e,t,n){"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(n){}}},"44e7":function(e,t,n){"use strict";var r=n("861d"),i=n("c6b6"),o=n("b622"),s=o("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[s])?!!t:"RegExp"===i(e))}},4625:function(e,t,n){"use strict";var r=n("c6b6"),i=n("e330");e.exports=function(e){if("Function"===r(e))return i(e)}},"466d":function(e,t,n){"use strict";var r=n("c65b"),i=n("e330"),o=n("d784"),s=n("825a"),a=n("861d"),u=n("50c4"),c=n("577e"),l=n("1d80"),d=n("dc4a"),h=n("8aa5"),f=n("90d8"),p=n("14c3"),v=i("".indexOf);o("match",(function(e,t,n){return[function(t){var n=l(this),i=a(t)?d(t,e):void 0;return i?r(i,t,n):new RegExp(t)[e](c(n))},function(e){var r=s(this),i=c(e),o=n(t,r,i);if(o.done)return o.value;var a=c(f(r));if(-1===v(a,"g"))return p(r,i);var l=-1!==v(a,"u");r.lastIndex=0;var d,m=[],g=0;while(null!==(d=p(r,i))){var _=c(d[0]);m[g]=_,""===_&&(r.lastIndex=h(i,u(r.lastIndex),l)),g++}return 0===g?null:m}]}))},"46c4":function(e,t,n){"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},4738:function(e,t,n){"use strict";var r=n("cfe9"),i=n("d256"),o=n("1626"),s=n("94ca"),a=n("8925"),u=n("b622"),c=n("8558"),l=n("c430"),d=n("1212"),h=i&&i.prototype,f=u("species"),p=!1,v=o(r.PromiseRejectionEvent),m=s("Promise",(function(){var e=a(i),t=e!==String(i);if(!t&&66===d)return!0;if(l&&(!h["catch"]||!h["finally"]))return!0;if(!d||d<51||!/native code/.test(e)){var n=new i((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))},o=n.constructor={};if(o[f]=r,p=n.then((function(){}))instanceof r,!p)return!0}return!t&&("BROWSER"===c||"DENO"===c)&&!v}));e.exports={CONSTRUCTOR:m,REJECTION_EVENT:v,SUBCLASSING:p}},4754:function(e,t,n){"use strict";e.exports=function(e,t){return{value:e,done:t}}},4801:function(e,t,n){"use strict";n("b848")},4804:function(e,t,n){},4840:function(e,t,n){"use strict";var r=n("825a"),i=n("5087"),o=n("7234"),s=n("b622"),a=s("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||o(n=r(s)[a])?t:i(n)}},"485a":function(e,t,n){"use strict";var r=n("c65b"),i=n("1626"),o=n("861d"),s=TypeError;e.exports=function(e,t){var n,a;if("string"===t&&i(n=e.toString)&&!o(a=r(n,e)))return a;if(i(n=e.valueOf)&&!o(a=r(n,e)))return a;if("string"!==t&&i(n=e.toString)&&!o(a=r(n,e)))return a;throw new s("Can't convert object to primitive value")}},"498a":function(e,t,n){"use strict";var r=n("23e7"),i=n("58a8").trim,o=n("c8d2");r({target:"String",proto:!0,forced:o("trim")},{trim:function(){return i(this)}})},"4b11":function(e,t,n){"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},"4b85":function(e,t,n){},"4d63":function(e,t,n){"use strict";var r=n("83ab"),i=n("cfe9"),o=n("e330"),s=n("94ca"),a=n("7156"),u=n("9112"),c=n("7c73"),l=n("241c").f,d=n("3a9b"),h=n("44e7"),f=n("577e"),p=n("90d8"),v=n("9f7f"),m=n("aeb0"),g=n("cb2d"),_=n("d039"),y=n("1a2d"),b=n("69f3").enforce,w=n("2626"),T=n("b622"),S=n("fce3"),C=n("107c"),E=T("match"),A=i.RegExp,x=A.prototype,R=i.SyntaxError,O=o(x.exec),I=o("".charAt),k=o("".replace),P=o("".indexOf),M=o("".slice),N=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,L=/a/g,D=/a/g,U=new A(L)!==L,j=v.MISSED_STICKY,F=v.UNSUPPORTED_Y,H=r&&(!U||j||S||C||_((function(){return D[E]=!1,A(L)!==L||A(D)===D||"/a/i"!==String(A(L,"i"))}))),B=function(e){for(var t,n=e.length,r=0,i="",o=!1;r<=n;r++)t=I(e,r),"\\"!==t?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+I(e,++r);return i},$=function(e){for(var t,n=e.length,r=0,i="",o=[],s=c(null),a=!1,u=!1,l=0,d="";r<=n;r++){if(t=I(e,r),"\\"===t)t+=I(e,++r);else if("]"===t)a=!1;else if(!a)switch(!0){case"["===t:a=!0;break;case"("===t:if(i+=t,"?:"===M(e,r+1,r+3))continue;O(N,M(e,r+1))&&(r+=2,u=!0),l++;continue;case">"===t&&u:if(""===d||y(s,d))throw new R("Invalid capture group name");s[d]=!0,o[o.length]=[d,l],u=!1,d="";continue}u?d+=t:i+=t}return[i,o]};if(s("RegExp",H)){for(var q=function(e,t){var n,r,i,o,s,c,l=d(x,this),v=h(e),m=void 0===t,g=[],_=e;if(!l&&v&&m&&e.constructor===q)return e;if((v||d(x,e))&&(e=e.source,m&&(t=p(_))),e=void 0===e?"":f(e),t=void 0===t?"":f(t),_=e,S&&"dotAll"in L&&(r=!!t&&P(t,"s")>-1,r&&(t=k(t,/s/g,""))),n=t,j&&"sticky"in L&&(i=!!t&&P(t,"y")>-1,i&&F&&(t=k(t,/y/g,""))),C&&(o=$(e),e=o[0],g=o[1]),s=a(A(e,t),l?this:x,q),(r||i||g.length)&&(c=b(s),r&&(c.dotAll=!0,c.raw=q(B(e),n)),i&&(c.sticky=!0),g.length&&(c.groups=g)),e!==_)try{u(s,"source",""===_?"(?:)":_)}catch(y){}return s},V=l(A),z=0;V.length>z;)m(q,A,V[z++]);x.constructor=q,q.prototype=x,g(i,"RegExp",q,{constructor:!0})}w("RegExp")},"4d64":function(e,t,n){"use strict";var r=n("fc6a"),i=n("23cb"),o=n("07fa"),s=function(e){return function(t,n,s){var a=r(t),u=o(a);if(0===u)return!e&&-1;var c,l=i(s,u);if(e&&n!==n){while(u>l)if(c=a[l++],c!==c)return!0}else for(;u>l;l++)if((e||l in a)&&a[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},"4df4":function(e,t,n){"use strict";var r=n("0366"),i=n("c65b"),o=n("7b0b"),s=n("9bdd"),a=n("e95a"),u=n("68ee"),c=n("07fa"),l=n("8418"),d=n("9a1f"),h=n("35a1"),f=Array;e.exports=function(e){var t=o(e),n=u(this),p=arguments.length,v=p>1?arguments[1]:void 0,m=void 0!==v;m&&(v=r(v,p>2?arguments[2]:void 0));var g,_,y,b,w,T,S=h(t),C=0;if(!S||this===f&&a(S))for(g=c(t),_=n?new this(g):f(g);g>C;C++)T=m?v(t[C],C):t[C],l(_,C,T);else for(_=n?new this:[],b=d(t,S),w=b.next;!(y=i(w,b)).done;C++)T=m?s(b,v,[y.value,C],!0):y.value,l(_,C,T);return _.length=C,_}},"4e82":function(e,t,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("59ed"),s=n("7b0b"),a=n("07fa"),u=n("083a"),c=n("577e"),l=n("d039"),d=n("addb"),h=n("a640"),f=n("3f7e"),p=n("99f4"),v=n("1212"),m=n("ea83"),g=[],_=i(g.sort),y=i(g.push),b=l((function(){g.sort(void 0)})),w=l((function(){g.sort(null)})),T=h("sort"),S=!l((function(){if(v)return v<70;if(!(f&&f>3)){if(p)return!0;if(m)return m<603;var e,t,n,r,i="";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++)g.push({k:t+r,v:n})}for(g.sort((function(e,t){return t.v-e.v})),r=0;r<g.length;r++)t=g[r].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}})),C=b||!w||!T||!S,E=function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:c(t)>c(n)?1:-1}};r({target:"Array",proto:!0,forced:C},{sort:function(e){void 0!==e&&o(e);var t=s(this);if(S)return void 0===e?_(t):_(t,e);var n,r,i=[],c=a(t);for(r=0;r<c;r++)r in t&&y(i,t[r]);d(i,E(e)),n=a(i),r=0;while(r<n)t[r]=i[r++];while(r<c)u(t,r++);return t}})},"4ea1":function(e,t,n){"use strict";var r=n("d429"),i=n("ebb5"),o=n("bcbf"),s=n("5926"),a=n("f495"),u=i.aTypedArray,c=i.getTypedArrayConstructor,l=i.exportTypedArrayMethod,d=function(){try{new Int8Array(1)["with"](2,{valueOf:function(){throw 8}})}catch(e){return 8===e}}(),h=d&&function(){try{new Int8Array(1)["with"](-.5,1)}catch(e){return!0}}();l("with",{with:function(e,t){var n=u(this),i=s(e),l=o(n)?a(t):+t;return r(n,c(n),i,l)}}["with"],!d||h)},"4ec9":function(e,t,n){"use strict";n("6f48")},"4fad":function(e,t,n){"use strict";var r=n("d039"),i=n("861d"),o=n("c6b6"),s=n("d86b"),a=Object.isExtensible,u=r((function(){a(1)}));e.exports=u||s?function(e){return!!i(e)&&((!s||"ArrayBuffer"!==o(e))&&(!a||a(e)))}:a},5087:function(e,t,n){"use strict";var r=n("68ee"),i=n("0d51"),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a constructor")}},"5087e":function(e,t,n){"use strict";n("1236")},"50c4":function(e,t,n){"use strict";var r=n("5926"),i=Math.min;e.exports=function(e){var t=r(e);return t>0?i(t,9007199254740991):0}},"52c8":function(e,t,n){"use strict";var r=n("b5db");e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},5319:function(e,t,n){"use strict";var r=n("2ba4"),i=n("c65b"),o=n("e330"),s=n("d784"),a=n("d039"),u=n("825a"),c=n("1626"),l=n("861d"),d=n("5926"),h=n("50c4"),f=n("577e"),p=n("1d80"),v=n("8aa5"),m=n("dc4a"),g=n("0cb2"),_=n("90d8"),y=n("14c3"),b=n("b622"),w=b("replace"),T=Math.max,S=Math.min,C=o([].concat),E=o([].push),A=o("".indexOf),x=o("".slice),R=function(e){return void 0===e?e:String(e)},O=function(){return"$0"==="a".replace(/./,"$0")}(),I=function(){return!!/./[w]&&""===/./[w]("a","$0")}(),k=!a((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));s("replace",(function(e,t,n){var o=I?"$":"$0";return[function(e,n){var r=p(this),o=l(e)?m(e,w):void 0;return o?i(o,e,r,n):i(t,f(r),e,n)},function(e,i){var s=u(this),a=f(e);if("string"==typeof i&&-1===A(i,o)&&-1===A(i,"$<")){var l=n(t,s,a,i);if(l.done)return l.value}var p=c(i);p||(i=f(i));var m,b=f(_(s)),w=-1!==A(b,"g");w&&(m=-1!==A(b,"u"),s.lastIndex=0);var O,I=[];while(1){if(O=y(s,a),null===O)break;if(E(I,O),!w)break;var k=f(O[0]);""===k&&(s.lastIndex=v(a,h(s.lastIndex),m))}for(var P="",M=0,N=0;N<I.length;N++){O=I[N];for(var L,D=f(O[0]),U=T(S(d(O.index),a.length),0),j=[],F=1;F<O.length;F++)E(j,R(O[F]));var H=O.groups;if(p){var B=C([D],j,U,a);void 0!==H&&E(B,H),L=f(r(i,void 0,B))}else L=g(D,a,U,j,H,i);U>=M&&(P+=x(a,M,U)+L,M=U+D.length)}return P+x(a,M)}]}),!k||!O||I)},5320:function(e,t,n){"use strict";e.exports=function(e){try{var t=new Set,n={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return t.clear(),t.add(4),function(){return{done:!0}}}})}},r=t[e](n);return 1===r.size&&4===r.values().next().value}catch(i){return!1}}},5352:function(e,t,n){"use strict";n("e260"),n("f6d6");var r=n("23e7"),i=n("cfe9"),o=n("157a"),s=n("d066"),a=n("c65b"),u=n("e330"),c=n("83ab"),l=n("f354"),d=n("cb2d"),h=n("edd0"),f=n("6964"),p=n("d44e"),v=n("dcc3"),m=n("69f3"),g=n("19aa"),_=n("1626"),y=n("1a2d"),b=n("0366"),w=n("f5df"),T=n("825a"),S=n("861d"),C=n("577e"),E=n("7c73"),A=n("5c6c"),x=n("9a1f"),R=n("35a1"),O=n("4754"),I=n("d6d6"),k=n("b622"),P=n("addb"),M=k("iterator"),N="URLSearchParams",L=N+"Iterator",D=m.set,U=m.getterFor(N),j=m.getterFor(L),F=o("fetch"),H=o("Request"),B=o("Headers"),$=H&&H.prototype,q=B&&B.prototype,V=i.TypeError,z=i.encodeURIComponent,W=String.fromCharCode,G=s("String","fromCodePoint"),Y=parseInt,K=u("".charAt),X=u([].join),J=u([].push),Q=u("".replace),Z=u([].shift),ee=u([].splice),te=u("".split),ne=u("".slice),re=u(/./.exec),ie=/\+/g,oe="�",se=/^[0-9a-f]+$/i,ae=function(e,t){var n=ne(e,t,t+2);return re(se,n)?Y(n,16):NaN},ue=function(e){for(var t=0,n=128;n>0&&0!==(e&n);n>>=1)t++;return t},ce=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3];break}return t>1114111?null:t},le=function(e){e=Q(e,ie," ");var t=e.length,n="",r=0;while(r<t){var i=K(e,r);if("%"===i){if("%"===K(e,r+1)||r+3>t){n+="%",r++;continue}var o=ae(e,r+1);if(o!==o){n+=i,r++;continue}r+=2;var s=ue(o);if(0===s)i=W(o);else{if(1===s||s>4){n+=oe,r++;continue}var a=[o],u=1;while(u<s){if(r++,r+3>t||"%"!==K(e,r))break;var c=ae(e,r+1);if(c!==c){r+=3;break}if(c>191||c<128)break;J(a,c),r+=2,u++}if(a.length!==s){n+=oe;continue}var l=ce(a);null===l?n+=oe:i=G(l)}}n+=i,r++}return n},de=/[!'()~]|%20/g,he={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},fe=function(e){return he[e]},pe=function(e){return Q(z(e),de,fe)},ve=v((function(e,t){D(this,{type:L,target:U(e).entries,index:0,kind:t})}),N,(function(){var e=j(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,O(void 0,!0);var r=t[n];switch(e.kind){case"keys":return O(r.key,!1);case"values":return O(r.value,!1)}return O([r.key,r.value],!1)}),!0),me=function(e){this.entries=[],this.url=null,void 0!==e&&(S(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===K(e,0)?ne(e,1):e:C(e)))};me.prototype={type:N,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,i,o,s,u,c=this.entries,l=R(e);if(l){t=x(e,l),n=t.next;while(!(r=a(n,t)).done){if(i=x(T(r.value)),o=i.next,(s=a(o,i)).done||(u=a(o,i)).done||!a(o,i).done)throw new V("Expected sequence with length 2");J(c,{key:C(s.value),value:C(u.value)})}}else for(var d in e)y(e,d)&&J(c,{key:d,value:C(e[d])})},parseQuery:function(e){if(e){var t,n,r=this.entries,i=te(e,"&"),o=0;while(o<i.length)t=i[o++],t.length&&(n=te(t,"="),J(r,{key:le(Z(n)),value:le(X(n,"="))}))}},serialize:function(){var e,t=this.entries,n=[],r=0;while(r<t.length)e=t[r++],J(n,pe(e.key)+"="+pe(e.value));return X(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ge=function(){g(this,_e);var e=arguments.length>0?arguments[0]:void 0,t=D(this,new me(e));c||(this.size=t.entries.length)},_e=ge.prototype;if(f(_e,{append:function(e,t){var n=U(this);I(arguments.length,2),J(n.entries,{key:C(e),value:C(t)}),c||this.size++,n.updateURL()},delete:function(e){var t=U(this),n=I(arguments.length,1),r=t.entries,i=C(e),o=n<2?void 0:arguments[1],s=void 0===o?o:C(o),a=0;while(a<r.length){var u=r[a];if(u.key!==i||void 0!==s&&u.value!==s)a++;else if(ee(r,a,1),void 0!==s)break}c||(this.size=r.length),t.updateURL()},get:function(e){var t=U(this).entries;I(arguments.length,1);for(var n=C(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){var t=U(this).entries;I(arguments.length,1);for(var n=C(e),r=[],i=0;i<t.length;i++)t[i].key===n&&J(r,t[i].value);return r},has:function(e){var t=U(this).entries,n=I(arguments.length,1),r=C(e),i=n<2?void 0:arguments[1],o=void 0===i?i:C(i),s=0;while(s<t.length){var a=t[s++];if(a.key===r&&(void 0===o||a.value===o))return!0}return!1},set:function(e,t){var n=U(this);I(arguments.length,1);for(var r,i=n.entries,o=!1,s=C(e),a=C(t),u=0;u<i.length;u++)r=i[u],r.key===s&&(o?ee(i,u--,1):(o=!0,r.value=a));o||J(i,{key:s,value:a}),c||(this.size=i.length),n.updateURL()},sort:function(){var e=U(this);P(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){var t,n=U(this).entries,r=b(e,arguments.length>1?arguments[1]:void 0),i=0;while(i<n.length)t=n[i++],r(t.value,t.key,this)},keys:function(){return new ve(this,"keys")},values:function(){return new ve(this,"values")},entries:function(){return new ve(this,"entries")}},{enumerable:!0}),d(_e,M,_e.entries,{name:"entries"}),d(_e,"toString",(function(){return U(this).serialize()}),{enumerable:!0}),c&&h(_e,"size",{get:function(){return U(this).entries.length},configurable:!0,enumerable:!0}),p(ge,N),r({global:!0,constructor:!0,forced:!l},{URLSearchParams:ge}),!l&&_(B)){var ye=u(q.has),be=u(q.set),we=function(e){if(S(e)){var t,n=e.body;if(w(n)===N)return t=e.headers?new B(e.headers):new B,ye(t,"content-type")||be(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),E(e,{body:A(0,C(n)),headers:A(0,t)})}return e};if(_(F)&&r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return F(e,arguments.length>1?we(arguments[1]):{})}}),_(H)){var Te=function(e){return g(this,$),new H(e,arguments.length>1?we(arguments[1]):{})};$.constructor=Te,Te.prototype=$,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Te})}}e.exports={URLSearchParams:ge,getState:U}},5388:function(e,t,n){"use strict";var r=n("c65b");e.exports=function(e,t,n){var i,o,s=n?e:e.iterator,a=e.next;while(!(i=r(a,s)).done)if(o=t(i.value),void 0!==o)return o}},5494:function(e,t,n){"use strict";var r=n("83ab"),i=n("e330"),o=n("edd0"),s=URLSearchParams.prototype,a=i(s.forEach);r&&!("size"in s)&&o(s,"size",{get:function(){var e=0;return a(this,(function(){e++})),e},configurable:!0,enumerable:!0})},5692:function(e,t,n){"use strict";var r=n("c6cd");e.exports=function(e,t){return r[e]||(r[e]=t||{})}},"56ef":function(e,t,n){"use strict";var r=n("d066"),i=n("e330"),o=n("241c"),s=n("7418"),a=n("825a"),u=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(a(e)),n=s.f;return n?u(t,n(e)):t}},"577e":function(e,t,n){"use strict";var r=n("f5df"),i=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},5899:function(e,t,n){"use strict";e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(e,t,n){"use strict";var r=n("e330"),i=n("1d80"),o=n("577e"),s=n("5899"),a=r("".replace),u=RegExp("^["+s+"]+"),c=RegExp("(^|[^"+s+"])["+s+"]+$"),l=function(e){return function(t){var n=o(i(t));return 1&e&&(n=a(n,u,"")),2&e&&(n=a(n,c,"$1")),n}};e.exports={start:l(1),end:l(2),trim:l(3)}},5926:function(e,t,n){"use strict";var r=n("b42e");e.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},"59ed":function(e,t,n){"use strict";var r=n("1626"),i=n("0d51"),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a function")}},"5a34":function(e,t,n){"use strict";var r=n("44e7"),i=TypeError;e.exports=function(e){if(r(e))throw new i("The method doesn't accept regular expressions");return e}},"5a43":function(e,t){function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"5c6c":function(e,t,n){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5cc6":function(e,t,n){"use strict";var r=n("74e8");r("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},"5e77":function(e,t,n){"use strict";var r=n("83ab"),i=n("1a2d"),o=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,a=i(o,"name"),u=a&&"something"===function(){}.name,c=a&&(!r||r&&s(o,"name").configurable);e.exports={EXISTS:a,PROPER:u,CONFIGURABLE:c}},"5e7e":function(e,t,n){"use strict";var r,i,o,s,a=n("23e7"),u=n("c430"),c=n("9adc"),l=n("cfe9"),d=n("428f"),h=n("c65b"),f=n("cb2d"),p=n("d2bb"),v=n("d44e"),m=n("2626"),g=n("59ed"),_=n("1626"),y=n("861d"),b=n("19aa"),w=n("4840"),T=n("2cf4").set,S=n("b575"),C=n("44de"),E=n("e667"),A=n("01b4"),x=n("69f3"),R=n("d256"),O=n("4738"),I=n("f069"),k="Promise",P=O.CONSTRUCTOR,M=O.REJECTION_EVENT,N=O.SUBCLASSING,L=x.getterFor(k),D=x.set,U=R&&R.prototype,j=R,F=U,H=l.TypeError,B=l.document,$=l.process,q=I.f,V=q,z=!!(B&&B.createEvent&&l.dispatchEvent),W="unhandledrejection",G="rejectionhandled",Y=0,K=1,X=2,J=1,Q=2,Z=function(e){var t;return!(!y(e)||!_(t=e.then))&&t},ee=function(e,t){var n,r,i,o=t.value,s=t.state===K,a=s?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{a?(s||(t.rejection===Q&&oe(t),t.rejection=J),!0===a?n=o:(l&&l.enter(),n=a(o),l&&(l.exit(),i=!0)),n===e.promise?c(new H("Promise-chain cycle")):(r=Z(n))?h(r,n,u,c):u(n)):c(o)}catch(d){l&&!i&&l.exit(),c(d)}},te=function(e,t){e.notified||(e.notified=!0,S((function(){var n,r=e.reactions;while(n=r.get())ee(n,e);e.notified=!1,t&&!e.rejection&&re(e)})))},ne=function(e,t,n){var r,i;z?(r=B.createEvent("Event"),r.promise=t,r.reason=n,r.initEvent(e,!1,!0),l.dispatchEvent(r)):r={promise:t,reason:n},!M&&(i=l["on"+e])?i(r):e===W&&C("Unhandled promise rejection",n)},re=function(e){h(T,l,(function(){var t,n=e.facade,r=e.value,i=ie(e);if(i&&(t=E((function(){c?$.emit("unhandledRejection",r,n):ne(W,n,r)})),e.rejection=c||ie(e)?Q:J,t.error))throw t.value}))},ie=function(e){return e.rejection!==J&&!e.parent},oe=function(e){h(T,l,(function(){var t=e.facade;c?$.emit("rejectionHandled",t):ne(G,t,e.value)}))},se=function(e,t,n){return function(r){e(t,r,n)}},ae=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=X,te(e,!0))},ue=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new H("Promise can't be resolved itself");var r=Z(t);r?S((function(){var n={done:!1};try{h(r,t,se(ue,n,e),se(ae,n,e))}catch(i){ae(n,i,e)}})):(e.value=t,e.state=K,te(e,!1))}catch(i){ae({done:!1},i,e)}}};if(P&&(j=function(e){b(this,F),g(e),h(r,this);var t=L(this);try{e(se(ue,t),se(ae,t))}catch(n){ae(t,n)}},F=j.prototype,r=function(e){D(this,{type:k,done:!1,notified:!1,parent:!1,reactions:new A,rejection:!1,state:Y,value:null})},r.prototype=f(F,"then",(function(e,t){var n=L(this),r=q(w(this,j));return n.parent=!0,r.ok=!_(e)||e,r.fail=_(t)&&t,r.domain=c?$.domain:void 0,n.state===Y?n.reactions.add(r):S((function(){ee(r,n)})),r.promise})),i=function(){var e=new r,t=L(e);this.promise=e,this.resolve=se(ue,t),this.reject=se(ae,t)},I.f=q=function(e){return e===j||e===o?new i(e):V(e)},!u&&_(R)&&U!==Object.prototype)){s=U.then,N||f(U,"then",(function(e,t){var n=this;return new j((function(e,t){h(s,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete U.constructor}catch(ce){}p&&p(U,F)}a({global:!0,constructor:!0,wrap:!0,forced:P},{Promise:j}),o=d.Promise,v(j,k,!1,!0),m(k)},"5eed":function(e,t,n){"use strict";var r=n("d256"),i=n("1c7e"),o=n("4738").CONSTRUCTOR;e.exports=o||!i((function(e){r.all(e).then(void 0,(function(){}))}))},"5fb2":function(e,t,n){"use strict";var r=n("e330"),i=2147483647,o=36,s=1,a=26,u=38,c=700,l=72,d=128,h="-",f=/[^\0-\u007E]/,p=/[.\u3002\uFF0E\uFF61]/g,v="Overflow: input needs wider integers to process",m=o-s,g=RangeError,_=r(p.exec),y=Math.floor,b=String.fromCharCode,w=r("".charCodeAt),T=r([].join),S=r([].push),C=r("".replace),E=r("".split),A=r("".toLowerCase),x=function(e){var t=[],n=0,r=e.length;while(n<r){var i=w(e,n++);if(i>=55296&&i<=56319&&n<r){var o=w(e,n++);56320===(64512&o)?S(t,((1023&i)<<10)+(1023&o)+65536):(S(t,i),n--)}else S(t,i)}return t},R=function(e){return e+22+75*(e<26)},O=function(e,t,n){var r=0;e=n?y(e/c):e>>1,e+=y(e/t);while(e>m*a>>1)e=y(e/m),r+=o;return y(r+(m+1)*e/(e+u))},I=function(e){var t=[];e=x(e);var n,r,u=e.length,c=d,f=0,p=l;for(n=0;n<e.length;n++)r=e[n],r<128&&S(t,b(r));var m=t.length,_=m;m&&S(t,h);while(_<u){var w=i;for(n=0;n<e.length;n++)r=e[n],r>=c&&r<w&&(w=r);var C=_+1;if(w-c>y((i-f)/C))throw new g(v);for(f+=(w-c)*C,c=w,n=0;n<e.length;n++){if(r=e[n],r<c&&++f>i)throw new g(v);if(r===c){var E=f,A=o;while(1){var I=A<=p?s:A>=p+a?a:A-p;if(E<I)break;var k=E-I,P=o-I;S(t,b(R(I+k%P))),E=y(k/P),A+=o}S(t,b(R(E))),p=O(f,C,_===m),f=0,_++}}f++,c++}return T(t,"")};e.exports=function(e){var t,n,r=[],i=E(C(A(e),p,"."),".");for(t=0;t<i.length;t++)n=i[t],S(r,_(f,n)?"xn--"+I(n):n);return T(r,".")}},6062:function(e,t,n){"use strict";n("1c59")},"60da":function(e,t,n){"use strict";var r=n("83ab"),i=n("e330"),o=n("c65b"),s=n("d039"),a=n("df75"),u=n("7418"),c=n("d1e7"),l=n("7b0b"),d=n("44ad"),h=Object.assign,f=Object.defineProperty,p=i([].concat);e.exports=!h||s((function(){if(r&&1!==h({b:1},h(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!==h({},e)[n]||a(h({},t)).join("")!==i}))?function(e,t){var n=l(e),i=arguments.length,s=1,h=u.f,f=c.f;while(i>s){var v,m=d(arguments[s++]),g=h?p(a(m),h(m)):a(m),_=g.length,y=0;while(_>y)v=g[y++],r&&!o(f,m,v)||(n[v]=m[v])}return n}:h},6184:function(e,t,n){},"61ae":function(e,t,n){"use strict";n("8407")},"621a":function(e,t,n){"use strict";var r=n("cfe9"),i=n("e330"),o=n("83ab"),s=n("4b11"),a=n("5e77"),u=n("9112"),c=n("edd0"),l=n("6964"),d=n("d039"),h=n("19aa"),f=n("5926"),p=n("50c4"),v=n("0b25"),m=n("be8e"),g=n("77a7"),_=n("e163"),y=n("d2bb"),b=n("81d5"),w=n("f36a"),T=n("7156"),S=n("e893"),C=n("d44e"),E=n("69f3"),A=a.PROPER,x=a.CONFIGURABLE,R="ArrayBuffer",O="DataView",I="prototype",k="Wrong length",P="Wrong index",M=E.getterFor(R),N=E.getterFor(O),L=E.set,D=r[R],U=D,j=U&&U[I],F=r[O],H=F&&F[I],B=Object.prototype,$=r.Array,q=r.RangeError,V=i(b),z=i([].reverse),W=g.pack,G=g.unpack,Y=function(e){return[255&e]},K=function(e){return[255&e,e>>8&255]},X=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},J=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},Q=function(e){return W(m(e),23,4)},Z=function(e){return W(e,52,8)},ee=function(e,t,n){c(e[I],t,{configurable:!0,get:function(){return n(this)[t]}})},te=function(e,t,n,r){var i=N(e),o=v(n),s=!!r;if(o+t>i.byteLength)throw new q(P);var a=i.bytes,u=o+i.byteOffset,c=w(a,u,u+t);return s?c:z(c)},ne=function(e,t,n,r,i,o){var s=N(e),a=v(n),u=r(+i),c=!!o;if(a+t>s.byteLength)throw new q(P);for(var l=s.bytes,d=a+s.byteOffset,h=0;h<t;h++)l[d+h]=u[c?h:t-h-1]};if(s){var re=A&&D.name!==R;d((function(){D(1)}))&&d((function(){new D(-1)}))&&!d((function(){return new D,new D(1.5),new D(NaN),1!==D.length||re&&!x}))?re&&x&&u(D,"name",R):(U=function(e){return h(this,j),T(new D(v(e)),this,U)},U[I]=j,j.constructor=U,S(U,D)),y&&_(H)!==B&&y(H,B);var ie=new F(new U(2)),oe=i(H.setInt8);ie.setInt8(0,2147483648),ie.setInt8(1,2147483649),!ie.getInt8(0)&&ie.getInt8(1)||l(H,{setInt8:function(e,t){oe(this,e,t<<24>>24)},setUint8:function(e,t){oe(this,e,t<<24>>24)}},{unsafe:!0})}else U=function(e){h(this,j);var t=v(e);L(this,{type:R,bytes:V($(t),0),byteLength:t}),o||(this.byteLength=t,this.detached=!1)},j=U[I],F=function(e,t,n){h(this,H),h(e,j);var r=M(e),i=r.byteLength,s=f(t);if(s<0||s>i)throw new q("Wrong offset");if(n=void 0===n?i-s:p(n),s+n>i)throw new q(k);L(this,{type:O,buffer:e,byteLength:n,byteOffset:s,bytes:r.bytes}),o||(this.buffer=e,this.byteLength=n,this.byteOffset=s)},H=F[I],o&&(ee(U,"byteLength",M),ee(F,"buffer",N),ee(F,"byteLength",N),ee(F,"byteOffset",N)),l(H,{getInt8:function(e){return te(this,1,e)[0]<<24>>24},getUint8:function(e){return te(this,1,e)[0]},getInt16:function(e){var t=te(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=te(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return J(te(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return J(te(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return G(te(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return G(te(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){ne(this,1,e,Y,t)},setUint8:function(e,t){ne(this,1,e,Y,t)},setInt16:function(e,t){ne(this,2,e,K,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){ne(this,2,e,K,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){ne(this,4,e,X,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){ne(this,4,e,X,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){ne(this,4,e,Q,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){ne(this,8,e,Z,t,arguments.length>2&&arguments[2])}});C(U,R),C(F,O),e.exports={ArrayBuffer:U,DataView:F}},"624d":function(e,t,n){"use strict";n("9501")},6374:function(e,t,n){"use strict";var r=n("cfe9"),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},63748:function(e,t,n){n("e01a"),n("d9e2"),n("e260"),n("ddb0");var r=n("6613");function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,s=e},f:function(){try{a||null==n["return"]||n["return"]()}finally{if(u)throw s}}}}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},6547:function(e,t,n){"use strict";var r=n("e330"),i=n("5926"),o=n("577e"),s=n("1d80"),a=r("".charAt),u=r("".charCodeAt),c=r("".slice),l=function(e){return function(t,n){var r,l,d=o(s(t)),h=i(n),f=d.length;return h<0||h>=f?e?"":void 0:(r=u(d,h),r<55296||r>56319||h+1===f||(l=u(d,h+1))<56320||l>57343?e?a(d,h):r:e?c(d,h,h+2):l-56320+(r-55296<<10)+65536)}};e.exports={codeAt:l(!1),charAt:l(!0)}},6566:function(e,t,n){"use strict";var r=n("7c73"),i=n("edd0"),o=n("6964"),s=n("0366"),a=n("19aa"),u=n("7234"),c=n("2266"),l=n("c6d2"),d=n("4754"),h=n("2626"),f=n("83ab"),p=n("f183").fastKey,v=n("69f3"),m=v.set,g=v.getterFor;e.exports={getConstructor:function(e,t,n,l){var d=e((function(e,i){a(e,h),m(e,{type:t,index:r(null),first:null,last:null,size:0}),f||(e.size=0),u(i)||c(i,e[l],{that:e,AS_ENTRIES:n})})),h=d.prototype,v=g(t),_=function(e,t,n){var r,i,o=v(e),s=y(e,t);return s?s.value=n:(o.last=s={index:i=p(t,!0),key:t,value:n,previous:r=o.last,next:null,removed:!1},o.first||(o.first=s),r&&(r.next=s),f?o.size++:e.size++,"F"!==i&&(o.index[i]=s)),e},y=function(e,t){var n,r=v(e),i=p(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key===t)return n};return o(h,{clear:function(){var e=this,t=v(e),n=t.first;while(n)n.removed=!0,n.previous&&(n.previous=n.previous.next=null),n=n.next;t.first=t.last=null,t.index=r(null),f?t.size=0:e.size=0},delete:function(e){var t=this,n=v(t),r=y(t,e);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first===r&&(n.first=i),n.last===r&&(n.last=o),f?n.size--:t.size--}return!!r},forEach:function(e){var t,n=v(this),r=s(e,arguments.length>1?arguments[1]:void 0);while(t=t?t.next:n.first){r(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!y(this,e)}}),o(h,n?{get:function(e){var t=y(this,e);return t&&t.value},set:function(e,t){return _(this,0===e?0:e,t)}}:{add:function(e){return _(this,e=0===e?0:e,e)}}),f&&i(h,"size",{configurable:!0,get:function(){return v(this).size}}),d},setStrong:function(e,t,n){var r=t+" Iterator",i=g(t),o=g(r);l(e,t,(function(e,t){m(this,{type:r,target:e,state:i(e),kind:t,last:null})}),(function(){var e=o(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?d("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(e.target=null,d(void 0,!0))}),n?"entries":"values",!n,!0),h(t)}}},"65f0":function(e,t,n){"use strict";var r=n("0b42");e.exports=function(e,t){return new(r(e))(0===t?0:t)}},6613:function(e,t,n){n("a630"),n("ac1f"),n("00b4"),n("25f0");var r=n("5a43");function i(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.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)?r(e,t):void 0}}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},"67b6":function(e,t,n){"use strict";var r=n("58a8").start,i=n("c8d2");e.exports=i("trimStart")?function(){return r(this)}:"".trimStart},"68df":function(e,t,n){"use strict";var r=n("dc19"),i=n("8e16"),o=n("384f"),s=n("7f65");e.exports=function(e){var t=r(this),n=s(e);return!(i(t)>n.size)&&!1!==o(t,(function(e){if(!n.includes(e))return!1}),!0)}},"68ee":function(e,t,n){"use strict";var r=n("e330"),i=n("d039"),o=n("1626"),s=n("f5df"),a=n("d066"),u=n("8925"),c=function(){},l=a("Reflect","construct"),d=/^\s*(?:class|function)\b/,h=r(d.exec),f=!d.test(c),p=function(e){if(!o(e))return!1;try{return l(c,[],e),!0}catch(t){return!1}},v=function(e){if(!o(e))return!1;switch(s(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!h(d,u(e))}catch(t){return!0}};v.sham=!0,e.exports=!l||i((function(){var e;return p(p.call)||!p(Object)||!p((function(){e=!0}))||e}))?v:p},6964:function(e,t,n){"use strict";var r=n("cb2d");e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},"69f3":function(e,t,n){"use strict";var r,i,o,s=n("cdce"),a=n("cfe9"),u=n("861d"),c=n("9112"),l=n("1a2d"),d=n("c6cd"),h=n("f772"),f=n("d012"),p="Object already initialized",v=a.TypeError,m=a.WeakMap,g=function(e){return o(e)?i(e):r(e,{})},_=function(e){return function(t){var n;if(!u(t)||(n=i(t)).type!==e)throw new v("Incompatible receiver, "+e+" required");return n}};if(s||d.state){var y=d.state||(d.state=new m);y.get=y.get,y.has=y.has,y.set=y.set,r=function(e,t){if(y.has(e))throw new v(p);return t.facade=e,y.set(e,t),t},i=function(e){return y.get(e)||{}},o=function(e){return y.has(e)}}else{var b=h("state");f[b]=!0,r=function(e,t){if(l(e,b))throw new v(p);return t.facade=e,c(e,b,t),t},i=function(e){return l(e,b)?e[b]:{}},o=function(e){return l(e,b)}}e.exports={set:r,get:i,has:o,enforce:g,getterFor:_}},"6b37":function(e,t,n){"use strict";var r=n("f5df"),i=TypeError;e.exports=function(e){if("Uint8Array"===r(e))return e;throw new i("Argument is not an Uint8Array")}},"6c13":function(e,t,n){"use strict";n("ae08")},"6c57":function(e,t,n){"use strict";var r=n("23e7"),i=n("cfe9");r({global:!0,forced:i.globalThis!==i},{globalThis:i})},"6ce5":function(e,t,n){"use strict";var r=n("df7e"),i=n("ebb5"),o=i.aTypedArray,s=i.exportTypedArrayMethod,a=i.getTypedArrayConstructor;s("toReversed",(function(){return r(o(this),a(this))}))},"6d61":function(e,t,n){"use strict";var r=n("23e7"),i=n("cfe9"),o=n("e330"),s=n("94ca"),a=n("cb2d"),u=n("f183"),c=n("2266"),l=n("19aa"),d=n("1626"),h=n("7234"),f=n("861d"),p=n("d039"),v=n("1c7e"),m=n("d44e"),g=n("7156");e.exports=function(e,t,n){var _=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),b=_?"set":"add",w=i[e],T=w&&w.prototype,S=w,C={},E=function(e){var t=o(T[e]);a(T,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(y&&!f(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return y&&!f(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(y&&!f(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})},A=s(e,!d(w)||!(y||T.forEach&&!p((function(){(new w).entries().next()}))));if(A)S=n.getConstructor(t,e,_,b),u.enable();else if(s(e,!0)){var x=new S,R=x[b](y?{}:-0,1)!==x,O=p((function(){x.has(1)})),I=v((function(e){new w(e)})),k=!y&&p((function(){var e=new w,t=5;while(t--)e[b](t,t);return!e.has(-0)}));I||(S=t((function(e,t){l(e,T);var n=g(new w,e,S);return h(t)||c(t,n[b],{that:n,AS_ENTRIES:_}),n})),S.prototype=T,T.constructor=S),(O||k)&&(E("delete"),E("has"),_&&E("get")),(k||R)&&E(b),y&&T.clear&&delete T.clear}return C[e]=S,r({global:!0,constructor:!0,forced:S!==w},C),m(S,e),y||n.setStrong(S,e,_),S}},"6f19":function(e,t,n){"use strict";var r=n("9112"),i=n("0d26"),o=n("b980"),s=Error.captureStackTrace;e.exports=function(e,t,n,a){o&&(s?s(e,t):r(e,"stack",i(n,a)))}},"6f48":function(e,t,n){"use strict";var r=n("6d61"),i=n("6566");r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},7037:function(e,t,n){function r(t){return e.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports["default"]=e.exports,r(t)}n("e01a"),n("e260"),n("ddb0"),e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},7149:function(e,t,n){"use strict";var r=n("23e7"),i=n("d066"),o=n("c430"),s=n("d256"),a=n("4738").CONSTRUCTOR,u=n("cdf9"),c=i("Promise"),l=o&&!a;r({target:"Promise",stat:!0,forced:o||a},{resolve:function(e){return u(l&&this===c?s:this,e)}})},7156:function(e,t,n){"use strict";var r=n("1626"),i=n("861d"),o=n("d2bb");e.exports=function(e,t,n){var s,a;return o&&r(s=t.constructor)&&s!==n&&i(a=s.prototype)&&a!==n.prototype&&o(e,a),e}},7192:function(e,t,n){"use strict";var r=n("cfe9"),i=n("e330"),o=n("f69d"),s=n("8a96"),a=n("1a2d"),u=n("b917"),c=n("da63"),l=n("2005"),d=u.c2i,h=u.c2iUrl,f=r.SyntaxError,p=r.TypeError,v=i("".charAt),m=function(e,t){for(var n=e.length;t<n;t++){var r=v(e,t);if(" "!==r&&"\t"!==r&&"\n"!==r&&"\f"!==r&&"\r"!==r)break}return t},g=function(e,t,n){var r=e.length;r<4&&(e+=2===r?"AA":"A");var i=(t[v(e,0)]<<18)+(t[v(e,1)]<<12)+(t[v(e,2)]<<6)+t[v(e,3)],o=[i>>16&255,i>>8&255,255&i];if(2===r){if(n&&0!==o[1])throw new f("Extra bits");return[o[0]]}if(3===r){if(n&&0!==o[2])throw new f("Extra bits");return[o[0],o[1]]}return o},_=function(e,t,n){for(var r=t.length,i=0;i<r;i++)e[n+i]=t[i];return n+r};e.exports=function(e,t,n,r){s(e),o(t);var i="base64"===c(t)?d:h,u=t?t.lastChunkHandling:void 0;if(void 0===u&&(u="loose"),"loose"!==u&&"strict"!==u&&"stop-before-partial"!==u)throw new p("Incorrect `lastChunkHandling` option");n&&l(n.buffer);var y=e.length,b=n||[],w=0,T=0,S="",C=0;if(r)while(1){if(C=m(e,C),C===y){if(S.length>0){if("stop-before-partial"===u)break;if("loose"!==u)throw new f("Missing padding");if(1===S.length)throw new f("Malformed padding: exactly one additional character");w=_(b,g(S,i,!1),w)}T=y;break}var E=v(e,C);if(++C,"="===E){if(S.length<2)throw new f("Padding is too early");if(C=m(e,C),2===S.length){if(C===y){if("stop-before-partial"===u)break;throw new f("Malformed padding: only one =")}"="===v(e,C)&&(++C,C=m(e,C))}if(C<y)throw new f("Unexpected character after padding");w=_(b,g(S,i,"strict"===u),w),T=y;break}if(!a(i,E))throw new f("Unexpected character");var A=r-w;if(1===A&&2===S.length||2===A&&3===S.length)break;if(S+=E,4===S.length&&(w=_(b,g(S,i,!1),w),S="",T=C,w===r))break}return{bytes:b,read:T,written:w}}},7234:function(e,t,n){"use strict";e.exports=function(e){return null===e||void 0===e}},7282:function(e,t,n){"use strict";var r=n("e330"),i=n("59ed");e.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(o){}}},"72c3":function(e,t,n){"use strict";var r=n("23e7"),i=n("e9bc"),o=n("5320"),s=n("dad2"),a=!s("union")||!o("union");r({target:"Set",proto:!0,real:!0,forced:a},{union:i})},"735e":function(e,t,n){"use strict";var r=n("ebb5"),i=n("81d5"),o=n("f495"),s=n("f5df"),a=n("c65b"),u=n("e330"),c=n("d039"),l=r.aTypedArray,d=r.exportTypedArrayMethod,h=u("".slice),f=c((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e}));d("fill",(function(e){var t=arguments.length;l(this);var n="Big"===h(s(this),0,3)?o(e):+e;return a(i,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),f)},7364:function(e,t,n){"use strict";n("6184")},7418:function(e,t,n){"use strict";t.f=Object.getOwnPropertySymbols},7435:function(e,t,n){},"74e8":function(e,t,n){"use strict";var r=n("23e7"),i=n("cfe9"),o=n("c65b"),s=n("83ab"),a=n("8aa7"),u=n("ebb5"),c=n("621a"),l=n("19aa"),d=n("5c6c"),h=n("9112"),f=n("eac5"),p=n("50c4"),v=n("0b25"),m=n("182d"),g=n("13a6"),_=n("a04b"),y=n("1a2d"),b=n("f5df"),w=n("861d"),T=n("d9b5"),S=n("7c73"),C=n("3a9b"),E=n("d2bb"),A=n("241c").f,x=n("a078"),R=n("b727").forEach,O=n("2626"),I=n("edd0"),k=n("9bf2"),P=n("06cf"),M=n("dfb9"),N=n("69f3"),L=n("7156"),D=N.get,U=N.set,j=N.enforce,F=k.f,H=P.f,B=i.RangeError,$=c.ArrayBuffer,q=$.prototype,V=c.DataView,z=u.NATIVE_ARRAY_BUFFER_VIEWS,W=u.TYPED_ARRAY_TAG,G=u.TypedArray,Y=u.TypedArrayPrototype,K=u.isTypedArray,X="BYTES_PER_ELEMENT",J="Wrong length",Q=function(e,t){I(e,t,{configurable:!0,get:function(){return D(this)[t]}})},Z=function(e){var t;return C(q,e)||"ArrayBuffer"===(t=b(e))||"SharedArrayBuffer"===t},ee=function(e,t){return K(e)&&!T(t)&&t in e&&f(+t)&&t>=0},te=function(e,t){return t=_(t),ee(e,t)?d(2,e[t]):H(e,t)},ne=function(e,t,n){return t=_(t),!(ee(e,t)&&w(n)&&y(n,"value"))||y(n,"get")||y(n,"set")||n.configurable||y(n,"writable")&&!n.writable||y(n,"enumerable")&&!n.enumerable?F(e,t,n):(e[t]=n.value,e)};s?(z||(P.f=te,k.f=ne,Q(Y,"buffer"),Q(Y,"byteOffset"),Q(Y,"byteLength"),Q(Y,"length")),r({target:"Object",stat:!0,forced:!z},{getOwnPropertyDescriptor:te,defineProperty:ne}),e.exports=function(e,t,n){var s=e.match(/\d+/)[0]/8,u=e+(n?"Clamped":"")+"Array",c="get"+e,d="set"+e,f=i[u],_=f,y=_&&_.prototype,b={},T=function(e,t){var n=D(e);return n.view[c](t*s+n.byteOffset,!0)},C=function(e,t,r){var i=D(e);i.view[d](t*s+i.byteOffset,n?g(r):r,!0)},I=function(e,t){F(e,t,{get:function(){return T(this,t)},set:function(e){return C(this,t,e)},enumerable:!0})};z?a&&(_=t((function(e,t,n,r){return l(e,y),L(function(){return w(t)?Z(t)?void 0!==r?new f(t,m(n,s),r):void 0!==n?new f(t,m(n,s)):new f(t):K(t)?M(_,t):o(x,_,t):new f(v(t))}(),e,_)})),E&&E(_,G),R(A(f),(function(e){e in _||h(_,e,f[e])})),_.prototype=y):(_=t((function(e,t,n,r){l(e,y);var i,a,u,c=0,d=0;if(w(t)){if(!Z(t))return K(t)?M(_,t):o(x,_,t);i=t,d=m(n,s);var h=t.byteLength;if(void 0===r){if(h%s)throw new B(J);if(a=h-d,a<0)throw new B(J)}else if(a=p(r)*s,a+d>h)throw new B(J);u=a/s}else u=v(t),a=u*s,i=new $(a);U(e,{buffer:i,byteOffset:d,byteLength:a,length:u,view:new V(i)});while(c<u)I(e,c++)})),E&&E(_,G),y=_.prototype=S(Y)),y.constructor!==_&&h(y,"constructor",_),j(y).TypedArrayConstructor=_,W&&h(y,W,u);var k=_!==f;b[u]=_,r({global:!0,constructor:!0,forced:k,sham:!z},b),X in _||h(_,X,s),X in y||h(y,X,s),O(u)}):e.exports=function(){}},"75bd":function(e,t,n){"use strict";var r=n("cfe9"),i=n("4b11"),o=n("b620"),s=r.DataView;e.exports=function(e){if(!i||0!==o(e))return!1;try{return new s(e),!1}catch(t){return!0}}},"77a7":function(e,t,n){"use strict";var r=Array,i=Math.abs,o=Math.pow,s=Math.floor,a=Math.log,u=Math.LN2,c=function(e,t,n){var c,l,d,h=r(n),f=8*n-t-1,p=(1<<f)-1,v=p>>1,m=23===t?o(2,-24)-o(2,-77):0,g=e<0||0===e&&1/e<0?1:0,_=0;e=i(e),e!==e||e===1/0?(l=e!==e?1:0,c=p):(c=s(a(e)/u),d=o(2,-c),e*d<1&&(c--,d*=2),e+=c+v>=1?m/d:m*o(2,1-v),e*d>=2&&(c++,d/=2),c+v>=p?(l=0,c=p):c+v>=1?(l=(e*d-1)*o(2,t),c+=v):(l=e*o(2,v-1)*o(2,t),c=0));while(t>=8)h[_++]=255&l,l/=256,t-=8;c=c<<t|l,f+=t;while(f>0)h[_++]=255&c,c/=256,f-=8;return h[_-1]|=128*g,h},l=function(e,t){var n,r=e.length,i=8*r-t-1,s=(1<<i)-1,a=s>>1,u=i-7,c=r-1,l=e[c--],d=127&l;l>>=7;while(u>0)d=256*d+e[c--],u-=8;n=d&(1<<-u)-1,d>>=-u,u+=t;while(u>0)n=256*n+e[c--],u-=8;if(0===d)d=1-a;else{if(d===s)return n?NaN:l?-1/0:1/0;n+=o(2,t),d-=a}return(l?-1:1)*n*o(2,d-t)};e.exports={pack:c,unpack:l}},7839:function(e,t,n){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"785a":function(e,t,n){"use strict";var r=n("cc12"),i=r("span").classList,o=i&&i.constructor&&i.constructor.prototype;e.exports=o===Object.prototype?void 0:o},"79a4":function(e,t,n){"use strict";var r=n("23e7"),i=n("d039"),o=n("953b"),s=n("dad2"),a=!s("intersection",(function(e){return 2===e.size&&e.has(1)&&e.has(2)}))||i((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}));r({target:"Set",proto:!0,real:!0,forced:a},{intersection:o})},"7b0b":function(e,t,n){"use strict";var r=n("1d80"),i=Object;e.exports=function(e){return i(r(e))}},"7c73":function(e,t,n){"use strict";var r,i=n("825a"),o=n("37e8"),s=n("7839"),a=n("d012"),u=n("1be4"),c=n("cc12"),l=n("f772"),d=">",h="<",f="prototype",p="script",v=l("IE_PROTO"),m=function(){},g=function(e){return h+p+d+e+h+"/"+p+d},_=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){var e,t=c("iframe"),n="java"+p+":";return t.style.display="none",u.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(g("document.F=Object")),e.close(),e.F},b=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}b="undefined"!=typeof document?document.domain&&r?_(r):y():_(r);var e=s.length;while(e--)delete b[f][s[e]];return b()};a[v]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(m[f]=i(e),n=new m,m[f]=null,n[v]=e):n=b(),void 0===t?n:o.f(n,t)}},"7d54":function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),o=n("2266"),s=n("59ed"),a=n("825a"),u=n("46c4"),c=n("2a62"),l=n("f99f"),d=l("forEach",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:d},{forEach:function(e){a(this);try{s(e)}catch(r){c(this,"throw",r)}if(d)return i(d,this,e);var t=u(this),n=0;o(t,(function(t){e(t,n++)}),{IS_RECORD:!0})}})},"7e12":function(e,t,n){"use strict";var r=n("cfe9"),i=n("d039"),o=n("e330"),s=n("577e"),a=n("58a8").trim,u=n("5899"),c=o("".charAt),l=r.parseFloat,d=r.Symbol,h=d&&d.iterator,f=1/l(u+"-0")!==-1/0||h&&!i((function(){l(Object(h))}));e.exports=f?function(e){var t=a(s(e)),n=l(t);return 0===n&&"-"===c(t,0)?-0:n}:l},"7f65":function(e,t,n){"use strict";var r=n("59ed"),i=n("825a"),o=n("c65b"),s=n("5926"),a=n("46c4"),u="Invalid size",c=RangeError,l=TypeError,d=Math.max,h=function(e,t){this.set=e,this.size=d(t,0),this.has=r(e.has),this.keys=r(e.keys)};h.prototype={getIterator:function(){return a(i(o(this.keys,this.set)))},includes:function(e){return o(this.has,this.set,e)}},e.exports=function(e){i(e);var t=+e.size;if(t!==t)throw new l(u);var n=s(t);if(n<0)throw new c(u);return new h(e,n)}},"81b2":function(e,t,n){"use strict";var r=n("23e7"),i=n("cfe9"),o=n("d066"),s=n("e330"),a=n("c65b"),u=n("d039"),c=n("577e"),l=n("d6d6"),d=n("b917").c2i,h=/[^\d+/a-z]/i,f=/[\t\n\f\r ]+/g,p=/[=]{1,2}$/,v=o("atob"),m=String.fromCharCode,g=s("".charAt),_=s("".replace),y=s(h.exec),b=!!v&&!u((function(){return"hi"!==v("aGk=")})),w=b&&u((function(){return""!==v(" ")})),T=b&&!u((function(){v("a")})),S=b&&!u((function(){v()})),C=b&&1!==v.length,E=!b||w||T||S||C;r({global:!0,bind:!0,enumerable:!0,forced:E},{atob:function(e){if(l(arguments.length,1),b&&!w&&!T)return a(v,i,e);var t,n,r,s=_(c(e),f,""),u="",S=0,C=0;if(s.length%4===0&&(s=_(s,p,"")),t=s.length,t%4===1||y(h,s))throw new(o("DOMException"))("The string is not correctly encoded","InvalidCharacterError");while(S<t)n=g(s,S++),r=C%4?64*r+d[n]:d[n],C++%4&&(u+=m(255&r>>(-2*C&6)));return u}})},"81d5":function(e,t,n){"use strict";var r=n("7b0b"),i=n("23cb"),o=n("07fa");e.exports=function(e){var t=r(this),n=o(t),s=arguments.length,a=i(s>1?arguments[1]:void 0,n),u=s>2?arguments[2]:void 0,c=void 0===u?n:i(u,n);while(c>a)t[a++]=e;return t}},"825a":function(e,t,n){"use strict";var r=n("861d"),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not an object")}},"82e3":function(e,t,n){"use strict";var r=2220446049250313e-31,i=1/r;e.exports=function(e){return e+i-i}},"83ab":function(e,t,n){"use strict";var r=n("d039");e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83b9":function(e,t,n){"use strict";var r=n("cb27"),i=n("384f"),o=r.Set,s=r.add;e.exports=function(e){var t=new o;return i(e,(function(e){s(t,e)})),t}},8407:function(e,t,n){"use strict";var r=n("23e7"),i=n("cfe9"),o=n("7192"),s=n("6b37"),a=i.Uint8Array,u=!a||!a.prototype.setFromBase64||!function(){var e=new a([255,255,255,255,255]);try{return void e.setFromBase64("",null)}catch(t){}try{return void e.setFromBase64("a")}catch(t){}try{e.setFromBase64("MjYyZg===")}catch(t){return 50===e[0]&&54===e[1]&&50===e[2]&&255===e[3]&&255===e[4]}}();a&&r({target:"Uint8Array",proto:!0,forced:u},{setFromBase64:function(e){s(this);var t=o(e,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:t.read,written:t.written}}})},8418:function(e,t,n){"use strict";var r=n("83ab"),i=n("9bf2"),o=n("5c6c");e.exports=function(e,t,n){r?i.f(e,t,o(0,n)):e[t]=n}},"841c":function(e,t,n){"use strict";var r=n("c65b"),i=n("d784"),o=n("825a"),s=n("861d"),a=n("1d80"),u=n("129f"),c=n("577e"),l=n("dc4a"),d=n("14c3");i("search",(function(e,t,n){return[function(t){var n=a(this),i=s(t)?l(t,e):void 0;return i?r(i,t,n):new RegExp(t)[e](c(n))},function(e){var r=o(this),i=c(e),s=n(t,r,i);if(s.done)return s.value;var a=r.lastIndex;u(a,0)||(r.lastIndex=0);var l=d(r,i);return u(r.lastIndex,a)||(r.lastIndex=a),null===l?-1:l.index}]}))},8558:function(e,t,n){"use strict";var r=n("cfe9"),i=n("b5db"),o=n("c6b6"),s=function(e){return i.slice(0,e.length)===e};e.exports=function(){return s("Bun/")?"BUN":s("Cloudflare-Workers")?"CLOUDFLARE":s("Deno/")?"DENO":s("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===o(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"}()},"861d":function(e,t,n){"use strict";var r=n("1626");e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},"86cc":function(e,t,n){},"88a7":function(e,t,n){"use strict";var r=n("cb2d"),i=n("e330"),o=n("577e"),s=n("d6d6"),a=URLSearchParams,u=a.prototype,c=i(u.append),l=i(u["delete"]),d=i(u.forEach),h=i([].push),f=new a("a=1&a=2&b=3");f["delete"]("a",1),f["delete"]("b",void 0),f+""!=="a=2"&&r(u,"delete",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return l(this,e);var r=[];d(this,(function(e,t){h(r,{key:t,value:e})})),s(t,1);var i,a=o(e),u=o(n),f=0,p=0,v=!1,m=r.length;while(f<m)i=r[f++],v||i.key===a?(v=!0,l(this,i.key)):p++;while(p<m)i=r[p++],i.key===a&&i.value===u||c(this,i.key,i.value)}),{enumerable:!0,unsafe:!0})},8925:function(e,t,n){"use strict";var r=n("e330"),i=n("1626"),o=n("c6cd"),s=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return s(e)}),e.exports=o.inspectSource},"8a79":function(e,t,n){"use strict";var r=n("23e7"),i=n("4625"),o=n("06cf").f,s=n("50c4"),a=n("577e"),u=n("5a34"),c=n("1d80"),l=n("ab13"),d=n("c430"),h=i("".slice),f=Math.min,p=l("endsWith"),v=!d&&!p&&!!function(){var e=o(String.prototype,"endsWith");return e&&!e.writable}();r({target:"String",proto:!0,forced:!v&&!p},{endsWith:function(e){var t=a(c(this));u(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,i=void 0===n?r:f(s(n),r),o=a(e);return h(t,i-o.length,i)===o}})},"8a96":function(e,t,n){"use strict";var r=TypeError;e.exports=function(e){if("string"==typeof e)return e;throw new r("Argument is not a string")}},"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){"use strict";var r=n("cfe9"),i=n("d039"),o=n("1c7e"),s=n("ebb5").NATIVE_ARRAY_BUFFER_VIEWS,a=r.ArrayBuffer,u=r.Int8Array;e.exports=!s||!i((function(){u(1)}))||!i((function(){new u(-1)}))||!o((function(e){new u,new u(null),new u(1.5),new u(e)}),!0)||i((function(){return 1!==new u(new a(2),1,void 0).length}))},"8b00":function(e,t,n){"use strict";var r=n("23e7"),i=n("68df"),o=n("dad2"),s=!o("isSubsetOf",(function(e){return e}));r({target:"Set",proto:!0,real:!0,forced:s},{isSubsetOf:i})},"8bbf":function(t,n){t.exports=e},"8bd4":function(e,t,n){"use strict";var r=n("d066"),i=n("d44e"),o="DOMException";i(r(o),o)},"8d4f":function(e,t,n){},"8e16":function(e,t,n){"use strict";var r=n("7282"),i=n("cb27");e.exports=r(i.proto,"size","get")||function(e){return e.size}},"907a":function(e,t,n){"use strict";var r=n("ebb5"),i=n("07fa"),o=n("5926"),s=r.aTypedArray,a=r.exportTypedArrayMethod;a("at",(function(e){var t=s(this),n=i(t),r=o(e),a=r>=0?r:n+r;return a<0||a>=n?void 0:t[a]}))},"90d8":function(e,t,n){"use strict";var r=n("c65b"),i=n("1a2d"),o=n("3a9b"),s=n("0f33"),a=n("ad6d"),u=RegExp.prototype;e.exports=s.correct?function(e){return e.flags}:function(e){return s.correct||!o(u,e)||i(e,"flags")?e.flags:r(a,e)}},"90e3":function(e,t,n){"use strict";var r=n("e330"),i=0,o=Math.random(),s=r(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++i+o,36)}},"910d":function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),o=n("59ed"),s=n("825a"),a=n("46c4"),u=n("c5cc"),c=n("9bdd"),l=n("c430"),d=n("2a62"),h=n("2baa"),f=n("f99f"),p=!l&&!h("filter",(function(){})),v=!l&&!p&&f("filter",TypeError),m=l||p||v,g=u((function(){var e,t,n,r=this.iterator,o=this.predicate,a=this.next;while(1){if(e=s(i(a,r)),t=this.done=!!e.done,t)return;if(n=e.value,c(r,o,[n,this.counter++],!0))return n}}));r({target:"Iterator",proto:!0,real:!0,forced:m},{filter:function(e){s(this);try{o(e)}catch(t){d(this,"throw",t)}return v?i(v,this,e):new g(a(this),{predicate:e})}})},9112:function(e,t,n){"use strict";var r=n("83ab"),i=n("9bf2"),o=n("5c6c");e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},9152:function(e,t){
3
+ var t,n,o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",a=o.toStringTag||"@@toStringTag";function u(e,i,o,s){var a=i&&i.prototype instanceof l?i:l,u=Object.create(a.prototype);return r(u,"_invoke",function(e,r,i){var o,s,a,u=0,l=i||[],d=!1,h={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,n){return o=e,s=0,a=t,h.n=n,c}};function f(e,r){for(s=e,a=r,n=0;!d&&u&&!i&&n<l.length;n++){var i,o=l[n],f=h.p,p=o[2];e>3?(i=p===r)&&(a=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=t):o[0]<=f&&((i=e<2&&f<o[1])?(s=0,h.v=r,h.n=o[1]):f<p&&(i=e<3||o[0]>r||r>p)&&(o[4]=e,o[5]=r,h.n=p,s=0))}if(i||e>1)return c;throw d=!0,r}return function(i,l,p){if(u>1)throw TypeError("Generator is already running");for(d&&1===l&&f(l,p),s=l,a=p;(n=s<2?t:a)||!d;){o||(s?s<3?(s>1&&(h.n=-1),f(s,a)):h.n=a:h.v=a);try{if(u=2,o){if(s||(i="next"),n=o[i]){if(!(n=n.call(o,a)))throw TypeError("iterator result is not an object");if(!n.done)return n;a=n.value,s<2&&(s=0)}else 1===s&&(n=o["return"])&&n.call(o),s<2&&(a=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=t}else if((n=(d=h.n<0)?a:e.call(r,h))!==c)break}catch(n){o=t,s=1,a=n}finally{u=1}}return{value:n,done:d}}}(e,o,s),!0),u}var c={};function l(){}function d(){}function h(){}n=Object.getPrototypeOf;var f=[][s]?n(n([][s]())):(r(n={},s,(function(){return this})),n),p=h.prototype=l.prototype=Object.create(f);function v(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,r(e,a,"GeneratorFunction")),e.prototype=Object.create(p),e}return d.prototype=h,r(p,"constructor",h),r(h,"constructor",d),d.displayName="GeneratorFunction",r(h,a,"GeneratorFunction"),r(p),r(p,a,"Generator"),r(p,s,(function(){return this})),r(p,"toString",(function(){return"[object Generator]"})),(e.exports=i=function(){return{w:u,m:v}},e.exports.__esModule=!0,e.exports["default"]=e.exports)()}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},"3a34":function(e,t,n){"use strict";var r=n("83ab"),i=n("e8b5"),o=TypeError,s=Object.getOwnPropertyDescriptor,a=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=a?function(e,t){if(i(e)&&!s(e,"length").writable)throw new o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},"3a9b":function(e,t,n){"use strict";var r=n("e330");e.exports=r({}.isPrototypeOf)},"3bbe":function(e,t,n){"use strict";var r=n("1787"),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o("Can't set "+i(e)+" as a prototype")}},"3c5d":function(e,t,n){"use strict";var r=n("cfe9"),i=n("c65b"),o=n("ebb5"),s=n("07fa"),a=n("182d"),u=n("7b0b"),c=n("d039"),l=r.RangeError,d=r.Int8Array,h=d&&d.prototype,f=h&&h.set,p=o.aTypedArray,v=o.exportTypedArrayMethod,m=!c((function(){var e=new Uint8ClampedArray(2);return i(f,e,{length:1,0:3},1),3!==e[1]})),g=m&&o.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var e=new d(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));v("set",(function(e){p(this);var t=a(arguments.length>1?arguments[1]:void 0,1),n=u(e);if(m)return i(f,this,n,t);var r=this.length,o=s(n),c=0;if(o+t>r)throw new l("Wrong length");while(c<o)this[t+c]=n[c++]}),!m||g)},"3c65":function(e,t,n){"use strict";var r=n("23e7"),i=n("7b0b"),o=n("07fa"),s=n("3a34"),a=n("083a"),u=n("3511"),c=1!==[].unshift(0),l=function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}},d=c||!l();r({target:"Array",proto:!0,arity:1,forced:d},{unshift:function(e){var t=i(this),n=o(t),r=arguments.length;if(r){u(n+r);var c=n;while(c--){var l=c+r;c in t?t[l]=t[c]:a(t,l)}for(var d=0;d<r;d++)t[d]=arguments[d]}return s(t,n+r)}})},"3c93":function(e,t,n){},"3ca3":function(e,t,n){"use strict";var r=n("6547").charAt,i=n("577e"),o=n("69f3"),s=n("c6d2"),a=n("4754"),u="String Iterator",c=o.set,l=o.getterFor(u);s(String,"String",(function(e){c(this,{type:u,string:i(e),index:0})}),(function(){var e,t=l(this),n=t.string,i=t.index;return i>=n.length?a(void 0,!0):(e=r(n,i),t.index+=e.length,a(e,!1))}))},"3f7e":function(e,t,n){"use strict";var r=n("b5db"),i=r.match(/firefox\/(\d+)/i);e.exports=!!i&&+i[1]},"3f8c":function(e,t,n){"use strict";e.exports={}},4002:function(e,t,n){"use strict";n("3ca3");var r,i=n("23e7"),o=n("83ab"),s=n("f354"),a=n("cfe9"),u=n("0366"),c=n("e330"),l=n("cb2d"),d=n("edd0"),h=n("19aa"),f=n("1a2d"),p=n("60da"),v=n("4df4"),m=n("f36a"),g=n("6547").codeAt,_=n("5fb2"),y=n("577e"),b=n("d44e"),w=n("d6d6"),T=n("5352"),S=n("69f3"),C=S.set,E=S.getterFor("URL"),A=T.URLSearchParams,x=T.getState,R=a.URL,O=a.TypeError,I=a.parseInt,k=Math.floor,P=Math.pow,M=c("".charAt),N=c(/./.exec),L=c([].join),D=c(1.1.toString),U=c([].pop),j=c([].push),F=c("".replace),H=c([].shift),B=c("".split),$=c("".slice),q=c("".toLowerCase),V=c([].unshift),z="Invalid authority",W="Invalid scheme",G="Invalid host",Y="Invalid port",K=/[a-z]/i,X=/[\d+-.a-z]/i,J=/\d/,Q=/^0x/i,Z=/^[0-7]+$/,ee=/^\d+$/,te=/^[\da-f]+$/i,ne=/[\0\t\n\r #%/:<>?@[\\\]^|]/,re=/[\0\t\n\r #/:<>?@[\\\]^|]/,ie=/^[\u0000-\u0020]+/,oe=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,se=/[\t\n\r]/g,ae=function(e){var t,n,r,i,o,s,a,u=B(e,".");if(u.length&&""===u[u.length-1]&&u.length--,t=u.length,t>4)return e;for(n=[],r=0;r<t;r++){if(i=u[r],""===i)return e;if(o=10,i.length>1&&"0"===M(i,0)&&(o=N(Q,i)?16:8,i=$(i,8===o?1:2)),""===i)s=0;else{if(!N(10===o?ee:8===o?Z:te,i))return e;s=I(i,o)}j(n,s)}for(r=0;r<t;r++)if(s=n[r],r===t-1){if(s>=P(256,5-t))return null}else if(s>255)return null;for(a=U(n),r=0;r<n.length;r++)a+=n[r]*P(256,3-r);return a},ue=function(e){var t,n,r,i,o,s,a,u=[0,0,0,0,0,0,0,0],c=0,l=null,d=0,h=function(){return M(e,d)};if(":"===h()){if(":"!==M(e,1))return;d+=2,c++,l=c}while(h()){if(8===c)return;if(":"!==h()){t=n=0;while(n<4&&N(te,h()))t=16*t+I(h(),16),d++,n++;if("."===h()){if(0===n)return;if(d-=n,c>6)return;r=0;while(h()){if(i=null,r>0){if(!("."===h()&&r<4))return;d++}if(!N(J,h()))return;while(N(J,h())){if(o=I(h(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;d++}u[c]=256*u[c]+i,r++,2!==r&&4!==r||c++}if(4!==r)return;break}if(":"===h()){if(d++,!h())return}else if(h())return;u[c++]=t}else{if(null!==l)return;d++,c++,l=c}}if(null!==l){s=c-l,c=7;while(0!==c&&s>0)a=u[c],u[c--]=u[l+s-1],u[l+--s]=a}else if(8!==c)return;return u},ce=function(e){for(var t=null,n=1,r=null,i=0,o=0;o<8;o++)0!==e[o]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n?r:t},le=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)V(t,e%256),e=k(e/256);return L(t,".")}if("object"==typeof e){for(t="",r=ce(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=D(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},de={},he=p({},de,{" ":1,'"':1,"<":1,">":1,"`":1}),fe=p({},he,{"#":1,"?":1,"{":1,"}":1}),pe=p({},fe,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ve=function(e,t){var n=g(e,0);return n>32&&n<127&&!f(t,e)?e:encodeURIComponent(e)},me={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ge=function(e,t){var n;return 2===e.length&&N(K,M(e,0))&&(":"===(n=M(e,1))||!t&&"|"===n)},_e=function(e){var t;return e.length>1&&ge($(e,0,2))&&(2===e.length||"/"===(t=M(e,2))||"\\"===t||"?"===t||"#"===t)},ye=function(e){return"."===e||"%2e"===q(e)},be=function(e){return e=q(e),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},we={},Te={},Se={},Ce={},Ee={},Ae={},xe={},Re={},Oe={},Ie={},ke={},Pe={},Me={},Ne={},Le={},De={},Ue={},je={},Fe={},He={},Be={},$e=function(e,t,n){var r,i,o,s=y(e);if(t){if(i=this.parse(s),i)throw new O(i);this.searchParams=null}else{if(void 0!==n&&(r=new $e(n,!0)),i=this.parse(s,null,r),i)throw new O(i);o=x(new A),o.bindURL(this),this.searchParams=o}};$e.prototype={type:"URL",parse:function(e,t,n){var i,o,s,a,u=this,c=t||we,l=0,d="",h=!1,p=!1,g=!1;e=y(e),t||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,e=F(e,ie,""),e=F(e,oe,"$1")),e=F(e,se,""),i=v(e);while(l<=i.length){switch(o=i[l],c){case we:if(!o||!N(K,o)){if(t)return W;c=Se;continue}d+=q(o),c=Te;break;case Te:if(o&&(N(X,o)||"+"===o||"-"===o||"."===o))d+=q(o);else{if(":"!==o){if(t)return W;d="",c=Se,l=0;continue}if(t&&(u.isSpecial()!==f(me,d)||"file"===d&&(u.includesCredentials()||null!==u.port)||"file"===u.scheme&&!u.host))return;if(u.scheme=d,t)return void(u.isSpecial()&&me[u.scheme]===u.port&&(u.port=null));d="","file"===u.scheme?c=Ne:u.isSpecial()&&n&&n.scheme===u.scheme?c=Ce:u.isSpecial()?c=Re:"/"===i[l+1]?(c=Ee,l++):(u.cannotBeABaseURL=!0,j(u.path,""),c=Fe)}break;case Se:if(!n||n.cannotBeABaseURL&&"#"!==o)return W;if(n.cannotBeABaseURL&&"#"===o){u.scheme=n.scheme,u.path=m(n.path),u.query=n.query,u.fragment="",u.cannotBeABaseURL=!0,c=Be;break}c="file"===n.scheme?Ne:Ae;continue;case Ce:if("/"!==o||"/"!==i[l+1]){c=Ae;continue}c=Oe,l++;break;case Ee:if("/"===o){c=Ie;break}c=je;continue;case Ae:if(u.scheme=n.scheme,o===r)u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=m(n.path),u.query=n.query;else if("/"===o||"\\"===o&&u.isSpecial())c=xe;else if("?"===o)u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=m(n.path),u.query="",c=He;else{if("#"!==o){u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=m(n.path),u.path.length--,c=je;continue}u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=m(n.path),u.query=n.query,u.fragment="",c=Be}break;case xe:if(!u.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,c=je;continue}c=Ie}else c=Oe;break;case Re:if(c=Oe,"/"!==o||"/"!==M(d,l+1))continue;l++;break;case Oe:if("/"!==o&&"\\"!==o){c=Ie;continue}break;case Ie:if("@"===o){h&&(d="%40"+d),h=!0,s=v(d);for(var _=0;_<s.length;_++){var b=s[_];if(":"!==b||g){var w=ve(b,pe);g?u.password+=w:u.username+=w}else g=!0}d=""}else if(o===r||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()){if(h&&""===d)return z;l-=v(d).length+1,d="",c=ke}else d+=o;break;case ke:case Pe:if(t&&"file"===u.scheme){c=De;continue}if(":"!==o||p){if(o===r||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()){if(u.isSpecial()&&""===d)return G;if(t&&""===d&&(u.includesCredentials()||null!==u.port))return;if(a=u.parseHost(d),a)return a;if(d="",c=Ue,t)return;continue}"["===o?p=!0:"]"===o&&(p=!1),d+=o}else{if(""===d)return G;if(a=u.parseHost(d),a)return a;if(d="",c=Me,t===Pe)return}break;case Me:if(!N(J,o)){if(o===r||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()||t){if(""!==d){var T=I(d,10);if(T>65535)return Y;u.port=u.isSpecial()&&T===me[u.scheme]?null:T,d=""}if(t)return;c=Ue;continue}return Y}d+=o;break;case Ne:if(u.scheme="file","/"===o||"\\"===o)c=Le;else{if(!n||"file"!==n.scheme){c=je;continue}switch(o){case r:u.host=n.host,u.path=m(n.path),u.query=n.query;break;case"?":u.host=n.host,u.path=m(n.path),u.query="",c=He;break;case"#":u.host=n.host,u.path=m(n.path),u.query=n.query,u.fragment="",c=Be;break;default:_e(L(m(i,l),""))||(u.host=n.host,u.path=m(n.path),u.shortenPath()),c=je;continue}}break;case Le:if("/"===o||"\\"===o){c=De;break}n&&"file"===n.scheme&&!_e(L(m(i,l),""))&&(ge(n.path[0],!0)?j(u.path,n.path[0]):u.host=n.host),c=je;continue;case De:if(o===r||"/"===o||"\\"===o||"?"===o||"#"===o){if(!t&&ge(d))c=je;else if(""===d){if(u.host="",t)return;c=Ue}else{if(a=u.parseHost(d),a)return a;if("localhost"===u.host&&(u.host=""),t)return;d="",c=Ue}continue}d+=o;break;case Ue:if(u.isSpecial()){if(c=je,"/"!==o&&"\\"!==o)continue}else if(t||"?"!==o)if(t||"#"!==o){if(o!==r&&(c=je,"/"!==o))continue}else u.fragment="",c=Be;else u.query="",c=He;break;case je:if(o===r||"/"===o||"\\"===o&&u.isSpecial()||!t&&("?"===o||"#"===o)){if(be(d)?(u.shortenPath(),"/"===o||"\\"===o&&u.isSpecial()||j(u.path,"")):ye(d)?"/"===o||"\\"===o&&u.isSpecial()||j(u.path,""):("file"===u.scheme&&!u.path.length&&ge(d)&&(u.host&&(u.host=""),d=M(d,0)+":"),j(u.path,d)),d="","file"===u.scheme&&(o===r||"?"===o||"#"===o))while(u.path.length>1&&""===u.path[0])H(u.path);"?"===o?(u.query="",c=He):"#"===o&&(u.fragment="",c=Be)}else d+=ve(o,fe);break;case Fe:"?"===o?(u.query="",c=He):"#"===o?(u.fragment="",c=Be):o!==r&&(u.path[0]+=ve(o,de));break;case He:t||"#"!==o?o!==r&&("'"===o&&u.isSpecial()?u.query+="%27":u.query+="#"===o?"%23":ve(o,de)):(u.fragment="",c=Be);break;case Be:o!==r&&(u.fragment+=ve(o,he));break}l++}},parseHost:function(e){var t,n,r;if("["===M(e,0)){if("]"!==M(e,e.length-1))return G;if(t=ue($(e,1,-1)),!t)return G;this.host=t}else if(this.isSpecial()){if(e=_(e),N(ne,e))return G;if(t=ae(e),null===t)return G;this.host=t}else{if(N(re,e))return G;for(t="",n=v(e),r=0;r<n.length;r++)t+=ve(n[r],de);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return f(me,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&ge(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,s=e.path,a=e.query,u=e.fragment,c=t+":";return null!==i?(c+="//",e.includesCredentials()&&(c+=n+(r?":"+r:"")+"@"),c+=le(i),null!==o&&(c+=":"+o)):"file"===t&&(c+="//"),c+=e.cannotBeABaseURL?s[0]:s.length?"/"+L(s,"/"):"",null!==a&&(c+="?"+a),null!==u&&(c+="#"+u),c},setHref:function(e){var t=this.parse(e);if(t)throw new O(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new qe(e.path[0]).origin}catch(n){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+le(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(y(e)+":",we)},getUsername:function(){return this.username},setUsername:function(e){var t=v(y(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=ve(t[n],pe)}},getPassword:function(){return this.password},setPassword:function(e){var t=v(y(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=ve(t[n],pe)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?le(e):le(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,ke)},getHostname:function(){var e=this.host;return null===e?"":le(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Pe)},getPort:function(){var e=this.port;return null===e?"":y(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(e=y(e),""===e?this.port=null:this.parse(e,Me))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+L(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Ue))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){e=y(e),""===e?this.query=null:("?"===M(e,0)&&(e=$(e,1)),this.query="",this.parse(e,He)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){e=y(e),""!==e?("#"===M(e,0)&&(e=$(e,1)),this.fragment="",this.parse(e,Be)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var qe=function(e){var t=h(this,Ve),n=w(arguments.length,1)>1?arguments[1]:void 0,r=C(t,new $e(e,!1,n));o||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},Ve=qe.prototype,ze=function(e,t){return{get:function(){return E(this)[e]()},set:t&&function(e){return E(this)[t](e)},configurable:!0,enumerable:!0}};if(o&&(d(Ve,"href",ze("serialize","setHref")),d(Ve,"origin",ze("getOrigin")),d(Ve,"protocol",ze("getProtocol","setProtocol")),d(Ve,"username",ze("getUsername","setUsername")),d(Ve,"password",ze("getPassword","setPassword")),d(Ve,"host",ze("getHost","setHost")),d(Ve,"hostname",ze("getHostname","setHostname")),d(Ve,"port",ze("getPort","setPort")),d(Ve,"pathname",ze("getPathname","setPathname")),d(Ve,"search",ze("getSearch","setSearch")),d(Ve,"searchParams",ze("getSearchParams")),d(Ve,"hash",ze("getHash","setHash"))),l(Ve,"toJSON",(function(){return E(this).serialize()}),{enumerable:!0}),l(Ve,"toString",(function(){return E(this).serialize()}),{enumerable:!0}),R){var We=R.createObjectURL,Ge=R.revokeObjectURL;We&&l(qe,"createObjectURL",u(We,R)),Ge&&l(qe,"revokeObjectURL",u(Ge,R))}b(qe,"URL"),i({global:!0,constructor:!0,forced:!s,sham:!o},{URL:qe})},4022:function(e,t,n){(function(t,r){var i,o=n("ac14").default,s=n("398e").default,a=n("c973").default,u=n("63748").default,c=n("ded3").default;n("e01a"),n("d9e2"),n("a630"),n("caad"),n("e260"),n("14d9"),n("13d5"),n("26e9"),n("4e82"),n("3c65"),n("c19f"),n("ace4"),n("2c66"),n("249d"),n("40e9"),n("6c57"),n("e9f5"),n("910d"),n("f665"),n("7d54"),n("ab43"),n("9485"),n("a732"),n("e9c4"),n("cca6"),n("acd8"),n("e25e"),n("e6cf"),n("f8c9"),n("4d63"),n("c607"),n("ac1f"),n("00b4"),n("25f0"),n("8a79"),n("2532"),n("466d"),n("5319"),n("841c"),n("1276"),n("2ca0"),n("498a"),n("eee7"),n("5cc6"),n("fb2c"),n("907a"),n("735e"),n("986a"),n("1d02"),n("20bf"),n("ec97"),n("3c5d"),n("219c"),n("b39a"),n("6ce5"),n("2834"),n("4ea1"),n("5087e"),n("61ae"),n("0a00"),n("b6f3"),n("4801"),n("81b2"),n("313d"),n("159b"),n("ddb0"),n("0eb6"),n("b7ef"),n("8bd4"),n("c73d"),n("2b3d"),n("bf19"),n("9861"),n("88a7"),n("271a"),n("5494"),i=function(){return n={566:function(e,t){var n;function r(){}function i(){i.init.call(this)}function l(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function d(e,t,n,i){var o,s;if("function"!=typeof n)throw new TypeError('"listener" argument must be a function');return(o=e._events)?(o.newListener&&(e.emit("newListener",t,n.listener||n),o=e._events),s=o[t]):(o=e._events=new r,e._eventsCount=0),s?("function"==typeof s?s=o[t]=i?[n,s]:[s,n]:i?s.unshift(n):s.push(n),!s.warned&&(i=l(e))&&0<i&&s.length>i&&(s.warned=!0,(i=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",i.emitter=e,i.type=t,i.count=s.length,i=i,"function"==typeof console.warn?console.warn(i):console.log(i))):(s=o[t]=n,++e._eventsCount),e}function h(e,t,n){function r(){e.removeListener(t,r),i||(i=!0,n.apply(e,arguments))}var i=!1;return r.listener=n,r}function f(e){var t=this._events;if(t){if(t=t[e],"function"==typeof t)return 1;if(t)return t.length}return 0}function p(e,t){for(var n=Array(t);t--;)n[t]=e[t];return n}Object.defineProperty(t,"__esModule",{value:!0}),r.prototype=Object.create(null),(i.EventEmitter=i).usingDomains=!1,i.prototype.domain=void 0,i.prototype._events=void 0,i.prototype._maxListeners=void 0,i.defaultMaxListeners=10,i.init=function(){this.domain=null,!i.usingDomains||!n.active||this instanceof n.Domain||(this.domain=n.active),this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new r,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return l(this)},i.prototype.emit=function(e){var t,n,r,i="error"===e,o=this._events;if(o)i=i&&null==o.error;else if(!i)return!1;if(s=this.domain,i){var s;i=arguments[1];if(s)return(i=i||new Error('Uncaught, unspecified "error" event')).domainEmitter=this,i.domain=s,i.domainThrown=!1,s.emit("error",i),!1;throw i instanceof Error?i:((s=new Error('Uncaught, unspecified "error" event. ('+i+")")).context=i,s)}if(!(t=o[e]))return!1;var a,u="function"==typeof t;switch(a=arguments.length){case 1:var c=t,l=u,d=this;if(l)c.call(d);else for(var h=c.length,f=p(c,h),v=0;v<h;++v)f[v].call(d);break;case 2:l=t,c=u;var m=this,g=arguments[1];if(c)l.call(m,g);else for(var _=l.length,y=p(l,_),b=0;b<_;++b)y[b].call(m,g);break;case 3:var w=t,T=u,S=this,C=arguments[1],E=arguments[2];if(T)w.call(S,C,E);else for(var A=w.length,x=p(w,A),R=0;R<A;++R)x[R].call(S,C,E);break;case 4:T=t,w=u;var O=this,I=arguments[1],k=arguments[2],P=arguments[3];if(w)T.call(O,I,k,P);else for(var M=T.length,N=p(T,M),L=0;L<M;++L)N[L].call(O,I,k,P);break;default:for(n=Array(a-1),r=1;r<a;r++)n[r-1]=arguments[r];var D=t,U=u,j=this,F=n;if(U)D.apply(j,F);else for(var H=D.length,B=p(D,H),$=0;$<H;++$)B[$].apply(j,F)}return!0},i.prototype.on=i.prototype.addListener=function(e,t){return d(this,e,t,!1)},i.prototype.prependListener=function(e,t){return d(this,e,t,!0)},i.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,h(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,h(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,i,o,s,a;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if((i=this._events)&&(n=i[e]))if(n===t||n.listener&&n.listener===t)0==--this._eventsCount?this._events=new r:(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,s=n.length;0<s--;)if(n[s]===t||n[s].listener&&n[s].listener===t){a=n[s].listener,o=s;break}if(o<0)return this;if(1===n.length){if(n[0]=void 0,0==--this._eventsCount)return this._events=new r,this;delete i[e]}else{for(var u=n,c=o,l=c,d=l+1,h=u.length;d<h;l+=1,d+=1)u[l]=u[d];u.pop()}i.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.removeAllListeners=function(e){var t,n=this._events;if(n)if(n.removeListener){if(0===arguments.length){for(var i,o=Object.keys(n),s=0;s<o.length;++s)"removeListener"!==(i=o[s])&&this.removeAllListeners(i);this.removeAllListeners("removeListener"),this._events=new r,this._eventsCount=0}else if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(t)for(;this.removeListener(e,t[t.length-1]),t[0];);}else 0===arguments.length?(this._events=new r,this._eventsCount=0):n[e]&&(0==--this._eventsCount?this._events=new r:delete n[e]);return this},i.prototype.listeners=function(e){var t=this._events;e=t&&(t=t[e])?"function"==typeof t?[t.listener||t]:(e=>{for(var t=Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t})(t):[];return e},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},i.prototype.listenerCount=f,i.prototype.eventNames=function(){return 0<this._eventsCount?Reflect.ownKeys(this._events):[]};for(var v,m=new Uint8Array(16),g=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,_=[],y=0;y<256;++y)_.push((y+256).toString(16).substr(1));function b(e,t){t=1<arguments.length&&void 0!==t?t:0,e=(_[e[t+0]]+_[e[t+1]]+_[e[t+2]]+_[e[t+3]]+"-"+_[e[t+4]]+_[e[t+5]]+"-"+_[e[t+6]]+_[e[t+7]]+"-"+_[e[t+8]]+_[e[t+9]]+"-"+_[e[t+10]]+_[e[t+11]]+_[e[t+12]]+_[e[t+13]]+_[e[t+14]]+_[e[t+15]]).toLowerCase();if("string"==typeof(t=e)&&g.test(t))return e;throw TypeError("Stringified UUID is invalid")}function w(e,t,n){var r=(e=e||{}).random||(e.rng||function(){if(v||(v="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))return v(m);throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")})();if(r[6]=64|15&r[6],r[8]=128|63&r[8],t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return b(r)}function T(e,t){var n;return e&&t?((e=c({},e)).localCandidateId&&(n=t.get(e.localCandidateId),e.local=c({},n)),e.remoteCandidateId&&(n=t.get(e.remoteCandidateId),e.remote=c({},n)),e):{}}function S(e,t,n){return 8*(t=t,r=(e=e)[n=n],n=t?t[n]:null,null===r||null===n?null:(r-n)/(e.timestamp-t.timestamp)*1e3);var r}function C(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return null;var r={audio:{inbound:[],outbound:[]},video:{inbound:[],outbound:[]},connection:{inbound:[],outbound:[]}};n.remote&&(r.remote={audio:{inbound:[],outbound:[]},video:{inbound:[],outbound:[]}});var i,o,s,a=u(e.values());try{for(a.s();!(i=a.n()).done;){var l=i.value;switch(l.type){case"outbound-rtp":var d,h=l.mediaType||l.kind,f={};["audio","video"].includes(h)&&(l.codecId&&(d=e.get(l.codecId))&&(f.clockRate=d.clockRate,f.mimeType=d.mimeType,f.payloadType=d.payloadType),d=e.get(l.mediaSourceId)||e.get(l.trackId)||{},r[h].outbound.push(c(c(c({},l),f),{},{track:c({},d)})));break;case"inbound-rtp":var p,v=l.mediaType||l.kind;h={};if(!["audio","video"].includes(v))if(l.id.includes("Video"))v="video";else{if(!l.id.includes("Audio"))continue;v="audio"}l.codecId&&(f=e.get(l.codecId))&&(h.clockRate=f.clockRate,h.mimeType=f.mimeType,h.payloadType=f.payloadType),!r.connection.id&&l.transportId&&(p=e.get(l.transportId))&&p.selectedCandidatePairId&&(p=e.get(p.selectedCandidatePairId),r.connection=T(p,e)),p=e.get(l.mediaSourceId)||e.get(l.trackId)||{},r[v].inbound.push(c(c(c({},l),h),{},{track:c({},p)}));break;case"peer-connection":r.connection.dataChannelsClosed=l.dataChannelsClosed,r.connection.dataChannelsOpened=l.dataChannelsOpened;break;case"remote-inbound-rtp":if(!n.remote)break;var m,g=l.mediaType||l.kind,_={};if(!["audio","video"].includes(g))if(l.id.includes("Video"))g="video";else{if(!l.id.includes("Audio"))continue;g="audio"}l.codecId&&(m=e.get(l.codecId))&&(_.clockRate=m.clockRate,_.mimeType=m.mimeType,_.payloadType=m.payloadType),!r.connection.id&&l.transportId&&(m=e.get(l.transportId))&&m.selectedCandidatePairId&&(y=e.get(m.selectedCandidatePairId),r.connection=T(y,e)),r.remote[g].inbound.push(c(c({},l),_));break;case"remote-outbound-rtp":var y,b;n.remote&&(y=l.mediaType||l.kind,_={},["audio","video"].includes(y))&&(l.codecId&&(b=e.get(l.codecId))&&(_.clockRate=b.clockRate,_.mimeType=b.mimeType,_.payloadType=b.payloadType),r.remote[y].outbound.push(c(c({},l),_)))}}}catch(A){a.e(A)}finally{a.f()}if(!r.connection.id){var w,C=u(e.values());try{for(C.s();!(w=C.n()).done;){var E=w.value;"candidate-pair"===E.type&&E.nominated&&"succeeded"===E.state&&(r.connection=T(E,e))}}catch(A){C.e(A)}finally{C.f()}}return o=r,(s=t)&&(o.audio.inbound.map(e=>{var t=s.audio.inbound.find(t=>t.id===e.id);e.bitrate=S(e,t,"bytesReceived"),e.packetRate=S(e,t,"packetsReceived")}),o.audio.outbound.map(e=>{var t=s.audio.outbound.find(t=>t.id===e.id);e.bitrate=S(e,t,"bytesSent"),e.packetRate=S(e,t,"packetsSent")}),o.video.inbound.map(e=>{var t=s.video.inbound.find(t=>t.id===e.id);e.bitrate=S(e,t,"bytesReceived"),e.packetRate=S(e,t,"packetsReceived")}),o.video.outbound.map(e=>{var t=s.video.outbound.find(t=>t.id===e.id);e.bitrate=S(e,t,"bytesSent"),e.packetRate=S(e,t,"packetsSent")})),o}var E,A={},x=[];class R extends i{constructor(e){if(super(),this.monitoringSetInterval=0,this.connectionMonitoringSetInterval=0,this.connectionMonitoringInterval=1e3,this.remote=!0,this.peersToMonitor={},this.timeline=[],this.statsToMonitor=["inbound-rtp","outbound-rtp","remote-inbound-rtp","remote-outbound-rtp","peer-connection","data-channel","stream","track","sender","receiver","transport","candidate-pair","local-candidate","remote-candidate"],"undefined"==typeof window)throw new Error("WebRTCStats only works in browser");e=c({},e),this.isEdge=!!window.RTCIceGatherer,this.getStatsInterval=e.getStatsInterval||1e3,this.rawStats=!!e.rawStats,this.statsObject=!!e.statsObject,this.filteredStats=!!e.filteredStats,this.shouldWrapGetUserMedia=!!e.wrapGetUserMedia,"boolean"==typeof e.remote&&(this.remote=e.remote),this.debug=!!e.debug,this.logLevel=e.logLevel||"none",this.shouldWrapGetUserMedia&&this.wrapGetUserMedia()}addPeer(e,t){var n=this;return a(s().m((function r(){return s().w((function(r){while(1)switch(r.n){case 0:return r.a(2,(console.warn("The addPeer() method has been deprecated, please use addConnection()"),n.addConnection({peerId:e,pc:t})))}}),r)})))()}addConnection(e){var t=this;return a(s().m((function n(){var r,i,a,u,c,l,d,h;return s().w((function(n){while(1)switch(n.n){case 0:if(r=e.pc,i=e.peerId,a=e.connectionId,u=e.remote,u="boolean"==typeof u?u:t.remote,r&&r instanceof RTCPeerConnection){n.n=1;break}throw new Error("Missing argument 'pc' or is not of instance RTCPeerConnection");case 1:if(i){n.n=2;break}throw new Error("Missing argument peerId");case 2:if(!t.isEdge){n.n=3;break}throw new Error("Can't monitor peers in Edge at this time.");case 3:if(!t.peersToMonitor[i]){n.n=7;break}if(!a||!(a in t.peersToMonitor[i])){n.n=4;break}throw new Error(`We are already monitoring connection with id ${a}.`);case 4:d=o(t.peersToMonitor[i]);case 5:if((h=d()).done){n.n=7;break}if(c=h.value,c=t.peersToMonitor[i][c],c.pc!==r){n.n=6;break}throw new Error(`We are already monitoring peer with id ${i}.`);case 6:"closed"===c.pc.connectionState&&t.removeConnection({pc:c.pc}),n.n=5;break;case 7:return l=r.getConfiguration(),n.a(2,(l.iceServers&&l.iceServers.forEach((function(e){delete e.credential})),a=a||w(),t.emitEvent({event:"addConnection",tag:"peer",peerId:i,connectionId:a,data:{options:e,peerConfiguration:l}}),t.monitorPeer({peerId:i,connectionId:a,pc:r,remote:u}),{connectionId:a}))}}),n)})))()}getTimeline(e){return this.timeline=this.timeline.sort((e,t)=>e.timestamp.getTime()-t.timestamp.getTime()),e?this.timeline.filter(t=>t.tag===e):this.timeline}get logger(){var e=e=>{var t=["none","error","warn","info","debug"];return-1<t.slice(0,t.indexOf(this.logLevel)+1).indexOf(e)};return{error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];this.debug&&e("error")&&console.error("[webrtc-stats][error] ",...n)},warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];this.debug&&e("warn")&&console.warn("[webrtc-stats][warn] ",...n)},info(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];this.debug&&e("info")&&console.log("[webrtc-stats][info] ",...n)},debug(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];this.debug&&e("debug")&&console.debug("[webrtc-stats][debug] ",...n)}}}removeConnection(e){var t,n=e.connectionId,r=e.pc;if(!r&&!n)throw new Error("Missing arguments. You need to either send pc or a connectionId.");if(n){if("string"!=typeof n)throw new Error("connectionId must be a string.");for(var i in this.peersToMonitor)n in this.peersToMonitor[i]&&(r=this.peersToMonitor[i][n].pc,t=i)}else if(r){if(!(r instanceof RTCPeerConnection))throw new Error("pc must be an instance of RTCPeerConnection.");for(var o in this.peersToMonitor)for(var s in this.peersToMonitor[o])this.peersToMonitor[o][s].pc===r&&(n=s,t=o)}if(r&&n)return this.removePeerConnectionEventListeners(n,r),delete this.peersToMonitor[t][n],0===Object.values(this.peersToMonitor[t]).length&&delete this.peersToMonitor[t],{connectionId:n};throw new Error("Could not find the desired connection.")}removeAllPeers(){for(var e in this.peersToMonitor)this.removePeer(e)}removePeer(e){if(this.logger.info(`Removing PeerConnection with id ${e}.`),this.peersToMonitor[e]){for(var t in this.peersToMonitor[e]){var n=this.peersToMonitor[e][t].pc;this.removePeerConnectionEventListeners(t,n)}delete this.peersToMonitor[e]}}destroy(){this.removeAllPeers(),x.forEach(e=>{this.removeTrackEventListeners(e)}),x=[],this.shouldWrapGetUserMedia&&E&&(navigator.mediaDevices.getUserMedia=E)}monitorPeer(e){var t=e,n=(e=t.peerId,t.connectionId),r=t.pc,i=t.remote;if(r){if(i={pc:r,connectionId:n,stream:null,stats:{parsed:null,raw:null},options:{remote:i}},this.peersToMonitor[e]){if(n in this.peersToMonitor[e])return void this.logger.warn("Already watching connection with ID "+n);this.peersToMonitor[e][n]=i}else this.peersToMonitor[e]={[n]:i};this.addPeerConnectionEventListeners(e,n,r),1===this.numberOfMonitoredPeers&&(this.startStatsMonitoring(),this.startConnectionStateMonitoring())}else this.logger.warn("Did not receive pc argument when calling monitorPeer()")}startStatsMonitoring(){this.monitoringSetInterval||(this.monitoringSetInterval=window.setInterval(()=>{this.numberOfMonitoredPeers||this.stopStatsMonitoring(),this.getStats().then(e=>{e.forEach(e=>{this.emitEvent(e)})})},this._getStatsInterval))}stopStatsMonitoring(){this.monitoringSetInterval&&(window.clearInterval(this.monitoringSetInterval),this.monitoringSetInterval=0)}getStats(){var e=arguments,t=this;return a(s().m((function n(){var r,i,a,u,c,l,d,h,f,p,v,m,g,_,y,b,w,T,S,E;return s().w((function(n){while(1)switch(n.p=n.n){case 0:if(r=e.length>0&&void 0!==e[0]?e[0]:null,t.logger.info(r?"Getting stats from peer "+r:"Getting stats from all peers"),i={},!r){n.n=2;break}if(t.peersToMonitor[r]){n.n=1;break}throw new Error(`Cannot get stats. Peer with id ${r} does not exist`);case 1:i[r]=t.peersToMonitor[r],n.n=3;break;case 2:i=t.peersToMonitor;case 3:a=[],b=o(i);case 4:if((w=b()).done){n.n=13;break}u=w.value,T=o(i[u]);case 5:if((S=T()).done){n.n=12;break}if(c=S.value,l=i[u][c],d=l.pc,!d||t.checkIfConnectionIsClosed(u,c,d)){n.n=11;break}if(n.p=6,_=t.getTimestamp(),y=d.getStats(null),!y){n.n=8;break}return n.n=7,y;case 7:h=n.v,f=t.getTimestamp(),p=(e=>{if(!e.entries)return e;var t={};return e.forEach((function(e,n){t[n]=e})),t})(h),v={remote:l.options.remote},m=C(h,l.stats.parsed,v),g={event:"stats",tag:"stats",peerId:u,connectionId:c,timeTaken:f-_,data:m},!0===t.rawStats&&(g.rawStats=h),!0===t.statsObject&&(g.statsObject=p),!0===t.filteredStats&&(g.filteredStats=t.filteroutStats(p)),a.push(g),l.stats.parsed=m,n.n=9;break;case 8:t.logger.error(`PeerConnection from peer ${u} did not return any stats data`);case 9:n.n=11;break;case 10:n.p=10,E=n.v,t.logger.error(E);case 11:n.n=5;break;case 12:n.n=4;break;case 13:return n.a(2,a)}}),n,null,[[6,10]])})))()}startConnectionStateMonitoring(){this.connectionMonitoringSetInterval=window.setInterval(()=>{for(var e in this.numberOfMonitoredPeers||this.stopConnectionStateMonitoring(),this.peersToMonitor)for(var t in this.peersToMonitor[e]){var n=this.peersToMonitor[e][t].pc;this.checkIfConnectionIsClosed(e,t,n)}},this.connectionMonitoringInterval)}checkIfConnectionIsClosed(e,t,n){var r=this.isConnectionClosed(n);return r&&(this.removeConnection({pc:n}),n="closed"===n.connectionState?"onconnectionstatechange":"oniceconnectionstatechange",this.emitEvent({event:n,peerId:e,connectionId:t,tag:"connection",data:"closed"})),r}isConnectionClosed(e){return"closed"===e.connectionState||"closed"===e.iceConnectionState}stopConnectionStateMonitoring(){this.connectionMonitoringSetInterval&&(window.clearInterval(this.connectionMonitoringSetInterval),this.connectionMonitoringSetInterval=0)}wrapGetUserMedia(){if(navigator.mediaDevices&&navigator.mediaDevices.getUserMedia){this.logger.info("Wrapping getUsermedia functions."),E=navigator.mediaDevices.getUserMedia.bind(navigator.mediaDevices);var e=this.parseGetUserMedia.bind(this);navigator.mediaDevices.getUserMedia=function(){return e({constraints:arguments[0]}),E.apply(navigator.mediaDevices,arguments).then(t=>(e({stream:t}),t),t=>(e({error:t}),Promise.reject(t)))}.bind(navigator.mediaDevices)}else this.logger.warn("'navigator.mediaDevices.getUserMedia' is not available in browser. Will not wrap getUserMedia.")}filteroutStats(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=c({},t);for(e in n){var r=n[e];this.statsToMonitor.includes(r.type)||delete n[e]}return n}get peerConnectionListeners(){return{icecandidate:(e,t,n,r)=>{this.logger.debug("[pc-event] icecandidate | peerId: ${peerId}",r),this.emitEvent({event:"onicecandidate",tag:"connection",peerId:e,connectionId:t,data:r.candidate})},track:(e,t,n,r)=>{this.logger.debug("[pc-event] track | peerId: "+e,r);var i=r.track,o=r.streams[0];e in this.peersToMonitor&&t in this.peersToMonitor[e]&&(this.peersToMonitor[e][t].stream=o),this.addTrackEventListeners(i,t),this.emitEvent({event:"ontrack",tag:"track",peerId:e,connectionId:t,data:{stream:o?this.getStreamDetails(o):null,track:i?this.getMediaTrackDetails(i):null,title:r.track.kind+":"+r.track.id+" "+r.streams.map((function(e){return"stream:"+e.id}))}})},signalingstatechange:(e,t,n)=>{this.logger.debug("[pc-event] signalingstatechange | peerId: "+e),this.emitEvent({event:"onsignalingstatechange",tag:"connection",peerId:e,connectionId:t,data:{signalingState:n.signalingState,localDescription:n.localDescription,remoteDescription:n.remoteDescription}})},iceconnectionstatechange:(e,t,n)=>{this.logger.debug("[pc-event] iceconnectionstatechange | peerId: "+e),this.emitEvent({event:"oniceconnectionstatechange",tag:"connection",peerId:e,connectionId:t,data:n.iceConnectionState})},icegatheringstatechange:(e,t,n)=>{this.logger.debug("[pc-event] icegatheringstatechange | peerId: "+e),this.emitEvent({event:"onicegatheringstatechange",tag:"connection",peerId:e,connectionId:t,data:n.iceGatheringState})},icecandidateerror:(e,t,n,r)=>{this.logger.debug("[pc-event] icecandidateerror | peerId: "+e),this.emitEvent({event:"onicecandidateerror",tag:"connection",peerId:e,connectionId:t,error:{errorCode:r.errorCode}})},connectionstatechange:(e,t,n)=>{this.logger.debug("[pc-event] connectionstatechange | peerId: "+e),this.emitEvent({event:"onconnectionstatechange",tag:"connection",peerId:e,connectionId:t,data:n.connectionState})},negotiationneeded:(e,t,n)=>{this.logger.debug("[pc-event] negotiationneeded | peerId: "+e),this.emitEvent({event:"onnegotiationneeded",tag:"connection",peerId:e,connectionId:t})},datachannel:(e,t,n,r)=>{this.logger.debug("[pc-event] datachannel | peerId: "+e,r),this.emitEvent({event:"ondatachannel",tag:"datachannel",peerId:e,connectionId:t,data:r.channel})}}}addPeerConnectionEventListeners(e,t,n){this.logger.debug(`Adding event listeners for peer ${e} and connection ${t}.`),A[t]={},Object.keys(this.peerConnectionListeners).forEach(r=>{A[t][r]=this.peerConnectionListeners[r].bind(this,e,t,n),n.addEventListener(r,A[t][r],!1)})}parseGetUserMedia(e){try{var t={event:"getUserMedia",tag:"getUserMedia",data:c({},e)};e.stream&&(t.data.details=this.parseStream(e.stream),e.stream.getTracks().map(e=>{this.addTrackEventListeners(e),x.push(e)})),this.emitEvent(t)}catch(e){}}parseStream(e){var t={audio:[],video:[]};return e.getTracks().forEach(e=>{t[e.kind].push(this.getMediaTrackDetails(e))}),t}getMediaTrackDetails(e){return{enabled:e.enabled,id:e.id,contentHint:e.contentHint,kind:e.kind,label:e.label,muted:e.muted,readyState:e.readyState,constructorName:e.constructor.name,capabilities:e.getCapabilities?e.getCapabilities():{},constraints:e.getConstraints?e.getConstraints():{},settings:e.getSettings?e.getSettings():{},_track:e}}getStreamDetails(e){return{active:e.active,id:e.id,_stream:e}}getTrackEventObject(e){return{mute:t=>{this.emitEvent({event:"mute",tag:"track",connectionId:e,data:{event:t}})},unmute:t=>{this.emitEvent({event:"unmute",tag:"track",connectionId:e,data:{event:t}})},overconstrained:t=>{this.emitEvent({event:"overconstrained",tag:"track",connectionId:e,data:{event:t}})},ended:t=>{this.emitEvent({event:"ended",tag:"track",connectionId:e,data:{event:t}}),this.removeTrackEventListeners(t.target)}}}addTrackEventListeners(e,t){A[e.id]={};var n=this.getTrackEventObject(t);Object.keys(n).forEach(t=>{A[e.id][t]=n[t].bind(this),e.addEventListener(t,A[e.id][t])}),A[e.id].readyState=setInterval(()=>{var t;"ended"===e.readyState&&(t=new CustomEvent("ended",{detail:{check:"readyState"}}),e.dispatchEvent(t))},1e3)}removeTrackEventListeners(e){var t;e.id in A&&(t=this.getTrackEventObject(),Object.keys(t).forEach(t=>{e.removeEventListener(t,A[e.id][t])}),clearInterval(A[e.id].readyState),delete A[e.id])}addToTimeline(e){this.timeline.push(e),this.emit("timeline",e)}emitEvent(e){e=c(c({},e),{},{timestamp:new Date}),this.addToTimeline(e),e.tag&&this.emit(e.tag,e)}set getStatsInterval(e){if(!Number.isInteger(e))throw new Error("getStatsInterval should be an integer, got: "+e);this._getStatsInterval=e,this.monitoringSetInterval&&(this.stopStatsMonitoring(),this.startStatsMonitoring())}get numberOfMonitoredPeers(){return Object.keys(this.peersToMonitor).length}removePeerConnectionEventListeners(e,t){e in A&&(Object.keys(this.peerConnectionListeners).forEach(n=>{t.removeEventListener(n,A[e][n],!1)}),delete A[e]),t.getSenders().forEach(e=>{e.track&&this.removeTrackEventListeners(e.track)}),t.getReceivers().forEach(e=>{e.track&&this.removeTrackEventListeners(e.track)})}getTimestamp(){return Date.now()}wrapGetDisplayMedia(){var e=this;if(navigator.mediaDevices&&navigator.mediaDevices.getDisplayMedia){var t=navigator.mediaDevices.getDisplayMedia.bind(navigator.mediaDevices);navigator.mediaDevices.getDisplayMedia=function(){return e.debug("navigator.mediaDevices.getDisplayMedia",null,arguments[0]),t.apply(navigator.mediaDevices,arguments).then((function(e){return e}),(function(t){return e.debug("navigator.mediaDevices.getDisplayMediaOnFailure",null,t.name),Promise.reject(t)}))}.bind(navigator.mediaDevices)}}}t.WebRTCStats=R},9033:function(e){function t(e){var i;return(r[e]||(i=r[e]={i:e,l:!1,exports:{}},n[e].call(i.exports,i,i.exports,t),i.l=!0,i)).exports}var n,r;e.exports=(n={17:function(e,t,n){t.__esModule=!0,t.default=void 0;var r=n(18);function i(){}i.getFirstMatch=function(e,t){return t=t.match(e),t&&0<t.length&&t[1]||""},i.getSecondMatch=function(e,t){return t=t.match(e),t&&1<t.length&&t[2]||""},i.matchAndReturnConst=function(e,t,n){if(e.test(t))return n},i.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},i.getMacOSVersionName=function(e){if(e=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0})),e.push(0),10===e[0])switch(e[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},i.getAndroidVersionName=function(e){if(e=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0})),e.push(0),!(1===e[0]&&e[1]<5))return 1===e[0]&&e[1]<6?"Cupcake":1===e[0]&&6<=e[1]?"Donut":2===e[0]&&e[1]<2?"Eclair":2===e[0]&&2===e[1]?"Froyo":2===e[0]&&2<e[1]?"Gingerbread":3===e[0]?"Honeycomb":4===e[0]&&e[1]<1?"Ice Cream Sandwich":4===e[0]&&e[1]<4?"Jelly Bean":4===e[0]&&4<=e[1]?"KitKat":5===e[0]?"Lollipop":6===e[0]?"Marshmallow":7===e[0]?"Nougat":8===e[0]?"Oreo":9===e[0]?"Pie":void 0},i.getVersionPrecision=function(e){return e.split(".").length},i.compareVersions=function(e,t,n){void 0===n&&(n=!1);var r=i.getVersionPrecision(e),o=i.getVersionPrecision(t),s=Math.max(r,o),a=0,u=i.map([e,t],(function(e){var t=s-i.getVersionPrecision(e);e+=new Array(1+t).join(".0");return i.map(e.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(n&&(a=s-Math.min(r,o)),--s;a<=s;){if(u[0][s]>u[1][s])return 1;if(u[0][s]===u[1][s]){if(s===a)return 0;--s}else if(u[0][s]<u[1][s])return-1}},i.map=function(e,t){var n,r=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(n=0;n<e.length;n+=1)r.push(t(e[n]));return r},i.find=function(e,t){var n,r;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(n=0,r=e.length;n<r;n+=1){var i=e[n];if(t(i,n))return i}},i.assign=function(e){for(var t=e,n=arguments.length,r=new Array(1<n?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(Object.assign)return Object.assign.apply(Object,[e].concat(r));for(var o=0,s=r.length;o<s;o+=1)(()=>{var e=r[o];"object"==typeof e&&null!==e&&Object.keys(e).forEach((function(n){t[n]=e[n]}))})();return e},i.getBrowserAlias=function(e){return r.BROWSER_ALIASES_MAP[e]},i.getBrowserTypeByAlias=function(e){return r.BROWSER_MAP[e]||""},t.default=i,e.exports=t.default},18:function(e,t,n){t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},t.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,i=(r=n(91))&&r.__esModule?r:{default:r},o=n(18);function s(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 a(){}a.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new Error("UserAgent should be a string");return new i.default(e,t)},a.parse=function(e){return new i.default(e).getResult()},r=a,n=[{key:"BROWSER_MAP",get:function(){return o.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return o.ENGINE_MAP}},{key:"OS_MAP",get:function(){return o.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return o.PLATFORMS_MAP}}],s(r,n),t.default=a,e.exports=t.default},91:function(e,t,n){t.__esModule=!0,t.default=void 0;var r=u(n(92)),i=u(n(93)),o=u(n(94)),s=u(n(95)),a=u(n(17));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}(n=c.prototype).getUA=function(){return this._ua},n.test=function(e){return e.test(this._ua)},n.parseBrowser=function(){var e=this,t=(this.parsedResult.browser={},a.default.find(r.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")})));return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},n.getBrowser=function(){return this.parsedResult.browser||this.parseBrowser()},n.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},n.getBrowserVersion=function(){return this.getBrowser().version},n.getOS=function(){return this.parsedResult.os||this.parseOS()},n.parseOS=function(){var e=this,t=(this.parsedResult.os={},a.default.find(i.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")})));return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},n.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},n.getOSVersion=function(){return this.getOS().version},n.getPlatform=function(){return this.parsedResult.platform||this.parsePlatform()},n.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},n.parsePlatform=function(){var e=this,t=(this.parsedResult.platform={},a.default.find(o.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")})));return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},n.getEngine=function(){return this.parsedResult.engine||this.parseEngine()},n.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},n.parseEngine=function(){var e=this,t=(this.parsedResult.engine={},a.default.find(s.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")})));return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},n.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},n.getResult=function(){return a.default.assign({},this.parsedResult)},n.satisfies=function(e){var t=this,n={},r=0,i={},o=0;if(Object.keys(e).forEach((function(t){var s=e[t];"string"==typeof s?(i[t]=s,o+=1):"object"==typeof s&&(n[t]=s,r+=1)})),0<r){var s=Object.keys(n),u=a.default.find(s,(function(e){return t.isOS(e)}));if(u&&(u=this.satisfies(n[u]),void 0!==u))return u;if(u=a.default.find(s,(function(e){return t.isPlatform(e)})),u&&(s=this.satisfies(n[u]),void 0!==s))return s}if(0<o&&(u=Object.keys(i),s=a.default.find(u,(function(e){return t.isBrowser(e,!0)})),void 0!==s))return this.compareVersion(i[s])},n.isBrowser=function(e,t){void 0===t&&(t=!1);var n=this.getBrowserName().toLowerCase(),r=(e=e.toLowerCase(),a.default.getBrowserTypeByAlias(e));return(e=t&&r?r.toLowerCase():e)===n},n.compareVersion=function(e){var t=[0],n=e,r=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(n=e.substr(1),"="===e[1]?(r=!0,n=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?n=e.substr(1):"~"===e[0]&&(r=!0,n=e.substr(1)),-1<t.indexOf(a.default.compareVersions(i,n,r))},n.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},n.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},n.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},n.is=function(e,t){return this.isBrowser(e,t=void 0!==t&&t)||this.isOS(e)||this.isPlatform(e)},n.some=function(e){var t=this;return(e=void 0===e?[]:e).some((function(e){return t.is(e)}))},t.default=c,e.exports=t.default},92:function(e,t,n){t.__esModule=!0,t.default=void 0;var r=(n=n(17))&&n.__esModule?n:{default:n},i=/version\/(\d+(\.?_?\d+)+)/i;t.default=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"};e=r.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||r.default.getFirstMatch(i,e);return e&&(t.version=e),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"};e=r.default.getFirstMatch(i,e)||r.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"};e=r.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||r.default.getFirstMatch(i,e);return e&&(t.version=e),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"};e=r.default.getFirstMatch(i,e)||r.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"};e=r.default.getFirstMatch(i,e)||r.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"};e=r.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||r.default.getFirstMatch(i,e);return e&&(t.version=e),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"};e=r.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||r.default.getFirstMatch(i,e);return e&&(t.version=e),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"};e=r.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||r.default.getFirstMatch(i,e);return e&&(t.version=e),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"};e=r.default.getFirstMatch(i,e)||r.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"};e=r.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||r.default.getFirstMatch(i,e);return e&&(t.version=e),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"};e=r.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||r.default.getFirstMatch(i,e);return e&&(t.version=e),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"};e=r.default.getFirstMatch(i,e)||r.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"};e=r.default.getFirstMatch(i,e)||r.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"};e=r.default.getFirstMatch(i,e)||r.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"};e=r.default.getFirstMatch(i,e)||r.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"};e=r.default.getFirstMatch(i,e)||r.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"};e=r.default.getFirstMatch(i,e)||r.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"};e=r.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||r.default.getFirstMatch(i,e);return e&&(t.version=e),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"};e=r.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||r.default.getFirstMatch(i,e);return e&&(t.version=e),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"};e=r.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"};e=r.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"};e=r.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"};e=r.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"};e=r.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"};e=r.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return e&&(t.version=e),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"};e=r.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"};e=r.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"};e=r.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"};e=r.default.getFirstMatch(i,e)||r.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"};e=r.default.getFirstMatch(i,e)||r.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"};e=r.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"};e=r.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||r.default.getFirstMatch(i,e);return e&&(t.version=e),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"};e=r.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||r.default.getFirstMatch(i,e);return e&&(t.version=e),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"};e=r.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"};e=r.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"};e=r.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"};e=r.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||r.default.getFirstMatch(i,e);return e&&(t.version=e),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"};e=r.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"};e=r.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:function(e){var t=!e.test(/like android/i);e=e.test(/android/i);return t&&e},describe:function(e){var t={name:"Android Browser"};e=r.default.getFirstMatch(i,e);return e&&(t.version=e),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"};e=r.default.getFirstMatch(i,e);return e&&(t.version=e),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"};e=r.default.getFirstMatch(i,e);return e&&(t.version=e),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:r.default.getFirstMatch(t,e),version:r.default.getSecondMatch(t,e)}}}],e.exports=t.default},93:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18);t.default=[{test:[/Roku\/DVP/],describe:function(e){return e=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e),{name:o.OS_MAP.Roku,version:e}}},{test:[/windows phone/i],describe:function(e){return e=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e),{name:o.OS_MAP.WindowsPhone,version:e}}},{test:[/windows /i],describe:function(e){e=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e);var t=i.default.getWindowsVersionName(e);return{name:o.OS_MAP.Windows,version:e,versionName:t}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:o.OS_MAP.iOS};e=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return e&&(t.version=e),t}},{test:[/macintosh/i],describe:function(e){e=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,".");var t=i.default.getMacOSVersionName(e);e={name:o.OS_MAP.MacOS,version:e};return t&&(e.versionName=t),e}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){return e=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,"."),{name:o.OS_MAP.iOS,version:e}}},{test:function(e){var t=!e.test(/like android/i);e=e.test(/android/i);return t&&e},describe:function(e){e=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e);var t=i.default.getAndroidVersionName(e);e={name:o.OS_MAP.Android,version:e};return t&&(e.versionName=t),e}},{test:[/(web|hpw)[o0]s/i],describe:function(e){e=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e);var t={name:o.OS_MAP.WebOS};return e&&e.length&&(t.version=e),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){return e=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e),{name:o.OS_MAP.BlackBerry,version:e}}},{test:[/bada/i],describe:function(e){return e=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e),{name:o.OS_MAP.Bada,version:e}}},{test:[/tizen/i],describe:function(e){return e=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e),{name:o.OS_MAP.Tizen,version:e}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){return e=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e),{name:o.OS_MAP.PlayStation4,version:e}}}],e.exports=t.default},94:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18);t.default=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){e=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova";var t={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return e&&(t.model=e),t}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i);e=e.test(/like (ipod|iphone)/i);return t&&!e},describe:function(e){return e=i.default.getFirstMatch(/(ipod|iphone)/i,e),{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:e}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&3<=t},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}}],e.exports=t.default},95:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18);t.default=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){return/\sedg\//i.test(e)?{name:o.ENGINE_MAP.Blink}:(e=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e),{name:o.ENGINE_MAP.EdgeHTML,version:e})}},{test:[/trident/i],describe:function(e){var t={name:o.ENGINE_MAP.Trident};e=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:o.ENGINE_MAP.Presto};e=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:function(e){var t=e.test(/gecko/i);e=e.test(/like gecko/i);return t&&!e},describe:function(e){var t={name:o.ENGINE_MAP.Gecko};e=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:o.ENGINE_MAP.WebKit};e=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return e&&(t.version=e),t}}],e.exports=t.default}},r={},t.m=n,t.c=r,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(r,i,function(t){return e[t]}.bind(null,i));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=90))},8878:function(e,n,r){n.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),this.useColors){var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e)&&(i=r)}),t.splice(i,0,n)}},n.save=function(e){try{e?n.storage.setItem("debug",e):n.storage.removeItem("debug")}catch(e){}},n.load=function(){var e;try{e=n.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof t&&"env"in t&&(e=Object({NODE_ENV:"production",BASE_URL:"/sip-phone-demo/"}).DEBUG),e},n.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&31<=parseInt(RegExp.$1,10)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},n.storage=(()=>{try{return localStorage}catch(r){}})(),n.destroy=(()=>{var e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],n.log=console.debug||console.log||(()=>{}),e.exports=r(8945)(n),r=e.exports.formatters,r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},8945:function(e,t,n){e.exports=function(e){function t(e){var n,i,o,s=null;function a(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];if(a.enabled){var o=a,s=Number(new Date),u=s-(n||s);o.diff=u,o.prev=n,o.curr=s,n=s,r[0]=t.coerce(r[0]),"string"!=typeof r[0]&&r.unshift("%O");var c=0;r[0]=r[0].replace(/%([a-zA-Z%])/g,(e,n)=>{if("%%"===e)return"%";c++;var i;n=t.formatters[n];return"function"==typeof n&&(i=r[c],e=n.call(o,i),r.splice(c,1),c--),e}),t.formatArgs.call(o,r),(o.log||t.log).apply(o,r)}}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=r,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{s=e}}),"function"==typeof t.init&&t.init(a),a}function r(e,n){return n=t(this.namespace+(void 0===n?":":n)+e),n.log=this.log,n}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return((t.debug=t).default=t).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){var e=[...t.names.map(i),...t.skips.map(i).map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];var n,r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(9192),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){for(var n=0,r=0;r<e.length;r++)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},4143:function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,s){if("function"!=typeof r)throw new TypeError("The listener must be a function");return r=new i(r,o||e,s),o=n?n+t:t,e._events[o]?e._events[o].fn?e._events[o]=[e._events[o],r]:e._events[o].push(r):(e._events[o]=r,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function a(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),a.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},a.prototype.listeners=function(e){e=n?n+e:e;var t=this._events[e];if(!t)return[];if(t.fn)return[t.fn];for(var r=0,i=t.length,o=new Array(i);r<i;r++)o[r]=t[r].fn;return o},a.prototype.listenerCount=function(e){return e=n?n+e:e,e=this._events[e],e?e.fn?1:e.length:0},a.prototype.emit=function(e,t,r,i,o,s){var a=n?n+e:e;if(!this._events[a])return!1;var u,c=this._events[a],l=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),l){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,r),!0;case 4:return c.fn.call(c.context,t,r,i),!0;case 5:return c.fn.call(c.context,t,r,i,o),!0;case 6:return c.fn.call(c.context,t,r,i,o,s),!0}for(f=1,u=new Array(l-1);f<l;f++)u[f-1]=arguments[f];c.fn.apply(c.context,u)}else for(var d,h=c.length,f=0;f<h;f++)switch(c[f].once&&this.removeListener(e,c[f].fn,void 0,!0),l){case 1:c[f].fn.call(c[f].context);break;case 2:c[f].fn.call(c[f].context,t);break;case 3:c[f].fn.call(c[f].context,t,r);break;case 4:c[f].fn.call(c[f].context,t,r,i);break;default:if(!u)for(d=1,u=new Array(l-1);d<l;d++)u[d-1]=arguments[d];c[f].fn.apply(c[f].context,u)}return!0},a.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},a.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},a.prototype.removeListener=function(e,t,r,i){if(e=n?n+e:e,this._events[e])if(t){var o=this._events[e];if(o.fn)o.fn!==t||i&&!o.once||r&&o.context!==r||s(this,e);else{for(var a=0,u=[],c=o.length;a<c;a++)(o[a].fn!==t||i&&!o[a].once||r&&o[a].context!==r)&&u.push(o[a]);u.length?this._events[e]=1===u.length?u[0]:u:s(this,e)}}else s(this,e);return this},a.prototype.removeAllListeners=function(e){return e?(e=n?n+e:e,this._events[e]&&s(this,e)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,e.exports=a.EventEmitter=a},9032:function(e){var t="object"==typeof Reflect?Reflect:null,n=t&&"function"==typeof t.apply?t.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},r=t&&"function"==typeof t.ownKeys?t.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)},i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}var s,a,u;p(e,t,o,{once:!0}),"error"!==t&&(a=i,u={once:!0},"function"==typeof(s=e).on)&&p(s,"error",a,u)}))},(o.EventEmitter=o).prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var i,o;return a(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener||n),i=e._events),o=i[t]),void 0===o?(o=i[t]=n,++e._eventsCount):("function"==typeof o?o=i[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),0<(i=u(e))&&o.length>i&&!o.warned&&(o.warned=!0,(r=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",r.emitter=e,r.type=t,r.count=o.length,n=r,console)&&console.warn&&console.warn(n)),e}function l(e,t,n){return e={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},t=function(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}.bind(e),t.listener=n,e.wrapFn=t}function d(e,t,n){if(e=e._events,void 0===e)return[];if(e=e[t],void 0===e)return[];if("function"==typeof e)return n?[e.listener||e]:[e];if(n){for(var r=e,i=new Array(r.length),o=0;o<i.length;++o)i[o]=r[o].listener||r[o];return i}return f(e,e.length)}function h(e){var t=this._events;if(void 0!==t){if(t=t[e],"function"==typeof t)return 1;if(void 0!==t)return t.length}return 0}function f(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function p(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){r.once&&e.removeEventListener(t,i),n(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){if((s=0<t.length?t[0]:s)instanceof Error)throw s;throw i=new Error("Unhandled error."+(s?" ("+s.message+")":"")),i.context=s,i}var s=o[e];if(void 0===s)return!1;if("function"==typeof s)n(s,this,t);else{var a=s.length,u=f(s,a);for(r=0;r<a;++r)n(u[r],this,t)}return!0},o.prototype.on=o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return a(t),this.on(e,l(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,l(this,e,t)),this},o.prototype.off=o.prototype.removeListener=function(e,t){var n,r,i,o,s;if(a(t),void 0!==(r=this._events)&&void 0!==(n=r[e]))if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;0<=o;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;if(0===i)n.shift();else{for(var u=n,c=i;c+1<u.length;c++)u[c]=u[c+1];u.pop()}1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.removeAllListeners=function(e){var t,n=this._events;if(void 0!==n)if(void 0===n.removeListener)0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]);else if(0===arguments.length){for(var r,i=Object.keys(n),o=0;o<i.length;++o)"removeListener"!==(r=i[o])&&this.removeAllListeners(r);this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0}else if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(o=t.length-1;0<=o;o--)this.removeListener(e,t[o]);return this},o.prototype.listeners=function(e){return d(this,e,!0)},o.prototype.rawListeners=function(e){return d(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return 0<this._eventsCount?r(this._events):[]}},914:function(e,t,n){"undefined"==typeof self&&"undefined"==typeof window&&void 0!==n.g&&n.g,e.exports=(()=>{function e(e){return e.replace(/=/g,"").replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"}))}function t(e){for(var t,n,r,i="",o=e.length%3,s=0;s<e.length;){if(255<(t=e.charCodeAt(s++))||255<(n=e.charCodeAt(s++))||255<(r=e.charCodeAt(s++)))throw new TypeError("invalid character found");i+=b[(t=t<<16|n<<8|r)>>18&63]+b[t>>12&63]+b[t>>6&63]+b[63&t]}return o?i.slice(0,o-3)+"===".substring(o):i}function n(t,n){return(n=void 0!==n&&n)?e(x(t)):x(t)}function i(e){var t;return e.length<2?(t=e.charCodeAt(0))<128?e:t<2048?S(192|t>>>6)+S(128|63&t):S(224|t>>>12&15)+S(128|t>>>6&63)+S(128|63&t):(t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320),S(240|t>>>18&7)+S(128|t>>>12&63)+S(128|t>>>6&63)+S(128|63&t))}function o(e){return e.replace(R,i)}function s(t,n){return(n=void 0!==n&&n)?e(O(t)):O(t)}function a(e){return s(e,!0)}function u(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return S(55296+(t>>>10))+S(56320+(1023&t));case 3:return S((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return S((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}}function c(e){return e.replace(I,u)}function l(e){if(e=e.replace(/\s+/g,""),!T.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));for(var t,n,r,i="",o=0;o<e.length;)t=w[e.charAt(o++)]<<18|w[e.charAt(o++)]<<12|(n=w[e.charAt(o++)])<<6|(r=w[e.charAt(o++)]),i+=64===n?S(t>>16&255):64===r?S(t>>16&255,t>>8&255):S(t>>16&255,t>>8&255,255&t);return i}function d(e){return P(h(e))}function h(e){return E(e.replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})))}function f(e){return M(h(e))}function p(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}}function v(){function e(e,t){Object.defineProperty(String.prototype,e,p(t))}e("fromBase64",(function(){return f(this)})),e("toBase64",(function(e){return s(this,e)})),e("toBase64URI",(function(){return s(this,!0)})),e("toBase64URL",(function(){return s(this,!0)})),e("toUint8Array",(function(){return d(this)}))}function m(){function e(e,t){Object.defineProperty(Uint8Array.prototype,e,p(t))}e("toBase64",(function(e){return n(this,e)})),e("toBase64URI",(function(){return n(this,!0)})),e("toBase64URL",(function(){return n(this,!0)}))}var g="function"==typeof r,_="function"==typeof TextDecoder?new TextDecoder:void 0,y="function"==typeof TextEncoder?new TextEncoder:void 0,b=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),w=(()=>{var e={};return b.forEach((function(t,n){return e[t]=n})),e})(),T=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,S=String.fromCharCode.bind(String),C="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):function(e){return new Uint8Array(Array.prototype.slice.call(e,0))},E=function(e){return e.replace(/[^A-Za-z0-9\+\/]/g,"")},A="function"==typeof btoa?function(e){return btoa(e)}:g?function(e){return r.from(e,"binary").toString("base64")}:t,x=g?function(e){return r.from(e).toString("base64")}:function(e){for(var t=[],n=0,r=e.length;n<r;n+=4096)t.push(S.apply(null,e.subarray(n,n+4096)));return A(t.join(""))},R=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,O=g?function(e){return r.from(e,"utf8").toString("base64")}:y?function(e){return x(y.encode(e))}:function(e){return A(o(e))},I=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,k="function"==typeof atob?function(e){return atob(E(e))}:g?function(e){return r.from(e,"base64").toString("binary")}:l,P=g?function(e){return C(r.from(e,"base64"))}:function(e){return C(k(e).split("").map((function(e){return e.charCodeAt(0)})))},M=g?function(e){return r.from(e,"base64").toString("utf8")}:_?function(e){return _.decode(P(e))}:function(e){return c(k(e))},N={version:"3.7.7",VERSION:"3.7.7",atob:k,atobPolyfill:l,btoa:A,btoaPolyfill:t,fromBase64:f,toBase64:s,encode:s,encodeURI:a,encodeURL:a,utob:o,btou:c,decode:f,isValid:function(e){return"string"==typeof e&&(e=e.replace(/\s+/g,"").replace(/={0,2}$/,""),!/[^\s0-9a-zA-Z\+/]/.test(e)||!/[^\s0-9a-zA-Z\-_]/.test(e))},fromUint8Array:n,toUint8Array:d,extendString:v,extendUint8Array:m,extendBuiltins:function(){v(),m()},Base64:{}};return Object.keys(N).forEach((function(e){return N.Base64[e]=N[e]})),N})()},8611:function(e,t,n){var r=n(7196),i=n(9896),o=n(9656),s=n(7019),a=n(5944),c=n(8239),l=(t.settings={authorization_user:null,password:null,realm:null,ha1:null,authorization_jwt:null,display_name:null,uri:null,contact_uri:null,instance_id:null,use_preloaded_route:!1,session_timers:!0,session_timers_refresh_method:i.UPDATE,session_timers_force_refresher:!1,no_answer_timeout:60,register:!0,register_expires:600,registrar_server:null,sockets:null,connection_recovery_max_interval:i.CONNECTION_RECOVERY_MAX_INTERVAL,connection_recovery_min_interval:i.CONNECTION_RECOVERY_MIN_INTERVAL,extra_headers:null,via_host:r.createRandomToken(12)+".invalid"},{mandatory:{sockets(e){var t=[];if(a.isSocket(e))t.push({socket:e});else{if(!Array.isArray(e)||!e.length)return;var n,r=u(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;Object.prototype.hasOwnProperty.call(i,"socket")&&a.isSocket(i.socket)?t.push(i):a.isSocket(i)&&t.push({socket:i})}}catch(o){r.e(o)}finally{r.f()}}return t},uri(e){if(/^sip:/i.test(e)||(e=i.SIP+":"+e),e=s.parse(e),e&&e.user)return e}},optional:{authorization_user(e){if(-1!==o.parse(`"${e}"`,"quoted_string"))return e},authorization_jwt(e){if("string"==typeof e)return e},user_agent(e){if("string"==typeof e)return e},connection_recovery_max_interval(e){if(r.isDecimal(e)&&(e=Number(e),0<e))return e},connection_recovery_min_interval(e){if(r.isDecimal(e)&&(e=Number(e),0<e))return e},contact_uri(e){if("string"==typeof e&&(e=o.parse(e,"SIP_URI"),-1!==e))return e},display_name(e){return e},instance_id(e){if(/^uuid:/i.test(e)&&(e=e.substr(5)),-1!==o.parse(e,"uuid"))return e},no_answer_timeout(e){if(r.isDecimal(e)&&(e=Number(e),0<e))return e},session_timers(e){if("boolean"==typeof e)return e},session_timers_refresh_method(e){if("string"==typeof e&&((e=e.toUpperCase())===i.INVITE||e===i.UPDATE))return e},session_timers_force_refresher(e){if("boolean"==typeof e)return e},password(e){return String(e)},realm(e){return String(e)},ha1(e){return String(e)},register(e){if("boolean"==typeof e)return e},register_expires(e){if(r.isDecimal(e)&&(e=Number(e),0<e))return e},registrar_server(e){if(/^sip:/i.test(e)||(e=i.SIP+":"+e),e=s.parse(e),e&&!e.user)return e},use_preloaded_route(e){if("boolean"==typeof e)return e},extra_headers(e){var t=[];if(Array.isArray(e)&&e.length){var n,r=u(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;"string"==typeof i&&t.push(i)}}catch(o){r.e(o)}finally{r.f()}return t}}}});t.load=(e,t)=>{for(var n in l.mandatory){if(!t.hasOwnProperty(n))throw new c.ConfigurationError(n);var i=t[n],o=l.mandatory[n](i);if(void 0===o)throw new c.ConfigurationError(n,i);e[n]=o}for(var s in l.optional)if(t.hasOwnProperty(s)){var a=t[s];if(!r.isEmpty(a)){var u=l.optional[s](a);if(void 0===u)throw new c.ConfigurationError(s,a);e[s]=u}}}},9896:function(e,t,n){n=n(633),e.exports={USER_AGENT:n.title+" "+n.version,SIP:"sip",SIPS:"sips",causes:{CONNECTION_ERROR:"Connection Error",REQUEST_TIMEOUT:"Request Timeout",SIP_FAILURE_CODE:"SIP Failure Code",INTERNAL_ERROR:"Internal Error",BUSY:"Busy",REJECTED:"Rejected",REDIRECTED:"Redirected",UNAVAILABLE:"Unavailable",NOT_FOUND:"Not Found",ADDRESS_INCOMPLETE:"Address Incomplete",INCOMPATIBLE_SDP:"Incompatible SDP",MISSING_SDP:"Missing SDP",AUTHENTICATION_ERROR:"Authentication Error",BYE:"Terminated",WEBRTC_ERROR:"WebRTC Error",CANCELED:"Canceled",NO_ANSWER:"No Answer",EXPIRES:"Expires",NO_ACK:"No ACK",DIALOG_ERROR:"Dialog Error",USER_DENIED_MEDIA_ACCESS:"User Denied Media Access",BAD_MEDIA_DESCRIPTION:"Bad Media Description",RTP_TIMEOUT:"RTP Timeout"},SIP_ERROR_CAUSES:{REDIRECTED:[300,301,302,305,380],BUSY:[486,600],REJECTED:[403,603],NOT_FOUND:[404,604],UNAVAILABLE:[480,410,408,430],ADDRESS_INCOMPLETE:[484,424],INCOMPATIBLE_SDP:[488,606],AUTHENTICATION_ERROR:[401,407]},ACK:"ACK",BYE:"BYE",CANCEL:"CANCEL",INFO:"INFO",INVITE:"INVITE",MESSAGE:"MESSAGE",NOTIFY:"NOTIFY",OPTIONS:"OPTIONS",REGISTER:"REGISTER",REFER:"REFER",UPDATE:"UPDATE",SUBSCRIBE:"SUBSCRIBE",DTMF_TRANSPORT:{INFO:"INFO",RFC2833:"RFC2833"},REASON_PHRASE:{100:"Trying",180:"Ringing",181:"Call Is Being Forwarded",182:"Queued",183:"Session Progress",199:"Early Dialog Terminated",200:"OK",202:"Accepted",204:"No Notification",300:"Multiple Choices",301:"Moved Permanently",302:"Moved Temporarily",305:"Use Proxy",380:"Alternative Service",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",410:"Gone",412:"Conditional Request Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Unsupported URI Scheme",417:"Unknown Resource-Priority",420:"Bad Extension",421:"Extension Required",422:"Session Interval Too Small",423:"Interval Too Brief",424:"Bad Location Information",428:"Use Identity Header",429:"Provide Referrer Identity",430:"Flow Failed",433:"Anonymity Disallowed",436:"Bad Identity-Info",437:"Unsupported Certificate",438:"Invalid Identity Header",439:"First Hop Lacks Outbound Support",440:"Max-Breadth Exceeded",469:"Bad Info Package",470:"Consent Needed",478:"Unresolvable Destination",480:"Temporarily Unavailable",481:"Call/Transaction Does Not Exist",482:"Loop Detected",483:"Too Many Hops",484:"Address Incomplete",485:"Ambiguous",486:"Busy Here",487:"Request Terminated",488:"Not Acceptable Here",489:"Bad Event",491:"Request Pending",493:"Undecipherable",494:"Security Agreement Required",500:"JsSIP Internal Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Server Time-out",505:"Version Not Supported",513:"Message Too Large",580:"Precondition Failure",600:"Busy Everywhere",603:"Decline",604:"Does Not Exist Anywhere",606:"Not Acceptable"},ALLOWED_METHODS:"INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS,REFER,INFO,NOTIFY",ACCEPTED_BODY_TYPES:"application/sdp, application/dtmf-relay",MAX_FORWARDS:69,SESSION_EXPIRES:90,MIN_SESSION_EXPIRES:60,CONNECTION_RECOVERY_MAX_INTERVAL:30,CONNECTION_RECOVERY_MIN_INTERVAL:2}},2517:function(e,t,n){var r=n(3422),i=n(2602),o=n(9896),s=n(1164),a=n(546),u=n(7196),c=new r("Dialog"),l={STATUS_EARLY:1,STATUS_CONFIRMED:2,STATUS_TERMINATED:3};e.exports=class{static get C(){return l}constructor(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:l.STATUS_CONFIRMED;if(this._owner=e,this._ua=e._ua,this._uac_pending_reply=!1,this._uas_pending_reply=!1,!t.hasHeader("contact"))return{error:"unable to create a Dialog without Contact header field"};t instanceof i.IncomingResponse&&(r=t.status_code<200?l.STATUS_EARLY:l.STATUS_CONFIRMED),e=t.parseHeader("contact"),"UAS"===n?(this._id={call_id:t.call_id,local_tag:t.to_tag,remote_tag:t.from_tag,toString(){return this.call_id+this.local_tag+this.remote_tag}},this._state=r,this._remote_seqnum=t.cseq,this._local_uri=t.parseHeader("to").uri,this._remote_uri=t.parseHeader("from").uri,this._remote_target=e.uri,this._route_set=t.getHeaders("record-route"),this._ack_seqnum=this._remote_seqnum):"UAC"===n&&(this._id={call_id:t.call_id,local_tag:t.from_tag,remote_tag:t.to_tag,toString(){return this.call_id+this.local_tag+this.remote_tag}},this._state=r,this._local_seqnum=t.cseq,this._local_uri=t.parseHeader("from").uri,this._remote_uri=t.parseHeader("to").uri,this._remote_target=e.uri,this._route_set=t.getHeaders("record-route").reverse(),this._ack_seqnum=null),this._ua.newDialog(this),c.debug(`new ${n} dialog created with status `+(this._state===l.STATUS_EARLY?"EARLY":"CONFIRMED"))}get id(){return this._id}get local_seqnum(){return this._local_seqnum}set local_seqnum(e){this._local_seqnum=e}get owner(){return this._owner}get uac_pending_reply(){return this._uac_pending_reply}set uac_pending_reply(e){this._uac_pending_reply=e}get uas_pending_reply(){return this._uas_pending_reply}isTerminated(){return this._status===l.STATUS_TERMINATED}update(e,t){this._state=l.STATUS_CONFIRMED,c.debug(`dialog ${this._id.toString()} changed to CONFIRMED state`),"UAC"===t&&(this._route_set=e.getHeaders("record-route").reverse())}terminate(){c.debug(`dialog ${this._id.toString()} deleted`),this._ua.destroyDialog(this),this._state=l.STATUS_TERMINATED}sendRequest(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,n){var r=u.cloneArray(n.extraHeaders),i=u.cloneObject(n.eventHandlers);n=n.body||null,e=t._createRequest(e,r,n);return i.onAuthenticated=()=>{t._local_seqnum+=1},new a(t,e,i).send(),e}(e,n)}receiveRequest(e){this._checkInDialogRequest(e)&&(e.method===o.ACK&&null!==this._ack_seqnum?this._ack_seqnum=null:e.method===o.INVITE&&(this._ack_seqnum=e.cseq),this._owner.receiveRequest(e))}_createRequest(e,t,n){t=u.cloneArray(t),this._local_seqnum||(this._local_seqnum=Math.floor(1e4*Math.random()));var r=e===o.CANCEL||e===o.ACK?this._local_seqnum:this._local_seqnum+=1;return new i.OutgoingRequest(e,this._remote_target,this._ua,{cseq:r,call_id:this._id.call_id,from_uri:this._local_uri,from_tag:this._id.local_tag,to_uri:this._remote_uri,to_tag:this._id.remote_tag,route_set:this._route_set},t,n)}_checkInDialogRequest(e){if(this._remote_seqnum)if(e.cseq<this._remote_seqnum){if(e.method!==o.ACK)return e.reply(500),!1;if(null===this._ack_seqnum||e.cseq!==this._ack_seqnum)return!1}else e.cseq>this._remote_seqnum&&(this._remote_seqnum=e.cseq);else this._remote_seqnum=e.cseq;if(e.method===o.INVITE||e.method===o.UPDATE&&e.body){if(!0===this._uac_pending_reply)e.reply(491);else{var t;if(!0===this._uas_pending_reply)return t=1+(10*Math.random()|0),e.reply(500,null,["Retry-After:"+t]),!1;this._uas_pending_reply=!0;var n=()=>{e.server_transaction.state!==s.C.STATUS_ACCEPTED&&e.server_transaction.state!==s.C.STATUS_COMPLETED&&e.server_transaction.state!==s.C.STATUS_TERMINATED||(e.server_transaction.removeListener("stateChanged",n),this._uas_pending_reply=!1)};e.server_transaction.on("stateChanged",n)}e.hasHeader("contact")&&e.server_transaction.on("stateChanged",()=>{e.server_transaction.state===s.C.STATUS_ACCEPTED&&(this._remote_target=e.parseHeader("contact").uri)})}else e.method===o.NOTIFY&&e.hasHeader("contact")&&e.server_transaction.on("stateChanged",()=>{e.server_transaction.state===s.C.STATUS_COMPLETED&&(this._remote_target=e.parseHeader("contact").uri)});return!0}}},546:function(e,t,n){var r=n(9896),i=n(1164),o=n(5117),s={onRequestTimeout:()=>{},onTransportError:()=>{},onSuccessResponse:()=>{},onErrorResponse:()=>{},onAuthenticated:()=>{},onDialogError:()=>{}};e.exports=class{constructor(e,t,n){for(var r in this._dialog=e,this._ua=e._ua,this._request=t,this._eventHandlers=n,this._reattempt=!1,this._reattemptTimer=null,s)!Object.prototype.hasOwnProperty.call(s,r)||this._eventHandlers[r]||(this._eventHandlers[r]=s[r])}get request(){return this._request}send(){var e=new o(this._ua,this._request,{onRequestTimeout:()=>{this._eventHandlers.onRequestTimeout()},onTransportError:()=>{this._eventHandlers.onTransportError()},onAuthenticated:e=>{this._eventHandlers.onAuthenticated(e)},onReceiveResponse:e=>{this._receiveResponse(e)}});if(e.send(),(this._request.method===r.INVITE||this._request.method===r.UPDATE&&this._request.body)&&e.clientTransaction.state!==i.C.STATUS_TERMINATED){this._dialog.uac_pending_reply=!0;var t=()=>{e.clientTransaction.state!==i.C.STATUS_ACCEPTED&&e.clientTransaction.state!==i.C.STATUS_COMPLETED&&e.clientTransaction.state!==i.C.STATUS_TERMINATED||(e.clientTransaction.removeListener("stateChanged",t),this._dialog.uac_pending_reply=!1)};e.clientTransaction.on("stateChanged",t)}}_receiveResponse(e){408===e.status_code||481===e.status_code?this._eventHandlers.onDialogError(e):e.method!==r.INVITE||491!==e.status_code||this._reattempt?200<=e.status_code&&e.status_code<300?this._eventHandlers.onSuccessResponse(e):300<=e.status_code&&this._eventHandlers.onErrorResponse(e):(this._request.cseq=this._dialog.local_seqnum+=1,this._reattemptTimer=setTimeout(()=>{this._dialog.isTerminated()||(this._reattempt=!0,this.send())},1e3))}}},3889:function(e,t,n){var r=n(3422),i=n(7196),o=new r("DigestAuthentication");e.exports=class{constructor(e){this._credentials=e,this._cnonce=null,this._nc=0,this._ncHex="00000000",this._algorithm=null,this._realm=null,this._nonce=null,this._opaque=null,this._stale=null,this._qop=null,this._method=null,this._uri=null,this._ha1=null,this._response=null}get(e){switch(e){case"realm":return this._realm;case"ha1":return this._ha1;default:return void o.warn('get() | cannot get "%s" parameter',e)}}authenticate(e,t){var n,r,s=e.method,a=e.ruri,u=e.body,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(this._algorithm=t.algorithm,this._realm=t.realm,this._nonce=t.nonce,this._opaque=t.opaque,this._stale=t.stale,this._algorithm){if("MD5"!==this._algorithm)return o.warn('authenticate() | challenge with Digest algorithm different than "MD5", authentication aborted'),!1}else this._algorithm="MD5";if(!this._nonce)return o.warn("authenticate() | challenge without Digest nonce, authentication aborted"),!1;if(!this._realm)return o.warn("authenticate() | challenge without Digest realm, authentication aborted"),!1;if(!this._credentials.password){if(!this._credentials.ha1)return o.warn("authenticate() | no plain SIP password nor ha1 provided, authentication aborted"),!1;if(this._credentials.realm!==this._realm)return o.warn('authenticate() | no plain SIP password, and stored `realm` does not match the given `realm`, cannot authenticate [stored:"%s", given:"%s"]',this._credentials.realm,this._realm),!1}if(t.qop)if(-1<t.qop.indexOf("auth-int"))this._qop="auth-int";else{if(!(-1<t.qop.indexOf("auth")))return o.warn('authenticate() | challenge without Digest qop different than "auth" or "auth-int", authentication aborted'),!1;this._qop="auth"}else this._qop=null;return this._method=s,this._uri=a,this._cnonce=c||i.createRandomToken(12),this._nc+=1,t=Number(this._nc).toString(16),this._ncHex="00000000".substr(0,8-t.length)+t,4294967296===this._nc&&(this._nc=1,this._ncHex="00000001"),this._credentials.password?this._ha1=i.calculateMD5(`${this._credentials.username}:${this._realm}:`+this._credentials.password):this._ha1=this._credentials.ha1,"auth"===this._qop?(n=this._method+":"+this._uri,r=i.calculateMD5(n),o.debug('authenticate() | using qop=auth [a2:"%s"]',n),this._response=i.calculateMD5(`${this._ha1}:${this._nonce}:${this._ncHex}:${this._cnonce}:auth:`+r)):"auth-int"===this._qop?(n=`${this._method}:${this._uri}:`+i.calculateMD5(u||""),r=i.calculateMD5(n),o.debug('authenticate() | using qop=auth-int [a2:"%s"]',n),this._response=i.calculateMD5(`${this._ha1}:${this._nonce}:${this._ncHex}:${this._cnonce}:auth-int:`+r)):null===this._qop&&(n=this._method+":"+this._uri,r=i.calculateMD5(n),o.debug('authenticate() | using qop=null [a2:"%s"]',n),this._response=i.calculateMD5(`${this._ha1}:${this._nonce}:`+r)),o.debug("authenticate() | response generated"),!0}toString(){var e=[];if(this._response)return e.push("algorithm="+this._algorithm),e.push(`username="${this._credentials.username}"`),e.push(`realm="${this._realm}"`),e.push(`nonce="${this._nonce}"`),e.push(`uri="${this._uri}"`),e.push(`response="${this._response}"`),this._opaque&&e.push(`opaque="${this._opaque}"`),this._qop&&(e.push("qop="+this._qop),e.push(`cnonce="${this._cnonce}"`),e.push("nc="+this._ncHex)),"Digest "+e.join(", ");throw new Error("response field does not exist, cannot generate Authorization header")}}},8239:function(e){class t extends Error{constructor(e,t){super(),this.code=1,this.name="CONFIGURATION_ERROR",this.parameter=e,this.value=t,this.message=this.value?`Invalid value ${JSON.stringify(this.value)} for parameter "${this.parameter}"`:"Missing parameter: "+this.parameter}}class n extends Error{constructor(e){super(),this.code=2,this.name="INVALID_STATE_ERROR",this.status=e,this.message="Invalid status: "+e}}class r extends Error{constructor(e){super(),this.code=3,this.name="NOT_SUPPORTED_ERROR",this.message=e}}class i extends Error{constructor(e){super(),this.code=4,this.name="NOT_READY_ERROR",this.message=e}}e.exports={ConfigurationError:t,InvalidStateError:n,NotSupportedError:r,NotReadyError:i}},9656:function(e,t,n){function r(e){return'"'+e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E-\x1F\x80-\uFFFF]/g,escape)+'"'}e.exports=((e={parse:function(e,t){var i={CRLF:l,DIGIT:d,ALPHA:h,HEXDIG:f,WSP:p,OCTET:v,DQUOTE:m,SP:g,HTAB:_,alphanum:y,reserved:b,unreserved:w,mark:T,escaped:S,LWS:C,SWS:E,HCOLON:A,TEXT_UTF8_TRIM:x,TEXT_UTF8char:R,UTF8_NONASCII:O,UTF8_CONT:I,LHEX:function(){var t;return null===(t=d())&&(/^[a-f]/.test(e.charAt(o))?(t=e.charAt(o),o++):(t=null,0===s&&c("[a-f]"))),t},token:k,token_nodot:P,separators:function(){var t;return 40===e.charCodeAt(o)?(t="(",o++):(t=null,0===s&&c('"("')),null===t&&(41===e.charCodeAt(o)?(t=")",o++):(t=null,0===s&&c('")"')),null===t)&&(60===e.charCodeAt(o)?(t="<",o++):(t=null,0===s&&c('"<"')),null===t)&&(62===e.charCodeAt(o)?(t=">",o++):(t=null,0===s&&c('">"')),null===t)&&(64===e.charCodeAt(o)?(t="@",o++):(t=null,0===s&&c('"@"')),null===t)&&(44===e.charCodeAt(o)?(t=",",o++):(t=null,0===s&&c('","')),null===t)&&(59===e.charCodeAt(o)?(t=";",o++):(t=null,0===s&&c('";"')),null===t)&&(58===e.charCodeAt(o)?(t=":",o++):(t=null,0===s&&c('":"')),null===t)&&(92===e.charCodeAt(o)?(t="\\",o++):(t=null,0===s&&c('"\\\\"')),null===t)&&null===(t=m())&&(47===e.charCodeAt(o)?(t="/",o++):(t=null,0===s&&c('"/"')),null===t)&&(91===e.charCodeAt(o)?(t="[",o++):(t=null,0===s&&c('"["')),null===t)&&(93===e.charCodeAt(o)?(t="]",o++):(t=null,0===s&&c('"]"')),null===t)&&(63===e.charCodeAt(o)?(t="?",o++):(t=null,0===s&&c('"?"')),null===t)&&(61===e.charCodeAt(o)?(t="=",o++):(t=null,0===s&&c('"="')),null===t)&&(123===e.charCodeAt(o)?(t="{",o++):(t=null,0===s&&c('"{"')),null===t)&&(125===e.charCodeAt(o)?(t="}",o++):(t=null,0===s&&c('"}"')),null===t)&&null===(t=g())&&(t=_()),t},word:M,STAR:N,SLASH:L,EQUAL:D,LPAREN:U,RPAREN:j,RAQUOT:F,LAQUOT:H,COMMA:B,SEMI:$,COLON:q,LDQUOT:V,RDQUOT:z,comment:function e(){var t,n,r,i;if(i=o,t=U(),null!==t){for(n=[],null===(r=W())&&null===(r=X())&&(r=e());null!==r;)n.push(r),null===(r=W())&&null===(r=X())&&(r=e());null!==n&&null!==(r=j())?t=[t,n,r]:(t=null,o=i)}else t=null,o=i;return t},ctext:W,quoted_string:G,quoted_string_clean:Y,qdtext:K,quoted_pair:X,SIP_URI_noparams:J,SIP_URI:Q,uri_scheme:Z,uri_scheme_sips:ee,uri_scheme_sip:te,userinfo:ne,user:re,user_unreserved:ie,password:oe,hostport:se,host:ae,hostname:ue,domainlabel:ce,toplabel:le,IPv6reference:de,IPv6address:he,h16:fe,ls32:pe,IPv4address:ve,dec_octet:me,port:ge,uri_parameters:_e,uri_parameter:ye,transport_param:be,user_param:we,method_param:Te,ttl_param:Se,maddr_param:Ce,lr_param:Ee,other_param:Ae,pname:xe,pvalue:Re,paramchar:Oe,param_unreserved:Ie,headers:ke,header:Pe,hname:Me,hvalue:Ne,hnv_unreserved:Le,Request_Response:function(){var e;return null===(e=dt())&&(e=De()),e},Request_Line:De,Request_URI:Ue,absoluteURI:je,hier_part:Fe,net_path:He,abs_path:Be,opaque_part:$e,uric:qe,uric_no_slash:Ve,path_segments:ze,segment:We,param:Ge,pchar:Ye,scheme:Ke,authority:Xe,srvr:Je,reg_name:Qe,query:Ze,SIP_Version:et,INVITEm:tt,ACKm:nt,OPTIONSm:rt,BYEm:it,CANCELm:ot,REGISTERm:st,SUBSCRIBEm:at,NOTIFYm:ut,REFERm:ct,Method:lt,Status_Line:dt,Status_Code:ht,extension_code:ft,Reason_Phrase:pt,Allow_Events:function(){var e,t,n,r,i,s;if(i=o,null!==(e=jt())){for(t=[],s=o,null!==(n=B())&&null!==(r=jt())?n=[n,r]:(n=null,o=s);null!==n;)t.push(n),s=o,null!==(n=B())&&null!==(r=jt())?n=[n,r]:(n=null,o=s);null!==t?e=[e,t]:(e=null,o=i)}else e=null,o=i;return e},Call_ID:function(){var t,n,r,i,a,u;return a=i=o,null!==(t=M())&&(u=o,64===e.charCodeAt(o)?(n="@",o++):(n=null,0===s&&c('"@"')),null!==n&&null!==(r=M())?n=[n,r]:(n=null,o=u),null!==(n=null!==n?n:""))?t=[t,n]:(t=null,o=a),null!==t&&(t=void(qn=e.substring(o,i))),null===t&&(o=i),t},Contact:function(){var e,t,n,r,i,s,a;if(i=o,null===(e=N()))if(s=o,null!==(e=vt())){for(t=[],a=o,null!==(n=B())&&null!==(r=vt())?n=[n,r]:(n=null,o=a);null!==n;)t.push(n),a=o,null!==(n=B())&&null!==(r=vt())?n=[n,r]:(n=null,o=a);null!==t?e=[e,t]:(e=null,o=s)}else e=null,o=s;return null!==e&&(e=(()=>{for(var e=qn.multi_header.length,t=0;t<e;t++)if(null===qn.multi_header[t].parsed){qn=null;break}qn=null!==qn?qn.multi_header:-1})()),null===e&&(o=i),e},contact_param:vt,name_addr:mt,display_name:gt,contact_params:_t,c_p_q:yt,c_p_expires:bt,delta_seconds:wt,qvalue:Tt,generic_param:St,gen_value:Ct,Content_Disposition:function(){var e,t,n,r,i,s;if(i=o,null!==(e=Et())){for(t=[],s=o,null!==(n=$())&&null!==(r=At())?n=[n,r]:(n=null,o=s);null!==n;)t.push(n),s=o,null!==(n=$())&&null!==(r=At())?n=[n,r]:(n=null,o=s);null!==t?e=[e,t]:(e=null,o=i)}else e=null,o=i;return e},disp_type:Et,disp_param:At,handling_param:xt,Content_Encoding:function(){var e,t,n,r,i,s;if(i=o,null!==(e=k())){for(t=[],s=o,null!==(n=B())&&null!==(r=k())?n=[n,r]:(n=null,o=s);null!==n;)t.push(n),s=o,null!==(n=B())&&null!==(r=k())?n=[n,r]:(n=null,o=s);null!==t?e=[e,t]:(e=null,o=i)}else e=null,o=i;return e},Content_Length:function(){var e,t,n;if(n=o,null!==(t=d()))for(e=[];null!==t;)e.push(t),t=d();else e=null;return null!==e&&(e=void(qn=parseInt(e.join("")))),null===e&&(o=n),e},Content_Type:function(){var t,n;return n=o,null!==(t=Rt())&&(t=void(qn=e.substring(o,n))),null===t&&(o=n),t},media_type:Rt,m_type:Ot,discrete_type:It,composite_type:kt,extension_token:Pt,x_token:Mt,m_subtype:Nt,m_parameter:Lt,m_value:Dt,CSeq:function(){var e,t,n,r;return r=o,null!==(e=Ut())&&null!==(t=C())&&null!==(n=lt())?e=[e,t,n]:(e=null,o=r),e},CSeq_value:Ut,Expires:function(){var e,t;return t=o,null!==(e=wt())&&(e=void(qn=e)),null===e&&(o=t),e},Event:function(){var e,t,n,r,i,s,a;if(s=i=o,null!==(e=jt())){for(t=[],a=o,null!==(n=$())&&null!==(r=St())?n=[n,r]:(n=null,o=a);null!==n;)t.push(n),a=o,null!==(n=$())&&null!==(r=St())?n=[n,r]:(n=null,o=a);null!==t?e=[e,t]:(e=null,o=s)}else e=null,o=s;return null!==e&&(e=(e=>{qn.event=e.join("").toLowerCase()})(e[0])),null===e&&(o=i),e},event_type:jt,From:function(){var e,t,n,r,i,s,a;if(s=i=o,null===(e=J())&&(e=mt()),null!==e){for(t=[],a=o,null!==(n=$())&&null!==(r=Ft())?n=[n,r]:(n=null,o=a);null!==n;)t.push(n),a=o,null!==(n=$())&&null!==(r=Ft())?n=[n,r]:(n=null,o=a);null!==t?e=[e,t]:(e=null,o=s)}else e=null,o=s;return null!==e&&(e=(()=>{var e=qn.tag;try{qn=new $n(qn.uri,qn.display_name,qn.params),e&&qn.setParam("tag",e)}catch(e){qn=-1}})()),null===e&&(o=i),e},from_param:Ft,tag_param:Ht,Max_Forwards:function(){var e,t,n;if(n=o,null!==(t=d()))for(e=[];null!==t;)e.push(t),t=d();else e=null;return null!==e&&(e=void(qn=parseInt(e.join("")))),null===e&&(o=n),e},Min_Expires:function(){var e,t;return t=o,null!==(e=wt())&&(e=void(qn=e)),null===e&&(o=t),e},Name_Addr_Header:function(){var e,t,n,r,i,s,a,u,c,l;for(c=u=o,e=[],t=gt();null!==t;)e.push(t),t=gt();if(null!==e)if(null!==(t=H()))if(null!==(n=Q()))if(null!==(r=F())){for(i=[],l=o,null!==(s=$())&&null!==(a=St())?s=[s,a]:(s=null,o=l);null!==s;)i.push(s),l=o,null!==(s=$())&&null!==(a=St())?s=[s,a]:(s=null,o=l);null!==i?e=[e,t,n,r,i]:(e=null,o=c)}else e=null,o=c;else e=null,o=c;else e=null,o=c;else e=null,o=c;return null!==e&&(e=(()=>{try{qn=new $n(qn.uri,qn.display_name,qn.params)}catch(e){qn=-1}})()),null===e&&(o=u),e},Proxy_Authenticate:function(){return Bt()},challenge:Bt,other_challenge:$t,auth_param:qt,digest_cln:Vt,realm:zt,realm_value:Wt,domain:Gt,URI:Yt,nonce:Kt,nonce_value:Xt,opaque:Jt,stale:Qt,algorithm:Zt,qop_options:en,qop_value:tn,Proxy_Require:function(){var e,t,n,r,i,s;if(i=o,null!==(e=k())){for(t=[],s=o,null!==(n=B())&&null!==(r=k())?n=[n,r]:(n=null,o=s);null!==n;)t.push(n),s=o,null!==(n=B())&&null!==(r=k())?n=[n,r]:(n=null,o=s);null!==t?e=[e,t]:(e=null,o=i)}else e=null,o=i;return e},Record_Route:function(){var e,t,n,r,i,s,a;if(s=i=o,null!==(e=nn())){for(t=[],a=o,null!==(n=B())&&null!==(r=nn())?n=[n,r]:(n=null,o=a);null!==n;)t.push(n),a=o,null!==(n=B())&&null!==(r=nn())?n=[n,r]:(n=null,o=a);null!==t?e=[e,t]:(e=null,o=s)}else e=null,o=s;return null!==e&&(e=(()=>{for(var e=qn.multi_header.length,t=0;t<e;t++)if(null===qn.multi_header[t].parsed){qn=null;break}qn=null!==qn?qn.multi_header:-1})()),null===e&&(o=i),e},rec_route:nn,Reason:function(){var t,n,r,i,a,u,l;if(u=a=o,"sip"===e.substr(o,3).toLowerCase()?(t=e.substr(o,3),o+=3):(t=null,0===s&&c('"SIP"')),null===t&&(t=k()),null!==t){for(n=[],l=o,null!==(r=$())&&null!==(i=rn())?r=[r,i]:(r=null,o=l);null!==r;)n.push(r),l=o,null!==(r=$())&&null!==(i=rn())?r=[r,i]:(r=null,o=l);null!==n?t=[t,n]:(t=null,o=u)}else t=null,o=u;return null!==t&&(t=(e=>{qn.protocol=e.toLowerCase(),qn.params||(qn.params={}),qn.params.text&&'"'===qn.params.text[0]&&(e=qn.params.text,qn.text=e.substring(1,e.length-1),delete qn.params.text)})(t[0])),null===t&&(o=a),t},reason_param:rn,reason_cause:on,Require:function(){var e,t,n,r,i,s;if(i=o,null!==(e=k())){for(t=[],s=o,null!==(n=B())&&null!==(r=k())?n=[n,r]:(n=null,o=s);null!==n;)t.push(n),s=o,null!==(n=B())&&null!==(r=k())?n=[n,r]:(n=null,o=s);null!==t?e=[e,t]:(e=null,o=i)}else e=null,o=i;return e},Route:function(){var e,t,n,r,i,s;if(i=o,null!==(e=sn())){for(t=[],s=o,null!==(n=B())&&null!==(r=sn())?n=[n,r]:(n=null,o=s);null!==n;)t.push(n),s=o,null!==(n=B())&&null!==(r=sn())?n=[n,r]:(n=null,o=s);null!==t?e=[e,t]:(e=null,o=i)}else e=null,o=i;return e},route_param:sn,Subscription_State:function(){var e,t,n,r,i,s;if(i=o,null!==(e=an())){for(t=[],s=o,null!==(n=$())&&null!==(r=un())?n=[n,r]:(n=null,o=s);null!==n;)t.push(n),s=o,null!==(n=$())&&null!==(r=un())?n=[n,r]:(n=null,o=s);null!==t?e=[e,t]:(e=null,o=i)}else e=null,o=i;return e},substate_value:an,subexp_params:un,event_reason_value:cn,Subject:function(){var e;return null!==(e=x())?e:""},Supported:function(){var e,t,n,r,i,s;if(i=o,null!==(e=k())){for(t=[],s=o,null!==(n=B())&&null!==(r=k())?n=[n,r]:(n=null,o=s);null!==n;)t.push(n),s=o,null!==(n=B())&&null!==(r=k())?n=[n,r]:(n=null,o=s);null!==t?e=[e,t]:(e=null,o=i)}else e=null,o=i;return null!==e?e:""},To:function(){var e,t,n,r,i,s,a;if(s=i=o,null===(e=J())&&(e=mt()),null!==e){for(t=[],a=o,null!==(n=$())&&null!==(r=ln())?n=[n,r]:(n=null,o=a);null!==n;)t.push(n),a=o,null!==(n=$())&&null!==(r=ln())?n=[n,r]:(n=null,o=a);null!==t?e=[e,t]:(e=null,o=s)}else e=null,o=s;return null!==e&&(e=(()=>{var e=qn.tag;try{qn=new $n(qn.uri,qn.display_name,qn.params),e&&qn.setParam("tag",e)}catch(e){qn=-1}})()),null===e&&(o=i),e},to_param:ln,Via:function(){var e,t,n,r,i,s;if(i=o,null!==(e=dn())){for(t=[],s=o,null!==(n=B())&&null!==(r=dn())?n=[n,r]:(n=null,o=s);null!==n;)t.push(n),s=o,null!==(n=B())&&null!==(r=dn())?n=[n,r]:(n=null,o=s);null!==t?e=[e,t]:(e=null,o=i)}else e=null,o=i;return e},via_param:dn,via_params:hn,via_ttl:fn,via_maddr:pn,via_received:vn,via_branch:mn,response_port:gn,rport:_n,sent_protocol:yn,protocol_name:bn,transport:wn,sent_by:Tn,via_host:Sn,via_port:Cn,ttl:En,WWW_Authenticate:function(){return Bt()},Session_Expires:function(){var e,t,n,r,i,s;if(i=o,null!==(e=An())){for(t=[],s=o,null!==(n=$())&&null!==(r=xn())?n=[n,r]:(n=null,o=s);null!==n;)t.push(n),s=o,null!==(n=$())&&null!==(r=xn())?n=[n,r]:(n=null,o=s);null!==t?e=[e,t]:(e=null,o=i)}else e=null,o=i;return e},s_e_expires:An,s_e_params:xn,s_e_refresher:Rn,extension_header:function(){var e,t,n,r;return r=o,null!==(e=k())&&null!==(t=A())&&null!==(n=On())?e=[e,t,n]:(e=null,o=r),e},header_value:On,message_body:function(){var e,t;for(e=[],t=v();null!==t;)e.push(t),t=v();return e},uuid_URI:function(){var t,n,r;return r=o,"uuid:"===e.substr(o,5)?(t="uuid:",o+=5):(t=null,0===s&&c('"uuid:"')),null!==t&&null!==(n=In())?t=[t,n]:(t=null,o=r),t},uuid:In,hex4:kn,hex8:Pn,hex12:Mn,Refer_To:function(){var e,t,n,r,i,s,a;if(s=i=o,null===(e=J())&&(e=mt()),null!==e){for(t=[],a=o,null!==(n=$())&&null!==(r=St())?n=[n,r]:(n=null,o=a);null!==n;)t.push(n),a=o,null!==(n=$())&&null!==(r=St())?n=[n,r]:(n=null,o=a);null!==t?e=[e,t]:(e=null,o=s)}else e=null,o=s;return null!==e&&(e=(()=>{try{qn=new $n(qn.uri,qn.display_name,qn.params)}catch(e){qn=-1}})()),null===e&&(o=i),e},Replaces:function(){var e,t,n,r,i,s;if(i=o,null!==(e=Nn())){for(t=[],s=o,null!==(n=$())&&null!==(r=Ln())?n=[n,r]:(n=null,o=s);null!==n;)t.push(n),s=o,null!==(n=$())&&null!==(r=Ln())?n=[n,r]:(n=null,o=s);null!==t?e=[e,t]:(e=null,o=i)}else e=null,o=i;return e},call_id:Nn,replaces_param:Ln,to_tag:Dn,from_tag:Un,early_flag:jn};if(void 0!==t){if(void 0===i[t])throw new Error("Invalid rule name: "+r(t)+".")}else t="CRLF";var o=0,s=0,a=0,u=[];function c(e){o<a||(a<o&&(a=o,u=[]),u.push(e))}function l(){var t;return"\r\n"===e.substr(o,2)?(t="\r\n",o+=2):(t=null,0===s&&c('"\\r\\n"')),t}function d(){var t;return/^[0-9]/.test(e.charAt(o))?(t=e.charAt(o),o++):(t=null,0===s&&c("[0-9]")),t}function h(){var t;return/^[a-zA-Z]/.test(e.charAt(o))?(t=e.charAt(o),o++):(t=null,0===s&&c("[a-zA-Z]")),t}function f(){var t;return/^[0-9a-fA-F]/.test(e.charAt(o))?(t=e.charAt(o),o++):(t=null,0===s&&c("[0-9a-fA-F]")),t}function p(){var e=g();return null===e?_():e}function v(){var t;return/^[\0-\xFF]/.test(e.charAt(o))?(t=e.charAt(o),o++):(t=null,0===s&&c("[\\0-\\xFF]")),t}function m(){var t;return/^["]/.test(e.charAt(o))?(t=e.charAt(o),o++):(t=null,0===s&&c('["]')),t}function g(){var t;return 32===e.charCodeAt(o)?(t=" ",o++):(t=null,0===s&&c('" "')),t}function _(){var t;return 9===e.charCodeAt(o)?(t="\t",o++):(t=null,0===s&&c('"\\t"')),t}function y(){var t;return/^[a-zA-Z0-9]/.test(e.charAt(o))?(t=e.charAt(o),o++):(t=null,0===s&&c("[a-zA-Z0-9]")),t}function b(){var t;return 59===e.charCodeAt(o)?(t=";",o++):(t=null,0===s&&c('";"')),null===t&&(47===e.charCodeAt(o)?(t="/",o++):(t=null,0===s&&c('"/"')),null===t)&&(63===e.charCodeAt(o)?(t="?",o++):(t=null,0===s&&c('"?"')),null===t)&&(58===e.charCodeAt(o)?(t=":",o++):(t=null,0===s&&c('":"')),null===t)&&(64===e.charCodeAt(o)?(t="@",o++):(t=null,0===s&&c('"@"')),null===t)&&(38===e.charCodeAt(o)?(t="&",o++):(t=null,0===s&&c('"&"')),null===t)&&(61===e.charCodeAt(o)?(t="=",o++):(t=null,0===s&&c('"="')),null===t)&&(43===e.charCodeAt(o)?(t="+",o++):(t=null,0===s&&c('"+"')),null===t)&&(36===e.charCodeAt(o)?(t="$",o++):(t=null,0===s&&c('"$"')),null===t)&&(44===e.charCodeAt(o)?(t=",",o++):(t=null,0===s&&c('","'))),t}function w(){var e=y();return null===e?T():e}function T(){var t;return 45===e.charCodeAt(o)?(t="-",o++):(t=null,0===s&&c('"-"')),null===t&&(95===e.charCodeAt(o)?(t="_",o++):(t=null,0===s&&c('"_"')),null===t)&&(46===e.charCodeAt(o)?(t=".",o++):(t=null,0===s&&c('"."')),null===t)&&(33===e.charCodeAt(o)?(t="!",o++):(t=null,0===s&&c('"!"')),null===t)&&(126===e.charCodeAt(o)?(t="~",o++):(t=null,0===s&&c('"~"')),null===t)&&(42===e.charCodeAt(o)?(t="*",o++):(t=null,0===s&&c('"*"')),null===t)&&(39===e.charCodeAt(o)?(t="'",o++):(t=null,0===s&&c('"\'"')),null===t)&&(40===e.charCodeAt(o)?(t="(",o++):(t=null,0===s&&c('"("')),null===t)&&(41===e.charCodeAt(o)?(t=")",o++):(t=null,0===s&&c('")"'))),t}function S(){var t,n,r,i=o,a=o;return 37===e.charCodeAt(o)?(t="%",o++):(t=null,0===s&&c('"%"')),null!==t&&null!==(n=f())&&null!==(r=f())?t=[t,n,r]:(t=null,o=a),null===(t=null!==t?t.join(""):t)&&(o=i),t}function C(){for(var e,t=o,n=o,r=o,i=[],s=p();null!==s;)i.push(s),s=p();if(null!==i&&null!==(s=l())?i=[i,s]:(i=null,o=r),null!==(i=null!==i?i:"")){if(null!==(e=p()))for(s=[];null!==e;)s.push(e),e=p();else s=null;null!==s?i=[i,s]:(i=null,o=n)}else i=null,o=n;return null===(i=null!==i?" ":i)&&(o=t),i}function E(){var e=C();return null!==e?e:""}function A(){var t,n=o,r=o,i=[],a=g();for(null===a&&(a=_());null!==a;)i.push(a),null===(a=g())&&(a=_());return null!==i&&(58===e.charCodeAt(o)?(a=":",o++):(a=null,0===s&&c('":"')),null!==a)&&null!==(t=E())?i=[i,a,t]:(i=null,o=r),null===(i=null!==i?":":i)&&(o=n),i}function x(){var t,n,r,i,s=o,a=o,u=R();if(null!==u)for(t=[];null!==u;)t.push(u),u=R();else t=null;if(null!==t){for(u=[],i=o,n=[],r=C();null!==r;)n.push(r),r=C();for(null!==n&&null!==(r=R())?n=[n,r]:(n=null,o=i);null!==n;){for(u.push(n),i=o,n=[],r=C();null!==r;)n.push(r),r=C();null!==n&&null!==(r=R())?n=[n,r]:(n=null,o=i)}null!==u?t=[t,u]:(t=null,o=a)}else t=null,o=a;return null===(t=null!==t?e.substring(o,s):t)&&(o=s),t}function R(){var t;return/^[!-~]/.test(e.charAt(o))?(t=e.charAt(o),o++):(t=null,0===s&&c("[!-~]")),null===t?O():t}function O(){var t;return/^[\x80-\uFFFF]/.test(e.charAt(o))?(t=e.charAt(o),o++):(t=null,0===s&&c("[\\x80-\\uFFFF]")),t}function I(){var t;return/^[\x80-\xBF]/.test(e.charAt(o))?(t=e.charAt(o),o++):(t=null,0===s&&c("[\\x80-\\xBF]")),t}function k(){var t,n=o,r=y();if(null===r&&(45===e.charCodeAt(o)?(r="-",o++):(r=null,0===s&&c('"-"')),null===r)&&(46===e.charCodeAt(o)?(r=".",o++):(r=null,0===s&&c('"."')),null===r)&&(33===e.charCodeAt(o)?(r="!",o++):(r=null,0===s&&c('"!"')),null===r)&&(37===e.charCodeAt(o)?(r="%",o++):(r=null,0===s&&c('"%"')),null===r)&&(42===e.charCodeAt(o)?(r="*",o++):(r=null,0===s&&c('"*"')),null===r)&&(95===e.charCodeAt(o)?(r="_",o++):(r=null,0===s&&c('"_"')),null===r)&&(43===e.charCodeAt(o)?(r="+",o++):(r=null,0===s&&c('"+"')),null===r)&&(96===e.charCodeAt(o)?(r="`",o++):(r=null,0===s&&c('"`"')),null===r)&&(39===e.charCodeAt(o)?(r="'",o++):(r=null,0===s&&c('"\'"')),null===r)&&(126===e.charCodeAt(o)?(r="~",o++):(r=null,0===s&&c('"~"'))),null!==r)for(t=[];null!==r;)t.push(r),null===(r=y())&&(45===e.charCodeAt(o)?(r="-",o++):(r=null,0===s&&c('"-"')),null===r)&&(46===e.charCodeAt(o)?(r=".",o++):(r=null,0===s&&c('"."')),null===r)&&(33===e.charCodeAt(o)?(r="!",o++):(r=null,0===s&&c('"!"')),null===r)&&(37===e.charCodeAt(o)?(r="%",o++):(r=null,0===s&&c('"%"')),null===r)&&(42===e.charCodeAt(o)?(r="*",o++):(r=null,0===s&&c('"*"')),null===r)&&(95===e.charCodeAt(o)?(r="_",o++):(r=null,0===s&&c('"_"')),null===r)&&(43===e.charCodeAt(o)?(r="+",o++):(r=null,0===s&&c('"+"')),null===r)&&(96===e.charCodeAt(o)?(r="`",o++):(r=null,0===s&&c('"`"')),null===r)&&(39===e.charCodeAt(o)?(r="'",o++):(r=null,0===s&&c('"\'"')),null===r)&&(126===e.charCodeAt(o)?(r="~",o++):(r=null,0===s&&c('"~"')));else t=null;return null===(t=null!==t?e.substring(o,n):t)&&(o=n),t}function P(){var t,n=o,r=y();if(null===r&&(45===e.charCodeAt(o)?(r="-",o++):(r=null,0===s&&c('"-"')),null===r)&&(33===e.charCodeAt(o)?(r="!",o++):(r=null,0===s&&c('"!"')),null===r)&&(37===e.charCodeAt(o)?(r="%",o++):(r=null,0===s&&c('"%"')),null===r)&&(42===e.charCodeAt(o)?(r="*",o++):(r=null,0===s&&c('"*"')),null===r)&&(95===e.charCodeAt(o)?(r="_",o++):(r=null,0===s&&c('"_"')),null===r)&&(43===e.charCodeAt(o)?(r="+",o++):(r=null,0===s&&c('"+"')),null===r)&&(96===e.charCodeAt(o)?(r="`",o++):(r=null,0===s&&c('"`"')),null===r)&&(39===e.charCodeAt(o)?(r="'",o++):(r=null,0===s&&c('"\'"')),null===r)&&(126===e.charCodeAt(o)?(r="~",o++):(r=null,0===s&&c('"~"'))),null!==r)for(t=[];null!==r;)t.push(r),null===(r=y())&&(45===e.charCodeAt(o)?(r="-",o++):(r=null,0===s&&c('"-"')),null===r)&&(33===e.charCodeAt(o)?(r="!",o++):(r=null,0===s&&c('"!"')),null===r)&&(37===e.charCodeAt(o)?(r="%",o++):(r=null,0===s&&c('"%"')),null===r)&&(42===e.charCodeAt(o)?(r="*",o++):(r=null,0===s&&c('"*"')),null===r)&&(95===e.charCodeAt(o)?(r="_",o++):(r=null,0===s&&c('"_"')),null===r)&&(43===e.charCodeAt(o)?(r="+",o++):(r=null,0===s&&c('"+"')),null===r)&&(96===e.charCodeAt(o)?(r="`",o++):(r=null,0===s&&c('"`"')),null===r)&&(39===e.charCodeAt(o)?(r="'",o++):(r=null,0===s&&c('"\'"')),null===r)&&(126===e.charCodeAt(o)?(r="~",o++):(r=null,0===s&&c('"~"')));else t=null;return null===(t=null!==t?e.substring(o,n):t)&&(o=n),t}function M(){var t,n=o,r=y();if(null===r&&(45===e.charCodeAt(o)?(r="-",o++):(r=null,0===s&&c('"-"')),null===r)&&(46===e.charCodeAt(o)?(r=".",o++):(r=null,0===s&&c('"."')),null===r)&&(33===e.charCodeAt(o)?(r="!",o++):(r=null,0===s&&c('"!"')),null===r)&&(37===e.charCodeAt(o)?(r="%",o++):(r=null,0===s&&c('"%"')),null===r)&&(42===e.charCodeAt(o)?(r="*",o++):(r=null,0===s&&c('"*"')),null===r)&&(95===e.charCodeAt(o)?(r="_",o++):(r=null,0===s&&c('"_"')),null===r)&&(43===e.charCodeAt(o)?(r="+",o++):(r=null,0===s&&c('"+"')),null===r)&&(96===e.charCodeAt(o)?(r="`",o++):(r=null,0===s&&c('"`"')),null===r)&&(39===e.charCodeAt(o)?(r="'",o++):(r=null,0===s&&c('"\'"')),null===r)&&(126===e.charCodeAt(o)?(r="~",o++):(r=null,0===s&&c('"~"')),null===r)&&(40===e.charCodeAt(o)?(r="(",o++):(r=null,0===s&&c('"("')),null===r)&&(41===e.charCodeAt(o)?(r=")",o++):(r=null,0===s&&c('")"')),null===r)&&(60===e.charCodeAt(o)?(r="<",o++):(r=null,0===s&&c('"<"')),null===r)&&(62===e.charCodeAt(o)?(r=">",o++):(r=null,0===s&&c('">"')),null===r)&&(58===e.charCodeAt(o)?(r=":",o++):(r=null,0===s&&c('":"')),null===r)&&(92===e.charCodeAt(o)?(r="\\",o++):(r=null,0===s&&c('"\\\\"')),null===r)&&null===(r=m())&&(47===e.charCodeAt(o)?(r="/",o++):(r=null,0===s&&c('"/"')),null===r)&&(91===e.charCodeAt(o)?(r="[",o++):(r=null,0===s&&c('"["')),null===r)&&(93===e.charCodeAt(o)?(r="]",o++):(r=null,0===s&&c('"]"')),null===r)&&(63===e.charCodeAt(o)?(r="?",o++):(r=null,0===s&&c('"?"')),null===r)&&(123===e.charCodeAt(o)?(r="{",o++):(r=null,0===s&&c('"{"')),null===r)&&(125===e.charCodeAt(o)?(r="}",o++):(r=null,0===s&&c('"}"'))),null!==r)for(t=[];null!==r;)t.push(r),null===(r=y())&&(45===e.charCodeAt(o)?(r="-",o++):(r=null,0===s&&c('"-"')),null===r)&&(46===e.charCodeAt(o)?(r=".",o++):(r=null,0===s&&c('"."')),null===r)&&(33===e.charCodeAt(o)?(r="!",o++):(r=null,0===s&&c('"!"')),null===r)&&(37===e.charCodeAt(o)?(r="%",o++):(r=null,0===s&&c('"%"')),null===r)&&(42===e.charCodeAt(o)?(r="*",o++):(r=null,0===s&&c('"*"')),null===r)&&(95===e.charCodeAt(o)?(r="_",o++):(r=null,0===s&&c('"_"')),null===r)&&(43===e.charCodeAt(o)?(r="+",o++):(r=null,0===s&&c('"+"')),null===r)&&(96===e.charCodeAt(o)?(r="`",o++):(r=null,0===s&&c('"`"')),null===r)&&(39===e.charCodeAt(o)?(r="'",o++):(r=null,0===s&&c('"\'"')),null===r)&&(126===e.charCodeAt(o)?(r="~",o++):(r=null,0===s&&c('"~"')),null===r)&&(40===e.charCodeAt(o)?(r="(",o++):(r=null,0===s&&c('"("')),null===r)&&(41===e.charCodeAt(o)?(r=")",o++):(r=null,0===s&&c('")"')),null===r)&&(60===e.charCodeAt(o)?(r="<",o++):(r=null,0===s&&c('"<"')),null===r)&&(62===e.charCodeAt(o)?(r=">",o++):(r=null,0===s&&c('">"')),null===r)&&(58===e.charCodeAt(o)?(r=":",o++):(r=null,0===s&&c('":"')),null===r)&&(92===e.charCodeAt(o)?(r="\\",o++):(r=null,0===s&&c('"\\\\"')),null===r)&&null===(r=m())&&(47===e.charCodeAt(o)?(r="/",o++):(r=null,0===s&&c('"/"')),null===r)&&(91===e.charCodeAt(o)?(r="[",o++):(r=null,0===s&&c('"["')),null===r)&&(93===e.charCodeAt(o)?(r="]",o++):(r=null,0===s&&c('"]"')),null===r)&&(63===e.charCodeAt(o)?(r="?",o++):(r=null,0===s&&c('"?"')),null===r)&&(123===e.charCodeAt(o)?(r="{",o++):(r=null,0===s&&c('"{"')),null===r)&&(125===e.charCodeAt(o)?(r="}",o++):(r=null,0===s&&c('"}"')));else t=null;return null===(t=null!==t?e.substring(o,n):t)&&(o=n),t}function N(){var t,n,r=o,i=o,a=E();return null!==a&&(42===e.charCodeAt(o)?(t="*",o++):(t=null,0===s&&c('"*"')),null!==t)&&null!==(n=E())?a=[a,t,n]:(a=null,o=i),null===(a=null!==a?"*":a)&&(o=r),a}function L(){var t,n,r=o,i=o,a=E();return null!==a&&(47===e.charCodeAt(o)?(t="/",o++):(t=null,0===s&&c('"/"')),null!==t)&&null!==(n=E())?a=[a,t,n]:(a=null,o=i),null===(a=null!==a?"/":a)&&(o=r),a}function D(){var t,n,r=o,i=o,a=E();return null!==a&&(61===e.charCodeAt(o)?(t="=",o++):(t=null,0===s&&c('"="')),null!==t)&&null!==(n=E())?a=[a,t,n]:(a=null,o=i),null===(a=null!==a?"=":a)&&(o=r),a}function U(){var t,n,r=o,i=o,a=E();return null!==a&&(40===e.charCodeAt(o)?(t="(",o++):(t=null,0===s&&c('"("')),null!==t)&&null!==(n=E())?a=[a,t,n]:(a=null,o=i),null===(a=null!==a?"(":a)&&(o=r),a}function j(){var t,n,r=o,i=o,a=E();return null!==a&&(41===e.charCodeAt(o)?(t=")",o++):(t=null,0===s&&c('")"')),null!==t)&&null!==(n=E())?a=[a,t,n]:(a=null,o=i),null===(a=null!==a?")":a)&&(o=r),a}function F(){var t,n,r=o,i=o;return 62===e.charCodeAt(o)?(t=">",o++):(t=null,0===s&&c('">"')),null!==t&&null!==(n=E())?t=[t,n]:(t=null,o=i),null===(t=null!==t?">":t)&&(o=r),t}function H(){var t,n=o,r=o,i=E();return null!==i&&(60===e.charCodeAt(o)?(t="<",o++):(t=null,0===s&&c('"<"')),null!==t)?i=[i,t]:(i=null,o=r),null===(i=null!==i?"<":i)&&(o=n),i}function B(){var t,n,r=o,i=o,a=E();return null!==a&&(44===e.charCodeAt(o)?(t=",",o++):(t=null,0===s&&c('","')),null!==t)&&null!==(n=E())?a=[a,t,n]:(a=null,o=i),null===(a=null!==a?",":a)&&(o=r),a}function $(){var t,n,r=o,i=o,a=E();return null!==a&&(59===e.charCodeAt(o)?(t=";",o++):(t=null,0===s&&c('";"')),null!==t)&&null!==(n=E())?a=[a,t,n]:(a=null,o=i),null===(a=null!==a?";":a)&&(o=r),a}function q(){var t,n,r=o,i=o,a=E();return null!==a&&(58===e.charCodeAt(o)?(t=":",o++):(t=null,0===s&&c('":"')),null!==t)&&null!==(n=E())?a=[a,t,n]:(a=null,o=i),null===(a=null!==a?":":a)&&(o=r),a}function V(){var e,t=o,n=o,r=E();return null!==r&&null!==(e=m())?r=[r,e]:(r=null,o=n),null===(r=null!==r?'"':r)&&(o=t),r}function z(){var e,t=o,n=o,r=m();return null!==r&&null!==(e=E())?r=[r,e]:(r=null,o=n),null===(r=null!==r?'"':r)&&(o=t),r}function W(){var t;return/^[!-']/.test(e.charAt(o))?(t=e.charAt(o),o++):(t=null,0===s&&c("[!-']")),null===t&&(/^[*-[]/.test(e.charAt(o))?(t=e.charAt(o),o++):(t=null,0===s&&c("[*-[]")),null===t)&&(/^[\]-~]/.test(e.charAt(o))?(t=e.charAt(o),o++):(t=null,0===s&&c("[\\]-~]")),null===t)&&null===(t=O())?C():t}function G(){var t,n,r,i=o,s=o,a=E();if(null!==a)if(null!==(t=m())){for(n=[],null===(r=K())&&(r=X());null!==r;)n.push(r),null===(r=K())&&(r=X());null!==n&&null!==(r=m())?a=[a,t,n,r]:(a=null,o=s)}else a=null,o=s;else a=null,o=s;return null===(a=null!==a?e.substring(o,i):a)&&(o=i),a}function Y(){var t,n,r,i=o,s=o,a=E();if(null!==a)if(null!==(r=m())){for(t=[],null===(n=K())&&(n=X());null!==n;)t.push(n),null===(n=K())&&(n=X());null!==t&&null!==(n=m())?a=[a,r,t,n]:(a=null,o=s)}else a=null,o=s;else a=null,o=s;return null===(a=null!==a?(r=e.substring(o,i).trim()).substring(1,r.length-1).replace(/\\([\x00-\x09\x0b-\x0c\x0e-\x7f])/g,"$1"):a)&&(o=i),a}function K(){var t=C();return null===t&&(33===e.charCodeAt(o)?(t="!",o++):(t=null,0===s&&c('"!"')),null===t)&&(/^[#-[]/.test(e.charAt(o))?(t=e.charAt(o),o++):(t=null,0===s&&c("[#-[]")),null===t)&&(/^[\]-~]/.test(e.charAt(o))?(t=e.charAt(o),o++):(t=null,0===s&&c("[\\]-~]")),null===t)?O():t}function X(){var t,n,r=o;return 92===e.charCodeAt(o)?(t="\\",o++):(t=null,0===s&&c('"\\\\"')),null!==t&&(/^[\0-\t]/.test(e.charAt(o))?(n=e.charAt(o),o++):(n=null,0===s&&c("[\\0-\\t]")),null===n&&(/^[\x0B-\f]/.test(e.charAt(o))?(n=e.charAt(o),o++):(n=null,0===s&&c("[\\x0B-\\f]")),null===n)&&(/^[\x0E-]/.test(e.charAt(o))?(n=e.charAt(o),o++):(n=null,0===s&&c("[\\x0E-]"))),null!==n)?t=[t,n]:(t=null,o=r),t}function J(){var t,n,r,i=o,a=o,u=Z();return null!==u&&(58===e.charCodeAt(o)?(t=":",o++):(t=null,0===s&&c('":"')),null!==t)&&null!==(n=null!==(n=ne())?n:"")&&null!==(r=se())?u=[u,t,n,r]:(u=null,o=a),null===(u=null!==u?(()=>{try{qn.uri=new Bn(qn.scheme,qn.user,qn.host,qn.port),delete qn.scheme,delete qn.user,delete qn.host,delete qn.host_type,delete qn.port}catch(t){qn=-1}})():u)&&(o=i),u}function Q(){var n,r,i,a,u,l=o,d=o,h=Z();return null!==h&&(58===e.charCodeAt(o)?(n=":",o++):(n=null,0===s&&c('":"')),null!==n)&&null!==(r=null!==(r=ne())?r:"")&&null!==(i=se())&&null!==(a=_e())&&null!==(u=null!==(u=ke())?u:"")?h=[h,n,r,i,a,u]:(h=null,o=d),null===(h=null!==h?(()=>{try{qn.uri=new Bn(qn.scheme,qn.user,qn.host,qn.port,qn.uri_params,qn.uri_headers),delete qn.scheme,delete qn.user,delete qn.host,delete qn.host_type,delete qn.port,delete qn.uri_params,"SIP_URI"===t&&(qn=qn.uri)}catch(n){qn=-1}})():h)&&(o=l),h}function Z(){var e=ee();return null===e?te():e}function ee(){var t,n,r=o;return"sips"===e.substr(o,4).toLowerCase()?(t=e.substr(o,4),o+=4):(t=null,0===s&&c('"sips"')),null!==t&&(n=t,t=void(qn.scheme=n.toLowerCase())),null===t&&(o=r),t}function te(){var t,n,r=o;return"sip"===e.substr(o,3).toLowerCase()?(t=e.substr(o,3),o+=3):(t=null,0===s&&c('"sip"')),null!==t&&(n=t,t=void(qn.scheme=n.toLowerCase())),null===t&&(o=r),t}function ne(){var t,n,r,i=o,a=o,u=re();return null!==u&&(r=o,58===e.charCodeAt(o)?(t=":",o++):(t=null,0===s&&c('":"')),null!==t&&null!==(n=oe())?t=[t,n]:(t=null,o=r),null!==(t=null!==t?t:""))&&(64===e.charCodeAt(o)?(n="@",o++):(n=null,0===s&&c('"@"')),null!==n)?u=[u,t,n]:(u=null,o=a),null===(u=null!==u?void(qn.user=decodeURIComponent(e.substring(o-1,i))):u)&&(o=i),u}function re(){var e,t=w();if(null!==(t=null===t&&null===(t=S())?ie():t))for(e=[];null!==t;)e.push(t),null===(t=w())&&null===(t=S())&&(t=ie());else e=null;return e}function ie(){var t;return 38===e.charCodeAt(o)?(t="&",o++):(t=null,0===s&&c('"&"')),null===t&&(61===e.charCodeAt(o)?(t="=",o++):(t=null,0===s&&c('"="')),null===t)&&(43===e.charCodeAt(o)?(t="+",o++):(t=null,0===s&&c('"+"')),null===t)&&(36===e.charCodeAt(o)?(t="$",o++):(t=null,0===s&&c('"$"')),null===t)&&(44===e.charCodeAt(o)?(t=",",o++):(t=null,0===s&&c('","')),null===t)&&(59===e.charCodeAt(o)?(t=";",o++):(t=null,0===s&&c('";"')),null===t)&&(63===e.charCodeAt(o)?(t="?",o++):(t=null,0===s&&c('"?"')),null===t)&&(47===e.charCodeAt(o)?(t="/",o++):(t=null,0===s&&c('"/"'))),t}function oe(){var t=o,n=[],r=w();for(null===r&&null===(r=S())&&(38===e.charCodeAt(o)?(r="&",o++):(r=null,0===s&&c('"&"')),null===r)&&(61===e.charCodeAt(o)?(r="=",o++):(r=null,0===s&&c('"="')),null===r)&&(43===e.charCodeAt(o)?(r="+",o++):(r=null,0===s&&c('"+"')),null===r)&&(36===e.charCodeAt(o)?(r="$",o++):(r=null,0===s&&c('"$"')),null===r)&&(44===e.charCodeAt(o)?(r=",",o++):(r=null,0===s&&c('","')));null!==r;)n.push(r),null===(r=w())&&null===(r=S())&&(38===e.charCodeAt(o)?(r="&",o++):(r=null,0===s&&c('"&"')),null===r)&&(61===e.charCodeAt(o)?(r="=",o++):(r=null,0===s&&c('"="')),null===r)&&(43===e.charCodeAt(o)?(r="+",o++):(r=null,0===s&&c('"+"')),null===r)&&(36===e.charCodeAt(o)?(r="$",o++):(r=null,0===s&&c('"$"')),null===r)&&(44===e.charCodeAt(o)?(r=",",o++):(r=null,0===s&&c('","')));return null===(n=null!==n?void(qn.password=e.substring(o,t)):n)&&(o=t),n}function se(){var t,n,r,i=o,a=ae();return null!==a&&(r=o,58===e.charCodeAt(o)?(t=":",o++):(t=null,0===s&&c('":"')),null!==t&&null!==(n=ge())?t=[t,n]:(t=null,o=r),null!==(t=null!==t?t:""))?a=[a,t]:(a=null,o=i),a}function ae(){var t=o,n=ue();return null!==(n=null===n&&null===(n=ve())?de():n)&&(qn.host=e.substring(o,t).toLowerCase(),n=qn.host),null===n&&(o=t),n}function ue(){var t,n=o,r=o,i=[],a=o,u=ce();for(null!==u&&(46===e.charCodeAt(o)?(t=".",o++):(t=null,0===s&&c('"."')),null!==t)?u=[u,t]:(u=null,o=a);null!==u;)i.push(u),a=o,null!==(u=ce())&&(46===e.charCodeAt(o)?(t=".",o++):(t=null,0===s&&c('"."')),null!==t)?u=[u,t]:(u=null,o=a);return null!==i&&null!==(u=le())&&(46===e.charCodeAt(o)?(t=".",o++):(t=null,0===s&&c('"."')),null!==(t=null!==t?t:""))?i=[i,u,t]:(i=null,o=r),null!==i&&(r=n,qn.host_type="domain",i=e.substring(o,r)),null===i&&(o=n),i}function ce(){var t,n,r=o,i=y();if(null!==i){for(t=[],null===(n=y())&&(45===e.charCodeAt(o)?(n="-",o++):(n=null,0===s&&c('"-"')),null===n)&&(95===e.charCodeAt(o)?(n="_",o++):(n=null,0===s&&c('"_"')));null!==n;)t.push(n),null===(n=y())&&(45===e.charCodeAt(o)?(n="-",o++):(n=null,0===s&&c('"-"')),null===n)&&(95===e.charCodeAt(o)?(n="_",o++):(n=null,0===s&&c('"_"')));null!==t?i=[i,t]:(i=null,o=r)}else i=null,o=r;return i}function le(){var t,n,r=o,i=h();if(null!==i){for(t=[],null===(n=y())&&(45===e.charCodeAt(o)?(n="-",o++):(n=null,0===s&&c('"-"')),null===n)&&(95===e.charCodeAt(o)?(n="_",o++):(n=null,0===s&&c('"_"')));null!==n;)t.push(n),null===(n=y())&&(45===e.charCodeAt(o)?(n="-",o++):(n=null,0===s&&c('"-"')),null===n)&&(95===e.charCodeAt(o)?(n="_",o++):(n=null,0===s&&c('"_"')));null!==t?i=[i,t]:(i=null,o=r)}else i=null,o=r;return i}function de(){var t,n,r,i=o,a=o;return 91===e.charCodeAt(o)?(t="[",o++):(t=null,0===s&&c('"["')),null!==t&&null!==(r=he())&&(93===e.charCodeAt(o)?(n="]",o++):(n=null,0===s&&c('"]"')),null!==n)?t=[t,r,n]:(t=null,o=a),null!==t&&(r=i,qn.host_type="IPv6",t=e.substring(o,r)),null===t&&(o=i),t}function he(){var t,n,r,i,a,u,l,d,h,f,p,v,m,g=o,_=o,y=fe();return null!==y&&(58===e.charCodeAt(o)?(t=":",o++):(t=null,0===s&&c('":"')),null!==t)&&null!==(n=fe())&&(58===e.charCodeAt(o)?(r=":",o++):(r=null,0===s&&c('":"')),null!==r)&&null!==(i=fe())&&(58===e.charCodeAt(o)?(a=":",o++):(a=null,0===s&&c('":"')),null!==a)&&null!==(u=fe())&&(58===e.charCodeAt(o)?(l=":",o++):(l=null,0===s&&c('":"')),null!==l)&&null!==(d=fe())&&(58===e.charCodeAt(o)?(h=":",o++):(h=null,0===s&&c('":"')),null!==h)&&null!==(f=fe())&&(58===e.charCodeAt(o)?(p=":",o++):(p=null,0===s&&c('":"')),null!==p)&&null!==(m=pe())?y=[y,t,n,r,i,a,u,l,d,h,f,p,m]:(y=null,o=_),null===y&&(_=o,"::"===e.substr(o,2)?(y="::",o+=2):(y=null,0===s&&c('"::"')),null!==y&&null!==(t=fe())&&(58===e.charCodeAt(o)?(n=":",o++):(n=null,0===s&&c('":"')),null!==n)&&null!==(r=fe())&&(58===e.charCodeAt(o)?(i=":",o++):(i=null,0===s&&c('":"')),null!==i)&&null!==(a=fe())&&(58===e.charCodeAt(o)?(u=":",o++):(u=null,0===s&&c('":"')),null!==u)&&null!==(l=fe())&&(58===e.charCodeAt(o)?(d=":",o++):(d=null,0===s&&c('":"')),null!==d)&&null!==(h=fe())&&(58===e.charCodeAt(o)?(f=":",o++):(f=null,0===s&&c('":"')),null!==f)&&null!==(p=pe())?y=[y,t,n,r,i,a,u,l,d,h,f,p]:(y=null,o=_),null===y)&&(_=o,"::"===e.substr(o,2)?(y="::",o+=2):(y=null,0===s&&c('"::"')),null!==y&&null!==(t=fe())&&(58===e.charCodeAt(o)?(n=":",o++):(n=null,0===s&&c('":"')),null!==n)&&null!==(r=fe())&&(58===e.charCodeAt(o)?(i=":",o++):(i=null,0===s&&c('":"')),null!==i)&&null!==(a=fe())&&(58===e.charCodeAt(o)?(u=":",o++):(u=null,0===s&&c('":"')),null!==u)&&null!==(l=fe())&&(58===e.charCodeAt(o)?(d=":",o++):(d=null,0===s&&c('":"')),null!==d)&&null!==(h=pe())?y=[y,t,n,r,i,a,u,l,d,h]:(y=null,o=_),null===y)&&(_=o,"::"===e.substr(o,2)?(y="::",o+=2):(y=null,0===s&&c('"::"')),null!==y&&null!==(t=fe())&&(58===e.charCodeAt(o)?(n=":",o++):(n=null,0===s&&c('":"')),null!==n)&&null!==(r=fe())&&(58===e.charCodeAt(o)?(i=":",o++):(i=null,0===s&&c('":"')),null!==i)&&null!==(a=fe())&&(58===e.charCodeAt(o)?(u=":",o++):(u=null,0===s&&c('":"')),null!==u)&&null!==(l=pe())?y=[y,t,n,r,i,a,u,l]:(y=null,o=_),null===y)&&(_=o,"::"===e.substr(o,2)?(y="::",o+=2):(y=null,0===s&&c('"::"')),null!==y&&null!==(t=fe())&&(58===e.charCodeAt(o)?(n=":",o++):(n=null,0===s&&c('":"')),null!==n)&&null!==(r=fe())&&(58===e.charCodeAt(o)?(i=":",o++):(i=null,0===s&&c('":"')),null!==i)&&null!==(a=pe())?y=[y,t,n,r,i,a]:(y=null,o=_),null===y)&&(_=o,"::"===e.substr(o,2)?(y="::",o+=2):(y=null,0===s&&c('"::"')),null!==y&&null!==(t=fe())&&(58===e.charCodeAt(o)?(n=":",o++):(n=null,0===s&&c('":"')),null!==n)&&null!==(r=pe())?y=[y,t,n,r]:(y=null,o=_),null===y)&&(_=o,"::"===e.substr(o,2)?(y="::",o+=2):(y=null,0===s&&c('"::"')),null!==y&&null!==(t=pe())?y=[y,t]:(y=null,o=_),null===y)&&(_=o,"::"===e.substr(o,2)?(y="::",o+=2):(y=null,0===s&&c('"::"')),null!==y&&null!==(t=fe())?y=[y,t]:(y=null,o=_),null===y)&&(_=o,null!==(y=fe())&&("::"===e.substr(o,2)?(t="::",o+=2):(t=null,0===s&&c('"::"')),null!==t)&&null!==(n=fe())&&(58===e.charCodeAt(o)?(r=":",o++):(r=null,0===s&&c('":"')),null!==r)&&null!==(i=fe())&&(58===e.charCodeAt(o)?(a=":",o++):(a=null,0===s&&c('":"')),null!==a)&&null!==(u=fe())&&(58===e.charCodeAt(o)?(l=":",o++):(l=null,0===s&&c('":"')),null!==l)&&null!==(d=fe())&&(58===e.charCodeAt(o)?(h=":",o++):(h=null,0===s&&c('":"')),null!==h)&&null!==(f=pe())?y=[y,t,n,r,i,a,u,l,d,h,f]:(y=null,o=_),null===y)&&(_=o,null!==(y=fe())&&(v=o,58===e.charCodeAt(o)?(t=":",o++):(t=null,0===s&&c('":"')),null!==t&&null!==(n=fe())?t=[t,n]:(t=null,o=v),null!==(t=null!==t?t:""))&&("::"===e.substr(o,2)?(n="::",o+=2):(n=null,0===s&&c('"::"')),null!==n)&&null!==(r=fe())&&(58===e.charCodeAt(o)?(i=":",o++):(i=null,0===s&&c('":"')),null!==i)&&null!==(a=fe())&&(58===e.charCodeAt(o)?(u=":",o++):(u=null,0===s&&c('":"')),null!==u)&&null!==(l=fe())&&(58===e.charCodeAt(o)?(d=":",o++):(d=null,0===s&&c('":"')),null!==d)&&null!==(h=pe())?y=[y,t,n,r,i,a,u,l,d,h]:(y=null,o=_),null===y)&&(_=o,null!==(y=fe())&&(v=o,58===e.charCodeAt(o)?(t=":",o++):(t=null,0===s&&c('":"')),null!==t&&null!==(n=fe())?t=[t,n]:(t=null,o=v),null!==(t=null!==t?t:""))&&(v=o,58===e.charCodeAt(o)?(n=":",o++):(n=null,0===s&&c('":"')),null!==n&&null!==(r=fe())?n=[n,r]:(n=null,o=v),null!==(n=null!==n?n:""))&&("::"===e.substr(o,2)?(r="::",o+=2):(r=null,0===s&&c('"::"')),null!==r)&&null!==(i=fe())&&(58===e.charCodeAt(o)?(a=":",o++):(a=null,0===s&&c('":"')),null!==a)&&null!==(u=fe())&&(58===e.charCodeAt(o)?(l=":",o++):(l=null,0===s&&c('":"')),null!==l)&&null!==(d=pe())?y=[y,t,n,r,i,a,u,l,d]:(y=null,o=_),null===y)&&(_=o,null!==(y=fe())&&(v=o,58===e.charCodeAt(o)?(t=":",o++):(t=null,0===s&&c('":"')),null!==t&&null!==(n=fe())?t=[t,n]:(t=null,o=v),null!==(t=null!==t?t:""))&&(v=o,58===e.charCodeAt(o)?(n=":",o++):(n=null,0===s&&c('":"')),null!==n&&null!==(r=fe())?n=[n,r]:(n=null,o=v),null!==(n=null!==n?n:""))&&(v=o,58===e.charCodeAt(o)?(r=":",o++):(r=null,0===s&&c('":"')),null!==r&&null!==(i=fe())?r=[r,i]:(r=null,o=v),null!==(r=null!==r?r:""))&&("::"===e.substr(o,2)?(i="::",o+=2):(i=null,0===s&&c('"::"')),null!==i)&&null!==(a=fe())&&(58===e.charCodeAt(o)?(u=":",o++):(u=null,0===s&&c('":"')),null!==u)&&null!==(l=pe())?y=[y,t,n,r,i,a,u,l]:(y=null,o=_),null===y)&&(_=o,null!==(y=fe())&&(v=o,58===e.charCodeAt(o)?(t=":",o++):(t=null,0===s&&c('":"')),null!==t&&null!==(n=fe())?t=[t,n]:(t=null,o=v),null!==(t=null!==t?t:""))&&(v=o,58===e.charCodeAt(o)?(n=":",o++):(n=null,0===s&&c('":"')),null!==n&&null!==(r=fe())?n=[n,r]:(n=null,o=v),null!==(n=null!==n?n:""))&&(v=o,58===e.charCodeAt(o)?(r=":",o++):(r=null,0===s&&c('":"')),null!==r&&null!==(i=fe())?r=[r,i]:(r=null,o=v),null!==(r=null!==r?r:""))&&(v=o,58===e.charCodeAt(o)?(i=":",o++):(i=null,0===s&&c('":"')),null!==i&&null!==(a=fe())?i=[i,a]:(i=null,o=v),null!==(i=null!==i?i:""))&&("::"===e.substr(o,2)?(a="::",o+=2):(a=null,0===s&&c('"::"')),null!==a)&&null!==(u=pe())?y=[y,t,n,r,i,a,u]:(y=null,o=_),null===y)&&(_=o,null!==(y=fe())&&(v=o,58===e.charCodeAt(o)?(t=":",o++):(t=null,0===s&&c('":"')),null!==t&&null!==(n=fe())?t=[t,n]:(t=null,o=v),null!==(t=null!==t?t:""))&&(v=o,58===e.charCodeAt(o)?(n=":",o++):(n=null,0===s&&c('":"')),null!==n&&null!==(r=fe())?n=[n,r]:(n=null,o=v),null!==(n=null!==n?n:""))&&(v=o,58===e.charCodeAt(o)?(r=":",o++):(r=null,0===s&&c('":"')),null!==r&&null!==(i=fe())?r=[r,i]:(r=null,o=v),null!==(r=null!==r?r:""))&&(v=o,58===e.charCodeAt(o)?(i=":",o++):(i=null,0===s&&c('":"')),null!==i&&null!==(a=fe())?i=[i,a]:(i=null,o=v),null!==(i=null!==i?i:""))&&(v=o,58===e.charCodeAt(o)?(a=":",o++):(a=null,0===s&&c('":"')),null!==a&&null!==(u=fe())?a=[a,u]:(a=null,o=v),null!==(a=null!==a?a:""))&&("::"===e.substr(o,2)?(u="::",o+=2):(u=null,0===s&&c('"::"')),null!==u)&&null!==(l=fe())?y=[y,t,n,r,i,a,u,l]:(y=null,o=_),null===y)&&(_=o,null!==(y=fe())&&(v=o,58===e.charCodeAt(o)?(t=":",o++):(t=null,0===s&&c('":"')),null!==t&&null!==(n=fe())?t=[t,n]:(t=null,o=v),null!==(t=null!==t?t:""))&&(v=o,58===e.charCodeAt(o)?(n=":",o++):(n=null,0===s&&c('":"')),null!==n&&null!==(r=fe())?n=[n,r]:(n=null,o=v),null!==(n=null!==n?n:""))&&(v=o,58===e.charCodeAt(o)?(r=":",o++):(r=null,0===s&&c('":"')),null!==r&&null!==(i=fe())?r=[r,i]:(r=null,o=v),null!==(r=null!==r?r:""))&&(v=o,58===e.charCodeAt(o)?(i=":",o++):(i=null,0===s&&c('":"')),null!==i&&null!==(a=fe())?i=[i,a]:(i=null,o=v),null!==(i=null!==i?i:""))&&(v=o,58===e.charCodeAt(o)?(a=":",o++):(a=null,0===s&&c('":"')),null!==a&&null!==(u=fe())?a=[a,u]:(a=null,o=v),null!==(a=null!==a?a:""))&&(v=o,58===e.charCodeAt(o)?(u=":",o++):(u=null,0===s&&c('":"')),null!==u&&null!==(l=fe())?u=[u,l]:(u=null,o=v),null!==(u=null!==u?u:""))&&("::"===e.substr(o,2)?(l="::",o+=2):(l=null,0===s&&c('"::"')),null!==l)?y=[y,t,n,r,i,a,u,l]:(y=null,o=_)),null!==y&&(m=g,qn.host_type="IPv6",y=e.substring(o,m)),null===y&&(o=g),y}function fe(){var e,t,n,r=o,i=f();return null!==i&&null!==(e=null!==(e=f())?e:"")&&null!==(t=null!==(t=f())?t:"")&&null!==(n=null!==(n=f())?n:"")?i=[i,e,t,n]:(i=null,o=r),i}function pe(){var t,n,r=o,i=fe();return null!==i&&(58===e.charCodeAt(o)?(t=":",o++):(t=null,0===s&&c('":"')),null!==t)&&null!==(n=fe())?i=[i,t,n]:(i=null,o=r),null===i?ve():i}function ve(){var t,n,r,i,a,u,l=o,d=o,h=me();return null!==h&&(46===e.charCodeAt(o)?(u=".",o++):(u=null,0===s&&c('"."')),null!==u)&&null!==(t=me())&&(46===e.charCodeAt(o)?(n=".",o++):(n=null,0===s&&c('"."')),null!==n)&&null!==(r=me())&&(46===e.charCodeAt(o)?(i=".",o++):(i=null,0===s&&c('"."')),null!==i)&&null!==(a=me())?h=[h,u,t,n,r,i,a]:(h=null,o=d),null!==h&&(u=l,qn.host_type="IPv4",h=e.substring(o,u)),null===h&&(o=l),h}function me(){var t,n,r,i=o;return"25"===e.substr(o,2)?(t="25",o+=2):(t=null,0===s&&c('"25"')),null!==t&&(/^[0-5]/.test(e.charAt(o))?(n=e.charAt(o),o++):(n=null,0===s&&c("[0-5]")),null!==n)?t=[t,n]:(t=null,o=i),null===t&&(i=o,50===e.charCodeAt(o)?(t="2",o++):(t=null,0===s&&c('"2"')),null!==t&&(/^[0-4]/.test(e.charAt(o))?(n=e.charAt(o),o++):(n=null,0===s&&c("[0-4]")),null!==n)&&null!==(r=d())?t=[t,n,r]:(t=null,o=i),null===t)&&(i=o,49===e.charCodeAt(o)?(t="1",o++):(t=null,0===s&&c('"1"')),null!==t&&null!==(n=d())&&null!==(r=d())?t=[t,n,r]:(t=null,o=i),null===t)&&(i=o,/^[1-9]/.test(e.charAt(o))?(t=e.charAt(o),o++):(t=null,0===s&&c("[1-9]")),null!==t&&null!==(n=d())?t=[t,n]:(t=null,o=i),null===t)?d():t}function ge(){var e,t,n,r,i=o,s=o,a=d();return null!==(a=null!==a?a:"")&&null!==(r=null!==(r=d())?r:"")&&null!==(e=null!==(e=d())?e:"")&&null!==(t=null!==(t=d())?t:"")&&null!==(n=null!==(n=d())?n:"")?a=[a,r,e,t,n]:(a=null,o=s),null!==a&&(r=a,r=parseInt(r.join("")),a=qn.port=r),null===a&&(o=i),a}function _e(){var t,n,r=[],i=o;for(59===e.charCodeAt(o)?(t=";",o++):(t=null,0===s&&c('";"')),null!==t&&null!==(n=ye())?t=[t,n]:(t=null,o=i);null!==t;)r.push(t),i=o,59===e.charCodeAt(o)?(t=";",o++):(t=null,0===s&&c('";"')),null!==t&&null!==(n=ye())?t=[t,n]:(t=null,o=i);return r}function ye(){var e=be();return null===e&&null===(e=we())&&null===(e=Te())&&null===(e=Se())&&null===(e=Ce())&&null===(e=Ee())?Ae():e}function be(){var t,n,r=o,i=o;return"transport="===e.substr(o,10).toLowerCase()?(t=e.substr(o,10),o+=10):(t=null,0===s&&c('"transport="')),null!==t&&("udp"===e.substr(o,3).toLowerCase()?(n=e.substr(o,3),o+=3):(n=null,0===s&&c('"udp"')),null!==(n=null===n&&("tcp"===e.substr(o,3).toLowerCase()?(n=e.substr(o,3),o+=3):(n=null,0===s&&c('"tcp"')),null===n)&&("sctp"===e.substr(o,4).toLowerCase()?(n=e.substr(o,4),o+=4):(n=null,0===s&&c('"sctp"')),null===n)&&("tls"===e.substr(o,3).toLowerCase()?(n=e.substr(o,3),o+=3):(n=null,0===s&&c('"tls"')),null===n)?k():n))?t=[t,n]:(t=null,o=i),null!==t&&(n=t[1],qn.uri_params||(qn.uri_params={}),t=void(qn.uri_params.transport=n.toLowerCase())),null===t&&(o=r),t}function we(){var t,n,r=o,i=o;return"user="===e.substr(o,5).toLowerCase()?(t=e.substr(o,5),o+=5):(t=null,0===s&&c('"user="')),null!==t&&("phone"===e.substr(o,5).toLowerCase()?(n=e.substr(o,5),o+=5):(n=null,0===s&&c('"phone"')),null!==(n=null===n&&("ip"===e.substr(o,2).toLowerCase()?(n=e.substr(o,2),o+=2):(n=null,0===s&&c('"ip"')),null===n)?k():n))?t=[t,n]:(t=null,o=i),null!==t&&(n=t[1],qn.uri_params||(qn.uri_params={}),t=void(qn.uri_params.user=n.toLowerCase())),null===t&&(o=r),t}function Te(){var t,n,r=o,i=o;return"method="===e.substr(o,7).toLowerCase()?(t=e.substr(o,7),o+=7):(t=null,0===s&&c('"method="')),null!==t&&null!==(n=lt())?t=[t,n]:(t=null,o=i),null!==t&&(n=t[1],qn.uri_params||(qn.uri_params={}),t=void(qn.uri_params.method=n)),null===t&&(o=r),t}function Se(){var t,n,r=o,i=o;return"ttl="===e.substr(o,4).toLowerCase()?(t=e.substr(o,4),o+=4):(t=null,0===s&&c('"ttl="')),null!==t&&null!==(n=En())?t=[t,n]:(t=null,o=i),null!==t&&(n=t[1],qn.params||(qn.params={}),t=void(qn.params.ttl=n)),null===t&&(o=r),t}function Ce(){var t,n,r=o,i=o;return"maddr="===e.substr(o,6).toLowerCase()?(t=e.substr(o,6),o+=6):(t=null,0===s&&c('"maddr="')),null!==t&&null!==(n=ae())?t=[t,n]:(t=null,o=i),null!==t&&(n=t[1],qn.uri_params||(qn.uri_params={}),t=void(qn.uri_params.maddr=n)),null===t&&(o=r),t}function Ee(){var t,n,r,i,a=o,u=o;return"lr"===e.substr(o,2).toLowerCase()?(t=e.substr(o,2),o+=2):(t=null,0===s&&c('"lr"')),null!==t&&(i=o,61===e.charCodeAt(o)?(n="=",o++):(n=null,0===s&&c('"="')),null!==n&&null!==(r=k())?n=[n,r]:(n=null,o=i),null!==(n=null!==n?n:""))?t=[t,n]:(t=null,o=u),null!==t&&(qn.uri_params||(qn.uri_params={}),t=void(qn.uri_params.lr=void 0)),null===t&&(o=a),t}function Ae(){var t,n,r,i=o,a=o,u=xe();return null!==u&&(r=o,61===e.charCodeAt(o)?(t="=",o++):(t=null,0===s&&c('"="')),null!==t&&null!==(n=Re())?t=[t,n]:(t=null,o=r),null!==(t=null!==t?t:""))?u=[u,t]:(u=null,o=a),null!==u&&(n=u[0],r=u[1],qn.uri_params||(qn.uri_params={}),r=void 0===r?void 0:r[1],u=void(qn.uri_params[n.toLowerCase()]=r)),null===u&&(o=i),u}function xe(){var e,t=o,n=Oe();if(null!==n)for(e=[];null!==n;)e.push(n),n=Oe();else e=null;return null===(e=null!==e?e.join(""):e)&&(o=t),e}function Re(){var e,t=o,n=Oe();if(null!==n)for(e=[];null!==n;)e.push(n),n=Oe();else e=null;return null===(e=null!==e?e.join(""):e)&&(o=t),e}function Oe(){var e=Ie();return null===e&&null===(e=w())?S():e}function Ie(){var t;return 91===e.charCodeAt(o)?(t="[",o++):(t=null,0===s&&c('"["')),null===t&&(93===e.charCodeAt(o)?(t="]",o++):(t=null,0===s&&c('"]"')),null===t)&&(47===e.charCodeAt(o)?(t="/",o++):(t=null,0===s&&c('"/"')),null===t)&&(58===e.charCodeAt(o)?(t=":",o++):(t=null,0===s&&c('":"')),null===t)&&(38===e.charCodeAt(o)?(t="&",o++):(t=null,0===s&&c('"&"')),null===t)&&(43===e.charCodeAt(o)?(t="+",o++):(t=null,0===s&&c('"+"')),null===t)&&(36===e.charCodeAt(o)?(t="$",o++):(t=null,0===s&&c('"$"'))),t}function ke(){var t,n,r,i,a,u,l=o;if(63===e.charCodeAt(o)?(t="?",o++):(t=null,0===s&&c('"?"')),null!==t)if(null!==(n=Pe())){for(r=[],u=o,38===e.charCodeAt(o)?(i="&",o++):(i=null,0===s&&c('"&"')),null!==i&&null!==(a=Pe())?i=[i,a]:(i=null,o=u);null!==i;)r.push(i),u=o,38===e.charCodeAt(o)?(i="&",o++):(i=null,0===s&&c('"&"')),null!==i&&null!==(a=Pe())?i=[i,a]:(i=null,o=u);null!==r?t=[t,n,r]:(t=null,o=l)}else t=null,o=l;else t=null,o=l;return t}function Pe(){var t,n,r=o,i=o,a=Me();return null!==a&&(61===e.charCodeAt(o)?(t="=",o++):(t=null,0===s&&c('"="')),null!==t)&&null!==(n=Ne())?a=[a,t,n]:(a=null,o=i),null!==a&&(t=a[0],n=a[2],t=t.join("").toLowerCase(),n=n.join(""),qn.uri_headers||(qn.uri_headers={}),a=void(qn.uri_headers[t]?qn.uri_headers[t].push(n):qn.uri_headers[t]=[n])),null===a&&(o=r),a}function Me(){var e,t=Le();if(null!==(t=null===t&&null===(t=w())?S():t))for(e=[];null!==t;)e.push(t),null===(t=Le())&&null===(t=w())&&(t=S());else e=null;return e}function Ne(){var e=[],t=Le();for(null===t&&null===(t=w())&&(t=S());null!==t;)e.push(t),null===(t=Le())&&null===(t=w())&&(t=S());return e}function Le(){var t;return 91===e.charCodeAt(o)?(t="[",o++):(t=null,0===s&&c('"["')),null===t&&(93===e.charCodeAt(o)?(t="]",o++):(t=null,0===s&&c('"]"')),null===t)&&(47===e.charCodeAt(o)?(t="/",o++):(t=null,0===s&&c('"/"')),null===t)&&(63===e.charCodeAt(o)?(t="?",o++):(t=null,0===s&&c('"?"')),null===t)&&(58===e.charCodeAt(o)?(t=":",o++):(t=null,0===s&&c('":"')),null===t)&&(43===e.charCodeAt(o)?(t="+",o++):(t=null,0===s&&c('"+"')),null===t)&&(36===e.charCodeAt(o)?(t="$",o++):(t=null,0===s&&c('"$"'))),t}function De(){var e,t,n,r,i=o,s=lt();return null!==s&&null!==(e=g())&&null!==(t=Ue())&&null!==(n=g())&&null!==(r=et())?s=[s,e,t,n,r]:(s=null,o=i),s}function Ue(){var e=Q();return null===e?je():e}function je(){var t,n,r=o,i=Ke();return null!==i&&(58===e.charCodeAt(o)?(t=":",o++):(t=null,0===s&&c('":"')),null!==t)&&null!==(n=null===(n=Fe())?$e():n)?i=[i,t,n]:(i=null,o=r),i}function Fe(){var t,n,r,i=o,a=He();return null!==(a=null===a?Be():a)&&(r=o,63===e.charCodeAt(o)?(t="?",o++):(t=null,0===s&&c('"?"')),null!==t&&null!==(n=Ze())?t=[t,n]:(t=null,o=r),null!==(t=null!==t?t:""))?a=[a,t]:(a=null,o=i),a}function He(){var t,n,r,i=o;return"//"===e.substr(o,2)?(t="//",o+=2):(t=null,0===s&&c('"//"')),null!==t&&null!==(n=Xe())&&null!==(r=null!==(r=Be())?r:"")?t=[t,n,r]:(t=null,o=i),t}function Be(){var t,n,r=o;return 47===e.charCodeAt(o)?(t="/",o++):(t=null,0===s&&c('"/"')),null!==t&&null!==(n=ze())?t=[t,n]:(t=null,o=r),t}function $e(){var e,t,n=o,r=Ve();if(null!==r){for(e=[],t=qe();null!==t;)e.push(t),t=qe();null!==e?r=[r,e]:(r=null,o=n)}else r=null,o=n;return r}function qe(){var e=b();return null===e&&null===(e=w())?S():e}function Ve(){var t=w();return null===t&&null===(t=S())&&(59===e.charCodeAt(o)?(t=";",o++):(t=null,0===s&&c('";"')),null===t)&&(63===e.charCodeAt(o)?(t="?",o++):(t=null,0===s&&c('"?"')),null===t)&&(58===e.charCodeAt(o)?(t=":",o++):(t=null,0===s&&c('":"')),null===t)&&(64===e.charCodeAt(o)?(t="@",o++):(t=null,0===s&&c('"@"')),null===t)&&(38===e.charCodeAt(o)?(t="&",o++):(t=null,0===s&&c('"&"')),null===t)&&(61===e.charCodeAt(o)?(t="=",o++):(t=null,0===s&&c('"="')),null===t)&&(43===e.charCodeAt(o)?(t="+",o++):(t=null,0===s&&c('"+"')),null===t)&&(36===e.charCodeAt(o)?(t="$",o++):(t=null,0===s&&c('"$"')),null===t)&&(44===e.charCodeAt(o)?(t=",",o++):(t=null,0===s&&c('","'))),t}function ze(){var t,n,r,i,a=o,u=We();if(null!==u){for(t=[],i=o,47===e.charCodeAt(o)?(n="/",o++):(n=null,0===s&&c('"/"')),null!==n&&null!==(r=We())?n=[n,r]:(n=null,o=i);null!==n;)t.push(n),i=o,47===e.charCodeAt(o)?(n="/",o++):(n=null,0===s&&c('"/"')),null!==n&&null!==(r=We())?n=[n,r]:(n=null,o=i);null!==t?u=[u,t]:(u=null,o=a)}else u=null,o=a;return u}function We(){for(var t,n,r,i=o,a=[],u=Ye();null!==u;)a.push(u),u=Ye();if(null!==a){for(u=[],r=o,59===e.charCodeAt(o)?(t=";",o++):(t=null,0===s&&c('";"')),null!==t&&null!==(n=Ge())?t=[t,n]:(t=null,o=r);null!==t;)u.push(t),r=o,59===e.charCodeAt(o)?(t=";",o++):(t=null,0===s&&c('";"')),null!==t&&null!==(n=Ge())?t=[t,n]:(t=null,o=r);null!==u?a=[a,u]:(a=null,o=i)}else a=null,o=i;return a}function Ge(){for(var e=[],t=Ye();null!==t;)e.push(t),t=Ye();return e}function Ye(){var t=w();return null===t&&null===(t=S())&&(58===e.charCodeAt(o)?(t=":",o++):(t=null,0===s&&c('":"')),null===t)&&(64===e.charCodeAt(o)?(t="@",o++):(t=null,0===s&&c('"@"')),null===t)&&(38===e.charCodeAt(o)?(t="&",o++):(t=null,0===s&&c('"&"')),null===t)&&(61===e.charCodeAt(o)?(t="=",o++):(t=null,0===s&&c('"="')),null===t)&&(43===e.charCodeAt(o)?(t="+",o++):(t=null,0===s&&c('"+"')),null===t)&&(36===e.charCodeAt(o)?(t="$",o++):(t=null,0===s&&c('"$"')),null===t)&&(44===e.charCodeAt(o)?(t=",",o++):(t=null,0===s&&c('","'))),t}function Ke(){var t,n,r=o,i=o,a=h();if(null!==a){for(t=[],null===(n=h())&&null===(n=d())&&(43===e.charCodeAt(o)?(n="+",o++):(n=null,0===s&&c('"+"')),null===n)&&(45===e.charCodeAt(o)?(n="-",o++):(n=null,0===s&&c('"-"')),null===n)&&(46===e.charCodeAt(o)?(n=".",o++):(n=null,0===s&&c('"."')));null!==n;)t.push(n),null===(n=h())&&null===(n=d())&&(43===e.charCodeAt(o)?(n="+",o++):(n=null,0===s&&c('"+"')),null===n)&&(45===e.charCodeAt(o)?(n="-",o++):(n=null,0===s&&c('"-"')),null===n)&&(46===e.charCodeAt(o)?(n=".",o++):(n=null,0===s&&c('"."')));null!==t?a=[a,t]:(a=null,o=i)}else a=null,o=i;return null===(a=null!==a?void(qn.scheme=e.substring(o,r)):a)&&(o=r),a}function Xe(){var e=Je();return null===e?Qe():e}function Je(){var t,n=o,r=o,i=ne();return null!==i&&(64===e.charCodeAt(o)?(t="@",o++):(t=null,0===s&&c('"@"')),null!==t)?i=[i,t]:(i=null,o=r),null!==(i=null!==i?i:"")&&null!==(t=se())?i=[i,t]:(i=null,o=n),null!==i?i:""}function Qe(){var t,n=w();if(null===n&&null===(n=S())&&(36===e.charCodeAt(o)?(n="$",o++):(n=null,0===s&&c('"$"')),null===n)&&(44===e.charCodeAt(o)?(n=",",o++):(n=null,0===s&&c('","')),null===n)&&(59===e.charCodeAt(o)?(n=";",o++):(n=null,0===s&&c('";"')),null===n)&&(58===e.charCodeAt(o)?(n=":",o++):(n=null,0===s&&c('":"')),null===n)&&(64===e.charCodeAt(o)?(n="@",o++):(n=null,0===s&&c('"@"')),null===n)&&(38===e.charCodeAt(o)?(n="&",o++):(n=null,0===s&&c('"&"')),null===n)&&(61===e.charCodeAt(o)?(n="=",o++):(n=null,0===s&&c('"="')),null===n)&&(43===e.charCodeAt(o)?(n="+",o++):(n=null,0===s&&c('"+"'))),null!==n)for(t=[];null!==n;)t.push(n),null===(n=w())&&null===(n=S())&&(36===e.charCodeAt(o)?(n="$",o++):(n=null,0===s&&c('"$"')),null===n)&&(44===e.charCodeAt(o)?(n=",",o++):(n=null,0===s&&c('","')),null===n)&&(59===e.charCodeAt(o)?(n=";",o++):(n=null,0===s&&c('";"')),null===n)&&(58===e.charCodeAt(o)?(n=":",o++):(n=null,0===s&&c('":"')),null===n)&&(64===e.charCodeAt(o)?(n="@",o++):(n=null,0===s&&c('"@"')),null===n)&&(38===e.charCodeAt(o)?(n="&",o++):(n=null,0===s&&c('"&"')),null===n)&&(61===e.charCodeAt(o)?(n="=",o++):(n=null,0===s&&c('"="')),null===n)&&(43===e.charCodeAt(o)?(n="+",o++):(n=null,0===s&&c('"+"')));else t=null;return t}function Ze(){for(var e=[],t=qe();null!==t;)e.push(t),t=qe();return e}function et(){var t,n,r,i,a,u,l=o,h=o;if("sip"===e.substr(o,3).toLowerCase()?(t=e.substr(o,3),o+=3):(t=null,0===s&&c('"SIP"')),null!==t)if(47===e.charCodeAt(o)?(n="/",o++):(n=null,0===s&&c('"/"')),null!==n){if(null!==(i=d()))for(r=[];null!==i;)r.push(i),i=d();else r=null;if(null!==r)if(46===e.charCodeAt(o)?(i=".",o++):(i=null,0===s&&c('"."')),null!==i){if(null!==(u=d()))for(a=[];null!==u;)a.push(u),u=d();else a=null;null!==a?t=[t,n,r,i,a]:(t=null,o=h)}else t=null,o=h;else t=null,o=h}else t=null,o=h;else t=null,o=h;return null===(t=null!==t?void(qn.sip_version=e.substring(o,l)):t)&&(o=l),t}function tt(){var t;return"INVITE"===e.substr(o,6)?(t="INVITE",o+=6):(t=null,0===s&&c('"INVITE"')),t}function nt(){var t;return"ACK"===e.substr(o,3)?(t="ACK",o+=3):(t=null,0===s&&c('"ACK"')),t}function rt(){var t;return"OPTIONS"===e.substr(o,7)?(t="OPTIONS",o+=7):(t=null,0===s&&c('"OPTIONS"')),t}function it(){var t;return"BYE"===e.substr(o,3)?(t="BYE",o+=3):(t=null,0===s&&c('"BYE"')),t}function ot(){var t;return"CANCEL"===e.substr(o,6)?(t="CANCEL",o+=6):(t=null,0===s&&c('"CANCEL"')),t}function st(){var t;return"REGISTER"===e.substr(o,8)?(t="REGISTER",o+=8):(t=null,0===s&&c('"REGISTER"')),t}function at(){var t;return"SUBSCRIBE"===e.substr(o,9)?(t="SUBSCRIBE",o+=9):(t=null,0===s&&c('"SUBSCRIBE"')),t}function ut(){var t;return"NOTIFY"===e.substr(o,6)?(t="NOTIFY",o+=6):(t=null,0===s&&c('"NOTIFY"')),t}function ct(){var t;return"REFER"===e.substr(o,5)?(t="REFER",o+=5):(t=null,0===s&&c('"REFER"')),t}function lt(){var t=o,n=tt();return null!==(n=null===n&&null===(n=nt())&&null===(n=rt())&&null===(n=it())&&null===(n=ot())&&null===(n=st())&&null===(n=at())&&null===(n=ut())&&null===(n=ct())?k():n)&&(qn.method=e.substring(o,t),n=qn.method),null===n&&(o=t),n}function dt(){var e,t,n,r,i=o,s=et();return null!==s&&null!==(e=g())&&null!==(t=ht())&&null!==(n=g())&&null!==(r=pt())?s=[s,e,t,n,r]:(s=null,o=i),s}function ht(){var e,t=o,n=ft();return null!==n&&(e=n,n=void(qn.status_code=parseInt(e.join("")))),null===n&&(o=t),n}function ft(){var e,t,n=o,r=d();return null!==r&&null!==(e=d())&&null!==(t=d())?r=[r,e,t]:(r=null,o=n),r}function pt(){var t=o,n=[],r=b();for(null===r&&null===(r=w())&&null===(r=S())&&null===(r=O())&&null===(r=I())&&null===(r=g())&&(r=_());null!==r;)n.push(r),null===(r=b())&&null===(r=w())&&null===(r=S())&&null===(r=O())&&null===(r=I())&&null===(r=g())&&(r=_());return null===(n=null!==n?void(qn.reason_phrase=e.substring(o,t)):n)&&(o=t),n}function vt(){var e,t,n,r,i=o,s=o,a=J();if(null!==(a=null===a?mt():a)){for(e=[],r=o,null!==(t=$())&&null!==(n=_t())?t=[t,n]:(t=null,o=r);null!==t;)e.push(t),r=o,null!==(t=$())&&null!==(n=_t())?t=[t,n]:(t=null,o=r);null!==e?a=[a,e]:(a=null,o=s)}else a=null,o=s;return null===(a=null!==a?(e=>{var t;qn.multi_header||(qn.multi_header=[]);try{t=new $n(qn.uri,qn.display_name,qn.params),delete qn.uri,delete qn.display_name,delete qn.params}catch(e){t=null}qn.multi_header.push({possition:o,offset:e,parsed:t})})(i):a)&&(o=i),a}function mt(){var e,t,n,r=o,i=gt();return null!==(i=null!==i?i:"")&&null!==(e=H())&&null!==(t=Q())&&null!==(n=F())?i=[i,e,t,n]:(i=null,o=r),i}function gt(){var e,t,n,r,i=o,s=o,a=k();if(null!==a){for(e=[],r=o,null!==(t=C())&&null!==(n=k())?t=[t,n]:(t=null,o=r);null!==t;)e.push(t),r=o,null!==(t=C())&&null!==(n=k())?t=[t,n]:(t=null,o=r);null!==e?a=[a,e]:(a=null,o=s)}else a=null,o=s;return null!==(a=null===a?Y():a)&&(s=a,a=void(qn.display_name="string"==typeof s?s:s[1].reduce((function(e,t){return e+t[0]+t[1]}),s[0]))),null===a&&(o=i),a}function _t(){var e=yt();return null===e&&null===(e=bt())?St():e}function yt(){var t,n,r,i=o,a=o;return"q"===e.substr(o,1).toLowerCase()?(t=e.substr(o,1),o++):(t=null,0===s&&c('"q"')),null!==t&&null!==(r=D())&&null!==(n=Tt())?t=[t,r,n]:(t=null,o=a),null!==t&&(r=t[2],qn.params||(qn.params={}),t=void(qn.params.q=r)),null===t&&(o=i),t}function bt(){var t,n,r,i=o,a=o;return"expires"===e.substr(o,7).toLowerCase()?(t=e.substr(o,7),o+=7):(t=null,0===s&&c('"expires"')),null!==t&&null!==(r=D())&&null!==(n=wt())?t=[t,r,n]:(t=null,o=a),null!==t&&(r=t[2],qn.params||(qn.params={}),t=void(qn.params.expires=r)),null===t&&(o=i),t}function wt(){var e,t=o,n=d();if(null!==n)for(e=[];null!==n;)e.push(n),n=d();else e=null;return null===(e=null!==e?parseInt(e.join("")):e)&&(o=t),e}function Tt(){var t,n,r,i,a,u,l=o,h=o;return 48===e.charCodeAt(o)?(t="0",o++):(t=null,0===s&&c('"0"')),null!==t&&(u=o,46===e.charCodeAt(o)?(n=".",o++):(n=null,0===s&&c('"."')),null!==n&&null!==(r=null!==(r=d())?r:"")&&null!==(i=null!==(i=d())?i:"")&&null!==(a=null!==(a=d())?a:"")?n=[n,r,i,a]:(n=null,o=u),null!==(n=null!==n?n:""))?t=[t,n]:(t=null,o=h),null===(t=null!==t?parseFloat(e.substring(o,l)):t)&&(o=l),t}function St(){var e,t,n,r=o,i=o,s=k();return null!==s&&(n=o,null!==(e=D())&&null!==(t=Ct())?e=[e,t]:(e=null,o=n),null!==(e=null!==e?e:""))?s=[s,e]:(s=null,o=i),null!==s&&(t=s[0],n=s[1],qn.params||(qn.params={}),n=void 0===n?void 0:n[1],s=void(qn.params[t.toLowerCase()]=n)),null===s&&(o=r),s}function Ct(){var e=k();return null===e&&null===(e=ae())?G():e}function Et(){var t;return"render"===e.substr(o,6).toLowerCase()?(t=e.substr(o,6),o+=6):(t=null,0===s&&c('"render"')),null===t&&("session"===e.substr(o,7).toLowerCase()?(t=e.substr(o,7),o+=7):(t=null,0===s&&c('"session"')),null===t)&&("icon"===e.substr(o,4).toLowerCase()?(t=e.substr(o,4),o+=4):(t=null,0===s&&c('"icon"')),null===t)&&("alert"===e.substr(o,5).toLowerCase()?(t=e.substr(o,5),o+=5):(t=null,0===s&&c('"alert"')),null===t)?k():t}function At(){var e=xt();return null===e?St():e}function xt(){var t,n,r,i=o;return"handling"===e.substr(o,8).toLowerCase()?(t=e.substr(o,8),o+=8):(t=null,0===s&&c('"handling"')),null!==t&&null!==(n=D())&&("optional"===e.substr(o,8).toLowerCase()?(r=e.substr(o,8),o+=8):(r=null,0===s&&c('"optional"')),null!==(r=null===r&&("required"===e.substr(o,8).toLowerCase()?(r=e.substr(o,8),o+=8):(r=null,0===s&&c('"required"')),null===r)?k():r))?t=[t,n,r]:(t=null,o=i),t}function Rt(){var e,t,n,r,i,s,a=o,u=Ot();if(null!==u)if(null!==(e=L()))if(null!==(t=Nt())){for(n=[],s=o,null!==(r=$())&&null!==(i=Lt())?r=[r,i]:(r=null,o=s);null!==r;)n.push(r),s=o,null!==(r=$())&&null!==(i=Lt())?r=[r,i]:(r=null,o=s);null!==n?u=[u,e,t,n]:(u=null,o=a)}else u=null,o=a;else u=null,o=a;else u=null,o=a;return u}function Ot(){var e=It();return null===e?kt():e}function It(){var t;return"text"===e.substr(o,4).toLowerCase()?(t=e.substr(o,4),o+=4):(t=null,0===s&&c('"text"')),null===t&&("image"===e.substr(o,5).toLowerCase()?(t=e.substr(o,5),o+=5):(t=null,0===s&&c('"image"')),null===t)&&("audio"===e.substr(o,5).toLowerCase()?(t=e.substr(o,5),o+=5):(t=null,0===s&&c('"audio"')),null===t)&&("video"===e.substr(o,5).toLowerCase()?(t=e.substr(o,5),o+=5):(t=null,0===s&&c('"video"')),null===t)&&("application"===e.substr(o,11).toLowerCase()?(t=e.substr(o,11),o+=11):(t=null,0===s&&c('"application"')),null===t)?Pt():t}function kt(){var t;return"message"===e.substr(o,7).toLowerCase()?(t=e.substr(o,7),o+=7):(t=null,0===s&&c('"message"')),null===t&&("multipart"===e.substr(o,9).toLowerCase()?(t=e.substr(o,9),o+=9):(t=null,0===s&&c('"multipart"')),null===t)?Pt():t}function Pt(){var e=k();return null===e?Mt():e}function Mt(){var t,n,r=o;return"x-"===e.substr(o,2).toLowerCase()?(t=e.substr(o,2),o+=2):(t=null,0===s&&c('"x-"')),null!==t&&null!==(n=k())?t=[t,n]:(t=null,o=r),t}function Nt(){var e=Pt();return null===e?k():e}function Lt(){var e,t,n=o,r=k();return null!==r&&null!==(e=D())&&null!==(t=Dt())?r=[r,e,t]:(r=null,o=n),r}function Dt(){var e=k();return null===e?G():e}function Ut(){var e,t,n=o,r=d();if(null!==r)for(e=[];null!==r;)e.push(r),r=d();else e=null;return null!==e&&(t=e,e=void(qn.value=parseInt(t.join("")))),null===e&&(o=n),e}function jt(){var t,n,r,i,a=o,u=P();if(null!==u){for(t=[],i=o,46===e.charCodeAt(o)?(n=".",o++):(n=null,0===s&&c('"."')),null!==n&&null!==(r=P())?n=[n,r]:(n=null,o=i);null!==n;)t.push(n),i=o,46===e.charCodeAt(o)?(n=".",o++):(n=null,0===s&&c('"."')),null!==n&&null!==(r=P())?n=[n,r]:(n=null,o=i);null!==t?u=[u,t]:(u=null,o=a)}else u=null,o=a;return u}function Ft(){var e=Ht();return null===e?St():e}function Ht(){var t,n,r,i=o,a=o;return"tag"===e.substr(o,3).toLowerCase()?(t=e.substr(o,3),o+=3):(t=null,0===s&&c('"tag"')),null!==t&&null!==(r=D())&&null!==(n=k())?t=[t,r,n]:(t=null,o=a),null!==t&&(r=t[2],t=void(qn.tag=r)),null===t&&(o=i),t}function Bt(){var t,n,r,i,a,u,l,d=o;if("digest"===e.substr(o,6).toLowerCase()?(t=e.substr(o,6),o+=6):(t=null,0===s&&c('"Digest"')),null!==t)if(null!==(n=C()))if(null!==(r=Vt())){for(i=[],l=o,null!==(a=B())&&null!==(u=Vt())?a=[a,u]:(a=null,o=l);null!==a;)i.push(a),l=o,null!==(a=B())&&null!==(u=Vt())?a=[a,u]:(a=null,o=l);null!==i?t=[t,n,r,i]:(t=null,o=d)}else t=null,o=d;else t=null,o=d;else t=null,o=d;return null===t?$t():t}function $t(){var e,t,n,r,i,s,a=o,u=k();if(null!==u)if(null!==(e=C()))if(null!==(t=qt())){for(n=[],s=o,null!==(r=B())&&null!==(i=qt())?r=[r,i]:(r=null,o=s);null!==r;)n.push(r),s=o,null!==(r=B())&&null!==(i=qt())?r=[r,i]:(r=null,o=s);null!==n?u=[u,e,t,n]:(u=null,o=a)}else u=null,o=a;else u=null,o=a;else u=null,o=a;return u}function qt(){var e,t,n=o,r=k();return null!==r&&null!==(e=D())&&null!==(t=null===(t=k())?G():t)?r=[r,e,t]:(r=null,o=n),r}function Vt(){var e=zt();return null===e&&null===(e=Gt())&&null===(e=Kt())&&null===(e=Jt())&&null===(e=Qt())&&null===(e=Zt())&&null===(e=en())?qt():e}function zt(){var t,n,r,i=o;return"realm"===e.substr(o,5).toLowerCase()?(t=e.substr(o,5),o+=5):(t=null,0===s&&c('"realm"')),null!==t&&null!==(n=D())&&null!==(r=Wt())?t=[t,n,r]:(t=null,o=i),t}function Wt(){var e,t=o,n=Y();return null!==n&&(e=n,n=void(qn.realm=e)),null===n&&(o=t),n}function Gt(){var t,n,r,i,a,u,l,d,h=o;if("domain"===e.substr(o,6).toLowerCase()?(t=e.substr(o,6),o+=6):(t=null,0===s&&c('"domain"')),null!==t)if(null!==(n=D()))if(null!==(r=V()))if(null!==(i=Yt())){if(a=[],d=o,null!==(l=g()))for(u=[];null!==l;)u.push(l),l=g();else u=null;for(null!==u&&null!==(l=Yt())?u=[u,l]:(u=null,o=d);null!==u;){if(a.push(u),d=o,null!==(l=g()))for(u=[];null!==l;)u.push(l),l=g();else u=null;null!==u&&null!==(l=Yt())?u=[u,l]:(u=null,o=d)}null!==a&&null!==(u=z())?t=[t,n,r,i,a,u]:(t=null,o=h)}else t=null,o=h;else t=null,o=h;else t=null,o=h;else t=null,o=h;return t}function Yt(){var e=je();return null===e?Be():e}function Kt(){var t,n,r,i=o;return"nonce"===e.substr(o,5).toLowerCase()?(t=e.substr(o,5),o+=5):(t=null,0===s&&c('"nonce"')),null!==t&&null!==(n=D())&&null!==(r=Xt())?t=[t,n,r]:(t=null,o=i),t}function Xt(){var e,t=o,n=Y();return null!==n&&(e=n,n=void(qn.nonce=e)),null===n&&(o=t),n}function Jt(){var t,n,r,i=o,a=o;return"opaque"===e.substr(o,6).toLowerCase()?(t=e.substr(o,6),o+=6):(t=null,0===s&&c('"opaque"')),null!==t&&null!==(r=D())&&null!==(n=Y())?t=[t,r,n]:(t=null,o=a),null!==t&&(r=t[2],t=void(qn.opaque=r)),null===t&&(o=i),t}function Qt(){var t,n,r,i,a=o;return"stale"===e.substr(o,5).toLowerCase()?(t=e.substr(o,5),o+=5):(t=null,0===s&&c('"stale"')),null!==t&&null!==(n=D())&&(i=o,"true"===e.substr(o,4).toLowerCase()?(r=e.substr(o,4),o+=4):(r=null,0===s&&c('"true"')),null===(r=null!==r?void(qn.stale=!0):r)&&(o=i),null===r&&(i=o,"false"===e.substr(o,5).toLowerCase()?(r=e.substr(o,5),o+=5):(r=null,0===s&&c('"false"')),null===(r=null!==r?void(qn.stale=!1):r))&&(o=i),null!==r)?t=[t,n,r]:(t=null,o=a),t}function Zt(){var t,n,r,i=o,a=o;return"algorithm"===e.substr(o,9).toLowerCase()?(t=e.substr(o,9),o+=9):(t=null,0===s&&c('"algorithm"')),null!==t&&null!==(r=D())&&("md5"===e.substr(o,3).toLowerCase()?(n=e.substr(o,3),o+=3):(n=null,0===s&&c('"MD5"')),null!==(n=null===n&&("md5-sess"===e.substr(o,8).toLowerCase()?(n=e.substr(o,8),o+=8):(n=null,0===s&&c('"MD5-sess"')),null===n)?k():n))?t=[t,r,n]:(t=null,o=a),null!==t&&(r=t[2],t=void(qn.algorithm=r.toUpperCase())),null===t&&(o=i),t}function en(){var t,n,r,i,a,u,l,d,h,f=o;if("qop"===e.substr(o,3).toLowerCase()?(t=e.substr(o,3),o+=3):(t=null,0===s&&c('"qop"')),null!==t)if(null!==(n=D()))if(null!==(r=V())){if(d=o,null!==(i=tn())){for(a=[],h=o,44===e.charCodeAt(o)?(u=",",o++):(u=null,0===s&&c('","')),null!==u&&null!==(l=tn())?u=[u,l]:(u=null,o=h);null!==u;)a.push(u),h=o,44===e.charCodeAt(o)?(u=",",o++):(u=null,0===s&&c('","')),null!==u&&null!==(l=tn())?u=[u,l]:(u=null,o=h);null!==a?i=[i,a]:(i=null,o=d)}else i=null,o=d;null!==i&&null!==(a=z())?t=[t,n,r,i,a]:(t=null,o=f)}else t=null,o=f;else t=null,o=f;else t=null,o=f;return t}function tn(){var t,n,r=o;return"auth-int"===e.substr(o,8).toLowerCase()?(t=e.substr(o,8),o+=8):(t=null,0===s&&c('"auth-int"')),null!==(t=null===t&&("auth"===e.substr(o,4).toLowerCase()?(t=e.substr(o,4),o+=4):(t=null,0===s&&c('"auth"')),null===t)?k():t)&&(n=t,qn.qop||(qn.qop=[]),t=void qn.qop.push(n.toLowerCase())),null===t&&(o=r),t}function nn(){var e,t,n,r,i=o,s=o,a=mt();if(null!==a){for(e=[],r=o,null!==(t=$())&&null!==(n=St())?t=[t,n]:(t=null,o=r);null!==t;)e.push(t),r=o,null!==(t=$())&&null!==(n=St())?t=[t,n]:(t=null,o=r);null!==e?a=[a,e]:(a=null,o=s)}else a=null,o=s;return null===(a=null!==a?(e=>{var t;qn.multi_header||(qn.multi_header=[]);try{t=new $n(qn.uri,qn.display_name,qn.params),delete qn.uri,delete qn.display_name,delete qn.params}catch(e){t=null}qn.multi_header.push({possition:o,offset:e,parsed:t})})(i):a)&&(o=i),a}function rn(){var e=on();return null===e?St():e}function on(){var t,n,r,i,a=o,u=o;if("cause"===e.substr(o,5).toLowerCase()?(t=e.substr(o,5),o+=5):(t=null,0===s&&c('"cause"')),null!==t)if(null!==(i=D())){if(null!==(r=d()))for(n=[];null!==r;)n.push(r),r=d();else n=null;null!==n?t=[t,i,n]:(t=null,o=u)}else t=null,o=u;else t=null,o=u;return null!==t&&(i=t[2],t=void(qn.cause=parseInt(i.join("")))),null===t&&(o=a),t}function sn(){var e,t,n,r,i=o,s=mt();if(null!==s){for(e=[],r=o,null!==(t=$())&&null!==(n=St())?t=[t,n]:(t=null,o=r);null!==t;)e.push(t),r=o,null!==(t=$())&&null!==(n=St())?t=[t,n]:(t=null,o=r);null!==e?s=[s,e]:(s=null,o=i)}else s=null,o=i;return s}function an(){var t,n=o;return"active"===e.substr(o,6).toLowerCase()?(t=e.substr(o,6),o+=6):(t=null,0===s&&c('"active"')),null===(t=null!==(t=null===t&&("pending"===e.substr(o,7).toLowerCase()?(t=e.substr(o,7),o+=7):(t=null,0===s&&c('"pending"')),null===t)&&("terminated"===e.substr(o,10).toLowerCase()?(t=e.substr(o,10),o+=10):(t=null,0===s&&c('"terminated"')),null===t)?k():t)?void(qn.state=e.substring(o,n)):t)&&(o=n),t}function un(){var t,n,r,i,a=o,u=o;return"reason"===e.substr(o,6).toLowerCase()?(t=e.substr(o,6),o+=6):(t=null,0===s&&c('"reason"')),null!==t&&null!==(r=D())&&null!==(n=cn())?t=[t,r,n]:(t=null,o=u),null===(t=null!==t?void(void 0!==(i=t[2])&&(qn.reason=i)):t)&&(o=a),null===t&&(u=a=o,"expires"===e.substr(o,7).toLowerCase()?(t=e.substr(o,7),o+=7):(t=null,0===s&&c('"expires"')),null!==t&&null!==(r=D())&&null!==(n=wt())?t=[t,r,n]:(t=null,o=u),null===(t=null!==t?void(void 0!==(i=t[2])&&(qn.expires=i)):t)&&(o=a),null===t)&&(u=a=o,"retry_after"===e.substr(o,11).toLowerCase()?(t=e.substr(o,11),o+=11):(t=null,0===s&&c('"retry_after"')),null!==t&&null!==(r=D())&&null!==(n=wt())?t=[t,r,n]:(t=null,o=u),null===(t=null!==t?void(void 0!==(r=t[2])&&(qn.retry_after=r)):t)&&(o=a),null===t)?St():t}function cn(){var t;return"deactivated"===e.substr(o,11).toLowerCase()?(t=e.substr(o,11),o+=11):(t=null,0===s&&c('"deactivated"')),null===t&&("probation"===e.substr(o,9).toLowerCase()?(t=e.substr(o,9),o+=9):(t=null,0===s&&c('"probation"')),null===t)&&("rejected"===e.substr(o,8).toLowerCase()?(t=e.substr(o,8),o+=8):(t=null,0===s&&c('"rejected"')),null===t)&&("timeout"===e.substr(o,7).toLowerCase()?(t=e.substr(o,7),o+=7):(t=null,0===s&&c('"timeout"')),null===t)&&("giveup"===e.substr(o,6).toLowerCase()?(t=e.substr(o,6),o+=6):(t=null,0===s&&c('"giveup"')),null===t)&&("noresource"===e.substr(o,10).toLowerCase()?(t=e.substr(o,10),o+=10):(t=null,0===s&&c('"noresource"')),null===t)&&("invariant"===e.substr(o,9).toLowerCase()?(t=e.substr(o,9),o+=9):(t=null,0===s&&c('"invariant"')),null===t)?k():t}function ln(){var e=Ht();return null===e?St():e}function dn(){var e,t,n,r,i,s,a=o,u=yn();if(null!==u)if(null!==(e=C()))if(null!==(t=Tn())){for(n=[],s=o,null!==(r=$())&&null!==(i=hn())?r=[r,i]:(r=null,o=s);null!==r;)n.push(r),s=o,null!==(r=$())&&null!==(i=hn())?r=[r,i]:(r=null,o=s);null!==n?u=[u,e,t,n]:(u=null,o=a)}else u=null,o=a;else u=null,o=a;else u=null,o=a;return u}function hn(){var e=fn();return null===e&&null===(e=pn())&&null===(e=vn())&&null===(e=mn())&&null===(e=gn())?St():e}function fn(){var t,n,r,i=o,a=o;return"ttl"===e.substr(o,3).toLowerCase()?(t=e.substr(o,3),o+=3):(t=null,0===s&&c('"ttl"')),null!==t&&null!==(r=D())&&null!==(n=En())?t=[t,r,n]:(t=null,o=a),null!==t&&(r=t[2],t=void(qn.ttl=r)),null===t&&(o=i),t}function pn(){var t,n,r,i=o,a=o;return"maddr"===e.substr(o,5).toLowerCase()?(t=e.substr(o,5),o+=5):(t=null,0===s&&c('"maddr"')),null!==t&&null!==(r=D())&&null!==(n=ae())?t=[t,r,n]:(t=null,o=a),null!==t&&(r=t[2],t=void(qn.maddr=r)),null===t&&(o=i),t}function vn(){var t,n,r,i=o,a=o;return"received"===e.substr(o,8).toLowerCase()?(t=e.substr(o,8),o+=8):(t=null,0===s&&c('"received"')),null!==t&&null!==(r=D())&&null!==(n=null===(n=ve())?he():n)?t=[t,r,n]:(t=null,o=a),null!==t&&(r=t[2],t=void(qn.received=r)),null===t&&(o=i),t}function mn(){var t,n,r,i=o,a=o;return"branch"===e.substr(o,6).toLowerCase()?(t=e.substr(o,6),o+=6):(t=null,0===s&&c('"branch"')),null!==t&&null!==(r=D())&&null!==(n=k())?t=[t,r,n]:(t=null,o=a),null!==t&&(r=t[2],t=void(qn.branch=r)),null===t&&(o=i),t}function gn(){var t,n,r,i,a=o;return"rport"===e.substr(o,5).toLowerCase()?(t=e.substr(o,5),o+=5):(t=null,0===s&&c('"rport"')),null!==t&&(i=o,null!==(n=D())&&null!==(r=_n())?n=[n,r]:(n=null,o=i),null!==(n=null!==n?n:""))?t=[t,n]:(t=null,o=a),t}function _n(){var e,t,n,r,i=o,s=o,a=d();return null!==(a=null!==a?a:"")&&null!==(r=null!==(r=d())?r:"")&&null!==(e=null!==(e=d())?e:"")&&null!==(t=null!==(t=d())?t:"")&&null!==(n=null!==(n=d())?n:"")?a=[a,r,e,t,n]:(a=null,o=s),null!==a&&(r=a,a=void(qn.rport=parseInt(r.join("")))),null===a&&(o=i),a}function yn(){var e,t,n,r,i=o,s=bn();return null!==s&&null!==(e=L())&&null!==(t=k())&&null!==(n=L())&&null!==(r=wn())?s=[s,e,t,n,r]:(s=null,o=i),s}function bn(){var t,n,r=o;return"sip"===e.substr(o,3).toLowerCase()?(t=e.substr(o,3),o+=3):(t=null,0===s&&c('"SIP"')),null!==(t=null===t?k():t)&&(n=t,t=void(qn.protocol=n)),null===t&&(o=r),t}function wn(){var t,n,r=o;return"udp"===e.substr(o,3).toLowerCase()?(t=e.substr(o,3),o+=3):(t=null,0===s&&c('"UDP"')),null!==(t=null===t&&("tcp"===e.substr(o,3).toLowerCase()?(t=e.substr(o,3),o+=3):(t=null,0===s&&c('"TCP"')),null===t)&&("tls"===e.substr(o,3).toLowerCase()?(t=e.substr(o,3),o+=3):(t=null,0===s&&c('"TLS"')),null===t)&&("sctp"===e.substr(o,4).toLowerCase()?(t=e.substr(o,4),o+=4):(t=null,0===s&&c('"SCTP"')),null===t)?k():t)&&(n=t,t=void(qn.transport=n)),null===t&&(o=r),t}function Tn(){var e,t,n,r=o,i=Sn();return null!==i&&(n=o,null!==(e=q())&&null!==(t=Cn())?e=[e,t]:(e=null,o=n),null!==(e=null!==e?e:""))?i=[i,e]:(i=null,o=r),i}function Sn(){var t=o,n=ve();return null===(n=null!==(n=null===n&&null===(n=de())?ue():n)?void(qn.host=e.substring(o,t)):n)&&(o=t),n}function Cn(){var e,t,n,r,i=o,s=o,a=d();return null!==(a=null!==a?a:"")&&null!==(r=null!==(r=d())?r:"")&&null!==(e=null!==(e=d())?e:"")&&null!==(t=null!==(t=d())?t:"")&&null!==(n=null!==(n=d())?n:"")?a=[a,r,e,t,n]:(a=null,o=s),null!==a&&(r=a,a=void(qn.port=parseInt(r.join("")))),null===a&&(o=i),a}function En(){var e,t,n=o,r=o,i=d();return null!==i&&null!==(e=null!==(e=d())?e:"")&&null!==(t=null!==(t=d())?t:"")?i=[i,e,t]:(i=null,o=r),null===(i=null!==i?parseInt(i.join("")):i)&&(o=n),i}function An(){var e,t=o,n=wt();return null!==n&&(e=n,n=void(qn.expires=e)),null===n&&(o=t),n}function xn(){var e=Rn();return null===e?St():e}function Rn(){var t,n,r,i=o,a=o;return"refresher"===e.substr(o,9).toLowerCase()?(t=e.substr(o,9),o+=9):(t=null,0===s&&c('"refresher"')),null!==t&&null!==(r=D())&&("uac"===e.substr(o,3).toLowerCase()?(n=e.substr(o,3),o+=3):(n=null,0===s&&c('"uac"')),null===n&&("uas"===e.substr(o,3).toLowerCase()?(n=e.substr(o,3),o+=3):(n=null,0===s&&c('"uas"'))),null!==n)?t=[t,r,n]:(t=null,o=a),null!==t&&(r=t[2],t=void(qn.refresher=r.toLowerCase())),null===t&&(o=i),t}function On(){var e=[],t=R();for(null===t&&null===(t=I())&&(t=C());null!==t;)e.push(t),null===(t=R())&&null===(t=I())&&(t=C());return e}function In(){var t,n,r,i,a,u,l,d,h=o,f=o,p=Pn();return null!==p&&(45===e.charCodeAt(o)?(t="-",o++):(t=null,0===s&&c('"-"')),null!==t)&&null!==(n=kn())&&(45===e.charCodeAt(o)?(r="-",o++):(r=null,0===s&&c('"-"')),null!==r)&&null!==(i=kn())&&(45===e.charCodeAt(o)?(a="-",o++):(a=null,0===s&&c('"-"')),null!==a)&&null!==(u=kn())&&(45===e.charCodeAt(o)?(l="-",o++):(l=null,0===s&&c('"-"')),null!==l)&&null!==(d=Mn())?p=[p,t,n,r,i,a,u,l,d]:(p=null,o=f),null!==p&&(p[0],p=void(qn=e.substring(o+5,h))),null===p&&(o=h),p}function kn(){var e,t,n,r=o,i=f();return null!==i&&null!==(e=f())&&null!==(t=f())&&null!==(n=f())?i=[i,e,t,n]:(i=null,o=r),i}function Pn(){var e,t=o,n=kn();return null!==n&&null!==(e=kn())?n=[n,e]:(n=null,o=t),n}function Mn(){var e,t,n=o,r=kn();return null!==r&&null!==(e=kn())&&null!==(t=kn())?r=[r,e,t]:(r=null,o=n),r}function Nn(){var t,n,r,i=o,a=o,u=M();return null!==u&&(r=o,64===e.charCodeAt(o)?(t="@",o++):(t=null,0===s&&c('"@"')),null!==t&&null!==(n=M())?t=[t,n]:(t=null,o=r),null!==(t=null!==t?t:""))?u=[u,t]:(u=null,o=a),null===(u=null!==u?void(qn.call_id=e.substring(o,i)):u)&&(o=i),u}function Ln(){var e=Dn();return null===e&&null===(e=Un())&&null===(e=jn())?St():e}function Dn(){var t,n,r,i=o,a=o;return"to-tag"===e.substr(o,6)?(t="to-tag",o+=6):(t=null,0===s&&c('"to-tag"')),null!==t&&null!==(r=D())&&null!==(n=k())?t=[t,r,n]:(t=null,o=a),null!==t&&(r=t[2],t=void(qn.to_tag=r)),null===t&&(o=i),t}function Un(){var t,n,r,i=o,a=o;return"from-tag"===e.substr(o,8)?(t="from-tag",o+=8):(t=null,0===s&&c('"from-tag"')),null!==t&&null!==(r=D())&&null!==(n=k())?t=[t,r,n]:(t=null,o=a),null!==t&&(r=t[2],t=void(qn.from_tag=r)),null===t&&(o=i),t}function jn(){var t,n=o;return"early-only"===e.substr(o,10)?(t="early-only",o+=10):(t=null,0===s&&c('"early-only"')),null===(t=null!==t?void(qn.early_only=!0):t)&&(o=n),t}var Fn,Hn,Bn=n(7019),$n=n(900),qn={};return null===i[t]()||o!==e.length?(Fn=(i=Math.max(o,a))<e.length?e.charAt(i):null,Hn=(()=>{for(var t=1,n=1,r=!1,i=0;i<Math.max(o,a);i++){var s=e.charAt(i);r="\n"===s?(r||t++,!(n=1)):"\r"===s||"\u2028"===s||"\u2029"===s?(t++,n=1,!0):(n++,!1)}return{line:t,column:n}})(),new this.SyntaxError((e=>{e.sort();for(var t=null,n=[],r=0;r<e.length;r++)e[r]!==t&&(n.push(e[r]),t=e[r]);return n})(u),Fn,i,Hn.line,Hn.column),-1):qn},toSource:function(){return this._source}}).SyntaxError=function(e,t,n,i,o){this.name="SyntaxError",this.expected=e,this.found=t,this.message=((e,t)=>{var n;switch(e.length){case 0:n="end of input";break;case 1:n=e[0];break;default:n=e.slice(0,e.length-1).join(", ")+" or "+e[e.length-1]}return"Expected "+n+" but "+(t?r(t):"end of input")+" found."})(e,t),this.offset=n,this.line=i,this.column=o},e.SyntaxError.prototype=Error.prototype,e)},4524:function(e,t,n){var r=n(633),i=n(9896),o=n(8239),s=n(7196),a=n(1675),u=n(7019),c=n(900),l=n(9656),d=n(2159);n(8878)("JsSIP")("version %s",r.version),e.exports={C:i,Exceptions:o,Utils:s,UA:a,URI:u,NameAddrHeader:c,WebSocketInterface:d,Grammar:l,debug:n(8878),get name(){return r.title},get version(){return r.version}}},5409:function(e,t,n){var r=n(8878),i="JsSIP";e.exports=class{constructor(e){e?(this._debug=r.default("JsSIP:"+e),this._warn=r.default("JsSIP:WARN:"+e),this._error=r.default("JsSIP:ERROR:"+e)):(this._debug=r.default(i),this._warn=r.default("JsSIP:WARN"),this._error=r.default("JsSIP:ERROR")),this._debug.log=console.info.bind(console),this._warn.log=console.warn.bind(console),this._error.log=console.error.bind(console)}get debug(){return this._debug}get warn(){return this._warn}get error(){return this._error}}},3834:function(e,t,n){var r=n(9032).EventEmitter,i=n(3422),o=n(9896),s=n(2602),a=n(7196),u=n(5117),c=n(8239),l=n(7019),d=new i("Message");e.exports=class extends r{constructor(e){super(),this._ua=e,this._request=null,this._closed=!1,this._direction=null,this._local_identity=null,this._remote_identity=null,this._is_replied=!1,this._data={}}get direction(){return this._direction}get local_identity(){return this._local_identity}get remote_identity(){return this._remote_identity}send(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e;if(void 0===e||void 0===t)throw new TypeError("Not enough arguments");if(!(e=this._ua.normalizeTarget(e)))throw new TypeError("Invalid target: "+r);r=a.cloneArray(n.extraHeaders);var i,c=a.cloneObject(n.eventHandlers),d=n.contentType||"text/plain",h={};for(i in n.fromUserName&&(h.from_uri=new l("sip",n.fromUserName,this._ua.configuration.uri.host),r.push("P-Preferred-Identity: "+this._ua.configuration.uri.toString())),n.fromDisplayName&&(h.from_display_name=n.fromDisplayName),c)Object.prototype.hasOwnProperty.call(c,i)&&this.on(i,c[i]);r.push("Content-Type: "+d),this._request=new s.OutgoingRequest(o.MESSAGE,e,this._ua,h,r),t&&(this._request.body=t),n=new u(this._ua,this._request,{onRequestTimeout:()=>{this._onRequestTimeout()},onTransportError:()=>{this._onTransportError()},onReceiveResponse:e=>{this._receiveResponse(e)}}),this._newMessage("local",this._request),n.send()}init_incoming(e){this._request=e,this._newMessage("remote",e),this._is_replied||(this._is_replied=!0,e.reply(200)),this._close()}accept(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=a.cloneArray(t.extraHeaders);t=t.body;if("incoming"!==e._direction)throw new c.NotSupportedError('"accept" not supported for outgoing Message');if(e._is_replied)throw new Error("incoming Message already replied");e._is_replied=!0,e._request.reply(200,null,n,t)}(t)}reject(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=t.status_code||480,r=t.reason_phrase,i=a.cloneArray(t.extraHeaders);t=t.body;if("incoming"!==e._direction)throw new c.NotSupportedError('"reject" not supported for outgoing Message');if(e._is_replied)throw new Error("incoming Message already replied");if(n<300||700<=n)throw new TypeError("Invalid status_code: "+n);e._is_replied=!0,e._request.reply(n,r,i,t)}(t)}_receiveResponse(e){if(!this._closed)switch(!0){case/^1[0-9]{2}$/.test(e.status_code):break;case/^2[0-9]{2}$/.test(e.status_code):this._succeeded("remote",e);break;default:var t=a.sipErrorCause(e.status_code);this._failed("remote",e,t)}}_onRequestTimeout(){this._closed||this._failed("system",null,o.causes.REQUEST_TIMEOUT)}_onTransportError(){this._closed||this._failed("system",null,o.causes.CONNECTION_ERROR)}_close(){this._closed=!0,this._ua.destroyMessage(this)}_newMessage(e,t){"remote"===e?(this._direction="incoming",this._local_identity=t.to,this._remote_identity=t.from):"local"===e&&(this._direction="outgoing",this._local_identity=t.from,this._remote_identity=t.to),this._ua.newMessage(this,{originator:e,message:this,request:t})}_failed(e,t,n){d.debug("MESSAGE failed"),this._close(),d.debug('emit "failed"'),this.emit("failed",{originator:e,response:t||null,cause:n})}_succeeded(e,t){d.debug("MESSAGE succeeded"),this._close(),d.debug('emit "succeeded"'),this.emit("succeeded",{originator:e,response:t})}}},900:function(e,t,n){var r=n(7019),i=n(9656);e.exports=class e{static parse(e){if(-1!==(e=i.parse(e,"Name_Addr_Header")))return e}constructor(e,t,n){if(!(e&&e instanceof r))throw new TypeError('missing or invalid "uri" parameter');for(var i in this._uri=e,this._parameters={},this.display_name=t,n)Object.prototype.hasOwnProperty.call(n,i)&&this.setParam(i,n[i])}get uri(){return this._uri}get display_name(){return this._display_name}set display_name(e){this._display_name=0===e?"0":e}setParam(e,t){e&&(this._parameters[e.toLowerCase()]=null==t?null:t.toString())}getParam(e){if(e)return this._parameters[e.toLowerCase()]}hasParam(e){if(e)return!!this._parameters.hasOwnProperty(e.toLowerCase())}deleteParam(e){var t;if(e=e.toLowerCase(),this._parameters.hasOwnProperty(e))return t=this._parameters[e],delete this._parameters[e],t}clearParams(){this._parameters={}}clone(){return new e(this._uri.clone(),this._display_name,JSON.parse(JSON.stringify(this._parameters)))}_quote(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}toString(){var e=this._display_name?`"${this._quote(this._display_name)}" `:"";for(var t in e+=`<${this._uri.toString()}>`,this._parameters)Object.prototype.hasOwnProperty.call(this._parameters,t)&&(e+=";"+t,null!==this._parameters[t])&&(e+="="+this._parameters[t]);return e}}},7659:function(e,t,n){var r=n(9032).EventEmitter,i=n(3422),o=n(9896),s=n(2602),a=n(7196),u=n(5117),c=n(8239),l=new i("Options");e.exports=class extends r{constructor(e){super(),this._ua=e,this._request=null,this._closed=!1,this._direction=null,this._local_identity=null,this._remote_identity=null,this._is_replied=!1,this._data={}}get direction(){return this._direction}get local_identity(){return this._local_identity}get remote_identity(){return this._remote_identity}send(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(r){var i=e;if(void 0===e)throw new TypeError("A target is required for OPTIONS");if(!(e=n._ua.normalizeTarget(e)))throw new TypeError("Invalid target: "+i);i=a.cloneArray(r.extraHeaders);var c,l=a.cloneObject(r.eventHandlers);r=r.contentType||"application/sdp";for(c in l)Object.prototype.hasOwnProperty.call(l,c)&&n.on(c,l[c]);i.push("Content-Type: "+r),n._request=new s.OutgoingRequest(o.OPTIONS,e,n._ua,null,i),t&&(n._request.body=t),r=new u(n._ua,n._request,{onRequestTimeout:()=>{n._onRequestTimeout()},onTransportError:()=>{n._onTransportError()},onReceiveResponse:e=>{n._receiveResponse(e)}}),n._newOptions("local",n._request),r.send()}(r)}init_incoming(e){this._request=e,this._newOptions("remote",e),this._is_replied||(this._is_replied=!0,e.reply(200)),this._close()}accept(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=a.cloneArray(t.extraHeaders);t=t.body;if("incoming"!==e._direction)throw new c.NotSupportedError('"accept" not supported for outgoing Options');if(e._is_replied)throw new Error("incoming Options already replied");e._is_replied=!0,e._request.reply(200,null,n,t)}(t)}reject(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=t.status_code||480,r=t.reason_phrase,i=a.cloneArray(t.extraHeaders);t=t.body;if("incoming"!==e._direction)throw new c.NotSupportedError('"reject" not supported for outgoing Options');if(e._is_replied)throw new Error("incoming Options already replied");if(n<300||700<=n)throw new TypeError("Invalid status_code: "+n);e._is_replied=!0,e._request.reply(n,r,i,t)}(t)}_receiveResponse(e){if(!this._closed)switch(!0){case/^1[0-9]{2}$/.test(e.status_code):break;case/^2[0-9]{2}$/.test(e.status_code):this._succeeded("remote",e);break;default:var t=a.sipErrorCause(e.status_code);this._failed("remote",e,t)}}_onRequestTimeout(){this._closed||this._failed("system",null,o.causes.REQUEST_TIMEOUT)}_onTransportError(){this._closed||this._failed("system",null,o.causes.CONNECTION_ERROR)}_close(){this._closed=!0,this._ua.destroyMessage(this)}_newOptions(e,t){"remote"===e?(this._direction="incoming",this._local_identity=t.to,this._remote_identity=t.from):"local"===e&&(this._direction="outgoing",this._local_identity=t.from,this._remote_identity=t.to),this._ua.newOptions(this,{originator:e,message:this,request:t})}_failed(e,t,n){l.debug("OPTIONS failed"),this._close(),l.debug('emit "failed"'),this.emit("failed",{originator:e,response:t||null,cause:n})}_succeeded(e,t){l.debug("OPTIONS succeeded"),this._close(),l.debug('emit "succeeded"'),this.emit("succeeded",{originator:e,response:t})}}},9070:function(e,t,n){var r=n(3422),i=n(9656),o=n(2602),s=new r("Parser");t.parseMessage=(e,t)=>{var n,r,a=e.indexOf("\r\n");if(-1===a)s.warn("parseMessage() | no CRLF found, not a SIP message");else{var c=e.substring(0,a),l=i.parse(c,"Request_Response");if(-1!==l){l.status_code?((n=new o.IncomingResponse).status_code=l.status_code,n.reason_phrase=l.reason_phrase):((n=new o.IncomingRequest(t)).method=l.method,n.ruri=l.uri),n.data=e;for(var d=a+2;;){if(-2===(a=((e,t)=>{var n=t,r=0,i=0;if(e.substring(n,n+2).match(/(^\r\n)/))return-2;for(;0===r;){if(-1===(i=e.indexOf("\r\n",n)))return i;!e.substring(i+2,i+4).match(/(^\r\n)/)&&e.charAt(i+2).match(/(^\s+)/)?n=i+2:r=i}return r})(e,d))){r=d+2;break}if(-1===a)return void s.warn("parseMessage() | malformed message");if(!0!==(l=((e,t,n,r)=>{var s,a=t.indexOf(":",n),c=t.substring(n,a).trim(),l=t.substring(a+1,r).trim();switch(c.toLowerCase()){case"via":case"v":e.addHeader("via",l),1===e.getHeaders("via").length?(s=e.parseHeader("Via"))&&(e.via=s,e.via_branch=s.branch):s=0;break;case"from":case"f":e.setHeader("from",l),(s=e.parseHeader("from"))&&(e.from=s,e.from_tag=s.getParam("tag"));break;case"to":case"t":e.setHeader("to",l),(s=e.parseHeader("to"))&&(e.to=s,e.to_tag=s.getParam("tag"));break;case"record-route":if(-1===(s=i.parse(l,"Record_Route")))s=void 0;else{var d,h=u(s);try{for(h.s();!(d=h.n()).done;){var f=d.value;e.addHeader("record-route",l.substring(f.possition,f.offset)),e.headers["Record-Route"][e.getHeaders("record-route").length-1].parsed=f.parsed}}catch(g){h.e(g)}finally{h.f()}}break;case"call-id":case"i":e.setHeader("call-id",l),(s=e.parseHeader("call-id"))&&(e.call_id=l);break;case"contact":case"m":if(-1===(s=i.parse(l,"Contact")))s=void 0;else{var p,v=u(s);try{for(v.s();!(p=v.n()).done;){var m=p.value;e.addHeader("contact",l.substring(m.possition,m.offset)),e.headers.Contact[e.getHeaders("contact").length-1].parsed=m.parsed}}catch(g){v.e(g)}finally{v.f()}}break;case"content-length":case"l":e.setHeader("content-length",l),s=e.parseHeader("content-length");break;case"content-type":case"c":e.setHeader("content-type",l),s=e.parseHeader("content-type");break;case"cseq":e.setHeader("cseq",l),(s=e.parseHeader("cseq"))&&(e.cseq=s.value),e instanceof o.IncomingResponse&&(e.method=s.method);break;case"max-forwards":e.setHeader("max-forwards",l),s=e.parseHeader("max-forwards");break;case"www-authenticate":e.setHeader("www-authenticate",l),s=e.parseHeader("www-authenticate");break;case"proxy-authenticate":e.setHeader("proxy-authenticate",l),s=e.parseHeader("proxy-authenticate");break;case"session-expires":case"x":e.setHeader("session-expires",l),(s=e.parseHeader("session-expires"))&&(e.session_expires=s.expires,e.session_expires_refresher=s.refresher);break;case"refer-to":case"r":e.setHeader("refer-to",l),(s=e.parseHeader("refer-to"))&&(e.refer_to=s);break;case"replaces":e.setHeader("replaces",l),(s=e.parseHeader("replaces"))&&(e.replaces=s);break;case"event":case"o":e.setHeader("event",l),(s=e.parseHeader("event"))&&(e.event=s);break;default:e.addHeader(c,l),s=0}return void 0!==s||{error:`error parsing header "${c}"`}})(n,e,d,a)))return void s.warn("parseMessage() |",l.error);d=a+2}return n.hasHeader("content-length")?(t=n.getHeader("content-length"),n.body=e.substr(r,t)):n.body=e.substring(r),n}s.warn(`parseMessage() | error parsing first line of SIP message: "${c}"`)}}},7356:function(e,t,n){var r=n(9032).EventEmitter,i=n(8844),o=n(3422),s=n(9896),a=n(8239),c=n(1164),l=n(7196),d=n(2615),h=n(2602),f=n(2517),p=n(5117),v=n(2608),m=n(3211),g=n(1087),_=n(9535),y=n(7019),b=new o("RTCSession"),w={STATUS_NULL:0,STATUS_INVITE_SENT:1,STATUS_1XX_RECEIVED:2,STATUS_INVITE_RECEIVED:3,STATUS_WAITING_FOR_ANSWER:4,STATUS_ANSWERED:5,STATUS_WAITING_FOR_ACK:6,STATUS_CANCELED:7,STATUS_TERMINATED:8,STATUS_CONFIRMED:9},T=["audio","video"];e.exports=class e extends r{static get C(){return w}constructor(e){b.debug("new"),super(),this._id=null,this._ua=e,this._status=w.STATUS_NULL,this._dialog=null,this._earlyDialogs={},this._contact=null,this._from_tag=null,this._to_tag=null,this._connection=null,this._connectionPromiseQueue=Promise.resolve(),this._request=null,this._is_canceled=!1,this._cancel_reason="",this._is_confirmed=!1,this._late_sdp=!1,this._rtcOfferConstraints=null,this._rtcAnswerConstraints=null,this._localMediaStream=null,this._localMediaStreamLocallyGenerated=!1,this._rtcReady=!0,this._iceReady=!1,this._timers={ackTimer:null,expiresTimer:null,invite2xxTimer:null,userNoAnswerTimer:null},this._direction=null,this._local_identity=null,this._remote_identity=null,this._start_time=null,this._end_time=null,this._tones=null,this._audioMuted=!1,this._videoMuted=!1,this._localHold=!1,this._remoteHold=!1,this._sessionTimers={enabled:this._ua.configuration.session_timers,refreshMethod:this._ua.configuration.session_timers_refresh_method,defaultExpires:s.SESSION_EXPIRES,currentExpires:null,running:!1,refresher:!1,timer:null},this._referSubscribers={},this._data={}}get C(){return w}get causes(){return s.causes}get id(){return this._id}get connection(){return this._connection}get contact(){return this._contact}get direction(){return this._direction}get local_identity(){return this._local_identity}get remote_identity(){return this._remote_identity}get start_time(){return this._start_time}get end_time(){return this._end_time}get data(){return this._data}set data(e){this._data=e}get status(){return this._status}isInProgress(){switch(this._status){case w.STATUS_NULL:case w.STATUS_INVITE_SENT:case w.STATUS_1XX_RECEIVED:case w.STATUS_INVITE_RECEIVED:case w.STATUS_WAITING_FOR_ANSWER:return!0;default:return!1}}isEstablished(){switch(this._status){case w.STATUS_ANSWERED:case w.STATUS_WAITING_FOR_ACK:case w.STATUS_CONFIRMED:return!0;default:return!1}}isEnded(){switch(this._status){case w.STATUS_CANCELED:case w.STATUS_TERMINATED:return!0;default:return!1}}isMuted(){return{audio:this._audioMuted,video:this._videoMuted}}isOnHold(){return{local:this._localHold,remote:this._remoteHold}}connect(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;b.debug("connect()");var r,i=e,o=l.cloneObject(t.eventHandlers),u=l.cloneArray(t.extraHeaders),c=l.cloneObject(t.mediaConstraints,{audio:!0,video:!0}),d=t.mediaStream||null,f=l.cloneObject(t.pcConfig,{iceServers:[]}),p=t.rtcConstraints||null,v=t.rtcOfferConstraints||null;if(this._rtcOfferConstraints=v,this._rtcAnswerConstraints=t.rtcAnswerConstraints||null,this._data=t.data||this._data,void 0===e)throw new TypeError("Not enough arguments");if(this._status!==w.STATUS_NULL)throw new a.InvalidStateError(this._status);if(!window.RTCPeerConnection)throw new a.NotSupportedError("WebRTC not supported");if(!(e=this._ua.normalizeTarget(e)))throw new TypeError("Invalid target: "+i);for(r in this._sessionTimers.enabled&&l.isDecimal(t.sessionTimersExpires)&&(t.sessionTimersExpires>=s.MIN_SESSION_EXPIRES?this._sessionTimers.defaultExpires=t.sessionTimersExpires:this._sessionTimers.defaultExpires=s.SESSION_EXPIRES),o)Object.prototype.hasOwnProperty.call(o,r)&&this.on(r,o[r]);this._from_tag=l.newTag();i=t.anonymous||!1;var m={from_tag:this._from_tag};this._contact=this._ua.contact.toString({anonymous:i,outbound:!0}),i?(m.from_display_name="Anonymous",m.from_uri=new y("sip","anonymous","anonymous.invalid"),u.push("P-Preferred-Identity: "+this._ua.configuration.uri.toString()),u.push("Privacy: id")):t.fromUserName&&(m.from_uri=new y("sip",t.fromUserName,this._ua.configuration.uri.host),u.push("P-Preferred-Identity: "+this._ua.configuration.uri.toString())),t.fromDisplayName&&(m.from_display_name=t.fromDisplayName),u.push("Contact: "+this._contact),u.push("Content-Type: application/sdp"),this._sessionTimers.enabled&&u.push("Session-Expires: "+this._sessionTimers.defaultExpires+(this._ua.configuration.session_timers_force_refresher?";refresher=uac":"")),this._request=new h.InitialOutgoingInviteRequest(e,this._ua,m,u),this._id=this._request.call_id+this._from_tag,this._createRTCConnection(f,p),this._direction="outgoing",this._local_identity=this._request.from,this._remote_identity=this._request.to,n&&n(this),this._newRTCSession("local",this._request),this._sendInitialRequest(c,v,d)}init_incoming(e,t){var n;b.debug("init_incoming()");var r=e.hasHeader("Content-Type")?e.getHeader("Content-Type").toLowerCase():void 0;e.body&&"application/sdp"!==r?e.reply(415):(this._status=w.STATUS_INVITE_RECEIVED,this._from_tag=e.from_tag,this._id=e.call_id+this._from_tag,this._request=e,this._contact=this._ua.contact.toString(),e.hasHeader("expires")&&(n=1e3*e.getHeader("expires")),e.to_tag=l.newTag(),this._createDialog(e,"UAS",!0)?(e.body?this._late_sdp=!1:this._late_sdp=!0,this._status=w.STATUS_WAITING_FOR_ANSWER,this._timers.userNoAnswerTimer=setTimeout(()=>{e.reply(408),this._failed("local",null,s.causes.NO_ANSWER)},this._ua.configuration.no_answer_timeout),n&&(this._timers.expiresTimer=setTimeout(()=>{this._status===w.STATUS_WAITING_FOR_ANSWER&&(e.reply(487),this._failed("system",null,s.causes.EXPIRES))},n)),this._direction="incoming",this._local_identity=e.to,this._remote_identity=e.from,t&&t(this),this._newRTCSession("remote",e),this._status!==w.STATUS_TERMINATED&&(e.reply(180,null,["Contact: "+this._contact]),this._progress("local",null))):e.reply(500,"Missing Contact header field"))}answer(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){b.debug("answer()");var n=e._request,r=l.cloneArray(t.extraHeaders),i=l.cloneObject(t.mediaConstraints),o=t.mediaStream||null,c=l.cloneObject(t.pcConfig,{iceServers:[]}),d=t.rtcConstraints||null,h=t.rtcAnswerConstraints||null,f=l.cloneObject(t.rtcOfferConstraints),p=!1,v=!1,m=!1,g=!1;if(e._rtcAnswerConstraints=h,e._rtcOfferConstraints=t.rtcOfferConstraints||null,e._data=t.data||e._data,"incoming"!==e._direction)throw new a.NotSupportedError('"answer" not supported for outgoing RTCSession');if(e._status!==w.STATUS_WAITING_FOR_ANSWER)throw new a.InvalidStateError(e._status);if(e._sessionTimers.enabled&&l.isDecimal(t.sessionTimersExpires)&&(t.sessionTimersExpires>=s.MIN_SESSION_EXPIRES?e._sessionTimers.defaultExpires=t.sessionTimersExpires:e._sessionTimers.defaultExpires=s.SESSION_EXPIRES),e._status=w.STATUS_ANSWERED,e._createDialog(n,"UAS")){clearTimeout(e._timers.userNoAnswerTimer),r.unshift("Contact: "+e._contact);var _;t=n.parseSDP();Array.isArray(t.media)||(t.media=[t.media]);var y,T=u(t.media);try{for(T.s();!(y=T.n()).done;)_=y.value,"audio"===_.type&&(p=!0,_.direction&&"sendrecv"!==_.direction||(m=!0)),"video"===_.type&&(v=!0,_.direction&&"sendrecv"!==_.direction||(g=!0))}catch(O){T.e(O)}finally{T.f()}if(o&&!1===i.audio){var S,C=u(o.getAudioTracks());try{for(C.s();!(S=C.n()).done;){var E=S.value;o.removeTrack(E)}}catch(O){C.e(O)}finally{C.f()}}if(o&&!1===i.video){var A,x=u(o.getVideoTracks());try{for(x.s();!(A=x.n()).done;){var R=A.value;o.removeTrack(R)}}catch(O){x.e(O)}finally{x.f()}}o||void 0!==i.audio||(i.audio=m),o||void 0!==i.video||(i.video=g),o||p||f.offerToReceiveAudio||(i.audio=!1),o||v||f.offerToReceiveVideo||(i.video=!1),e._createRTCConnection(c,d),Promise.resolve().then(()=>o||(i.audio||i.video?(e._localMediaStreamLocallyGenerated=!0,navigator.mediaDevices.getUserMedia(i).catch(t=>{if(e._status===w.STATUS_TERMINATED)throw new Error("terminated");throw n.reply(480),e._failed("local",null,s.causes.USER_DENIED_MEDIA_ACCESS),b.warn('emit "getusermediafailed" [error:%o]',t),e.emit("getusermediafailed",t),new Error("getUserMedia() failed")})):void 0)).then(t=>{if(e._status===w.STATUS_TERMINATED)throw new Error("terminated");(e._localMediaStream=t)&&t.getTracks().forEach(n=>{e._connection.addTrack(n,t)})}).then(()=>{if(!e._late_sdp){var t={originator:"remote",type:"offer",sdp:n.body};b.debug('emit "sdp"'),e.emit("sdp",t);var r=new RTCSessionDescription({type:"offer",sdp:t.sdp});return e._connectionPromiseQueue=e._connectionPromiseQueue.then(()=>e._connection.setRemoteDescription(r)).catch(t=>{throw n.reply(488),e._failed("system",null,s.causes.WEBRTC_ERROR),b.warn('emit "peerconnection:setremotedescriptionfailed" [error:%o]',t),e.emit("peerconnection:setremotedescriptionfailed",t),new Error("peerconnection.setRemoteDescription() failed")}),e._connectionPromiseQueue}}).then(()=>{if(e._status===w.STATUS_TERMINATED)throw new Error("terminated");return e._connecting(n),(e._late_sdp?e._createLocalDescription("offer",e._rtcOfferConstraints):e._createLocalDescription("answer",h)).catch(()=>{throw n.reply(500),new Error("_createLocalDescription() failed")})}).then(t=>{if(e._status===w.STATUS_TERMINATED)throw new Error("terminated");e._handleSessionTimersInIncomingRequest(n,r),n.reply(200,null,r,t,()=>{e._status=w.STATUS_WAITING_FOR_ACK,e._setInvite2xxTimer(n,t),e._setACKTimer(),e._accepted("local")},()=>{e._failed("system",null,s.causes.CONNECTION_ERROR)})}).catch(t=>{e._status!==w.STATUS_TERMINATED&&b.warn(t)})}else n.reply(500,"Error creating dialog")}(t)}terminate(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};b.debug("terminate()");var t,n=e.cause||s.causes.BYE,r=l.cloneArray(e.extraHeaders),i=e.body,o=e.status_code,u=e.reason_phrase;if(this._status===w.STATUS_TERMINATED)throw new a.InvalidStateError(this._status);switch(this._status){case w.STATUS_NULL:case w.STATUS_INVITE_SENT:case w.STATUS_1XX_RECEIVED:if(b.debug("canceling session"),o&&(o<200||700<=o))throw new TypeError("Invalid status_code: "+o);o&&(u=u||s.REASON_PHRASE[o]||"",t=`SIP ;cause=${o} ;text="${u}"`),this._status===w.STATUS_NULL||this._status===w.STATUS_INVITE_SENT?(this._is_canceled=!0,this._cancel_reason=t):this._status===w.STATUS_1XX_RECEIVED&&this._request.cancel(t),this._status=w.STATUS_CANCELED,this._failed("local",null,s.causes.CANCELED);break;case w.STATUS_WAITING_FOR_ANSWER:case w.STATUS_ANSWERED:if(b.debug("rejecting session"),(o=o||480)<300||700<=o)throw new TypeError("Invalid status_code: "+o);this._request.reply(o,u,r,i),this._failed("local",null,s.causes.REJECTED);break;case w.STATUS_WAITING_FOR_ACK:case w.STATUS_CONFIRMED:if(b.debug("terminating session"),u=e.reason_phrase||s.REASON_PHRASE[o]||"",o&&(o<200||700<=o))throw new TypeError("Invalid status_code: "+o);if(o&&r.push(`Reason: SIP ;cause=${o}; text="${u}"`),this._status===w.STATUS_WAITING_FOR_ACK&&"incoming"===this._direction&&this._request.server_transaction.state!==c.C.STATUS_TERMINATED){var d=this._dialog;this.receiveRequest=e=>{var t=e.method;t===s.ACK&&(this.sendRequest(s.BYE,{extraHeaders:r,body:i}),d.terminate())},this._request.server_transaction.on("stateChanged",()=>{this._request.server_transaction.state===c.C.STATUS_TERMINATED&&(this.sendRequest(s.BYE,{extraHeaders:r,body:i}),d.terminate())}),this._ended("local",null,n),this._dialog=d,this._ua.newDialog(d)}else this.sendRequest(s.BYE,{extraHeaders:r,body:i}),this._ended("local",null,n)}}sendDTMF(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};b.debug("sendDTMF() | tones: %s",e);var n=0,r=t.duration||null,i=t.interToneGap||null,o=t.transportType||s.DTMF_TRANSPORT.INFO;if(void 0===e)throw new TypeError("Not enough arguments");if(this._status!==w.STATUS_CONFIRMED&&this._status!==w.STATUS_WAITING_FOR_ACK&&this._status!==w.STATUS_1XX_RECEIVED)throw new a.InvalidStateError(this._status);if(o!==s.DTMF_TRANSPORT.INFO&&o!==s.DTMF_TRANSPORT.RFC2833)throw new TypeError("invalid transportType: "+o);if(!(e="number"==typeof e?e.toString():e)||"string"!=typeof e||!e.match(/^[0-9A-DR#*,]+$/i))throw new TypeError("Invalid tones: "+e);if(r&&!l.isDecimal(r))throw new TypeError("Invalid tone duration: "+r);if(r=r?r<v.C.MIN_DURATION?(b.debug(`"duration" value is lower than the minimum allowed, setting it to ${v.C.MIN_DURATION} milliseconds`),v.C.MIN_DURATION):r>v.C.MAX_DURATION?(b.debug(`"duration" value is greater than the maximum allowed, setting it to ${v.C.MAX_DURATION} milliseconds`),v.C.MAX_DURATION):Math.abs(r):v.C.DEFAULT_DURATION,t.duration=r,i&&!l.isDecimal(i))throw new TypeError("Invalid interToneGap: "+i);function u(){var e,o,s;this._status===w.STATUS_TERMINATED||!this._tones||n>=this._tones.length?this._tones=null:(o=this._tones[n],n+=1,e=","===o?2e3:(s=new v(this),t.eventHandlers={onFailed:()=>{this._tones=null}},s.send(o,t),r+i),setTimeout(u.bind(this),e))}i=i?i<v.C.MIN_INTER_TONE_GAP?(b.debug(`"interToneGap" value is lower than the minimum allowed, setting it to ${v.C.MIN_INTER_TONE_GAP} milliseconds`),v.C.MIN_INTER_TONE_GAP):Math.abs(i):v.C.DEFAULT_INTER_TONE_GAP,o===s.DTMF_TRANSPORT.RFC2833?(o=this._getDTMFRTPSender())&&(e=o.toneBuffer+e,o.insertDTMF(e,r,i)):this._tones?this._tones+=e:(this._tones=e,u.call(this))}sendInfo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(b.debug("sendInfo()"),this._status!==w.STATUS_CONFIRMED&&this._status!==w.STATUS_WAITING_FOR_ACK&&this._status!==w.STATUS_1XX_RECEIVED)throw new a.InvalidStateError(this._status);new m(this).send(e,t,n)}mute(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{audio:!0,video:!1};b.debug("mute()");var t=!1,n=!1;!1===this._audioMuted&&e.audio&&(t=!0,this._audioMuted=!0,this._toggleMuteAudio(!0)),!1===this._videoMuted&&e.video&&(n=!0,this._videoMuted=!0,this._toggleMuteVideo(!0)),!0!==t&&!0!==n||this._onmute({audio:t,video:n})}unmute(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{audio:!0,video:!0};b.debug("unmute()");var t=!1,n=!1;!0===this._audioMuted&&e.audio&&(t=!0,(this._audioMuted=!1)===this._localHold)&&this._toggleMuteAudio(!1),!0===this._videoMuted&&e.video&&(n=!0,(this._videoMuted=!1)===this._localHold)&&this._toggleMuteVideo(!1),!0!==t&&!0!==n||this._onunmute({audio:t,video:n})}hold(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(b.debug("hold()"),this._status!==w.STATUS_WAITING_FOR_ACK&&this._status!==w.STATUS_CONFIRMED)return!1;if(!0===this._localHold)return!1;if(!this._isReadyToReOffer())return!1;this._localHold=!0,this._onhold("local");var n={succeeded:()=>{t&&t()},failed:()=>{this.terminate({cause:s.causes.WEBRTC_ERROR,status_code:500,reason_phrase:"Hold Failed"})}};return e.useUpdate?this._sendUpdate({sdpOffer:!0,eventHandlers:n,extraHeaders:e.extraHeaders}):this._sendReinvite({eventHandlers:n,extraHeaders:e.extraHeaders}),!0}unhold(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(b.debug("unhold()"),this._status!==w.STATUS_WAITING_FOR_ACK&&this._status!==w.STATUS_CONFIRMED)return!1;if(!1===this._localHold)return!1;if(!this._isReadyToReOffer())return!1;this._localHold=!1,this._onunhold("local");var n={succeeded:()=>{t&&t()},failed:()=>{this.terminate({cause:s.causes.WEBRTC_ERROR,status_code:500,reason_phrase:"Unhold Failed"})}};return e.useUpdate?this._sendUpdate({sdpOffer:!0,eventHandlers:n,extraHeaders:e.extraHeaders}):this._sendReinvite({eventHandlers:n,extraHeaders:e.extraHeaders}),!0}renegotiate(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;b.debug("renegotiate()");var n,r=e.rtcOfferConstraints||null;return!(this._status!==w.STATUS_WAITING_FOR_ACK&&this._status!==w.STATUS_CONFIRMED||!this._isReadyToReOffer()||(n={succeeded:()=>{t&&t()},failed:()=>{this.terminate({cause:s.causes.WEBRTC_ERROR,status_code:500,reason_phrase:"Media Renegotiation Failed"})}},this._setLocalMediaStatus(),e.useUpdate?this._sendUpdate({sdpOffer:!0,eventHandlers:n,rtcOfferConstraints:r,extraHeaders:e.extraHeaders}):this._sendReinvite({eventHandlers:n,rtcOfferConstraints:r,extraHeaders:e.extraHeaders}),0))}refer(e,t){b.debug("refer()");var n=e;if(this._status!==w.STATUS_WAITING_FOR_ACK&&this._status!==w.STATUS_CONFIRMED)return!1;if(!(e=this._ua.normalizeTarget(e)))throw new TypeError("Invalid target: "+n);n=new _(this),n.sendRefer(e,t);var r=n.id;return(this._referSubscribers[r]=n).on("requestFailed",()=>{delete this._referSubscribers[r]}),n.on("accepted",()=>{delete this._referSubscribers[r]}),n.on("failed",()=>{delete this._referSubscribers[r]}),n}sendRequest(e,t){return b.debug("sendRequest()"),this._dialog.sendRequest(e,t)}receiveRequest(e){if(b.debug("receiveRequest()"),e.method===s.CANCEL)this._status!==w.STATUS_WAITING_FOR_ANSWER&&this._status!==w.STATUS_ANSWERED||(this._status=w.STATUS_CANCELED,this._request.reply(487),this._failed("remote",e,s.causes.CANCELED));else switch(e.method){case s.ACK:if(this._status===w.STATUS_WAITING_FOR_ACK)if(this._status=w.STATUS_CONFIRMED,clearTimeout(this._timers.ackTimer),clearTimeout(this._timers.invite2xxTimer),this._late_sdp){if(!e.body){this.terminate({cause:s.causes.MISSING_SDP,status_code:400});break}var t={originator:"remote",type:"answer",sdp:e.body};b.debug('emit "sdp"'),this.emit("sdp",t);var n=new RTCSessionDescription({type:"answer",sdp:t.sdp});this._connectionPromiseQueue=this._connectionPromiseQueue.then(()=>this._connection.setRemoteDescription(n)).then(()=>{this._is_confirmed||this._confirmed("remote",e)}).catch(e=>{this.terminate({cause:s.causes.BAD_MEDIA_DESCRIPTION,status_code:488}),b.warn('emit "peerconnection:setremotedescriptionfailed" [error:%o]',e),this.emit("peerconnection:setremotedescriptionfailed",e)})}else this._is_confirmed||this._confirmed("remote",e);break;case s.BYE:this._status===w.STATUS_CONFIRMED||this._status===w.STATUS_WAITING_FOR_ACK?(e.reply(200),this._ended("remote",e,s.causes.BYE)):this._status===w.STATUS_INVITE_RECEIVED||this._status===w.STATUS_WAITING_FOR_ANSWER?(e.reply(200),this._request.reply(487,"BYE Received"),this._ended("remote",e,s.causes.BYE)):e.reply(403,"Wrong Status");break;case s.INVITE:this._status===w.STATUS_CONFIRMED?e.hasHeader("replaces")?this._receiveReplaces(e):this._receiveReinvite(e):e.reply(403,"Wrong Status");break;case s.INFO:this._status===w.STATUS_1XX_RECEIVED||this._status===w.STATUS_WAITING_FOR_ANSWER||this._status===w.STATUS_ANSWERED||this._status===w.STATUS_WAITING_FOR_ACK||this._status===w.STATUS_CONFIRMED?(t=e.hasHeader("Content-Type")?e.getHeader("Content-Type").toLowerCase():void 0)&&t.match(/^application\/dtmf-relay/i)?new v(this).init_incoming(e):void 0!==t?new m(this).init_incoming(e):e.reply(415):e.reply(403,"Wrong Status");break;case s.UPDATE:this._status===w.STATUS_CONFIRMED?this._receiveUpdate(e):e.reply(403,"Wrong Status");break;case s.REFER:this._status===w.STATUS_CONFIRMED?this._receiveRefer(e):e.reply(403,"Wrong Status");break;case s.NOTIFY:this._status===w.STATUS_CONFIRMED?this._receiveNotify(e):e.reply(403,"Wrong Status");break;default:e.reply(501)}}onTransportError(){b.warn("onTransportError()"),this._status!==w.STATUS_TERMINATED&&this.terminate({status_code:500,reason_phrase:s.causes.CONNECTION_ERROR,cause:s.causes.CONNECTION_ERROR})}onRequestTimeout(){b.warn("onRequestTimeout()"),this._status!==w.STATUS_TERMINATED&&this.terminate({status_code:408,reason_phrase:s.causes.REQUEST_TIMEOUT,cause:s.causes.REQUEST_TIMEOUT})}onDialogError(){b.warn("onDialogError()"),this._status!==w.STATUS_TERMINATED&&this.terminate({status_code:500,reason_phrase:s.causes.DIALOG_ERROR,cause:s.causes.DIALOG_ERROR})}newDTMF(e){b.debug("newDTMF()"),this.emit("newDTMF",e)}newInfo(e){b.debug("newInfo()"),this.emit("newInfo",e)}_isReadyToReOffer(){return this._rtcReady?this._dialog?!0!==this._dialog.uac_pending_reply&&!0!==this._dialog.uas_pending_reply||(b.debug("_isReadyToReOffer() | there is another INVITE/UPDATE transaction in progress"),!1):(b.debug("_isReadyToReOffer() | session not established yet"),!1):(b.debug("_isReadyToReOffer() | internal WebRTC status not ready"),!1)}_close(){if(b.debug("close()"),this._localMediaStream&&this._localMediaStreamLocallyGenerated&&(b.debug("close() | closing local MediaStream"),l.closeMediaStream(this._localMediaStream)),this._status!==w.STATUS_TERMINATED){if(this._status=w.STATUS_TERMINATED,this._connection)try{this._connection.close()}catch(e){b.warn("close() | error closing the RTCPeerConnection: %o",e)}for(var e in this._timers)Object.prototype.hasOwnProperty.call(this._timers,e)&&clearTimeout(this._timers[e]);for(var t in clearTimeout(this._sessionTimers.timer),this._dialog&&(this._dialog.terminate(),delete this._dialog),this._earlyDialogs)Object.prototype.hasOwnProperty.call(this._earlyDialogs,t)&&(this._earlyDialogs[t].terminate(),delete this._earlyDialogs[t]);for(var n in this._referSubscribers)Object.prototype.hasOwnProperty.call(this._referSubscribers,n)&&delete this._referSubscribers[n];this._ua.destroyRTCSession(this)}}_setInvite2xxTimer(e,t){var n=d.T1;function r(){this._status===w.STATUS_WAITING_FOR_ACK&&(e.reply(200,null,["Contact: "+this._contact],t),n<d.T2&&(n*=2)>d.T2&&(n=d.T2),this._timers.invite2xxTimer=setTimeout(r.bind(this),n))}this._timers.invite2xxTimer=setTimeout(r.bind(this),n)}_setACKTimer(){this._timers.ackTimer=setTimeout(()=>{this._status===w.STATUS_WAITING_FOR_ACK&&(b.debug("no ACK received, terminating the session"),clearTimeout(this._timers.invite2xxTimer),this.sendRequest(s.BYE),this._ended("remote",null,s.causes.NO_ACK))},d.TIMER_H)}_createRTCConnection(e,t){this._connection=new RTCPeerConnection(e,t),this._connection.addEventListener("iceconnectionstatechange",()=>{"failed"===this._connection.iceConnectionState&&this.terminate({cause:s.causes.RTP_TIMEOUT,status_code:408,reason_phrase:s.causes.RTP_TIMEOUT})}),b.debug('emit "peerconnection"'),this.emit("peerconnection",{peerconnection:this._connection})}_createLocalDescription(e,t){if(b.debug("createLocalDescription()"),"offer"!==e&&"answer"!==e)throw new Error(`createLocalDescription() | invalid type "${e}"`);var n=this._connection;return this._rtcReady=!1,Promise.resolve().then(()=>"offer"===e?n.createOffer(t).catch(e=>(b.warn('emit "peerconnection:createofferfailed" [error:%o]',e),this.emit("peerconnection:createofferfailed",e),Promise.reject(e))):n.createAnswer(t).catch(e=>(b.warn('emit "peerconnection:createanswerfailed" [error:%o]',e),this.emit("peerconnection:createanswerfailed",e),Promise.reject(e)))).then(e=>n.setLocalDescription(e).catch(e=>(this._rtcReady=!0,b.warn('emit "peerconnection:setlocaldescriptionfailed" [error:%o]',e),this.emit("peerconnection:setlocaldescriptionfailed",e),Promise.reject(e)))).then(()=>{var r=t&&t.iceRestart;return"complete"===n.iceGatheringState&&!r||"gathering"===n.iceGatheringState&&this._iceReady?(this._rtcReady=!0,r={originator:"local",type:e,sdp:n.localDescription.sdp},b.debug('emit "sdp"'),this.emit("sdp",r),Promise.resolve(r.sdp)):new Promise(t=>{var r,i,o=!1,s=(this._iceReady=!1,()=>{var s;o||(n.removeEventListener("icecandidate",r),n.removeEventListener("icegatheringstatechange",i),o=!0,this._rtcReady=!0,this._iceReady=!0,s={originator:"local",type:e,sdp:n.localDescription.sdp},b.debug('emit "sdp"'),this.emit("sdp",s),t(s.sdp))});n.addEventListener("icecandidate",r=e=>{e=e.candidate,e?this.emit("icecandidate",{candidate:e,ready:s}):s()}),n.addEventListener("icegatheringstatechange",i=()=>{"complete"===n.iceGatheringState&&s()})})})}_createDialog(e,t,n){var r="UAS"===t?e.to_tag:e.from_tag,i="UAS"===t?e.from_tag:e.to_tag,o=(r=e.call_id+r+i,this._earlyDialogs[r]);return n?!!o||((o=new f(this,e,t,f.C.STATUS_EARLY)).error?(b.debug(o.error),this._failed("remote",e,s.causes.INTERNAL_ERROR),!1):(this._earlyDialogs[r]=o,!0)):(this._from_tag=e.from_tag,this._to_tag=e.to_tag,o?(o.update(e,t),this._dialog=o,delete this._earlyDialogs[r],!0):(i=new f(this,e,t)).error?(b.debug(i.error),this._failed("remote",e,s.causes.INTERNAL_ERROR),!1):(this._dialog=i,!0))}_receiveReinvite(e){b.debug("receiveReinvite()");var t=e.hasHeader("Content-Type")?e.getHeader("Content-Type").toLowerCase():void 0,n={request:e,callback:void 0,reject:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(n){r=!0;var i=n.status_code||403,o=n.reason_phrase||"";n=l.cloneArray(n.extraHeaders);if(t._status!==w.STATUS_CONFIRMED)return!1;if(i<300||700<=i)throw new TypeError("Invalid status_code: "+i);e.reply(i,o,n)}(n)}.bind(this)},r=!1;function i(t){var r=["Contact: "+this._contact];this._handleSessionTimersInIncomingRequest(e,r),this._late_sdp&&(t=this._mangleOffer(t)),e.reply(200,null,r,t,()=>{this._status=w.STATUS_WAITING_FOR_ACK,this._setInvite2xxTimer(e,t),this._setACKTimer()}),"function"==typeof n.callback&&n.callback()}this.emit("reinvite",n),r||(this._late_sdp=!1,e.body?"application/sdp"!==t?(b.debug("invalid Content-Type"),e.reply(415)):this._processInDialogSdpOffer(e).then(e=>{this._status!==w.STATUS_TERMINATED&&i.call(this,e)}).catch(e=>{b.warn(e)}):(this._late_sdp=!0,this._remoteHold&&(this._remoteHold=!1,this._onunhold("remote")),this._connectionPromiseQueue=this._connectionPromiseQueue.then(()=>this._createLocalDescription("offer",this._rtcOfferConstraints)).then(e=>{i.call(this,e)}).catch(()=>{e.reply(500)})))}_receiveUpdate(e){b.debug("receiveUpdate()");var t=e.hasHeader("Content-Type")?e.getHeader("Content-Type").toLowerCase():void 0,n={request:e,callback:void 0,reject:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(n){r=!0;var i=n.status_code||403,o=n.reason_phrase||"";n=l.cloneArray(n.extraHeaders);if(t._status!==w.STATUS_CONFIRMED)return!1;if(i<300||700<=i)throw new TypeError("Invalid status_code: "+i);e.reply(i,o,n)}(n)}.bind(this)},r=!1;function i(t){var r=["Contact: "+this._contact];this._handleSessionTimersInIncomingRequest(e,r),e.reply(200,null,r,t),"function"==typeof n.callback&&n.callback()}this.emit("update",n),r||(e.body?"application/sdp"!==t?(b.debug("invalid Content-Type"),e.reply(415)):this._processInDialogSdpOffer(e).then(e=>{this._status!==w.STATUS_TERMINATED&&i.call(this,e)}).catch(e=>{b.warn(e)}):i.call(this,null))}_processInDialogSdpOffer(e){b.debug("_processInDialogSdpOffer()");var t,n,r=e.parseSDP(),i=!1,o=u(r.media);try{for(o.s();!(n=o.n()).done;)if(t=n.value,-1!==T.indexOf(t.type)){var s=t.direction||r.direction||"sendrecv";if("sendonly"!==s&&"inactive"!==s){i=!1;break}i=!0}}catch(l){o.e(l)}finally{o.f()}var a={originator:"remote",type:"offer",sdp:e.body};b.debug('emit "sdp"'),this.emit("sdp",a);var c=new RTCSessionDescription({type:"offer",sdp:a.sdp});return this._connectionPromiseQueue=this._connectionPromiseQueue.then(()=>{if(this._status===w.STATUS_TERMINATED)throw new Error("terminated");return this._connection.setRemoteDescription(c).catch(t=>{throw e.reply(488),b.warn('emit "peerconnection:setremotedescriptionfailed" [error:%o]',t),this.emit("peerconnection:setremotedescriptionfailed",t),t})}).then(()=>{if(this._status===w.STATUS_TERMINATED)throw new Error("terminated");!0===this._remoteHold&&!1===i?(this._remoteHold=!1,this._onunhold("remote")):!1===this._remoteHold&&!0===i&&(this._remoteHold=!0,this._onhold("remote"))}).then(()=>{if(this._status===w.STATUS_TERMINATED)throw new Error("terminated");return this._createLocalDescription("answer",this._rtcAnswerConstraints).catch(t=>{throw e.reply(500),b.warn('emit "peerconnection:createtelocaldescriptionfailed" [error:%o]',t),t})}).catch(e=>{b.warn("_processInDialogSdpOffer() failed [error: %o]",e)}),this._connectionPromiseQueue}_receiveRefer(t){if(b.debug("receiveRefer()"),t.refer_to)if(t.refer_to.uri.scheme!==s.SIP)b.debug("Refer-To header field points to a non-SIP URI scheme"),t.reply(416);else{t.reply(202);var n=new g(this,t.cseq);b.debug('emit "refer"'),this.emit("refer",{request:t,accept:(r,i)=>{(function(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r="function"==typeof r?r:null,this._status!==w.STATUS_WAITING_FOR_ACK&&this._status!==w.STATUS_CONFIRMED)return!1;var o,s=new e(this._ua);s.on("progress",e=>{var t=e.response;n.notify(t.status_code,t.reason_phrase)}),s.on("accepted",e=>{var t=e.response;n.notify(t.status_code,t.reason_phrase)}),s.on("_failed",e=>{var t=e.message,r=e.cause;t?n.notify(t.status_code,t.reason_phrase):n.notify(487,r)}),t.refer_to.uri.hasHeader("replaces")&&(o=decodeURIComponent(t.refer_to.uri.getHeader("replaces")),i.extraHeaders=l.cloneArray(i.extraHeaders),i.extraHeaders.push("Replaces: "+o)),s.connect(t.refer_to.uri.toAor(),i,r)}).call(this,r,i)},reject:()=>{(function(){n.notify(603)}).call(this)}})}else b.debug("no Refer-To header field present in REFER"),t.reply(400)}_receiveNotify(e){switch(b.debug("receiveNotify()"),e.event||e.reply(400),e.event.event){case"refer":var t,n;if(e.event.params&&e.event.params.id)t=e.event.params.id,n=this._referSubscribers[t];else{if(1!==Object.keys(this._referSubscribers).length)return void e.reply(400,"Missing event id parameter");n=this._referSubscribers[Object.keys(this._referSubscribers)[0]]}if(!n)return void e.reply(481,"Subscription does not exist");n.receiveNotify(e),e.reply(200);break;default:e.reply(489)}}_receiveReplaces(t){b.debug("receiveReplaces()"),this.emit("replaces",{request:t,accept:n=>{(function(n){if(this._status!==w.STATUS_WAITING_FOR_ACK&&this._status!==w.STATUS_CONFIRMED)return!1;var r=new e(this._ua);r.on("confirmed",()=>{this.terminate()}),r.init_incoming(t,n)}).call(this,n)},reject:()=>{(function(){b.debug("Replaced INVITE rejected by the user"),t.reply(486)}).call(this)}})}_sendInitialRequest(e,t,n){var r=new p(this._ua,this._request,{onRequestTimeout:()=>{this.onRequestTimeout()},onTransportError:()=>{this.onTransportError()},onAuthenticated:e=>{this._request=e},onReceiveResponse:e=>{this._receiveInviteResponse(e)}});Promise.resolve().then(()=>n||(e.audio||e.video?(this._localMediaStreamLocallyGenerated=!0,navigator.mediaDevices.getUserMedia(e).catch(e=>{if(this._status===w.STATUS_TERMINATED)throw new Error("terminated");throw this._failed("local",null,s.causes.USER_DENIED_MEDIA_ACCESS),b.warn('emit "getusermediafailed" [error:%o]',e),this.emit("getusermediafailed",e),e})):void 0)).then(e=>{if(this._status===w.STATUS_TERMINATED)throw new Error("terminated");return(this._localMediaStream=e)&&e.getTracks().forEach(t=>{this._connection.addTrack(t,e)}),this._connecting(this._request),this._createLocalDescription("offer",t).catch(e=>{throw this._failed("local",null,s.causes.WEBRTC_ERROR),e})}).then(e=>{if(this._is_canceled||this._status===w.STATUS_TERMINATED)throw new Error("terminated");this._request.body=e,this._status=w.STATUS_INVITE_SENT,b.debug('emit "sending" [request:%o]',this._request),this.emit("sending",{request:this._request}),r.send()}).catch(e=>{this._status!==w.STATUS_TERMINATED&&b.warn(e)})}_getDTMFRTPSender(){var e=this._connection.getSenders().find(e=>e.track&&"audio"===e.track.kind);if(e&&e.dtmf)return e.dtmf;b.warn("sendDTMF() | no local audio track to send DTMF with")}_receiveInviteResponse(e){var t;if(b.debug("receiveInviteResponse()"),this._dialog&&200<=e.status_code&&e.status_code<=299)return this._dialog.id.call_id===e.call_id&&this._dialog.id.local_tag===e.from_tag&&this._dialog.id.remote_tag===e.to_tag?void this.sendRequest(s.ACK):void 0!==(t=new f(this,e,"UAC")).error?void b.debug(t.error):(this.sendRequest(s.ACK),void this.sendRequest(s.BYE));if(this._is_canceled)100<=e.status_code&&e.status_code<200?this._request.cancel(this._cancel_reason):200<=e.status_code&&e.status_code<299&&this._acceptAndTerminate(e);else if(this._status===w.STATUS_INVITE_SENT||this._status===w.STATUS_1XX_RECEIVED)switch(!0){case/^100$/.test(e.status_code):this._status=w.STATUS_1XX_RECEIVED;break;case/^1[0-9]{2}$/.test(e.status_code):if(!e.to_tag){b.debug("1xx response received without to tag");break}if(e.hasHeader("contact")&&!this._createDialog(e,"UAC",!0))break;if(this._status=w.STATUS_1XX_RECEIVED,!e.body){this._progress("remote",e);break}var n={originator:"remote",type:"answer",sdp:e.body};b.debug('emit "sdp"'),this.emit("sdp",n);var r=new RTCSessionDescription({type:"answer",sdp:n.sdp});this._connectionPromiseQueue=this._connectionPromiseQueue.then(()=>this._connection.setRemoteDescription(r)).then(()=>this._progress("remote",e)).catch(e=>{b.warn('emit "peerconnection:setremotedescriptionfailed" [error:%o]',e),this.emit("peerconnection:setremotedescriptionfailed",e)});break;case/^2[0-9]{2}$/.test(e.status_code):if(this._status=w.STATUS_CONFIRMED,!e.body){this._acceptAndTerminate(e,400,s.causes.MISSING_SDP),this._failed("remote",e,s.causes.BAD_MEDIA_DESCRIPTION);break}if(!this._createDialog(e,"UAC"))break;n={originator:"remote",type:"answer",sdp:e.body},b.debug('emit "sdp"'),this.emit("sdp",n);var i=new RTCSessionDescription({type:"answer",sdp:n.sdp});this._connectionPromiseQueue=this._connectionPromiseQueue.then(()=>{if("stable"===this._connection.signalingState)return this._connection.createOffer(this._rtcOfferConstraints).then(e=>this._connection.setLocalDescription(e)).catch(t=>{this._acceptAndTerminate(e,500,t.toString()),this._failed("local",e,s.causes.WEBRTC_ERROR)})}).then(()=>{this._connection.setRemoteDescription(i).then(()=>{this._handleSessionTimersInIncomingResponse(e),this._accepted("remote",e),this.sendRequest(s.ACK),this._confirmed("local",null)}).catch(t=>{this._acceptAndTerminate(e,488,"Not Acceptable Here"),this._failed("remote",e,s.causes.BAD_MEDIA_DESCRIPTION),b.warn('emit "peerconnection:setremotedescriptionfailed" [error:%o]',t),this.emit("peerconnection:setremotedescriptionfailed",t)})});break;default:n=l.sipErrorCause(e.status_code),this._failed("remote",e,n)}}_sendReinvite(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};b.debug("sendReinvite()");var t=l.cloneArray(e.extraHeaders),n=l.cloneObject(e.eventHandlers),r=e.rtcOfferConstraints||this._rtcOfferConstraints||null,i=!1;function o(e){n.failed&&n.failed(e)}t.push("Contact: "+this._contact),t.push("Content-Type: application/sdp"),this._sessionTimers.running&&t.push(`Session-Expires: ${this._sessionTimers.currentExpires};refresher=`+(this._sessionTimers.refresher?"uac":"uas")),this._connectionPromiseQueue=this._connectionPromiseQueue.then(()=>this._createLocalDescription("offer",r)).then(e=>{var r={originator:"local",type:"offer",sdp:e=this._mangleOffer(e)};b.debug('emit "sdp"'),this.emit("sdp",r),this.sendRequest(s.INVITE,{extraHeaders:t,body:e,eventHandlers:{onSuccessResponse:e=>{(function(e){if(this._status!==w.STATUS_TERMINATED&&(this.sendRequest(s.ACK),!i))if(this._handleSessionTimersInIncomingResponse(e),e.body)if(e.hasHeader("Content-Type")&&"application/sdp"===e.getHeader("Content-Type").toLowerCase()){var t={originator:"remote",type:"answer",sdp:e.body};b.debug('emit "sdp"'),this.emit("sdp",t);var r=new RTCSessionDescription({type:"answer",sdp:t.sdp});this._connectionPromiseQueue=this._connectionPromiseQueue.then(()=>this._connection.setRemoteDescription(r)).then(()=>{n.succeeded&&n.succeeded(e)}).catch(e=>{o.call(this),b.warn('emit "peerconnection:setremotedescriptionfailed" [error:%o]',e),this.emit("peerconnection:setremotedescriptionfailed",e)})}else o.call(this);else o.call(this)}).call(this,e),i=!0},onErrorResponse:e=>{o.call(this,e)},onTransportError:()=>{this.onTransportError()},onRequestTimeout:()=>{this.onRequestTimeout()},onDialogError:()=>{this.onDialogError()}}})}).catch(()=>{o()})}_sendUpdate(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};b.debug("sendUpdate()");var t=l.cloneArray(e.extraHeaders),n=l.cloneObject(e.eventHandlers),r=e.rtcOfferConstraints||this._rtcOfferConstraints||null,i=e.sdpOffer||!1,o=!1;function a(e){if(this._status!==w.STATUS_TERMINATED&&!o)if(this._handleSessionTimersInIncomingResponse(e),i)if(e.body)if(e.hasHeader("Content-Type")&&"application/sdp"===e.getHeader("Content-Type").toLowerCase()){var t={originator:"remote",type:"answer",sdp:e.body};b.debug('emit "sdp"'),this.emit("sdp",t);var r=new RTCSessionDescription({type:"answer",sdp:t.sdp});this._connectionPromiseQueue=this._connectionPromiseQueue.then(()=>this._connection.setRemoteDescription(r)).then(()=>{n.succeeded&&n.succeeded(e)}).catch(e=>{u.call(this),b.warn('emit "peerconnection:setremotedescriptionfailed" [error:%o]',e),this.emit("peerconnection:setremotedescriptionfailed",e)})}else u.call(this);else u.call(this);else n.succeeded&&n.succeeded(e)}function u(e){n.failed&&n.failed(e)}t.push("Contact: "+this._contact),this._sessionTimers.running&&t.push(`Session-Expires: ${this._sessionTimers.currentExpires};refresher=`+(this._sessionTimers.refresher?"uac":"uas")),i?(t.push("Content-Type: application/sdp"),this._connectionPromiseQueue=this._connectionPromiseQueue.then(()=>this._createLocalDescription("offer",r)).then(e=>{var n={originator:"local",type:"offer",sdp:e=this._mangleOffer(e)};b.debug('emit "sdp"'),this.emit("sdp",n),this.sendRequest(s.UPDATE,{extraHeaders:t,body:e,eventHandlers:{onSuccessResponse:e=>{a.call(this,e),o=!0},onErrorResponse:e=>{u.call(this,e)},onTransportError:()=>{this.onTransportError()},onRequestTimeout:()=>{this.onRequestTimeout()},onDialogError:()=>{this.onDialogError()}}})}).catch(()=>{u.call(this)})):this.sendRequest(s.UPDATE,{extraHeaders:t,eventHandlers:{onSuccessResponse:e=>{a.call(this,e)},onErrorResponse:e=>{u.call(this,e)},onTransportError:()=>{this.onTransportError()},onRequestTimeout:()=>{this.onRequestTimeout()},onDialogError:()=>{this.onDialogError()}}})}_acceptAndTerminate(e,t,n){b.debug("acceptAndTerminate()");var r=[];t&&(n=n||s.REASON_PHRASE[t]||"",r.push(`Reason: SIP ;cause=${t}; text="${n}"`)),(this._dialog||this._createDialog(e,"UAC"))&&(this.sendRequest(s.ACK),this.sendRequest(s.BYE,{extraHeaders:r})),this._status=w.STATUS_TERMINATED}_mangleOffer(e){if(!this._localHold&&!this._remoteHold)return e;if(e=i.parse(e),this._localHold&&!this._remoteHold){b.debug("mangleOffer() | me on hold, mangling offer");var t,n=u(e.media);try{for(n.s();!(t=n.n()).done;){var r=t.value;-1!==T.indexOf(r.type)&&(r.direction&&"sendrecv"!==r.direction?"recvonly"===r.direction&&(r.direction="inactive"):r.direction="sendonly")}}catch(h){n.e(h)}finally{n.f()}}else if(this._localHold&&this._remoteHold){b.debug("mangleOffer() | both on hold, mangling offer");var o,s=u(e.media);try{for(s.s();!(o=s.n()).done;){var a=o.value;-1!==T.indexOf(a.type)&&(a.direction="inactive")}}catch(h){s.e(h)}finally{s.f()}}else if(this._remoteHold){b.debug("mangleOffer() | remote on hold, mangling offer");var c,l=u(e.media);try{for(l.s();!(c=l.n()).done;){var d=c.value;-1!==T.indexOf(d.type)&&(d.direction&&"sendrecv"!==d.direction?"recvonly"===d.direction&&(d.direction="inactive"):d.direction="recvonly")}}catch(h){l.e(h)}finally{l.f()}}return i.write(e)}_setLocalMediaStatus(){var e=!0,t=!0;(this._localHold||this._remoteHold)&&(e=!1,t=!1),this._audioMuted&&(e=!1),this._videoMuted&&(t=!1),this._toggleMuteAudio(!e),this._toggleMuteVideo(!t)}_handleSessionTimersInIncomingRequest(e,t){var n;this._sessionTimers.enabled&&(n=e.session_expires&&e.session_expires>=s.MIN_SESSION_EXPIRES?(this._sessionTimers.currentExpires=e.session_expires,e.session_expires_refresher||"uas"):(this._sessionTimers.currentExpires=this._sessionTimers.defaultExpires,"uas"),t.push(`Session-Expires: ${this._sessionTimers.currentExpires};refresher=`+n),this._sessionTimers.refresher="uas"===n,this._runSessionTimer())}_handleSessionTimersInIncomingResponse(e){var t;this._sessionTimers.enabled&&(t=e.session_expires&&e.session_expires>=s.MIN_SESSION_EXPIRES?(this._sessionTimers.currentExpires=e.session_expires,e.session_expires_refresher||"uac"):(this._sessionTimers.currentExpires=this._sessionTimers.defaultExpires,"uac"),this._sessionTimers.refresher="uac"===t,this._runSessionTimer())}_runSessionTimer(){var e=this._sessionTimers.currentExpires;this._sessionTimers.running=!0,clearTimeout(this._sessionTimers.timer),this._sessionTimers.refresher?this._sessionTimers.timer=setTimeout(()=>{this._status!==w.STATUS_TERMINATED&&this._isReadyToReOffer()&&(b.debug("runSessionTimer() | sending session refresh request"),this._sessionTimers.refreshMethod===s.UPDATE?this._sendUpdate():this._sendReinvite())},500*e):this._sessionTimers.timer=setTimeout(()=>{this._status!==w.STATUS_TERMINATED&&(b.warn("runSessionTimer() | timer expired, terminating the session"),this.terminate({cause:s.causes.REQUEST_TIMEOUT,status_code:408,reason_phrase:"Session Timer Expired"}))},1100*e)}_toggleMuteAudio(e){var t,n,r=u(this._connection.getSenders().filter(e=>e.track&&"audio"===e.track.kind));try{for(r.s();!(n=r.n()).done;)t=n.value,t.track.enabled=!e}catch(i){r.e(i)}finally{r.f()}}_toggleMuteVideo(e){var t,n,r=u(this._connection.getSenders().filter(e=>e.track&&"video"===e.track.kind));try{for(r.s();!(n=r.n()).done;)t=n.value,t.track.enabled=!e}catch(i){r.e(i)}finally{r.f()}}_newRTCSession(e,t){b.debug("newRTCSession()"),this._ua.newRTCSession(this,{originator:e,session:this,request:t})}_connecting(e){b.debug("session connecting"),b.debug('emit "connecting"'),this.emit("connecting",{request:e})}_progress(e,t){b.debug("session progress"),b.debug('emit "progress"'),this.emit("progress",{originator:e,response:t||null})}_accepted(e,t){b.debug("session accepted"),this._start_time=new Date,b.debug('emit "accepted"'),this.emit("accepted",{originator:e,response:t||null})}_confirmed(e,t){b.debug("session confirmed"),this._is_confirmed=!0,b.debug('emit "confirmed"'),this.emit("confirmed",{originator:e,ack:t||null})}_ended(e,t,n){b.debug("session ended"),this._end_time=new Date,this._close(),b.debug('emit "ended"'),this.emit("ended",{originator:e,message:t||null,cause:n})}_failed(e,t,n){b.debug("session failed"),b.debug('emit "_failed"'),this.emit("_failed",{originator:e,message:t||null,cause:n}),this._close(),b.debug('emit "failed"'),this.emit("failed",{originator:e,message:t||null,cause:n})}_onhold(e){b.debug("session onhold"),this._setLocalMediaStatus(),b.debug('emit "hold"'),this.emit("hold",{originator:e})}_onunhold(e){b.debug("session onunhold"),this._setLocalMediaStatus(),b.debug('emit "unhold"'),this.emit("unhold",{originator:e})}_onmute(e){var t=e.audio,n=e.video;b.debug("session onmute"),this._setLocalMediaStatus(),b.debug('emit "muted"'),this.emit("muted",{audio:t,video:n})}_onunmute(e){var t=e.audio,n=e.video;b.debug("session onunmute"),this._setLocalMediaStatus(),b.debug('emit "unmuted"'),this.emit("unmuted",{audio:t,video:n})}}},2608:function(e,t,n){var r=n(9032).EventEmitter,i=n(5409),o=n(9896),s=n(8239),a=n(7196),u=new i("RTCSession:DTMF"),c={MIN_DURATION:70,MAX_DURATION:6e3,DEFAULT_DURATION:100,MIN_INTER_TONE_GAP:50,DEFAULT_INTER_TONE_GAP:500};e.exports=class extends r{constructor(e){super(),this._session=e,this._direction=null,this._tone=null,this._duration=null,this._request=null}get tone(){return this._tone}get duration(){return this._duration}send(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===e)throw new TypeError("Not enough arguments");if(this._direction="outgoing",this._session.status!==this._session.C.STATUS_CONFIRMED&&this._session.status!==this._session.C.STATUS_WAITING_FOR_ACK)throw new s.InvalidStateError(this._session.status);var n=a.cloneArray(t.extraHeaders);if(this.eventHandlers=a.cloneObject(t.eventHandlers),"string"==typeof e)e=e.toUpperCase();else{if("number"!=typeof e)throw new TypeError("Invalid tone: "+e);e=e.toString()}if(!e.match(/^[0-9A-DR#*]$/))throw new TypeError("Invalid tone: "+e);this._tone=e,this._duration=t.duration,n.push("Content-Type: application/dtmf-relay"),e=`Signal=${this._tone}\r\n`,e+="Duration="+this._duration,this._session.newDTMF({originator:"local",dtmf:this,request:this._request}),this._session.sendRequest(o.INFO,{extraHeaders:n,eventHandlers:{onSuccessResponse:e=>{this.emit("succeeded",{originator:"remote",response:e})},onErrorResponse:e=>{this.eventHandlers.onFailed&&this.eventHandlers.onFailed(),this.emit("failed",{originator:"remote",response:e})},onRequestTimeout:()=>{this._session.onRequestTimeout()},onTransportError:()=>{this._session.onTransportError()},onDialogError:()=>{this._session.onDialogError()}},body:e})}init_incoming(e){var t,n=/^(Signal\s*?=\s*?)([0-9A-D#*]{1})(\s)?.*/,r=/^(Duration\s?=\s?)([0-9]{1,4})(\s)?.*/;this._direction="incoming",(this._request=e).reply(200),e.body&&(1<=(t=e.body.split("\n")).length&&n.test(t[0])&&(this._tone=t[0].replace(n,"$2")),2<=t.length)&&r.test(t[1])&&(this._duration=parseInt(t[1].replace(r,"$2"),10)),this._duration||(this._duration=c.DEFAULT_DURATION),this._tone?this._session.newDTMF({originator:"remote",dtmf:this,request:e}):u.debug("invalid INFO DTMF received, discarded")}},e.exports.C=c},3211:function(e,t,n){var r=n(9032).EventEmitter,i=n(9896),o=n(8239),s=n(7196);e.exports=class extends r{constructor(e){super(),this._session=e,this._direction=null,this._contentType=null,this._body=null}get contentType(){return this._contentType}get body(){return this._body}send(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this._direction="outgoing",void 0===e)throw new TypeError("Not enough arguments");if(this._session.status!==this._session.C.STATUS_CONFIRMED&&this._session.status!==this._session.C.STATUS_WAITING_FOR_ACK)throw new o.InvalidStateError(this._session.status);this._contentType=e,this._body=t,n=s.cloneArray(n.extraHeaders),n.push("Content-Type: "+e),this._session.newInfo({originator:"local",info:this,request:this.request}),this._session.sendRequest(i.INFO,{extraHeaders:n,eventHandlers:{onSuccessResponse:e=>{this.emit("succeeded",{originator:"remote",response:e})},onErrorResponse:e=>{this.emit("failed",{originator:"remote",response:e})},onTransportError:()=>{this._session.onTransportError()},onRequestTimeout:()=>{this._session.onRequestTimeout()},onDialogError:()=>{this._session.onDialogError()}},body:t})}init_incoming(e){this._direction="incoming",(this.request=e).reply(200),this._contentType=e.hasHeader("Content-Type")?e.getHeader("Content-Type").toLowerCase():void 0,this._body=e.body,this._session.newInfo({originator:"remote",info:this,request:e})}}},1087:function(e,t,n){var r=n(5409),i=n(9896),o=new r("RTCSession:ReferNotifier"),s={event_type:"refer",body_type:"message/sipfrag;version=2.0",expires:300};e.exports=class{constructor(e,t,n){this._session=e,this._id=t,this._expires=n||s.expires,this._active=!0,this.notify(100)}notify(e,t){var n;(o.debug("notify()"),!1!==this._active)&&(t=t||i.REASON_PHRASE[e]||"",n=200<=e?"terminated;reason=noresource":"active;expires="+this._expires,this._session.sendRequest(i.NOTIFY,{extraHeaders:[`Event: ${s.event_type};id=`+this._id,"Subscription-State: "+n,"Content-Type: "+s.body_type],body:`SIP/2.0 ${e} `+t,eventHandlers:{onErrorResponse(){this._active=!1}}}))}}},9535:function(e,t,n){var r=n(9032).EventEmitter,i=n(5409),o=n(9896),s=n(9656),a=n(7196),u=new i("RTCSession:ReferSubscriber");e.exports=class extends r{constructor(e){super(),this._id=null,this._session=e}get id(){return this._id}sendRefer(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u.debug("sendRefer()");var n,r=a.cloneArray(t.extraHeaders),i=a.cloneObject(t.eventHandlers);for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&this.on(n,i[n]);var s=null;t.replaces&&(s=t.replaces._request.call_id,s=(s+=";to-tag="+t.replaces._to_tag)+";from-tag="+t.replaces._from_tag,s=encodeURIComponent(s)),t=`Refer-To: <${e}${s?"?Replaces="+s:""}>`,r.push(t),r.some(e=>e.toLowerCase().startsWith("referred-by:"))||(e=`Referred-By: <${this._session._ua._configuration.uri._scheme}:${this._session._ua._configuration.uri._user}@${this._session._ua._configuration.uri._host}>`,r.push(e)),r.push("Contact: "+this._session.contact),t=this._session.sendRequest(o.REFER,{extraHeaders:r,eventHandlers:{onSuccessResponse:e=>{this._requestSucceeded(e)},onErrorResponse:e=>{this._requestFailed(e,o.causes.REJECTED)},onTransportError:()=>{this._requestFailed(null,o.causes.CONNECTION_ERROR)},onRequestTimeout:()=>{this._requestFailed(null,o.causes.REQUEST_TIMEOUT)},onDialogError:()=>{this._requestFailed(null,o.causes.DIALOG_ERROR)}}}),this._id=t.cseq}receiveNotify(e){if(u.debug("receiveNotify()"),e.body){var t=s.parse(e.body.trim().split("\r\n",1)[0],"Status_Line");if(-1===t)u.debug(`receiveNotify() | error parsing NOTIFY body: "${e.body}"`);else switch(!0){case/^100$/.test(t.status_code):this.emit("trying",{request:e,status_line:t});break;case/^1[0-9]{2}$/.test(t.status_code):this.emit("progress",{request:e,status_line:t});break;case/^2[0-9]{2}$/.test(t.status_code):this.emit("accepted",{request:e,status_line:t});break;default:this.emit("failed",{request:e,status_line:t})}}}_requestSucceeded(e){u.debug("REFER succeeded"),u.debug('emit "requestSucceeded"'),this.emit("requestSucceeded",{response:e})}_requestFailed(e,t){u.debug("REFER failed"),u.debug('emit "requestFailed"'),this.emit("requestFailed",{response:e||null,cause:t})}}},145:function(e,t,n){var r=n(3422),i=n(7196),o=n(9896),s=n(2602),a=n(5117),u=new r("Registrator");e.exports=class{constructor(e,t){this._reg_id=1,this._ua=e,this._transport=t,this._registrar=e.configuration.registrar_server,this._expires=e.configuration.register_expires,this._call_id=i.createRandomToken(22),this._cseq=0,this._to_uri=e.configuration.uri,this._registrationTimer=null,this._registering=!1,this._registered=!1,this._contact=this._ua.contact.toString(),this._contact+=";+sip.ice",this._extraHeaders=[],this._extraContactParams="",this._sipInstance=`"<urn:uuid:${this._ua.configuration.instance_id}>"`,this._contact+=";reg-id="+this._reg_id,this._contact+=";+sip.instance="+this._sipInstance}get registered(){return this._registered}setExtraHeaders(e){Array.isArray(e)||(e=[]),this._extraHeaders=e.slice()}setExtraContactParams(e){for(var t in e instanceof Object||(e={}),this._extraContactParams="",e){var n;Object.prototype.hasOwnProperty.call(e,t)&&(n=e[t],this._extraContactParams+=";"+t,n)&&(this._extraContactParams+="="+n)}}register(){var e;this._registering?u.debug("Register request in progress..."):((e=this._extraHeaders.slice()).push(`Contact: ${this._contact};expires=`+this._expires+this._extraContactParams),e.push("Expires: "+this._expires),e=new s.OutgoingRequest(o.REGISTER,this._registrar,this._ua,{to_uri:this._to_uri,call_id:this._call_id,cseq:this._cseq+=1},e),e=new a(this._ua,e,{onRequestTimeout:()=>{this._registrationFailure(null,o.causes.REQUEST_TIMEOUT)},onTransportError:()=>{this._registrationFailure(null,o.causes.CONNECTION_ERROR)},onAuthenticated:()=>{this._cseq+=1},onReceiveResponse:e=>{if(e.cseq===this._cseq)switch(null!==this._registrationTimer&&(clearTimeout(this._registrationTimer),this._registrationTimer=null),!0){case/^1[0-9]{2}$/.test(e.status_code):break;case/^2[0-9]{2}$/.test(e.status_code):if(this._registering=!1,!e.hasHeader("Contact")){u.debug("no Contact header in response to REGISTER, response ignored");break}var t=e.headers.Contact.reduce((e,t)=>e.concat(t.parsed),[]),n=t.find(e=>this._sipInstance===e.getParam("+sip.instance")&&this._reg_id===parseInt(e.getParam("reg-id")));if(!(n=n||t.find(e=>e.uri.user===this._ua.contact.uri.user))){u.debug("no Contact header pointing to us, response ignored");break}var r=n.getParam("expires");r=(r=!r&&e.hasHeader("expires")?e.getHeader("expires"):r)||this._expires,t=64<(r=(r=Number(r))<10?10:r)?1e3*r/2+Math.floor(1e3*(r/2-32)*Math.random()):1e3*r-5e3,this._registrationTimer=setTimeout(()=>{this._registrationTimer=null,0===this._ua.listeners("registrationExpiring").length?this.register():this._ua.emit("registrationExpiring")},t),n.hasParam("temp-gruu")&&(this._ua.contact.temp_gruu=n.getParam("temp-gruu").replace(/"/g,"")),n.hasParam("pub-gruu")&&(this._ua.contact.pub_gruu=n.getParam("pub-gruu").replace(/"/g,"")),this._registered||(this._registered=!0,this._ua.registered({response:e}));break;case/^423$/.test(e.status_code):e.hasHeader("min-expires")?(this._expires=Number(e.getHeader("min-expires")),this._expires<10&&(this._expires=10),this.register()):(u.debug("423 response received for REGISTER without Min-Expires"),this._registrationFailure(e,o.causes.SIP_FAILURE_CODE));break;default:t=i.sipErrorCause(e.status_code),this._registrationFailure(e,t)}}}),this._registering=!0,e.send())}unregister(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._registered?(this._registered=!1,null!==this._registrationTimer&&(clearTimeout(this._registrationTimer),this._registrationTimer=null),e=this._extraHeaders.slice(),t.all?e.push("Contact: *"+this._extraContactParams):e.push(`Contact: ${this._contact};expires=0`+this._extraContactParams),e.push("Expires: 0"),t=new s.OutgoingRequest(o.REGISTER,this._registrar,this._ua,{to_uri:this._to_uri,call_id:this._call_id,cseq:this._cseq+=1},e),new a(this._ua,t,{onRequestTimeout:()=>{this._unregistered(null,o.causes.REQUEST_TIMEOUT)},onTransportError:()=>{this._unregistered(null,o.causes.CONNECTION_ERROR)},onAuthenticated:()=>{this._cseq+=1},onReceiveResponse:e=>{switch(!0){case/^1[0-9]{2}$/.test(e.status_code):break;case/^2[0-9]{2}$/.test(e.status_code):this._unregistered(e);break;default:var t=i.sipErrorCause(e.status_code);this._unregistered(e,t)}}}).send()):u.debug("already unregistered")}close(){this._registered&&this.unregister()}onTransportClosed(){this._registering=!1,null!==this._registrationTimer&&(clearTimeout(this._registrationTimer),this._registrationTimer=null),this._registered&&(this._registered=!1,this._ua.unregistered({}))}_registrationFailure(e,t){this._registering=!1,this._ua.registrationFailed({response:e||null,cause:t}),this._registered&&(this._registered=!1,this._ua.unregistered({response:e||null,cause:t}))}_unregistered(e,t){this._registering=!1,this._registered=!1,this._ua.unregistered({response:e||null,cause:t||null})}}},5117:function(e,t,n){var r=n(3422),i=n(9896),o=n(3889),s=n(1164),a=new r("RequestSender"),u={onRequestTimeout:()=>{},onTransportError:()=>{},onReceiveResponse:()=>{},onAuthenticated:()=>{}};e.exports=class{constructor(e,t,n){for(var r in this._ua=e,this._eventHandlers=n,this._method=t.method,this._request=t,this._auth=null,this._challenged=!1,this._staled=!1,u)!Object.prototype.hasOwnProperty.call(u,r)||this._eventHandlers[r]||(this._eventHandlers[r]=u[r]);e.status!==e.C.STATUS_USER_CLOSED||this._method===i.BYE&&this._method===i.ACK||this._eventHandlers.onTransportError()}send(){var e={onRequestTimeout:()=>{this._eventHandlers.onRequestTimeout()},onTransportError:()=>{this._eventHandlers.onTransportError()},onReceiveResponse:e=>{this._receiveResponse(e)}};switch(this._method){case"INVITE":this.clientTransaction=new s.InviteClientTransaction(this._ua,this._ua.transport,this._request,e);break;case"ACK":this.clientTransaction=new s.AckClientTransaction(this._ua,this._ua.transport,this._request,e);break;default:this.clientTransaction=new s.NonInviteClientTransaction(this._ua,this._ua.transport,this._request,e)}this._ua._configuration.authorization_jwt&&this._request.setHeader("Authorization",this._ua._configuration.authorization_jwt),this.clientTransaction.send()}_receiveResponse(e){var t,n,r=e.status_code;401!==r&&407!==r||null===this._ua.configuration.password&&null===this._ua.configuration.ha1?this._eventHandlers.onReceiveResponse(e):(n=401===e.status_code?(t=e.parseHeader("www-authenticate"),"authorization"):(t=e.parseHeader("proxy-authenticate"),"proxy-authorization"),t?this._challenged&&(this._staled||!0!==t.stale)||(this._auth||(this._auth=new o({username:this._ua.configuration.authorization_user,password:this._ua.configuration.password,realm:this._ua.configuration.realm,ha1:this._ua.configuration.ha1})),!this._auth.authenticate(this._request,t))?this._eventHandlers.onReceiveResponse(e):(this._challenged=!0,this._ua.set("realm",this._auth.get("realm")),this._ua.set("ha1",this._auth.get("ha1")),t.stale&&(this._staled=!0),this._request=this._request.clone(),this._request.cseq+=1,this._request.setHeader("cseq",this._request.cseq+" "+this._method),this._request.setHeader(n,this._auth.toString()),this._eventHandlers.onAuthenticated(this._request),this.send()):(a.debug(e.status_code+" with wrong or missing challenge, cannot authenticate"),this._eventHandlers.onReceiveResponse(e)))}}},2602:function(e,t,n){var r=n(8844),i=n(3422),o=n(9896),s=n(7196),a=n(900),c=n(9656),l=new i("SIPMessage");class d{constructor(e,t,n,r,i,u){if(!e||!t||!n)return null;var c;r=r||{},this.ua=n,this.headers={},this.method=e,this.ruri=t,this.body=u,this.extraHeaders=s.cloneArray(i),this.ua.configuration.extra_headers&&(this.extraHeaders=this.extraHeaders.concat(this.ua.configuration.extra_headers)),r.route_set?this.setHeader("route",r.route_set):n.configuration.use_preloaded_route&&this.setHeader("route",`<${n.transport.sip_uri};lr>`),this.setHeader("via",""),this.setHeader("max-forwards",o.MAX_FORWARDS),u=r.to_uri||t,i=r.to_tag?{tag:r.to_tag}:null,t=void 0!==r.to_display_name?r.to_display_name:null,this.to=new a(u,t,i),this.setHeader("to",this.to.toString()),u=r.from_uri||n.configuration.uri,t={tag:r.from_tag||s.newTag()},c=void 0!==r.from_display_name?r.from_display_name:n.configuration.display_name||null,this.from=new a(u,c,t),this.setHeader("from",this.from.toString()),i=r.call_id||n.configuration.jssip_id+s.createRandomToken(15),this.call_id=i,this.setHeader("call-id",i),u=r.cseq||Math.floor(1e4*Math.random()),this.cseq=u,this.setHeader("cseq",u+" "+e)}setHeader(e,t){for(var n=new RegExp(`^\\s*${e}\\s*:`,"i"),r=0;r<this.extraHeaders.length;r++)n.test(this.extraHeaders[r])&&this.extraHeaders.splice(r,1);this.headers[s.headerize(e)]=Array.isArray(t)?t:[t]}getHeader(e){var t=this.headers[s.headerize(e)];if(t){if(t[0])return t[0]}else{var n,r,i=new RegExp(`^\\s*${e}\\s*:`,"i"),o=u(this.extraHeaders);try{for(o.s();!(r=o.n()).done;)if(n=r.value,i.test(n))return n.substring(n.indexOf(":")+1).trim()}catch(a){o.e(a)}finally{o.f()}}}getHeaders(e){var t=this.headers[s.headerize(e)],n=[];if(t){var r,i=u(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;n.push(o)}}catch(h){i.e(h)}finally{i.f()}}else{var a,c,l=new RegExp(`^\\s*${e}\\s*:`,"i"),d=u(this.extraHeaders);try{for(d.s();!(c=d.n()).done;)a=c.value,l.test(a)&&n.push(a.substring(a.indexOf(":")+1).trim())}catch(h){d.e(h)}finally{d.f()}}return n}hasHeader(e){if(this.headers[s.headerize(e)])return!0;var t,n,r=new RegExp(`^\\s*${e}\\s*:`,"i"),i=u(this.extraHeaders);try{for(i.s();!(n=i.n()).done;)if(t=n.value,r.test(t))return!0}catch(o){i.e(o)}finally{i.f()}return!1}parseSDP(e){return!e&&this.sdp||(this.sdp=r.parse(this.body||"")),this.sdp}toString(){var e=`${this.method} ${this.ruri} SIP/2.0\r\n`;for(var t in this.headers)if(Object.prototype.hasOwnProperty.call(this.headers,t)){var n,r=u(this.headers[t]);try{for(r.s();!(n=r.n()).done;){var i=n.value;e+=`${t}: ${i}\r\n`}}catch(f){r.e(f)}finally{r.f()}}var a,c=u(this.extraHeaders);try{for(c.s();!(a=c.n()).done;){var l=a.value;e+=l.trim()+"\r\n"}}catch(f){c.e(f)}finally{c.f()}var d=[];switch(this.method){case o.REGISTER:d.push("path","gruu");break;case o.INVITE:this.ua.configuration.session_timers&&d.push("timer"),(this.ua.contact.pub_gruu||this.ua.contact.temp_gruu)&&d.push("gruu"),d.push("ice","replaces");break;case o.UPDATE:this.ua.configuration.session_timers&&d.push("timer"),d.push("ice")}d.push("outbound");var h=this.ua.configuration.user_agent||o.USER_AGENT;return e=(e+=`Allow: ${o.ALLOWED_METHODS}\r\n`)+`Supported: ${d}\r\n`+`User-Agent: ${h}\r\n`,this.body?(h=s.str_utf8_length(this.body),e=(e+=`Content-Length: ${h}\r\n\r\n`)+this.body):e+="Content-Length: 0\r\n\r\n",e}clone(){var e=new d(this.method,this.ruri,this.ua);return Object.keys(this.headers).forEach((function(t){e.headers[t]=this.headers[t].slice()}),this),e.body=this.body,e.extraHeaders=s.cloneArray(this.extraHeaders),e.to=this.to,e.from=this.from,e.call_id=this.call_id,e.cseq=this.cseq,e}}class h extends d{constructor(e,t,n,r,i){super(o.INVITE,e,t,n,r,i),this.transaction=null}cancel(e){this.transaction.cancel(e)}clone(){var e=new h(this.ruri,this.ua);return Object.keys(this.headers).forEach((function(t){e.headers[t]=this.headers[t].slice()}),this),e.body=this.body,e.extraHeaders=s.cloneArray(this.extraHeaders),e.to=this.to,e.from=this.from,e.call_id=this.call_id,e.cseq=this.cseq,e.transaction=this.transaction,e}}class f{constructor(){this.data=null,this.headers=null,this.method=null,this.via=null,this.via_branch=null,this.call_id=null,this.cseq=null,this.from=null,this.from_tag=null,this.to=null,this.to_tag=null,this.body=null,this.sdp=null}addHeader(e,t){t={raw:t},e=s.headerize(e),this.headers[e]?this.headers[e].push(t):this.headers[e]=[t]}getHeader(e){if(e=this.headers[s.headerize(e)],e&&e[0])return e[0].raw}getHeaders(e){e=this.headers[s.headerize(e)];var t,n=[];if(!e)return[];var r,i=u(e);try{for(i.s();!(r=i.n()).done;)t=r.value,n.push(t.raw)}catch(o){i.e(o)}finally{i.f()}return n}hasHeader(e){return!!this.headers[s.headerize(e)]}parseHeader(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e=s.headerize(e),this.headers[e]){var n,r,i;if(!(t>=this.headers[e].length))return r=(n=this.headers[e][t]).raw,n.parsed||(-1!==(i=c.parse(r,e.replace(/-/g,"_")))?n.parsed=i:(this.headers[e].splice(t,1),void l.debug(`error parsing "${e}" header field with value "${r}"`)));l.debug(`not so many "${e}" headers present`)}else l.debug(`header "${e}" not present`)}s(e,t){return this.parseHeader(e,t)}setHeader(e,t){t={raw:t},this.headers[s.headerize(e)]=[t]}parseSDP(e){return!e&&this.sdp||(this.sdp=r.parse(this.body||"")),this.sdp}toString(){return this.data}}class p extends f{constructor(e){super(),this.ua=e,this.headers={},this.ruri=null,this.transport=null,this.server_transaction=null}reply(e,t,n,r,i,a){var c,l,d,h=[],f=this.getHeader("To");if(t=t||null,!(e=e||null)||e<100||699<e)throw new TypeError("Invalid status_code: "+e);if(t&&"string"!=typeof t&&!(t instanceof String))throw new TypeError("Invalid reason_phrase: "+t);t=t||o.REASON_PHRASE[e]||"",n=s.cloneArray(n),this.ua.configuration.extra_headers&&(n=n.concat(this.ua.configuration.extra_headers));var p=`SIP/2.0 ${e} ${t}\r\n`;if(this.method===o.INVITE&&100<e&&e<=200){var v,m=u(this.getHeaders("record-route"));try{for(m.s();!(v=m.n()).done;)c=v.value,p+=`Record-Route: ${c}\r\n`}catch(w){m.e(w)}finally{m.f()}}var g,_=u(this.getHeaders("via"));try{for(_.s();!(g=_.n()).done;)l=g.value,p+=`Via: ${l}\r\n`}catch(w){_.e(w)}finally{_.f()}!this.to_tag&&100<e?f+=";tag="+s.newTag():this.to_tag&&!this.s("to").hasParam("tag")&&(f+=";tag="+this.to_tag),p=(p=(p=(p+=`To: ${f}\r\n`)+`From: ${this.getHeader("From")}\r\n`)+`Call-ID: ${this.call_id}\r\n`)+`CSeq: ${this.cseq} ${this.method}\r\n`;var y,b=u(n);try{for(b.s();!(y=b.n()).done;)d=y.value,p+=d.trim()+"\r\n"}catch(w){b.e(w)}finally{b.f()}switch(this.method){case o.INVITE:this.ua.configuration.session_timers&&h.push("timer"),(this.ua.contact.pub_gruu||this.ua.contact.temp_gruu)&&h.push("gruu"),h.push("ice","replaces");break;case o.UPDATE:this.ua.configuration.session_timers&&h.push("timer"),r&&h.push("ice"),h.push("replaces")}h.push("outbound"),this.method===o.OPTIONS?p=(p+=`Allow: ${o.ALLOWED_METHODS}\r\n`)+`Accept: ${o.ACCEPTED_BODY_TYPES}\r\n`:405===e?p+=`Allow: ${o.ALLOWED_METHODS}\r\n`:415===e&&(p+=`Accept: ${o.ACCEPTED_BODY_TYPES}\r\n`),p+=`Supported: ${h}\r\n`,r?(t=s.str_utf8_length(r),p=(p+="Content-Type: application/sdp\r\n")+`Content-Length: ${t}\r\n\r\n`+r):p+="Content-Length: 0\r\n\r\n",this.server_transaction.receiveResponse(e,p,i,a)}reply_sl(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=this.getHeaders("via");if(!t||t<100||699<t)throw new TypeError("Invalid status_code: "+t);if(n&&"string"!=typeof n&&!(n instanceof String))throw new TypeError("Invalid reason_phrase: "+n);var i,a=`SIP/2.0 ${t} ${n=n||o.REASON_PHRASE[t]||""}\r\n`,c=u(r);try{for(c.s();!(i=c.n()).done;)e=i.value,a+=`Via: ${e}\r\n`}catch(p){c.e(p)}finally{c.f()}var l=this.getHeader("To");if(!this.to_tag&&100<t?l+=";tag="+s.newTag():this.to_tag&&!this.s("to").hasParam("tag")&&(l+=";tag="+this.to_tag),a=(a=(a=(a+=`To: ${l}\r\n`)+`From: ${this.getHeader("From")}\r\n`)+`Call-ID: ${this.call_id}\r\n`)+`CSeq: ${this.cseq} ${this.method}\r\n`,this.ua.configuration.extra_headers){var d,h=u(this.ua.configuration.extra_headers);try{for(h.s();!(d=h.n()).done;){var f=d.value;a+=f.trim()+"\r\n"}}catch(p){h.e(p)}finally{h.f()}}a+="Content-Length: 0\r\n\r\n",this.transport.send(a)}}class v extends f{constructor(){super(),this.headers={},this.status_code=null,this.reason_phrase=null}}e.exports={OutgoingRequest:d,InitialOutgoingInviteRequest:h,IncomingRequest:p,IncomingResponse:v}},5944:function(e,t,n){var r=n(3422),i=n(7196),o=n(9656),s=new r("Socket");t.isSocket=t=>{if(Array.isArray(t))return!1;if(void 0===t)return s.warn("undefined JsSIP.Socket instance"),!1;try{if(!i.isString(t.url))throw s.warn("missing or invalid JsSIP.Socket url property"),new Error("Missing or invalid JsSIP.Socket url property");if(!i.isString(t.via_transport))throw s.warn("missing or invalid JsSIP.Socket via_transport property"),new Error("Missing or invalid JsSIP.Socket via_transport property");if(-1===o.parse(t.sip_uri,"SIP_URI"))throw s.warn("missing or invalid JsSIP.Socket sip_uri property"),new Error("missing or invalid JsSIP.Socket sip_uri property")}catch(e){return!1}try{["connect","disconnect","send"].forEach(e=>{if(!i.isFunction(t[e]))throw s.warn("missing or invalid JsSIP.Socket method: "+e),new Error("Missing or invalid JsSIP.Socket method: "+e)})}catch(e){return!1}return!0}},2615:function(e){var t=500;e.exports={T1:t,T2:4e3,T4:5e3,TIMER_B:32e3,TIMER_D:0,TIMER_F:32e3,TIMER_H:32e3,TIMER_I:0,TIMER_J:0,TIMER_K:0,TIMER_L:32e3,TIMER_M:32e3,PROVISIONAL_RESPONSE_INTERVAL:6e4}},1164:function(e,t,n){var r=n(9032).EventEmitter,i=n(3422),o=n(9896),s=n(2602),a=n(2615),u=new i("NonInviteClientTransaction"),c=new i("InviteClientTransaction"),l=new i("AckClientTransaction"),d=new i("NonInviteServerTransaction"),h=new i("InviteServerTransaction"),f={STATUS_TRYING:1,STATUS_PROCEEDING:2,STATUS_CALLING:3,STATUS_ACCEPTED:4,STATUS_COMPLETED:5,STATUS_TERMINATED:6,STATUS_CONFIRMED:7,NON_INVITE_CLIENT:"nict",NON_INVITE_SERVER:"nist",INVITE_CLIENT:"ict",INVITE_SERVER:"ist"};class p extends r{constructor(e,t,n,r){super(),this.type=f.NON_INVITE_CLIENT,this.id="z9hG4bK"+Math.floor(1e7*Math.random()),this.ua=e,this.transport=t,this.request=n,this.eventHandlers=r,n="SIP/2.0/"+t.via_transport,n+=` ${e.configuration.via_host};branch=`+this.id,this.request.setHeader("via",n),this.ua.newTransaction(this)}get C(){return f}stateChanged(e){this.state=e,this.emit("stateChanged")}send(){this.stateChanged(f.STATUS_TRYING),this.F=setTimeout(()=>{this.timer_F()},a.TIMER_F),this.transport.send(this.request)||this.onTransportError()}onTransportError(){u.debug("transport error occurred, deleting transaction "+this.id),clearTimeout(this.F),clearTimeout(this.K),this.stateChanged(f.STATUS_TERMINATED),this.ua.destroyTransaction(this),this.eventHandlers.onTransportError()}timer_F(){u.debug("Timer F expired for transaction "+this.id),this.stateChanged(f.STATUS_TERMINATED),this.ua.destroyTransaction(this),this.eventHandlers.onRequestTimeout()}timer_K(){this.stateChanged(f.STATUS_TERMINATED),this.ua.destroyTransaction(this)}receiveResponse(e){var t=e.status_code;if(t<200)switch(this.state){case f.STATUS_TRYING:case f.STATUS_PROCEEDING:this.stateChanged(f.STATUS_PROCEEDING),this.eventHandlers.onReceiveResponse(e)}else switch(this.state){case f.STATUS_TRYING:case f.STATUS_PROCEEDING:this.stateChanged(f.STATUS_COMPLETED),clearTimeout(this.F),408===t?this.eventHandlers.onRequestTimeout():this.eventHandlers.onReceiveResponse(e),this.K=setTimeout(()=>{this.timer_K()},a.TIMER_K);break;case f.STATUS_COMPLETED:}}}class v extends r{constructor(e,t,n,r){super(),this.type=f.INVITE_CLIENT,this.id="z9hG4bK"+Math.floor(1e7*Math.random()),this.ua=e,this.transport=t,this.request=n,this.eventHandlers=r,n.transaction=this,r="SIP/2.0/"+t.via_transport,r+=` ${e.configuration.via_host};branch=`+this.id,this.request.setHeader("via",r),this.ua.newTransaction(this)}get C(){return f}stateChanged(e){this.state=e,this.emit("stateChanged")}send(){this.stateChanged(f.STATUS_CALLING),this.B=setTimeout(()=>{this.timer_B()},a.TIMER_B),this.transport.send(this.request)||this.onTransportError()}onTransportError(){clearTimeout(this.B),clearTimeout(this.D),clearTimeout(this.M),this.state!==f.STATUS_ACCEPTED&&(c.debug("transport error occurred, deleting transaction "+this.id),this.eventHandlers.onTransportError()),this.stateChanged(f.STATUS_TERMINATED),this.ua.destroyTransaction(this)}timer_M(){c.debug("Timer M expired for transaction "+this.id),this.state===f.STATUS_ACCEPTED&&(clearTimeout(this.B),this.stateChanged(f.STATUS_TERMINATED),this.ua.destroyTransaction(this))}timer_B(){c.debug("Timer B expired for transaction "+this.id),this.state===f.STATUS_CALLING&&(this.stateChanged(f.STATUS_TERMINATED),this.ua.destroyTransaction(this),this.eventHandlers.onRequestTimeout())}timer_D(){c.debug("Timer D expired for transaction "+this.id),clearTimeout(this.B),this.stateChanged(f.STATUS_TERMINATED),this.ua.destroyTransaction(this)}sendACK(e){var t=new s.OutgoingRequest(o.ACK,this.request.ruri,this.ua,{route_set:this.request.getHeaders("route"),call_id:this.request.getHeader("call-id"),cseq:this.request.cseq});t.setHeader("from",this.request.getHeader("from")),t.setHeader("via",this.request.getHeader("via")),t.setHeader("to",e.getHeader("to")),this.D=setTimeout(()=>{this.timer_D()},a.TIMER_D),this.transport.send(t)}cancel(e){var t;this.state===f.STATUS_PROCEEDING&&((t=new s.OutgoingRequest(o.CANCEL,this.request.ruri,this.ua,{route_set:this.request.getHeaders("route"),call_id:this.request.getHeader("call-id"),cseq:this.request.cseq})).setHeader("from",this.request.getHeader("from")),t.setHeader("via",this.request.getHeader("via")),t.setHeader("to",this.request.getHeader("to")),e&&t.setHeader("reason",e),this.transport.send(t))}receiveResponse(e){var t=e.status_code;if(100<=t&&t<=199)switch(this.state){case f.STATUS_CALLING:this.stateChanged(f.STATUS_PROCEEDING),this.eventHandlers.onReceiveResponse(e);break;case f.STATUS_PROCEEDING:this.eventHandlers.onReceiveResponse(e)}else if(200<=t&&t<=299)switch(this.state){case f.STATUS_CALLING:case f.STATUS_PROCEEDING:this.stateChanged(f.STATUS_ACCEPTED),this.M=setTimeout(()=>{this.timer_M()},a.TIMER_M),this.eventHandlers.onReceiveResponse(e);break;case f.STATUS_ACCEPTED:this.eventHandlers.onReceiveResponse(e)}else if(300<=t&&t<=699)switch(this.state){case f.STATUS_CALLING:case f.STATUS_PROCEEDING:this.stateChanged(f.STATUS_COMPLETED),this.sendACK(e),this.eventHandlers.onReceiveResponse(e);break;case f.STATUS_COMPLETED:this.sendACK(e)}}}class m extends r{constructor(e,t,n,r){super(),this.id="z9hG4bK"+Math.floor(1e7*Math.random()),this.transport=t,this.request=n,this.eventHandlers=r,n="SIP/2.0/"+t.via_transport,n+=` ${e.configuration.via_host};branch=`+this.id,this.request.setHeader("via",n)}get C(){return f}send(){this.transport.send(this.request)||this.onTransportError()}onTransportError(){l.debug("transport error occurred for transaction "+this.id),this.eventHandlers.onTransportError()}}class g extends r{constructor(e,t,n){super(),this.type=f.NON_INVITE_SERVER,this.id=n.via_branch,this.ua=e,this.transport=t,this.request=n,this.last_response="",(n.server_transaction=this).state=f.STATUS_TRYING,e.newTransaction(this)}get C(){return f}stateChanged(e){this.state=e,this.emit("stateChanged")}timer_J(){d.debug("Timer J expired for transaction "+this.id),this.stateChanged(f.STATUS_TERMINATED),this.ua.destroyTransaction(this)}onTransportError(){this.transportError||(this.transportError=!0,d.debug("transport error occurred, deleting transaction "+this.id),clearTimeout(this.J),this.stateChanged(f.STATUS_TERMINATED),this.ua.destroyTransaction(this))}receiveResponse(e,t,n,r){if(100===e)switch(this.state){case f.STATUS_TRYING:this.stateChanged(f.STATUS_PROCEEDING),this.transport.send(t)||this.onTransportError();break;case f.STATUS_PROCEEDING:this.last_response=t,this.transport.send(t)?n&&n():(this.onTransportError(),r&&r())}else if(200<=e&&e<=699)switch(this.state){case f.STATUS_TRYING:case f.STATUS_PROCEEDING:this.stateChanged(f.STATUS_COMPLETED),this.last_response=t,this.J=setTimeout(()=>{this.timer_J()},a.TIMER_J),this.transport.send(t)?n&&n():(this.onTransportError(),r&&r());break;case f.STATUS_COMPLETED:}}}class _ extends r{constructor(e,t,n){super(),this.type=f.INVITE_SERVER,this.id=n.via_branch,this.ua=e,this.transport=t,this.request=n,this.last_response="",(n.server_transaction=this).state=f.STATUS_PROCEEDING,e.newTransaction(this),this.resendProvisionalTimer=null,n.reply(100)}get C(){return f}stateChanged(e){this.state=e,this.emit("stateChanged")}timer_H(){h.debug("Timer H expired for transaction "+this.id),this.state===f.STATUS_COMPLETED&&h.debug("ACK not received, dialog will be terminated"),this.stateChanged(f.STATUS_TERMINATED),this.ua.destroyTransaction(this)}timer_I(){this.stateChanged(f.STATUS_TERMINATED),this.ua.destroyTransaction(this)}timer_L(){h.debug("Timer L expired for transaction "+this.id),this.state===f.STATUS_ACCEPTED&&(this.stateChanged(f.STATUS_TERMINATED),this.ua.destroyTransaction(this))}onTransportError(){this.transportError||(this.transportError=!0,h.debug("transport error occurred, deleting transaction "+this.id),null!==this.resendProvisionalTimer&&(clearInterval(this.resendProvisionalTimer),this.resendProvisionalTimer=null),clearTimeout(this.L),clearTimeout(this.H),clearTimeout(this.I),this.stateChanged(f.STATUS_TERMINATED),this.ua.destroyTransaction(this))}resend_provisional(){this.transport.send(this.last_response)||this.onTransportError()}receiveResponse(e,t,n,r){if(100<=e&&e<=199&&this.state===f.STATUS_PROCEEDING&&(this.transport.send(t)||this.onTransportError(),this.last_response=t),100<e&&e<=199&&this.state===f.STATUS_PROCEEDING)null===this.resendProvisionalTimer&&(this.resendProvisionalTimer=setInterval(()=>{this.resend_provisional()},a.PROVISIONAL_RESPONSE_INTERVAL));else if(200<=e&&e<=299)switch(this.state){case f.STATUS_PROCEEDING:this.stateChanged(f.STATUS_ACCEPTED),this.last_response=t,this.L=setTimeout(()=>{this.timer_L()},a.TIMER_L),null!==this.resendProvisionalTimer&&(clearInterval(this.resendProvisionalTimer),this.resendProvisionalTimer=null);case f.STATUS_ACCEPTED:this.transport.send(t)?n&&n():(this.onTransportError(),r&&r())}else 300<=e&&e<=699&&this.state===f.STATUS_PROCEEDING&&(null!==this.resendProvisionalTimer&&(clearInterval(this.resendProvisionalTimer),this.resendProvisionalTimer=null),this.transport.send(t)?(this.stateChanged(f.STATUS_COMPLETED),this.H=setTimeout(()=>{this.timer_H()},a.TIMER_H),n&&n()):(this.onTransportError(),r&&r()))}}e.exports={C:f,NonInviteClientTransaction:p,InviteClientTransaction:v,AckClientTransaction:m,NonInviteServerTransaction:g,InviteServerTransaction:_,checkTransaction:function(e,t){var n,r=e._transactions;switch(t.method){case o.INVITE:if(n=r.ist[t.via_branch]){switch(n.state){case f.STATUS_PROCEEDING:n.transport.send(n.last_response);break;case f.STATUS_ACCEPTED:}return!0}break;case o.ACK:if(!(n=r.ist[t.via_branch]))return!1;if(n.state===f.STATUS_ACCEPTED)return!1;if(n.state===f.STATUS_COMPLETED)return n.state=f.STATUS_CONFIRMED,n.I=setTimeout(()=>{n.timer_I()},a.TIMER_I),!0;break;case o.CANCEL:return(n=r.ist[t.via_branch])?(t.reply_sl(200),n.state!==f.STATUS_PROCEEDING):(t.reply_sl(481),!0);default:if(n=r.nist[t.via_branch]){switch(n.state){case f.STATUS_TRYING:break;case f.STATUS_PROCEEDING:case f.STATUS_COMPLETED:n.transport.send(n.last_response)}return!0}}}}},764:function(e,t,n){var r=n(3422),i=n(5944);n=n(9896);var o=new r("Transport"),s={STATUS_CONNECTED:0,STATUS_CONNECTING:1,STATUS_DISCONNECTED:2,SOCKET_STATUS_READY:0,SOCKET_STATUS_ERROR:1,recovery_options:{min_interval:n.CONNECTION_RECOVERY_MIN_INTERVAL,max_interval:n.CONNECTION_RECOVERY_MAX_INTERVAL}};e.exports=class{constructor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.recovery_options;o.debug("new()"),this.status=s.STATUS_DISCONNECTED,this.socket=null,this.sockets=[],this.recovery_options=t,this.recover_attempts=0,this.recovery_timer=null,this.close_requested=!1;try{this.textDecoder=new TextDecoder("utf8")}catch(e){o.warn("cannot use TextDecoder: "+e)}if(void 0===e)throw new TypeError("Invalid argument. undefined 'sockets' argument");(e=e instanceof Array?e:[e]).forEach((function(e){if(!i.isSocket(e.socket))throw new TypeError("Invalid argument. invalid 'JsSIP.Socket' instance");if(e.weight&&!Number(e.weight))throw new TypeError("Invalid argument. 'weight' attribute is not a number");this.sockets.push({socket:e.socket,weight:e.weight||0,status:s.SOCKET_STATUS_READY})}),this),this._getSocket()}get via_transport(){return this.socket.via_transport}get url(){return this.socket.url}get sip_uri(){return this.socket.sip_uri}connect(){o.debug("connect()"),this.isConnected()?o.debug("Transport is already connected"):this.isConnecting()?o.debug("Transport is connecting"):(this.close_requested=!1,this.status=s.STATUS_CONNECTING,this.onconnecting({socket:this.socket,attempts:this.recover_attempts}),this.close_requested||(this.socket.onconnect=this._onConnect.bind(this),this.socket.ondisconnect=this._onDisconnect.bind(this),this.socket.ondata=this._onData.bind(this),this.socket.connect()))}disconnect(){o.debug("close()"),this.close_requested=!0,this.recover_attempts=0,this.status=s.STATUS_DISCONNECTED,null!==this.recovery_timer&&(clearTimeout(this.recovery_timer),this.recovery_timer=null),this.socket.onconnect=()=>{},this.socket.ondisconnect=()=>{},this.socket.ondata=()=>{},this.socket.disconnect(),this.ondisconnect({socket:this.socket,error:!1})}send(e){return o.debug("send()"),this.isConnected()?(e=e.toString(),o.debug(`sending message:\n\n${e}\n`),this.socket.send(e)):(o.warn("unable to send message, transport is not connected"),!1)}isConnected(){return this.status===s.STATUS_CONNECTED}isConnecting(){return this.status===s.STATUS_CONNECTING}_reconnect(){this.recover_attempts+=1;var e=Math.floor(Math.random()*Math.pow(2,this.recover_attempts)+1);e<this.recovery_options.min_interval?e=this.recovery_options.min_interval:e>this.recovery_options.max_interval&&(e=this.recovery_options.max_interval),o.debug(`reconnection attempt: ${this.recover_attempts}. next connection attempt in ${e} seconds`),this.recovery_timer=setTimeout(()=>{this.close_requested||this.isConnected()||this.isConnecting()||(this._getSocket(),this.connect())},1e3*e)}_getSocket(){var e,t=[];this.sockets.forEach(e=>{e.status!==s.SOCKET_STATUS_ERROR&&(0===t.length?t.push(e):e.weight>t[0].weight?t=[e]:e.weight===t[0].weight&&t.push(e))}),0===t.length?(this.sockets.forEach(e=>{e.status=s.SOCKET_STATUS_READY}),this._getSocket()):(e=Math.floor(Math.random()*t.length),this.socket=t[e].socket)}_onConnect(){this.recover_attempts=0,this.status=s.STATUS_CONNECTED,null!==this.recovery_timer&&(clearTimeout(this.recovery_timer),this.recovery_timer=null),this.onconnect({socket:this})}_onDisconnect(e,t,n){this.status=s.STATUS_DISCONNECTED,this.ondisconnect({socket:this.socket,error:e,code:t,reason:n}),this.close_requested||(this.sockets.forEach((function(e){this.socket===e.socket&&(e.status=s.SOCKET_STATUS_ERROR)}),this),this._reconnect(e))}_onData(e){if("\r\n\r\n"===e){o.debug("received message with double-CRLF Keep Alive request");try{this.socket.send("\r\n")}catch(e){o.warn("error sending Keep Alive response: "+e)}}else if("\r\n"===e)o.debug("received message with CRLF Keep Alive response");else{if("string"!=typeof e){try{e=this.textDecoder?this.textDecoder.decode(e):String.fromCharCode.apply(null,new Uint8Array(e))}catch(e){return void o.debug("received binary message failed to be converted into string, message discarded")}o.debug(`received binary message:\n\n${e}\n`)}else o.debug(`received text message:\n\n${e}\n`);this.ondata({transport:this,message:e})}}}},1675:function(e,t,n){var r=n(9032).EventEmitter,i=n(3422),o=n(9896),s=n(145),a=n(7356),u=n(3834),c=n(7659),l=n(1164),d=n(764),h=n(7196),f=n(8239),p=n(7019),v=n(9070),m=n(2602),g=n(5443),_=n(8611),y=new i("UA"),b={STATUS_INIT:0,STATUS_READY:1,STATUS_USER_CLOSED:2,STATUS_NOT_READY:3,CONFIGURATION_ERROR:1,NETWORK_ERROR:2};e.exports=class extends r{static get C(){return b}constructor(e){if(y.debug("new() [configuration:%o]",e),super(),this._cache={credentials:{}},this._configuration=Object.assign({},_.settings),this._dynConfiguration={},this._dialogs={},this._applicants={},this._sessions={},this._transport=null,this._contact=null,this._status=b.STATUS_INIT,this._error=null,this._transactions={nist:{},nict:{},ist:{},ict:{}},this._data={},this._closeTimer=null,void 0===e)throw new TypeError("Not enough arguments");try{this._loadConfig(e)}catch(e){throw this._status=b.STATUS_NOT_READY,this._error=b.CONFIGURATION_ERROR,e}this._registrator=new s(this)}get C(){return b}get status(){return this._status}get contact(){return this._contact}get configuration(){return this._configuration}get transport(){return this._transport}start(){y.debug("start()"),this._status===b.STATUS_INIT?this._transport.connect():this._status===b.STATUS_USER_CLOSED?(y.debug("restarting UA"),null!==this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null,this._transport.disconnect()),this._status=b.STATUS_INIT,this._transport.connect()):this._status===b.STATUS_READY?y.debug("UA is in READY status, not restarted"):y.debug("ERROR: connection is down, Auto-Recovery system is trying to reconnect"),this._dynConfiguration.register=this._configuration.register}register(){y.debug("register()"),this._dynConfiguration.register=!0,this._registrator.register()}unregister(e){y.debug("unregister()"),this._dynConfiguration.register=!1,this._registrator.unregister(e)}registrator(){return this._registrator}isRegistered(){return this._registrator.registered}isConnected(){return this._transport.isConnected()}call(e,t){y.debug("call()");var n=new a(this);return n.connect(e,t),n}sendMessage(e,t,n){y.debug("sendMessage()");var r=new u(this);return r.send(e,t,n),r}sendOptions(e,t,n){y.debug("sendOptions()");var r=new c(this);return r.send(e,t,n),r}terminateSessions(e){for(var t in y.debug("terminateSessions()"),this._sessions)this._sessions[t].isEnded()||this._sessions[t].terminate(e)}stop(){if(y.debug("stop()"),this._dynConfiguration={},this._status===b.STATUS_USER_CLOSED)y.debug("UA already closed");else{this._registrator.close();var e,t,n=Object.keys(this._sessions).length;for(e in this._sessions)if(Object.prototype.hasOwnProperty.call(this._sessions,e)){y.debug("closing session "+e);try{this._sessions[e].terminate()}catch(e){}}for(t in this._applicants)if(Object.prototype.hasOwnProperty.call(this._applicants,t))try{this._applicants[t].close()}catch(e){}this._status=b.STATUS_USER_CLOSED,0===Object.keys(this._transactions.nict).length+Object.keys(this._transactions.nist).length+Object.keys(this._transactions.ict).length+Object.keys(this._transactions.ist).length&&0===n?this._transport.disconnect():this._closeTimer=setTimeout(()=>{this._closeTimer=null,this._transport.disconnect()},2e3)}}normalizeTarget(e){return h.normalizeTarget(e,this._configuration.hostport_params)}get(e){switch(e){case"authorization_user":return this._configuration.authorization_user;case"realm":return this._configuration.realm;case"ha1":return this._configuration.ha1;case"authorization_jwt":return this._configuration.authorization_jwt;default:return void y.warn('get() | cannot get "%s" parameter in runtime',e)}}set(e,t){switch(e){case"authorization_user":this._configuration.authorization_user=String(t);break;case"password":this._configuration.password=String(t);break;case"realm":this._configuration.realm=String(t);break;case"ha1":this._configuration.ha1=String(t),this._configuration.password=null;break;case"authorization_jwt":this._configuration.authorization_jwt=String(t);break;case"display_name":this._configuration.display_name=t;break;case"extra_headers":this._configuration.extra_headers=t;break;default:return y.warn('set() | cannot set "%s" parameter in runtime',e),!1}return!0}newTransaction(e){this._transactions[e.type][e.id]=e,this.emit("newTransaction",{transaction:e})}destroyTransaction(e){delete this._transactions[e.type][e.id],this.emit("transactionDestroyed",{transaction:e})}newDialog(e){this._dialogs[e.id]=e}destroyDialog(e){delete this._dialogs[e.id]}newMessage(e,t){this._applicants[e]=e,this.emit("newMessage",t)}newOptions(e,t){this._applicants[e]=e,this.emit("newOptions",t)}destroyMessage(e){delete this._applicants[e]}newRTCSession(e,t){this._sessions[e.id]=e,this.emit("newRTCSession",t)}destroyRTCSession(e){delete this._sessions[e.id]}registered(e){this.emit("registered",e)}unregistered(e){this.emit("unregistered",e)}registrationFailed(e){this.emit("registrationFailed",e)}receiveRequest(e){var t,n=e.method;if(e.ruri.user!==this._configuration.uri.user&&e.ruri.user!==this._contact.uri.user)y.debug("Request-URI does not point to us"),e.method!==o.ACK&&e.reply_sl(404);else if(e.ruri.scheme===o.SIPS)e.reply_sl(416);else if(!l.checkTransaction(this,e)){if(n===o.INVITE?new l.InviteServerTransaction(this,this._transport,e):n!==o.ACK&&n!==o.CANCEL&&new l.NonInviteServerTransaction(this,this._transport,e),n===o.OPTIONS){if(0===this.listeners("newOptions").length)return void e.reply(200);new c(this).init_incoming(e)}else if(n===o.MESSAGE){if(0===this.listeners("newMessage").length)return void e.reply(405);new u(this).init_incoming(e)}else if(n===o.INVITE&&!e.to_tag&&0===this.listeners("newRTCSession").length)return void e.reply(405);var r,i;if(e.to_tag)(r=this._findDialog(e.call_id,e.from_tag,e.to_tag))?r.receiveRequest(e):n===o.NOTIFY?(i=this._findSession(e))?i.receiveRequest(e):(y.debug("received NOTIFY request for a non existent subscription"),e.reply(481,"Subscription does not exist")):n!==o.ACK&&e.reply(481);else switch(n){case o.INVITE:window.RTCPeerConnection?e.hasHeader("replaces")?(t=e.replaces,(r=this._findDialog(t.call_id,t.from_tag,t.to_tag))?(i=r.owner).isEnded()?e.reply(603):i.receiveRequest(e):e.reply(481)):(i=new a(this)).init_incoming(e):(y.warn("INVITE received but WebRTC is not supported"),e.reply(488));break;case o.BYE:e.reply(481);break;case o.CANCEL:(i=this._findSession(e))?i.receiveRequest(e):y.debug("received CANCEL request for a non existent session");break;case o.ACK:break;case o.NOTIFY:this.emit("sipEvent",{event:e.event,request:e}),e.reply(200);break;default:e.reply(405)}}}_findSession(e){var t=e.call_id,n=e.from_tag,r=e.to_tag;return n=this._sessions[t+n],t=this._sessions[t+r],n||t||null}_findDialog(e,t,n){var r=this._dialogs[e+t+n];return r||this._dialogs[e+n+t]||null}_loadConfig(e){try{_.load(this._configuration,e)}catch(e){throw e}0===this._configuration.display_name&&(this._configuration.display_name="0"),this._configuration.instance_id||(this._configuration.instance_id=h.newUUID()),this._configuration.jssip_id=h.createRandomToken(5);e=this._configuration.uri.clone();e.user=null,this._configuration.hostport_params=e.toString().replace(/^sip:/i,"");try{this._transport=new d(this._configuration.sockets,{max_interval:this._configuration.connection_recovery_max_interval,min_interval:this._configuration.connection_recovery_min_interval}),this._transport.onconnecting=function(e){this.emit("connecting",e)}.bind(this),this._transport.onconnect=function(e){this._status!==b.STATUS_USER_CLOSED&&(this._status=b.STATUS_READY,this._error=null,this.emit("connected",e),this._dynConfiguration.register)&&this._registrator.register()}.bind(this),this._transport.ondisconnect=function(e){for(var t=0,n=["nict","ict","nist","ist"];t<n.length;t++){var r=n[t];for(var i in this._transactions[r])Object.prototype.hasOwnProperty.call(this._transactions[r],i)&&this._transactions[r][i].onTransportError()}this.emit("disconnected",e),this._registrator.onTransportClosed(),this._status!==b.STATUS_USER_CLOSED&&(this._status=b.STATUS_NOT_READY,this._error=b.NETWORK_ERROR)}.bind(this),this._transport.ondata=function(e){var t=e.transport,n=e.message;if((n=v.parseMessage(n,this))&&!(this._status===b.STATUS_USER_CLOSED&&n instanceof m.IncomingRequest)&&g(n,this,t))if(n instanceof m.IncomingRequest)n.transport=t,this.receiveRequest(n);else if(n instanceof m.IncomingResponse){var r;switch(n.method){case o.INVITE:(r=this._transactions.ict[n.via_branch])&&r.receiveResponse(n);break;case o.ACK:break;default:(r=this._transactions.nict[n.via_branch])&&r.receiveResponse(n)}}}.bind(this)}catch(e){throw y.warn(e),new f.ConfigurationError("sockets",this._configuration.sockets)}delete this._configuration.sockets,this._configuration.authorization_user||(this._configuration.authorization_user=this._configuration.uri.user),this._configuration.registrar_server||((e=this._configuration.uri.clone()).user=null,e.clearParams(),e.clearHeaders(),this._configuration.registrar_server=e),this._configuration.no_answer_timeout*=1e3,this._configuration.contact_uri?this._configuration.via_host=this._configuration.contact_uri.host:this._configuration.contact_uri=new p("sip",h.createRandomToken(8),this._configuration.via_host,null,{transport:"ws"}),this._contact={pub_gruu:null,temp_gruu:null,uri:this._configuration.contact_uri,toString(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=t.anonymous||null,r=(t=t.outbound||null,"<");return r+=n?e.temp_gruu||"sip:anonymous@anonymous.invalid;transport=ws":e.pub_gruu||e.uri.toString(),!t||(n?e.temp_gruu:e.pub_gruu)||(r+=";ob"),r+">"}(t)}};var t,n,r=["authorization_user","password","realm","ha1","authorization_jwt","display_name","register","extra_headers"];for(t in this._configuration)Object.prototype.hasOwnProperty.call(this._configuration,t)&&(-1!==r.indexOf(t)?Object.defineProperty(this._configuration,t,{writable:!0,configurable:!1}):Object.defineProperty(this._configuration,t,{writable:!1,configurable:!1}));for(n in y.debug("configuration parameters after validation:"),this._configuration)if(Object.prototype.hasOwnProperty.call(_.settings,n))switch(n){case"uri":case"registrar_server":y.debug(`- ${n}: `+this._configuration[n]);break;case"password":case"ha1":case"authorization_jwt":y.debug(`- ${n}: NOT SHOWN`);break;default:y.debug(`- ${n}: `+JSON.stringify(this._configuration[n]))}}}},7019:function(e,t,n){var r=n(9896),i=n(7196),o=n(9656);e.exports=class e{static parse(e){if(-1!==(e=o.parse(e,"SIP_URI")))return e}constructor(e,t,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(!n)throw new TypeError('missing or invalid "host" parameter');for(var a in this._parameters={},this._headers={},this._scheme=e||r.SIP,this._user=t,this._host=n,this._port=i,o)Object.prototype.hasOwnProperty.call(o,a)&&this.setParam(a,o[a]);for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&this.setHeader(u,s[u])}get scheme(){return this._scheme}set scheme(e){this._scheme=e.toLowerCase()}get user(){return this._user}set user(e){this._user=e}get host(){return this._host}set host(e){this._host=e.toLowerCase()}get port(){return this._port}set port(e){this._port=0===e?e:parseInt(e,10)||null}setParam(e,t){e&&(this._parameters[e.toLowerCase()]=null==t?null:t.toString())}getParam(e){if(e)return this._parameters[e.toLowerCase()]}hasParam(e){if(e)return!!this._parameters.hasOwnProperty(e.toLowerCase())}deleteParam(e){var t;if(e=e.toLowerCase(),this._parameters.hasOwnProperty(e))return t=this._parameters[e],delete this._parameters[e],t}clearParams(){this._parameters={}}setHeader(e,t){this._headers[i.headerize(e)]=Array.isArray(t)?t:[t]}getHeader(e){if(e)return this._headers[i.headerize(e)]}hasHeader(e){if(e)return!!this._headers.hasOwnProperty(i.headerize(e))}deleteHeader(e){var t;if(e=i.headerize(e),this._headers.hasOwnProperty(e))return t=this._headers[e],delete this._headers[e],t}clearHeaders(){this._headers={}}clone(){return new e(this._scheme,this._user,this._host,this._port,JSON.parse(JSON.stringify(this._parameters)),JSON.parse(JSON.stringify(this._headers)))}toString(){var e,t,n=[],r=this._scheme+":";for(e in this._user&&(r+=i.escapeUser(this._user)+"@"),r+=this._host,!this._port&&0!==this._port||(r+=":"+this._port),this._parameters)Object.prototype.hasOwnProperty.call(this._parameters,e)&&(r+=";"+e,null!==this._parameters[e])&&(r+="="+this._parameters[e]);for(t in this._headers)if(Object.prototype.hasOwnProperty.call(this._headers,t)){var o,s=u(this._headers[t]);try{for(s.s();!(o=s.n()).done;){var a=o.value;n.push(t+"="+a)}}catch(c){s.e(c)}finally{s.f()}}return 0<n.length&&(r+="?"+n.join("&")),r}toAor(e){var t=this._scheme+":";return this._user&&(t+=i.escapeUser(this._user)+"@"),t+=this._host,e&&(this._port||0===this._port)&&(t+=":"+this._port),t}}},7196:function(e,t,n){var r=n(9896),i=n(7019),o=n(9656),s=(t.str_utf8_length=e=>unescape(encodeURIComponent(e)).length,t.isFunction=e=>void 0!==e&&"[object Function]"===Object.prototype.toString.call(e)),a=(t.isString=e=>void 0!==e&&"[object String]"===Object.prototype.toString.call(e),t.isDecimal=e=>!isNaN(e)&&parseFloat(e)===parseInt(e,10),t.isEmpty=e=>null===e||""===e||void 0===e||Array.isArray(e)&&0===e.length||"number"==typeof e&&isNaN(e),t.hasMethods=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i];if(s(e[a]))return!1}return!0},t.createRandomToken=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:32,i="";for(t=0;t<e;t++)n=Math.random()*r|0,i+=n.toString(r);return i}),c=(t.newTag=()=>a(10),t.newUUID=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}),t.hostType=e=>{if(e&&-1!==(e=o.parse(e,"host")))return e.host_type},t.escapeUser=e=>encodeURIComponent(decodeURIComponent(e)).replace(/%3A/gi,":").replace(/%2B/gi,"+").replace(/%3F/gi,"?").replace(/%2F/gi,"/"));t.normalizeTarget=(e,t)=>{if(e){if(e instanceof i)return e;if("string"==typeof e){var n,o,s,a=e.split("@");switch(a.length){case 1:if(!t)return;o=e,s=t;break;case 2:o=a[0],s=a[1];break;default:o=a.slice(0,a.length-1).join("@"),s=a[a.length-1]}if(o=o.replace(/^(sips?|tel):/i,""),/^[-.()]*\+?[0-9\-.()]+$/.test(o)&&(o=o.replace(/[-.()]/g,"")),e=`${r.SIP}:${c(o)}@`+s,n=i.parse(e))return n}}},t.headerize=e=>{var t,n={"Call-Id":"Call-ID",Cseq:"CSeq","Www-Authenticate":"WWW-Authenticate"},r=e.toLowerCase().replace(/_/g,"-").split("-"),i="",o=r.length;for(t=0;t<o;t++)0!==t&&(i+="-"),i+=r[t].charAt(0).toUpperCase()+r[t].substring(1);return n[i]?n[i]:i},t.sipErrorCause=e=>{for(var t in r.SIP_ERROR_CAUSES)if(-1!==r.SIP_ERROR_CAUSES[t].indexOf(e))return r.causes[t];return r.causes.SIP_FAILURE_CODE},t.getRandomTestNetIP=()=>{return"192.0.2."+(e=1,t=254,Math.floor(Math.random()*(t-e+1)+e));var e,t},t.calculateMD5=e=>{function t(e,t){return e<<t|e>>>32-t}function n(e,t){var n=2147483648&e,r=2147483648&t,i=1073741824&e,o=1073741824&t;e=(1073741823&e)+(1073741823&t);return i&o?2147483648^e^n^r:i|o?1073741824&e?3221225472^e^n^r:1073741824^e^n^r:e^n^r}function r(e,r,i,o,s,a,u){return e=n(e,n(n(r&i|~r&o,s),u)),n(t(e,a),r)}function i(e,r,i,o,s,a,u){return e=n(e,n(n(r&o|i&~o,s),u)),n(t(e,a),r)}function o(e,r,i,o,s,a,u){return e=n(e,n(n(r^i^o,s),u)),n(t(e,a),r)}function s(e,r,i,o,s,a,u){return e=n(e,n(n(i^(r|~o),s),u)),n(t(e,a),r)}function a(e){var t,n,r="",i="";for(n=0;n<=3;n++)t=e>>>8*n&255,i="0"+t.toString(16),r+=i.substr(i.length-2,2);return r}var u,c,l,d,h,f,p,v,m,g=(e=>{for(var t,n=e.length,r=16*(1+((r=n+8)-r%64)/64),i=new Array(r-1),o=0,s=0;s<n;)t=(s-s%4)/4,o=s%4*8,i[t]=i[t]|e.charCodeAt(s)<<o,s++;return t=(s-s%4)/4,o=s%4*8,i[t]=i[t]|128<<o,i[r-2]=n<<3,i[r-1]=n>>>29,i})(e=(e=>{for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t+=String.fromCharCode(r):t=127<r&&r<2048?(t+=String.fromCharCode(r>>6|192))+String.fromCharCode(63&r|128):(t=(t+=String.fromCharCode(r>>12|224))+String.fromCharCode(r>>6&63|128))+String.fromCharCode(63&r|128)}return t})(e));for(f=1732584193,p=4023233417,v=2562383102,m=271733878,u=0;u<g.length;u+=16)c=f,l=p,d=v,h=m,f=r(f,p,v,m,g[u+0],7,3614090360),m=r(m,f,p,v,g[u+1],12,3905402710),v=r(v,m,f,p,g[u+2],17,606105819),p=r(p,v,m,f,g[u+3],22,3250441966),f=r(f,p,v,m,g[u+4],7,4118548399),m=r(m,f,p,v,g[u+5],12,1200080426),v=r(v,m,f,p,g[u+6],17,2821735955),p=r(p,v,m,f,g[u+7],22,4249261313),f=r(f,p,v,m,g[u+8],7,1770035416),m=r(m,f,p,v,g[u+9],12,2336552879),v=r(v,m,f,p,g[u+10],17,4294925233),p=r(p,v,m,f,g[u+11],22,2304563134),f=r(f,p,v,m,g[u+12],7,1804603682),m=r(m,f,p,v,g[u+13],12,4254626195),v=r(v,m,f,p,g[u+14],17,2792965006),p=r(p,v,m,f,g[u+15],22,1236535329),f=i(f,p,v,m,g[u+1],5,4129170786),m=i(m,f,p,v,g[u+6],9,3225465664),v=i(v,m,f,p,g[u+11],14,643717713),p=i(p,v,m,f,g[u+0],20,3921069994),f=i(f,p,v,m,g[u+5],5,3593408605),m=i(m,f,p,v,g[u+10],9,38016083),v=i(v,m,f,p,g[u+15],14,3634488961),p=i(p,v,m,f,g[u+4],20,3889429448),f=i(f,p,v,m,g[u+9],5,568446438),m=i(m,f,p,v,g[u+14],9,3275163606),v=i(v,m,f,p,g[u+3],14,4107603335),p=i(p,v,m,f,g[u+8],20,1163531501),f=i(f,p,v,m,g[u+13],5,2850285829),m=i(m,f,p,v,g[u+2],9,4243563512),v=i(v,m,f,p,g[u+7],14,1735328473),p=i(p,v,m,f,g[u+12],20,2368359562),f=o(f,p,v,m,g[u+5],4,4294588738),m=o(m,f,p,v,g[u+8],11,2272392833),v=o(v,m,f,p,g[u+11],16,1839030562),p=o(p,v,m,f,g[u+14],23,4259657740),f=o(f,p,v,m,g[u+1],4,2763975236),m=o(m,f,p,v,g[u+4],11,1272893353),v=o(v,m,f,p,g[u+7],16,4139469664),p=o(p,v,m,f,g[u+10],23,3200236656),f=o(f,p,v,m,g[u+13],4,681279174),m=o(m,f,p,v,g[u+0],11,3936430074),v=o(v,m,f,p,g[u+3],16,3572445317),p=o(p,v,m,f,g[u+6],23,76029189),f=o(f,p,v,m,g[u+9],4,3654602809),m=o(m,f,p,v,g[u+12],11,3873151461),v=o(v,m,f,p,g[u+15],16,530742520),p=o(p,v,m,f,g[u+2],23,3299628645),f=s(f,p,v,m,g[u+0],6,4096336452),m=s(m,f,p,v,g[u+7],10,1126891415),v=s(v,m,f,p,g[u+14],15,2878612391),p=s(p,v,m,f,g[u+5],21,4237533241),f=s(f,p,v,m,g[u+12],6,1700485571),m=s(m,f,p,v,g[u+3],10,2399980690),v=s(v,m,f,p,g[u+10],15,4293915773),p=s(p,v,m,f,g[u+1],21,2240044497),f=s(f,p,v,m,g[u+8],6,1873313359),m=s(m,f,p,v,g[u+15],10,4264355552),v=s(v,m,f,p,g[u+6],15,2734768916),p=s(p,v,m,f,g[u+13],21,1309151649),f=s(f,p,v,m,g[u+4],6,4149444226),m=s(m,f,p,v,g[u+11],10,3174756917),v=s(v,m,f,p,g[u+2],15,718787259),p=s(p,v,m,f,g[u+9],21,3951481745),f=n(f,c),p=n(p,l),v=n(v,d),m=n(m,h);return(a(f)+a(p)+a(v)+a(m)).toLowerCase()},t.closeMediaStream=t=>{if(t)try{if(t.getTracks){var n,r=u(t.getTracks());try{for(r.s();!(n=r.n()).done;){var i=n.value;i.stop()}}catch(h){r.e(h)}finally{r.f()}}else{var o,s=u(t.getAudioTracks());try{for(s.s();!(o=s.n()).done;){var a=o.value;a.stop()}}catch(h){s.e(h)}finally{s.f()}var c,l=u(t.getVideoTracks());try{for(l.s();!(c=l.n()).done;){var d=c.value;d.stop()}}catch(h){l.e(h)}finally{l.f()}}}catch(e){"function"!=typeof t.stop&&"object"!=typeof t.stop||t.stop()}},t.cloneArray=e=>e&&e.slice()||[],t.cloneObject=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e&&Object.assign({},e)||t}},2159:function(e,t,n){var r=n(3422),i=n(9656),o=new r("WebSocketInterface");e.exports=class{constructor(e){o.debug('new() [url:"%s"]',e),this._url=e,this._sip_uri=null,this._via_transport=null,this._ws=null;var t=i.parse(e,"absoluteURI");if(-1===t)throw o.warn("invalid WebSocket URI: "+e),new TypeError("Invalid argument: "+e);if("wss"!==t.scheme&&"ws"!==t.scheme)throw o.warn("invalid WebSocket URI scheme: "+t.scheme),new TypeError("Invalid argument: "+e);this._sip_uri=`sip:${t.host}${t.port?":"+t.port:""};transport=ws`,this._via_transport=t.scheme.toUpperCase()}get via_transport(){return this._via_transport}set via_transport(e){this._via_transport=e.toUpperCase()}get sip_uri(){return this._sip_uri}get url(){return this._url}connect(){if(o.debug("connect()"),this.isConnected())o.debug(`WebSocket ${this._url} is already connected`);else if(this.isConnecting())o.debug(`WebSocket ${this._url} is connecting`);else{this._ws&&this.disconnect(),o.debug("connecting to WebSocket "+this._url);try{this._ws=new WebSocket(this._url,"sip"),this._ws.binaryType="arraybuffer",this._ws.onopen=this._onOpen.bind(this),this._ws.onclose=this._onClose.bind(this),this._ws.onmessage=this._onMessage.bind(this),this._ws.onerror=this._onError.bind(this)}catch(e){this._onError(e)}}}disconnect(){o.debug("disconnect()"),this._ws&&(this._ws.onopen=()=>{},this._ws.onclose=()=>{},this._ws.onmessage=()=>{},this._ws.onerror=()=>{},this._ws.close(),this._ws=null)}send(e){return o.debug("send()"),this.isConnected()?(this._ws.send(e),!0):(o.warn("unable to send message, WebSocket is not open"),!1)}isConnected(){return this._ws&&this._ws.readyState===this._ws.OPEN}isConnecting(){return this._ws&&this._ws.readyState===this._ws.CONNECTING}_onOpen(){o.debug(`WebSocket ${this._url} connected`),this.onconnect()}_onClose(e){var t=e.wasClean,n=e.code,r=e.reason;o.debug(`WebSocket ${this._url} closed`),!1===t&&o.debug("WebSocket abrupt disconnection"),this.ondisconnect(!t,n,r)}_onMessage(e){var t=e.data;o.debug("received WebSocket message"),this.ondata(t)}_onError(e){o.warn(`WebSocket ${this._url} error: `,e)}}},5443:function(e,t,n){var r,i,o,s=n(3422),a=n(9896),c=n(2602),l=n(7196),d=new s("sanityCheck"),h=[function(){for(var e=0,t=["from","to","call_id","cseq","via"];e<t.length;e++){var n=t[e];if(!r.hasHeader(n))return d.debug(`missing mandatory header field : ${n}, dropping the response`),!1}}],f=[function(){if("sip"!==r.s("to").uri.scheme)return v(416),!1},function(){if(!r.to_tag&&r.call_id.substr(0,5)===i.configuration.jssip_id)return v(482),!1},function(){var e=l.str_utf8_length(r.body),t=r.getHeader("content-length");if(e<t)return v(400),!1},function(){var e,t=r.from_tag,n=r.call_id,o=r.cseq;if(!r.to_tag)if(r.method===a.INVITE){if(i._transactions.ist[r.via_branch])return!1;for(var s in i._transactions.ist)if(Object.prototype.hasOwnProperty.call(i._transactions.ist,s)&&(e=i._transactions.ist[s]).request.from_tag===t&&e.request.call_id===n&&e.request.cseq===o)return v(482),!1}else{if(i._transactions.nist[r.via_branch])return!1;for(var u in i._transactions.nist)if(Object.prototype.hasOwnProperty.call(i._transactions.nist,u)&&(e=i._transactions.nist[u]).request.from_tag===t&&e.request.call_id===n&&e.request.cseq===o)return v(482),!1}}],p=[function(){if(1<r.getHeaders("via").length)return d.debug("more than one Via header field present in the response, dropping the response"),!1},function(){var e=l.str_utf8_length(r.body),t=r.getHeader("content-length");if(e<t)return d.debug("message body length is lower than the value in Content-Length header field, dropping the response"),!1}];function v(e){var t,n,i,s=r.getHeaders("via"),c=`SIP/2.0 ${e} ${a.REASON_PHRASE[e]}\r\n`,d=u(s);try{for(d.s();!(i=d.n()).done;)t=i.value,c+=`Via: ${t}\r\n`}catch(h){d.e(h)}finally{d.f()}n=r.getHeader("To"),r.to_tag||(n+=";tag="+l.newTag()),c=(c=(c=(c+=`To: ${n}\r\n`)+`From: ${r.getHeader("From")}\r\n`)+`Call-ID: ${r.call_id}\r\n`)+`CSeq: ${r.cseq} ${r.method}\r\n\r\n`,o.send(c)}e.exports=(e,t,n)=>{r=e,i=t,o=n;for(var s=0,a=h;s<a.length;s++){var u=a[s];if(!1===u())return!1}if(r instanceof c.IncomingRequest)for(var l=0,d=f;l<d.length;l++){var v=d[l];if(!1===v())return!1}else if(r instanceof c.IncomingResponse)for(var m=0,g=p;m<g.length;m++){var _=g[m];if(!1===_())return!1}return!0}},9192:function(e){var t=864e5;function n(e,t,n,r){return t=1.5*n<=t,Math.round(e/n)+" "+r+(t?"s":"")}e.exports=function(e,r){r=r||{};var i=typeof e;if(!("string"==i&&0<e.length)){if("number"==i&&isFinite(e))return(r.long?e=>{var r=Math.abs(e);return t<=r?n(e,r,t,"day"):36e5<=r?n(e,r,36e5,"hour"):6e4<=r?n(e,r,6e4,"minute"):1e3<=r?n(e,r,1e3,"second"):e+" ms"}:e=>{var n=Math.abs(e);return t<=n?Math.round(e/t)+"d":36e5<=n?Math.round(e/36e5)+"h":6e4<=n?Math.round(e/6e4)+"m":1e3<=n?Math.round(e/1e3)+"s":e+"ms"})(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}if(i=e,!(100<(i=String(i)).length)&&(i=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i),i)){var o=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*o;case"weeks":case"week":case"w":return 6048e5*o;case"days":case"day":case"d":return o*t;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*o;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*o;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*o;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}}},7893:function(e){var t=e.exports={v:[{name:"version",reg:/^(\d*)$/}],o:[{name:"origin",reg:/^(\S*) (\d*) (\d*) (\S*) IP(\d) (\S*)/,names:["username","sessionId","sessionVersion","netType","ipVer","address"],format:"%s %s %d %s IP%d %s"}],s:[{name:"name"}],i:[{name:"description"}],u:[{name:"uri"}],e:[{name:"email"}],p:[{name:"phone"}],z:[{name:"timezones"}],r:[{name:"repeats"}],t:[{name:"timing",reg:/^(\d*) (\d*)/,names:["start","stop"],format:"%d %d"}],c:[{name:"connection",reg:/^IN IP(\d) (\S*)/,names:["version","ip"],format:"IN IP%d %s"}],b:[{push:"bandwidth",reg:/^(TIAS|AS|CT|RR|RS):(\d*)/,names:["type","limit"],format:"%s:%s"}],m:[{reg:/^(\w*) (\d*) ([\w/]*)(?: (.*))?/,names:["type","port","protocol","payloads"],format:"%s %d %s %s"}],a:[{push:"rtp",reg:/^rtpmap:(\d*) ([\w\-.]*)(?:\s*\/(\d*)(?:\s*\/(\S*))?)?/,names:["payload","codec","rate","encoding"],format:function(e){return e.encoding?"rtpmap:%d %s/%s/%s":e.rate?"rtpmap:%d %s/%s":"rtpmap:%d %s"}},{push:"fmtp",reg:/^fmtp:(\d*) ([\S| ]*)/,names:["payload","config"],format:"fmtp:%d %s"},{name:"control",reg:/^control:(.*)/,format:"control:%s"},{name:"rtcp",reg:/^rtcp:(\d*)(?: (\S*) IP(\d) (\S*))?/,names:["port","netType","ipVer","address"],format:function(e){return null!=e.address?"rtcp:%d %s IP%d %s":"rtcp:%d"}},{push:"rtcpFbTrrInt",reg:/^rtcp-fb:(\*|\d*) trr-int (\d*)/,names:["payload","value"],format:"rtcp-fb:%s trr-int %d"},{push:"rtcpFb",reg:/^rtcp-fb:(\*|\d*) ([\w-_]*)(?: ([\w-_]*))?/,names:["payload","type","subtype"],format:function(e){return null!=e.subtype?"rtcp-fb:%s %s %s":"rtcp-fb:%s %s"}},{push:"ext",reg:/^extmap:(\d+)(?:\/(\w+))?(?: (urn:ietf:params:rtp-hdrext:encrypt))? (\S*)(?: (\S*))?/,names:["value","direction","encrypt-uri","uri","config"],format:function(e){return"extmap:%d"+(e.direction?"/%s":"%v")+(e["encrypt-uri"]?" %s":"%v")+" %s"+(e.config?" %s":"")}},{name:"extmapAllowMixed",reg:/^(extmap-allow-mixed)/},{push:"crypto",reg:/^crypto:(\d*) ([\w_]*) (\S*)(?: (\S*))?/,names:["id","suite","config","sessionConfig"],format:function(e){return null!=e.sessionConfig?"crypto:%d %s %s %s":"crypto:%d %s %s"}},{name:"setup",reg:/^setup:(\w*)/,format:"setup:%s"},{name:"connectionType",reg:/^connection:(new|existing)/,format:"connection:%s"},{name:"mid",reg:/^mid:([^\s]*)/,format:"mid:%s"},{name:"msid",reg:/^msid:(.*)/,format:"msid:%s"},{name:"ptime",reg:/^ptime:(\d*(?:\.\d*)*)/,format:"ptime:%d"},{name:"maxptime",reg:/^maxptime:(\d*(?:\.\d*)*)/,format:"maxptime:%d"},{name:"direction",reg:/^(sendrecv|recvonly|sendonly|inactive)/},{name:"icelite",reg:/^(ice-lite)/},{name:"iceUfrag",reg:/^ice-ufrag:(\S*)/,format:"ice-ufrag:%s"},{name:"icePwd",reg:/^ice-pwd:(\S*)/,format:"ice-pwd:%s"},{name:"fingerprint",reg:/^fingerprint:(\S*) (\S*)/,names:["type","hash"],format:"fingerprint:%s %s"},{push:"candidates",reg:/^candidate:(\S*) (\d*) (\S*) (\d*) (\S*) (\d*) typ (\S*)(?: raddr (\S*) rport (\d*))?(?: tcptype (\S*))?(?: generation (\d*))?(?: network-id (\d*))?(?: network-cost (\d*))?/,names:["foundation","component","transport","priority","ip","port","type","raddr","rport","tcptype","generation","network-id","network-cost"],format:function(e){var t="candidate:%s %d %s %d %s %d typ %s";t=(t+=null!=e.raddr?" raddr %s rport %d":"%v%v")+(null!=e.tcptype?" tcptype %s":"%v");return null!=e.generation&&(t+=" generation %d"),t+(null!=e["network-id"]?" network-id %d":"%v")+(null!=e["network-cost"]?" network-cost %d":"%v")}},{name:"endOfCandidates",reg:/^(end-of-candidates)/},{name:"remoteCandidates",reg:/^remote-candidates:(.*)/,format:"remote-candidates:%s"},{name:"iceOptions",reg:/^ice-options:(\S*)/,format:"ice-options:%s"},{push:"ssrcs",reg:/^ssrc:(\d*) ([\w_-]*)(?::(.*))?/,names:["id","attribute","value"],format:function(e){var t="ssrc:%d";return null!=e.attribute&&(t+=" %s",null!=e.value)&&(t+=":%s"),t}},{push:"ssrcGroups",reg:/^ssrc-group:([\x21\x23\x24\x25\x26\x27\x2A\x2B\x2D\x2E\w]*) (.*)/,names:["semantics","ssrcs"],format:"ssrc-group:%s %s"},{name:"msidSemantic",reg:/^msid-semantic:\s?(\w*) (\S*)/,names:["semantic","token"],format:"msid-semantic: %s %s"},{push:"groups",reg:/^group:(\w*) (.*)/,names:["type","mids"],format:"group:%s %s"},{name:"rtcpMux",reg:/^(rtcp-mux)/},{name:"rtcpRsize",reg:/^(rtcp-rsize)/},{name:"sctpmap",reg:/^sctpmap:([\w_/]*) (\S*)(?: (\S*))?/,names:["sctpmapNumber","app","maxMessageSize"],format:function(e){return null!=e.maxMessageSize?"sctpmap:%s %s %s":"sctpmap:%s %s"}},{name:"xGoogleFlag",reg:/^x-google-flag:([^\s]*)/,format:"x-google-flag:%s"},{push:"rids",reg:/^rid:([\d\w]+) (\w+)(?: ([\S| ]*))?/,names:["id","direction","params"],format:function(e){return e.params?"rid:%s %s %s":"rid:%s %s"}},{push:"imageattrs",reg:new RegExp("^imageattr:(\\d+|\\*)[\\s\\t]+(send|recv)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*)(?:[\\s\\t]+(recv|send)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*))?"),names:["pt","dir1","attrs1","dir2","attrs2"],format:function(e){return"imageattr:%s %s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast",reg:new RegExp("^simulcast:(send|recv) ([a-zA-Z0-9\\-_~;,]+)(?:\\s?(send|recv) ([a-zA-Z0-9\\-_~;,]+))?$"),names:["dir1","list1","dir2","list2"],format:function(e){return"simulcast:%s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast_03",reg:/^simulcast:[\s\t]+([\S+\s\t]+)$/,names:["value"],format:"simulcast: %s"},{name:"framerate",reg:/^framerate:(\d+(?:$|\.\d+))/,format:"framerate:%s"},{name:"sourceFilter",reg:/^source-filter: *(excl|incl) (\S*) (IP4|IP6|\*) (\S*) (.*)/,names:["filterMode","netType","addressTypes","destAddress","srcList"],format:"source-filter: %s %s %s %s %s"},{name:"bundleOnly",reg:/^(bundle-only)/},{name:"label",reg:/^label:(.+)/,format:"label:%s"},{name:"sctpPort",reg:/^sctp-port:(\d+)$/,format:"sctp-port:%s"},{name:"maxMessageSize",reg:/^max-message-size:(\d+)$/,format:"max-message-size:%s"},{push:"tsRefClocks",reg:/^ts-refclk:([^\s=]*)(?:=(\S*))?/,names:["clksrc","clksrcExt"],format:function(e){return"ts-refclk:%s"+(null!=e.clksrcExt?"=%s":"")}},{name:"mediaClk",reg:/^mediaclk:(?:id=(\S*))? *([^\s=]*)(?:=(\S*))?(?: *rate=(\d+)\/(\d+))?/,names:["id","mediaClockName","mediaClockValue","rateNumerator","rateDenominator"],format:function(e){var t="mediaclk:";return(t+=null!=e.id?"id=%s %s":"%v%s")+(null!=e.mediaClockValue?"=%s":"")+(null!=e.rateNumerator?" rate=%s":"")+(null!=e.rateDenominator?"/%s":"")}},{name:"keywords",reg:/^keywds:(.+)$/,format:"keywds:%s"},{name:"content",reg:/^content:(.+)/,format:"content:%s"},{name:"bfcpFloorCtrl",reg:/^floorctrl:(c-only|s-only|c-s)/,format:"floorctrl:%s"},{name:"bfcpConfId",reg:/^confid:(\d+)/,format:"confid:%s"},{name:"bfcpUserId",reg:/^userid:(\d+)/,format:"userid:%s"},{name:"bfcpFloorId",reg:/^floorid:(.+) (?:m-stream|mstrm):(.+)/,names:["id","mStream"],format:"floorid:%s mstrm:%s"},{push:"invalid",names:["value"]}]};Object.keys(t).forEach((function(e){t[e].forEach((function(e){e.reg||(e.reg=/(.*)/),e.format||(e.format="%s")}))}))},8844:function(e,t,n){var r=n(937),i=n(2473);n=n(7893);t.grammar=n,t.write=i,t.parse=r.parse,t.parseParams=r.parseParams,t.parseFmtpConfig=r.parseFmtpConfig,t.parsePayloads=r.parsePayloads,t.parseRemoteCandidates=r.parseRemoteCandidates,t.parseImageAttributes=r.parseImageAttributes,t.parseSimulcastStreamList=r.parseSimulcastStreamList},937:function(e,t,n){function r(e,t,n){var r=e.name&&e.names,i=(r=(e.push&&!t[e.push]?t[e.push]=[]:r&&!t[e.name]&&(t[e.name]={}),e.push?{}:r?t[e.name]:t),n.match(e.reg)),s=r,a=e.names;if((n=e.name)&&!a)s[n]=o(i[1]);else for(var u=0;u<a.length;u+=1)null!=i[u+1]&&(s[a[u]]=o(i[u+1]));e.push&&t[e.push].push(r)}function i(e,t){var n=t.split(/=(.+)/,2);return 2===n.length?e[n[0]]=o(n[1]):1===n.length&&1<t.length&&(e[n[0]]=void 0),e}var o=function(e){return String(Number(e))===e?Number(e):e},s=n(7893),a=RegExp.prototype.test.bind(/^([a-z])=(.*)/);t.parse=function(e){var t={},n=[],i=t;return e.split(/(\r\n|\r|\n)/).filter(a).forEach((function(e){var t=e[0],o=e.slice(2);"m"===t&&(n.push({rtp:[],fmtp:[]}),i=n[n.length-1]);for(var a=0;a<(s[t]||[]).length;a+=1){var u=s[t][a];if(u.reg.test(o))return r(u,i,o)}})),t.media=n,t},t.parseParams=function(e){return e.split(/;\s?/).reduce(i,{})},t.parseFmtpConfig=t.parseParams,t.parsePayloads=function(e){return e.toString().split(" ").map(Number)},t.parseRemoteCandidates=function(e){for(var t=[],n=e.split(" ").map(o),r=0;r<n.length;r+=3)t.push({component:n[r],ip:n[r+1],port:n[r+2]});return t},t.parseImageAttributes=function(e){return e.split(" ").map((function(e){return e.substring(1,e.length-1).split(",").reduce(i,{})}))},t.parseSimulcastStreamList=function(e){return e.split(";").map((function(e){return e.split(",").map((function(e){var t,n=!1;return"~"!==e[0]?t=o(e):(t=o(e.substring(1,e.length)),n=!0),{scid:t,paused:n}}))}))}},2473:function(e,t,n){function r(e,t,n){var r=[e+"="+(t.format instanceof Function?t.format(t.push?n:n[t.name]):t.format)];if(t.names)for(var i=0;i<t.names.length;i+=1){var s=t.names[i];r.push(t.name?n[t.name][s]:n[t.names[i]])}else r.push(n[t.name]);return function(e){var t=1,n=arguments,r=n.length;return e.replace(o,(function(e){if(r<=t)return e;var i=n[t];switch(t+=1,e){case"%%":return"%";case"%s":return String(i);case"%d":return Number(i);case"%v":return""}}))}.apply(null,r)}var i=n(7893),o=/%[sdv%]/g,s=["v","o","s","i","u","e","p","c","b","t","r","z","a"],a=["i","c","b","a"];e.exports=function(e,t){t=t||{},null==e.version&&(e.version=0),null==e.name&&(e.name=" "),e.media.forEach((function(e){null==e.payloads&&(e.payloads="")}));var n=t.outerOrder||s,o=t.innerOrder||a,u=[];return n.forEach((function(t){i[t].forEach((function(n){n.name in e&&null!=e[n.name]?u.push(r(t,n,e)):n.push in e&&null!=e[n.push]&&e[n.push].forEach((function(e){u.push(r(t,n,e))}))}))})),e.media.forEach((function(e){u.push(r("m",i.m[0],e)),o.forEach((function(t){i[t].forEach((function(n){n.name in e&&null!=e[n.name]?u.push(r(t,n,e)):n.push in e&&null!=e[n.push]&&e[n.push].forEach((function(e){u.push(r(t,n,e))}))}))}))})),u.join("\r\n")+"\r\n"}},962:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"MAX",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"v1ToV6",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"v6",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"v6ToV1",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"v7",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return m.default}});var r=g(n(4768)),i=g(n(8413)),o=g(n(7777)),s=g(n(2463)),a=g(n(3253)),u=g(n(3948)),c=g(n(4659)),l=g(n(970)),d=g(n(7401)),h=g(n(2752)),f=g(n(4736)),p=g(n(1527)),v=g(n(6838)),m=g(n(5830));function g(e){return e&&e.__esModule?e:{default:e}}},4768:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="ffffffff-ffff-ffff-ffff-ffffffffffff"},2414:function(e,t){function n(e){return 14+(e+64>>>9<<4)+1}function r(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function i(e,t,n,i,o,s){return r((t=r(r(t,e),r(i,s)))<<o|t>>>32-o,n)}function o(e,t,n,r,o,s,a){return i(t&n|~t&r,e,t,o,s,a)}function s(e,t,n,r,o,s,a){return i(t&r|n&~r,e,t,o,s,a)}function a(e,t,n,r,o,s,a){return i(t^n^r,e,t,o,s,a)}function u(e,t,n,r,o,s,a){return i(n^(t|~r),e,t,o,s,a)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var i=0;i<t.length;++i)e[i]=t.charCodeAt(i)}for(var c=((e,t)=>{e[t>>5]|=128<<t%32,e[n(t)-1]=t;for(var i=1732584193,c=-271733879,l=-1732584194,d=271733878,h=0;h<e.length;h+=16){var f=i,p=c,v=l,m=d;i=o(i,c,l,d,e[h],7,-680876936),d=o(d,i,c,l,e[h+1],12,-389564586),l=o(l,d,i,c,e[h+2],17,606105819),c=o(c,l,d,i,e[h+3],22,-1044525330),i=o(i,c,l,d,e[h+4],7,-176418897),d=o(d,i,c,l,e[h+5],12,1200080426),l=o(l,d,i,c,e[h+6],17,-1473231341),c=o(c,l,d,i,e[h+7],22,-45705983),i=o(i,c,l,d,e[h+8],7,1770035416),d=o(d,i,c,l,e[h+9],12,-1958414417),l=o(l,d,i,c,e[h+10],17,-42063),c=o(c,l,d,i,e[h+11],22,-1990404162),i=o(i,c,l,d,e[h+12],7,1804603682),d=o(d,i,c,l,e[h+13],12,-40341101),l=o(l,d,i,c,e[h+14],17,-1502002290),c=o(c,l,d,i,e[h+15],22,1236535329),i=s(i,c,l,d,e[h+1],5,-165796510),d=s(d,i,c,l,e[h+6],9,-1069501632),l=s(l,d,i,c,e[h+11],14,643717713),c=s(c,l,d,i,e[h],20,-373897302),i=s(i,c,l,d,e[h+5],5,-701558691),d=s(d,i,c,l,e[h+10],9,38016083),l=s(l,d,i,c,e[h+15],14,-660478335),c=s(c,l,d,i,e[h+4],20,-405537848),i=s(i,c,l,d,e[h+9],5,568446438),d=s(d,i,c,l,e[h+14],9,-1019803690),l=s(l,d,i,c,e[h+3],14,-187363961),c=s(c,l,d,i,e[h+8],20,1163531501),i=s(i,c,l,d,e[h+13],5,-1444681467),d=s(d,i,c,l,e[h+2],9,-51403784),l=s(l,d,i,c,e[h+7],14,1735328473),c=s(c,l,d,i,e[h+12],20,-1926607734),i=a(i,c,l,d,e[h+5],4,-378558),d=a(d,i,c,l,e[h+8],11,-2022574463),l=a(l,d,i,c,e[h+11],16,1839030562),c=a(c,l,d,i,e[h+14],23,-35309556),i=a(i,c,l,d,e[h+1],4,-1530992060),d=a(d,i,c,l,e[h+4],11,1272893353),l=a(l,d,i,c,e[h+7],16,-155497632),c=a(c,l,d,i,e[h+10],23,-1094730640),i=a(i,c,l,d,e[h+13],4,681279174),d=a(d,i,c,l,e[h],11,-358537222),l=a(l,d,i,c,e[h+3],16,-722521979),c=a(c,l,d,i,e[h+6],23,76029189),i=a(i,c,l,d,e[h+9],4,-640364487),d=a(d,i,c,l,e[h+12],11,-421815835),l=a(l,d,i,c,e[h+15],16,530742520),c=a(c,l,d,i,e[h+2],23,-995338651),i=u(i,c,l,d,e[h],6,-198630844),d=u(d,i,c,l,e[h+7],10,1126891415),l=u(l,d,i,c,e[h+14],15,-1416354905),c=u(c,l,d,i,e[h+5],21,-57434055),i=u(i,c,l,d,e[h+12],6,1700485571),d=u(d,i,c,l,e[h+3],10,-1894986606),l=u(l,d,i,c,e[h+10],15,-1051523),c=u(c,l,d,i,e[h+1],21,-2054922799),i=u(i,c,l,d,e[h+8],6,1873313359),d=u(d,i,c,l,e[h+15],10,-30611744),l=u(l,d,i,c,e[h+6],15,-1560198380),c=u(c,l,d,i,e[h+13],21,1309151649),i=u(i,c,l,d,e[h+4],6,-145523070),d=u(d,i,c,l,e[h+11],10,-1120210379),l=u(l,d,i,c,e[h+2],15,718787259),c=u(c,l,d,i,e[h+9],21,-343485551),i=r(i,f),c=r(c,p),l=r(l,v),d=r(d,m)}return[i,c,l,d]})((e=>{if(0===e.length)return[];for(var t=8*e.length,r=new Uint32Array(n(t)),i=0;i<t;i+=8)r[i>>5]|=(255&e[i/8])<<i%32;return r})(e),8*e.length),l=[],d=32*c.length,h="0123456789abcdef",f=0;f<d;f+=8){var p=c[f>>5]>>>f%32&255;p=parseInt(h.charAt(p>>>4&15)+h.charAt(15&p),16);l.push(p)}return l}},7167:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);t.default={randomUUID:n}},8413:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},7777:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(n=n(6838))&&n.__esModule?n:{default:n};t.default=function(e){var t,n;if((0,r.default)(e))return(n=new Uint8Array(16))[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n;throw TypeError("Invalid UUID")}},3541:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i},5175:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(r)};var n,r=new Uint8Array(16)},4361:function(e,t){function n(e,t){return e<<t|e>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var i=unescape(encodeURIComponent(e));e=[];for(var o=0;o<i.length;++o)e.push(i.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var s=e.length/4+2,a=Math.ceil(s/16),u=new Array(a),c=0;c<a;++c){for(var l=new Uint32Array(16),d=0;d<16;++d)l[d]=e[64*c+4*d]<<24|e[64*c+4*d+1]<<16|e[64*c+4*d+2]<<8|e[64*c+4*d+3];u[c]=l}u[a-1][14]=8*(e.length-1)/Math.pow(2,32),u[a-1][14]=Math.floor(u[a-1][14]),u[a-1][15]=8*(e.length-1)&4294967295;for(var h=0;h<a;++h){for(var f=new Uint32Array(80),p=0;p<16;++p)f[p]=u[h][p];for(var v=16;v<80;++v)f[v]=n(f[v-3]^f[v-8]^f[v-14]^f[v-16],1);for(var m=r[0],g=r[1],_=r[2],y=r[3],b=r[4],w=0;w<80;++w){var T=Math.floor(w/20);T=n(m,5)+((e,t,n,r)=>{switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}})(T,g,_,y)+b+t[T]+f[w]>>>0,b=y,y=_,_=n(g,30)>>>0,g=m,m=T}r[0]=r[0]+m>>>0,r[1]=r[1]+g>>>0,r[2]=r[2]+_>>>0,r[3]=r[3]+y>>>0,r[4]=r[4]+b>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}},2463:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=s;for(var r=(n=n(6838))&&n.__esModule?n:{default:n},i=[],o=0;o<256;++o)i.push((o+256).toString(16).slice(1));function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase()}t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e=s(e,t),(0,r.default)(e))return e;throw TypeError("Stringified UUID is invalid")}},3253:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i,o,s=(r=n(5175))&&r.__esModule?r:{default:r},a=n(2463),u=0,c=0;t.default=function(e,t,n){var r=t&&n||0,l=t||new Array(16),d=(e=e||{}).node,h=(n=e.clockseq,e._v6||(d=d||i,null==n&&(n=o)),null!=d&&null!=n||(h=e.random||(e.rng||s.default)(),null==d&&(d=[h[0],h[1],h[2],h[3],h[4],h[5]],i||e._v6||(d[0]|=1,i=d)),null==n&&(n=16383&(h[6]<<8|h[7]),void 0!==o||e._v6||(o=n))),void 0!==e.msecs?e.msecs:Date.now()),f=void 0!==e.nsecs?e.nsecs:c+1,p=h-u+(f-c)/1e4;if(p<0&&void 0===e.clockseq&&(n=n+1&16383),1e4<=(f=(p<0||u<h)&&void 0===e.nsecs?0:f))throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=h,o=n,p=(1e4*(268435455&(h+=122192928e5))+(c=f))%4294967296,l[r++]=p>>>24&255,l[r++]=p>>>16&255,l[r++]=p>>>8&255,l[r++]=255&p,l[r++]=(e=h/4294967296*1e4&268435455)>>>8&255,l[r++]=255&e,l[r++]=e>>>24&15|16,l[r++]=e>>>16&255,l[r++]=n>>>8|128,l[r++]=255&n;for(var v=0;v<6;++v)l[r+v]=d[v];return t||(0,a.unsafeStringify)(l)}},3948:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=(e=>Uint8Array.of((15&e[6])<<4|e[7]>>4&15,(15&e[7])<<4|(240&e[4])>>4,(15&e[4])<<4|(240&e[5])>>4,(15&e[5])<<4|(240&e[0])>>4,(15&e[0])<<4|(240&e[1])>>4,(15&e[1])<<4|(240&e[2])>>4,96|15&e[2],e[3],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]))("string"==typeof e?(0,r.default)(e):e);return"string"==typeof e?(0,i.unsafeStringify)(t):t};var r=(t=n(7777))&&t.__esModule?t:{default:t},i=n(2463)},4659:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4416));n=i(n(2414));function i(e){return e&&e.__esModule?e:{default:e}}r=(0,r.default)("v3",48,n.default),t.default=r},4416:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,n){function a(e,o,s,a){var u;if("string"==typeof e&&(e=(e=>{e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t})(e)),16!==(null==(u=o="string"==typeof o?(0,i.default)(o):o)?void 0:u.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var c=new Uint8Array(16+e.length);if(c.set(o),c.set(e,o.length),(c=n(c))[6]=15&c[6]|t,c[8]=63&c[8]|128,s){a=a||0;for(var l=0;l<16;++l)s[a+l]=c[l];return s}return(0,r.unsafeStringify)(c)}try{a.name=e}catch(e){}return a.DNS=o,a.URL=s,a};var r=n(2463),i=(n=n(7777))&&n.__esModule?n:{default:n},o=t.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",s=t.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8"},970:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(7167)),i=s(n(5175)),o=n(2463);function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,n){if(r.default.randomUUID&&!t&&!e)return r.default.randomUUID();var s=(e=e||{}).random||(e.rng||i.default)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){n=n||0;for(var a=0;a<16;++a)t[n+a]=s[a];return t}return(0,o.unsafeStringify)(s)}},7401:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4416));n=i(n(4361));function i(e){return e&&e.__esModule?e:{default:e}}r=(0,r.default)("v5",80,n.default),t.default=r},2752:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=(0,i.default)(u(u({},e),{},{_v6:!0}),new Uint8Array(16));if(s=(0,o.default)(s),t){for(var a=0;a<16;a++)t[n+a]=s[a];return t}return(0,r.unsafeStringify)(s)};var r=n(2463),i=s(n(3253)),o=s(n(3948));function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){var r,i;r=e,i=n[t=t],(t=(e=>"symbol"==typeof(e=((e,t)=>{if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);if("object"!=typeof(n=n.call(e,t||"default")))return n;throw new TypeError("@@toPrimitive must return a primitive value.")})(e,"string"))?e:e+"")(t))in r?Object.defineProperty(r,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[t]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},4736:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=(e=>Uint8Array.of((15&e[3])<<4|e[4]>>4&15,(15&e[4])<<4|(240&e[5])>>4,(15&e[5])<<4|15&e[6],e[7],(15&e[1])<<4|(240&e[2])>>4,(15&e[2])<<4|(240&e[3])>>4,16|(240&e[0])>>4,(15&e[0])<<4|(240&e[1])>>4,e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]))("string"==typeof e?(0,r.default)(e):e);return"string"==typeof e?(0,i.unsafeStringify)(t):t};var r=(t=n(7777))&&t.__esModule?t:{default:t},i=n(2463)},1527:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(5175))&&r.__esModule?r:{default:r},o=n(2463),s=null,a=null,u=0;t.default=function(e,t,n){e=e||{};n=t&&n||0;var r=t||new Uint8Array(16),c=e.random||(e.rng||i.default)(),l=void 0!==e.msecs?e.msecs:Date.now(),d=void 0!==e.seq?e.seq:null,h=a,f=s;return u<l&&void 0===e.msecs&&(u=l,null!==d)&&(f=h=null),null!==d&&(h=(d=2147483647<d?2147483647:d)>>>19&4095,f=524287&d),null!==h&&null!==f||(h=(h=127&c[6])<<8|c[7],f=(f=(f=63&c[8])<<8|c[9])<<5|c[10]>>>3),u<l+1e4&&null===d?524287<++f&&(f=0,4095<++h)&&(h=0,u++):u=l,a=h,s=f,r[n++]=u/1099511627776&255,r[n++]=u/4294967296&255,r[n++]=u/16777216&255,r[n++]=u/65536&255,r[n++]=u/256&255,r[n++]=255&u,r[n++]=h>>>4&15|112,r[n++]=255&h,r[n++]=f>>>13&63|128,r[n++]=f>>>5&255,r[n++]=f<<3&255|7&c[10],r[n++]=c[11],r[n++]=c[12],r[n++]=c[13],r[n++]=c[14],r[+n]=c[15],t||(0,o.unsafeStringify)(r)}},6838:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(n=n(3541))&&n.__esModule?n:{default:n};t.default=function(e){return"string"==typeof e&&r.default.test(e)}},5830:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(n=n(6838))&&n.__esModule?n:{default:n};t.default=function(e){if((0,r.default)(e))return parseInt(e.slice(14,15),16);throw TypeError("Invalid UUID")}},3422:function(e,t,n){var r=n(8569),i=r(n(2942)),o=r(n(8408)),s=n(8878),a="SIP_MIX";function u(e){"undefined"!=typeof window&&window.CustomEvent&&(e=new CustomEvent("__AppLog",{detail:e}),document.dispatchEvent(e))}e.exports=(()=>(0,o.default)((function e(t){(0,i.default)(this,e),t?(this._debug=s.default("".concat(a,":").concat(t)),this._warn=s.default("".concat(a,":WARN:").concat(t)),this._error=s.default("".concat(a,":ERROR:").concat(t))):(this._debug=s.default(a),this._warn=s.default("".concat(a,":WARN")),this._error=s.default("".concat(a,":ERROR"))),this._debug.log=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];console.info.apply(console,n),u({type:"info",app:a,prefix:t,args:n})},this._warn.log=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];console.warn.apply(console,n),u({type:"warn",app:a,prefix:t,args:n})},this._error.log=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];console.error.apply(console,n),u({type:"error",app:a,prefix:t,args:n})}}),[{key:"debug",get:function(){return this._debug}},{key:"warn",get:function(){return this._warn}},{key:"error",get:function(){return this._error}}]))()},604:function(e,t,n){var r=n(8569),i=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(n(2942))),o=r(n(8408)),s=r(n(6759)),a=r(n(9165)),u=r(n(5878)),c=n(9032),l=r(n(9896)),d=r(n(8239)),h=r(n(7196));r=(e=>{function t(e){var n,r,o;return(0,i.default)(this,t),n=this,r=t,r=(0,a.default)(r),(r=(0,s.default)(n,(()=>{if("undefined"!=typeof Reflect&&Reflect.construct&&!Reflect.construct.sham){if("function"==typeof Proxy)return 1;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}}})()?Reflect.construct(r,o||[],(0,a.default)(n).constructor):r.apply(n,o)))._session=e,r._direction=null,r._contentType=null,r._body=null,r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"contentType",get:function(){return this._contentType}},{key:"body",get:function(){return this._body}},{key:"send",value:function(e,t){var n=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};if(this._direction="outgoing",void 0===e)throw new TypeError("Not enough arguments");if(this._session.status!==this._session.C.STATUS_CONFIRMED&&this._session.status!==this._session.C.STATUS_WAITING_FOR_ACK)throw new d.default.InvalidStateError(this._session.status);this._contentType=e,this._body=t;var i=h.default.cloneArray(r.extraHeaders);i.push("Content-Type: ".concat(e)),this._session.newMessage({originator:"local",info:this,request:this.request}),this._session.sendRequest(l.default.MESSAGE,{extraHeaders:i,eventHandlers:{onSuccessResponse:function(e){n.emit("succeeded",{originator:"remote",response:e}),r.eventHandlers&&"function"==typeof r.eventHandlers.succeeded&&r.eventHandlers.succeeded({originator:"remote",response:e})},onErrorResponse:function(e){n.emit("failed",{originator:"remote",response:e}),r.eventHandlers&&"function"==typeof r.eventHandlers.failed&&r.eventHandlers.failed({originator:"remote",response:e})},onTransportError:function(){n._session.onTransportError()},onRequestTimeout:function(){n._session.onRequestTimeout()},onDialogError:function(){n._session.onDialogError()}},body:t})}},{key:"init_incoming",value:function(e){this._direction="incoming",(this.request=e).reply(200),this._contentType=e.hasHeader("Content-Type")?e.getHeader("Content-Type").toLowerCase():void 0,this._body=e.body,this._session.newMessage({originator:"remote",info:this,request:e})}}])})(c.EventEmitter),t.default=r,e.exports=t.default},1521:function(e,t,n){var r=n(8569),i=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(n(2942))),o=r(n(8408)),s=r(n(6759)),a=r(n(9165)),u=r(n(5878)),c=n(9032),l=r(n(5409)),d=r(n(9896)),h=r(n(2602)),f=r(n(7196)),p=r(n(5117)),v=r(n(8239)),m=r(n(2517)),g=new l.default("Subscribe");t.default=(e=>{function t(e){var n,r,o;return(0,i.default)(this,t),n=this,r=t,r=(0,a.default)(r),(r=(0,s.default)(n,(()=>{if("undefined"!=typeof Reflect&&Reflect.construct&&!Reflect.construct.sham){if("function"==typeof Proxy)return 1;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}}})()?Reflect.construct(r,o||[],(0,a.default)(n).constructor):r.apply(n,o)))._ua=e,r._request=null,r._closed=!1,r._direction=null,r._local_identity=null,r._remote_identity=null,r._is_replied=!1,r._data={},r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"direction",get:function(){return this._direction}},{key:"local_identity",get:function(){return this._local_identity}},{key:"remote_identity",get:function(){return this._remote_identity}},{key:"send",value:function(e,t){var n=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},i=e;if(void 0===e)throw new TypeError("A target is required for SUBSCRIBE");if(!(e=this._ua.normalizeTarget(e)))throw new TypeError("Invalid target: ".concat(i));i=f.default.cloneArray(r.extraHeaders);var o,s=f.default.cloneObject(r.eventHandlers);for(o in s)Object.prototype.hasOwnProperty.call(s,o)&&this.on(o,s[o]);r=this._ua.contact.toString({anonymous:!1,outbound:!0}),i.push("Contact: ".concat(r)),this._request=new h.default.OutgoingRequest(d.default.SUBSCRIBE,e,this._ua,null,i),t&&(this._request.body=t),r=new p.default(this._ua,this._request,{onRequestTimeout:function(){n._onRequestTimeout()},onTransportError:function(){n._onTransportError()},onReceiveResponse:function(e){n._receiveResponse(e)}}),this._newSubscribe("local",this._request),r.send()}},{key:"init_incoming",value:function(e){this._request=e,this._newSubscribe("remote",e),this._is_replied||(this._is_replied=!0,e.reply(200)),this._close()}},{key:"accept",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=f.default.cloneArray(e.extraHeaders);e=e.body;if("incoming"!==this._direction)throw new v.default.NotSupportedError('"accept" not supported for outgoing Options');if(this._is_replied)throw new Error("incoming Options already replied");this._is_replied=!0,this._request.reply(200,null,t,e)}},{key:"reject",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.status_code||480,n=e.reason_phrase,r=f.default.cloneArray(e.extraHeaders);e=e.body;if("incoming"!==this._direction)throw new v.default.NotSupportedError('"reject" not supported for outgoing Options');if(this._is_replied)throw new Error("incoming Options already replied");if(t<300||700<=t)throw new TypeError("Invalid status_code: ".concat(t));this._is_replied=!0,this._request.reply(t,n,r,e)}},{key:"_receiveResponse",value:function(e){if(!this._closed)switch(!0){case/^1[0-9]{2}$/.test(e.status_code):break;case/^2[0-9]{2}$/.test(e.status_code):this._succeeded("remote",e);break;default:var t=f.default.sipErrorCause(e.status_code);this._failed("remote",e,t)}}},{key:"_onRequestTimeout",value:function(){this._closed||this._failed("system",null,d.default.causes.REQUEST_TIMEOUT)}},{key:"_onTransportError",value:function(){this._closed||this._failed("system",null,d.default.causes.CONNECTION_ERROR)}},{key:"_close",value:function(){this._closed=!0,this._ua.destroyMessage(this)}},{key:"_newSubscribe",value:function(e,t){"remote"===e?(this._direction="incoming",this._local_identity=t.to,this._remote_identity=t.from):"local"===e&&(this._direction="outgoing",this._local_identity=t.from,this._remote_identity=t.to)}},{key:"_failed",value:function(e,t,n){g.debug("SUBSCRIBE failed"),this._close(),g.debug('emit "failed"'),this.emit("failed",{originator:e,response:t||null,cause:n})}},{key:"_succeeded",value:function(e,t){g.debug("SUBSCRIBE succeeded");var n=new m.default(this,t,"UAC",m.default.C.STATUS_CONFIRMED);this._ua.newDialog(n),g.debug('emit "succeeded"'),this.emit("succeeded",{originator:e,response:t})}},{key:"receiveRequest",value:function(e){this.emit("notify",e),e.reply(200)}}])})(c.EventEmitter),e.exports=t.default},3897:function(e,t,n){var r=n(8569),i=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(n(5117))),o=r(n(2517)),s=r(n(7356)),a=r(n(604)),u=r(n(1521)),c=r(n(4524)),l=r(n(5409)),d=r(n(7196)),h=r(n(8239)),f=r(n(9896)),p=r(n(7019)),v=r(n(2602));function m(e,t){var n,r,i,o,s="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(s)return r=!(n=!0),{s:function(){s=s.call(e)},n:function(){var e=s.next();return n=e.done,e},e:function(e){r=!0,i=e},f:function(){try{n||null==s.return||s.return()}finally{if(r)throw i}}};if(Array.isArray(e)||(s=((e,t)=>{var n;if(e)return"string"==typeof e?g(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0})(e))||t&&e&&"number"==typeof e.length)return s&&(e=s),o=0,{s:t=function(){},n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(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}var _=new l.default("SIP_MIX:Patch"),y=s.default.C;v.default.OutgoingRequest.prototype.toString=function(){var e,t="".concat(this.method," ").concat(this.ruri," SIP/2.0\r\n");for(e in this.headers)if(Object.prototype.hasOwnProperty.call(this.headers,e)){var n,r=m(this.headers[e]);try{for(r.s();!(n=r.n()).done;){var i=n.value;t+="".concat(e,": ").concat(i,"\r\n")}}catch(e){r.e(e)}finally{r.f()}}var o,s=m(this.extraHeaders);try{for(s.s();!(o=s.n()).done;){var a=o.value;t+="".concat(a.trim(),"\r\n")}}catch(e){s.e(e)}finally{s.f()}var u=[];switch(this.method){case f.default.REGISTER:u.push("path","gruu");break;case f.default.INVITE:this.ua.configuration.session_timers&&u.push("timer"),(this.ua.contact.pub_gruu||this.ua.contact.temp_gruu)&&u.push("gruu"),u.push("ice","replaces");break;case f.default.UPDATE:this.ua.configuration.session_timers&&u.push("timer"),u.push("ice")}u.push("outbound"),u.push("ccinfo");var c=this.ua.configuration.user_agent||f.default.USER_AGENT;return t=(t=(t+="Allow: ".concat(f.default.ALLOWED_METHODS,"\r\n"))+"Supported: ".concat(u,"\r\n"))+"User-Agent: ".concat(c,"\r\n"),this.body?(c=d.default.str_utf8_length(this.body),t=(t+="Content-Length: ".concat(c,"\r\n\r\n"))+this.body):t+="Content-Length: 0\r\n\r\n",t},c.default.Utils.isFunction=function(e){return void 0!==e&&("[object Function]"===Object.prototype.toString.call(e)||"[object AsyncFunction]"===Object.prototype.toString.call(e))},s.default.prototype.connect=function(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=2<arguments.length?arguments[2]:void 0,i=(_.debug("connect()"),e),o=d.default.cloneObject(n.eventHandlers),s=d.default.cloneArray(n.extraHeaders),a=d.default.cloneObject(n.mediaConstraints,{audio:!0,video:!0}),u=n.mediaStream||null,c=d.default.cloneObject(n.pcConfig,{iceServers:[]}),l=n.rtcConstraints||null,m=n.rtcOfferConstraints||null;if(this._rtcOfferConstraints=m,this._rtcAnswerConstraints=n.rtcAnswerConstraints||null,this._data=n.data||this._data,void 0===e)throw new TypeError("Not enough arguments");if(this._status!==y.STATUS_NULL)throw new h.default.InvalidStateError(this._status);if("undefined"!=typeof window){if(!window.RTCPeerConnection)throw new h.default.NotSupportedError("WebRTC not supported")}else if("undefined"!=typeof wx&&wx.canIUse){if(!wx.canIUse("live-player"))throw new h.default.NotSupportedError("live-player not supported");if(!wx.canIUse("live-pusher"))throw new h.default.NotSupportedError("live-pusher not supported")}if(!(e=this._ua.normalizeTarget(e)))throw new TypeError("Invalid target: ".concat(i));for(t in this._sessionTimers.enabled&&d.default.isDecimal(n.sessionTimersExpires)&&(n.sessionTimersExpires>=f.default.MIN_SESSION_EXPIRES?this._sessionTimers.defaultExpires=n.sessionTimersExpires:this._sessionTimers.defaultExpires=f.default.SESSION_EXPIRES),o)Object.prototype.hasOwnProperty.call(o,t)&&this.on(t,o[t]);this._from_tag=d.default.newTag();i=n.anonymous||!1;var g={from_tag:this._from_tag};this._contact=this._ua.contact.toString({anonymous:i,outbound:!0}),i?(g.from_display_name="Anonymous",g.from_uri=new p.default("sip","anonymous","anonymous.invalid"),s.push("P-Preferred-Identity: ".concat(this._ua.configuration.uri.toString())),s.push("Privacy: id")):n.fromUserName&&(g.from_uri=new p.default("sip",n.fromUserName,this._ua.configuration.uri.host),s.push("P-Preferred-Identity: ".concat(this._ua.configuration.uri.toString()))),n.fromDisplayName&&(g.from_display_name=n.fromDisplayName),s.push("Contact: ".concat(this._contact)),"webrtc"===n.mediaType&&s.push("Content-Type: application/sdp"),this._sessionTimers.enabled&&s.push("Session-Expires: ".concat(this._sessionTimers.defaultExpires).concat(this._ua.configuration.session_timers_force_refresher?";refresher=uac":"")),n.intercom&&e.setParam("intercom","true"),this._request=new v.default.InitialOutgoingInviteRequest(e,this._ua,g,s),this._id=this._request.call_id+this._from_tag,"webrtc"===n.mediaType&&this._createRTCConnection(c,l),this._direction="outgoing",this._local_identity=this._request.from,this._remote_identity=this._request.to,r&&r(this),this._mediaType=n.mediaType,this._newRTCSession("local",this._request),this._sendInitialRequest(a,m,u)},s.default.prototype._sendInitialRequest=function(e,t,n){var r=this,o=new i.default(this._ua,this._request,{onRequestTimeout:function(){r.onRequestTimeout()},onTransportError:function(){r.onTransportError()},onAuthenticated:function(e){r._request=e},onReceiveResponse:function(e){r._receiveInviteResponse(e)}});"webrtc"===this._mediaType?Promise.resolve().then((function(){return n||(e.audio||e.video?(r._localMediaStreamLocallyGenerated=!0,navigator.mediaDevices.getUserMedia(e).catch((function(e){if(r._status===y.STATUS_TERMINATED)throw new Error("terminated");throw r._failed("local",null,f.default.causes.USER_DENIED_MEDIA_ACCESS),_.warn('emit "getusermediafailed" [error:%o]',e),r.emit("getusermediafailed",e),e}))):void 0)})).then((function(n){if(r._status===y.STATUS_TERMINATED)throw new Error("terminated");return(r._localMediaStream=n)&&n.getTracks().forEach((function(e){r._connection.addTrack(e,n)})),e._recvVideoOnly&&r._connection.getTransceivers().forEach((function(e){e.direction="recvonly"})),r._connecting(r._request),r._createLocalDescription("offer",t).catch((function(e){throw r._failed("local",null,f.default.causes.WEBRTC_ERROR),e}))})).then((function(e){if(r._is_canceled||r._status===y.STATUS_TERMINATED)throw new Error("terminated");r._request.body=e,r._status=y.STATUS_INVITE_SENT,_.debug('emit "sending" [request:%o]',r._request),r.emit("sending",{request:r._request}),o.send()})).catch((function(e){r._status!==y.STATUS_TERMINATED&&_.warn(e)})):("control"===this._data._localParams.mediaType&&this._data._localParams.content?this._request.body=this._data._localParams.content:this._request.body="",this._status=y.STATUS_INVITE_SENT,_.debug('emit "sending" [request:%o]',this._request),this.emit("sending",{request:this._request}),o.send())},s.default.prototype._receiveInviteResponse=function(e){var t,n,r,i=this;if(_.debug("receiveInviteResponse()"),this._dialog&&200<=e.status_code&&e.status_code<=299)return this._dialog.id.call_id===e.call_id&&this._dialog.id.local_tag===e.from_tag&&this._dialog.id.remote_tag===e.to_tag?void this.sendRequest(f.default.ACK):void 0!==(t=new o.default(this,e,"UAC")).error?void _.debug(t.error):(this.sendRequest(f.default.ACK),void this.sendRequest(f.default.BYE));if(this._is_canceled)100<=e.status_code&&e.status_code<200?this._request.cancel(this._cancel_reason):200<=e.status_code&&e.status_code<299&&this._acceptAndTerminate(e);else if(this._status===y.STATUS_INVITE_SENT||this._status===y.STATUS_1XX_RECEIVED)switch(!0){case/^100$/.test(e.status_code):this._status=y.STATUS_1XX_RECEIVED;break;case/^1[0-9]{2}$/.test(e.status_code):e.to_tag?e.hasHeader("contact")&&!this._createDialog(e,"UAC",!0)||(this._status=y.STATUS_1XX_RECEIVED,e.body?"webrtc"===this._mediaType&&(s={originator:"remote",type:"answer",sdp:e.body},_.debug('emit "sdp"'),this.emit("sdp",s),n=new RTCSessionDescription({type:"answer",sdp:s.sdp}),this._connectionPromiseQueue=this._connectionPromiseQueue.then((function(){return i._connection.setRemoteDescription(n)})).then((function(){return i._progress("remote",e)})).catch((function(e){_.warn('emit "peerconnection:setremotedescriptionfailed" [error:%o]',e),i.emit("peerconnection:setremotedescriptionfailed",e)}))):this._progress("remote",e)):_.debug("1xx response received without to tag");break;case/^2[0-9]{2}$/.test(e.status_code):this._status=y.STATUS_CONFIRMED,"webrtc"!==this._mediaType||e.body?this._createDialog(e,"UAC")&&("webrtc"===this._mediaType?(s={originator:"remote",type:"answer",sdp:e.body},_.debug('emit "sdp"'),this.emit("sdp",s),r=new RTCSessionDescription({type:"answer",sdp:s.sdp}),this._connectionPromiseQueue=this._connectionPromiseQueue.then((function(){if("stable"===i._connection.signalingState)return i._connection.createOffer(i._rtcOfferConstraints).then((function(e){return i._connection.setLocalDescription(e)})).catch((function(t){i._acceptAndTerminate(e,500,t.toString()),i._failed("local",e,f.default.causes.WEBRTC_ERROR)}))})).then((function(){i._connection.setRemoteDescription(r).then((function(){i._handleSessionTimersInIncomingResponse(e),i._accepted("remote",e),i.sendRequest(f.default.ACK),i._confirmed("local",null)})).catch((function(t){i._acceptAndTerminate(e,488,"Not Acceptable Here"),i._failed("remote",e,f.default.causes.BAD_MEDIA_DESCRIPTION),_.warn('emit "peerconnection:setremotedescriptionfailed" [error:%o]',t),i.emit("peerconnection:setremotedescriptionfailed",t)}))}))):(this._handleSessionTimersInIncomingResponse(e),this._accepted("remote",e),this.sendRequest(f.default.ACK),this._confirmed("local",null))):(this._acceptAndTerminate(e,400,f.default.causes.MISSING_SDP),this._failed("remote",e,f.default.causes.BAD_MEDIA_DESCRIPTION));break;default:var s=d.default.sipErrorCause(e.status_code);this._failed("remote",e,s)}},s.default.prototype._createDialog=function(e,t,n){var r="UAS"===t?e.to_tag:e.from_tag,i="UAS"===t?e.from_tag:e.to_tag;r=e.call_id+r+i,i=this._earlyDialogs[r];return n?!!i||((i=new o.default(this,e,t,o.default.C.STATUS_EARLY)).error?(_.debug(i.error),this._failed("remote",e,f.default.causes.INTERNAL_ERROR),!1):(this._earlyDialogs[r]=i,!0)):(this._from_tag=e.from_tag,this._to_tag=e.to_tag,i?(i.update(e,t),this._dialog=i,delete this._earlyDialogs[r],!0):(n=new o.default(this,e,t)).error?(_.debug(n.error),this._failed("remote",e,f.default.causes.INTERNAL_ERROR),!1):(this._dialog=n,!0))},s.default.prototype.newMessage=function(e){_.debug("newMessage()"),this.emit("newMessage",e)},s.default.prototype.sendMessage=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};if(_.debug("sendMessage()[InnerSession]"),this._status!==y.STATUS_CONFIRMED&&this._status!==y.STATUS_WAITING_FOR_ACK&&this._status!==y.STATUS_1XX_RECEIVED)throw new h.default.InvalidStateError(this._status);new a.default(this).send(e,t,n)},s.default.prototype.answer=function(){var e=this,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=(_.debug("answer()"),this._request),r=d.default.cloneArray(t.extraHeaders),i=d.default.cloneObject(t.mediaConstraints),o=t.mediaStream||null,s=d.default.cloneObject(t.pcConfig,{iceServers:[]}),a=t.rtcConstraints||null,u=t.rtcAnswerConstraints||null,c=d.default.cloneObject(t.rtcOfferConstraints),l=!1,p=!1,v=!1,g=!1;if(this._rtcAnswerConstraints=u,this._rtcOfferConstraints=t.rtcOfferConstraints||null,this._data=t.data||this._data,"incoming"!==this._direction)throw new h.default.NotSupportedError('"answer" not supported for outgoing RTCSession');if(this._status!==y.STATUS_WAITING_FOR_ANSWER)throw new h.default.InvalidStateError(this._status);if(this._sessionTimers.enabled&&d.default.isDecimal(t.sessionTimersExpires)&&(t.sessionTimersExpires>=f.default.MIN_SESSION_EXPIRES?this._sessionTimers.defaultExpires=t.sessionTimersExpires:this._sessionTimers.defaultExpires=f.default.SESSION_EXPIRES),this._status=y.STATUS_ANSWERED,this._createDialog(n,"UAS"))if(clearTimeout(this._timers.userNoAnswerTimer),r.unshift("Contact: ".concat(this._contact)),this._mediaType=t.mediaType,"webrtc"===this._mediaType){t=n.parseSDP();var b,w=(Array.isArray(t.media)||(t.media=[t.media]),m(t.media));try{for(w.s();!(b=w.n()).done;){var T=b.value;"audio"===T.type&&(l=!0,T.direction&&"sendrecv"!==T.direction||(v=!0)),"video"===T.type&&(p=!0,T.direction&&"sendrecv"!==T.direction||(g=!0))}}catch(t){w.e(t)}finally{w.f()}if(o&&!1===i.audio){var S,C=m(o.getAudioTracks());try{for(C.s();!(S=C.n()).done;){var E=S.value;o.removeTrack(E)}}catch(t){C.e(t)}finally{C.f()}}if(o&&!1===i.video){var A,x=m(o.getVideoTracks());try{for(x.s();!(A=x.n()).done;){var R=A.value;o.removeTrack(R)}}catch(t){x.e(t)}finally{x.f()}}o||void 0!==i.audio||(i.audio=v),o||void 0!==i.video||(i.video=g),o||l||c.offerToReceiveAudio||(i.audio=!1),o||p||c.offerToReceiveVideo||(i.video=!1),this._createRTCConnection(s,a),Promise.resolve().then((function(){return o||(i.audio||i.video?(e._localMediaStreamLocallyGenerated=!0,navigator.mediaDevices.getUserMedia(i).catch((function(t){if(e._status===y.STATUS_TERMINATED)throw new Error("terminated");throw n.reply(480),e._failed("local",null,f.default.causes.USER_DENIED_MEDIA_ACCESS),_.warn('emit "getusermediafailed" [error:%o]',t),e.emit("getusermediafailed",t),new Error("getUserMedia() failed")}))):void 0)})).then((function(t){if(e._status===y.STATUS_TERMINATED)throw new Error("terminated");(e._localMediaStream=t)&&t.getTracks().forEach((function(n){e._connection.addTrack(n,t)}))})).then((function(){var t,r;if(!e._late_sdp)return t={originator:"remote",type:"offer",sdp:n.body},_.debug('emit "sdp"'),e.emit("sdp",t),r=new RTCSessionDescription({type:"offer",sdp:t.sdp}),e._connectionPromiseQueue=e._connectionPromiseQueue.then((function(){return e._connection.setRemoteDescription(r)})).catch((function(t){throw n.reply(488),e._failed("system",null,f.default.causes.WEBRTC_ERROR),_.warn('emit "peerconnection:setremotedescriptionfailed" [error:%o]',t),e.emit("peerconnection:setremotedescriptionfailed",t),new Error("peerconnection.setRemoteDescription() failed")})),e._connectionPromiseQueue})).then((function(){if(e._status===y.STATUS_TERMINATED)throw new Error("terminated");return e._connecting(n),(e._late_sdp?e._createLocalDescription("offer",e._rtcOfferConstraints):e._createLocalDescription("answer",u)).catch((function(){throw n.reply(500),new Error("_createLocalDescription() failed")}))})).then((function(t){if(e._status===y.STATUS_TERMINATED)throw new Error("terminated");e._handleSessionTimersInIncomingRequest(n,r),n.reply(200,null,r,t,(function(){e._status=y.STATUS_WAITING_FOR_ACK,e._setInvite2xxTimer(n,t),e._setACKTimer(),e._accepted("local")}),(function(){e._failed("system",null,f.default.causes.CONNECTION_ERROR)}))})).catch((function(t){e._status!==y.STATUS_TERMINATED&&_.warn(t)}))}else{if(this._status===y.STATUS_TERMINATED)throw new Error("terminated");this._handleSessionTimersInIncomingRequest(n,r),n.reply(200,null,r,"",(function(){e._status=y.STATUS_WAITING_FOR_ACK,e._setInvite2xxTimer(n,""),e._setACKTimer(),e._accepted("local")}),(function(){e._failed("system",null,f.default.causes.CONNECTION_ERROR)}))}else n.reply(500,"Error creating dialog")},s.default.prototype._receiveReinvite=function(e){var t=this,n=(_.debug("receiveReinvite()"),e.hasHeader("Content-Type")?e.getHeader("Content-Type").toLowerCase():void 0),r={request:e,callback:void 0,reject:s.bind(this),delay:function(){return o=!0,{reject:s.bind(this),accept:a.bind(this)}}.bind(this)},i=!1,o=!1;function s(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=(i=!0,t.status_code||403),r=t.reason_phrase||"";t=d.default.cloneArray(t.extraHeaders);if(this._status!==y.STATUS_CONFIRMED)return!1;if(n<300||700<=n)throw new TypeError("Invalid status_code: ".concat(n));e.reply(n,r,t)}function a(){var t=this;this._processInDialogSdpOffer(e).then((function(e){t._status!==y.STATUS_TERMINATED&&u.call(t,e)})).catch((function(e){_.warn(e)}))}function u(t){var n=this,i=["Contact: ".concat(this._contact)];this._handleSessionTimersInIncomingRequest(e,i),this._late_sdp&&(t=this._mangleOffer(t)),e.reply(200,null,i,t,(function(){n._status=y.STATUS_WAITING_FOR_ACK,n._setInvite2xxTimer(e,t),n._setACKTimer()})),"function"==typeof r.callback&&r.callback()}this.emit("reinvite",r),i||(this._late_sdp=!1,e.body?"application/sdp"!==n?(_.debug("invalid Content-Type"),e.reply(415)):o||a():(this._late_sdp=!0,this._remoteHold&&(this._remoteHold=!1,this._onunhold("remote")),"webrtc"===this._mediaType?this._connectionPromiseQueue=this._connectionPromiseQueue.then((function(){return t._createLocalDescription("offer",t._rtcOfferConstraints)})).then((function(e){u.call(t,e)})).catch((function(){e.reply(500)})):(this._late_sdp=!1,Promise.resolve().then((function(){u.call(t,"")})))))},s.default.prototype.renegotiate=function(){var e,t=this,n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=1<arguments.length?arguments[1]:void 0,i=(_.debug("renegotiate()"),n.rtcOfferConstraints||null);return!(this._status!==y.STATUS_WAITING_FOR_ACK&&this._status!==y.STATUS_CONFIRMED||!this._isReadyToReOffer()||(e={succeeded:function(){var e;null!=(e=n.eventHandlers)&&e.succeeded&&n.eventHandlers.succeeded(),r&&r()},failed:function(){var e;null!=(e=n.eventHandlers)&&e.failed?n.eventHandlers.failed():t.terminate({cause:f.default.causes.WEBRTC_ERROR,status_code:500,reason_phrase:"Media Renegotiation Failed"})}},this._setLocalMediaStatus(),n.useUpdate?this._sendUpdate({sdpOffer:!0,eventHandlers:e,rtcOfferConstraints:i,extraHeaders:n.extraHeaders}):this._sendReinvite({eventHandlers:e,rtcOfferConstraints:i,extraHeaders:n.extraHeaders}),0))},c.default.UA.prototype.sendSubscribe=function(e,t,n){_.debug("sendSubscribe()");var r=new u.default(this);return r.send(e,t,n),r},t.default=c.default,e.exports=t.default},4433:function(e,t,n){var r=n(8569),i=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(n(9844))),o=r(n(2942)),s=r(n(8408)),a=r(n(6759)),u=r(n(9165)),c=r(n(5878)),l=r(n(4728)),d=r(n(4143)),h=n(7667),f=r(n(5409)),p=r(n(8844));function v(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}var m=["P-CIN-CallId","P-CIN-Service","P-CIN-Identity","Agora-Info","User-Agent","Allow","CSeq","Call-ID","Content-Type","Content-Length","From","To","Max-Forwards","Min-Se","Via","Session-Expires","Supported","Contact"].map((function(e){return e.toLowerCase()})),g=new f.default("SIP_MIX");r=(e=>{function t(){var e,n,r,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},s=i.domain,c=i.port,d=(c=void 0===c?5049:c,i.path),h=(d=void 0===d?"webcall":d,i.autoRecovery);h=void 0!==h&&h,i=i.singleCallMode,i=void 0!==i&&i;return(0,o.default)(this,t),e=this,n=t,n=(0,u.default)(n),n=(0,a.default)(e,(()=>{if("undefined"!=typeof Reflect&&Reflect.construct&&!Reflect.construct.sham){if("function"==typeof Proxy)return 1;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}}})()?Reflect.construct(n,r||[],(0,u.default)(e).constructor):n.apply(e,r)),(0,l.default)(n,"domain",void 0),(0,l.default)(n,"port",void 0),(0,l.default)(n,"path",void 0),(0,l.default)(n,"socket",void 0),(0,l.default)(n,"ua",void 0),n.name="SipMix",n.domain=s,n.port=c,n.path=d,n.ua=null,n.socket=null,n.deviceId="H5User",n._subscribe={},n._mediaSDKAppId="",n._defaultSessionExpires=100,n._autoRecovery=h,n._sipOptionHandler=-1,n._recoveryCache=[],n.singleCallMode=!!i,n}return(0,c.default)(t,e),(0,s.default)(t,[{key:"setMediaSDKAppId",value:function(){this._mediaSDKAppId=0<arguments.length&&void 0!==arguments[0]?arguments[0]:""}},{key:"start",value:function(e,t,n){var r=this,i=e.deviceId,o=e.password,s=e.register,a=(s=void 0!==s&&s,e=e.debug,e=void 0!==e&&e,i=(this.deviceId=void 0===i?"H5User":i,"wss://".concat(this.domain,":").concat(this.port).concat(this.path?"/"+this.path:"")),"sip:".concat(this.deviceId,"@").concat(this.domain,":").concat(this.port));this.ua&&(this.ua.removeAllListeners(),this.ua.stop(),this.ua=null,this.socket=null),e?t.debug.enable("SIP_MIX:*"):t.debug.disable(),this.socket=new t.WebSocketInterface(i),this.socket.errorHandler=function(e){r.emit("socketError",e)},e={sockets:this.socket,uri:a,display_name:this.deviceId,authorization_user:this.deviceId,password:o,register:s,user_agent:n,session_timers_force_refresher:!0},this._autoRecovery&&(e.connection_recovery_max_interval=1,e.connection_recovery_min_interval=1),i=new t.UA(e);i.on("connecting",(function(){return r.emit("connecting")})),i.on("connected",(function(){r.emit("connected"),r._autoRecovery&&(r._startSendOptions(),0<r._recoveryCache.length)&&(r._recoveryCache.forEach((function(e){var t=e.params;r._call(t,e.id,e.callId)})),r._recoveryCache.length=0)})),i.on("disconnected",(function(){r._autoRecovery&&(r._stopSendOptions(),r._refreshSessions()),r.emit("disconnected")})),i.on("registered",(function(){return r.emit("registered")})),i.on("unregistered",(function(e){return e=e.cause,r.emit("unregistered",e)})),i.on("registrationFailed",(function(e){return e=e.cause,r.emit("registrationFailed",e)})),i.on("newRTCSession",this._onNewRTCSession.bind(this)),i.on("newMessage",this._onNewMessage.bind(this)),i.on("sipEvent",(function(e){return r.emit("sipEvent",e)})),(this.ua=i).start()}},{key:"stop",value:function(){var e;null!=(e=this.ua)&&e.stop()}},{key:"_call",value:function(e){var t=e.target,n=(e=e.options,1<arguments.length&&void 0!==arguments[1]?arguments[1]:""),r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return this._autoRecovery&&(e.data._callParams=(0,h.deepClone)({target:t,options:e}),e.data._oldSessionId=n||"",r)&&(e.extraHeaders=e.extraHeaders||[],-1<(n=e.extraHeaders.findIndex((function(e){return e.startsWith("P-CIN-RECONNECT:")})))&&e.extraHeaders.splice(n,1),e.extraHeaders.push("P-CIN-RECONNECT: ".concat(r))),this.ua.call(t,e)}},{key:"_paramsToObject",value:function(e){e=e.split("-"),e=(0,i.default)(e,9);var t=e[0],n=e[3],r=e[8];return{appId:e[1],channel:e[2],userId:t.startsWith("agora")?parseInt(n):n,token:t.startsWith("trtc")?(0,h.base64Decode)(r):r,audio:!0,video:t.endsWith("video")}}},{key:"_updateSessionData",value:function(e,t){var n,r,i,o,s;e&&(n={},Object.keys(e.headers).forEach((function(t){var r=e.getHeaders(t);n[t.toUpperCase()]=1<r.length?r:r[0]})),r=n["P-CIN-CALLID"],i=n["P-CIN-IDENTITY"],o=n["AGORA-INFO"],s=n["USER-AGENT"],r&&(t.data._eventData.callId=r),i&&(t.data._eventData.agentId=i),o&&(t.data._eventData.sdkParams=this._paramsToObject(o)),t.data._eventData.isRecoveredCall="reconnect"===s,Object.keys(n).forEach((function(e){-1<m.indexOf(e.toLowerCase())&&delete n[e]})),0<n.length)&&(t.data._eventData.extraHeaders=n)}},{key:"_onNewRTCSession",value:function(e){var t,n=this,r=e.originator,i=e.session;e=e.request;"remote"===r&&this.singleCallMode&&1<Object.keys(this.ua._sessions).length?(i.terminate({status_code:486}),console.warn("The call was rejected because singleCallMode is set to true.")):(i.data._eventData||(i.data._eventData={}),i.data._eventData.sessionId=i.id,i.data._eventData.uri=i.remote_identity.uri.toString(),i.data._eventData.userNumber=i.remote_identity.uri.user,"remote"===(i.data._eventData.originator=r)&&(this._updateSessionData(e,i),i.data._remoteParams||(i.data._remoteParams={mediaType:"webrtc",video:!1,audio:!0}),i.data._eventData.sdkParams?(i.data._remoteParams.mediaType=i.data._eventData.sdkParams,i.data._remoteParams.video=i.data._eventData.video,i.data._remoteParams.audio=!0):(r=e.parseSDP(),i.data._remoteParams.mediaType="webrtc",i.data._remoteParams.video=r.media.some((function(e){return"video"===e.type&&e.port})),i.data._remoteParams.audio=r.media.some((function(e){return"audio"===e.type&&e.port})))),this._autoRecovery&&(i.onTransportError=function(){g.warn("onTransportError()")}),i.on("sdp",(function(e){var t=e.originator;e=e.sdp;"remote"===t&&(i.data._remoteParams||(i.data._remoteParams={mediaType:"webrtc",video:!1,audio:!1,videoTrackReady:!1,audioTrackReady:!1}),t=p.default.parse(e),i.data._remoteParams.mediaType="webrtc",i.data._remoteParams.video=t.media.some((function(e){return"video"===e.type&&e.port})),i.data._remoteParams.audio=t.media.some((function(e){return"audio"===e.type&&e.port})),i.data._remoteParams.videoTrackReady=!1,i.data._remoteParams.audioTrackReady=!1)})),i.on("progress",(function(e){var t=e.originator;e=e.response;console.info("progress",{originator:t,response:e}),"local"===t?n.emit(i.data._oldSessionId?"reconnect:localRing":"localRing",(0,h.deepClone)(i.data._eventData),(0,h.deepClone)(i.data._remoteParams)):(n._updateSessionData(e,i),n.emit(i.data._oldSessionId?"reconnect:remoteRing":"remoteRing",(0,h.deepClone)(i.data._eventData)))})),i.on("accepted",(function(e){"remote"===e.originator&&n._updateSessionData(e.response,i),i.data._oldSessionId||n.emit("accepted",(0,h.deepClone)(i.data._eventData))})),i.on("confirmed",(function(){i.data._oldSessionId?n.emit("sessionRestored",(0,h.deepClone)(i.data._eventData),i.data._oldSessionId):n.emit("confirmed",(0,h.deepClone)(i.data._eventData))})),i.on("newInfo",(function(e){var t=e.originator,r=e.info;e=e.request;"remote"===t&&n.emit("newInfo",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){(0,l.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({content:n._formatContent(r.body,e.getHeader("Content-Type")),contentType:r.contentType},i.data._eventData))})),t=function(e,t){var r=t.originator,o=t.cause,s=(t=t.message,i.data._oldSessionId&&-1<(s=n._recoveryCache.findIndex((function(e){return e.params.target===i.data._callParams.target})))&&n._recoveryCache.splice(s,1),Object.assign({},i.data._eventData,{originator:r,cause:o}));"remote"===r&&t&&(s.statusCode=t.status_code,s.reasonPhrase=t.reason_phrase),n.emit(e,s)},i.on("failed",(function(e){var n=e.originator;return t("failed",{originator:n,cause:e.cause,message:e.message})})),i.on("ended",(function(e){var n=e.originator;return t("ended",{originator:n,cause:e.cause,message:e.message})})),i.on("update",(function(){})),i.on("reinvite",(function(e){var t=e.request,r=(e=(0,e.delay)(),e.accept);return n._onReinvite?n._onReinvite({request:t,session:i,acceptCallback:r,rejectCallback:e.reject}):null})),i.on("peerconnection:createofferfailed",(function(e){return console.error("peerconnection:createofferfailed",e)})),i.on("peerconnection:createanswerfailed",(function(e){return console.error("peerconnection:createanswerfailed",e)})),i.on("peerconnection:setlocaldescriptionfailed",(function(e){return console.error("peerconnection:setlocaldescriptionfailed",e)})),i.on("peerconnection:setremotedescriptionfailed",(function(e){return console.error("peerconnection:setremotedescriptionfailed",e)})),this.emit(i.data._oldSessionId?"reconnect:newSession":"newSession",(0,h.deepClone)(i.data._eventData)))}},{key:"_onRegistrationResponse",value:function(){}},{key:"_formatContent",value:function(e,t){return-1<t.indexOf("+base64")&&(t=(0,h.base64Decode)(e),(0,h.isUtf8)(t))?(0,h.tryJSON)(t):(0,h.tryJSON)(e)}},{key:"_onNewMessage",value:function(e){var t=e.originator;e=e.request;"remote"===t&&this.emit("newMessage",{content:this._formatContent(e.body,e.getHeader("Content-Type")),contentType:e.getHeader("Content-Type"),uri:e.from.uri.toString(),userNumber:e.from.uri.user})}},{key:"_getSession",value:function(e){var t;return e?null==(t=this.ua)?void 0:t._sessions[e]:Object.values(this.ua._sessions)[0]}},{key:"_getSessionCount",value:function(){return Object.values(this.ua._sessions).length}},{key:"sendInfo",value:function(e){var t=e.sessionId,n=e.contentType,r=(n=void 0===n?"application/json":n,e.encode);r=void 0===r||r,e=e.content,e=void 0===e?"":e,t=this._getSession(t);if(!t)throw new Error("没有找到会话实例");var i=Object.prototype.toString.call(e);i="[object Object]"===i||"[object Array]"===i?JSON.stringify(e):"[object String]"===i?e:null==e?void 0:e.toString();t.sendInfo(r?"".concat(n,"+base64"):n,r?(0,h.base64Encode)(i):i)}},{key:"_stringify",value:function(e){var t=Object.prototype.toString.call(e);t="[object Object]"===t||"[object Array]"===t?JSON.stringify(e):"[object String]"===t?e:null==e?void 0:e.toString();return t}},{key:"sendSessionMessage",value:function(e){var t,n=e.sessionId,r=e.contentType,i=void 0===r?"application/json":r,o=(r=e.encode,void 0===r||r),s=(r=e.content,e=void 0===r?"":r,this._getSession(n));if(s)return t=this._stringify(e),new Promise((function(e,n){s.sendMessage(i,o?(0,h.base64Encode)(t):t,{eventHandlers:{succeeded:function(){e()},failed:function(){n()}}})}));throw new Error("没有找到会话实例")}},{key:"sendMessage",value:function(e){var t=this,n=e.target,r=e.contentType,i=void 0===r?"application/json":r,o=(r=e.encode,void 0===r||r),s=(r=e.content,this._stringify(void 0===r?"":r));return new Promise((function(e,r){t.ua.sendMessage(n,o?(0,h.base64Encode)(s):s,{contentType:i,eventHandlers:{succeeded:function(){e()},failed:function(){r()}}})}))}},{key:"sendDTMF",value:function(e){var t=e.sessionId;e=e.tones,t=this._getSession(t);if(!t)throw new Error("没有找到会话实例");t.sendDTMF(e,{duration:100,interToneGap:500,transportType:"INFO"})}},{key:"hangup",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.sessionId,n=(e=e.statusCode,{});e&&(n.status_code=e),t?null!=(e=this.ua._sessions[t])&&e.terminate(n):this.ua.terminateSessions(n)}},{key:"_startSendOptions",value:function(){var e=this;this._stopSendOptions(),this._sipOptionHandler=setInterval((function(){e.ua?e.ua.sendOptions(e.deviceId,"",{eventHandlers:{succeeded:function(){e._sendOptionFailedCount=0},failed:e._optionFailedHandler.bind(e)}}):e._stopSendOptions()}),5e3)}},{key:"_stopSendOptions",value:function(){clearInterval(this._sipOptionHandler)}},{key:"_refreshSessions",value:function(){var e=this,t=Object.values(this.ua._sessions);0===this._recoveryCache.length&&(this._recoveryCache=t.map((function(e){return{params:e.data._callParams,id:e.id,callId:null==(e=e.data._eventData)?void 0:e.callId}}))),t.forEach((function(t){t.removeAllListeners(),e.ua.destroyRTCSession(t)})),this.ua._sessions={}}},{key:"_optionFailedHandler",value:function(){var e=this;this._sendOptionFailedCount++,1===this._sendOptionFailedCount&&(this._stopSendOptions(),g.debug("Send options failed, prepare reconnect..."),this._refreshSessions(),this.ua.stop(),g.debug("Reconnect after 1s..."),setTimeout((function(){e.ua.start()}),1e3))}}],[{key:"destroyInstance",value:function(){var e;null!=(e=this.instance)&&e.removeAllListeners(),null!=(e=this.instance)&&e.stop(),delete this.instance,this.instance=null}}])})(d.default);(0,l.default)(r,"SDK_VERSION","2.1.0 Build(20251110182326)"),t.default=r,e.exports=t.default},4321:function(e,t,n){var r=n(8569),i=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(n(2971))),o=r(n(6585)),s=r(n(4728)),a=r(n(936)),u=r(n(2942)),c=r(n(8408)),l=r(n(6759)),d=r(n(7384)),h=r(n(9165)),f=r(n(5878)),p=r(n(4433)),v=r(n(3897)),m=(r=r(n(9033)),n(7667)),g=n(566);function _(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function y(e,t){var n,r,i,o,s="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(s)return r=!(n=!0),{s:function(){s=s.call(e)},n:function(){var e=s.next();return n=e.done,e},e:function(e){r=!0,i=e},f:function(){try{n||null==s.return||s.return()}finally{if(r)throw i}}};if(Array.isArray(e)||(s=((e,t)=>{var n;if(e)return"string"==typeof e?b(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0})(e))||t&&e&&"number"==typeof e.length)return s&&(e=s),o=0,{s:t=function(){},n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function b(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 w(e){var t=e.audio,n=(e=e.video,{});return!0===t?n.audio=!0:!1===t&&(n.audio=!1),!0===e?n.video=!0:!1===e&&(n.video=!1),n}var T,S="XF-H5-SIPMIX/".concat("2.0.0"," (").concat((r=(n=r.default.parse(window.navigator.userAgent)).os,T=n.browser,n=n.platform,r.name=r.name||"",r.version=r.version||"",T.name=T.name||"",T.version=T.version||"",n.type=n.type||"",n.model=n.model||"",n.vendor=n.vendor||"","".concat(n.type.replace(/[<>;|]/g," ")||"*"," ").concat(n.model.replace(/[<>;|]/g," ")||"*"," ").concat(n.vendor.replace(/[<>;|]/g," ")||"*",";").concat(r.name.replace(/[<>;|]/g," ")||"*"," ").concat(r.version.replace(/[<>;|]/g," ")||"*",";").concat(T.name.replace(/[<>;|]/g," ")||"*"," ").concat(T.version.replace(/[<>;|]/g," ")||"*")),")");function C(){var e;this.removeAllListeners(),null!=(e=this.ua)&&e.stop()}function E(e,t){if(t){var n,r=y(t.getSenders());try{for(r.s();!(n=r.n()).done;){var i,o=n.value;e._localMediaStream.removeTrack(o.track),null!=(i=o.track)&&i.stop()}}catch(e){r.e(e)}finally{r.f()}t.close()}delete e.data._pc_beforeReinvite,delete e.data._localParams_beforeReinvite}n=(e=>{function t(){(0,u.default)(this,t);for(var e,n,r,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return e=this,n=t,r=[].concat(o),n=(0,h.default)(n),(n=(0,l.default)(e,(()=>{if("undefined"!=typeof Reflect&&Reflect.construct&&!Reflect.construct.sham){if("function"==typeof Proxy)return 1;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}}})()?Reflect.construct(n,r||[],(0,h.default)(e).constructor):n.apply(e,r)))._canvasEl=null,n.webrtcStats=null,window.removeEventListener("beforeunload",C.bind(n)),window.addEventListener("beforeunload",C.bind(n)),n}return(0,f.default)(t,e),(0,c.default)(t,[{key:"start",value:function(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];(e=(0,d.default)((0,h.default)(t.prototype),"start",this)).call.apply(e,[this].concat(r,[v.default,S]))}},{key:"call",value:function(e){var t=e.target,n=e.stream,r=e.video,i=(r=void 0===r||r,e.audio),o=(i=void 0===i||i,e.mediaType),s=(o=void 0===o?"string"==typeof _DEF_MEDIA_TYPE?_DEF_MEDIA_TYPE:"webrtc":o,e.extraHeaders),a=e.token,u=e.callData,c=e.transParam;e=e.videoCodec,e=void 0===e?"H264":e,s={mediaType:o,extraHeaders:void 0===s?[]:s,sessionTimersExpires:this._defaultSessionExpires};if("webrtc"===o)n?s.mediaStream=n:!1===i&&!1===r?(this._canvasEl||(this._canvasEl=document.createElement("canvas"),this._canvasEl.width=1,this._canvasEl.height=1),s.mediaStream=this._canvasEl.captureStream(1),s.mediaConstraints={_recvVideoOnly:!0}):s.mediaConstraints={video:r,audio:i},s.extraHeaders.push("X-RTC-Info: webrtc");else if("agora"===o)s.mediaConstraints={video:!!r,audio:!!i},s.extraHeaders.push("Agora-Info: ".concat((0,m.geneCallHeader)({type:r?"agoravideo":"agora",appId:this._mediaSDKAppId,videoCodec:e})),"X-RTC-Info: ".concat((0,m.geneCallHeader)({type:r?"agoravideo":"agora",appId:this._mediaSDKAppId,videoCodec:e})));else{if("trtc"!==o)throw new Error("媒体类型不支持 [".concat(o,"]"));s.mediaConstraints={video:!!r,audio:!!i},s.extraHeaders.push("Agora-Info: ".concat((0,m.geneCallHeader)({type:r?"trtcvideo":"trtc",appId:this._mediaSDKAppId,videoCodec:e})),"X-RTC-Info: ".concat((0,m.geneCallHeader)({type:r?"trtcvideo":"trtc",appId:this._mediaSDKAppId,videoCodec:e})))}a&&s.extraHeaders.push("Token: ".concat(a)),(u||c)&&s.extraHeaders.push("P-CIN-Service: --".concat(c?(0,m.strToHex)(c,!0):"","--").concat(u?(0,m.strToHex)(u,!0):"")),s.data={_localParams:{mediaType:o,video:r,audio:i},_eventData:{}},this._call({target:t,options:s})}},{key:"rejectCall",value:function(e){this._call({target:e,options:{extraHeaders:["Content-Type: application/cincc_control+json"],data:{_localParams:{mediaType:"control",content:JSON.stringify({action:"decline"})}}}})}},{key:"answer",value:function(e){var t=e.sessionId,n=e.video,r=e.audio,i=e.stream,o=e.mediaType,s=e.extraHeaders,a=(s=void 0===s?[]:s,e.token),u=e.callData;e=e.videoCodec,e=void 0===e?"H264":e,t=this._getSession(t);if(!t)throw new Error("会话不存在");if(o=o||t.data._remoteParams.mediaType,void 0===r&&(r=t.data._remoteParams.audio),void 0===n&&(n=t.data._remoteParams.video),s={mediaType:o,extraHeaders:s},"webrtc"===o)i?s.mediaStream=i:s.mediaConstraints={video:n,audio:r};else if("agora"===o)s.mediaConstraints={video:!!n,audio:!!r},s.extraHeaders.push("Agora-Info: ".concat((0,m.geneCallHeader)({type:n?"agoravideo":"agora",appId:this._mediaSDKAppId,videoCodec:e})));else if("trtc"===o)s.mediaConstraints={video:!!n,audio:!!r},s.extraHeaders.push("Agora-Info: ".concat((0,m.geneCallHeader)({type:n?"trtcvideo":"trtc",appId:this._mediaSDKAppId,videoCodec:e})));else{if("rtmp"!==o)throw new Error("媒体类型不支持 [".concat(o,"]"));s.mediaConstraints={video:!!n,audio:!!r},s.extraHeaders.push("RTMP-Path: ".concat(n?"rtmpvideo":"rtmpaudio"))}a&&s.extraHeaders.push("Token: ".concat(a)),u&&s.extraHeaders.push("P-CIN-Service: ----".concat((0,m.strToHex)(u,!0))),t.data._localParams={mediaType:o,video:!!i||!!n,audio:!!i||!!r},null!=t&&t.answer(s)}},{key:"mute",value:function(e){var t=e.sessionId,n=e.audio;e=e.video,t=this._getSession(t);if(!t)throw new Error("没有找到会话实例");if("webrtc"!==t.data._localParams.mediaType)throw new Error("mute 仅支持媒体类型为 webrtc 方式");t.mute(w({audio:n,video:e}))}},{key:"unmute",value:function(e){var t=e.sessionId,n=e.audio;e=e.video,t=this._getSession(t);if(!t)throw new Error("没有找到会话实例");if("webrtc"!==t.data._localParams.mediaType)throw new Error("unmute 仅支持媒体类型为 webrtc 方式");t.unmute(w({audio:n,video:e}))}},{key:"_holdTrigger",value:function(e){if(e=e.sessionId,e=this._getSession(e),!e)throw new Error("没有找到会话实例");if("webrtc"!==e.data._localParams.mediaType)throw new Error("hold 仅支持媒体类型为 webrtc 方式");e.sendDTMF("A",{duration:100,interToneGap:500,transportType:"INFO"})}},{key:"hold",value:function(e){e=e.sessionId,this._holdTrigger({sessionId:e})}},{key:"unhold",value:function(e){e=e.sessionId,this._holdTrigger({sessionId:e})}},{key:"_onTrack",value:function(e){var t=e.track,n=e.stream,r=e.eventName,i=(e=e.session,"remoteStream"===r?"_remoteParams":"_localParams");if("audio"===t.kind){if(e.data[i].audioTrackReady=!0,!e.data[i].audio)return void n.removeTrack(t)}else if("video"===t.kind&&(e.data[i].videoTrackReady=!0,!e.data[i].video))return void n.removeTrack(t);e.data[i].video&&e.data[i].audio?e.data[i].audioTrackReady&&e.data[i].videoTrackReady&&this.emit(r,n,(0,m.deepClone)(e.data._eventData)):(e.data[i].audioTrackReady&&e.data[i].audio&&this.emit(r,n,(0,m.deepClone)(e.data._eventData)),e.data[i].videoTrackReady&&e.data[i].video&&this.emit(r,n,(0,m.deepClone)(e.data._eventData)))}},{key:"_bindWebRTCStats",value:function(e){var t=this,n=e.pc;e=e.peerId;this.webrtcStats||(this.webrtcStats=new g.WebRTCStats({getStatsInterval:1e3}),this.webrtcStats.on("stats",(function(e){t.emit("webRTCStats",e)}))),this.webrtcStats.addConnection({pc:n,peerId:e})}},{key:"_onNewRTCSession",value:function(e){var n,r,i=this,o=e.originator,s=e.session;e=e.request;"local"===o&&(n=s.connection)&&(r=n.addTrack,n.addTrack=function(e,t){i._onTrack({track:e,stream:t,eventName:"localStream",session:s});for(var o=arguments.length,a=new Array(2<o?o-2:0),u=2;u<o;u++)a[u-2]=arguments[u];r.call.apply(r,[n,e,t].concat(a)),n.getSenders().forEach((function(e){var t;e.track&&"video"===e.track.kind&&(t=e.getParameters()).encodings&&t.encodings[0]&&(t.encodings[0].priority="high",t.encodings[0].networkPriority="high",t.encodings[0].maxBitrate=5e6,t.encodings[0].maxFramerate=30,e.setParameters(t))}))},n.ontrack=function(e){var t=e.streams;i._onTrack({track:e.track,stream:t[0],eventName:"remoteStream",session:s})},this._bindWebRTCStats({pc:n,peerId:s.id})),s.on("peerconnection",(function(e){var t=e.peerconnection,n=t.addTrack;t.addTrack=function(e,r){i._onTrack({track:e,stream:r,eventName:"localStream",session:s});for(var o=arguments.length,a=new Array(2<o?o-2:0),u=2;u<o;u++)a[u-2]=arguments[u];n.call.apply(n,[t,e,r].concat(a))},t.ontrack=function(e){var t=e.streams;i._onTrack({track:e.track,stream:t[0],eventName:"remoteStream",session:s})},i._bindWebRTCStats({pc:t,peerId:s.id})})),(0,d.default)((0,h.default)(t.prototype),"_onNewRTCSession",this).call(this,{originator:o,session:s,request:e})}},{key:"_onReinvite",value:function(e){var t,n=e.request,r=e.session,o=e.acceptCallback,u=e.rejectCallback,c=(e=n.parseSDP(),{video:e.media.some((function(e){return"video"===e.type&&e.port})),audio:e.media.some((function(e){return"audio"===e.type&&e.port}))}),l=-1,d={accept:(t=(0,a.default)(i.default.mark((function e(){var t,n,s,a,u,d,h=arguments;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=(s=0<h.length&&void 0!==h[0]?h[0]:{}).stream,n=(void 0!==s.video?s:c).video,s=(void 0!==s.audio?s:c).audio,"webrtc"!==r.data._localParams.mediaType?e.next=29:t?(a=t.getVideoTracks()[0],u=t.getAudioTracks()[0],e.next=15):e.next=10;break;case 10:return e.next=12,navigator.mediaDevices.getUserMedia({video:n,audio:s});case 12:t=e.sent,a=t.getVideoTracks()[0],u=t.getAudioTracks()[0];case 15:c.video&&!a&&console.warn("The remote stream contains a video track, but the new stream does not have a video track."),c.audio&&!u&&console.warn("The remote stream contains a audio track, but the new stream does not have a audio track."),r.data._localParams.audio=!!u,r.data._localParams.video=!!a,r.data._localParams.audioTrackReady=!1,r.data._localParams.videoTrackReady=!1,d=r.connection,r._createRTCConnection(),E(r,d),r._localMediaStream||(r._localMediaStream=new MediaStream),a&&(r.connection.addTrack(a,t),r._localMediaStream.addTrack(a)),u&&(r.connection.addTrack(u,t),r._localMediaStream.addTrack(u)),o(),l&&clearInterval(l);case 29:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)}),reject:function(){!1===c.video&&!0===c.audio?console.warn("Cannot reject when the call switches to audio-only mode."):(u({status_code:487}),clearInterval(l))}};this.emit("reinvite",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){(0,s.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({remoteMediaInfo:c,handler:d,timerFn:function(e){var t=20;l=setInterval((function(){try{e(t,0===t)}catch(e){console.error(e)}0===t?(clearInterval(l),d.reject(),delete d.reject,delete d.accept):t--}),1e3)}},r.data._eventData))}},{key:"_changeLocalTrack",value:(n=(0,a.default)(i.default.mark((function e(t){var n,r,o,s,a,u,c,l,d,h,f,p=this;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.type,r=t.stream,d=t.sessionId,o=void 0===(o=t.extraHeaders)?[]:o,!(s=this._getSession(d))){e.next=44;break}if("webrtc"!==s.data._localParams.mediaType){e.next=41;break}if(!(a=s.connection)){e.next=39;break}if("connected"!==a.connectionState){e.next=39;break}if("both"===n){e.next=29;break}if("audio"!==n){e.next=14;break}if(u=r.getAudioTracks()[0]){e.next=12;break}return e.abrupt("return",Promise.reject("Stream has no audio track"));case 12:e.next=17;break;case 14:if(u=r.getVideoTracks()[0]){e.next=17;break}return e.abrupt("return",Promise.reject("Stream has no video track"));case 17:if(c=a.getSenders().filter((function(e){return(null==(e=e.track)?void 0:e.kind)===n}))[0]){e.next=20;break}return e.abrupt("return",Promise.reject("PeerConnection has no video sender"));case 20:return l=c.track,e.next=23,c.replaceTrack(u);case 23:s._localMediaStream.addTrack(u),l.stop(),d=new MediaStream(a.getSenders().map((function(e){return e.track}))),this.emit("localStream",d,(0,m.deepClone)(s.data._eventData)),e.next=38;break;case 29:s.data._localParams_beforeReinvite=(0,m.deepClone)(s.data._localParams),s.data._pc_beforeReinvite=a,s._createRTCConnection(),h=r.getAudioTracks()[0],f=r.getVideoTracks()[0],s.data._localParams.audio=!!h,s.data._localParams.video=!!f,h&&(s.connection.addTrack(h,r),s._localMediaStream.addTrack(h)),f&&(s.connection.addTrack(f,r),s._localMediaStream.addTrack(f),s.data._remoteParams.video=!0);case 38:"both"===n&&s.renegotiate({extraHeaders:o,eventHandlers:{succeeded:function(){var e,t=s.data._pc_beforeReinvite,n=(t&&E(s,t),new MediaStream),r=y(s.connection.getSenders());try{for(r.s();!(e=r.n()).done;){var i=e.value;n.addTrack(i.track)}}catch(e){r.e(e)}finally{r.f()}p.emit("localStream",n,(0,m.deepClone)(s.data._eventData)),console.warn("renegotiate succeeded")},failed:function(){var e,t=s.connection,n=(s._connection=s.data._pc_beforeReinvite,s._localParams=(0,m.deepClone)(s.data._localParams_beforeReinvite),new MediaStream),r=y(s.data._pc_beforeReinvite.getSenders());try{for(r.s();!(e=r.n()).done;){var i=e.value;n.addTrack(i.track)}}catch(e){r.e(e)}finally{r.f()}p._bindWebRTCStats({pc:s.connection,peerId:s.id}),p.emit("localStream",n,(0,m.deepClone)(s.data._eventData)),E(s,t),console.warn("renegotiate failed")}}});case 39:e.next=42;break;case 41:throw new Error("会话非内置WebRTC类型");case 42:e.next=45;break;case 44:throw new Error("没有找到会话实例");case 45:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"changeLocalVideoTrack",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.stream;return this._changeLocalTrack({type:"video",stream:t,sessionId:e.sessionId,extraHeaders:e.extraHeaders})}},{key:"changeLocalAudioTrack",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.stream;return this._changeLocalTrack({type:"audio",stream:t,sessionId:e.sessionId,extraHeaders:e.extraHeaders})}},{key:"changeLocalStream",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.stream;return this._changeLocalTrack({type:"both",stream:t,sessionId:e.sessionId,extraHeaders:e.extraHeaders})}}],[{key:"getInstance",value:function(){if(!this.instance){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];this.instance=(0,o.default)(t,n)}return this.instance}}]);var n})(p.default),t.default=n,e.exports=t.default},7667:function(e,t,n){var r=n(8569),i=(Object.defineProperty(t,"__esModule",{value:!0}),t.base64Decode=function(e){return u.Base64.decode(e)},t.base64Encode=function(e){return u.Base64.encode(e)},t.bindDebugDownload=function(){var e=document.getElementById("__Debug_CT");e||((e=document.createElement("code")).id="__Debug_CT",e.style.display="none",document.addEventListener("__AppLog",(function(t){t=t.detail,e.innerHTML=e.innerHTML+t.args.reduce((function(e,t){var n;if("object"===(0,s.default)(t))try{n=JSON.stringify(t)}catch(e){console.info(e)}else n=t;return t=n.trimStart().replace(/%c|%s|%o/g,""),t&&!t.startsWith("color: ")&&e.push(t+"\n"),e}),[]).join("\r\n")})),document.addEventListener("keydown",(function(t){var n;t.shiftKey&&t.altKey&&"D"===t.key&&(t=document.createElement("a"),n=new Blob([e.innerText],{type:"text/plain"}),t.setAttribute("href",URL.createObjectURL(n)),t.setAttribute("download","log.txt"),t.click(),t.remove())})))},t.cancelAnimationFrame=void 0,t.checkWebrtcEnv=function(e){return f.apply(this,arguments)},t.checkWxEnv=function(){if("undefined"!=typeof wx&&wx.canIUse){if(!wx.canIUse("live-player"))throw new Exceptions.NotSupportedError("live-player not supported");if(!wx.canIUse("live-pusher"))throw new Exceptions.NotSupportedError("live-pusher not supported")}},t.closeStream=h,t.deepClone=function e(t){var n,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=(r=r.keyReplaceFn,void 0===r?function(e){return e}:r);if(!t&&"object"!==(0,s.default)(t))throw new Error("error arguments","deepClone");return t.constructor===Array?n=t.map((function(t){return"object"===(0,s.default)(t)?e(t,{keyReplaceFn:i}):t})):(n={},Object.keys(t).forEach((function(r){"object"===(0,s.default)(t[r])?n[i(r)]=e(t[r],{keyReplaceFn:i}):n[i(r)]=t[r]}))),n},t.detectStream=void 0,t.formatDate=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"yyyyMMddhhmmss",t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:new Date;if(!t)return"";/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var n,r={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds(),"i+":t.getMilliseconds()};for(n in r){var i;new RegExp("(".concat(n,")")).test(e)&&(i=r[n]+"",e=e.replace(RegExp.$1,1===RegExp.$1.length?i:((e,t)=>(new Array(t).fill("0").join("")+e).substr(e.length))(i,RegExp.$1.length)))}return e},t.geneCallHeader=function(e){var t=e.type,n=e.appId;n=void 0===n?"":n,e=e.videoCodec,e=void 0===e?"H264":e;return"webrtc"===t?"":"h264"===e.toLowerCase()||"agora"===t||"trtc"===t?t+(n?"-"+n:""):[t,n,"","","","","","","","",e].join("-")},t.hexToStr=function(e){if(e.length%2!=0)return"";for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substring(n,n+2),16));return(e=>{if("string"==typeof e)return e;for(var t="",n=e,r=0;r<n.length;r++){var i=n[r].toString(2),o=i.match(/^1+?(?=0)/);if(o&&8===i.length){for(var s=o[0].length,a=n[r].toString(2).slice(7-s),u=1;u<s;u++)a+=n[u+r].toString(2).slice(2);t+=String.fromCharCode(parseInt(a,2)),r+=s-1}else t+=String.fromCharCode(n[r])}return t})(t)},t.isFunction=function(e){return e=Object.prototype.toString.call(e),"[object Function]"===e||"[object AsyncFunction]"===e},t.isUtf8=function(e){return/[a-zA-Z0-9\u4e00-\u9fa5]+/g.test(e)},t.randomNumber=function(){for(var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:8,t="";e--;)t+=Math.floor(10*Math.random());return t},t.requestAnimationFrame=void 0,t.strToDate=function(e){var t;return e?(t=(e=e).length,e+=new Array(14-t).fill("0").join(""),new Date(parseInt(e.substring(0,4)),parseInt(e.substring(4,6))-1,parseInt(e.substring(6,8)),parseInt(e.substring(8,10)),parseInt(e.substring(10,12)),parseInt(e.substring(12,14)))):null},t.strToHex=function(e){for(var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=[],r=0;r<e.length;r++){var i="";if(i=d.test(e.charAt(r))?encodeURI(e.charAt(r)).replace(/%/g,""):e.charCodeAt(r).toString(16),t){for(var o="",s=0;s<i.length;s+=2)o+=i.charAt(s+1)+i.charAt(s);i=o}n.push(i)}return n.join("")},t.tryJSON=function(e){if("string"!=typeof e)return e;try{var t=JSON.parse(e);return"object"==(0,s.default)(t)&&t?t:e}catch(t){return e}},t.uuid=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"-",t=(0,a.v4)();return e&&(t=t.replace(new RegExp("-","g"),"")),t},r(n(2971))),o=r(n(936)),s=r(n(9091)),a=n(962),u=n(914);function c(e,t){var n,r,i,o,s="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(s)return r=!(n=!0),{s:function(){s=s.call(e)},n:function(){var e=s.next();return n=e.done,e},e:function(e){r=!0,i=e},f:function(){try{n||null==s.return||s.return()}finally{if(r)throw i}}};if(Array.isArray(e)||(s=((e,t)=>{var n;if(e)return"string"==typeof e?l(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0})(e))||t&&e&&"number"==typeof e.length)return s&&(e=s),o=0,{s:t=function(){},n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(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}var d=/[\u4e00-\u9fa5|\u3002\uff1f\uff01\uff0c\u3001\uff1b\uff1a\u201c\u201d\u2018\u2019\uff08\uff09\u300a\u300b\u3010\u3011\u007e]/;function h(e){if(e)try{if(e.getTracks){var t,n=c(e.getTracks());try{for(n.s();!(t=n.n()).done;)t.value.stop()}catch(t){n.e(t)}finally{n.f()}}else{var r,i=c(e.getAudioTracks());try{for(i.s();!(r=i.n()).done;)r.value.stop()}catch(t){i.e(t)}finally{i.f()}var o,a=c(e.getVideoTracks());try{for(a.s();!(o=a.n()).done;)o.value.stop()}catch(t){a.e(t)}finally{a.f()}}}catch(t){"function"!=typeof e.stop&&"object"!==(0,s.default)(e.stop)||e.stop()}}function f(){return(f=(0,o.default)(i.default.mark((function e(t){var n,r,o,s=this;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=t.checkGeolocation,o=void 0!==o&&o,n=void 0===(n=t.checkVideo)||n,r=void 0===(r=t.checkAudio)||r,o?navigator.geolocation?(navigator.geolocation.getCurrentPosition((function(e){e=(null==e?void 0:e.coords)||{};var t=e.latitude;s.position={latitude:t,longitude:e.longitude,accuracy:e.accuracy}})),e.next=7):e.next=6:e.next=7;break;case 6:return e.abrupt("return",Promise.reject("不支持地里位置接口"));case 7:if(r||n)return e.next=10,navigator.mediaDevices.getUserMedia({video:n,audio:r});e.next=19;break;case 10:(o=e.sent)?(h(o),e.next=16):e.next=15;break;case 15:return e.abrupt("return",Promise.reject("不支持开启摄像头或Mic接口"));case 16:if(window.RTCPeerConnection){e.next=18;break}return e.abrupt("return",Promise.reject("不支持WebRTC"));case 18:case 19:return e.abrupt("return",Promise.resolve(!0));case 20:case"end":return e.stop()}}),e)})))).apply(this,arguments)}t.requestAnimationFrame="undefined"==typeof window?function(){}:window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,t.cancelAnimationFrame="undefined"==typeof window?function(){}:window.cancelAnimationFrame||window.mozCancelAnimationFrame,t.detectStream=function(e){var t=e.stream,n=e.extra;return new Promise((function(e){var r=document.createElement("video"),i=(r.muted=!0,r.volume=0,r.addEventListener("loadedmetadata",(function(){e({stream:t,extra:n,hasAudio:t.getTracks().some((function(e){return"audio"===e.kind})),videoEl:r,width:r.videoWidth,height:r.videoHeight})}),{once:!0}),r.srcObject=t,r.play());void 0!==i&&i.catch((function(e){console.info("自动播放失败"),console.error(e)}))}))}},4958:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},3502:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},4568:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},936:function(e){function t(e,t,n,r,i,o,s){try{var a=e[o](s),u=a.value}catch(e){return n(e)}a.done?t(u):Promise.resolve(u).then(r,i)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise((function(i,o){var s=e.apply(n,r);function a(e){t(s,i,o,a,u,"next",e)}function u(e){t(s,i,o,a,u,"throw",e)}a(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},2942:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},6585:function(e,t,n){var r=n(1659),i=n(9985);e.exports=function(e,t,n){var o;return r()?Reflect.construct.apply(null,arguments):((o=[null]).push.apply(o,t),t=new(e.bind.apply(e,o)),n&&i(t,n.prototype),t)},e.exports.__esModule=!0,e.exports.default=e.exports},8408:function(e,t,n){var r=n(3543);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}e.exports=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},4728:function(e,t,n){var r=n(3543);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},7384:function(e,t,n){var r=n(1699);function i(){return e.exports=i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=r(e,t);if(i)return(i=Object.getOwnPropertyDescriptor(i,t)).get?i.get.call(arguments.length<3?e:n):i.value},e.exports.__esModule=!0,e.exports.default=e.exports,i.apply(null,arguments)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},9165:function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},5878:function(e,t,n){var r=n(9985);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},8569:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},1659:function(e){function t(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return e.exports=function(){return!!t},e.exports.__esModule=!0,(e.exports.default=e.exports)()}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},7881:function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}},e.exports.__esModule=!0,e.exports.default=e.exports},7911:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},6759:function(e,t,n){var r=n(9091).default,i=n(4568);e.exports=function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},8636:function(e,t,n){var r=n(9091).default;function i(){e.exports=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},i=Object.prototype,o=i.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(t){d=function(e,t,n){return e[t]=n}}function h(e,n,r,i){var o,a,u,c;n=n&&n.prototype instanceof y?n:y,n=Object.create(n.prototype),i=new R(i||[]);return s(n,"_invoke",{value:(o=e,a=r,u=i,c=p,function(e,n){if(c===m)throw Error("Generator is already running");if(c===g){if("throw"===e)throw n;return{value:t,done:!0}}for(u.method=e,u.arg=n;;){var r=u.delegate;if(r&&(r=function e(n,r){var i=r.method,o=n.iterator[i];return o===t?(r.delegate=null,"throw"===i&&n.iterator.return&&(r.method="return",r.arg=t,e(n,r),"throw"===r.method)||"return"!==i&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+i+"' method")),_):(i=f(o,n.iterator,r.arg),"throw"===i.type?(r.method="throw",r.arg=i.arg,r.delegate=null,_):(o=i.arg,o?o.done?(r[n.resultName]=o.value,r.next=n.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,_):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,_)))}(r,u),r)){if(r===_)continue;return r}if("next"===u.method)u.sent=u._sent=u.arg;else if("throw"===u.method){if(c===p)throw c=g,u.arg;u.dispatchException(u.arg)}else"return"===u.method&&u.abrupt("return",u.arg);if(c=m,r=f(o,a,u),"normal"===r.type){if(c=u.done?g:v,r.arg===_)continue;return{value:r.arg,done:u.done}}"throw"===r.type&&(c=g,u.method="throw",u.arg=r.arg)}})}),n}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=h;var p="suspendedStart",v="suspendedYield",m="executing",g="completed",_={};function y(){}function b(){}function w(){}a={};var T=(d(a,u,(function(){return this})),Object.getPrototypeOf),S=(T=T&&T(T(O([]))),T&&T!==i&&o.call(T,u)&&(a=T),w.prototype=y.prototype=Object.create(a));function C(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){var n;s(this,"_invoke",{value:function(i,s){function a(){return new t((function(n,a){!function n(i,s,a,u){var c;i=f(e[i],e,s);if("throw"!==i.type)return(s=(c=i.arg).value)&&"object"==r(s)&&o.call(s,"__await")?t.resolve(s.__await).then((function(e){n("next",e,a,u)}),(function(e){n("throw",e,a,u)})):t.resolve(s).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,u)}));u(i.arg)}(i,s,n,a)}))}return n=n?n.then(a,a):a()}})}function A(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 x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function O(e){if(e||""===e){var n,i=e[u];if(i)return i.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return n=-1,(i=function r(){for(;++n<e.length;)if(o.call(e,n))return r.value=e[n],r.done=!1,r;return r.value=t,r.done=!0,r}).next=i}throw new TypeError(r(e)+" is not iterable")}return s(S,"constructor",{value:b.prototype=w,configurable:!0}),s(w,"constructor",{value:b,configurable:!0}),b.displayName=d(w,l,"GeneratorFunction"),n.isGeneratorFunction=function(e){return e="function"==typeof e&&e.constructor,!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,d(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},n.awrap=function(e){return{__await:e}},C(E.prototype),d(E.prototype,c,(function(){return this})),n.AsyncIterator=E,n.async=function(e,t,r,i,o){void 0===o&&(o=Promise);var s=new E(h(e,t,r,i),o);return n.isGeneratorFunction(t)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},C(S),d(S,l,"Generator"),d(S,u,(function(){return this})),d(S,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t,n=Object(e),r=[];for(t in n)r.push(t);return r.reverse(),function e(){for(;r.length;){var t=r.pop();if(t in n)return e.value=t,e.done=!1,e}return e.done=!0,e}},n.values=O,R.prototype={constructor:R,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(x),!e)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,i){return a.type="throw",a.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var i=this.tryEntries.length-1;0<=i;--i){var s=this.tryEntries[i],a=s.completion;if("root"===s.tryLoc)return r("end");if(s.tryLoc<=this.prev){var u=o.call(s,"catchLoc"),c=o.call(s,"finallyLoc");if(u&&c){if(this.prev<s.catchLoc)return r(s.catchLoc,!0);if(this.prev<s.finallyLoc)return r(s.finallyLoc)}else if(u){if(this.prev<s.catchLoc)return r(s.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return r(s.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}var s=(i=i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc?null:i)?i.completion:{};return s.type=e,s.arg=t,i?(this.method="next",this.next=i.finallyLoc,_):this.complete(s)},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),_},finish:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),_}},catch:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n,r,i=this.tryEntries[t];if(i.tryLoc===e)return"throw"===(n=i.completion).type&&(r=n.arg,x(i)),r}throw 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),_}},n}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},9985:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},9844:function(e,t,n){var r=n(3502),i=n(7881),o=n(1535),s=n(7911);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||s()},e.exports.__esModule=!0,e.exports.default=e.exports},1699:function(e,t,n){var r=n(9165);e.exports=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e},e.exports.__esModule=!0,e.exports.default=e.exports},9906:function(e,t,n){var r=n(9091).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);if(n=n.call(e,t||"default"),"object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")},e.exports.__esModule=!0,e.exports.default=e.exports},3543:function(e,t,n){var r=n(9091).default,i=n(9906);e.exports=function(e){return e=i(e,"string"),"symbol"==r(e)?e:e+""},e.exports.__esModule=!0,e.exports.default=e.exports},9091:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},1535:function(e,t,n){var r=n(4958);e.exports=function(e,t){var n;if(e)return"string"==typeof e?r(e,t):"Map"===(n="Object"===(n={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0},e.exports.__esModule=!0,e.exports.default=e.exports},2971:function(e,t,n){n=n(8636)(),e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},633:function(e){e.exports=JSON.parse('{"name":"jssip","title":"JsSIP","description":"the Javascript SIP library","version":"3.10.1","homepage":"https://jssip.net","contributors":["José Luis Millán <jmillan@aliax.net> (https://github.com/jmillan)","Iñaki Baz Castillo <ibc@aliax.net> (https://inakibaz.me)"],"types":"lib/JsSIP.d.ts","main":"lib-es5/JsSIP.js","keywords":["sip","websocket","webrtc","node","browser","library"],"license":"MIT","repository":{"type":"git","url":"https://github.com/versatica/JsSIP.git"},"bugs":{"url":"https://github.com/versatica/JsSIP/issues"},"dependencies":{"@types/events":"^3.0.0","@types/debug":"^4.1.7","debug":"^4.3.1","events":"^3.3.0","sdp-transform":"^2.14.1"},"devDependencies":{"@babel/core":"^7.19.6","@babel/preset-env":"^7.19.4","ansi-colors":"^3.2.4","browserify":"^16.5.1","eslint":"^5.16.0","fancy-log":"^1.3.3","gulp":"^4.0.2","gulp-babel":"^8.0.0","gulp-eslint":"^5.0.0","gulp-expect-file":"^1.0.2","gulp-header":"^2.0.9","gulp-nodeunit-runner":"^0.2.2","gulp-plumber":"^1.2.1","gulp-rename":"^1.4.0","gulp-uglify-es":"^1.0.4","pegjs":"^0.7.0","vinyl-buffer":"^1.0.1","vinyl-source-stream":"^2.0.0"},"scripts":{"lint":"node npm-scripts.js lint","test":"node npm-scripts.js test","prepublish":"node npm-scripts.js prepublish","release":"node npm-scripts.js release"}}')}},i={},e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e(4321);function e(t){var r=i[t];return void 0!==r||(r=i[t]={exports:{}},n[t].call(r.exports,r,r.exports,e)),r.exports}var n,i},e.exports=i()}).call(this,n("4362"),n("b639").Buffer)},"408a":function(e,t,n){"use strict";var r=n("e330");e.exports=r(1.1.valueOf)},"40d5":function(e,t,n){"use strict";var r=n("d039");e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},"40e9":function(e,t,n){"use strict";var r=n("23e7"),i=n("41f6");i&&r({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return i(this,arguments.length?arguments[0]:void 0,!1)}})},"418f":function(e,t,n){"use strict";var r=n("23e7"),i=n("cfe9"),o=n("e330"),s=n("f69d"),a=n("6b37"),u=n("2005"),c=n("b917"),l=n("da63"),d=c.i2c,h=c.i2cUrl,f=o("".charAt),p=i.Uint8Array,v=!p||!p.prototype.toBase64||!function(){try{var e=new p;e.toBase64(null)}catch(t){return!0}}();p&&r({target:"Uint8Array",proto:!0,forced:v},{toBase64:function(){var e=a(this),t=arguments.length?s(arguments[0]):void 0,n="base64"===l(t)?d:h,r=!!t&&!!t.omitPadding;u(this.buffer);for(var i,o="",c=0,p=e.length,v=function(e){return f(n,i>>6*e&63)};c+2<p;c+=3)i=(e[c]<<16)+(e[c+1]<<8)+e[c+2],o+=v(3)+v(2)+v(1)+v(0);return c+2===p?(i=(e[c]<<16)+(e[c+1]<<8),o+=v(3)+v(2)+v(1)+(r?"":"=")):c+1===p&&(i=e[c]<<16,o+=v(3)+v(2)+(r?"":"==")),o}})},"41f6":function(e,t,n){"use strict";var r=n("cfe9"),i=n("e330"),o=n("7282"),s=n("0b25"),a=n("2005"),u=n("b620"),c=n("36f2"),l=n("dbe5"),d=r.structuredClone,h=r.ArrayBuffer,f=r.DataView,p=Math.min,v=h.prototype,m=f.prototype,g=i(v.slice),_=o(v,"resizable","get"),y=o(v,"maxByteLength","get"),b=i(m.getInt8),w=i(m.setInt8);e.exports=(l||c)&&function(e,t,n){var r,i=u(e),o=void 0===t?i:s(t),v=!_||!_(e);if(a(e),l&&(e=d(e,{transfer:[e]}),i===o&&(n||v)))return e;if(i>=o&&(!n||v))r=g(e,0,o);else{var m=n&&!v&&y?{maxByteLength:y(e)}:void 0;r=new h(o,m);for(var T=new f(e),S=new f(r),C=p(o,i),E=0;E<C;E++)w(S,E,b(T,E))}return l||c(e),r}},"428f":function(e,t,n){"use strict";var r=n("cfe9");e.exports=r},4362:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,r="/";t.cwd=function(){return r},t.chdir=function(t){e||(e=n("df7c")),r=e.resolve(t,r)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"44ad":function(e,t,n){"use strict";var r=n("e330"),i=n("d039"),o=n("c6b6"),s=Object,a=r("".split);e.exports=i((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"===o(e)?a(e,""):s(e)}:s},"44d2":function(e,t,n){"use strict";var r=n("b622"),i=n("7c73"),o=n("9bf2").f,s=r("unscopables"),a=Array.prototype;void 0===a[s]&&o(a,s,{configurable:!0,value:i(null)}),e.exports=function(e){a[s][e]=!0}},"44de":function(e,t,n){"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(n){}}},"44e7":function(e,t,n){"use strict";var r=n("861d"),i=n("c6b6"),o=n("b622"),s=o("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[s])?!!t:"RegExp"===i(e))}},4625:function(e,t,n){"use strict";var r=n("c6b6"),i=n("e330");e.exports=function(e){if("Function"===r(e))return i(e)}},"466d":function(e,t,n){"use strict";var r=n("c65b"),i=n("e330"),o=n("d784"),s=n("825a"),a=n("861d"),u=n("50c4"),c=n("577e"),l=n("1d80"),d=n("dc4a"),h=n("8aa5"),f=n("90d8"),p=n("14c3"),v=i("".indexOf);o("match",(function(e,t,n){return[function(t){var n=l(this),i=a(t)?d(t,e):void 0;return i?r(i,t,n):new RegExp(t)[e](c(n))},function(e){var r=s(this),i=c(e),o=n(t,r,i);if(o.done)return o.value;var a=c(f(r));if(-1===v(a,"g"))return p(r,i);var l=-1!==v(a,"u");r.lastIndex=0;var d,m=[],g=0;while(null!==(d=p(r,i))){var _=c(d[0]);m[g]=_,""===_&&(r.lastIndex=h(i,u(r.lastIndex),l)),g++}return 0===g?null:m}]}))},"46c4":function(e,t,n){"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},4738:function(e,t,n){"use strict";var r=n("cfe9"),i=n("d256"),o=n("1626"),s=n("94ca"),a=n("8925"),u=n("b622"),c=n("8558"),l=n("c430"),d=n("1212"),h=i&&i.prototype,f=u("species"),p=!1,v=o(r.PromiseRejectionEvent),m=s("Promise",(function(){var e=a(i),t=e!==String(i);if(!t&&66===d)return!0;if(l&&(!h["catch"]||!h["finally"]))return!0;if(!d||d<51||!/native code/.test(e)){var n=new i((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))},o=n.constructor={};if(o[f]=r,p=n.then((function(){}))instanceof r,!p)return!0}return!t&&("BROWSER"===c||"DENO"===c)&&!v}));e.exports={CONSTRUCTOR:m,REJECTION_EVENT:v,SUBCLASSING:p}},4754:function(e,t,n){"use strict";e.exports=function(e,t){return{value:e,done:t}}},4801:function(e,t,n){"use strict";n("b848")},4804:function(e,t,n){},4840:function(e,t,n){"use strict";var r=n("825a"),i=n("5087"),o=n("7234"),s=n("b622"),a=s("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||o(n=r(s)[a])?t:i(n)}},"485a":function(e,t,n){"use strict";var r=n("c65b"),i=n("1626"),o=n("861d"),s=TypeError;e.exports=function(e,t){var n,a;if("string"===t&&i(n=e.toString)&&!o(a=r(n,e)))return a;if(i(n=e.valueOf)&&!o(a=r(n,e)))return a;if("string"!==t&&i(n=e.toString)&&!o(a=r(n,e)))return a;throw new s("Can't convert object to primitive value")}},"498a":function(e,t,n){"use strict";var r=n("23e7"),i=n("58a8").trim,o=n("c8d2");r({target:"String",proto:!0,forced:o("trim")},{trim:function(){return i(this)}})},"4b11":function(e,t,n){"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},"4b85":function(e,t,n){},"4d63":function(e,t,n){"use strict";var r=n("83ab"),i=n("cfe9"),o=n("e330"),s=n("94ca"),a=n("7156"),u=n("9112"),c=n("7c73"),l=n("241c").f,d=n("3a9b"),h=n("44e7"),f=n("577e"),p=n("90d8"),v=n("9f7f"),m=n("aeb0"),g=n("cb2d"),_=n("d039"),y=n("1a2d"),b=n("69f3").enforce,w=n("2626"),T=n("b622"),S=n("fce3"),C=n("107c"),E=T("match"),A=i.RegExp,x=A.prototype,R=i.SyntaxError,O=o(x.exec),I=o("".charAt),k=o("".replace),P=o("".indexOf),M=o("".slice),N=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,L=/a/g,D=/a/g,U=new A(L)!==L,j=v.MISSED_STICKY,F=v.UNSUPPORTED_Y,H=r&&(!U||j||S||C||_((function(){return D[E]=!1,A(L)!==L||A(D)===D||"/a/i"!==String(A(L,"i"))}))),B=function(e){for(var t,n=e.length,r=0,i="",o=!1;r<=n;r++)t=I(e,r),"\\"!==t?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+I(e,++r);return i},$=function(e){for(var t,n=e.length,r=0,i="",o=[],s=c(null),a=!1,u=!1,l=0,d="";r<=n;r++){if(t=I(e,r),"\\"===t)t+=I(e,++r);else if("]"===t)a=!1;else if(!a)switch(!0){case"["===t:a=!0;break;case"("===t:if(i+=t,"?:"===M(e,r+1,r+3))continue;O(N,M(e,r+1))&&(r+=2,u=!0),l++;continue;case">"===t&&u:if(""===d||y(s,d))throw new R("Invalid capture group name");s[d]=!0,o[o.length]=[d,l],u=!1,d="";continue}u?d+=t:i+=t}return[i,o]};if(s("RegExp",H)){for(var q=function(e,t){var n,r,i,o,s,c,l=d(x,this),v=h(e),m=void 0===t,g=[],_=e;if(!l&&v&&m&&e.constructor===q)return e;if((v||d(x,e))&&(e=e.source,m&&(t=p(_))),e=void 0===e?"":f(e),t=void 0===t?"":f(t),_=e,S&&"dotAll"in L&&(r=!!t&&P(t,"s")>-1,r&&(t=k(t,/s/g,""))),n=t,j&&"sticky"in L&&(i=!!t&&P(t,"y")>-1,i&&F&&(t=k(t,/y/g,""))),C&&(o=$(e),e=o[0],g=o[1]),s=a(A(e,t),l?this:x,q),(r||i||g.length)&&(c=b(s),r&&(c.dotAll=!0,c.raw=q(B(e),n)),i&&(c.sticky=!0),g.length&&(c.groups=g)),e!==_)try{u(s,"source",""===_?"(?:)":_)}catch(y){}return s},V=l(A),z=0;V.length>z;)m(q,A,V[z++]);x.constructor=q,q.prototype=x,g(i,"RegExp",q,{constructor:!0})}w("RegExp")},"4d64":function(e,t,n){"use strict";var r=n("fc6a"),i=n("23cb"),o=n("07fa"),s=function(e){return function(t,n,s){var a=r(t),u=o(a);if(0===u)return!e&&-1;var c,l=i(s,u);if(e&&n!==n){while(u>l)if(c=a[l++],c!==c)return!0}else for(;u>l;l++)if((e||l in a)&&a[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},"4df4":function(e,t,n){"use strict";var r=n("0366"),i=n("c65b"),o=n("7b0b"),s=n("9bdd"),a=n("e95a"),u=n("68ee"),c=n("07fa"),l=n("8418"),d=n("9a1f"),h=n("35a1"),f=Array;e.exports=function(e){var t=o(e),n=u(this),p=arguments.length,v=p>1?arguments[1]:void 0,m=void 0!==v;m&&(v=r(v,p>2?arguments[2]:void 0));var g,_,y,b,w,T,S=h(t),C=0;if(!S||this===f&&a(S))for(g=c(t),_=n?new this(g):f(g);g>C;C++)T=m?v(t[C],C):t[C],l(_,C,T);else for(_=n?new this:[],b=d(t,S),w=b.next;!(y=i(w,b)).done;C++)T=m?s(b,v,[y.value,C],!0):y.value,l(_,C,T);return _.length=C,_}},"4e82":function(e,t,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("59ed"),s=n("7b0b"),a=n("07fa"),u=n("083a"),c=n("577e"),l=n("d039"),d=n("addb"),h=n("a640"),f=n("3f7e"),p=n("99f4"),v=n("1212"),m=n("ea83"),g=[],_=i(g.sort),y=i(g.push),b=l((function(){g.sort(void 0)})),w=l((function(){g.sort(null)})),T=h("sort"),S=!l((function(){if(v)return v<70;if(!(f&&f>3)){if(p)return!0;if(m)return m<603;var e,t,n,r,i="";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++)g.push({k:t+r,v:n})}for(g.sort((function(e,t){return t.v-e.v})),r=0;r<g.length;r++)t=g[r].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}})),C=b||!w||!T||!S,E=function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:c(t)>c(n)?1:-1}};r({target:"Array",proto:!0,forced:C},{sort:function(e){void 0!==e&&o(e);var t=s(this);if(S)return void 0===e?_(t):_(t,e);var n,r,i=[],c=a(t);for(r=0;r<c;r++)r in t&&y(i,t[r]);d(i,E(e)),n=a(i),r=0;while(r<n)t[r]=i[r++];while(r<c)u(t,r++);return t}})},"4ea1":function(e,t,n){"use strict";var r=n("d429"),i=n("ebb5"),o=n("bcbf"),s=n("5926"),a=n("f495"),u=i.aTypedArray,c=i.getTypedArrayConstructor,l=i.exportTypedArrayMethod,d=function(){try{new Int8Array(1)["with"](2,{valueOf:function(){throw 8}})}catch(e){return 8===e}}(),h=d&&function(){try{new Int8Array(1)["with"](-.5,1)}catch(e){return!0}}();l("with",{with:function(e,t){var n=u(this),i=s(e),l=o(n)?a(t):+t;return r(n,c(n),i,l)}}["with"],!d||h)},"4ec9":function(e,t,n){"use strict";n("6f48")},"4fad":function(e,t,n){"use strict";var r=n("d039"),i=n("861d"),o=n("c6b6"),s=n("d86b"),a=Object.isExtensible,u=r((function(){a(1)}));e.exports=u||s?function(e){return!!i(e)&&((!s||"ArrayBuffer"!==o(e))&&(!a||a(e)))}:a},5087:function(e,t,n){"use strict";var r=n("68ee"),i=n("0d51"),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a constructor")}},"5087e":function(e,t,n){"use strict";n("1236")},"50c4":function(e,t,n){"use strict";var r=n("5926"),i=Math.min;e.exports=function(e){var t=r(e);return t>0?i(t,9007199254740991):0}},"52b5":function(e,t,n){"use strict";n("d79f")},"52c8":function(e,t,n){"use strict";var r=n("b5db");e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},5319:function(e,t,n){"use strict";var r=n("2ba4"),i=n("c65b"),o=n("e330"),s=n("d784"),a=n("d039"),u=n("825a"),c=n("1626"),l=n("861d"),d=n("5926"),h=n("50c4"),f=n("577e"),p=n("1d80"),v=n("8aa5"),m=n("dc4a"),g=n("0cb2"),_=n("90d8"),y=n("14c3"),b=n("b622"),w=b("replace"),T=Math.max,S=Math.min,C=o([].concat),E=o([].push),A=o("".indexOf),x=o("".slice),R=function(e){return void 0===e?e:String(e)},O=function(){return"$0"==="a".replace(/./,"$0")}(),I=function(){return!!/./[w]&&""===/./[w]("a","$0")}(),k=!a((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));s("replace",(function(e,t,n){var o=I?"$":"$0";return[function(e,n){var r=p(this),o=l(e)?m(e,w):void 0;return o?i(o,e,r,n):i(t,f(r),e,n)},function(e,i){var s=u(this),a=f(e);if("string"==typeof i&&-1===A(i,o)&&-1===A(i,"$<")){var l=n(t,s,a,i);if(l.done)return l.value}var p=c(i);p||(i=f(i));var m,b=f(_(s)),w=-1!==A(b,"g");w&&(m=-1!==A(b,"u"),s.lastIndex=0);var O,I=[];while(1){if(O=y(s,a),null===O)break;if(E(I,O),!w)break;var k=f(O[0]);""===k&&(s.lastIndex=v(a,h(s.lastIndex),m))}for(var P="",M=0,N=0;N<I.length;N++){O=I[N];for(var L,D=f(O[0]),U=T(S(d(O.index),a.length),0),j=[],F=1;F<O.length;F++)E(j,R(O[F]));var H=O.groups;if(p){var B=C([D],j,U,a);void 0!==H&&E(B,H),L=f(r(i,void 0,B))}else L=g(D,a,U,j,H,i);U>=M&&(P+=x(a,M,U)+L,M=U+D.length)}return P+x(a,M)}]}),!k||!O||I)},5320:function(e,t,n){"use strict";e.exports=function(e){try{var t=new Set,n={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return t.clear(),t.add(4),function(){return{done:!0}}}})}},r=t[e](n);return 1===r.size&&4===r.values().next().value}catch(i){return!1}}},5352:function(e,t,n){"use strict";n("e260"),n("f6d6");var r=n("23e7"),i=n("cfe9"),o=n("157a"),s=n("d066"),a=n("c65b"),u=n("e330"),c=n("83ab"),l=n("f354"),d=n("cb2d"),h=n("edd0"),f=n("6964"),p=n("d44e"),v=n("dcc3"),m=n("69f3"),g=n("19aa"),_=n("1626"),y=n("1a2d"),b=n("0366"),w=n("f5df"),T=n("825a"),S=n("861d"),C=n("577e"),E=n("7c73"),A=n("5c6c"),x=n("9a1f"),R=n("35a1"),O=n("4754"),I=n("d6d6"),k=n("b622"),P=n("addb"),M=k("iterator"),N="URLSearchParams",L=N+"Iterator",D=m.set,U=m.getterFor(N),j=m.getterFor(L),F=o("fetch"),H=o("Request"),B=o("Headers"),$=H&&H.prototype,q=B&&B.prototype,V=i.TypeError,z=i.encodeURIComponent,W=String.fromCharCode,G=s("String","fromCodePoint"),Y=parseInt,K=u("".charAt),X=u([].join),J=u([].push),Q=u("".replace),Z=u([].shift),ee=u([].splice),te=u("".split),ne=u("".slice),re=u(/./.exec),ie=/\+/g,oe="�",se=/^[0-9a-f]+$/i,ae=function(e,t){var n=ne(e,t,t+2);return re(se,n)?Y(n,16):NaN},ue=function(e){for(var t=0,n=128;n>0&&0!==(e&n);n>>=1)t++;return t},ce=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3];break}return t>1114111?null:t},le=function(e){e=Q(e,ie," ");var t=e.length,n="",r=0;while(r<t){var i=K(e,r);if("%"===i){if("%"===K(e,r+1)||r+3>t){n+="%",r++;continue}var o=ae(e,r+1);if(o!==o){n+=i,r++;continue}r+=2;var s=ue(o);if(0===s)i=W(o);else{if(1===s||s>4){n+=oe,r++;continue}var a=[o],u=1;while(u<s){if(r++,r+3>t||"%"!==K(e,r))break;var c=ae(e,r+1);if(c!==c){r+=3;break}if(c>191||c<128)break;J(a,c),r+=2,u++}if(a.length!==s){n+=oe;continue}var l=ce(a);null===l?n+=oe:i=G(l)}}n+=i,r++}return n},de=/[!'()~]|%20/g,he={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},fe=function(e){return he[e]},pe=function(e){return Q(z(e),de,fe)},ve=v((function(e,t){D(this,{type:L,target:U(e).entries,index:0,kind:t})}),N,(function(){var e=j(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,O(void 0,!0);var r=t[n];switch(e.kind){case"keys":return O(r.key,!1);case"values":return O(r.value,!1)}return O([r.key,r.value],!1)}),!0),me=function(e){this.entries=[],this.url=null,void 0!==e&&(S(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===K(e,0)?ne(e,1):e:C(e)))};me.prototype={type:N,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,i,o,s,u,c=this.entries,l=R(e);if(l){t=x(e,l),n=t.next;while(!(r=a(n,t)).done){if(i=x(T(r.value)),o=i.next,(s=a(o,i)).done||(u=a(o,i)).done||!a(o,i).done)throw new V("Expected sequence with length 2");J(c,{key:C(s.value),value:C(u.value)})}}else for(var d in e)y(e,d)&&J(c,{key:d,value:C(e[d])})},parseQuery:function(e){if(e){var t,n,r=this.entries,i=te(e,"&"),o=0;while(o<i.length)t=i[o++],t.length&&(n=te(t,"="),J(r,{key:le(Z(n)),value:le(X(n,"="))}))}},serialize:function(){var e,t=this.entries,n=[],r=0;while(r<t.length)e=t[r++],J(n,pe(e.key)+"="+pe(e.value));return X(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ge=function(){g(this,_e);var e=arguments.length>0?arguments[0]:void 0,t=D(this,new me(e));c||(this.size=t.entries.length)},_e=ge.prototype;if(f(_e,{append:function(e,t){var n=U(this);I(arguments.length,2),J(n.entries,{key:C(e),value:C(t)}),c||this.size++,n.updateURL()},delete:function(e){var t=U(this),n=I(arguments.length,1),r=t.entries,i=C(e),o=n<2?void 0:arguments[1],s=void 0===o?o:C(o),a=0;while(a<r.length){var u=r[a];if(u.key!==i||void 0!==s&&u.value!==s)a++;else if(ee(r,a,1),void 0!==s)break}c||(this.size=r.length),t.updateURL()},get:function(e){var t=U(this).entries;I(arguments.length,1);for(var n=C(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){var t=U(this).entries;I(arguments.length,1);for(var n=C(e),r=[],i=0;i<t.length;i++)t[i].key===n&&J(r,t[i].value);return r},has:function(e){var t=U(this).entries,n=I(arguments.length,1),r=C(e),i=n<2?void 0:arguments[1],o=void 0===i?i:C(i),s=0;while(s<t.length){var a=t[s++];if(a.key===r&&(void 0===o||a.value===o))return!0}return!1},set:function(e,t){var n=U(this);I(arguments.length,1);for(var r,i=n.entries,o=!1,s=C(e),a=C(t),u=0;u<i.length;u++)r=i[u],r.key===s&&(o?ee(i,u--,1):(o=!0,r.value=a));o||J(i,{key:s,value:a}),c||(this.size=i.length),n.updateURL()},sort:function(){var e=U(this);P(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){var t,n=U(this).entries,r=b(e,arguments.length>1?arguments[1]:void 0),i=0;while(i<n.length)t=n[i++],r(t.value,t.key,this)},keys:function(){return new ve(this,"keys")},values:function(){return new ve(this,"values")},entries:function(){return new ve(this,"entries")}},{enumerable:!0}),d(_e,M,_e.entries,{name:"entries"}),d(_e,"toString",(function(){return U(this).serialize()}),{enumerable:!0}),c&&h(_e,"size",{get:function(){return U(this).entries.length},configurable:!0,enumerable:!0}),p(ge,N),r({global:!0,constructor:!0,forced:!l},{URLSearchParams:ge}),!l&&_(B)){var ye=u(q.has),be=u(q.set),we=function(e){if(S(e)){var t,n=e.body;if(w(n)===N)return t=e.headers?new B(e.headers):new B,ye(t,"content-type")||be(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),E(e,{body:A(0,C(n)),headers:A(0,t)})}return e};if(_(F)&&r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return F(e,arguments.length>1?we(arguments[1]):{})}}),_(H)){var Te=function(e){return g(this,$),new H(e,arguments.length>1?we(arguments[1]):{})};$.constructor=Te,Te.prototype=$,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Te})}}e.exports={URLSearchParams:ge,getState:U}},5388:function(e,t,n){"use strict";var r=n("c65b");e.exports=function(e,t,n){var i,o,s=n?e:e.iterator,a=e.next;while(!(i=r(a,s)).done)if(o=t(i.value),void 0!==o)return o}},5494:function(e,t,n){"use strict";var r=n("83ab"),i=n("e330"),o=n("edd0"),s=URLSearchParams.prototype,a=i(s.forEach);r&&!("size"in s)&&o(s,"size",{get:function(){var e=0;return a(this,(function(){e++})),e},configurable:!0,enumerable:!0})},5692:function(e,t,n){"use strict";var r=n("c6cd");e.exports=function(e,t){return r[e]||(r[e]=t||{})}},"56ef":function(e,t,n){"use strict";var r=n("d066"),i=n("e330"),o=n("241c"),s=n("7418"),a=n("825a"),u=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(a(e)),n=s.f;return n?u(t,n(e)):t}},"577e":function(e,t,n){"use strict";var r=n("f5df"),i=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},5899:function(e,t,n){"use strict";e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(e,t,n){"use strict";var r=n("e330"),i=n("1d80"),o=n("577e"),s=n("5899"),a=r("".replace),u=RegExp("^["+s+"]+"),c=RegExp("(^|[^"+s+"])["+s+"]+$"),l=function(e){return function(t){var n=o(i(t));return 1&e&&(n=a(n,u,"")),2&e&&(n=a(n,c,"$1")),n}};e.exports={start:l(1),end:l(2),trim:l(3)}},5926:function(e,t,n){"use strict";var r=n("b42e");e.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},"59ed":function(e,t,n){"use strict";var r=n("1626"),i=n("0d51"),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a function")}},"5a34":function(e,t,n){"use strict";var r=n("44e7"),i=TypeError;e.exports=function(e){if(r(e))throw new i("The method doesn't accept regular expressions");return e}},"5a43":function(e,t){function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"5c6c":function(e,t,n){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5cc6":function(e,t,n){"use strict";var r=n("74e8");r("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},"5e77":function(e,t,n){"use strict";var r=n("83ab"),i=n("1a2d"),o=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,a=i(o,"name"),u=a&&"something"===function(){}.name,c=a&&(!r||r&&s(o,"name").configurable);e.exports={EXISTS:a,PROPER:u,CONFIGURABLE:c}},"5e7e":function(e,t,n){"use strict";var r,i,o,s,a=n("23e7"),u=n("c430"),c=n("9adc"),l=n("cfe9"),d=n("428f"),h=n("c65b"),f=n("cb2d"),p=n("d2bb"),v=n("d44e"),m=n("2626"),g=n("59ed"),_=n("1626"),y=n("861d"),b=n("19aa"),w=n("4840"),T=n("2cf4").set,S=n("b575"),C=n("44de"),E=n("e667"),A=n("01b4"),x=n("69f3"),R=n("d256"),O=n("4738"),I=n("f069"),k="Promise",P=O.CONSTRUCTOR,M=O.REJECTION_EVENT,N=O.SUBCLASSING,L=x.getterFor(k),D=x.set,U=R&&R.prototype,j=R,F=U,H=l.TypeError,B=l.document,$=l.process,q=I.f,V=q,z=!!(B&&B.createEvent&&l.dispatchEvent),W="unhandledrejection",G="rejectionhandled",Y=0,K=1,X=2,J=1,Q=2,Z=function(e){var t;return!(!y(e)||!_(t=e.then))&&t},ee=function(e,t){var n,r,i,o=t.value,s=t.state===K,a=s?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{a?(s||(t.rejection===Q&&oe(t),t.rejection=J),!0===a?n=o:(l&&l.enter(),n=a(o),l&&(l.exit(),i=!0)),n===e.promise?c(new H("Promise-chain cycle")):(r=Z(n))?h(r,n,u,c):u(n)):c(o)}catch(d){l&&!i&&l.exit(),c(d)}},te=function(e,t){e.notified||(e.notified=!0,S((function(){var n,r=e.reactions;while(n=r.get())ee(n,e);e.notified=!1,t&&!e.rejection&&re(e)})))},ne=function(e,t,n){var r,i;z?(r=B.createEvent("Event"),r.promise=t,r.reason=n,r.initEvent(e,!1,!0),l.dispatchEvent(r)):r={promise:t,reason:n},!M&&(i=l["on"+e])?i(r):e===W&&C("Unhandled promise rejection",n)},re=function(e){h(T,l,(function(){var t,n=e.facade,r=e.value,i=ie(e);if(i&&(t=E((function(){c?$.emit("unhandledRejection",r,n):ne(W,n,r)})),e.rejection=c||ie(e)?Q:J,t.error))throw t.value}))},ie=function(e){return e.rejection!==J&&!e.parent},oe=function(e){h(T,l,(function(){var t=e.facade;c?$.emit("rejectionHandled",t):ne(G,t,e.value)}))},se=function(e,t,n){return function(r){e(t,r,n)}},ae=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=X,te(e,!0))},ue=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new H("Promise can't be resolved itself");var r=Z(t);r?S((function(){var n={done:!1};try{h(r,t,se(ue,n,e),se(ae,n,e))}catch(i){ae(n,i,e)}})):(e.value=t,e.state=K,te(e,!1))}catch(i){ae({done:!1},i,e)}}};if(P&&(j=function(e){b(this,F),g(e),h(r,this);var t=L(this);try{e(se(ue,t),se(ae,t))}catch(n){ae(t,n)}},F=j.prototype,r=function(e){D(this,{type:k,done:!1,notified:!1,parent:!1,reactions:new A,rejection:!1,state:Y,value:null})},r.prototype=f(F,"then",(function(e,t){var n=L(this),r=q(w(this,j));return n.parent=!0,r.ok=!_(e)||e,r.fail=_(t)&&t,r.domain=c?$.domain:void 0,n.state===Y?n.reactions.add(r):S((function(){ee(r,n)})),r.promise})),i=function(){var e=new r,t=L(e);this.promise=e,this.resolve=se(ue,t),this.reject=se(ae,t)},I.f=q=function(e){return e===j||e===o?new i(e):V(e)},!u&&_(R)&&U!==Object.prototype)){s=U.then,N||f(U,"then",(function(e,t){var n=this;return new j((function(e,t){h(s,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete U.constructor}catch(ce){}p&&p(U,F)}a({global:!0,constructor:!0,wrap:!0,forced:P},{Promise:j}),o=d.Promise,v(j,k,!1,!0),m(k)},"5eed":function(e,t,n){"use strict";var r=n("d256"),i=n("1c7e"),o=n("4738").CONSTRUCTOR;e.exports=o||!i((function(e){r.all(e).then(void 0,(function(){}))}))},"5fb2":function(e,t,n){"use strict";var r=n("e330"),i=2147483647,o=36,s=1,a=26,u=38,c=700,l=72,d=128,h="-",f=/[^\0-\u007E]/,p=/[.\u3002\uFF0E\uFF61]/g,v="Overflow: input needs wider integers to process",m=o-s,g=RangeError,_=r(p.exec),y=Math.floor,b=String.fromCharCode,w=r("".charCodeAt),T=r([].join),S=r([].push),C=r("".replace),E=r("".split),A=r("".toLowerCase),x=function(e){var t=[],n=0,r=e.length;while(n<r){var i=w(e,n++);if(i>=55296&&i<=56319&&n<r){var o=w(e,n++);56320===(64512&o)?S(t,((1023&i)<<10)+(1023&o)+65536):(S(t,i),n--)}else S(t,i)}return t},R=function(e){return e+22+75*(e<26)},O=function(e,t,n){var r=0;e=n?y(e/c):e>>1,e+=y(e/t);while(e>m*a>>1)e=y(e/m),r+=o;return y(r+(m+1)*e/(e+u))},I=function(e){var t=[];e=x(e);var n,r,u=e.length,c=d,f=0,p=l;for(n=0;n<e.length;n++)r=e[n],r<128&&S(t,b(r));var m=t.length,_=m;m&&S(t,h);while(_<u){var w=i;for(n=0;n<e.length;n++)r=e[n],r>=c&&r<w&&(w=r);var C=_+1;if(w-c>y((i-f)/C))throw new g(v);for(f+=(w-c)*C,c=w,n=0;n<e.length;n++){if(r=e[n],r<c&&++f>i)throw new g(v);if(r===c){var E=f,A=o;while(1){var I=A<=p?s:A>=p+a?a:A-p;if(E<I)break;var k=E-I,P=o-I;S(t,b(R(I+k%P))),E=y(k/P),A+=o}S(t,b(R(E))),p=O(f,C,_===m),f=0,_++}}f++,c++}return T(t,"")};e.exports=function(e){var t,n,r=[],i=E(C(A(e),p,"."),".");for(t=0;t<i.length;t++)n=i[t],S(r,_(f,n)?"xn--"+I(n):n);return T(r,".")}},6062:function(e,t,n){"use strict";n("1c59")},"60da":function(e,t,n){"use strict";var r=n("83ab"),i=n("e330"),o=n("c65b"),s=n("d039"),a=n("df75"),u=n("7418"),c=n("d1e7"),l=n("7b0b"),d=n("44ad"),h=Object.assign,f=Object.defineProperty,p=i([].concat);e.exports=!h||s((function(){if(r&&1!==h({b:1},h(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!==h({},e)[n]||a(h({},t)).join("")!==i}))?function(e,t){var n=l(e),i=arguments.length,s=1,h=u.f,f=c.f;while(i>s){var v,m=d(arguments[s++]),g=h?p(a(m),h(m)):a(m),_=g.length,y=0;while(_>y)v=g[y++],r&&!o(f,m,v)||(n[v]=m[v])}return n}:h},"61ae":function(e,t,n){"use strict";n("8407")},"621a":function(e,t,n){"use strict";var r=n("cfe9"),i=n("e330"),o=n("83ab"),s=n("4b11"),a=n("5e77"),u=n("9112"),c=n("edd0"),l=n("6964"),d=n("d039"),h=n("19aa"),f=n("5926"),p=n("50c4"),v=n("0b25"),m=n("be8e"),g=n("77a7"),_=n("e163"),y=n("d2bb"),b=n("81d5"),w=n("f36a"),T=n("7156"),S=n("e893"),C=n("d44e"),E=n("69f3"),A=a.PROPER,x=a.CONFIGURABLE,R="ArrayBuffer",O="DataView",I="prototype",k="Wrong length",P="Wrong index",M=E.getterFor(R),N=E.getterFor(O),L=E.set,D=r[R],U=D,j=U&&U[I],F=r[O],H=F&&F[I],B=Object.prototype,$=r.Array,q=r.RangeError,V=i(b),z=i([].reverse),W=g.pack,G=g.unpack,Y=function(e){return[255&e]},K=function(e){return[255&e,e>>8&255]},X=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},J=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},Q=function(e){return W(m(e),23,4)},Z=function(e){return W(e,52,8)},ee=function(e,t,n){c(e[I],t,{configurable:!0,get:function(){return n(this)[t]}})},te=function(e,t,n,r){var i=N(e),o=v(n),s=!!r;if(o+t>i.byteLength)throw new q(P);var a=i.bytes,u=o+i.byteOffset,c=w(a,u,u+t);return s?c:z(c)},ne=function(e,t,n,r,i,o){var s=N(e),a=v(n),u=r(+i),c=!!o;if(a+t>s.byteLength)throw new q(P);for(var l=s.bytes,d=a+s.byteOffset,h=0;h<t;h++)l[d+h]=u[c?h:t-h-1]};if(s){var re=A&&D.name!==R;d((function(){D(1)}))&&d((function(){new D(-1)}))&&!d((function(){return new D,new D(1.5),new D(NaN),1!==D.length||re&&!x}))?re&&x&&u(D,"name",R):(U=function(e){return h(this,j),T(new D(v(e)),this,U)},U[I]=j,j.constructor=U,S(U,D)),y&&_(H)!==B&&y(H,B);var ie=new F(new U(2)),oe=i(H.setInt8);ie.setInt8(0,2147483648),ie.setInt8(1,2147483649),!ie.getInt8(0)&&ie.getInt8(1)||l(H,{setInt8:function(e,t){oe(this,e,t<<24>>24)},setUint8:function(e,t){oe(this,e,t<<24>>24)}},{unsafe:!0})}else U=function(e){h(this,j);var t=v(e);L(this,{type:R,bytes:V($(t),0),byteLength:t}),o||(this.byteLength=t,this.detached=!1)},j=U[I],F=function(e,t,n){h(this,H),h(e,j);var r=M(e),i=r.byteLength,s=f(t);if(s<0||s>i)throw new q("Wrong offset");if(n=void 0===n?i-s:p(n),s+n>i)throw new q(k);L(this,{type:O,buffer:e,byteLength:n,byteOffset:s,bytes:r.bytes}),o||(this.buffer=e,this.byteLength=n,this.byteOffset=s)},H=F[I],o&&(ee(U,"byteLength",M),ee(F,"buffer",N),ee(F,"byteLength",N),ee(F,"byteOffset",N)),l(H,{getInt8:function(e){return te(this,1,e)[0]<<24>>24},getUint8:function(e){return te(this,1,e)[0]},getInt16:function(e){var t=te(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=te(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return J(te(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return J(te(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return G(te(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return G(te(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){ne(this,1,e,Y,t)},setUint8:function(e,t){ne(this,1,e,Y,t)},setInt16:function(e,t){ne(this,2,e,K,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){ne(this,2,e,K,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){ne(this,4,e,X,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){ne(this,4,e,X,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){ne(this,4,e,Q,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){ne(this,8,e,Z,t,arguments.length>2&&arguments[2])}});C(U,R),C(F,O),e.exports={ArrayBuffer:U,DataView:F}},6374:function(e,t,n){"use strict";var r=n("cfe9"),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},63748:function(e,t,n){n("e01a"),n("d9e2"),n("e260"),n("ddb0");var r=n("6613");function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,s=e},f:function(){try{a||null==n["return"]||n["return"]()}finally{if(u)throw s}}}}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},6547:function(e,t,n){"use strict";var r=n("e330"),i=n("5926"),o=n("577e"),s=n("1d80"),a=r("".charAt),u=r("".charCodeAt),c=r("".slice),l=function(e){return function(t,n){var r,l,d=o(s(t)),h=i(n),f=d.length;return h<0||h>=f?e?"":void 0:(r=u(d,h),r<55296||r>56319||h+1===f||(l=u(d,h+1))<56320||l>57343?e?a(d,h):r:e?c(d,h,h+2):l-56320+(r-55296<<10)+65536)}};e.exports={codeAt:l(!1),charAt:l(!0)}},6566:function(e,t,n){"use strict";var r=n("7c73"),i=n("edd0"),o=n("6964"),s=n("0366"),a=n("19aa"),u=n("7234"),c=n("2266"),l=n("c6d2"),d=n("4754"),h=n("2626"),f=n("83ab"),p=n("f183").fastKey,v=n("69f3"),m=v.set,g=v.getterFor;e.exports={getConstructor:function(e,t,n,l){var d=e((function(e,i){a(e,h),m(e,{type:t,index:r(null),first:null,last:null,size:0}),f||(e.size=0),u(i)||c(i,e[l],{that:e,AS_ENTRIES:n})})),h=d.prototype,v=g(t),_=function(e,t,n){var r,i,o=v(e),s=y(e,t);return s?s.value=n:(o.last=s={index:i=p(t,!0),key:t,value:n,previous:r=o.last,next:null,removed:!1},o.first||(o.first=s),r&&(r.next=s),f?o.size++:e.size++,"F"!==i&&(o.index[i]=s)),e},y=function(e,t){var n,r=v(e),i=p(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key===t)return n};return o(h,{clear:function(){var e=this,t=v(e),n=t.first;while(n)n.removed=!0,n.previous&&(n.previous=n.previous.next=null),n=n.next;t.first=t.last=null,t.index=r(null),f?t.size=0:e.size=0},delete:function(e){var t=this,n=v(t),r=y(t,e);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first===r&&(n.first=i),n.last===r&&(n.last=o),f?n.size--:t.size--}return!!r},forEach:function(e){var t,n=v(this),r=s(e,arguments.length>1?arguments[1]:void 0);while(t=t?t.next:n.first){r(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!y(this,e)}}),o(h,n?{get:function(e){var t=y(this,e);return t&&t.value},set:function(e,t){return _(this,0===e?0:e,t)}}:{add:function(e){return _(this,e=0===e?0:e,e)}}),f&&i(h,"size",{configurable:!0,get:function(){return v(this).size}}),d},setStrong:function(e,t,n){var r=t+" Iterator",i=g(t),o=g(r);l(e,t,(function(e,t){m(this,{type:r,target:e,state:i(e),kind:t,last:null})}),(function(){var e=o(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?d("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(e.target=null,d(void 0,!0))}),n?"entries":"values",!n,!0),h(t)}}},"65f0":function(e,t,n){"use strict";var r=n("0b42");e.exports=function(e,t){return new(r(e))(0===t?0:t)}},6613:function(e,t,n){n("a630"),n("ac1f"),n("00b4"),n("25f0");var r=n("5a43");function i(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.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)?r(e,t):void 0}}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},"67b6":function(e,t,n){"use strict";var r=n("58a8").start,i=n("c8d2");e.exports=i("trimStart")?function(){return r(this)}:"".trimStart},"68df":function(e,t,n){"use strict";var r=n("dc19"),i=n("8e16"),o=n("384f"),s=n("7f65");e.exports=function(e){var t=r(this),n=s(e);return!(i(t)>n.size)&&!1!==o(t,(function(e){if(!n.includes(e))return!1}),!0)}},"68ee":function(e,t,n){"use strict";var r=n("e330"),i=n("d039"),o=n("1626"),s=n("f5df"),a=n("d066"),u=n("8925"),c=function(){},l=a("Reflect","construct"),d=/^\s*(?:class|function)\b/,h=r(d.exec),f=!d.test(c),p=function(e){if(!o(e))return!1;try{return l(c,[],e),!0}catch(t){return!1}},v=function(e){if(!o(e))return!1;switch(s(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!h(d,u(e))}catch(t){return!0}};v.sham=!0,e.exports=!l||i((function(){var e;return p(p.call)||!p(Object)||!p((function(){e=!0}))||e}))?v:p},6964:function(e,t,n){"use strict";var r=n("cb2d");e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},"69f3":function(e,t,n){"use strict";var r,i,o,s=n("cdce"),a=n("cfe9"),u=n("861d"),c=n("9112"),l=n("1a2d"),d=n("c6cd"),h=n("f772"),f=n("d012"),p="Object already initialized",v=a.TypeError,m=a.WeakMap,g=function(e){return o(e)?i(e):r(e,{})},_=function(e){return function(t){var n;if(!u(t)||(n=i(t)).type!==e)throw new v("Incompatible receiver, "+e+" required");return n}};if(s||d.state){var y=d.state||(d.state=new m);y.get=y.get,y.has=y.has,y.set=y.set,r=function(e,t){if(y.has(e))throw new v(p);return t.facade=e,y.set(e,t),t},i=function(e){return y.get(e)||{}},o=function(e){return y.has(e)}}else{var b=h("state");f[b]=!0,r=function(e,t){if(l(e,b))throw new v(p);return t.facade=e,c(e,b,t),t},i=function(e){return l(e,b)?e[b]:{}},o=function(e){return l(e,b)}}e.exports={set:r,get:i,has:o,enforce:g,getterFor:_}},"6ad9":function(e,t,n){"use strict";n("71b8")},"6b37":function(e,t,n){"use strict";var r=n("f5df"),i=TypeError;e.exports=function(e){if("Uint8Array"===r(e))return e;throw new i("Argument is not an Uint8Array")}},"6c13":function(e,t,n){"use strict";n("ae08")},"6c57":function(e,t,n){"use strict";var r=n("23e7"),i=n("cfe9");r({global:!0,forced:i.globalThis!==i},{globalThis:i})},"6ce5":function(e,t,n){"use strict";var r=n("df7e"),i=n("ebb5"),o=i.aTypedArray,s=i.exportTypedArrayMethod,a=i.getTypedArrayConstructor;s("toReversed",(function(){return r(o(this),a(this))}))},"6d61":function(e,t,n){"use strict";var r=n("23e7"),i=n("cfe9"),o=n("e330"),s=n("94ca"),a=n("cb2d"),u=n("f183"),c=n("2266"),l=n("19aa"),d=n("1626"),h=n("7234"),f=n("861d"),p=n("d039"),v=n("1c7e"),m=n("d44e"),g=n("7156");e.exports=function(e,t,n){var _=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),b=_?"set":"add",w=i[e],T=w&&w.prototype,S=w,C={},E=function(e){var t=o(T[e]);a(T,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(y&&!f(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return y&&!f(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(y&&!f(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})},A=s(e,!d(w)||!(y||T.forEach&&!p((function(){(new w).entries().next()}))));if(A)S=n.getConstructor(t,e,_,b),u.enable();else if(s(e,!0)){var x=new S,R=x[b](y?{}:-0,1)!==x,O=p((function(){x.has(1)})),I=v((function(e){new w(e)})),k=!y&&p((function(){var e=new w,t=5;while(t--)e[b](t,t);return!e.has(-0)}));I||(S=t((function(e,t){l(e,T);var n=g(new w,e,S);return h(t)||c(t,n[b],{that:n,AS_ENTRIES:_}),n})),S.prototype=T,T.constructor=S),(O||k)&&(E("delete"),E("has"),_&&E("get")),(k||R)&&E(b),y&&T.clear&&delete T.clear}return C[e]=S,r({global:!0,constructor:!0,forced:S!==w},C),m(S,e),y||n.setStrong(S,e,_),S}},"6f19":function(e,t,n){"use strict";var r=n("9112"),i=n("0d26"),o=n("b980"),s=Error.captureStackTrace;e.exports=function(e,t,n,a){o&&(s?s(e,t):r(e,"stack",i(n,a)))}},"6f48":function(e,t,n){"use strict";var r=n("6d61"),i=n("6566");r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},7037:function(e,t,n){function r(t){return e.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports["default"]=e.exports,r(t)}n("e01a"),n("e260"),n("ddb0"),e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},7149:function(e,t,n){"use strict";var r=n("23e7"),i=n("d066"),o=n("c430"),s=n("d256"),a=n("4738").CONSTRUCTOR,u=n("cdf9"),c=i("Promise"),l=o&&!a;r({target:"Promise",stat:!0,forced:o||a},{resolve:function(e){return u(l&&this===c?s:this,e)}})},7156:function(e,t,n){"use strict";var r=n("1626"),i=n("861d"),o=n("d2bb");e.exports=function(e,t,n){var s,a;return o&&r(s=t.constructor)&&s!==n&&i(a=s.prototype)&&a!==n.prototype&&o(e,a),e}},7192:function(e,t,n){"use strict";var r=n("cfe9"),i=n("e330"),o=n("f69d"),s=n("8a96"),a=n("1a2d"),u=n("b917"),c=n("da63"),l=n("2005"),d=u.c2i,h=u.c2iUrl,f=r.SyntaxError,p=r.TypeError,v=i("".charAt),m=function(e,t){for(var n=e.length;t<n;t++){var r=v(e,t);if(" "!==r&&"\t"!==r&&"\n"!==r&&"\f"!==r&&"\r"!==r)break}return t},g=function(e,t,n){var r=e.length;r<4&&(e+=2===r?"AA":"A");var i=(t[v(e,0)]<<18)+(t[v(e,1)]<<12)+(t[v(e,2)]<<6)+t[v(e,3)],o=[i>>16&255,i>>8&255,255&i];if(2===r){if(n&&0!==o[1])throw new f("Extra bits");return[o[0]]}if(3===r){if(n&&0!==o[2])throw new f("Extra bits");return[o[0],o[1]]}return o},_=function(e,t,n){for(var r=t.length,i=0;i<r;i++)e[n+i]=t[i];return n+r};e.exports=function(e,t,n,r){s(e),o(t);var i="base64"===c(t)?d:h,u=t?t.lastChunkHandling:void 0;if(void 0===u&&(u="loose"),"loose"!==u&&"strict"!==u&&"stop-before-partial"!==u)throw new p("Incorrect `lastChunkHandling` option");n&&l(n.buffer);var y=e.length,b=n||[],w=0,T=0,S="",C=0;if(r)while(1){if(C=m(e,C),C===y){if(S.length>0){if("stop-before-partial"===u)break;if("loose"!==u)throw new f("Missing padding");if(1===S.length)throw new f("Malformed padding: exactly one additional character");w=_(b,g(S,i,!1),w)}T=y;break}var E=v(e,C);if(++C,"="===E){if(S.length<2)throw new f("Padding is too early");if(C=m(e,C),2===S.length){if(C===y){if("stop-before-partial"===u)break;throw new f("Malformed padding: only one =")}"="===v(e,C)&&(++C,C=m(e,C))}if(C<y)throw new f("Unexpected character after padding");w=_(b,g(S,i,"strict"===u),w),T=y;break}if(!a(i,E))throw new f("Unexpected character");var A=r-w;if(1===A&&2===S.length||2===A&&3===S.length)break;if(S+=E,4===S.length&&(w=_(b,g(S,i,!1),w),S="",T=C,w===r))break}return{bytes:b,read:T,written:w}}},"71b8":function(e,t,n){},7234:function(e,t,n){"use strict";e.exports=function(e){return null===e||void 0===e}},7282:function(e,t,n){"use strict";var r=n("e330"),i=n("59ed");e.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(o){}}},"72c3":function(e,t,n){"use strict";var r=n("23e7"),i=n("e9bc"),o=n("5320"),s=n("dad2"),a=!s("union")||!o("union");r({target:"Set",proto:!0,real:!0,forced:a},{union:i})},"735e":function(e,t,n){"use strict";var r=n("ebb5"),i=n("81d5"),o=n("f495"),s=n("f5df"),a=n("c65b"),u=n("e330"),c=n("d039"),l=r.aTypedArray,d=r.exportTypedArrayMethod,h=u("".slice),f=c((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e}));d("fill",(function(e){var t=arguments.length;l(this);var n="Big"===h(s(this),0,3)?o(e):+e;return a(i,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),f)},7418:function(e,t,n){"use strict";t.f=Object.getOwnPropertySymbols},7435:function(e,t,n){},"74e8":function(e,t,n){"use strict";var r=n("23e7"),i=n("cfe9"),o=n("c65b"),s=n("83ab"),a=n("8aa7"),u=n("ebb5"),c=n("621a"),l=n("19aa"),d=n("5c6c"),h=n("9112"),f=n("eac5"),p=n("50c4"),v=n("0b25"),m=n("182d"),g=n("13a6"),_=n("a04b"),y=n("1a2d"),b=n("f5df"),w=n("861d"),T=n("d9b5"),S=n("7c73"),C=n("3a9b"),E=n("d2bb"),A=n("241c").f,x=n("a078"),R=n("b727").forEach,O=n("2626"),I=n("edd0"),k=n("9bf2"),P=n("06cf"),M=n("dfb9"),N=n("69f3"),L=n("7156"),D=N.get,U=N.set,j=N.enforce,F=k.f,H=P.f,B=i.RangeError,$=c.ArrayBuffer,q=$.prototype,V=c.DataView,z=u.NATIVE_ARRAY_BUFFER_VIEWS,W=u.TYPED_ARRAY_TAG,G=u.TypedArray,Y=u.TypedArrayPrototype,K=u.isTypedArray,X="BYTES_PER_ELEMENT",J="Wrong length",Q=function(e,t){I(e,t,{configurable:!0,get:function(){return D(this)[t]}})},Z=function(e){var t;return C(q,e)||"ArrayBuffer"===(t=b(e))||"SharedArrayBuffer"===t},ee=function(e,t){return K(e)&&!T(t)&&t in e&&f(+t)&&t>=0},te=function(e,t){return t=_(t),ee(e,t)?d(2,e[t]):H(e,t)},ne=function(e,t,n){return t=_(t),!(ee(e,t)&&w(n)&&y(n,"value"))||y(n,"get")||y(n,"set")||n.configurable||y(n,"writable")&&!n.writable||y(n,"enumerable")&&!n.enumerable?F(e,t,n):(e[t]=n.value,e)};s?(z||(P.f=te,k.f=ne,Q(Y,"buffer"),Q(Y,"byteOffset"),Q(Y,"byteLength"),Q(Y,"length")),r({target:"Object",stat:!0,forced:!z},{getOwnPropertyDescriptor:te,defineProperty:ne}),e.exports=function(e,t,n){var s=e.match(/\d+/)[0]/8,u=e+(n?"Clamped":"")+"Array",c="get"+e,d="set"+e,f=i[u],_=f,y=_&&_.prototype,b={},T=function(e,t){var n=D(e);return n.view[c](t*s+n.byteOffset,!0)},C=function(e,t,r){var i=D(e);i.view[d](t*s+i.byteOffset,n?g(r):r,!0)},I=function(e,t){F(e,t,{get:function(){return T(this,t)},set:function(e){return C(this,t,e)},enumerable:!0})};z?a&&(_=t((function(e,t,n,r){return l(e,y),L(function(){return w(t)?Z(t)?void 0!==r?new f(t,m(n,s),r):void 0!==n?new f(t,m(n,s)):new f(t):K(t)?M(_,t):o(x,_,t):new f(v(t))}(),e,_)})),E&&E(_,G),R(A(f),(function(e){e in _||h(_,e,f[e])})),_.prototype=y):(_=t((function(e,t,n,r){l(e,y);var i,a,u,c=0,d=0;if(w(t)){if(!Z(t))return K(t)?M(_,t):o(x,_,t);i=t,d=m(n,s);var h=t.byteLength;if(void 0===r){if(h%s)throw new B(J);if(a=h-d,a<0)throw new B(J)}else if(a=p(r)*s,a+d>h)throw new B(J);u=a/s}else u=v(t),a=u*s,i=new $(a);U(e,{buffer:i,byteOffset:d,byteLength:a,length:u,view:new V(i)});while(c<u)I(e,c++)})),E&&E(_,G),y=_.prototype=S(Y)),y.constructor!==_&&h(y,"constructor",_),j(y).TypedArrayConstructor=_,W&&h(y,W,u);var k=_!==f;b[u]=_,r({global:!0,constructor:!0,forced:k,sham:!z},b),X in _||h(_,X,s),X in y||h(y,X,s),O(u)}):e.exports=function(){}},"75bd":function(e,t,n){"use strict";var r=n("cfe9"),i=n("4b11"),o=n("b620"),s=r.DataView;e.exports=function(e){if(!i||0!==o(e))return!1;try{return new s(e),!1}catch(t){return!0}}},"77a7":function(e,t,n){"use strict";var r=Array,i=Math.abs,o=Math.pow,s=Math.floor,a=Math.log,u=Math.LN2,c=function(e,t,n){var c,l,d,h=r(n),f=8*n-t-1,p=(1<<f)-1,v=p>>1,m=23===t?o(2,-24)-o(2,-77):0,g=e<0||0===e&&1/e<0?1:0,_=0;e=i(e),e!==e||e===1/0?(l=e!==e?1:0,c=p):(c=s(a(e)/u),d=o(2,-c),e*d<1&&(c--,d*=2),e+=c+v>=1?m/d:m*o(2,1-v),e*d>=2&&(c++,d/=2),c+v>=p?(l=0,c=p):c+v>=1?(l=(e*d-1)*o(2,t),c+=v):(l=e*o(2,v-1)*o(2,t),c=0));while(t>=8)h[_++]=255&l,l/=256,t-=8;c=c<<t|l,f+=t;while(f>0)h[_++]=255&c,c/=256,f-=8;return h[_-1]|=128*g,h},l=function(e,t){var n,r=e.length,i=8*r-t-1,s=(1<<i)-1,a=s>>1,u=i-7,c=r-1,l=e[c--],d=127&l;l>>=7;while(u>0)d=256*d+e[c--],u-=8;n=d&(1<<-u)-1,d>>=-u,u+=t;while(u>0)n=256*n+e[c--],u-=8;if(0===d)d=1-a;else{if(d===s)return n?NaN:l?-1/0:1/0;n+=o(2,t),d-=a}return(l?-1:1)*n*o(2,d-t)};e.exports={pack:c,unpack:l}},7839:function(e,t,n){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"785a":function(e,t,n){"use strict";var r=n("cc12"),i=r("span").classList,o=i&&i.constructor&&i.constructor.prototype;e.exports=o===Object.prototype?void 0:o},"79a4":function(e,t,n){"use strict";var r=n("23e7"),i=n("d039"),o=n("953b"),s=n("dad2"),a=!s("intersection",(function(e){return 2===e.size&&e.has(1)&&e.has(2)}))||i((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}));r({target:"Set",proto:!0,real:!0,forced:a},{intersection:o})},"7b0b":function(e,t,n){"use strict";var r=n("1d80"),i=Object;e.exports=function(e){return i(r(e))}},"7c73":function(e,t,n){"use strict";var r,i=n("825a"),o=n("37e8"),s=n("7839"),a=n("d012"),u=n("1be4"),c=n("cc12"),l=n("f772"),d=">",h="<",f="prototype",p="script",v=l("IE_PROTO"),m=function(){},g=function(e){return h+p+d+e+h+"/"+p+d},_=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){var e,t=c("iframe"),n="java"+p+":";return t.style.display="none",u.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(g("document.F=Object")),e.close(),e.F},b=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}b="undefined"!=typeof document?document.domain&&r?_(r):y():_(r);var e=s.length;while(e--)delete b[f][s[e]];return b()};a[v]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(m[f]=i(e),n=new m,m[f]=null,n[v]=e):n=b(),void 0===t?n:o.f(n,t)}},"7d54":function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),o=n("2266"),s=n("59ed"),a=n("825a"),u=n("46c4"),c=n("2a62"),l=n("f99f"),d=l("forEach",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:d},{forEach:function(e){a(this);try{s(e)}catch(r){c(this,"throw",r)}if(d)return i(d,this,e);var t=u(this),n=0;o(t,(function(t){e(t,n++)}),{IS_RECORD:!0})}})},"7e12":function(e,t,n){"use strict";var r=n("cfe9"),i=n("d039"),o=n("e330"),s=n("577e"),a=n("58a8").trim,u=n("5899"),c=o("".charAt),l=r.parseFloat,d=r.Symbol,h=d&&d.iterator,f=1/l(u+"-0")!==-1/0||h&&!i((function(){l(Object(h))}));e.exports=f?function(e){var t=a(s(e)),n=l(t);return 0===n&&"-"===c(t,0)?-0:n}:l},"7e8e":function(e,t,n){},"7f65":function(e,t,n){"use strict";var r=n("59ed"),i=n("825a"),o=n("c65b"),s=n("5926"),a=n("46c4"),u="Invalid size",c=RangeError,l=TypeError,d=Math.max,h=function(e,t){this.set=e,this.size=d(t,0),this.has=r(e.has),this.keys=r(e.keys)};h.prototype={getIterator:function(){return a(i(o(this.keys,this.set)))},includes:function(e){return o(this.has,this.set,e)}},e.exports=function(e){i(e);var t=+e.size;if(t!==t)throw new l(u);var n=s(t);if(n<0)throw new c(u);return new h(e,n)}},"81b2":function(e,t,n){"use strict";var r=n("23e7"),i=n("cfe9"),o=n("d066"),s=n("e330"),a=n("c65b"),u=n("d039"),c=n("577e"),l=n("d6d6"),d=n("b917").c2i,h=/[^\d+/a-z]/i,f=/[\t\n\f\r ]+/g,p=/[=]{1,2}$/,v=o("atob"),m=String.fromCharCode,g=s("".charAt),_=s("".replace),y=s(h.exec),b=!!v&&!u((function(){return"hi"!==v("aGk=")})),w=b&&u((function(){return""!==v(" ")})),T=b&&!u((function(){v("a")})),S=b&&!u((function(){v()})),C=b&&1!==v.length,E=!b||w||T||S||C;r({global:!0,bind:!0,enumerable:!0,forced:E},{atob:function(e){if(l(arguments.length,1),b&&!w&&!T)return a(v,i,e);var t,n,r,s=_(c(e),f,""),u="",S=0,C=0;if(s.length%4===0&&(s=_(s,p,"")),t=s.length,t%4===1||y(h,s))throw new(o("DOMException"))("The string is not correctly encoded","InvalidCharacterError");while(S<t)n=g(s,S++),r=C%4?64*r+d[n]:d[n],C++%4&&(u+=m(255&r>>(-2*C&6)));return u}})},"81d5":function(e,t,n){"use strict";var r=n("7b0b"),i=n("23cb"),o=n("07fa");e.exports=function(e){var t=r(this),n=o(t),s=arguments.length,a=i(s>1?arguments[1]:void 0,n),u=s>2?arguments[2]:void 0,c=void 0===u?n:i(u,n);while(c>a)t[a++]=e;return t}},"825a":function(e,t,n){"use strict";var r=n("861d"),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not an object")}},"82e3":function(e,t,n){"use strict";var r=2220446049250313e-31,i=1/r;e.exports=function(e){return e+i-i}},"83ab":function(e,t,n){"use strict";var r=n("d039");e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83b9":function(e,t,n){"use strict";var r=n("cb27"),i=n("384f"),o=r.Set,s=r.add;e.exports=function(e){var t=new o;return i(e,(function(e){s(t,e)})),t}},8407:function(e,t,n){"use strict";var r=n("23e7"),i=n("cfe9"),o=n("7192"),s=n("6b37"),a=i.Uint8Array,u=!a||!a.prototype.setFromBase64||!function(){var e=new a([255,255,255,255,255]);try{return void e.setFromBase64("",null)}catch(t){}try{return void e.setFromBase64("a")}catch(t){}try{e.setFromBase64("MjYyZg===")}catch(t){return 50===e[0]&&54===e[1]&&50===e[2]&&255===e[3]&&255===e[4]}}();a&&r({target:"Uint8Array",proto:!0,forced:u},{setFromBase64:function(e){s(this);var t=o(e,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:t.read,written:t.written}}})},8418:function(e,t,n){"use strict";var r=n("83ab"),i=n("9bf2"),o=n("5c6c");e.exports=function(e,t,n){r?i.f(e,t,o(0,n)):e[t]=n}},"841c":function(e,t,n){"use strict";var r=n("c65b"),i=n("d784"),o=n("825a"),s=n("861d"),a=n("1d80"),u=n("129f"),c=n("577e"),l=n("dc4a"),d=n("14c3");i("search",(function(e,t,n){return[function(t){var n=a(this),i=s(t)?l(t,e):void 0;return i?r(i,t,n):new RegExp(t)[e](c(n))},function(e){var r=o(this),i=c(e),s=n(t,r,i);if(s.done)return s.value;var a=r.lastIndex;u(a,0)||(r.lastIndex=0);var l=d(r,i);return u(r.lastIndex,a)||(r.lastIndex=a),null===l?-1:l.index}]}))},8558:function(e,t,n){"use strict";var r=n("cfe9"),i=n("b5db"),o=n("c6b6"),s=function(e){return i.slice(0,e.length)===e};e.exports=function(){return s("Bun/")?"BUN":s("Cloudflare-Workers")?"CLOUDFLARE":s("Deno/")?"DENO":s("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===o(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"}()},"861d":function(e,t,n){"use strict";var r=n("1626");e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},"86cc":function(e,t,n){},"88a7":function(e,t,n){"use strict";var r=n("cb2d"),i=n("e330"),o=n("577e"),s=n("d6d6"),a=URLSearchParams,u=a.prototype,c=i(u.append),l=i(u["delete"]),d=i(u.forEach),h=i([].push),f=new a("a=1&a=2&b=3");f["delete"]("a",1),f["delete"]("b",void 0),f+""!=="a=2"&&r(u,"delete",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return l(this,e);var r=[];d(this,(function(e,t){h(r,{key:t,value:e})})),s(t,1);var i,a=o(e),u=o(n),f=0,p=0,v=!1,m=r.length;while(f<m)i=r[f++],v||i.key===a?(v=!0,l(this,i.key)):p++;while(p<m)i=r[p++],i.key===a&&i.value===u||c(this,i.key,i.value)}),{enumerable:!0,unsafe:!0})},8925:function(e,t,n){"use strict";var r=n("e330"),i=n("1626"),o=n("c6cd"),s=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return s(e)}),e.exports=o.inspectSource},"8a79":function(e,t,n){"use strict";var r=n("23e7"),i=n("4625"),o=n("06cf").f,s=n("50c4"),a=n("577e"),u=n("5a34"),c=n("1d80"),l=n("ab13"),d=n("c430"),h=i("".slice),f=Math.min,p=l("endsWith"),v=!d&&!p&&!!function(){var e=o(String.prototype,"endsWith");return e&&!e.writable}();r({target:"String",proto:!0,forced:!v&&!p},{endsWith:function(e){var t=a(c(this));u(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,i=void 0===n?r:f(s(n),r),o=a(e);return h(t,i-o.length,i)===o}})},"8a96":function(e,t,n){"use strict";var r=TypeError;e.exports=function(e){if("string"==typeof e)return e;throw new r("Argument is not a string")}},"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){"use strict";var r=n("cfe9"),i=n("d039"),o=n("1c7e"),s=n("ebb5").NATIVE_ARRAY_BUFFER_VIEWS,a=r.ArrayBuffer,u=r.Int8Array;e.exports=!s||!i((function(){u(1)}))||!i((function(){new u(-1)}))||!o((function(e){new u,new u(null),new u(1.5),new u(e)}),!0)||i((function(){return 1!==new u(new a(2),1,void 0).length}))},"8b00":function(e,t,n){"use strict";var r=n("23e7"),i=n("68df"),o=n("dad2"),s=!o("isSubsetOf",(function(e){return e}));r({target:"Set",proto:!0,real:!0,forced:s},{isSubsetOf:i})},"8bbf":function(t,n){t.exports=e},"8bd4":function(e,t,n){"use strict";var r=n("d066"),i=n("d44e"),o="DOMException";i(r(o),o)},"8d4f":function(e,t,n){},"8e16":function(e,t,n){"use strict";var r=n("7282"),i=n("cb27");e.exports=r(i.proto,"size","get")||function(e){return e.size}},"907a":function(e,t,n){"use strict";var r=n("ebb5"),i=n("07fa"),o=n("5926"),s=r.aTypedArray,a=r.exportTypedArrayMethod;a("at",(function(e){var t=s(this),n=i(t),r=o(e),a=r>=0?r:n+r;return a<0||a>=n?void 0:t[a]}))},"90d8":function(e,t,n){"use strict";var r=n("c65b"),i=n("1a2d"),o=n("3a9b"),s=n("0f33"),a=n("ad6d"),u=RegExp.prototype;e.exports=s.correct?function(e){return e.flags}:function(e){return s.correct||!o(u,e)||i(e,"flags")?e.flags:r(a,e)}},"90e3":function(e,t,n){"use strict";var r=n("e330"),i=0,o=Math.random(),s=r(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++i+o,36)}},"910d":function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),o=n("59ed"),s=n("825a"),a=n("46c4"),u=n("c5cc"),c=n("9bdd"),l=n("c430"),d=n("2a62"),h=n("2baa"),f=n("f99f"),p=!l&&!h("filter",(function(){})),v=!l&&!p&&f("filter",TypeError),m=l||p||v,g=u((function(){var e,t,n,r=this.iterator,o=this.predicate,a=this.next;while(1){if(e=s(i(a,r)),t=this.done=!!e.done,t)return;if(n=e.value,c(r,o,[n,this.counter++],!0))return n}}));r({target:"Iterator",proto:!0,real:!0,forced:m},{filter:function(e){s(this);try{o(e)}catch(t){d(this,"throw",t)}return v?i(v,this,e):new g(a(this),{predicate:e})}})},9112:function(e,t,n){"use strict";var r=n("83ab"),i=n("9bf2"),o=n("5c6c");e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},9152:function(e,t){
4
4
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
5
- t.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,u=(1<<a)-1,c=u>>1,l=-7,d=n?i-1:0,h=n?-1:1,f=e[t+d];for(d+=h,o=f&(1<<-l)-1,f>>=-l,l+=a;l>0;o=256*o+e[t+d],d+=h,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;l>0;s=256*s+e[t+d],d+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,r),o-=c}return(f?-1:1)*s*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var s,a,u,c=8*o-i-1,l=(1<<c)-1,d=l>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),t+=s+d>=1?h/u:h*Math.pow(2,1-d),t*u>=2&&(s++,u/=2),s+d>=l?(a=0,s=l):s+d>=1?(a=(t*u-1)*Math.pow(2,i),s+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;e[n+f]=255&a,f+=p,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;e[n+f]=255&s,f+=p,s/=256,c-=8);e[n+f-p]|=128*v}},9263:function(e,t,n){"use strict";var r=n("c65b"),i=n("e330"),o=n("577e"),s=n("ad6d"),a=n("9f7f"),u=n("5692"),c=n("7c73"),l=n("69f3").get,d=n("fce3"),h=n("107c"),f=u("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,v=p,m=i("".charAt),g=i("".indexOf),_=i("".replace),y=i("".slice),b=function(){var e=/a/,t=/b*/g;return r(p,e,"a"),r(p,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),w=a.BROKEN_CARET,T=void 0!==/()??/.exec("")[1],S=b||T||w||d||h;S&&(v=function(e){var t,n,i,a,u,d,h,S=this,C=l(S),E=o(e),A=C.raw;if(A)return A.lastIndex=S.lastIndex,t=r(v,A,E),S.lastIndex=A.lastIndex,t;var x=C.groups,R=w&&S.sticky,O=r(s,S),I=S.source,k=0,P=E;if(R&&(O=_(O,"y",""),-1===g(O,"g")&&(O+="g"),P=y(E,S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&"\n"!==m(E,S.lastIndex-1))&&(I="(?: "+I+")",P=" "+P,k++),n=new RegExp("^(?:"+I+")",O)),T&&(n=new RegExp("^"+I+"$(?!\\s)",O)),b&&(i=S.lastIndex),a=r(p,R?n:S,P),R?a?(a.input=y(a.input,k),a[0]=y(a[0],k),a.index=S.lastIndex,S.lastIndex+=a[0].length):S.lastIndex=0:b&&a&&(S.lastIndex=S.global?a.index+a[0].length:i),T&&a&&a.length>1&&r(f,a[0],n,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(a[u]=void 0)})),a&&x)for(a.groups=d=c(null),u=0;u<x.length;u++)h=x[u],d[h[0]]=a[h[1]];return a}),e.exports=v},9485:function(e,t,n){"use strict";var r=n("23e7"),i=n("2266"),o=n("59ed"),s=n("825a"),a=n("46c4"),u=n("2a62"),c=n("f99f"),l=n("2ba4"),d=n("d039"),h=TypeError,f=d((function(){[].keys().reduce((function(){}),void 0)})),p=!f&&c("reduce",h);r({target:"Iterator",proto:!0,real:!0,forced:f||p},{reduce:function(e){s(this);try{o(e)}catch(d){u(this,"throw",d)}var t=arguments.length<2,n=t?void 0:arguments[1];if(p)return l(p,this,t?[e]:[e,n]);var r=a(this),c=0;if(i(r,(function(r){t?(t=!1,n=r):n=e(n,r,c),c++}),{IS_RECORD:!0}),t)throw new h("Reduce of empty iterator with no initial value");return n}})},"94ca":function(e,t,n){"use strict";var r=n("d039"),i=n("1626"),o=/#|\.prototype\./,s=function(e,t){var n=u[a(e)];return n===l||n!==c&&(i(t)?r(t):!!t)},a=s.normalize=function(e){return String(e).replace(o,".").toLowerCase()},u=s.data={},c=s.NATIVE="N",l=s.POLYFILL="P";e.exports=s},9501:function(e,t,n){},9523:function(e,t,n){var r=n("a395");function i(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},"953b":function(e,t,n){"use strict";var r=n("dc19"),i=n("cb27"),o=n("8e16"),s=n("7f65"),a=n("384f"),u=n("5388"),c=i.Set,l=i.add,d=i.has;e.exports=function(e){var t=r(this),n=s(e),i=new c;return o(t)>n.size?u(n.getIterator(),(function(e){d(t,e)&&l(i,e)})):a(t,(function(e){n.includes(e)&&l(i,e)})),i}},"95ed":function(e,t,n){},9861:function(e,t,n){"use strict";n("5352")},"986a":function(e,t,n){"use strict";var r=n("ebb5"),i=n("a258").findLast,o=r.aTypedArray,s=r.exportTypedArrayMethod;s("findLast",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},9961:function(e,t,n){"use strict";var r=n("dc19"),i=n("cb27"),o=n("83b9"),s=n("7f65"),a=n("5388"),u=i.add,c=i.has,l=i.remove;e.exports=function(e){var t=r(this),n=s(e).getIterator(),i=o(t);return a(n,(function(e){c(t,e)?l(i,e):u(i,e)})),i}},"99f4":function(e,t,n){"use strict";var r=n("b5db");e.exports=/MSIE|Trident/.test(r)},"9a1f":function(e,t,n){"use strict";var r=n("c65b"),i=n("59ed"),o=n("825a"),s=n("0d51"),a=n("35a1"),u=TypeError;e.exports=function(e,t){var n=arguments.length<2?a(e):t;if(i(n))return o(r(n,e));throw new u(s(e)+" is not iterable")}},"9adc":function(e,t,n){"use strict";var r=n("8558");e.exports="NODE"===r},"9bdd":function(e,t,n){"use strict";var r=n("825a"),i=n("2a62");e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(s){i(e,"throw",s)}}},"9bf2":function(e,t,n){"use strict";var r=n("83ab"),i=n("0cfb"),o=n("aed9"),s=n("825a"),a=n("a04b"),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",f="writable";t.f=r?o?function(e,t,n){if(s(e),t=a(t),s(n),"function"===typeof e&&"prototype"===t&&"value"in n&&f in n&&!n[f]){var r=l(e,t);r&&r[f]&&(e[t]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:d in n?n[d]:r[d],writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(s(e),t=a(t),s(n),i)try{return c(e,t,n)}catch(r){}if("get"in n||"set"in n)throw new u("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"9cf7":function(e,t,n){"use strict";var r=n("d039");e.exports=!r((function(){var e="9007199254740993",t=JSON.rawJSON(e);return!JSON.isRawJSON(t)||JSON.stringify(t)!==e}))},"9f7f":function(e,t,n){"use strict";var r=n("d039"),i=n("cfe9"),o=i.RegExp,s=r((function(){var e=o("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),a=s||r((function(){return!o("a","y").sticky})),u=s||r((function(){var e=o("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:u,MISSED_STICKY:a,UNSUPPORTED_Y:s}},a04b:function(e,t,n){"use strict";var r=n("c04e"),i=n("d9b5");e.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},a078:function(e,t,n){"use strict";var r=n("0366"),i=n("c65b"),o=n("5087"),s=n("7b0b"),a=n("07fa"),u=n("9a1f"),c=n("35a1"),l=n("e95a"),d=n("bcbf"),h=n("ebb5").aTypedArrayConstructor,f=n("f495");e.exports=function(e){var t,n,p,v,m,g,_,y,b=o(this),w=s(e),T=arguments.length,S=T>1?arguments[1]:void 0,C=void 0!==S,E=c(w);if(E&&!l(E)){_=u(w,E),y=_.next,w=[];while(!(g=i(y,_)).done)w.push(g.value)}for(C&&T>2&&(S=r(S,arguments[2])),n=a(w),p=new(h(b))(n),v=d(p),t=0;n>t;t++)m=C?S(w[t],t):w[t],p[t]=v?f(m):+m;return p}},a258:function(e,t,n){"use strict";var r=n("0366"),i=n("44ad"),o=n("7b0b"),s=n("07fa"),a=function(e){var t=1===e;return function(n,a,u){var c,l,d=o(n),h=i(d),f=s(h),p=r(a,u);while(f-- >0)if(c=h[f],l=p(c,f,d),l)switch(e){case 0:return c;case 1:return f}return t?-1:void 0}};e.exports={findLast:a(0),findLastIndex:a(1)}},a395:function(e,t,n){var r=n("7037")["default"],i=n("e50d");function o(e){var t=i(e,"string");return"symbol"==r(t)?t:t+""}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},a4e7:function(e,t,n){"use strict";var r=n("23e7"),i=n("395e"),o=n("dad2"),s=!o("isSupersetOf",(function(e){return!e}));r({target:"Set",proto:!0,real:!0,forced:s},{isSupersetOf:i})},a5f7:function(e,t,n){"use strict";var r=n("dc19"),i=n("cb27"),o=n("83b9"),s=n("8e16"),a=n("7f65"),u=n("384f"),c=n("5388"),l=i.has,d=i.remove;e.exports=function(e){var t=r(this),n=a(e),i=o(t);return s(t)<=n.size?u(t,(function(e){n.includes(e)&&d(i,e)})):c(n.getIterator(),(function(e){l(i,e)&&d(i,e)})),i}},a630:function(e,t,n){"use strict";var r=n("23e7"),i=n("4df4"),o=n("1c7e"),s=!o((function(e){Array.from(e)}));r({target:"Array",stat:!0,forced:s},{from:i})},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(){return 1},1)}))}},a732:function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),o=n("2266"),s=n("59ed"),a=n("825a"),u=n("46c4"),c=n("2a62"),l=n("f99f"),d=l("some",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:d},{some:function(e){a(this);try{s(e)}catch(r){c(this,"throw",r)}if(d)return i(d,this,e);var t=u(this),n=0;return o(t,(function(t,r){if(e(t,n++))return r()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},aa1f:function(e,t,n){"use strict";var r=n("83ab"),i=n("d039"),o=n("825a"),s=n("e391"),a=Error.prototype.toString,u=i((function(){if(r){var e=Object.create(Object.defineProperty({},"name",{get:function(){return this===e}}));if("true"!==a.call(e))return!0}return"2: 1"!==a.call({message:1,name:2})||"Error"!==a.call({})}));e.exports=u?function(){var e=o(this),t=s(e.name,"Error"),n=s(e.message);return t?n?t+": "+n:t:n}:a},ab13:function(e,t,n){"use strict";var r=n("b622"),i=r("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[i]=!1,"/./"[e](t)}catch(r){}}return!1}},ab36:function(e,t,n){"use strict";var r=n("861d"),i=n("9112");e.exports=function(e,t){r(t)&&"cause"in t&&i(e,"cause",t.cause)}},ab43:function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),o=n("59ed"),s=n("825a"),a=n("46c4"),u=n("c5cc"),c=n("9bdd"),l=n("2a62"),d=n("2baa"),h=n("f99f"),f=n("c430"),p=!f&&!d("map",(function(){})),v=!f&&!p&&h("map",TypeError),m=f||p||v,g=u((function(){var e=this.iterator,t=s(i(this.next,e)),n=this.done=!!t.done;if(!n)return c(e,this.mapper,[t.value,this.counter++],!0)}));r({target:"Iterator",proto:!0,real:!0,forced:m},{map:function(e){s(this);try{o(e)}catch(t){l(this,"throw",t)}return v?i(v,this,e):new g(a(this),{mapper:e})}})},ac14:function(e,t,n){function r(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}n("3c65"),e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},ac1f:function(e,t,n){"use strict";var r=n("23e7"),i=n("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},acd8:function(e,t,n){"use strict";var r=n("23e7"),i=n("7e12");r({global:!0,forced:parseFloat!==i},{parseFloat:i})},ace4:function(e,t,n){"use strict";var r=n("23e7"),i=n("4625"),o=n("d039"),s=n("621a"),a=n("825a"),u=n("23cb"),c=n("50c4"),l=s.ArrayBuffer,d=s.DataView,h=d.prototype,f=i(l.prototype.slice),p=i(h.getUint8),v=i(h.setUint8),m=o((function(){return!new l(2).slice(1,void 0).byteLength}));r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:m},{slice:function(e,t){if(f&&void 0===t)return f(a(this),e);var n=a(this).byteLength,r=u(e,n),i=u(void 0===t?n:t,n),o=new l(c(i-r)),s=new d(this),h=new d(o),m=0;while(r<i)v(h,m++,p(s,r++));return o}})},ad6d:function(e,t,n){"use strict";var r=n("825a");e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},addb:function(e,t,n){"use strict";var r=n("f36a"),i=Math.floor,o=function(e,t){var n=e.length;if(n<8){var s,a,u=1;while(u<n){a=u,s=e[u];while(a&&t(e[a-1],s)>0)e[a]=e[--a];a!==u++&&(e[a]=s)}}else{var c=i(n/2),l=o(r(e,0,c),t),d=o(r(e,c),t),h=l.length,f=d.length,p=0,v=0;while(p<h||v<f)e[p+v]=p<h&&v<f?t(l[p],d[v])<=0?l[p++]:d[v++]:p<h?l[p++]:d[v++]}return e};e.exports=o},ae08:function(e,t,n){},ae93:function(e,t,n){"use strict";var r,i,o,s=n("d039"),a=n("1626"),u=n("861d"),c=n("7c73"),l=n("e163"),d=n("cb2d"),h=n("b622"),f=n("c430"),p=h("iterator"),v=!1;[].keys&&(o=[].keys(),"next"in o?(i=l(l(o)),i!==Object.prototype&&(r=i)):v=!0);var m=!u(r)||s((function(){var e={};return r[p].call(e)!==e}));m?r={}:f&&(r=c(r)),a(r[p])||d(r,p,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}},aeb0:function(e,t,n){"use strict";var r=n("9bf2").f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},aed9:function(e,t,n){"use strict";var r=n("83ab"),i=n("d039");e.exports=r&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},b39a:function(e,t,n){"use strict";var r=n("cfe9"),i=n("2ba4"),o=n("ebb5"),s=n("d039"),a=n("f36a"),u=r.Int8Array,c=o.aTypedArray,l=o.exportTypedArrayMethod,d=[].toLocaleString,h=!!u&&s((function(){d.call(new u(1))})),f=s((function(){return[1,2].toLocaleString()!==new u([1,2]).toLocaleString()}))||!s((function(){u.prototype.toLocaleString.call([1,2])}));l("toLocaleString",(function(){return i(d,h?a(c(this)):c(this),a(arguments))}),f)},b42e:function(e,t,n){"use strict";var r=Math.ceil,i=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?i:r)(t)}},b4bc:function(e,t,n){"use strict";var r=n("dc19"),i=n("cb27").has,o=n("8e16"),s=n("7f65"),a=n("384f"),u=n("5388"),c=n("2a62");e.exports=function(e){var t=r(this),n=s(e);if(o(t)<=n.size)return!1!==a(t,(function(e){if(n.includes(e))return!1}),!0);var l=n.getIterator();return!1!==u(l,(function(e){if(i(t,e))return c(l,"normal",!1)}))}},b575:function(e,t,n){"use strict";var r,i,o,s,a,u=n("cfe9"),c=n("157a"),l=n("0366"),d=n("2cf4").set,h=n("01b4"),f=n("52c8"),p=n("ebc1"),v=n("ec87"),m=n("9adc"),g=u.MutationObserver||u.WebKitMutationObserver,_=u.document,y=u.process,b=u.Promise,w=c("queueMicrotask");if(!w){var T=new h,S=function(){var e,t;m&&(e=y.domain)&&e.exit();while(t=T.get())try{t()}catch(n){throw T.head&&r(),n}e&&e.enter()};f||m||v||!g||!_?!p&&b&&b.resolve?(s=b.resolve(void 0),s.constructor=b,a=l(s.then,s),r=function(){a(S)}):m?r=function(){y.nextTick(S)}:(d=l(d,u),r=function(){d(S)}):(i=!0,o=_.createTextNode(""),new g(S).observe(o,{characterData:!0}),r=function(){o.data=i=!i}),w=function(e){T.head||r(),T.add(e)}}e.exports=w},b5db:function(e,t,n){"use strict";var r=n("cfe9"),i=r.navigator,o=i&&i.userAgent;e.exports=o?String(o):""},b620:function(e,t,n){"use strict";var r=n("cfe9"),i=n("7282"),o=n("c6b6"),s=r.ArrayBuffer,a=r.TypeError;e.exports=s&&i(s.prototype,"byteLength","get")||function(e){if("ArrayBuffer"!==o(e))throw new a("ArrayBuffer expected");return e.byteLength}},b622:function(e,t,n){"use strict";var r=n("cfe9"),i=n("5692"),o=n("1a2d"),s=n("90e3"),a=n("04f8"),u=n("fdbf"),c=r.Symbol,l=i("wks"),d=u?c["for"]||c:c&&c.withoutSetter||s;e.exports=function(e){return o(l,e)||(l[e]=a&&o(c,e)?c[e]:d("Symbol."+e)),l[e]}},b639:function(e,t,n){"use strict";(function(e){
5
+ t.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,u=(1<<a)-1,c=u>>1,l=-7,d=n?i-1:0,h=n?-1:1,f=e[t+d];for(d+=h,o=f&(1<<-l)-1,f>>=-l,l+=a;l>0;o=256*o+e[t+d],d+=h,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;l>0;s=256*s+e[t+d],d+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,r),o-=c}return(f?-1:1)*s*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var s,a,u,c=8*o-i-1,l=(1<<c)-1,d=l>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),t+=s+d>=1?h/u:h*Math.pow(2,1-d),t*u>=2&&(s++,u/=2),s+d>=l?(a=0,s=l):s+d>=1?(a=(t*u-1)*Math.pow(2,i),s+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;e[n+f]=255&a,f+=p,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;e[n+f]=255&s,f+=p,s/=256,c-=8);e[n+f-p]|=128*v}},9263:function(e,t,n){"use strict";var r=n("c65b"),i=n("e330"),o=n("577e"),s=n("ad6d"),a=n("9f7f"),u=n("5692"),c=n("7c73"),l=n("69f3").get,d=n("fce3"),h=n("107c"),f=u("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,v=p,m=i("".charAt),g=i("".indexOf),_=i("".replace),y=i("".slice),b=function(){var e=/a/,t=/b*/g;return r(p,e,"a"),r(p,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),w=a.BROKEN_CARET,T=void 0!==/()??/.exec("")[1],S=b||T||w||d||h;S&&(v=function(e){var t,n,i,a,u,d,h,S=this,C=l(S),E=o(e),A=C.raw;if(A)return A.lastIndex=S.lastIndex,t=r(v,A,E),S.lastIndex=A.lastIndex,t;var x=C.groups,R=w&&S.sticky,O=r(s,S),I=S.source,k=0,P=E;if(R&&(O=_(O,"y",""),-1===g(O,"g")&&(O+="g"),P=y(E,S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&"\n"!==m(E,S.lastIndex-1))&&(I="(?: "+I+")",P=" "+P,k++),n=new RegExp("^(?:"+I+")",O)),T&&(n=new RegExp("^"+I+"$(?!\\s)",O)),b&&(i=S.lastIndex),a=r(p,R?n:S,P),R?a?(a.input=y(a.input,k),a[0]=y(a[0],k),a.index=S.lastIndex,S.lastIndex+=a[0].length):S.lastIndex=0:b&&a&&(S.lastIndex=S.global?a.index+a[0].length:i),T&&a&&a.length>1&&r(f,a[0],n,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(a[u]=void 0)})),a&&x)for(a.groups=d=c(null),u=0;u<x.length;u++)h=x[u],d[h[0]]=a[h[1]];return a}),e.exports=v},"929e":function(e,t,n){},9485:function(e,t,n){"use strict";var r=n("23e7"),i=n("2266"),o=n("59ed"),s=n("825a"),a=n("46c4"),u=n("2a62"),c=n("f99f"),l=n("2ba4"),d=n("d039"),h=TypeError,f=d((function(){[].keys().reduce((function(){}),void 0)})),p=!f&&c("reduce",h);r({target:"Iterator",proto:!0,real:!0,forced:f||p},{reduce:function(e){s(this);try{o(e)}catch(d){u(this,"throw",d)}var t=arguments.length<2,n=t?void 0:arguments[1];if(p)return l(p,this,t?[e]:[e,n]);var r=a(this),c=0;if(i(r,(function(r){t?(t=!1,n=r):n=e(n,r,c),c++}),{IS_RECORD:!0}),t)throw new h("Reduce of empty iterator with no initial value");return n}})},"94ca":function(e,t,n){"use strict";var r=n("d039"),i=n("1626"),o=/#|\.prototype\./,s=function(e,t){var n=u[a(e)];return n===l||n!==c&&(i(t)?r(t):!!t)},a=s.normalize=function(e){return String(e).replace(o,".").toLowerCase()},u=s.data={},c=s.NATIVE="N",l=s.POLYFILL="P";e.exports=s},9523:function(e,t,n){var r=n("a395");function i(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},"953b":function(e,t,n){"use strict";var r=n("dc19"),i=n("cb27"),o=n("8e16"),s=n("7f65"),a=n("384f"),u=n("5388"),c=i.Set,l=i.add,d=i.has;e.exports=function(e){var t=r(this),n=s(e),i=new c;return o(t)>n.size?u(n.getIterator(),(function(e){d(t,e)&&l(i,e)})):a(t,(function(e){n.includes(e)&&l(i,e)})),i}},"95ed":function(e,t,n){},9861:function(e,t,n){"use strict";n("5352")},"986a":function(e,t,n){"use strict";var r=n("ebb5"),i=n("a258").findLast,o=r.aTypedArray,s=r.exportTypedArrayMethod;s("findLast",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},9961:function(e,t,n){"use strict";var r=n("dc19"),i=n("cb27"),o=n("83b9"),s=n("7f65"),a=n("5388"),u=i.add,c=i.has,l=i.remove;e.exports=function(e){var t=r(this),n=s(e).getIterator(),i=o(t);return a(n,(function(e){c(t,e)?l(i,e):u(i,e)})),i}},"99f4":function(e,t,n){"use strict";var r=n("b5db");e.exports=/MSIE|Trident/.test(r)},"9a1f":function(e,t,n){"use strict";var r=n("c65b"),i=n("59ed"),o=n("825a"),s=n("0d51"),a=n("35a1"),u=TypeError;e.exports=function(e,t){var n=arguments.length<2?a(e):t;if(i(n))return o(r(n,e));throw new u(s(e)+" is not iterable")}},"9adc":function(e,t,n){"use strict";var r=n("8558");e.exports="NODE"===r},"9bdd":function(e,t,n){"use strict";var r=n("825a"),i=n("2a62");e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(s){i(e,"throw",s)}}},"9bf2":function(e,t,n){"use strict";var r=n("83ab"),i=n("0cfb"),o=n("aed9"),s=n("825a"),a=n("a04b"),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",f="writable";t.f=r?o?function(e,t,n){if(s(e),t=a(t),s(n),"function"===typeof e&&"prototype"===t&&"value"in n&&f in n&&!n[f]){var r=l(e,t);r&&r[f]&&(e[t]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:d in n?n[d]:r[d],writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(s(e),t=a(t),s(n),i)try{return c(e,t,n)}catch(r){}if("get"in n||"set"in n)throw new u("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"9cf7":function(e,t,n){"use strict";var r=n("d039");e.exports=!r((function(){var e="9007199254740993",t=JSON.rawJSON(e);return!JSON.isRawJSON(t)||JSON.stringify(t)!==e}))},"9f7f":function(e,t,n){"use strict";var r=n("d039"),i=n("cfe9"),o=i.RegExp,s=r((function(){var e=o("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),a=s||r((function(){return!o("a","y").sticky})),u=s||r((function(){var e=o("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:u,MISSED_STICKY:a,UNSUPPORTED_Y:s}},a04b:function(e,t,n){"use strict";var r=n("c04e"),i=n("d9b5");e.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},a078:function(e,t,n){"use strict";var r=n("0366"),i=n("c65b"),o=n("5087"),s=n("7b0b"),a=n("07fa"),u=n("9a1f"),c=n("35a1"),l=n("e95a"),d=n("bcbf"),h=n("ebb5").aTypedArrayConstructor,f=n("f495");e.exports=function(e){var t,n,p,v,m,g,_,y,b=o(this),w=s(e),T=arguments.length,S=T>1?arguments[1]:void 0,C=void 0!==S,E=c(w);if(E&&!l(E)){_=u(w,E),y=_.next,w=[];while(!(g=i(y,_)).done)w.push(g.value)}for(C&&T>2&&(S=r(S,arguments[2])),n=a(w),p=new(h(b))(n),v=d(p),t=0;n>t;t++)m=C?S(w[t],t):w[t],p[t]=v?f(m):+m;return p}},a258:function(e,t,n){"use strict";var r=n("0366"),i=n("44ad"),o=n("7b0b"),s=n("07fa"),a=function(e){var t=1===e;return function(n,a,u){var c,l,d=o(n),h=i(d),f=s(h),p=r(a,u);while(f-- >0)if(c=h[f],l=p(c,f,d),l)switch(e){case 0:return c;case 1:return f}return t?-1:void 0}};e.exports={findLast:a(0),findLastIndex:a(1)}},a395:function(e,t,n){var r=n("7037")["default"],i=n("e50d");function o(e){var t=i(e,"string");return"symbol"==r(t)?t:t+""}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},a4e7:function(e,t,n){"use strict";var r=n("23e7"),i=n("395e"),o=n("dad2"),s=!o("isSupersetOf",(function(e){return!e}));r({target:"Set",proto:!0,real:!0,forced:s},{isSupersetOf:i})},a5f7:function(e,t,n){"use strict";var r=n("dc19"),i=n("cb27"),o=n("83b9"),s=n("8e16"),a=n("7f65"),u=n("384f"),c=n("5388"),l=i.has,d=i.remove;e.exports=function(e){var t=r(this),n=a(e),i=o(t);return s(t)<=n.size?u(t,(function(e){n.includes(e)&&d(i,e)})):c(n.getIterator(),(function(e){l(i,e)&&d(i,e)})),i}},a630:function(e,t,n){"use strict";var r=n("23e7"),i=n("4df4"),o=n("1c7e"),s=!o((function(e){Array.from(e)}));r({target:"Array",stat:!0,forced:s},{from:i})},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(){return 1},1)}))}},a732:function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),o=n("2266"),s=n("59ed"),a=n("825a"),u=n("46c4"),c=n("2a62"),l=n("f99f"),d=l("some",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:d},{some:function(e){a(this);try{s(e)}catch(r){c(this,"throw",r)}if(d)return i(d,this,e);var t=u(this),n=0;return o(t,(function(t,r){if(e(t,n++))return r()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},aa1f:function(e,t,n){"use strict";var r=n("83ab"),i=n("d039"),o=n("825a"),s=n("e391"),a=Error.prototype.toString,u=i((function(){if(r){var e=Object.create(Object.defineProperty({},"name",{get:function(){return this===e}}));if("true"!==a.call(e))return!0}return"2: 1"!==a.call({message:1,name:2})||"Error"!==a.call({})}));e.exports=u?function(){var e=o(this),t=s(e.name,"Error"),n=s(e.message);return t?n?t+": "+n:t:n}:a},ab13:function(e,t,n){"use strict";var r=n("b622"),i=r("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[i]=!1,"/./"[e](t)}catch(r){}}return!1}},ab36:function(e,t,n){"use strict";var r=n("861d"),i=n("9112");e.exports=function(e,t){r(t)&&"cause"in t&&i(e,"cause",t.cause)}},ab43:function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),o=n("59ed"),s=n("825a"),a=n("46c4"),u=n("c5cc"),c=n("9bdd"),l=n("2a62"),d=n("2baa"),h=n("f99f"),f=n("c430"),p=!f&&!d("map",(function(){})),v=!f&&!p&&h("map",TypeError),m=f||p||v,g=u((function(){var e=this.iterator,t=s(i(this.next,e)),n=this.done=!!t.done;if(!n)return c(e,this.mapper,[t.value,this.counter++],!0)}));r({target:"Iterator",proto:!0,real:!0,forced:m},{map:function(e){s(this);try{o(e)}catch(t){l(this,"throw",t)}return v?i(v,this,e):new g(a(this),{mapper:e})}})},ac14:function(e,t,n){function r(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}n("3c65"),e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},ac1f:function(e,t,n){"use strict";var r=n("23e7"),i=n("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},acd8:function(e,t,n){"use strict";var r=n("23e7"),i=n("7e12");r({global:!0,forced:parseFloat!==i},{parseFloat:i})},ace4:function(e,t,n){"use strict";var r=n("23e7"),i=n("4625"),o=n("d039"),s=n("621a"),a=n("825a"),u=n("23cb"),c=n("50c4"),l=s.ArrayBuffer,d=s.DataView,h=d.prototype,f=i(l.prototype.slice),p=i(h.getUint8),v=i(h.setUint8),m=o((function(){return!new l(2).slice(1,void 0).byteLength}));r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:m},{slice:function(e,t){if(f&&void 0===t)return f(a(this),e);var n=a(this).byteLength,r=u(e,n),i=u(void 0===t?n:t,n),o=new l(c(i-r)),s=new d(this),h=new d(o),m=0;while(r<i)v(h,m++,p(s,r++));return o}})},ad6d:function(e,t,n){"use strict";var r=n("825a");e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},addb:function(e,t,n){"use strict";var r=n("f36a"),i=Math.floor,o=function(e,t){var n=e.length;if(n<8){var s,a,u=1;while(u<n){a=u,s=e[u];while(a&&t(e[a-1],s)>0)e[a]=e[--a];a!==u++&&(e[a]=s)}}else{var c=i(n/2),l=o(r(e,0,c),t),d=o(r(e,c),t),h=l.length,f=d.length,p=0,v=0;while(p<h||v<f)e[p+v]=p<h&&v<f?t(l[p],d[v])<=0?l[p++]:d[v++]:p<h?l[p++]:d[v++]}return e};e.exports=o},ae08:function(e,t,n){},ae93:function(e,t,n){"use strict";var r,i,o,s=n("d039"),a=n("1626"),u=n("861d"),c=n("7c73"),l=n("e163"),d=n("cb2d"),h=n("b622"),f=n("c430"),p=h("iterator"),v=!1;[].keys&&(o=[].keys(),"next"in o?(i=l(l(o)),i!==Object.prototype&&(r=i)):v=!0);var m=!u(r)||s((function(){var e={};return r[p].call(e)!==e}));m?r={}:f&&(r=c(r)),a(r[p])||d(r,p,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}},aeb0:function(e,t,n){"use strict";var r=n("9bf2").f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},aed9:function(e,t,n){"use strict";var r=n("83ab"),i=n("d039");e.exports=r&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},b39a:function(e,t,n){"use strict";var r=n("cfe9"),i=n("2ba4"),o=n("ebb5"),s=n("d039"),a=n("f36a"),u=r.Int8Array,c=o.aTypedArray,l=o.exportTypedArrayMethod,d=[].toLocaleString,h=!!u&&s((function(){d.call(new u(1))})),f=s((function(){return[1,2].toLocaleString()!==new u([1,2]).toLocaleString()}))||!s((function(){u.prototype.toLocaleString.call([1,2])}));l("toLocaleString",(function(){return i(d,h?a(c(this)):c(this),a(arguments))}),f)},b42e:function(e,t,n){"use strict";var r=Math.ceil,i=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?i:r)(t)}},b4bc:function(e,t,n){"use strict";var r=n("dc19"),i=n("cb27").has,o=n("8e16"),s=n("7f65"),a=n("384f"),u=n("5388"),c=n("2a62");e.exports=function(e){var t=r(this),n=s(e);if(o(t)<=n.size)return!1!==a(t,(function(e){if(n.includes(e))return!1}),!0);var l=n.getIterator();return!1!==u(l,(function(e){if(i(t,e))return c(l,"normal",!1)}))}},b575:function(e,t,n){"use strict";var r,i,o,s,a,u=n("cfe9"),c=n("157a"),l=n("0366"),d=n("2cf4").set,h=n("01b4"),f=n("52c8"),p=n("ebc1"),v=n("ec87"),m=n("9adc"),g=u.MutationObserver||u.WebKitMutationObserver,_=u.document,y=u.process,b=u.Promise,w=c("queueMicrotask");if(!w){var T=new h,S=function(){var e,t;m&&(e=y.domain)&&e.exit();while(t=T.get())try{t()}catch(n){throw T.head&&r(),n}e&&e.enter()};f||m||v||!g||!_?!p&&b&&b.resolve?(s=b.resolve(void 0),s.constructor=b,a=l(s.then,s),r=function(){a(S)}):m?r=function(){y.nextTick(S)}:(d=l(d,u),r=function(){d(S)}):(i=!0,o=_.createTextNode(""),new g(S).observe(o,{characterData:!0}),r=function(){o.data=i=!i}),w=function(e){T.head||r(),T.add(e)}}e.exports=w},b5db:function(e,t,n){"use strict";var r=n("cfe9"),i=r.navigator,o=i&&i.userAgent;e.exports=o?String(o):""},b620:function(e,t,n){"use strict";var r=n("cfe9"),i=n("7282"),o=n("c6b6"),s=r.ArrayBuffer,a=r.TypeError;e.exports=s&&i(s.prototype,"byteLength","get")||function(e){if("ArrayBuffer"!==o(e))throw new a("ArrayBuffer expected");return e.byteLength}},b622:function(e,t,n){"use strict";var r=n("cfe9"),i=n("5692"),o=n("1a2d"),s=n("90e3"),a=n("04f8"),u=n("fdbf"),c=r.Symbol,l=i("wks"),d=u?c["for"]||c:c&&c.withoutSetter||s;e.exports=function(e){return o(l,e)||(l[e]=a&&o(c,e)?c[e]:d("Symbol."+e)),l[e]}},b639:function(e,t,n){"use strict";(function(e){
6
6
  /*!
7
7
  * The buffer module from node.js, for the browser.
8
8
  *
9
9
  * @author Feross Aboukhadijeh <http://feross.org>
10
10
  * @license MIT
11
11
  */
12
- var r=n("1fb5"),i=n("9152"),o=n("e3db");function s(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=c.prototype):(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(e,t,n);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return l(this,e,t,n)}function l(e,t,n,r){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?m(e,t,n,r):"string"===typeof t?p(e,t,n):g(e,t)}function d(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function h(e,t,n,r){return d(t),t<=0?u(e,t):void 0!==n?"string"===typeof r?u(e,t).fill(n,r):u(e,t).fill(n):u(e,t)}function f(e,t){if(d(t),e=u(e,t<0?0:0|_(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t,n){if("string"===typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|b(t,n);e=u(e,r);var i=e.write(t,n);return i!==r&&(e=e.slice(0,i)),e}function v(e,t){var n=t.length<0?0:0|_(t.length);e=u(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function m(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),c.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=c.prototype):e=v(e,t),e}function g(e,t){if(c.isBuffer(t)){var n=0|_(t.length);return e=u(e,n),0===e.length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||te(t.length)?u(e,0):v(e,t);if("Buffer"===t.type&&o(t.data))return v(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function _(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function y(e){return+e!=e&&(e=0),c.alloc(+e)}function b(e,t){if(c.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return X(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Z(e).length;default:if(r)return X(e).length;t=(""+t).toLowerCase(),r=!0}}function w(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return U(this,t,n);case"utf8":case"utf-8":return P(this,t,n);case"ascii":return L(this,t,n);case"latin1":case"binary":return D(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function T(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function S(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:C(e,t,n,r,i);if("number"===typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):C(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function C(e,t,n,r,i){var o,s=1,a=e.length,u=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var l=-1;for(o=n;o<a;o++)if(c(e,o)===c(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*s}else-1!==l&&(o-=o-l),l=-1}else for(n+u>a&&(n=a-u),o=n;o>=0;o--){for(var d=!0,h=0;h<u;h++)if(c(e,o+h)!==c(t,h)){d=!1;break}if(d)return o}return-1}function E(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function A(e,t,n,r){return ee(X(t,e.length-n),e,n,r)}function x(e,t,n,r){return ee(J(t),e,n,r)}function R(e,t,n,r){return x(e,t,n,r)}function O(e,t,n,r){return ee(Z(t),e,n,r)}function I(e,t,n,r){return ee(Q(t,e.length-n),e,n,r)}function k(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function P(e,t,n){n=Math.min(e.length,n);var r=[],i=t;while(i<n){var o,s,a,u,c=e[i],l=null,d=c>239?4:c>223?3:c>191?2:1;if(i+d<=n)switch(d){case 1:c<128&&(l=c);break;case 2:o=e[i+1],128===(192&o)&&(u=(31&c)<<6|63&o,u>127&&(l=u));break;case 3:o=e[i+1],s=e[i+2],128===(192&o)&&128===(192&s)&&(u=(15&c)<<12|(63&o)<<6|63&s,u>2047&&(u<55296||u>57343)&&(l=u));break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128===(192&o)&&128===(192&s)&&128===(192&a)&&(u=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a,u>65535&&u<1114112&&(l=u))}null===l?(l=65533,d=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=d}return N(r)}t.Buffer=c,t.SlowBuffer=y,t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:s(),t.kMaxLength=a(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return l(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return h(null,e,t,n)},c.allocUnsafe=function(e){return f(null,e)},c.allocUnsafeSlow=function(e){return f(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=c.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var s=e[n];if(!c.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(r,i),i+=s.length}return r},c.byteLength=b,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)T(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)T(this,t,t+3),T(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)T(this,t,t+7),T(this,t+1,t+6),T(this,t+2,t+5),T(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?P(this,0,e):w.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,r,i){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,s=n-t,a=Math.min(o,s),u=this.slice(r,i),l=e.slice(t,n),d=0;d<a;++d)if(u[d]!==l[d]){o=u[d],s=l[d];break}return o<s?-1:s<o?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return S(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return S(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return E(this,e,t,n);case"utf8":case"utf-8":return A(this,e,t,n);case"ascii":return x(this,e,t,n);case"latin1":case"binary":return R(this,e,t,n);case"base64":return O(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var M=4096;function N(e){var t=e.length;if(t<=M)return String.fromCharCode.apply(String,e);var n="",r=0;while(r<t)n+=String.fromCharCode.apply(String,e.slice(r,r+=M));return n}function L(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function D(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function U(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=K(e[o]);return i}function j(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function F(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function H(e,t,n,r,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function B(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function $(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function q(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function V(e,t,n,r,o){return o||q(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function z(e,t,n,r,o){return o||q(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)n=this.subarray(e,t),n.__proto__=c.prototype;else{var i=t-e;n=new c(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);var r=this[e],i=1,o=0;while(++o<t&&(i*=256))r+=this[e+o]*i;return r},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);var r=this[e+--t],i=1;while(t>0&&(i*=256))r+=this[e+--t]*i;return r},c.prototype.readUInt8=function(e,t){return t||F(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||F(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||F(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||F(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||F(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);var r=this[e],i=1,o=0;while(++o<t&&(i*=256))r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);var r=t,i=1,o=this[e+--r];while(r>0&&(i*=256))o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return t||F(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||F(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||F(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||F(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||F(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||F(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||F(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||F(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;H(this,e,t,n,i,0)}var o=1,s=0;this[t]=255&e;while(++s<n&&(o*=256))this[t+s]=e/o&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;H(this,e,t,n,i,0)}var o=n-1,s=1;this[t+o]=255&e;while(--o>=0&&(s*=256))this[t+o]=e/s&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||H(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||H(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):B(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||H(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):B(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||H(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):$(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||H(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):$(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);H(this,e,t,n,i-1,-i)}var o=0,s=1,a=0;this[t]=255&e;while(++o<n&&(s*=256))e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);H(this,e,t,n,i-1,-i)}var o=n-1,s=1,a=0;this[t+o]=255&e;while(--o>=0&&(s*=256))e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||H(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||H(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):B(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||H(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):B(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||H(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):$(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||H(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):$(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return V(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return V(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return z(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return z(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},c.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o<n;++o)this[o]=e;else{var s=c.isBuffer(e)?e:X(new c(e,r).toString()),a=s.length;for(o=0;o<n-t;++o)this[o+t]=s[o%a]}return this};var W=/[^+\/0-9A-Za-z-_]/g;function G(e){if(e=Y(e).replace(W,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function Y(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function K(e){return e<16?"0"+e.toString(16):e.toString(16)}function X(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],s=0;s<r;++s){if(n=e.charCodeAt(s),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function J(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function Q(e,t){for(var n,r,i,o=[],s=0;s<e.length;++s){if((t-=2)<0)break;n=e.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r)}return o}function Z(e){return r.toByteArray(G(e))}function ee(e,t,n,r){for(var i=0;i<r;++i){if(i+n>=t.length||i>=e.length)break;t[i+n]=e[i]}return i}function te(e){return e!==e}}).call(this,n("c8ba"))},b64e:function(e,t,n){"use strict";var r=n("2a62");e.exports=function(e,t,n){for(var i=e.length-1;i>=0;i--)if(void 0!==e[i])try{n=r(e[i].iterator,t,n)}catch(o){t="throw",n=o}if("throw"===t)throw n;return n}},b680:function(e,t,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("5926"),s=n("408a"),a=n("1148"),u=n("d039"),c=RangeError,l=String,d=Math.floor,h=i(a),f=i("".slice),p=i(1.1.toFixed),v=function(e,t,n){return 0===t?n:t%2===1?v(e,t-1,n*e):v(e*e,t/2,n)},m=function(e){var t=0,n=e;while(n>=4096)t+=12,n/=4096;while(n>=2)t+=1,n/=2;return t},g=function(e,t,n){var r=-1,i=n;while(++r<6)i+=t*e[r],e[r]=i%1e7,i=d(i/1e7)},_=function(e,t){var n=6,r=0;while(--n>=0)r+=e[n],e[n]=d(r/t),r=r%t*1e7},y=function(e){var t=6,n="";while(--t>=0)if(""!==n||0===t||0!==e[t]){var r=l(e[t]);n=""===n?r:n+h("0",7-r.length)+r}return n},b=u((function(){return"0.000"!==p(8e-5,3)||"1"!==p(.9,0)||"1.25"!==p(1.255,2)||"1000000000000000128"!==p(0xde0b6b3a7640080,0)}))||!u((function(){p({})}));r({target:"Number",proto:!0,forced:b},{toFixed:function(e){var t,n,r,i,a=s(this),u=o(e),d=[0,0,0,0,0,0],p="",b="0";if(u<0||u>20)throw new c("Incorrect fraction digits");if(a!==a)return"NaN";if(a<=-1e21||a>=1e21)return l(a);if(a<0&&(p="-",a=-a),a>1e-21)if(t=m(a*v(2,69,1))-69,n=t<0?a*v(2,-t,1):a/v(2,t,1),n*=4503599627370496,t=52-t,t>0){g(d,0,n),r=u;while(r>=7)g(d,1e7,0),r-=7;g(d,v(10,r,1),0),r=t-1;while(r>=23)_(d,1<<23),r-=23;_(d,1<<r),g(d,1,1),_(d,2),b=y(d)}else g(d,0,n),g(d,1<<-t,0),b=y(d)+h("0",u);return u>0?(i=b.length,b=p+(i<=u?"0."+h("0",u-i)+b:f(b,0,i-u)+"."+f(b,i-u))):b=p+b,b}})},b6f3:function(e,t,n){"use strict";n("418f")},b727:function(e,t,n){"use strict";var r=n("0366"),i=n("e330"),o=n("44ad"),s=n("7b0b"),a=n("07fa"),u=n("65f0"),c=i([].push),l=function(e){var t=1===e,n=2===e,i=3===e,l=4===e,d=6===e,h=7===e,f=5===e||d;return function(p,v,m,g){for(var _,y,b=s(p),w=o(b),T=a(w),S=r(v,m),C=0,E=g||u,A=t?E(p,T):n||h?E(p,0):void 0;T>C;C++)if((f||C in w)&&(_=w[C],y=S(_,C,b),e))if(t)A[C]=y;else if(y)switch(e){case 3:return!0;case 5:return _;case 6:return C;case 2:c(A,_)}else switch(e){case 4:return!1;case 7:c(A,_)}return d?-1:i||l?l:A}};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)}},b7ef:function(e,t,n){"use strict";var r=n("23e7"),i=n("cfe9"),o=n("d066"),s=n("5c6c"),a=n("9bf2").f,u=n("1a2d"),c=n("19aa"),l=n("7156"),d=n("e391"),h=n("cf98"),f=n("0d26"),p=n("83ab"),v=n("c430"),m="DOMException",g=o("Error"),_=o(m),y=function(){c(this,b);var e=arguments.length,t=d(e<1?void 0:arguments[0]),n=d(e<2?void 0:arguments[1],"Error"),r=new _(t,n),i=new g(t);return i.name=m,a(r,"stack",s(1,f(i.stack,1))),l(r,this,y),r},b=y.prototype=_.prototype,w="stack"in new g(m),T="stack"in new _(1,2),S=_&&p&&Object.getOwnPropertyDescriptor(i,m),C=!!S&&!(S.writable&&S.configurable),E=w&&!C&&!T;r({global:!0,constructor:!0,forced:v||E},{DOMException:E?y:_});var A=o(m),x=A.prototype;if(x.constructor!==A)for(var R in v||a(x,"constructor",s(1,A)),h)if(u(h,R)){var O=h[R],I=O.s;u(A,I)||a(A,I,s(6,O.c))}},b848:function(e,t,n){"use strict";var r=n("23e7"),i=n("cfe9"),o=n("e330"),s=n("6b37"),a=n("2005"),u=o(1.1.toString),c=i.Uint8Array,l=!c||!c.prototype.toHex||!function(){try{var e=new c([255,255,255,255,255,255,255,255]);return"ffffffffffffffff"===e.toHex()}catch(t){return!1}}();c&&r({target:"Uint8Array",proto:!0,forced:l},{toHex:function(){s(this),a(this.buffer);for(var e="",t=0,n=this.length;t<n;t++){var r=u(this[t],16);e+=1===r.length?"0"+r:r}return e}})},b917:function(e,t,n){"use strict";var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=r+"+/",o=r+"-_",s=function(e){for(var t={},n=0;n<64;n++)t[e.charAt(n)]=n;return t};e.exports={i2c:i,c2i:s(i),i2cUrl:o,c2iUrl:s(o)}},b980:function(e,t,n){"use strict";var r=n("d039"),i=n("5c6c");e.exports=!r((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",i(1,7)),7!==e.stack)}))},bb2f:function(e,t,n){"use strict";var r=n("d039");e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},bcbf:function(e,t,n){"use strict";var r=n("f5df");e.exports=function(e){var t=r(e);return"BigInt64Array"===t||"BigUint64Array"===t}},be8e:function(e,t,n){"use strict";var r=n("fc1b"),i=1.1920928955078125e-7,o=34028234663852886e22,s=11754943508222875e-54;e.exports=Math.fround||function(e){return r(e,i,o,s)}},bf19:function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b");r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})},c04e:function(e,t,n){"use strict";var r=n("c65b"),i=n("861d"),o=n("d9b5"),s=n("dc4a"),a=n("485a"),u=n("b622"),c=TypeError,l=u("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var n,u=s(e,l);if(u){if(void 0===t&&(t="default"),n=r(u,e,t),!i(n)||o(n))return n;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},c19f:function(e,t,n){"use strict";var r=n("23e7"),i=n("cfe9"),o=n("621a"),s=n("2626"),a="ArrayBuffer",u=o[a],c=i[a];r({global:!0,constructor:!0,forced:c!==u},{ArrayBuffer:u}),s(a)},c1a1:function(e,t,n){"use strict";var r=n("23e7"),i=n("b4bc"),o=n("dad2"),s=!o("isDisjointFrom",(function(e){return!e}));r({target:"Set",proto:!0,real:!0,forced:s},{isDisjointFrom:i})},c20d:function(e,t,n){"use strict";var r=n("cfe9"),i=n("d039"),o=n("e330"),s=n("577e"),a=n("58a8").trim,u=n("5899"),c=r.parseInt,l=r.Symbol,d=l&&l.iterator,h=/^[+-]?0x/i,f=o(h.exec),p=8!==c(u+"08")||22!==c(u+"0x16")||d&&!i((function(){c(Object(d))}));e.exports=p?function(e,t){var n=a(s(e));return c(n,t>>>0||(f(h,n)?16:10))}:c},c430:function(e,t,n){"use strict";e.exports=!1},c437:function(e,t,n){var r,i,o=n("e1f4"),s=n("2366"),a=0,u=0;function c(e,t,n){var c=t&&n||0,l=t||[];e=e||{};var d=e.node||r,h=void 0!==e.clockseq?e.clockseq:i;if(null==d||null==h){var f=o();null==d&&(d=r=[1|f[0],f[1],f[2],f[3],f[4],f[5]]),null==h&&(h=i=16383&(f[6]<<8|f[7]))}var p=void 0!==e.msecs?e.msecs:(new Date).getTime(),v=void 0!==e.nsecs?e.nsecs:u+1,m=p-a+(v-u)/1e4;if(m<0&&void 0===e.clockseq&&(h=h+1&16383),(m<0||p>a)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=p,u=v,i=h,p+=122192928e5;var g=(1e4*(268435455&p)+v)%4294967296;l[c++]=g>>>24&255,l[c++]=g>>>16&255,l[c++]=g>>>8&255,l[c++]=255&g;var _=p/4294967296*1e4&268435455;l[c++]=_>>>8&255,l[c++]=255&_,l[c++]=_>>>24&15|16,l[c++]=_>>>16&255,l[c++]=h>>>8|128,l[c++]=255&h;for(var y=0;y<6;++y)l[c+y]=d[y];return t||s(l)}e.exports=c},c5cc:function(e,t,n){"use strict";var r=n("c65b"),i=n("7c73"),o=n("9112"),s=n("6964"),a=n("b622"),u=n("69f3"),c=n("dc4a"),l=n("ae93").IteratorPrototype,d=n("4754"),h=n("2a62"),f=n("b64e"),p=a("toStringTag"),v="IteratorHelper",m="WrapForValidIterator",g="normal",_="throw",y=u.set,b=function(e){var t=u.getterFor(e?m:v);return s(i(l),{next:function(){var n=t(this);if(e)return n.nextHandler();if(n.done)return d(void 0,!0);try{var r=n.nextHandler();return n.returnHandlerResult?r:d(r,n.done)}catch(i){throw n.done=!0,i}},return:function(){var n=t(this),i=n.iterator;if(n.done=!0,e){var o=c(i,"return");return o?r(o,i):d(void 0,!0)}if(n.inner)try{h(n.inner.iterator,g)}catch(s){return h(i,_,s)}if(n.openIters)try{f(n.openIters,g)}catch(s){return h(i,_,s)}return i&&h(i,g),d(void 0,!0)}})},w=b(!0),T=b(!1);o(T,p,"Iterator Helper"),e.exports=function(e,t,n){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?m:v,i.returnHandlerResult=!!n,i.nextHandler=e,i.counter=0,i.done=!1,y(this,i)};return r.prototype=t?w:T,r}},c607:function(e,t,n){"use strict";var r=n("83ab"),i=n("fce3"),o=n("c6b6"),s=n("edd0"),a=n("69f3").get,u=RegExp.prototype,c=TypeError;r&&i&&s(u,"dotAll",{configurable:!0,get:function(){if(this!==u){if("RegExp"===o(this))return!!a(this).dotAll;throw new c("Incompatible receiver, RegExp required")}}})},c64e:function(e,t,n){var r=n("e1f4"),i=n("2366");function o(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null),e=e||{};var s=e.random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;a<16;++a)t[o+a]=s[a];return t||i(s)}e.exports=o},c65b:function(e,t,n){"use strict";var r=n("40d5"),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},c6b6:function(e,t,n){"use strict";var r=n("e330"),i=r({}.toString),o=r("".slice);e.exports=function(e){return o(i(e),8,-1)}},c6cd:function(e,t,n){"use strict";var r=n("c430"),i=n("cfe9"),o=n("6374"),s="__core-js_shared__",a=e.exports=i[s]||o(s,{});(a.versions||(a.versions=[])).push({version:"3.47.0",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.47.0/LICENSE",source:"https://github.com/zloirock/core-js"})},c6d2:function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),o=n("c430"),s=n("5e77"),a=n("1626"),u=n("dcc3"),c=n("e163"),l=n("d2bb"),d=n("d44e"),h=n("9112"),f=n("cb2d"),p=n("b622"),v=n("3f8c"),m=n("ae93"),g=s.PROPER,_=s.CONFIGURABLE,y=m.IteratorPrototype,b=m.BUGGY_SAFARI_ITERATORS,w=p("iterator"),T="keys",S="values",C="entries",E=function(){return this};e.exports=function(e,t,n,s,p,m,A){u(n,t,s);var x,R,O,I=function(e){if(e===p&&L)return L;if(!b&&e&&e in M)return M[e];switch(e){case T:return function(){return new n(this,e)};case S:return function(){return new n(this,e)};case C:return function(){return new n(this,e)}}return function(){return new n(this)}},k=t+" Iterator",P=!1,M=e.prototype,N=M[w]||M["@@iterator"]||p&&M[p],L=!b&&N||I(p),D="Array"===t&&M.entries||N;if(D&&(x=c(D.call(new e)),x!==Object.prototype&&x.next&&(o||c(x)===y||(l?l(x,y):a(x[w])||f(x,w,E)),d(x,k,!0,!0),o&&(v[k]=E))),g&&p===S&&N&&N.name!==S&&(!o&&_?h(M,"name",S):(P=!0,L=function(){return i(N,this)})),p)if(R={values:I(S),keys:m?L:I(T),entries:I(C)},A)for(O in R)(b||P||!(O in M))&&f(M,O,R[O]);else r({target:t,proto:!0,forced:b||P},R);return o&&!A||M[w]===L||f(M,w,L,{name:p}),v[t]=L,R}},c73d:function(e,t,n){"use strict";var r=n("23e7"),i=n("cfe9"),o=n("edd0"),s=n("83ab"),a=TypeError,u=Object.defineProperty,c=i.self!==i;try{if(s){var l=Object.getOwnPropertyDescriptor(i,"self");!c&&l&&l.get&&l.enumerable||o(i,"self",{get:function(){return i},set:function(e){if(this!==i)throw new a("Illegal invocation");u(i,"self",{value:e,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else r({global:!0,simple:!0,forced:c},{self:i})}catch(d){}},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){"use strict";var r=n("5e77").PROPER,i=n("d039"),o=n("5899"),s="​…᠎";e.exports=function(e){return i((function(){return!!o[e]()||s[e]()!==s||r&&o[e].name!==e}))}},c973:function(e,t,n){function r(e,t,n,r,i,o,s){try{var a=e[o](s),u=a.value}catch(e){return void n(e)}a.done?t(u):Promise.resolve(u).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var s=e.apply(t,n);function a(e){r(s,i,o,a,u,"next",e)}function u(e){r(s,i,o,a,u,"throw",e)}a(void 0)}))}}n("e6cf"),e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},ca71:function(e,t,n){},ca84:function(e,t,n){"use strict";var r=n("e330"),i=n("1a2d"),o=n("fc6a"),s=n("4d64").indexOf,a=n("d012"),u=r([].push);e.exports=function(e,t){var n,r=o(e),c=0,l=[];for(n in r)!i(a,n)&&i(r,n)&&u(l,n);while(t.length>c)i(r,n=t[c++])&&(~s(l,n)||u(l,n));return l}},caad:function(e,t,n){"use strict";var r=n("23e7"),i=n("4d64").includes,o=n("d039"),s=n("44d2"),a=o((function(){return!Array(1).includes()}));r({target:"Array",proto:!0,forced:a},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),s("includes")},cb27:function(e,t,n){"use strict";var r=n("e330"),i=Set.prototype;e.exports={Set:Set,add:r(i.add),has:r(i.has),remove:r(i["delete"]),proto:i}},cb2d:function(e,t,n){"use strict";var r=n("1626"),i=n("9bf2"),o=n("13d2"),s=n("6374");e.exports=function(e,t,n,a){a||(a={});var u=a.enumerable,c=void 0!==a.name?a.name:t;if(r(n)&&o(n,c,a),a.global)u?e[t]=n:s(t,n);else{try{a.unsafe?e[t]&&(u=!0):delete e[t]}catch(l){}u?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},cc12:function(e,t,n){"use strict";var r=n("cfe9"),i=n("861d"),o=r.document,s=i(o)&&i(o.createElement);e.exports=function(e){return s?o.createElement(e):{}}},cc98:function(e,t,n){"use strict";var r=n("23e7"),i=n("c430"),o=n("4738").CONSTRUCTOR,s=n("d256"),a=n("d066"),u=n("1626"),c=n("cb2d"),l=s&&s.prototype;if(r({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&u(s)){var d=a("Promise").prototype["catch"];l["catch"]!==d&&c(l,"catch",d,{unsafe:!0})}},cca6:function(e,t,n){"use strict";var r=n("23e7"),i=n("60da");r({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},cdce:function(e,t,n){"use strict";var r=n("cfe9"),i=n("1626"),o=r.WeakMap;e.exports=i(o)&&/native code/.test(String(o))},cdf9:function(e,t,n){"use strict";var r=n("825a"),i=n("861d"),o=n("f069");e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e),s=n.resolve;return s(t),n.promise}},cf98:function(e,t,n){"use strict";e.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},cfe9:function(e,t,n){"use strict";(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)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},d012:function(e,t,n){"use strict";e.exports={}},d039:function(e,t,n){"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,n){"use strict";var r=n("cfe9"),i=n("1626"),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e]):r[e]&&r[e][t]}},d0cd:function(e,t,n){},d1e7:function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},d24a:function(e,t,n){"use strict";var r=n("e330"),i=n("1a2d"),o=SyntaxError,s=parseInt,a=String.fromCharCode,u=r("".charAt),c=r("".slice),l=r(/./.exec),d={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},h=/^[\da-f]{4}$/i,f=/^[\u0000-\u001F]$/;e.exports=function(e,t){var n=!0,r="";while(t<e.length){var p=u(e,t);if("\\"===p){var v=c(e,t,t+2);if(i(d,v))r+=d[v],t+=2;else{if("\\u"!==v)throw new o('Unknown escape sequence: "'+v+'"');t+=2;var m=c(e,t,t+4);if(!l(h,m))throw new o("Bad Unicode escape at: "+t);r+=a(s(m,16)),t+=4}}else{if('"'===p){n=!1,t++;break}if(l(f,p))throw new o("Bad control character in string literal at: "+t);r+=p,t++}}if(n)throw new o("Unterminated string at: "+t);return{value:r,end:t}}},d256:function(e,t,n){"use strict";var r=n("cfe9");e.exports=r.Promise},d2bb:function(e,t,n){"use strict";var r=n("7282"),i=n("861d"),o=n("1d80"),s=n("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=r(Object.prototype,"__proto__","set"),e(n,[]),t=n instanceof Array}catch(a){}return function(n,r){return o(n),s(r),i(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0)},d429:function(e,t,n){"use strict";var r=n("07fa"),i=n("5926"),o=RangeError;e.exports=function(e,t,n,s){var a=r(e),u=i(n),c=u<0?a+u:u;if(c>=a||c<0)throw new o("Incorrect index");for(var l=new t(a),d=0;d<a;d++)l[d]=d===c?s:e[d];return l}},d44e:function(e,t,n){"use strict";var r=n("9bf2").f,i=n("1a2d"),o=n("b622"),s=o("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!i(e,s)&&r(e,s,{configurable:!0,value:t})}},d58f:function(e,t,n){"use strict";var r=n("59ed"),i=n("7b0b"),o=n("44ad"),s=n("07fa"),a=TypeError,u="Reduce of empty array with no initial value",c=function(e){return function(t,n,c,l){var d=i(t),h=o(d),f=s(d);if(r(n),0===f&&c<2)throw new a(u);var p=e?f-1:0,v=e?-1:1;if(c<2)while(1){if(p in h){l=h[p],p+=v;break}if(p+=v,e?p<0:f<=p)throw new a(u)}for(;e?p>=0:f>p;p+=v)p in h&&(l=n(l,h[p],p,d));return l}};e.exports={left:c(!1),right:c(!0)}},d6d6:function(e,t,n){"use strict";var r=TypeError;e.exports=function(e,t){if(e<t)throw new r("Not enough arguments");return e}},d784:function(e,t,n){"use strict";n("ac1f");var r=n("c65b"),i=n("cb2d"),o=n("9263"),s=n("d039"),a=n("b622"),u=n("9112"),c=a("species"),l=RegExp.prototype;e.exports=function(e,t,n,d){var h=a(e),f=!s((function(){var t={};return t[h]=function(){return 7},7!==""[e](t)})),p=f&&!s((function(){var t=!1,n=/a/;if("split"===e){var r={};r[c]=function(){return n},n={constructor:r,flags:""},n[h]=/./[h]}return n.exec=function(){return t=!0,null},n[h](""),!t}));if(!f||!p||n){var v=/./[h],m=t(h,""[e],(function(e,t,n,i,s){var a=t.exec;return a===o||a===l.exec?f&&!s?{done:!0,value:r(v,t,n,i)}:{done:!0,value:r(e,n,t,i)}:{done:!1}}));i(String.prototype,e,m[0]),i(l,h,m[1])}d&&u(l[h],"sham",!0)}},d866:function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),o=n("2266"),s=n("59ed"),a=n("825a"),u=n("46c4"),c=n("2a62"),l=n("f99f"),d=l("every",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:d},{every:function(e){a(this);try{s(e)}catch(r){c(this,"throw",r)}if(d)return i(d,this,e);var t=u(this),n=0;return!o(t,(function(t,r){if(!e(t,n++))return r()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},d86b:function(e,t,n){"use strict";var r=n("d039");e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},d9b5:function(e,t,n){"use strict";var r=n("d066"),i=n("1626"),o=n("3a9b"),s=n("fdbf"),a=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&o(t.prototype,a(e))}},d9e2:function(e,t,n){"use strict";var r=n("23e7"),i=n("cfe9"),o=n("2ba4"),s=n("e5cb"),a="WebAssembly",u=i[a],c=7!==new Error("e",{cause:7}).cause,l=function(e,t){var n={};n[e]=s(e,t,c),r({global:!0,constructor:!0,arity:1,forced:c},n)},d=function(e,t){if(u&&u[e]){var n={};n[e]=s(a+"."+e,t,c),r({target:a,stat:!0,constructor:!0,arity:1,forced:c},n)}};l("Error",(function(e){return function(t){return o(e,this,arguments)}})),l("EvalError",(function(e){return function(t){return o(e,this,arguments)}})),l("RangeError",(function(e){return function(t){return o(e,this,arguments)}})),l("ReferenceError",(function(e){return function(t){return o(e,this,arguments)}})),l("SyntaxError",(function(e){return function(t){return o(e,this,arguments)}})),l("TypeError",(function(e){return function(t){return o(e,this,arguments)}})),l("URIError",(function(e){return function(t){return o(e,this,arguments)}})),d("CompileError",(function(e){return function(t){return o(e,this,arguments)}})),d("LinkError",(function(e){return function(t){return o(e,this,arguments)}})),d("RuntimeError",(function(e){return function(t){return o(e,this,arguments)}}))},da63:function(e,t,n){"use strict";var r=TypeError;e.exports=function(e){var t=e&&e.alphabet;if(void 0===t||"base64"===t||"base64url"===t)return t||"base64";throw new r("Incorrect `alphabet` option")}},dad2:function(e,t,n){"use strict";var r=n("d066"),i=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},o=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};e.exports=function(e,t){var n=r("Set");try{(new n)[e](i(0));try{return(new n)[e](i(-1)),!1}catch(a){if(!t)return!0;try{return(new n)[e](o(-1/0)),!1}catch(u){var s=new n([1,2]);return t(s[e](o(1/0)))}}}catch(u){return!1}}},db8a:function(e,t,n){"use strict";n("edfe")},dbe5:function(e,t,n){"use strict";var r=n("cfe9"),i=n("d039"),o=n("1212"),s=n("8558"),a=r.structuredClone;e.exports=!!a&&!i((function(){if("DENO"===s&&o>92||"NODE"===s&&o>94||"BROWSER"===s&&o>97)return!1;var e=new ArrayBuffer(8),t=a(e,{transfer:[e]});return 0!==e.byteLength||8!==t.byteLength}))},dc19:function(e,t,n){"use strict";var r=n("cb27").has;e.exports=function(e){return r(e),e}},dc4a:function(e,t,n){"use strict";var r=n("59ed"),i=n("7234");e.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},dcc3:function(e,t,n){"use strict";var r=n("ae93").IteratorPrototype,i=n("7c73"),o=n("5c6c"),s=n("d44e"),a=n("3f8c"),u=function(){return this};e.exports=function(e,t,n,c){var l=t+" Iterator";return e.prototype=i(r,{next:o(+!c,n)}),s(e,l,!1,!0),a[l]=u,e}},ddb0:function(e,t,n){"use strict";var r=n("cfe9"),i=n("fdbc"),o=n("785a"),s=n("e260"),a=n("9112"),u=n("d44e"),c=n("b622"),l=c("iterator"),d=s.values,h=function(e,t){if(e){if(e[l]!==d)try{a(e,l,d)}catch(r){e[l]=d}if(u(e,t,!0),i[t])for(var n in s)if(e[n]!==s[n])try{a(e,n,s[n])}catch(r){e[n]=s[n]}}};for(var f in i)h(r[f]&&r[f].prototype,f);h(o,"DOMTokenList")},ded3:function(e,t,n){n("14d9"),n("e9f5"),n("910d"),n("7d54"),n("159b");var r=n("9523");function i(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 o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},df75:function(e,t,n){"use strict";var r=n("ca84"),i=n("7839");e.exports=Object.keys||function(e){return r(e,i)}},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}function i(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",r=!1,o=arguments.length-1;o>=-1&&!r;o--){var s=o>=0?arguments[o]:e.cwd();if("string"!==typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(t=s+"/"+t,r="/"===s.charAt(0))}return t=n(i(t.split("/"),(function(e){return!!e})),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),s="/"===o(e,-1);return e=n(i(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&s&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(i(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var n=e.length-1;n>=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),o=r(n.split("/")),s=Math.min(i.length,o.length),a=s,u=0;u<s;u++)if(i[u]!==o[u]){a=u;break}var c=[];for(u=a;u<i.length;u++)c.push("..");return c=c.concat(o.slice(a)),c.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,i=!0,o=e.length-1;o>=1;--o)if(t=e.charCodeAt(o),47===t){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=r(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,o=0,s=e.length-1;s>=0;--s){var a=e.charCodeAt(s);if(47!==a)-1===r&&(i=!1,r=s+1),46===a?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=s+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("4362"))},df7e:function(e,t,n){"use strict";var r=n("07fa");e.exports=function(e,t){for(var n=r(e),i=new t(n),o=0;o<n;o++)i[o]=e[n-o-1];return i}},dfb9:function(e,t,n){"use strict";var r=n("07fa");e.exports=function(e,t,n){var i=0,o=arguments.length>2?n:r(t),s=new e(o);while(o>i)s[i]=t[i++];return s}},e01a:function(e,t,n){"use strict";var r=n("23e7"),i=n("83ab"),o=n("cfe9"),s=n("e330"),a=n("1a2d"),u=n("1626"),c=n("3a9b"),l=n("577e"),d=n("edd0"),h=n("e893"),f=o.Symbol,p=f&&f.prototype;if(i&&u(f)&&(!("description"in p)||void 0!==f().description)){var v={},m=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),t=c(p,this)?new f(e):void 0===e?f():f(e);return""===e&&(v[t]=!0),t};h(m,f),m.prototype=p,p.constructor=m;var g="Symbol(description detection)"===String(f("description detection")),_=s(p.valueOf),y=s(p.toString),b=/^Symbol\((.*)\)[^)]+$/,w=s("".replace),T=s("".slice);d(p,"description",{configurable:!0,get:function(){var e=_(this);if(a(v,e))return"";var t=y(e),n=g?T(t,7,-1):w(t,b,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:m})}},e163:function(e,t,n){"use strict";var r=n("1a2d"),i=n("1626"),o=n("7b0b"),s=n("f772"),a=n("e177"),u=s("IE_PROTO"),c=Object,l=c.prototype;e.exports=a?c.getPrototypeOf:function(e){var t=o(e);if(r(t,u))return t[u];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof c?l:null}},e177:function(e,t,n){"use strict";var r=n("d039");e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e1e9:function(e,t,n){e.exports=n.p+"media/outgoing-call2.b8558579.mp3"},e1f4:function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0===(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},e25e:function(e,t,n){"use strict";var r=n("23e7"),i=n("c20d");r({global:!0,forced:parseInt!==i},{parseInt:i})},e260:function(e,t,n){"use strict";var r=n("fc6a"),i=n("44d2"),o=n("3f8c"),s=n("69f3"),a=n("9bf2").f,u=n("c6d2"),c=n("4754"),l=n("c430"),d=n("83ab"),h="Array Iterator",f=s.set,p=s.getterFor(h);e.exports=u(Array,"Array",(function(e,t){f(this,{type:h,target:r(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,c(void 0,!0);switch(e.kind){case"keys":return c(n,!1);case"values":return c(t[n],!1)}return c([n,t[n]],!1)}),"values");var v=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!l&&d&&"values"!==v.name)try{a(v,"name",{value:"values"})}catch(m){}},e330:function(e,t,n){"use strict";var r=n("40d5"),i=Function.prototype,o=i.call,s=r&&i.bind.bind(o,o);e.exports=r?s:function(e){return function(){return o.apply(e,arguments)}}},e391:function(e,t,n){"use strict";var r=n("577e");e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},e3db:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},e50d:function(e,t,n){n("d9e2");var r=n("7037")["default"];function i(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},e5cb:function(e,t,n){"use strict";var r=n("d066"),i=n("1a2d"),o=n("9112"),s=n("3a9b"),a=n("d2bb"),u=n("e893"),c=n("aeb0"),l=n("7156"),d=n("e391"),h=n("ab36"),f=n("6f19"),p=n("83ab"),v=n("c430");e.exports=function(e,t,n,m){var g="stackTraceLimit",_=m?2:1,y=e.split("."),b=y[y.length-1],w=r.apply(null,y);if(w){var T=w.prototype;if(!v&&i(T,"cause")&&delete T.cause,!n)return w;var S=r("Error"),C=t((function(e,t){var n=d(m?t:e,void 0),r=m?new w(e):new w;return void 0!==n&&o(r,"message",n),f(r,C,r.stack,2),this&&s(T,this)&&l(r,this,C),arguments.length>_&&h(r,arguments[_]),r}));if(C.prototype=T,"Error"!==b?a?a(C,S):u(C,S,{name:!0}):p&&g in w&&(c(C,w,g),c(C,w,"prepareStackTrace")),u(C,w),!v)try{T.name!==b&&o(T,"name",b),T.constructor=C}catch(E){}return C}}},e667:function(e,t,n){"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},e6cf:function(e,t,n){"use strict";n("5e7e"),n("14e5"),n("cc98"),n("3529"),n("f22b"),n("7149")},e893:function(e,t,n){"use strict";var r=n("1a2d"),i=n("56ef"),o=n("06cf"),s=n("9bf2");e.exports=function(e,t,n){for(var a=i(t),u=s.f,c=o.f,l=0;l<a.length;l++){var d=a[l];r(e,d)||n&&r(n,d)||u(e,d,c(t,d))}}},e8b5:function(e,t,n){"use strict";var r=n("c6b6");e.exports=Array.isArray||function(e){return"Array"===r(e)}},e95a:function(e,t,n){"use strict";var r=n("b622"),i=n("3f8c"),o=r("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||s[o]===e)}},e99a:function(e,t){function n(t,r,i,o){var s=Object.defineProperty;try{s({},"",{})}catch(t){s=0}e.exports=n=function(e,t,r,i){function o(t,r){n(e,t,(function(e){return this._invoke(t,r,e)}))}t?s?s(e,t,{value:r,enumerable:!i,configurable:!i,writable:!i}):e[t]=r:(o("next",0),o("throw",1),o("return",2))},e.exports.__esModule=!0,e.exports["default"]=e.exports,n(t,r,i,o)}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},e9bc:function(e,t,n){"use strict";var r=n("dc19"),i=n("cb27").add,o=n("83b9"),s=n("7f65"),a=n("5388");e.exports=function(e){var t=r(this),n=s(e).getIterator(),u=o(t);return a(n,(function(e){i(u,e)})),u}},e9c4:function(e,t,n){"use strict";var r=n("23e7"),i=n("d066"),o=n("2ba4"),s=n("c65b"),a=n("e330"),u=n("d039"),c=n("e8b5"),l=n("1626"),d=n("f748"),h=n("d9b5"),f=n("c6b6"),p=n("577e"),v=n("f36a"),m=n("d24a"),g=n("90e3"),_=n("04f8"),y=n("9cf7"),b=String,w=i("JSON","stringify"),T=a(/./.exec),S=a("".charAt),C=a("".charCodeAt),E=a("".replace),A=a("".slice),x=a([].push),R=a(1.1.toString),O=/[\uD800-\uDFFF]/g,I=/^[\uD800-\uDBFF]$/,k=/^[\uDC00-\uDFFF]$/,P=g(),M=P.length,N=!_||u((function(){var e=i("Symbol")("stringify detection");return"[null]"!==w([e])||"{}"!==w({a:e})||"{}"!==w(Object(e))})),L=u((function(){return'"\\udf06\\ud834"'!==w("\udf06\ud834")||'"\\udead"'!==w("\udead")})),D=N?function(e,t){var n=v(arguments),r=j(t);if(l(r)||void 0!==e&&!h(e))return n[1]=function(e,t){if(l(r)&&(t=s(r,this,b(e),t)),!h(t))return t},o(w,null,n)}:w,U=function(e,t,n){var r=S(n,t-1),i=S(n,t+1);return T(I,e)&&!T(k,i)||T(k,e)&&!T(I,r)?"\\u"+R(C(e,0),16):e},j=function(e){if(l(e))return e;if(c(e)){for(var t=e.length,n=[],r=0;r<t;r++){var i=e[r];"string"==typeof i?x(n,i):"number"!=typeof i&&"Number"!==f(i)&&"String"!==f(i)||x(n,p(i))}var o=n.length,s=!0;return function(e,t){if(s)return s=!1,t;if(c(this))return t;for(var r=0;r<o;r++)if(n[r]===e)return t}}};w&&r({target:"JSON",stat:!0,arity:3,forced:N||L||!y},{stringify:function(e,t,n){var r=j(t),i=[],o=D(e,(function(e,t){var n=l(r)?s(r,this,b(e),t):t;return!y&&d(n)?P+(x(i,n.rawJSON)-1):n}),n);if("string"!=typeof o)return o;if(L&&(o=E(o,O,U)),y)return o;for(var a="",u=o.length,c=0;c<u;c++){var h=S(o,c);if('"'===h){var f=m(o,++c).end-1,p=A(o,c,f);a+=A(p,0,M)===P?i[A(p,M)]:'"'+p+'"',c=f}else a+=h}return a}})},e9f5:function(e,t,n){"use strict";var r=n("23e7"),i=n("cfe9"),o=n("19aa"),s=n("825a"),a=n("1626"),u=n("e163"),c=n("edd0"),l=n("8418"),d=n("d039"),h=n("1a2d"),f=n("b622"),p=n("ae93").IteratorPrototype,v=n("83ab"),m=n("c430"),g="constructor",_="Iterator",y=f("toStringTag"),b=TypeError,w=i[_],T=m||!a(w)||w.prototype!==p||!d((function(){w({})})),S=function(){if(o(this,p),u(this)===p)throw new b("Abstract class Iterator not directly constructable")},C=function(e,t){v?c(p,e,{configurable:!0,get:function(){return t},set:function(t){if(s(this),this===p)throw new b("You can't redefine this property");h(this,e)?this[e]=t:l(this,e,t)}}):p[e]=t};h(p,y)||C(y,_),!T&&h(p,g)&&p[g]!==Object||C(g,S),S.prototype=p,r({global:!0,constructor:!0,forced:T},{Iterator:S})},ea83:function(e,t,n){"use strict";var r=n("b5db"),i=r.match(/AppleWebKit\/(\d+)\./);e.exports=!!i&&+i[1]},eac5:function(e,t,n){"use strict";var r=n("861d"),i=Math.floor;e.exports=Number.isInteger||function(e){return!r(e)&&isFinite(e)&&i(e)===e}},ebb5:function(e,t,n){"use strict";var r,i,o,s=n("4b11"),a=n("83ab"),u=n("cfe9"),c=n("1626"),l=n("861d"),d=n("1a2d"),h=n("f5df"),f=n("0d51"),p=n("9112"),v=n("cb2d"),m=n("edd0"),g=n("3a9b"),_=n("e163"),y=n("d2bb"),b=n("b622"),w=n("90e3"),T=n("69f3"),S=T.enforce,C=T.get,E=u.Int8Array,A=E&&E.prototype,x=u.Uint8ClampedArray,R=x&&x.prototype,O=E&&_(E),I=A&&_(A),k=Object.prototype,P=u.TypeError,M=b("toStringTag"),N=w("TYPED_ARRAY_TAG"),L="TypedArrayConstructor",D=s&&!!y&&"Opera"!==h(u.opera),U=!1,j={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},F={BigInt64Array:8,BigUint64Array:8},H=function(e){if(!l(e))return!1;var t=h(e);return"DataView"===t||d(j,t)||d(F,t)},B=function(e){var t=_(e);if(l(t)){var n=C(t);return n&&d(n,L)?n[L]:B(t)}},$=function(e){if(!l(e))return!1;var t=h(e);return d(j,t)||d(F,t)},q=function(e){if($(e))return e;throw new P("Target is not a typed array")},V=function(e){if(c(e)&&(!y||g(O,e)))return e;throw new P(f(e)+" is not a typed array constructor")},z=function(e,t,n,r){if(a){if(n)for(var i in j){var o=u[i];if(o&&d(o.prototype,e))try{delete o.prototype[e]}catch(s){try{o.prototype[e]=t}catch(c){}}}I[e]&&!n||v(I,e,n?t:D&&A[e]||t,r)}},W=function(e,t,n){var r,i;if(a){if(y){if(n)for(r in j)if(i=u[r],i&&d(i,e))try{delete i[e]}catch(o){}if(O[e]&&!n)return;try{return v(O,e,n?t:D&&O[e]||t)}catch(o){}}for(r in j)i=u[r],!i||i[e]&&!n||v(i,e,t)}};for(r in j)i=u[r],o=i&&i.prototype,o?S(o)[L]=i:D=!1;for(r in F)i=u[r],o=i&&i.prototype,o&&(S(o)[L]=i);if((!D||!c(O)||O===Function.prototype)&&(O=function(){throw new P("Incorrect invocation")},D))for(r in j)u[r]&&y(u[r],O);if((!D||!I||I===k)&&(I=O.prototype,D))for(r in j)u[r]&&y(u[r].prototype,I);if(D&&_(R)!==I&&y(R,I),a&&!d(I,M))for(r in U=!0,m(I,M,{configurable:!0,get:function(){return l(this)?this[N]:void 0}}),j)u[r]&&p(u[r],N,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:D,TYPED_ARRAY_TAG:U&&N,aTypedArray:q,aTypedArrayConstructor:V,exportTypedArrayMethod:z,exportTypedArrayStaticMethod:W,getTypedArrayConstructor:B,isView:H,isTypedArray:$,TypedArray:O,TypedArrayPrototype:I}},ebc1:function(e,t,n){"use strict";var r=n("b5db");e.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},ec87:function(e,t,n){"use strict";var r=n("b5db");e.exports=/web0s(?!.*chrome)/i.test(r)},ec97:function(e,t,n){"use strict";var r=n("ebb5"),i=n("8aa7"),o=r.aTypedArrayConstructor,s=r.exportTypedArrayStaticMethod;s("of",(function(){var e=0,t=arguments.length,n=new(o(this))(t);while(t>e)n[e]=arguments[e++];return n}),i)},edd0:function(e,t,n){"use strict";var r=n("13d2"),i=n("9bf2");e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),i.f(e,t,n)}},edfe:function(e,t,n){},eee7:function(e,t,n){"use strict";n("02ec");var r=n("23e7"),i=n("67b6");r({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==i},{trimStart:i})},f069:function(e,t,n){"use strict";var r=n("59ed"),i=TypeError,o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw new i("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},f183:function(e,t,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("d012"),s=n("861d"),a=n("1a2d"),u=n("9bf2").f,c=n("241c"),l=n("057f"),d=n("4fad"),h=n("90e3"),f=n("bb2f"),p=!1,v=h("meta"),m=0,g=function(e){u(e,v,{value:{objectID:"O"+m++,weakData:{}}})},_=function(e,t){if(!s(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,v)){if(!d(e))return"F";if(!t)return"E";g(e)}return e[v].objectID},y=function(e,t){if(!a(e,v)){if(!d(e))return!0;if(!t)return!1;g(e)}return e[v].weakData},b=function(e){return f&&p&&d(e)&&!a(e,v)&&g(e),e},w=function(){T.enable=function(){},p=!0;var e=c.f,t=i([].splice),n={};n[v]=1,e(n).length&&(c.f=function(n){for(var r=e(n),i=0,o=r.length;i<o;i++)if(r[i]===v){t(r,i,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},T=e.exports={enable:w,fastKey:_,getWeakData:y,onFreeze:b};o[v]=!0},f22b:function(e,t,n){"use strict";var r=n("23e7"),i=n("f069"),o=n("4738").CONSTRUCTOR;r({target:"Promise",stat:!0,forced:o},{reject:function(e){var t=i.f(this),n=t.reject;return n(e),t.promise}})},f354:function(e,t,n){"use strict";var r=n("d039"),i=n("b622"),o=n("83ab"),s=n("c430"),a=i("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),r="";return e.pathname="c%20d",t.forEach((function(e,n){t["delete"]("b"),r+=n+e})),n["delete"]("a",2),n["delete"]("b",void 0),s&&(!e.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!t.size&&(s||!o)||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==r||"x"!==new URL("https://x",void 0).host}))},f36a:function(e,t,n){"use strict";var r=n("e330");e.exports=r([].slice)},f38e:function(e,t,n){},f495:function(e,t,n){"use strict";var r=n("c04e"),i=TypeError;e.exports=function(e){var t=r(e,"number");if("number"==typeof t)throw new i("Can't convert number to bigint");return BigInt(t)}},f5df:function(e,t,n){"use strict";var r=n("00ee"),i=n("1626"),o=n("c6b6"),s=n("b622"),a=s("toStringTag"),u=Object,c="Arguments"===o(function(){return arguments}()),l=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=l(t=u(e),a))?n:c?o(t):"Object"===(r=o(t))&&i(t.callee)?"Arguments":r}},f665:function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),o=n("2266"),s=n("59ed"),a=n("825a"),u=n("46c4"),c=n("2a62"),l=n("f99f"),d=l("find",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:d},{find:function(e){a(this);try{s(e)}catch(r){c(this,"throw",r)}if(d)return i(d,this,e);var t=u(this),n=0;return o(t,(function(t,r){if(e(t,n++))return r(t)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}})},f69d:function(e,t,n){"use strict";var r=n("861d"),i=String,o=TypeError;e.exports=function(e){if(void 0===e||r(e))return e;throw new o(i(e)+" is not an object or undefined")}},f6d6:function(e,t,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("23cb"),s=RangeError,a=String.fromCharCode,u=String.fromCodePoint,c=i([].join),l=!!u&&1!==u.length;r({target:"String",stat:!0,arity:1,forced:l},{fromCodePoint:function(e){var t,n=[],r=arguments.length,i=0;while(r>i){if(t=+arguments[i++],o(t,1114111)!==t)throw new s(t+" is not a valid code point");n[i]=t<65536?a(t):a(55296+((t-=65536)>>10),t%1024+56320)}return c(n,"")}})},f748:function(e,t,n){"use strict";var r=n("861d"),i=n("69f3").get;e.exports=function(e){if(!r(e))return!1;var t=i(e);return!!t&&"RawJSON"===t.type}},f7485:function(e,t,n){"use strict";e.exports=Math.sign||function(e){var t=+e;return 0===t||t!==t?t:t<0?-1:1}},f772:function(e,t,n){"use strict";var r=n("5692"),i=n("90e3"),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},f8c9:function(e,t,n){"use strict";var r=n("23e7"),i=n("cfe9"),o=n("d44e");r({global:!0},{Reflect:{}}),o(i.Reflect,"Reflect",!0)},f8cd:function(e,t,n){"use strict";var r=n("5926"),i=RangeError;e.exports=function(e){var t=r(e);if(t<0)throw new i("The argument can't be less than 0");return t}},f99f:function(e,t,n){"use strict";var r=n("cfe9");e.exports=function(e,t){var n=r.Iterator,i=n&&n.prototype,o=i&&i[e],s=!1;if(o)try{o.call({next:function(){return{done:!0}},return:function(){s=!0}},-1)}catch(a){a instanceof t||(s=!1)}if(!s)return o}},fb15:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"linear",(function(){return de})),n.d(r,"easeInQuad",(function(){return he})),n.d(r,"easeOutQuad",(function(){return fe})),n.d(r,"easeInOutQuad",(function(){return pe})),n.d(r,"easeInCubic",(function(){return ve})),n.d(r,"easeOutCubic",(function(){return me})),n.d(r,"easeInOutCubic",(function(){return ge})),n.d(r,"easeInQuart",(function(){return _e})),n.d(r,"easeOutQuart",(function(){return ye})),n.d(r,"easeInOutQuart",(function(){return be})),n.d(r,"easeInQuint",(function(){return we})),n.d(r,"easeOutQuint",(function(){return Te})),n.d(r,"easeInOutQuint",(function(){return Se}));var i={};n.r(i),n.d(i,"shimGetUserMedia",(function(){return ti})),n.d(i,"shimGetDisplayMedia",(function(){return ni})),n.d(i,"shimMediaStream",(function(){return ri})),n.d(i,"shimOnTrack",(function(){return ii})),n.d(i,"shimGetSendersWithDtmf",(function(){return oi})),n.d(i,"shimGetStats",(function(){return si})),n.d(i,"shimSenderReceiverGetStats",(function(){return ai})),n.d(i,"shimAddTrackRemoveTrackWithNative",(function(){return ui})),n.d(i,"shimAddTrackRemoveTrack",(function(){return ci})),n.d(i,"shimPeerConnection",(function(){return li})),n.d(i,"fixNegotiationNeeded",(function(){return di}));var o={};n.r(o),n.d(o,"shimGetUserMedia",(function(){return hi})),n.d(o,"shimGetDisplayMedia",(function(){return fi})),n.d(o,"shimOnTrack",(function(){return pi})),n.d(o,"shimPeerConnection",(function(){return vi})),n.d(o,"shimSenderGetStats",(function(){return mi})),n.d(o,"shimReceiverGetStats",(function(){return gi})),n.d(o,"shimRemoveStream",(function(){return _i})),n.d(o,"shimRTCDataChannel",(function(){return yi})),n.d(o,"shimAddTransceiver",(function(){return bi})),n.d(o,"shimGetParameters",(function(){return wi})),n.d(o,"shimCreateOffer",(function(){return Ti})),n.d(o,"shimCreateAnswer",(function(){return Si}));var s={};n.r(s),n.d(s,"shimLocalStreamsAPI",(function(){return Ci})),n.d(s,"shimRemoteStreamsAPI",(function(){return Ei})),n.d(s,"shimCallbacksAPI",(function(){return Ai})),n.d(s,"shimGetUserMedia",(function(){return xi})),n.d(s,"shimConstraints",(function(){return Ri})),n.d(s,"shimRTCIceServerUrls",(function(){return Oi})),n.d(s,"shimTrackEventTransceiver",(function(){return Ii})),n.d(s,"shimCreateOfferLegacy",(function(){return ki})),n.d(s,"shimAudioContext",(function(){return Pi}));var a={};if(n.r(a),n.d(a,"shimRTCIceCandidate",(function(){return Li})),n.d(a,"shimRTCIceCandidateRelayProtocol",(function(){return Di})),n.d(a,"shimMaxMessageSize",(function(){return Ui})),n.d(a,"shimSendThrowTypeError",(function(){return ji})),n.d(a,"shimConnectionState",(function(){return Fi})),n.d(a,"removeExtmapAllowMixed",(function(){return Hi})),n.d(a,"shimAddIceCandidateNullOrEmpty",(function(){return Bi})),n.d(a,"shimParameterlessSetLocalDescription",(function(){return $i})),"undefined"!==typeof window){var u=window.document.currentScript,c=u&&u.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);c&&(n.p=c[1])}n("14d9"),n("e9f5"),n("910d"),n("7d54"),n("159b"),n("e01a"),n("e260"),n("ddb0");function l(e){return l="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},l(e)}n("d9e2");function d(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function h(e){var t=d(e,"string");return"symbol"==l(t)?t:t+""}function f(e,t,n){return(t=h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(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 v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}n("d0cd"),n("caad"),n("a732"),n("498a"),n("368e"),n("f665");var m=n("8bbf"),g=n.n(m),_=g.a.extend().extend({name:"themeable",provide(){return{theme:this.themeableProvide}},inject:{theme:{default:{isDark:!1}}},props:{dark:{type:Boolean,default:null},light:{type:Boolean,default:null}},data(){return{themeableProvide:{isDark:!1}}},computed:{appIsDark(){return this.$vuetify.theme.dark||!1},isDark(){return!0===this.dark||!0!==this.light&&this.theme.isDark},themeClasses(){return{"theme--dark":this.isDark,"theme--light":!this.isDark}},rootIsDark(){return!0===this.dark||!0!==this.light&&this.appIsDark},rootThemeClasses(){return{"theme--dark":this.rootIsDark,"theme--light":!this.rootIsDark}}},watch:{isDark:{handler(e,t){e!==t&&(this.themeableProvide.isDark=this.isDark)},immediate:!0}}}),y=_;var b=y.extend({name:"v-theme-provider",props:{root:Boolean},computed:{isDark(){return this.root?this.rootIsDark:y.options.computed.isDark.call(this)}},render(){return this.$slots.default&&this.$slots.default.find(e=>!e.isComment&&" "!==e.text)}}),w=(n("cca6"),n("e25e"),g.a.extend().extend({name:"delayable",props:{openDelay:{type:[Number,String],default:0},closeDelay:{type:[Number,String],default:0}},data:()=>({openTimeout:void 0,closeTimeout:void 0}),methods:{clearDelay(){clearTimeout(this.openTimeout),clearTimeout(this.closeTimeout)},runDelay(e,t){this.clearDelay();var n=parseInt(this[e+"Delay"],10);this[e+"Timeout"]=setTimeout(t||(()=>{this.isActive={open:!0,close:!1}[e]}),n)}}}));function T(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"value",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"input";return g.a.extend({name:"toggleable",model:{prop:e,event:t},props:{[e]:{required:!1}},data(){return{isActive:!!this[e]}},watch:{[e](e){this.isActive=!!e},isActive(n){!!n!==this[e]&&this.$emit(t,n)}}})}var S=T(),C=S;function E(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return g.a.extend({mixins:t})}function A(e){if(Array.isArray(e))return e}function x(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n["return"]&&(s=n["return"](),Object(s)!==s))return}finally{if(c)throw i}}return a}}n("a630"),n("ac1f"),n("00b4"),n("25f0");function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function O(e,t){if(e){if("string"==typeof e)return R(e,t);var n={}.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)?R(e,t):void 0}}function I(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function k(e,t){return A(e)||x(e,t)||O(e,t)||I()}n("13d5"),n("4e82"),n("d866"),n("9485"),n("b680"),n("5319"),n("2ca0");function P(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=o=>{n(o),e.removeEventListener(t,i,r)};e.addEventListener(t,i,r)}var M=!1;try{if("undefined"!==typeof window){var N=Object.defineProperty({},"passive",{get:()=>{M=!0}});window.addEventListener("testListener",N,N),window.removeEventListener("testListener",N,N)}}catch(so){console.warn(so)}function L(e,t,n,r){e.addEventListener(t,n,!!M&&r)}function D(e,t,n){var r=t.length-1;if(r<0)return void 0===e?n:e;for(var i=0;i<r;i++){if(null==e)return n;e=e[t[i]]}return null==e||void 0===e[t[r]]?n:e[t[r]]}function U(e,t,n){return null!=e&&t&&"string"===typeof t?void 0!==e[t]?e[t]:(t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,""),D(e,t.split("."),n)):n}function j(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return 0;var t=+window.getComputedStyle(e).getPropertyValue("z-index");return t||j(e.parentNode)}function F(e,t){for(var n={},r=0;r<t.length;r++){var i=t[r];"undefined"!==typeof e[i]&&(n[i]=e[i])}return n}function H(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px";return null==e||""===e?void 0:isNaN(+e)?String(e):`${Number(e)}${t}`}function B(e){return(e||"").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function $(e){return null!==e&&"object"===typeof e}var q=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16});function V(e,t){var n=e.$vuetify.icons.component;if(t.startsWith("$")){var r="$vuetify.icons.values."+t.split("$").pop().split(".").pop(),i=U(e,r,t);if("string"!==typeof i)return i;t=i}return null==n?t:{component:n,props:{icon:t}}}function z(e){return Object.keys(e)}var W=/-(\w)/g,G=e=>e.replace(W,(e,t)=>t?t.toUpperCase():"");function Y(e){return e.charAt(0).toUpperCase()+e.slice(1)}function K(e){return null!=e?Array.isArray(e)?e:[e]:[]}function X(e,t,n){return e.$slots.hasOwnProperty(t)&&e.$scopedSlots.hasOwnProperty(t)&&e.$scopedSlots[t].name?n?"v-slot":"scoped":e.$slots.hasOwnProperty(t)?"normal":e.$scopedSlots.hasOwnProperty(t)?"scoped":void 0}function J(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=B(t);return e.$scopedSlots.hasOwnProperty(t)?e.$scopedSlots[t](n instanceof Function?n():n):e.$scopedSlots.hasOwnProperty(i)?e.$scopedSlots[i](n instanceof Function?n():n):!e.$slots.hasOwnProperty(t)||n&&!r?!e.$slots.hasOwnProperty(i)||n&&!r?void 0:e.$slots[i]:e.$slots[t]}function Q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.max(t,Math.min(n,e))}function Z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var n in t){var r=e[n],i=t[n];$(r)&&$(i)?e[n]=Z(r,i):e[n]=i}return e}function ee(e){if(e.composedPath)return e.composedPath();var t=[],n=e.target;while(n){if(t.push(n),"HTML"===n.tagName)return t.push(document),t.push(window),t;n=n.parentElement}return t}n("2532"),n("466d");function te(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!te.installed){te.installed=!0,g.a!==e&&Ct("Multiple instances of Vue detected\nSee https://github.com/vuetifyjs/vuetify/issues/4068\n\nIf you're seeing \"$attrs is readonly\", it's caused by this");var n=t.components||{},r=t.directives||{};for(var i in r){var o=r[i];e.directive(i,o)}(function t(n){if(n){for(var r in n){var i=n[r];i&&!t(i.$_vuetify_subcomponents)&&e.component(r,i)}return!0}return!1})(n),e.$_vuetify_installed||(e.$_vuetify_installed=!0,e.mixin({beforeCreate(){var t=this.$options;t.vuetify?(t.vuetify.init(this,this.$ssrContext),this.$vuetify=e.observable(t.vuetify.framework)):this.$vuetify=t.parent&&t.parent.$vuetify||this},beforeMount(){this.$options.vuetify&&this.$el&&this.$el.hasAttribute("data-server-rendered")&&(this.$vuetify.isHydrating=!0,this.$vuetify.breakpoint.update(!0))},mounted(){this.$options.vuetify&&this.$vuetify.isHydrating&&(this.$vuetify.isHydrating=!1,this.$vuetify.breakpoint.update())}}))}}function ne(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function re(e,t){if(null==e)return{};var n,r,i=ne(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n("95ed");var ie={badge:"Badge",close:"Close",dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},datePicker:{itemsSelected:"{0} selected",nextMonthAriaLabel:"Next month",nextYearAriaLabel:"Next year",prevMonthAriaLabel:"Previous month",prevYearAriaLabel:"Previous year"},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},timePicker:{am:"AM",pm:"PM"},pagination:{ariaLabel:{wrapper:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Goto Page {0}",currentPage:"Current Page, Page {0}"}},rating:{ariaLabel:{icon:"Rating {0} of {1}"}},loading:"Loading..."},oe={breakpoint:{mobileBreakpoint:1264,scrollBarWidth:16,thresholds:{xs:600,sm:960,md:1280,lg:1920}},icons:{iconfont:"mdi",values:{}},lang:{current:"en",locales:{en:ie},t:void 0},rtl:!1,theme:{dark:!1,default:"light",disable:!1,options:{cspNonce:void 0,customProperties:void 0,minifyTheme:void 0,themeCache:void 0,variations:!0},themes:{light:{primary:"#1976D2",secondary:"#424242",accent:"#82B1FF",error:"#FF5252",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},dark:{primary:"#2196F3",secondary:"#424242",accent:"#FF4081",error:"#FF5252",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"}}}};class se{constructor(){this.framework={}}init(e,t){}}var ae=["preset"];class ue extends se{constructor(e,t){super();var n=Z({},oe),r=t.userPreset,i=r.preset,o=void 0===i?{}:i,s=re(r,ae);null!=o.preset&&St("Global presets do not support the **preset** option, it can be safely omitted"),t.preset=Z(Z(n,o),s)}}ue.property="presets";class ce extends se{constructor(){super(...arguments),this.bar=0,this.top=0,this.left=0,this.insetFooter=0,this.right=0,this.bottom=0,this.footer=0,this.application={bar:{},top:{},left:{},insetFooter:{},right:{},bottom:{},footer:{}}}register(e,t,n){this.application[t][e]=n,this.update(t)}unregister(e,t){null!=this.application[t][e]&&(delete this.application[t][e],this.update(t))}update(e){this[e]=Object.values(this.application[e]).reduce((e,t)=>e+t,0)}}ce.property="application";class le extends se{constructor(e){super(),this.xs=!1,this.sm=!1,this.md=!1,this.lg=!1,this.xl=!1,this.xsOnly=!1,this.smOnly=!1,this.smAndDown=!1,this.smAndUp=!1,this.mdOnly=!1,this.mdAndDown=!1,this.mdAndUp=!1,this.lgOnly=!1,this.lgAndDown=!1,this.lgAndUp=!1,this.xlOnly=!1,this.name="xs",this.height=0,this.width=0,this.mobile=!0,this.resizeTimeout=0;var t=e[le.property],n=t.mobileBreakpoint,r=t.scrollBarWidth,i=t.thresholds;this.mobileBreakpoint=n,this.scrollBarWidth=r,this.thresholds=i}init(){this.update(),"undefined"!==typeof window&&window.addEventListener("resize",this.onResize.bind(this),{passive:!0})}update(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=e?0:this.getClientHeight(),n=e?0:this.getClientWidth(),r=n<this.thresholds.xs,i=n<this.thresholds.sm&&!r,o=n<this.thresholds.md-this.scrollBarWidth&&!(i||r),s=n<this.thresholds.lg-this.scrollBarWidth&&!(o||i||r),a=n>=this.thresholds.lg-this.scrollBarWidth;switch(this.height=t,this.width=n,this.xs=r,this.sm=i,this.md=o,this.lg=s,this.xl=a,this.xsOnly=r,this.smOnly=i,this.smAndDown=(r||i)&&!(o||s||a),this.smAndUp=!r&&(i||o||s||a),this.mdOnly=o,this.mdAndDown=(r||i||o)&&!(s||a),this.mdAndUp=!(r||i)&&(o||s||a),this.lgOnly=s,this.lgAndDown=(r||i||o||s)&&!a,this.lgAndUp=!(r||i||o)&&(s||a),this.xlOnly=a,!0){case r:this.name="xs";break;case i:this.name="sm";break;case o:this.name="md";break;case s:this.name="lg";break;default:this.name="xl";break}if("number"!==typeof this.mobileBreakpoint){var u={xs:0,sm:1,md:2,lg:3,xl:4},c=u[this.name],l=u[this.mobileBreakpoint];this.mobile=c<=l}else this.mobile=n<parseInt(this.mobileBreakpoint,10)}onResize(){clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(this.update.bind(this),200)}getClientWidth(){return"undefined"===typeof document?0:Math.max(document.documentElement.clientWidth,window.innerWidth||0)}getClientHeight(){return"undefined"===typeof document?0:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}le.property="breakpoint";n("e6cf");var de=e=>e,he=e=>Math.pow(e,2),fe=e=>e*(2-e),pe=e=>e<.5?2*Math.pow(e,2):(4-2*e)*e-1,ve=e=>Math.pow(e,3),me=e=>Math.pow(--e,3)+1,ge=e=>e<.5?4*Math.pow(e,3):(e-1)*(2*e-2)*(2*e-2)+1,_e=e=>Math.pow(e,4),ye=e=>1-Math.pow(--e,4),be=e=>e<.5?8*e*e*e*e:1-8*--e*e*e*e,we=e=>Math.pow(e,5),Te=e=>1+Math.pow(--e,5),Se=e=>e<.5?16*Math.pow(e,5):1+16*Math.pow(--e,5);function Ce(e){if("number"===typeof e)return e;var t=xe(e);if(!t)throw"string"===typeof e?new Error(`Target element "${e}" not found.`):new TypeError(`Target must be a Number/Selector/HTMLElement/VueComponent, received ${Ae(e)} instead.`);var n=0;while(t)n+=t.offsetTop,t=t.offsetParent;return n}function Ee(e){var t=xe(e);if(t)return t;throw"string"===typeof e?new Error(`Container element "${e}" not found.`):new TypeError(`Container must be a Selector/HTMLElement/VueComponent, received ${Ae(e)} instead.`)}function Ae(e){return null==e?e:e.constructor.name}function xe(e){return"string"===typeof e?document.querySelector(e):e&&e._isVue?e.$el:e instanceof HTMLElement?e:null}function Re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=v({container:document.scrollingElement||document.body||document.documentElement,duration:500,offset:0,easing:"easeInOutCubic",appOffset:!0},t),i=Ee(n.container);if(n.appOffset&&Re.framework.application){var o=i.classList.contains("v-navigation-drawer"),s=i.classList.contains("v-navigation-drawer--clipped"),a=Re.framework.application,u=a.bar,c=a.top;n.offset+=u,o&&!s||(n.offset+=c)}var l,d=performance.now();l="number"===typeof e?Ce(e)-n.offset:Ce(e)-Ce(i)-n.offset;var h=i.scrollTop;if(l===h)return Promise.resolve(l);var f="function"===typeof n.easing?n.easing:r[n.easing];if(!f)throw new TypeError(`Easing function "${n.easing}" not found.`);return new Promise(e=>requestAnimationFrame((function t(r){var o=r-d,s=Math.abs(n.duration?Math.min(o/n.duration,1):1);i.scrollTop=Math.floor(h+(l-h)*f(s));var a=i===document.body?document.documentElement.clientHeight:i.clientHeight,u=a+i.scrollTop>=i.scrollHeight;if(1===s||l>i.scrollTop&&u)return e(l);requestAnimationFrame(t)})))}Re.framework={},Re.init=()=>{};class Oe extends se{constructor(){return super(),Re}}Oe.property="goTo";var Ie={complete:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",cancel:"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",close:"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",delete:"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",clear:"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",success:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z",info:"M13,9H11V7H13M13,17H11V11H13M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2ZM13,9H11V7H13M13,17H11V11H13M12,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",warning:"M13,13H11V7H13M13,17H11V15H13M12,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",error:"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",prev:"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",next:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",checkboxOn:"M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3Z",checkboxOff:"M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z",checkboxIndeterminate:"M17,13H7V11H17M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3Z",delimiter:"M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z",sort:"M13,20H11V8L5.5,13.5L4.08,12.08L12,4.16L19.92,12.08L18.5,13.5L13,8V20Z",expand:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",menu:"M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z",subgroup:"M7,10L12,15L17,10H7Z",dropdown:"M7,10L12,15L17,10H7Z",radioOn:"M12,20C7.58,20 4,16.42 4,12C4,7.58 7.58,4 12,4C16.42,4 20,7.58 20,12C20,16.42 16.42,20 12,20M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2M12,7C9.24,7 7,9.24 7,12C7,14.76 9.24,17 12,17C14.76,17 17,14.76 17,12C17,9.24 14.76,7 12,7Z",radioOff:"M12,20C7.58,20 4,16.42 4,12C4,7.58 7.58,4 12,4C16.42,4 20,7.58 20,12C20,16.42 16.42,20 12,20M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z",edit:"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",ratingEmpty:"M12,15.39L8.24,17.66L9.23,13.38L5.91,10.5L10.29,10.13L12,6.09L13.71,10.13L18.09,10.5L14.77,13.38L15.76,17.66M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z",ratingFull:"M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z",ratingHalf:"M12,15.4V6.1L13.71,10.13L18.09,10.5L14.77,13.39L15.76,17.67M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z",loading:"M19,8L15,12H18C18,15.31 15.31,18 12,18C11,18 10.03,17.75 9.2,17.3L7.74,18.76C8.97,19.54 10.43,20 12,20C16.42,20 20,16.42 20,12H23M6,12C6,8.69 8.69,6 12,6C13,6 13.97,6.25 14.8,6.7L16.26,5.24C15.03,4.46 13.57,4 12,4C7.58,4 4,7.58 4,12H1L5,16L9,12",first:"M18.41,16.59L13.82,12L18.41,7.41L17,6L11,12L17,18L18.41,16.59M6,6H8V18H6V6Z",last:"M5.59,7.41L10.18,12L5.59,16.59L7,18L13,12L7,6L5.59,7.41M16,6H18V18H16V6Z",unfold:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z",file:"M16.5,6V17.5C16.5,19.71 14.71,21.5 12.5,21.5C10.29,21.5 8.5,19.71 8.5,17.5V5C8.5,3.62 9.62,2.5 11,2.5C12.38,2.5 13.5,3.62 13.5,5V15.5C13.5,16.05 13.05,16.5 12.5,16.5C11.95,16.5 11.5,16.05 11.5,15.5V6H10V15.5C10,16.88 11.12,18 12.5,18C13.88,18 15,16.88 15,15.5V5C15,2.79 13.21,1 11,1C8.79,1 7,2.79 7,5V17.5C7,20.54 9.46,23 12.5,23C15.54,23 18,20.54 18,17.5V6H16.5Z",plus:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",minus:"M19,13H5V11H19V13Z"},ke=Ie,Pe={complete:"check",cancel:"cancel",close:"close",delete:"cancel",clear:"clear",success:"check_circle",info:"info",warning:"priority_high",error:"warning",prev:"chevron_left",next:"chevron_right",checkboxOn:"check_box",checkboxOff:"check_box_outline_blank",checkboxIndeterminate:"indeterminate_check_box",delimiter:"fiber_manual_record",sort:"arrow_upward",expand:"keyboard_arrow_down",menu:"menu",subgroup:"arrow_drop_down",dropdown:"arrow_drop_down",radioOn:"radio_button_checked",radioOff:"radio_button_unchecked",edit:"edit",ratingEmpty:"star_border",ratingFull:"star",ratingHalf:"star_half",loading:"cached",first:"first_page",last:"last_page",unfold:"unfold_more",file:"attach_file",plus:"add",minus:"remove"},Me=Pe,Ne={complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-exclamation",error:"mdi-alert",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sort:"mdi-arrow-up",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus"},Le=Ne,De={complete:"fas fa-check",cancel:"fas fa-times-circle",close:"fas fa-times",delete:"fas fa-times-circle",clear:"fas fa-times-circle",success:"fas fa-check-circle",info:"fas fa-info-circle",warning:"fas fa-exclamation-circle",error:"fas fa-exclamation-triangle",prev:"fas fa-chevron-left",next:"fas fa-chevron-right",checkboxOn:"fas fa-check-square",checkboxOff:"far fa-square",checkboxIndeterminate:"fas fa-minus-square",delimiter:"fas fa-circle",sort:"fas fa-sort-up",expand:"fas fa-chevron-down",menu:"fas fa-bars",subgroup:"fas fa-caret-down",dropdown:"fas fa-caret-down",radioOn:"far fa-dot-circle",radioOff:"far fa-circle",edit:"fas fa-edit",ratingEmpty:"far fa-star",ratingFull:"fas fa-star",ratingHalf:"fas fa-star-half",loading:"fas fa-sync",first:"fas fa-step-backward",last:"fas fa-step-forward",unfold:"fas fa-arrows-alt-v",file:"fas fa-paperclip",plus:"fas fa-plus",minus:"fas fa-minus"},Ue=De,je={complete:"fa fa-check",cancel:"fa fa-times-circle",close:"fa fa-times",delete:"fa fa-times-circle",clear:"fa fa-times-circle",success:"fa fa-check-circle",info:"fa fa-info-circle",warning:"fa fa-exclamation",error:"fa fa-exclamation-triangle",prev:"fa fa-chevron-left",next:"fa fa-chevron-right",checkboxOn:"fa fa-check-square",checkboxOff:"fa fa-square-o",checkboxIndeterminate:"fa fa-minus-square",delimiter:"fa fa-circle",sort:"fa fa-sort-up",expand:"fa fa-chevron-down",menu:"fa fa-bars",subgroup:"fa fa-caret-down",dropdown:"fa fa-caret-down",radioOn:"fa fa-dot-circle-o",radioOff:"fa fa-circle-o",edit:"fa fa-pencil",ratingEmpty:"fa fa-star-o",ratingFull:"fa fa-star",ratingHalf:"fa fa-star-half-o",loading:"fa fa-refresh",first:"fa fa-step-backward",last:"fa fa-step-forward",unfold:"fa fa-angle-double-down",file:"fa fa-paperclip",plus:"fa fa-plus",minus:"fa fa-minus"},Fe=je;function He(e,t){var n={};for(var r in t)n[r]={component:e,props:{icon:t[r].split(" fa-")}};return n}var Be=He("font-awesome-icon",Ue),$e=Object.freeze({mdiSvg:ke,md:Me,mdi:Le,fa:Ue,fa4:Fe,faSvg:Be});class qe extends se{constructor(e){super();var t=e[qe.property],n=t.iconfont,r=t.values,i=t.component;this.component=i,this.iconfont=n,this.values=Z($e[n],r)}}qe.property="icons";var Ve="$vuetify.",ze=Symbol("Lang fallback");function We(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=t.replace(Ve,""),o=U(e,i,ze);return o===ze&&(n?(Ct(`Translation key "${i}" not found in fallback`),o=t):(St(`Translation key "${i}" not found, falling back to default`),o=We(r,t,!0,r))),o}class Ge extends se{constructor(e){super(),this.defaultLocale="en";var t=e[Ge.property],n=t.current,r=t.locales,i=t.t;this.current=n,this.locales=r,this.translator=i||this.defaultTranslator}currentLocale(e){var t=this.locales[this.current],n=this.locales[this.defaultLocale];return We(t,e,!1,n)}t(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.startsWith(Ve)?this.translator(e,...n):this.replace(e,n)}defaultTranslator(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return this.replace(this.currentLocale(e),n)}replace(e,t){return e.replace(/\{(\d+)\}/g,(e,n)=>String(t[+n]))}}Ge.property="lang";n("1276"),n("ab43");var Ye=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],Ke=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,Xe=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],Je=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function Qe(e){for(var t=Array(3),n=Ke,r=Ye,i=0;i<3;++i)t[i]=Math.round(255*Q(n(r[i][0]*e[0]+r[i][1]*e[1]+r[i][2]*e[2])));return(t[0]<<16)+(t[1]<<8)+(t[2]<<0)}function Ze(e){for(var t=[0,0,0],n=Je,r=Xe,i=n((e>>16&255)/255),o=n((e>>8&255)/255),s=n((e>>0&255)/255),a=0;a<3;++a)t[a]=r[a][0]*i+r[a][1]*o+r[a][2]*s;return t}function et(e){return!!e&&!!e.match(/^(#|var\(--|(rgb|hsl)a?\()/)}function tt(e){var t;if("number"===typeof e)t=e;else{if("string"!==typeof e)throw new TypeError(`Colors can only be numbers or strings, recieved ${null==e?e:e.constructor.name} instead`);var n="#"===e[0]?e.substring(1):e;3===n.length&&(n=n.split("").map(e=>e+e).join("")),6!==n.length&&St(`'${e}' is not a valid rgb color`),t=parseInt(n,16)}return t<0?(St(`Colors cannot be negative: '${e}'`),t=0):(t>16777215||isNaN(t))&&(St(`'${e}' is not a valid rgb color`),t=16777215),t}function nt(e){var t=e.toString(16);return t.length<6&&(t="0".repeat(6-t.length)+t),"#"+t}function rt(e){return nt(tt(e))}var it=.20689655172413793,ot=e=>e>Math.pow(it,3)?Math.cbrt(e):e/(3*Math.pow(it,2))+4/29,st=e=>e>it?Math.pow(e,3):3*Math.pow(it,2)*(e-4/29);function at(e){var t=ot,n=t(e[1]);return[116*n-16,500*(t(e[0]/.95047)-n),200*(n-t(e[2]/1.08883))]}function ut(e){var t=st,n=(e[0]+16)/116;return[.95047*t(n+e[1]/500),t(n),1.08883*t(n-e[2]/200)]}var ct=["anchor"],lt=["anchor"];function dt(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e.anchor,i=re(e,ct),o=Object.keys(i),s={},a=0;a<o.length;++a){var u=o[a],c=e[u];null!=c&&(n?t?("base"===u||u.startsWith("lighten")||u.startsWith("darken"))&&(s[u]=rt(c)):s[u]="object"===typeof c?dt(c,!0,n):gt(u,tt(c)):s[u]={base:nt(tt(c))})}return t||(s.anchor=r||s.base||s.primary.base),s}var ht=(e,t)=>`\n.v-application .${e} {\n background-color: ${t} !important;\n border-color: ${t} !important;\n}\n.v-application .${e}--text {\n color: ${t} !important;\n caret-color: ${t} !important;\n}`,ft=(e,t,n)=>{var r=t.split(/(\d)/,2),i=k(r,2),o=i[0],s=i[1];return`\n.v-application .${e}.${o}-${s} {\n background-color: ${n} !important;\n border-color: ${n} !important;\n}\n.v-application .${e}--text.text--${o}-${s} {\n color: ${n} !important;\n caret-color: ${n} !important;\n}`},pt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"base";return`--v-${e}-${t}`},vt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"base";return`var(${pt(e,t)})`};function mt(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.anchor,r=re(e,lt),i=Object.keys(r);if(!i.length)return"";var o="",s="",a=t?vt("anchor"):n;s+=`.v-application a { color: ${a}; }`,t&&(o+=` ${pt("anchor")}: ${n};\n`);for(var u=0;u<i.length;++u){var c=i[u],l=e[c];s+=ht(c,t?vt(c):l.base),t&&(o+=` ${pt(c)}: ${l.base};\n`);for(var d=z(l),h=0;h<d.length;++h){var f=d[h],p=l[f];"base"!==f&&(s+=ft(c,f,t?vt(c,f):p),t&&(o+=` ${pt(c,f)}: ${p};\n`))}}return t&&(o=`:root {\n${o}}\n\n`),o+s}function gt(e,t){for(var n={base:nt(t)},r=5;r>0;--r)n["lighten"+r]=nt(_t(t,r));for(var i=1;i<=4;++i)n["darken"+i]=nt(yt(t,i));return n}function _t(e,t){var n=at(Ze(e));return n[0]=n[0]+10*t,Qe(ut(n))}function yt(e,t){var n=at(Ze(e));return n[0]=n[0]-10*t,Qe(ut(n))}class bt extends se{constructor(e){super(),this.disabled=!1,this.isDark=null,this.unwatch=null,this.vueMeta=null;var t=e[bt.property],n=t.dark,r=t.disable,i=t.options,o=t.themes;this.dark=Boolean(n),this.defaults=this.themes=o,this.options=i,r?this.disabled=!0:this.themes={dark:this.fillVariant(o.dark,!0),light:this.fillVariant(o.light,!1)}}set css(e){this.vueMeta?this.isVueMeta23&&this.applyVueMeta23():this.checkOrCreateStyleElement()&&(this.styleEl.innerHTML=e)}set dark(e){var t=this.isDark;this.isDark=e,null!=t&&this.applyTheme()}get dark(){return Boolean(this.isDark)}applyTheme(){if(this.disabled)return this.clearCss();this.css=this.generatedStyles}clearCss(){this.css=""}init(e,t){this.disabled||(e.$meta?this.initVueMeta(e):t&&this.initSSR(t),this.initTheme(e))}setTheme(e,t){this.themes[e]=Object.assign(this.themes[e],t),this.applyTheme()}resetThemes(){this.themes.light=Object.assign({},this.defaults.light),this.themes.dark=Object.assign({},this.defaults.dark),this.applyTheme()}checkOrCreateStyleElement(){return this.styleEl=document.getElementById("vuetify-theme-stylesheet"),!!this.styleEl||(this.genStyleElement(),Boolean(this.styleEl))}fillVariant(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=this.themes[t?"dark":"light"];return Object.assign({},n,e)}genStyleElement(){"undefined"!==typeof document&&(this.styleEl=document.createElement("style"),this.styleEl.type="text/css",this.styleEl.id="vuetify-theme-stylesheet",this.options.cspNonce&&this.styleEl.setAttribute("nonce",this.options.cspNonce),document.head.appendChild(this.styleEl))}initVueMeta(e){if(this.vueMeta=e.$meta(),this.isVueMeta23)e.$nextTick(()=>{this.applyVueMeta23()});else{var t="function"===typeof this.vueMeta.getOptions?this.vueMeta.getOptions().keyName:"metaInfo",n=e.$options[t]||{};e.$options[t]=()=>{n.style=n.style||[];var e=n.style.find(e=>"vuetify-theme-stylesheet"===e.id);return e?e.cssText=this.generatedStyles:n.style.push({cssText:this.generatedStyles,type:"text/css",id:"vuetify-theme-stylesheet",nonce:(this.options||{}).cspNonce}),n}}}applyVueMeta23(){var e=this.vueMeta.addApp("vuetify"),t=e.set;t({style:[{cssText:this.generatedStyles,type:"text/css",id:"vuetify-theme-stylesheet",nonce:this.options.cspNonce}]})}initSSR(e){var t=this.options.cspNonce?` nonce="${this.options.cspNonce}"`:"";e.head=e.head||"",e.head+=`<style type="text/css" id="vuetify-theme-stylesheet"${t}>${this.generatedStyles}</style>`}initTheme(e){"undefined"!==typeof document&&(this.unwatch&&(this.unwatch(),this.unwatch=null),e.$once("hook:created",()=>{var t=g.a.observable({themes:this.themes});this.unwatch=e.$watch(()=>t.themes,()=>this.applyTheme(),{deep:!0})}),this.applyTheme())}get currentTheme(){var e=this.dark?"dark":"light";return this.themes[e]}get generatedStyles(){var e,t=this.parsedTheme,n=this.options||{};return null!=n.themeCache&&(e=n.themeCache.get(t),null!=e)||(e=mt(t,n.customProperties),null!=n.minifyTheme&&(e=n.minifyTheme(e)),null!=n.themeCache&&n.themeCache.set(t,e)),e}get parsedTheme(){return dt(this.currentTheme||{},void 0,D(this.options,["variations"],!0))}get isVueMeta23(){return"function"===typeof this.vueMeta.addApp}}bt.property="theme";class wt{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.framework={isHydrating:!1},this.installed=[],this.preset={},this.userPreset={},this.userPreset=e,this.use(ue),this.use(ce),this.use(le),this.use(Oe),this.use(qe),this.use(Ge),this.use(bt)}init(e,t){this.installed.forEach(n=>{var r=this.framework[n];r.framework=this.framework,r.init(e,t)}),this.framework.rtl=Boolean(this.preset.rtl)}use(e){var t=e.property;this.installed.includes(t)||(this.framework[t]=new e(this.preset,this),this.installed.push(t))}}function Tt(e,t,n){if(!wt.config.silent){if(n&&(t={_isVue:!0,$parent:n,$options:t}),t){if(t.$_alreadyWarned=t.$_alreadyWarned||[],t.$_alreadyWarned.includes(e))return;t.$_alreadyWarned.push(e)}return"[Vuetify] "+e+(t?kt(t):"")}}function St(e,t,n){var r=Tt(e,t,n);null!=r&&console.warn(r)}function Ct(e,t,n){var r=Tt(e,t,n);null!=r&&console.error(r)}function Et(e,t,n,r){St(`[UPGRADE] '${e}' is deprecated, use '${t}' instead.`,n,r)}function At(e,t,n,r){Ct(`[BREAKING] '${e}' has been removed, use '${t}' instead. For more information, see the upgrade guide https://github.com/vuetifyjs/vuetify/releases/tag/v2.0.0#user-content-upgrade-guide`,n,r)}function xt(e,t,n){St(`[REMOVED] '${e}' has been removed. You can safely omit it.`,t,n)}wt.install=te,wt.installed=!1,wt.version="2.7.2",wt.config={silent:!1};var Rt=/(?:^|[-_])(\w)/g,Ot=e=>e.replace(Rt,e=>e.toUpperCase()).replace(/[-_]/g,"");function It(e,t){if(e.$root===e)return"<Root>";var n="function"===typeof e&&null!=e.cid?e.options:e._isVue?e.$options||e.constructor.options:e||{},r=n.name||n._componentTag,i=n.__file;if(!r&&i){var o=i.match(/([^/\\]+)\.vue$/);r=o&&o[1]}return(r?`<${Ot(r)}>`:"<Anonymous>")+(i&&!1!==t?" at "+i:"")}function kt(e){if(e._isVue&&e.$parent){var t=[],n=0;while(e){if(t.length>0){var r=t[t.length-1];if(r.constructor===e.constructor){n++,e=e.$parent;continue}n>0&&(t[t.length-1]=[r,n],n=0)}t.push(e),e=e.$parent}return"\n\nfound in\n\n"+t.map((e,t)=>`${0===t?"---\x3e ":" ".repeat(5+2*t)}${Array.isArray(e)?`${It(e[0])}... (${e[1]} recursive calls)`:It(e)}`).join("\n")}return`\n\n(found in ${It(e)})`}var Pt=E(w,C),Mt=Pt.extend({name:"activatable",props:{activator:{default:null,validator:e=>["string","object"].includes(typeof e)},disabled:Boolean,internalActivator:Boolean,openOnClick:{type:Boolean,default:!0},openOnHover:Boolean,openOnFocus:Boolean},data:()=>({activatorElement:null,activatorNode:[],events:["click","mouseenter","mouseleave","focus"],listeners:{}}),watch:{activator:"resetActivator",openOnFocus:"resetActivator",openOnHover:"resetActivator"},mounted(){var e=X(this,"activator",!0);e&&["v-slot","normal"].includes(e)&&Ct('The activator slot must be bound, try \'<template v-slot:activator="{ on }"><v-btn v-on="on">\'',this),this.addActivatorEvents()},beforeDestroy(){this.removeActivatorEvents()},methods:{addActivatorEvents(){if(this.activator&&!this.disabled&&this.getActivator()){this.listeners=this.genActivatorListeners();for(var e=Object.keys(this.listeners),t=0,n=e;t<n.length;t++){var r=n[t];this.getActivator().addEventListener(r,this.listeners[r])}}},genActivator(){var e=J(this,"activator",Object.assign(this.getValueProxy(),{on:this.genActivatorListeners(),attrs:this.genActivatorAttributes()}))||[];return this.activatorNode=e,e},genActivatorAttributes(){return{role:this.openOnClick&&!this.openOnHover?"button":void 0,"aria-haspopup":!0,"aria-expanded":String(this.isActive)}},genActivatorListeners(){if(this.disabled)return{};var e={};return this.openOnHover?(e.mouseenter=e=>{this.getActivator(e),this.runDelay("open")},e.mouseleave=e=>{this.getActivator(e),this.runDelay("close")}):this.openOnClick&&(e.click=e=>{var t=this.getActivator(e);t&&t.focus(),e.stopPropagation(),this.isActive=!this.isActive}),this.openOnFocus&&(e.focus=e=>{this.getActivator(e),e.stopPropagation(),this.isActive=!this.isActive}),e},getActivator(e){if(this.activatorElement)return this.activatorElement;var t=null;if(this.activator){var n=this.internalActivator?this.$el:document;t="string"===typeof this.activator?n.querySelector(this.activator):this.activator.$el?this.activator.$el:this.activator}else if(1===this.activatorNode.length||this.activatorNode.length&&!e){var r=this.activatorNode[0].componentInstance;t=r&&r.$options.mixins&&r.$options.mixins.some(e=>e.options&&["activatable","menuable"].includes(e.options.name))?r.getActivator():this.activatorNode[0].elm}else e&&(t=e.currentTarget||e.target);return this.activatorElement=(null===t||void 0===t?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null,this.activatorElement},getContentSlot(){return J(this,"default",this.getValueProxy(),!0)},getValueProxy(){var e=this;return{get value(){return e.isActive},set value(t){e.isActive=t}}},removeActivatorEvents(){if(this.activator&&this.activatorElement){for(var e=Object.keys(this.listeners),t=0,n=e;t<n.length;t++){var r=n[t];this.activatorElement.removeEventListener(r,this.listeners[r])}this.listeners={}}},resetActivator(){this.removeActivatorEvents(),this.activatorElement=null,this.getActivator(),this.addActivatorEvents()}}});function Nt(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];r.isActive&&r.isDependent?t.push(r):t.push(...Nt(r.$children))}return t}var Lt=E().extend({name:"dependent",data(){return{closeDependents:!0,isActive:!1,isDependent:!0}},watch:{isActive(e){if(!e)for(var t=this.getOpenDependents(),n=0;n<t.length;n++)t[n].isActive=!1}},methods:{getOpenDependents(){return this.closeDependents?Nt(this.$children):[]},getOpenDependentElements(){for(var e=[],t=this.getOpenDependents(),n=0;n<t.length;n++)e.push(...t[n].getClickableDependentElements());return e},getClickableDependentElements(){var e=[this.$el];return this.$refs.content&&e.push(this.$refs.content),this.overlay&&e.push(this.overlay.$el),e.push(...this.getOpenDependentElements()),e}}}),Dt=g.a.extend().extend({name:"bootable",props:{eager:Boolean},data:()=>({isBooted:!1}),computed:{hasContent(){return this.isBooted||this.eager||this.isActive}},watch:{isActive(){this.isBooted=!0}},created(){"lazy"in this.$attrs&&xt("lazy",this)},methods:{showLazyContent(e){return this.hasContent&&e?e():[this.$createElement()]}}});function Ut(e){var t=typeof e;return"boolean"===t||"string"===t||e.nodeType===Node.ELEMENT_NODE}function jt(e){e.forEach(e=>{e.elm&&e.elm.parentNode&&e.elm.parentNode.removeChild(e.elm)})}var Ft=E(Dt).extend({name:"detachable",props:{attach:{default:!1,validator:Ut},contentClass:{type:String,default:""}},data:()=>({activatorNode:null,hasDetached:!1}),watch:{attach(){this.hasDetached=!1,this.initDetach()},hasContent(){this.$nextTick(this.initDetach)}},beforeMount(){this.$nextTick(()=>{if(this.activatorNode){var e=Array.isArray(this.activatorNode)?this.activatorNode:[this.activatorNode];e.forEach(e=>{if(e.elm&&this.$el.parentNode){var t=this.$el===this.$el.parentNode.firstChild?this.$el:this.$el.nextSibling;this.$el.parentNode.insertBefore(e.elm,t)}})}})},mounted(){this.hasContent&&this.initDetach()},deactivated(){this.isActive=!1},beforeDestroy(){this.$refs.content&&this.$refs.content.parentNode&&this.$refs.content.parentNode.removeChild(this.$refs.content)},destroyed(){if(this.activatorNode){var e=Array.isArray(this.activatorNode)?this.activatorNode:[this.activatorNode];if(this.$el.isConnected){var t=new MutationObserver(n=>{n.some(e=>Array.from(e.removedNodes).includes(this.$el))&&(t.disconnect(),jt(e))});t.observe(this.$el.parentNode,{subtree:!1,childList:!0})}else jt(e)}},methods:{getScopeIdAttrs(){var e=U(this.$vnode,"context.$options._scopeId");return e&&{[e]:""}},initDetach(){var e;this._isDestroyed||!this.$refs.content||this.hasDetached||""===this.attach||!0===this.attach||"attach"===this.attach||(e=!1===this.attach?document.querySelector("[data-app]"):"string"===typeof this.attach?document.querySelector(this.attach):this.attach,e?(e.appendChild(this.$refs.content),this.hasDetached=!0):St("Unable to locate target "+(this.attach||"[data-app]"),this))}}}),Ht=(n("3c93"),g.a.extend({name:"colorable",props:{color:String},methods:{setBackgroundColor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"===typeof t.style?(Ct("style must be an object",this),t):"string"===typeof t.class?(Ct("class must be an object",this),t):(et(e)?t.style=v(v({},t.style),{},{"background-color":""+e,"border-color":""+e}):e&&(t.class=v(v({},t.class),{},{[e]:!0})),t)},setTextColor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"===typeof t.style)return Ct("style must be an object",this),t;if("string"===typeof t.class)return Ct("class must be an object",this),t;if(et(e))t.style=v(v({},t.style),{},{color:""+e,"caret-color":""+e});else if(e){var n=e.toString().trim().split(" ",2),r=k(n,2),i=r[0],o=r[1];t.class=v(v({},t.class),{},{[i+"--text"]:!0}),o&&(t.class["text--"+o]=!0)}return t}}})),Bt=E(Ht,y,C).extend({name:"v-overlay",props:{absolute:Boolean,color:{type:String,default:"#212121"},dark:{type:Boolean,default:!0},opacity:{type:[Number,String],default:.46},value:{default:!0},zIndex:{type:[Number,String],default:5}},computed:{__scrim(){var e=this.setBackgroundColor(this.color,{staticClass:"v-overlay__scrim",style:{opacity:this.computedOpacity}});return this.$createElement("div",e)},classes(){return v({"v-overlay--absolute":this.absolute,"v-overlay--active":this.isActive},this.themeClasses)},computedOpacity(){return Number(this.isActive?this.opacity:0)},styles(){return{zIndex:this.zIndex}}},methods:{genContent(){return this.$createElement("div",{staticClass:"v-overlay__content"},J(this))}},render(e){var t=[this.__scrim];return this.isActive&&t.push(this.genContent()),e("div",{staticClass:"v-overlay",on:this.$listeners,class:this.classes,style:this.styles},t)}}),$t=Bt,qt=g.a.extend().extend({name:"overlayable",props:{hideOverlay:Boolean,overlayColor:String,overlayOpacity:[Number,String]},data(){return{animationFrame:0,overlay:null}},watch:{hideOverlay(e){this.isActive&&(e?this.removeOverlay():this.genOverlay())}},beforeDestroy(){this.removeOverlay()},methods:{createOverlay(){var e=new $t({propsData:{absolute:this.absolute,value:!1,color:this.overlayColor,opacity:this.overlayOpacity}});e.$mount();var t=this.absolute?this.$el.parentNode:document.querySelector("[data-app]");t&&t.insertBefore(e.$el,t.firstChild),this.overlay=e},genOverlay(){if(this.hideScroll(),!this.hideOverlay)return this.overlay||this.createOverlay(),this.animationFrame=requestAnimationFrame(()=>{this.overlay&&(void 0!==this.activeZIndex?this.overlay.zIndex=String(this.activeZIndex-1):this.$el&&(this.overlay.zIndex=j(this.$el)),this.overlay.value=!0)}),!0},removeOverlay(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.overlay&&(P(this.overlay.$el,"transitionend",()=>{this.overlay&&this.overlay.$el&&this.overlay.$el.parentNode&&!this.overlay.value&&!this.isActive&&(this.overlay.$el.parentNode.removeChild(this.overlay.$el),this.overlay.$destroy(),this.overlay=null)}),cancelAnimationFrame(this.animationFrame),this.overlay.value=!1),e&&this.showScroll()},scrollListener(e){if("key"in e){if(["INPUT","TEXTAREA","SELECT"].includes(e.target.tagName)||e.target.isContentEditable)return;var t=[q.up,q.pageup],n=[q.down,q.pagedown];if(t.includes(e.keyCode))e.deltaY=-1;else{if(!n.includes(e.keyCode))return;e.deltaY=1}}(e.target===this.overlay||"keydown"!==e.type&&e.target===document.body||this.checkPath(e))&&e.preventDefault()},hasScrollbar(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e);return(["auto","scroll"].includes(t.overflowY)||"SELECT"===e.tagName)&&e.scrollHeight>e.clientHeight||["auto","scroll"].includes(t.overflowX)&&e.scrollWidth>e.clientWidth},shouldScroll(e,t){if(e.hasAttribute("data-app"))return!1;var n,r,i=t.shiftKey||t.deltaX?"x":"y",o="y"===i?t.deltaY:t.deltaX||t.deltaY;"y"===i?(n=0===e.scrollTop,r=e.scrollTop+e.clientHeight===e.scrollHeight):(n=0===e.scrollLeft,r=e.scrollLeft+e.clientWidth===e.scrollWidth);var s=o<0,a=o>0;return!(n||!s)||(!(r||!a)||!(!n&&!r||!e.parentNode)&&this.shouldScroll(e.parentNode,t))},isInside(e,t){return e===t||null!==e&&e!==document.body&&this.isInside(e.parentNode,t)},checkPath(e){var t=ee(e);if("keydown"===e.type&&t[0]===document.body){var n=this.$refs.dialog,r=window.getSelection().anchorNode;return!(n&&this.hasScrollbar(n)&&this.isInside(r,n))||!this.shouldScroll(n,e)}for(var i=0;i<t.length;i++){var o=t[i];if(o===document)return!0;if(o===document.documentElement)return!0;if(o===this.$refs.content)return!0;if(this.hasScrollbar(o))return!this.shouldScroll(o,e)}return!0},hideScroll(){this.$vuetify.breakpoint.smAndDown?document.documentElement.classList.add("overflow-y-hidden"):(L(window,"wheel",this.scrollListener,{passive:!1}),window.addEventListener("keydown",this.scrollListener))},showScroll(){document.documentElement.classList.remove("overflow-y-hidden"),window.removeEventListener("wheel",this.scrollListener),window.removeEventListener("keydown",this.scrollListener)}}}),Vt=g.a.extend({name:"returnable",props:{returnValue:null},data:()=>({isActive:!1,originalValue:null}),watch:{isActive(e){e?this.originalValue=this.returnValue:this.$emit("update:return-value",this.originalValue)}},methods:{save(e){this.originalValue=e,setTimeout(()=>{this.isActive=!1})}}}),zt=g.a.extend().extend({name:"stackable",data(){return{stackElement:null,stackExclude:null,stackMinZIndex:0,isActive:!1}},computed:{activeZIndex(){if("undefined"===typeof window)return 0;var e=this.stackElement||this.$refs.content,t=this.isActive?this.getMaxZIndex(this.stackExclude||[e])+2:j(e);return null==t?t:parseInt(t)}},methods:{getMaxZIndex(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=this.$el,n=[this.stackMinZIndex,j(t)],r=[...document.getElementsByClassName("v-menu__content--active"),...document.getElementsByClassName("v-dialog__content--active")],i=0;i<r.length;i++)e.includes(r[i])||n.push(j(r[i]));return Math.max(...n)}}});function Wt(e){if("function"!==typeof e.getRootNode){while(e.parentNode)e=e.parentNode;return e!==document?null:document}var t=e.getRootNode();return t!==document&&t.getRootNode({composed:!0})!==document?null:t}function Gt(){return!0}function Yt(e,t,n){if(!e||!1===Kt(e,n))return!1;var r=Wt(t);if("undefined"!==typeof ShadowRoot&&r instanceof ShadowRoot&&r.host===e.target)return!1;var i=("object"===typeof n.value&&n.value.include||(()=>[]))();return i.push(t),!i.some(t=>t.contains(e.target))}function Kt(e,t){var n="object"===typeof t.value&&t.value.closeConditional||Gt;return n(e)}function Xt(e,t,n){var r="function"===typeof n.value?n.value:n.value.handler;t._clickOutside.lastMousedownWasOutside&&Yt(e,t,n)&&setTimeout(()=>{Kt(e,n)&&r&&r(e)},0)}function Jt(e,t){var n=Wt(e);t(document),"undefined"!==typeof ShadowRoot&&n instanceof ShadowRoot&&t(n)}var Qt={inserted(e,t,n){var r=n=>Xt(n,e,t),i=n=>{e._clickOutside.lastMousedownWasOutside=Yt(n,e,t)};Jt(e,e=>{e.addEventListener("click",r,!0),e.addEventListener("mousedown",i,!0)}),e._clickOutside||(e._clickOutside={lastMousedownWasOutside:!0}),e._clickOutside[n.context._uid]={onClick:r,onMousedown:i}},unbind(e,t,n){e._clickOutside&&(Jt(e,t=>{var r;if(t&&(null===(r=e._clickOutside)||void 0===r?void 0:r[n.context._uid])){var i=e._clickOutside[n.context._uid],o=i.onClick,s=i.onMousedown;t.removeEventListener("click",o,!0),t.removeEventListener("mousedown",s,!0)}}),delete e._clickOutside[n.context._uid])}},Zt=Qt,en=E(Lt,Ft,qt,Vt,zt,Mt),tn=en.extend({name:"v-dialog",directives:{ClickOutside:Zt},props:{dark:Boolean,disabled:Boolean,fullscreen:Boolean,light:Boolean,maxWidth:[String,Number],noClickAnimation:Boolean,origin:{type:String,default:"center center"},persistent:Boolean,retainFocus:{type:Boolean,default:!0},scrollable:Boolean,transition:{type:[String,Boolean],default:"dialog-transition"},width:[String,Number]},data(){return{activatedBy:null,animate:!1,animateTimeout:-1,stackMinZIndex:200,previousActiveElement:null}},computed:{classes(){return{[("v-dialog "+this.contentClass).trim()]:!0,"v-dialog--active":this.isActive,"v-dialog--persistent":this.persistent,"v-dialog--fullscreen":this.fullscreen,"v-dialog--scrollable":this.scrollable,"v-dialog--animated":this.animate}},contentClasses(){return{"v-dialog__content":!0,"v-dialog__content--active":this.isActive}},hasActivator(){return Boolean(!!this.$slots.activator||!!this.$scopedSlots.activator)}},watch:{isActive(e){var t;e?(this.show(),this.hideScroll()):(this.removeOverlay(),this.unbind(),null===(t=this.previousActiveElement)||void 0===t||t.focus())},fullscreen(e){this.isActive&&(e?(this.hideScroll(),this.removeOverlay(!1)):(this.showScroll(),this.genOverlay()))}},created(){this.$attrs.hasOwnProperty("full-width")&&xt("full-width",this)},beforeMount(){this.$nextTick(()=>{this.isBooted=this.isActive,this.isActive&&this.show()})},beforeDestroy(){"undefined"!==typeof window&&this.unbind()},methods:{animateClick(){this.animate=!1,this.$nextTick(()=>{this.animate=!0,window.clearTimeout(this.animateTimeout),this.animateTimeout=window.setTimeout(()=>this.animate=!1,150)})},closeConditional(e){var t=e.target;return!(this._isDestroyed||!this.isActive||this.$refs.content.contains(t)||this.overlay&&t&&!this.overlay.$el.contains(t))&&this.activeZIndex>=this.getMaxZIndex()},hideScroll(){this.fullscreen?document.documentElement.classList.add("overflow-y-hidden"):qt.options.methods.hideScroll.call(this)},show(){!this.fullscreen&&!this.hideOverlay&&this.genOverlay(),this.$nextTick(()=>{this.$nextTick(()=>{var e,t;(null===(e=this.$refs.dialog)||void 0===e?void 0:e.contains(document.activeElement))||(this.previousActiveElement=document.activeElement,null===(t=this.$refs.dialog)||void 0===t||t.focus()),this.bind()})})},bind(){window.addEventListener("focusin",this.onFocusin)},unbind(){window.removeEventListener("focusin",this.onFocusin)},onClickOutside(e){this.$emit("click:outside",e),this.persistent?this.noClickAnimation||this.animateClick():this.isActive=!1},onKeydown(e){if(e.keyCode===q.esc&&!this.getOpenDependents().length)if(this.persistent)this.noClickAnimation||this.animateClick();else{this.isActive=!1;var t=this.getActivator();this.$nextTick(()=>t&&t.focus())}this.$emit("keydown",e)},onFocusin(e){if(e&&this.retainFocus){var t=e.target;if(t&&this.$refs.dialog&&![document,this.$refs.dialog].includes(t)&&!this.$refs.dialog.contains(t)&&this.activeZIndex>=this.getMaxZIndex()&&!this.getOpenDependentElements().some(e=>e.contains(t))){var n=this.$refs.dialog.querySelectorAll('button, [href], input:not([type="hidden"]), select, textarea, [tabindex]:not([tabindex="-1"])'),r=[...n].find(e=>!e.hasAttribute("disabled")&&!e.matches('[tabindex="-1"]'));r&&r.focus()}}},genContent(){return this.showLazyContent(()=>[this.$createElement(b,{props:{root:!0,light:this.light,dark:this.dark}},[this.$createElement("div",{class:this.contentClasses,attrs:v({role:"dialog","aria-modal":this.hideOverlay?void 0:"true"},this.getScopeIdAttrs()),on:{keydown:this.onKeydown},style:{zIndex:this.activeZIndex},ref:"content"},[this.genTransition()])])])},genTransition(){var e=this.genInnerContent();return this.transition?this.$createElement("transition",{props:{name:this.transition,origin:this.origin,appear:!0}},[e]):e},genInnerContent(){var e={class:this.classes,attrs:{tabindex:this.isActive?0:void 0},ref:"dialog",directives:[{name:"click-outside",value:{handler:this.onClickOutside,closeConditional:this.closeConditional,include:this.getOpenDependentElements}},{name:"show",value:this.isActive}],style:{transformOrigin:this.origin}};return this.fullscreen||(e.style=v(v({},e.style),{},{maxWidth:H(this.maxWidth),width:H(this.width)})),this.$createElement("div",e,this.getContentSlot())}},render(e){return e("div",{staticClass:"v-dialog__container",class:{"v-dialog__container--attached":""===this.attach||!0===this.attach||"attach"===this.attach}},[this.genActivator(),this.genContent()])}}),nn=tn.extend({name:"v-bottom-sheet",props:{inset:Boolean,maxWidth:[String,Number],transition:{type:String,default:"bottom-sheet-transition"}},computed:{classes(){return v(v({},tn.options.computed.classes.call(this)),{},{"v-bottom-sheet":!0,"v-bottom-sheet--inset":this.inset})}}});n("e9c4"),n("86cc"),n("25a8");function rn(e){return function(t,n){for(var r in n)Object.prototype.hasOwnProperty.call(t,r)||this.$delete(this.$data[e],r);for(var i in t)this.$set(this.$data[e],i,t[i])}}var on=g.a.extend({data:()=>({attrs$:{},listeners$:{}}),created(){this.$watch("$attrs",rn("attrs$"),{immediate:!0}),this.$watch("$listeners",rn("listeners$"),{immediate:!0})}}),sn=g.a.extend({name:"elevatable",props:{elevation:[Number,String]},computed:{computedElevation(){return this.elevation},elevationClasses(){var e=this.computedElevation;return null==e||isNaN(parseInt(e))?{}:{["elevation-"+this.elevation]:!0}}}}),an=g.a.extend({name:"measurable",props:{height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},computed:{measurableStyles(){var e={},t=H(this.height),n=H(this.minHeight),r=H(this.minWidth),i=H(this.maxHeight),o=H(this.maxWidth),s=H(this.width);return t&&(e.height=t),n&&(e.minHeight=n),r&&(e.minWidth=r),i&&(e.maxHeight=i),o&&(e.maxWidth=o),s&&(e.width=s),e}}});function un(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=O(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n["return"]||n["return"]()}finally{if(a)throw o}}}}var cn=g.a.extend({name:"roundable",props:{rounded:[Boolean,String],tile:Boolean},computed:{roundedClasses(){var e=[],t="string"===typeof this.rounded?String(this.rounded):!0===this.rounded;if(this.tile)e.push("rounded-0");else if("string"===typeof t){var n,r=t.split(" "),i=un(r);try{for(i.s();!(n=i.n()).done;){var o=n.value;e.push("rounded-"+o)}}catch(s){i.e(s)}finally{i.f()}}else t&&e.push("rounded");return e.length>0?{[e.join(" ")]:!0}:{}}}}),ln=E(on,Ht,sn,an,cn,y).extend({name:"v-sheet",props:{outlined:Boolean,shaped:Boolean,tag:{type:String,default:"div"}},computed:{classes(){return v(v(v({"v-sheet":!0,"v-sheet--outlined":this.outlined,"v-sheet--shaped":this.shaped},this.themeClasses),this.elevationClasses),this.roundedClasses)},styles(){return this.measurableStyles}},render(e){var t={class:this.classes,style:this.styles,on:this.listeners$};return e(this.tag,this.setBackgroundColor(this.color,t),this.$slots.default)}}),dn=ln;n("acd8"),n("8d4f");function hn(e,t,n){if("undefined"!==typeof window&&"IntersectionObserver"in window){var r=t.modifiers||{},i=t.value,o="object"===typeof i?i:{handler:i,options:{}},s=o.handler,a=o.options,u=new IntersectionObserver((function(){var i,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=arguments.length>1?arguments[1]:void 0,u=null===(i=e._observe)||void 0===i?void 0:i[n.context._uid];if(u){var c=o.some(e=>e.isIntersecting);!s||r.quiet&&!u.init||r.once&&!c&&!u.init||s(o,a,c),c&&r.once?fn(e,t,n):u.init=!0}}),a);e._observe=Object(e._observe),e._observe[n.context._uid]={init:!1,observer:u},u.observe(e)}}function fn(e,t,n){var r,i=null===(r=e._observe)||void 0===r?void 0:r[n.context._uid];i&&(i.observer.unobserve(e),delete e._observe[n.context._uid])}var pn={inserted:hn,unbind:fn},vn=pn,mn=Ht.extend({name:"v-progress-circular",directives:{intersect:vn},props:{button:Boolean,indeterminate:Boolean,rotate:{type:[Number,String],default:0},size:{type:[Number,String],default:32},width:{type:[Number,String],default:4},value:{type:[Number,String],default:0}},data:()=>({radius:20,isVisible:!0}),computed:{calculatedSize(){return Number(this.size)+(this.button?8:0)},circumference(){return 2*Math.PI*this.radius},classes(){return{"v-progress-circular--visible":this.isVisible,"v-progress-circular--indeterminate":this.indeterminate,"v-progress-circular--button":this.button}},normalizedValue(){return this.value<0?0:this.value>100?100:parseFloat(this.value)},strokeDashArray(){return Math.round(1e3*this.circumference)/1e3},strokeDashOffset(){return(100-this.normalizedValue)/100*this.circumference+"px"},strokeWidth(){return Number(this.width)/+this.size*this.viewBoxSize*2},styles(){return{height:H(this.calculatedSize),width:H(this.calculatedSize)}},svgStyles(){return{transform:`rotate(${Number(this.rotate)}deg)`}},viewBoxSize(){return this.radius/(1-Number(this.width)/+this.size)}},methods:{genCircle(e,t){return this.$createElement("circle",{class:"v-progress-circular__"+e,attrs:{fill:"transparent",cx:2*this.viewBoxSize,cy:2*this.viewBoxSize,r:this.radius,"stroke-width":this.strokeWidth,"stroke-dasharray":this.strokeDashArray,"stroke-dashoffset":t}})},genSvg(){var e=[this.indeterminate||this.genCircle("underlay",0),this.genCircle("overlay",this.strokeDashOffset)];return this.$createElement("svg",{style:this.svgStyles,attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:`${this.viewBoxSize} ${this.viewBoxSize} ${2*this.viewBoxSize} ${2*this.viewBoxSize}`}},e)},genInfo(){return this.$createElement("div",{staticClass:"v-progress-circular__info"},J(this))},onObserve(e,t,n){this.isVisible=n}},render(e){return e("div",this.setTextColor(this.color,{staticClass:"v-progress-circular",attrs:{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":this.indeterminate?void 0:this.normalizedValue},class:this.classes,directives:[{name:"intersect",value:this.onObserve}],style:this.styles,on:this.$listeners}),[this.genSvg(),this.genInfo()])}}),gn=mn;function _n(e,t){return()=>St(`The ${e} component must be used inside a ${t}`)}function yn(e,t,n){var r=t&&n?{register:_n(t,n),unregister:_n(t,n)}:null;return g.a.extend({name:"registrable-inject",inject:{[e]:{default:r}}})}function bn(e,t,n){return yn(e,t,n).extend({name:"groupable",props:{activeClass:{type:String,default(){if(this[e])return this[e].activeClass}},disabled:Boolean},data(){return{isActive:!1}},computed:{groupClasses(){return this.activeClass?{[this.activeClass]:this.isActive}:{}}},created(){this[e]&&this[e].register(this)},beforeDestroy(){this[e]&&this[e].unregister(this)},methods:{toggle(e){this.disabled&&e?e.preventDefault():this.$emit("change")}}})}bn("itemGroup");var wn={absolute:Boolean,bottom:Boolean,fixed:Boolean,left:Boolean,right:Boolean,top:Boolean};function Tn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return g.a.extend({name:"positionable",props:e.length?F(wn,e):wn})}var Sn=Tn(),Cn=(n("7435"),80);function En(e,t){e.style.transform=t,e.style.webkitTransform=t}function An(e){return"TouchEvent"===e.constructor.name}function xn(e){return"KeyboardEvent"===e.constructor.name}var Rn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=0,i=0;if(!xn(e)){var o=t.getBoundingClientRect(),s=An(e)?e.touches[e.touches.length-1]:e;r=s.clientX-o.left,i=s.clientY-o.top}var a=0,u=.3;t._ripple&&t._ripple.circle?(u=.15,a=t.clientWidth/2,a=n.center?a:a+Math.sqrt(Math.pow(r-a,2)+Math.pow(i-a,2))/4):a=Math.sqrt(Math.pow(t.clientWidth,2)+Math.pow(t.clientHeight,2))/2;var c=(t.clientWidth-2*a)/2+"px",l=(t.clientHeight-2*a)/2+"px",d=n.center?c:r-a+"px",h=n.center?l:i-a+"px";return{radius:a,scale:u,x:d,y:h,centerX:c,centerY:l}},On={show(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t._ripple&&t._ripple.enabled){var r=document.createElement("span"),i=document.createElement("span");r.appendChild(i),r.className="v-ripple__container",n.class&&(r.className+=" "+n.class);var o=Rn(e,t,n),s=o.radius,a=o.scale,u=o.x,c=o.y,l=o.centerX,d=o.centerY,h=2*s+"px";i.className="v-ripple__animation",i.style.width=h,i.style.height=h,t.appendChild(r);var f=window.getComputedStyle(t);f&&"static"===f.position&&(t.style.position="relative",t.dataset.previousPosition="static"),i.classList.add("v-ripple__animation--enter"),i.classList.add("v-ripple__animation--visible"),En(i,`translate(${u}, ${c}) scale3d(${a},${a},${a})`),i.dataset.activated=String(performance.now()),setTimeout(()=>{i.classList.remove("v-ripple__animation--enter"),i.classList.add("v-ripple__animation--in"),En(i,`translate(${l}, ${d}) scale3d(1,1,1)`)},0)}},hide(e){if(e&&e._ripple&&e._ripple.enabled){var t=e.getElementsByClassName("v-ripple__animation");if(0!==t.length){var n=t[t.length-1];if(!n.dataset.isHiding){n.dataset.isHiding="true";var r=performance.now()-Number(n.dataset.activated),i=Math.max(250-r,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{var t,r=e.getElementsByClassName("v-ripple__animation");1===r.length&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),(null===(t=n.parentNode)||void 0===t?void 0:t.parentNode)===e&&e.removeChild(n.parentNode)},300)},i)}}}}};function In(e){return"undefined"===typeof e||!!e}function kn(e){var t={},n=e.currentTarget;if(n&&n._ripple&&!n._ripple.touched&&!e.rippleStop){if(e.rippleStop=!0,An(e))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(t.center=n._ripple.centered||xn(e),n._ripple.class&&(t.class=n._ripple.class),An(e)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{On.show(e,n,t)},n._ripple.showTimer=window.setTimeout(()=>{n&&n._ripple&&n._ripple.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},Cn)}else On.show(e,n,t)}}function Pn(e){var t=e.currentTarget;if(t&&t._ripple){if(window.clearTimeout(t._ripple.showTimer),"touchend"===e.type&&t._ripple.showTimerCommit)return t._ripple.showTimerCommit(),t._ripple.showTimerCommit=null,void(t._ripple.showTimer=setTimeout(()=>{Pn(e)}));window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),On.hide(t)}}function Mn(e){var t=e.currentTarget;t&&t._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}var Nn=!1;function Ln(e){Nn||e.keyCode!==q.enter&&e.keyCode!==q.space||(Nn=!0,kn(e))}function Dn(e){Nn=!1,Pn(e)}function Un(e){!0===Nn&&(Nn=!1,Pn(e))}function jn(e,t,n){var r=In(t.value);r||On.hide(e),e._ripple=e._ripple||{},e._ripple.enabled=r;var i=t.value||{};i.center&&(e._ripple.centered=!0),i.class&&(e._ripple.class=t.value.class),i.circle&&(e._ripple.circle=i.circle),r&&!n?(e.addEventListener("touchstart",kn,{passive:!0}),e.addEventListener("touchend",Pn,{passive:!0}),e.addEventListener("touchmove",Mn,{passive:!0}),e.addEventListener("touchcancel",Pn),e.addEventListener("mousedown",kn),e.addEventListener("mouseup",Pn),e.addEventListener("mouseleave",Pn),e.addEventListener("keydown",Ln),e.addEventListener("keyup",Dn),e.addEventListener("blur",Un),e.addEventListener("dragstart",Pn,{passive:!0})):!r&&n&&Fn(e)}function Fn(e){e.removeEventListener("mousedown",kn),e.removeEventListener("touchstart",kn),e.removeEventListener("touchend",Pn),e.removeEventListener("touchmove",Mn),e.removeEventListener("touchcancel",Pn),e.removeEventListener("mouseup",Pn),e.removeEventListener("mouseleave",Pn),e.removeEventListener("keydown",Ln),e.removeEventListener("keyup",Dn),e.removeEventListener("dragstart",Pn),e.removeEventListener("blur",Un)}function Hn(e,t,n){jn(e,t,!1)}function Bn(e){delete e._ripple,Fn(e)}function $n(e,t){if(t.value!==t.oldValue){var n=In(t.oldValue);jn(e,t,n)}}var qn={bind:Hn,unbind:Bn,update:$n},Vn=qn,zn=g.a.extend({name:"routable",directives:{Ripple:Vn},props:{activeClass:String,append:Boolean,disabled:Boolean,exact:{type:Boolean,default:void 0},exactPath:Boolean,exactActiveClass:String,link:Boolean,href:[String,Object],to:[String,Object],nuxt:Boolean,replace:Boolean,ripple:{type:[Boolean,Object],default:null},tag:String,target:String},data:()=>({isActive:!1,proxyClass:""}),computed:{classes(){var e={};return this.to||(this.activeClass&&(e[this.activeClass]=this.isActive),this.proxyClass&&(e[this.proxyClass]=this.isActive)),e},computedRipple(){var e;return null!==(e=this.ripple)&&void 0!==e?e:!this.disabled&&this.isClickable},isClickable(){return!this.disabled&&Boolean(this.isLink||this.$listeners.click||this.$listeners["!click"]||this.$attrs.tabindex)},isLink(){return this.to||this.href||this.link},styles:()=>({})},watch:{$route:"onRouteChange"},mounted(){this.onRouteChange()},methods:{generateRouteLink(){var e,t=this.exact,n={attrs:{tabindex:"tabindex"in this.$attrs?this.$attrs.tabindex:void 0},class:this.classes,style:this.styles,props:{},directives:[{name:"ripple",value:this.computedRipple}],[this.to?"nativeOn":"on"]:v(v({},this.$listeners),"click"in this?{click:this.click}:void 0),ref:"link"};if("undefined"===typeof this.exact&&(t="/"===this.to||this.to===Object(this.to)&&"/"===this.to.path),this.to){var r=this.activeClass,i=this.exactActiveClass||r;this.proxyClass&&(r=`${r} ${this.proxyClass}`.trim(),i=`${i} ${this.proxyClass}`.trim()),e=this.nuxt?"nuxt-link":"router-link",Object.assign(n.props,{to:this.to,exact:t,exactPath:this.exactPath,activeClass:r,exactActiveClass:i,append:this.append,replace:this.replace})}else e=(this.href?"a":this.tag)||"div","a"===e&&this.href&&(n.attrs.href=this.href);return this.target&&(n.attrs.target=this.target),{tag:e,data:n}},onRouteChange(){if(this.to&&this.$refs.link&&this.$route){var e=`${this.activeClass||""} ${this.proxyClass||""}`.trim(),t=`${this.exactActiveClass||""} ${this.proxyClass||""}`.trim()||e,n="_vnode.data.class."+(this.exact?t:e);this.$nextTick(()=>{!U(this.$refs.link,n)===this.isActive&&this.toggle()})}},toggle(){this.isActive=!this.isActive}}}),Wn=g.a.extend({name:"sizeable",props:{large:Boolean,small:Boolean,xLarge:Boolean,xSmall:Boolean},computed:{medium(){return Boolean(!this.xSmall&&!this.small&&!this.large&&!this.xLarge)},sizeableClasses(){return{"v-size--x-small":this.xSmall,"v-size--small":this.small,"v-size--default":this.medium,"v-size--large":this.large,"v-size--x-large":this.xLarge}}}}),Gn=E(dn,zn,Sn,Wn,bn("btnToggle"),T("inputValue")),Yn=Gn.extend().extend({name:"v-btn",props:{activeClass:{type:String,default(){return this.btnToggle?this.btnToggle.activeClass:""}},block:Boolean,depressed:Boolean,fab:Boolean,icon:Boolean,loading:Boolean,outlined:Boolean,plain:Boolean,retainFocusOnClick:Boolean,rounded:Boolean,tag:{type:String,default:"button"},text:Boolean,tile:Boolean,type:{type:String,default:"button"},value:null},data:()=>({proxyClass:"v-btn--active"}),computed:{classes(){return v(v(v(v(v({"v-btn":!0},zn.options.computed.classes.call(this)),{},{"v-btn--absolute":this.absolute,"v-btn--block":this.block,"v-btn--bottom":this.bottom,"v-btn--disabled":this.disabled,"v-btn--is-elevated":this.isElevated,"v-btn--fab":this.fab,"v-btn--fixed":this.fixed,"v-btn--has-bg":this.hasBg,"v-btn--icon":this.icon,"v-btn--left":this.left,"v-btn--loading":this.loading,"v-btn--outlined":this.outlined,"v-btn--plain":this.plain,"v-btn--right":this.right,"v-btn--round":this.isRound,"v-btn--rounded":this.rounded,"v-btn--router":this.to,"v-btn--text":this.text,"v-btn--tile":this.tile,"v-btn--top":this.top},this.themeClasses),this.groupClasses),this.elevationClasses),this.sizeableClasses)},computedElevation(){if(!this.disabled)return sn.options.computed.computedElevation.call(this)},computedRipple(){var e,t=!this.icon&&!this.fab||{circle:!0};return!this.disabled&&(null!==(e=this.ripple)&&void 0!==e?e:t)},hasBg(){return!this.text&&!this.plain&&!this.outlined&&!this.icon},isElevated(){return Boolean(!this.icon&&!this.text&&!this.outlined&&!this.depressed&&!this.disabled&&!this.plain&&(null==this.elevation||Number(this.elevation)>0))},isRound(){return Boolean(this.icon||this.fab)},styles(){return v({},this.measurableStyles)}},created(){var e=[["flat","text"],["outline","outlined"],["round","rounded"]];e.forEach(e=>{var t=k(e,2),n=t[0],r=t[1];this.$attrs.hasOwnProperty(n)&&At(n,r,this)})},methods:{click(e){!this.retainFocusOnClick&&!this.fab&&e.detail&&this.$el.blur(),this.$emit("click",e),this.btnToggle&&this.toggle()},genContent(){return this.$createElement("span",{staticClass:"v-btn__content"},J(this))},genLoader(){return this.$createElement("span",{class:"v-btn__loader"},J(this,"loader")||[this.$createElement(gn,{props:{indeterminate:!0,size:23,width:2}})])}},render(e){var t=[this.genContent(),this.loading&&this.genLoader()],n=this.generateRouteLink(),r=n.tag,i=n.data,o=this.hasBg?this.setBackgroundColor:this.setTextColor;return"button"===r&&(i.attrs.type=this.type,i.attrs.disabled=this.disabled),i.attrs.value=["string","number"].includes(typeof this.value)?this.value:JSON.stringify(this.value),e(r,this.disabled?i:o(this.color,i),t)}}),Kn=(n("4ec9"),n("4b85"),{styleList:/;(?![^(]*\))/g,styleProp:/:(.*)/});function Xn(e){var t,n={},r=un(e.split(Kn.styleList));try{for(r.s();!(t=r.n()).done;){var i=t.value,o=i.split(Kn.styleProp),s=k(o,2),a=s[0],u=s[1];a=a.trim(),a&&("string"===typeof u&&(u=u.trim()),n[G(a)]=u)}}catch(c){r.e(c)}finally{r.f()}return n}function Jn(){var e,t={},n=arguments.length;while(n--)for(var r=0,i=Object.keys(arguments[n]);r<i.length;r++)switch(e=i[r],e){case"class":case"directives":arguments[n][e]&&(t[e]=Zn(t[e],arguments[n][e]));break;case"style":arguments[n][e]&&(t[e]=Qn(t[e],arguments[n][e]));break;case"staticClass":if(!arguments[n][e])break;void 0===t[e]&&(t[e]=""),t[e]&&(t[e]+=" "),t[e]+=arguments[n][e].trim();break;case"on":case"nativeOn":arguments[n][e]&&(t[e]=er(t[e],arguments[n][e]));break;case"attrs":case"props":case"domProps":case"scopedSlots":case"staticStyle":case"hook":case"transition":if(!arguments[n][e])break;t[e]||(t[e]={}),t[e]=v(v({},arguments[n][e]),t[e]);break;default:t[e]||(t[e]=arguments[n][e])}return t}function Qn(e,t){return e?t?(e=K("string"===typeof e?Xn(e):e),e.concat("string"===typeof t?Xn(t):t)):e:t}function Zn(e,t){return t?e&&e?K(e).concat(t):t:e}function er(){if(!(arguments.length<=0?void 0:arguments[0]))return arguments.length<=1?void 0:arguments[1];if(!(arguments.length<=1?void 0:arguments[1]))return arguments.length<=0?void 0:arguments[0];for(var e={},t=2;t--;){var n=t<0||arguments.length<=t?void 0:arguments[t];for(var r in n)n[r]&&(e[r]?e[r]=[].concat(n[r],e[r]):e[r]=n[r])}return e}var tr=["sm","md","lg","xl"],nr=(()=>tr.reduce((e,t)=>(e[t]={type:[Boolean,String,Number],default:!1},e),{}))(),rr=(()=>tr.reduce((e,t)=>(e["offset"+Y(t)]={type:[String,Number],default:null},e),{}))(),ir=(()=>tr.reduce((e,t)=>(e["order"+Y(t)]={type:[String,Number],default:null},e),{}))(),or={col:Object.keys(nr),offset:Object.keys(rr),order:Object.keys(ir)};function sr(e,t,n){var r=e;if(null!=n&&!1!==n){if(t){var i=t.replace(e,"");r+="-"+i}return"col"!==e||""!==n&&!0!==n?(r+="-"+n,r.toLowerCase()):r.toLowerCase()}}var ar=new Map,ur=g.a.extend({name:"v-col",functional:!0,props:v(v(v(v({cols:{type:[Boolean,String,Number],default:!1}},nr),{},{offset:{type:[String,Number],default:null}},rr),{},{order:{type:[String,Number],default:null}},ir),{},{alignSelf:{type:String,default:null,validator:e=>["auto","start","end","center","baseline","stretch"].includes(e)},tag:{type:String,default:"div"}}),render(e,t){var n=t.props,r=t.data,i=t.children,o=(t.parent,"");for(var s in n)o+=String(n[s]);var a=ar.get(o);if(!a){var u;for(u in a=[],or)or[u].forEach(e=>{var t=n[e],r=sr(u,e,t);r&&a.push(r)});var c=a.some(e=>e.startsWith("col-"));a.push({col:!c||!n.cols,["col-"+n.cols]:n.cols,["offset-"+n.offset]:n.offset,["order-"+n.order]:n.order,["align-self-"+n.alignSelf]:n.alignSelf}),ar.set(o,a)}return e(n.tag,Jn(r,{class:a}),i)}});function cr(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Array().concat(e,...n)}function lr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top center 0",n=arguments.length>2?arguments[2]:void 0;return{name:e,functional:!0,props:{group:{type:Boolean,default:!1},hideOnLeave:{type:Boolean,default:!1},leaveAbsolute:{type:Boolean,default:!1},mode:{type:String,default:n},origin:{type:String,default:t}},render(t,n){var r="transition"+(n.props.group?"-group":""),i={props:{name:e,mode:n.props.mode},on:{beforeEnter(e){e.style.transformOrigin=n.props.origin,e.style.webkitTransformOrigin=n.props.origin}}};return n.props.leaveAbsolute&&(i.on.leave=cr(i.on.leave,e=>{var t=e.offsetTop,n=e.offsetLeft,r=e.offsetWidth,i=e.offsetHeight;e._transitionInitialStyles={position:e.style.position,top:e.style.top,left:e.style.left,width:e.style.width,height:e.style.height},e.style.position="absolute",e.style.top=t+"px",e.style.left=n+"px",e.style.width=r+"px",e.style.height=i+"px"}),i.on.afterLeave=cr(i.on.afterLeave,e=>{if(e&&e._transitionInitialStyles){var t=e._transitionInitialStyles,n=t.position,r=t.top,i=t.left,o=t.width,s=t.height;delete e._transitionInitialStyles,e.style.position=n||"",e.style.top=r||"",e.style.left=i||"",e.style.width=o||"",e.style.height=s||""}})),n.props.hideOnLeave&&(i.on.leave=cr(i.on.leave,e=>{e.style.setProperty("display","none","important")})),t(r,Jn(n.data,i),n.children)}}}function dr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"in-out";return{name:e,functional:!0,props:{mode:{type:String,default:n}},render(n,r){return n("transition",Jn(r.data,{props:{name:e},on:t}),r.children)}}}var hr,fr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t?"width":"height",r="offset"+Y(n);return{beforeEnter(e){e._parent=e.parentNode,e._initialStyle={transition:e.style.transition,overflow:e.style.overflow,[n]:e.style[n]}},enter(t){var i=t._initialStyle;t.style.setProperty("transition","none","important"),t.style.overflow="hidden";var o=t[r]+"px";t.style[n]="0",t.offsetHeight,t.style.transition=i.transition,e&&t._parent&&t._parent.classList.add(e),requestAnimationFrame(()=>{t.style[n]=o})},afterEnter:o,enterCancelled:o,leave(e){e._initialStyle={transition:"",overflow:e.style.overflow,[n]:e.style[n]},e.style.overflow="hidden",e.style[n]=e[r]+"px",e.offsetHeight,requestAnimationFrame(()=>e.style[n]="0")},afterLeave:i,leaveCancelled:i};function i(t){e&&t._parent&&t._parent.classList.remove(e),o(t)}function o(e){var t=e._initialStyle[n];e.style.overflow=e._initialStyle.overflow,null!=t&&(e.style[n]=t),delete e._initialStyle}},pr=(lr("carousel-transition"),lr("carousel-reverse-transition"),lr("tab-transition"),lr("tab-reverse-transition"),lr("menu-transition"),lr("fab-transition","center center","out-in"),lr("dialog-transition"),lr("dialog-bottom-transition"),lr("dialog-top-transition"),lr("fade-transition"),lr("scale-transition"),lr("scroll-x-transition"),lr("scroll-x-reverse-transition"),lr("scroll-y-transition"),lr("scroll-y-reverse-transition"),lr("slide-x-transition"),lr("slide-x-reverse-transition"),lr("slide-y-transition"),lr("slide-y-reverse-transition"),dr("expand-transition",fr())),vr=dr("expand-x-transition",fr("",!0));n("4804");function mr(e){return["fas","far","fal","fab","fad","fak"].some(t=>e.includes(t))}function gr(e){return/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(e)&&/[\dz]$/i.test(e)&&e.length>4}(function(e){e["xSmall"]="12px",e["small"]="16px",e["default"]="24px",e["medium"]="28px",e["large"]="36px",e["xLarge"]="40px"})(hr||(hr={}));var _r=E(on,Ht,Wn,y).extend({name:"v-icon",props:{dense:Boolean,disabled:Boolean,left:Boolean,right:Boolean,size:[Number,String],tag:{type:String,required:!1,default:"i"}},computed:{medium(){return!1},hasClickListener(){return Boolean(this.listeners$.click||this.listeners$["!click"])}},methods:{getIcon(){var e="";return this.$slots.default&&(e=this.$slots.default[0].text.trim()),V(this,e)},getSize(){var e={xSmall:this.xSmall,small:this.small,medium:this.medium,large:this.large,xLarge:this.xLarge},t=z(e).find(t=>e[t]);return t&&hr[t]||H(this.size)},getDefaultData(){return{staticClass:"v-icon notranslate",class:{"v-icon--disabled":this.disabled,"v-icon--left":this.left,"v-icon--link":this.hasClickListener,"v-icon--right":this.right,"v-icon--dense":this.dense},attrs:v({"aria-hidden":!this.hasClickListener,disabled:this.hasClickListener&&this.disabled,type:this.hasClickListener?"button":void 0},this.attrs$),on:this.listeners$}},getSvgWrapperData(){var e=this.getSize(),t=v(v({},this.getDefaultData()),{},{style:e?{fontSize:e,height:e,width:e}:void 0});return this.applyColors(t),t},applyColors(e){e.class=v(v({},e.class),this.themeClasses),this.setTextColor(this.color,e)},renderFontIcon(e,t){var n=[],r=this.getDefaultData(),i="material-icons",o=e.indexOf("-"),s=o<=-1;s?n.push(e):(i=e.slice(0,o),mr(i)&&(i="")),r.class[i]=!0,r.class[e]=!s;var a=this.getSize();return a&&(r.style={fontSize:a}),this.applyColors(r),t(this.hasClickListener?"button":this.tag,r,n)},renderSvgIcon(e,t){var n={class:"v-icon__svg",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":!0}},r=this.getSize();return r&&(n.style={fontSize:r,height:r,width:r}),t(this.hasClickListener?"button":"span",this.getSvgWrapperData(),[t("svg",n,[t("path",{attrs:{d:e}})])])},renderSvgIconComponent(e,t){var n={class:{"v-icon__component":!0}},r=this.getSize();r&&(n.style={fontSize:r,height:r,width:r}),this.applyColors(n);var i=e.component;return n.props=e.props,n.nativeOn=n.on,t(this.hasClickListener?"button":"span",this.getSvgWrapperData(),[t(i,n)])}},render(e){var t=this.getIcon();return"string"===typeof t?gr(t)?this.renderSvgIcon(t,e):this.renderFontIcon(t,e):this.renderSvgIconComponent(t,e)}}),yr=g.a.extend({name:"v-icon",$_wrapperFor:_r,functional:!0,render(e,t){var n=t.data,r=t.children,i="";return n.domProps&&(i=n.domProps.textContent||n.domProps.innerHTML||i,delete n.domProps.textContent,delete n.domProps.innerHTML),e(_r,n,i?[i]:r)}}),br=["sm","md","lg","xl"],wr=["start","end","center"];function Tr(e,t){return br.reduce((n,r)=>(n[e+Y(r)]=t(),n),{})}var Sr=e=>[...wr,"baseline","stretch"].includes(e),Cr=Tr("align",()=>({type:String,default:null,validator:Sr})),Er=e=>[...wr,"space-between","space-around"].includes(e),Ar=Tr("justify",()=>({type:String,default:null,validator:Er})),xr=e=>[...wr,"space-between","space-around","stretch"].includes(e),Rr=Tr("alignContent",()=>({type:String,default:null,validator:xr})),Or={align:Object.keys(Cr),justify:Object.keys(Ar),alignContent:Object.keys(Rr)},Ir={align:"align",justify:"justify",alignContent:"align-content"};function kr(e,t,n){var r=Ir[e];if(null!=n){if(t){var i=t.replace(e,"");r+="-"+i}return r+="-"+n,r.toLowerCase()}}var Pr=new Map,Mr=g.a.extend({name:"v-row",functional:!0,props:v(v(v({tag:{type:String,default:"div"},dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:Sr}},Cr),{},{justify:{type:String,default:null,validator:Er}},Ar),{},{alignContent:{type:String,default:null,validator:xr}},Rr),render(e,t){var n=t.props,r=t.data,i=t.children,o="";for(var s in n)o+=String(n[s]);var a=Pr.get(o);if(!a){var u;for(u in a=[],Or)Or[u].forEach(e=>{var t=n[e],r=kr(u,e,t);r&&a.push(r)});a.push({"no-gutters":n.noGutters,"row--dense":n.dense,["align-"+n.align]:n.align,["justify-"+n.justify]:n.justify,["align-content-"+n.alignContent]:n.alignContent}),Pr.set(o,a)}return e(n.tag,Jn(r,{staticClass:"row",class:a}),i)}}),Nr=(n("ca71"),E(ln,Ht,C,Tn(["absolute","bottom","left","right","top"])).extend({name:"v-snackbar",props:{app:Boolean,centered:Boolean,contentClass:{type:String,default:""},multiLine:Boolean,text:Boolean,timeout:{type:[Number,String],default:5e3},transition:{type:[Boolean,String],default:"v-snack-transition",validator:e=>"string"===typeof e||!1===e},vertical:Boolean},data:()=>({activeTimeout:-1}),computed:{classes(){return{"v-snack--absolute":this.absolute,"v-snack--active":this.isActive,"v-snack--bottom":this.bottom||!this.top,"v-snack--centered":this.centered,"v-snack--has-background":this.hasBackground,"v-snack--left":this.left,"v-snack--multi-line":this.multiLine&&!this.vertical,"v-snack--right":this.right,"v-snack--text":this.text,"v-snack--top":this.top,"v-snack--vertical":this.vertical}},hasBackground(){return!this.text&&!this.outlined},isDark(){return this.hasBackground?!this.light:y.options.computed.isDark.call(this)},styles(){if(this.absolute||!this.app)return{};var e=this.$vuetify.application,t=e.bar,n=e.bottom,r=e.footer,i=e.insetFooter,o=e.left,s=e.right,a=e.top;return{paddingBottom:H(n+r+i),paddingLeft:H(o),paddingRight:H(s),paddingTop:H(t+a)}}},watch:{isActive:"setTimeout",timeout:"setTimeout"},mounted(){this.isActive&&this.setTimeout()},created(){this.$attrs.hasOwnProperty("auto-height")&&xt("auto-height",this),0==this.timeout&&Et('timeout="0"',"-1",this)},methods:{genActions(){return this.$createElement("div",{staticClass:"v-snack__action "},[J(this,"action",{attrs:{class:"v-snack__btn"}})])},genContent(){return this.$createElement("div",{staticClass:"v-snack__content",class:{[this.contentClass]:!0},attrs:{role:"status","aria-live":"polite"}},[J(this)])},genWrapper(){var e=this.hasBackground?this.setBackgroundColor:this.setTextColor,t=e(this.color,{staticClass:"v-snack__wrapper",class:ln.options.computed.classes.call(this),style:ln.options.computed.styles.call(this),directives:[{name:"show",value:this.isActive}],on:{pointerenter:()=>window.clearTimeout(this.activeTimeout),pointerleave:this.setTimeout}});return this.$createElement("div",t,[this.genContent(),this.genActions()])},genTransition(){return this.$createElement("transition",{props:{name:this.transition}},[this.genWrapper()])},setTimeout(){window.clearTimeout(this.activeTimeout);var e=Number(this.timeout);this.isActive&&![0,-1].includes(e)&&(this.activeTimeout=window.setTimeout(()=>{this.isActive=!1},e))}},render(e){return e("div",{staticClass:"v-snack",class:this.classes,style:this.styles},[!1!==this.transition?this.genTransition():this.genWrapper()])}})),Lr=function(){var e=this,t=e._self._c;return t("div",{staticClass:"d-flex flex-column align-center justify-space-between sip-call-main"},[e.showLocation?t("div",{staticClass:"location-wrapper"},[t("p",[e._v("LAT: "+e._s(e.latitude))]),t("p",[e._v("LNG: "+e._s(e.longitude))]),t("p",[e._v("ALT: "+e._s(e.altitude))])]):e._e(),e.miniMode||e.showDialPad?e._e():t("div",{staticClass:"d-flex flex-column align-center call-btn"},[t("img",{staticClass:"elevation-4 call-img",attrs:{alt:"logo",src:"https://kefu-gm-jc-dat.boc-samsunglife.cn/static/normal-logo.png"}}),t("p",{staticClass:"mt-6 mb-0 call-label"},[e._v(e._s(e.callPrompt))])]),e.miniMode||e.showDialPad?e._e():t("div",{staticClass:"pr-10 pl-10 btn-group"},[t(Mr,[t(ur,{staticClass:"text-center",attrs:{cols:"12"}},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.isCalling&&e.showHangup,expression:"isCalling && showHangup"}],staticClass:"call-duration"},[e._v(" 视频时长 "+e._s(e.duration)+" ")])])],1),t(Mr,{staticClass:"d-flex justify-space-around mb-10"},[t(Yn,{directives:[{name:"show",rawName:"v-show",value:!e.isCalling&&!e.needDial,expression:"!isCalling && !needDial"}],staticClass:"cancel-btn",staticStyle:{},on:{click:e.onHangupBtnClick}},[t("img",{staticClass:"cancel-img",attrs:{src:"https://kefu-gm-jc-dat.boc-samsunglife.cn/static/call-down.png",alt:"hangup"}}),t("span",{staticClass:"cancel-label"},[e._v("取消")])]),t(Yn,{directives:[{name:"show",rawName:"v-show",value:e.isCalling&&e.showHangup,expression:"isCalling && showHangup"}],staticClass:"custom-mute-btn",attrs:{large:""},on:{click:function(t){return e.onMuteBtnClick("audio")}}},[e.isAudioMute?t("img",{staticClass:"img-open-close",attrs:{src:"https://kefu-gm-jc-dat.boc-samsunglife.cn/static/adudio-close.png"}}):t("img",{staticClass:"img-open-close",attrs:{src:"https://kefu-gm-jc-dat.boc-samsunglife.cn/static/adudio-open.png"}})]),t(Yn,{directives:[{name:"show",rawName:"v-show",value:e.isCalling&&e.showHangup,expression:"isCalling && showHangup"}],staticClass:"custom-mute-btn",attrs:{large:""},on:{click:function(t){return e.onMuteBtnClick("video")}}},[e.isVideoMute?t("img",{staticClass:"img-open-close",attrs:{src:"https://kefu-gm-jc-dat.boc-samsunglife.cn/static/camera-close.png",alt:"mic-off"}}):t("img",{staticClass:"img-open-close",attrs:{src:"https://kefu-gm-jc-dat.boc-samsunglife.cn/static/camera-open.png",alt:"mic-on"}})])],1),t(Mr,{staticClass:"d-flex justify-center mt-10",staticStyle:{position:"relative",width:"100%"}},[t(Yn,{directives:[{name:"show",rawName:"v-show",value:e.isCalling&&e.showHangup,expression:"isCalling && showHangup"}],staticStyle:{opacity:"1",background:"transparent","box-shadow":"none",position:"relative"},on:{click:e.onHangupBtnClick}},[t("img",{staticClass:"hangup-img",attrs:{src:"https://kefu-gm-jc-dat.boc-samsunglife.cn/static/call-down.png",alt:"hangup"}}),t("span",{staticClass:"hangup-label"},[e._v("挂断")])]),t(Yn,{directives:[{name:"show",rawName:"v-show",value:e.isCalling&&e.showHangup,expression:"isCalling && showHangup"}],staticClass:"transparent-btn",on:{click:e.onSwitchCameraBtnClick}},[t(yr,{attrs:{size:"30"}},[e._v("mdi-camera-flip")])],1)],1)],1),e._v("· "),t(pr,[t("div",{directives:[{name:"show",rawName:"v-show",value:e.showVideoCt,expression:"showVideoCt"}],staticClass:"sip-call-wrapper",on:{click:e.onSipCallClick}},[t("vue-draggable-resizable",{directives:[{name:"show",rawName:"v-show",value:e.remoteVideo.show,expression:"remoteVideo.show"}],ref:"remoteVideoWrapper",attrs:{w:e.remoteVideo.w,h:e.remoteVideo.h,x:e.remoteVideo.x,y:e.remoteVideo.y,z:e.remoteVideo.z,draggable:e.remoteVideo.draggable,handles:[],parent:!0,active:!1,"class-name":"elevation-6 video-panel"},nativeOn:{mousedown:function(t){return e.onLocalVideoDragCallback(t,"remoteVideo")}}},[e.miniMode?t(Yn,{staticClass:"video-normal-mode",attrs:{dark:"",text:"","x-small":"",width:"24",height:"24","min-width":"24"},on:{click:e.onChangeVideoNormalModeBtnClick}},[t(yr,[e._v("mdi-arrow-bottom-right-bold-box")])],1):e._e(),t("video",{directives:[{name:"show",rawName:"v-show",value:e.remoteVideo.show,expression:"remoteVideo.show"}],ref:"remoteVideo",staticClass:"sip-call-video",staticStyle:{"object-fit":"contain"},attrs:{autoplay:"autoplay","webkit-playsinline":"true",playsinline:"true","x-webkit-airplay":"true","x5-video-player-type":"h5","x5-video-orientation":"h5",controls:""}})],1),t("vue-draggable-resizable",{directives:[{name:"show",rawName:"v-show",value:e.localVideo.show,expression:"localVideo.show"}],ref:"localVideoWrapper",attrs:{w:e.localVideo.w,h:e.localVideo.h,x:e.localVideo.x,y:e.localVideo.y,z:e.localVideo.z,draggable:e.localVideo.draggable,handles:[],parent:!0,active:!1,"class-name":"elevation-6 video-panel"},nativeOn:{mousedown:function(t){return e.onLocalVideoDragCallback(t,"localVideo")}}},[t("video",{directives:[{name:"show",rawName:"v-show",value:e.localVideo.show,expression:"localVideo.show"}],ref:"localVideo",staticClass:"sip-call-video",attrs:{autoplay:"autoplay",muted:"","webkit-playsinline":"true",playsinline:"true","x-webkit-airplay":"true","x5-video-player-type":"h5","x5-video-orientation":"h5",controls:""},domProps:{muted:!0}})])],1)]),t(pr,[t("dial-panel-mini",{directives:[{name:"show",rawName:"v-show",value:e.showDialPad,expression:"showDialPad"}],ref:"dialPanelMini",attrs:{isCalling:e.isCalling},on:{makeCall:e.onDialPadMakeCallBtnClick,close:function(t){e.showDialPad=!1},dtmf:e.onDialPadDtmfBtnClick,hangup:e.onHangupBtnClick}})],1),t(nn,{attrs:{"hide-overlay":""},model:{value:e.showAudioPlayer,callback:function(t){e.showAudioPlayer=t},expression:"showAudioPlayer"}},[t("audio",{ref:"audioPlayer",attrs:{src:n("e1e9"),loop:""}})]),t(Nr,{attrs:{timeout:2e3},model:{value:e.showSnackbar,callback:function(t){e.showSnackbar=t},expression:"showSnackbar"}},[e._v(" "+e._s(e.snackbarText)+" ")])],1)},Dr=[];function Ur(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}Ur=function(e,t,n,r){function o(t,n){Ur(e,t,(function(e){return this._invoke(t,n,e)}))}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},Ur(e,t,n,r)}function jr(){
12
+ var r=n("1fb5"),i=n("9152"),o=n("e3db");function s(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=c.prototype):(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(e,t,n);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return l(this,e,t,n)}function l(e,t,n,r){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?m(e,t,n,r):"string"===typeof t?p(e,t,n):g(e,t)}function d(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function h(e,t,n,r){return d(t),t<=0?u(e,t):void 0!==n?"string"===typeof r?u(e,t).fill(n,r):u(e,t).fill(n):u(e,t)}function f(e,t){if(d(t),e=u(e,t<0?0:0|_(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t,n){if("string"===typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|b(t,n);e=u(e,r);var i=e.write(t,n);return i!==r&&(e=e.slice(0,i)),e}function v(e,t){var n=t.length<0?0:0|_(t.length);e=u(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function m(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),c.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=c.prototype):e=v(e,t),e}function g(e,t){if(c.isBuffer(t)){var n=0|_(t.length);return e=u(e,n),0===e.length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||te(t.length)?u(e,0):v(e,t);if("Buffer"===t.type&&o(t.data))return v(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function _(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function y(e){return+e!=e&&(e=0),c.alloc(+e)}function b(e,t){if(c.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return X(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Z(e).length;default:if(r)return X(e).length;t=(""+t).toLowerCase(),r=!0}}function w(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return U(this,t,n);case"utf8":case"utf-8":return P(this,t,n);case"ascii":return L(this,t,n);case"latin1":case"binary":return D(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function T(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function S(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:C(e,t,n,r,i);if("number"===typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):C(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function C(e,t,n,r,i){var o,s=1,a=e.length,u=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var l=-1;for(o=n;o<a;o++)if(c(e,o)===c(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*s}else-1!==l&&(o-=o-l),l=-1}else for(n+u>a&&(n=a-u),o=n;o>=0;o--){for(var d=!0,h=0;h<u;h++)if(c(e,o+h)!==c(t,h)){d=!1;break}if(d)return o}return-1}function E(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function A(e,t,n,r){return ee(X(t,e.length-n),e,n,r)}function x(e,t,n,r){return ee(J(t),e,n,r)}function R(e,t,n,r){return x(e,t,n,r)}function O(e,t,n,r){return ee(Z(t),e,n,r)}function I(e,t,n,r){return ee(Q(t,e.length-n),e,n,r)}function k(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function P(e,t,n){n=Math.min(e.length,n);var r=[],i=t;while(i<n){var o,s,a,u,c=e[i],l=null,d=c>239?4:c>223?3:c>191?2:1;if(i+d<=n)switch(d){case 1:c<128&&(l=c);break;case 2:o=e[i+1],128===(192&o)&&(u=(31&c)<<6|63&o,u>127&&(l=u));break;case 3:o=e[i+1],s=e[i+2],128===(192&o)&&128===(192&s)&&(u=(15&c)<<12|(63&o)<<6|63&s,u>2047&&(u<55296||u>57343)&&(l=u));break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128===(192&o)&&128===(192&s)&&128===(192&a)&&(u=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a,u>65535&&u<1114112&&(l=u))}null===l?(l=65533,d=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=d}return N(r)}t.Buffer=c,t.SlowBuffer=y,t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:s(),t.kMaxLength=a(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return l(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return h(null,e,t,n)},c.allocUnsafe=function(e){return f(null,e)},c.allocUnsafeSlow=function(e){return f(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=c.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var s=e[n];if(!c.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(r,i),i+=s.length}return r},c.byteLength=b,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)T(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)T(this,t,t+3),T(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)T(this,t,t+7),T(this,t+1,t+6),T(this,t+2,t+5),T(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?P(this,0,e):w.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,r,i){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,s=n-t,a=Math.min(o,s),u=this.slice(r,i),l=e.slice(t,n),d=0;d<a;++d)if(u[d]!==l[d]){o=u[d],s=l[d];break}return o<s?-1:s<o?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return S(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return S(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return E(this,e,t,n);case"utf8":case"utf-8":return A(this,e,t,n);case"ascii":return x(this,e,t,n);case"latin1":case"binary":return R(this,e,t,n);case"base64":return O(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var M=4096;function N(e){var t=e.length;if(t<=M)return String.fromCharCode.apply(String,e);var n="",r=0;while(r<t)n+=String.fromCharCode.apply(String,e.slice(r,r+=M));return n}function L(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function D(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function U(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=K(e[o]);return i}function j(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function F(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function H(e,t,n,r,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function B(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function $(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function q(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function V(e,t,n,r,o){return o||q(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function z(e,t,n,r,o){return o||q(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)n=this.subarray(e,t),n.__proto__=c.prototype;else{var i=t-e;n=new c(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);var r=this[e],i=1,o=0;while(++o<t&&(i*=256))r+=this[e+o]*i;return r},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);var r=this[e+--t],i=1;while(t>0&&(i*=256))r+=this[e+--t]*i;return r},c.prototype.readUInt8=function(e,t){return t||F(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||F(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||F(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||F(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||F(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);var r=this[e],i=1,o=0;while(++o<t&&(i*=256))r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);var r=t,i=1,o=this[e+--r];while(r>0&&(i*=256))o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return t||F(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||F(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||F(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||F(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||F(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||F(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||F(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||F(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;H(this,e,t,n,i,0)}var o=1,s=0;this[t]=255&e;while(++s<n&&(o*=256))this[t+s]=e/o&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;H(this,e,t,n,i,0)}var o=n-1,s=1;this[t+o]=255&e;while(--o>=0&&(s*=256))this[t+o]=e/s&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||H(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||H(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):B(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||H(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):B(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||H(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):$(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||H(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):$(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);H(this,e,t,n,i-1,-i)}var o=0,s=1,a=0;this[t]=255&e;while(++o<n&&(s*=256))e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);H(this,e,t,n,i-1,-i)}var o=n-1,s=1,a=0;this[t+o]=255&e;while(--o>=0&&(s*=256))e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||H(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||H(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):B(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||H(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):B(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||H(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):$(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||H(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):$(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return V(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return V(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return z(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return z(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},c.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o<n;++o)this[o]=e;else{var s=c.isBuffer(e)?e:X(new c(e,r).toString()),a=s.length;for(o=0;o<n-t;++o)this[o+t]=s[o%a]}return this};var W=/[^+\/0-9A-Za-z-_]/g;function G(e){if(e=Y(e).replace(W,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function Y(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function K(e){return e<16?"0"+e.toString(16):e.toString(16)}function X(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],s=0;s<r;++s){if(n=e.charCodeAt(s),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function J(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function Q(e,t){for(var n,r,i,o=[],s=0;s<e.length;++s){if((t-=2)<0)break;n=e.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r)}return o}function Z(e){return r.toByteArray(G(e))}function ee(e,t,n,r){for(var i=0;i<r;++i){if(i+n>=t.length||i>=e.length)break;t[i+n]=e[i]}return i}function te(e){return e!==e}}).call(this,n("c8ba"))},b64e:function(e,t,n){"use strict";var r=n("2a62");e.exports=function(e,t,n){for(var i=e.length-1;i>=0;i--)if(void 0!==e[i])try{n=r(e[i].iterator,t,n)}catch(o){t="throw",n=o}if("throw"===t)throw n;return n}},b680:function(e,t,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("5926"),s=n("408a"),a=n("1148"),u=n("d039"),c=RangeError,l=String,d=Math.floor,h=i(a),f=i("".slice),p=i(1.1.toFixed),v=function(e,t,n){return 0===t?n:t%2===1?v(e,t-1,n*e):v(e*e,t/2,n)},m=function(e){var t=0,n=e;while(n>=4096)t+=12,n/=4096;while(n>=2)t+=1,n/=2;return t},g=function(e,t,n){var r=-1,i=n;while(++r<6)i+=t*e[r],e[r]=i%1e7,i=d(i/1e7)},_=function(e,t){var n=6,r=0;while(--n>=0)r+=e[n],e[n]=d(r/t),r=r%t*1e7},y=function(e){var t=6,n="";while(--t>=0)if(""!==n||0===t||0!==e[t]){var r=l(e[t]);n=""===n?r:n+h("0",7-r.length)+r}return n},b=u((function(){return"0.000"!==p(8e-5,3)||"1"!==p(.9,0)||"1.25"!==p(1.255,2)||"1000000000000000128"!==p(0xde0b6b3a7640080,0)}))||!u((function(){p({})}));r({target:"Number",proto:!0,forced:b},{toFixed:function(e){var t,n,r,i,a=s(this),u=o(e),d=[0,0,0,0,0,0],p="",b="0";if(u<0||u>20)throw new c("Incorrect fraction digits");if(a!==a)return"NaN";if(a<=-1e21||a>=1e21)return l(a);if(a<0&&(p="-",a=-a),a>1e-21)if(t=m(a*v(2,69,1))-69,n=t<0?a*v(2,-t,1):a/v(2,t,1),n*=4503599627370496,t=52-t,t>0){g(d,0,n),r=u;while(r>=7)g(d,1e7,0),r-=7;g(d,v(10,r,1),0),r=t-1;while(r>=23)_(d,1<<23),r-=23;_(d,1<<r),g(d,1,1),_(d,2),b=y(d)}else g(d,0,n),g(d,1<<-t,0),b=y(d)+h("0",u);return u>0?(i=b.length,b=p+(i<=u?"0."+h("0",u-i)+b:f(b,0,i-u)+"."+f(b,i-u))):b=p+b,b}})},b6f3:function(e,t,n){"use strict";n("418f")},b727:function(e,t,n){"use strict";var r=n("0366"),i=n("e330"),o=n("44ad"),s=n("7b0b"),a=n("07fa"),u=n("65f0"),c=i([].push),l=function(e){var t=1===e,n=2===e,i=3===e,l=4===e,d=6===e,h=7===e,f=5===e||d;return function(p,v,m,g){for(var _,y,b=s(p),w=o(b),T=a(w),S=r(v,m),C=0,E=g||u,A=t?E(p,T):n||h?E(p,0):void 0;T>C;C++)if((f||C in w)&&(_=w[C],y=S(_,C,b),e))if(t)A[C]=y;else if(y)switch(e){case 3:return!0;case 5:return _;case 6:return C;case 2:c(A,_)}else switch(e){case 4:return!1;case 7:c(A,_)}return d?-1:i||l?l:A}};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)}},b7ef:function(e,t,n){"use strict";var r=n("23e7"),i=n("cfe9"),o=n("d066"),s=n("5c6c"),a=n("9bf2").f,u=n("1a2d"),c=n("19aa"),l=n("7156"),d=n("e391"),h=n("cf98"),f=n("0d26"),p=n("83ab"),v=n("c430"),m="DOMException",g=o("Error"),_=o(m),y=function(){c(this,b);var e=arguments.length,t=d(e<1?void 0:arguments[0]),n=d(e<2?void 0:arguments[1],"Error"),r=new _(t,n),i=new g(t);return i.name=m,a(r,"stack",s(1,f(i.stack,1))),l(r,this,y),r},b=y.prototype=_.prototype,w="stack"in new g(m),T="stack"in new _(1,2),S=_&&p&&Object.getOwnPropertyDescriptor(i,m),C=!!S&&!(S.writable&&S.configurable),E=w&&!C&&!T;r({global:!0,constructor:!0,forced:v||E},{DOMException:E?y:_});var A=o(m),x=A.prototype;if(x.constructor!==A)for(var R in v||a(x,"constructor",s(1,A)),h)if(u(h,R)){var O=h[R],I=O.s;u(A,I)||a(A,I,s(6,O.c))}},b848:function(e,t,n){"use strict";var r=n("23e7"),i=n("cfe9"),o=n("e330"),s=n("6b37"),a=n("2005"),u=o(1.1.toString),c=i.Uint8Array,l=!c||!c.prototype.toHex||!function(){try{var e=new c([255,255,255,255,255,255,255,255]);return"ffffffffffffffff"===e.toHex()}catch(t){return!1}}();c&&r({target:"Uint8Array",proto:!0,forced:l},{toHex:function(){s(this),a(this.buffer);for(var e="",t=0,n=this.length;t<n;t++){var r=u(this[t],16);e+=1===r.length?"0"+r:r}return e}})},b917:function(e,t,n){"use strict";var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=r+"+/",o=r+"-_",s=function(e){for(var t={},n=0;n<64;n++)t[e.charAt(n)]=n;return t};e.exports={i2c:i,c2i:s(i),i2cUrl:o,c2iUrl:s(o)}},b980:function(e,t,n){"use strict";var r=n("d039"),i=n("5c6c");e.exports=!r((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",i(1,7)),7!==e.stack)}))},bb2f:function(e,t,n){"use strict";var r=n("d039");e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},bcbf:function(e,t,n){"use strict";var r=n("f5df");e.exports=function(e){var t=r(e);return"BigInt64Array"===t||"BigUint64Array"===t}},be8e:function(e,t,n){"use strict";var r=n("fc1b"),i=1.1920928955078125e-7,o=34028234663852886e22,s=11754943508222875e-54;e.exports=Math.fround||function(e){return r(e,i,o,s)}},bf19:function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b");r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})},c04e:function(e,t,n){"use strict";var r=n("c65b"),i=n("861d"),o=n("d9b5"),s=n("dc4a"),a=n("485a"),u=n("b622"),c=TypeError,l=u("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var n,u=s(e,l);if(u){if(void 0===t&&(t="default"),n=r(u,e,t),!i(n)||o(n))return n;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},c19f:function(e,t,n){"use strict";var r=n("23e7"),i=n("cfe9"),o=n("621a"),s=n("2626"),a="ArrayBuffer",u=o[a],c=i[a];r({global:!0,constructor:!0,forced:c!==u},{ArrayBuffer:u}),s(a)},c1a1:function(e,t,n){"use strict";var r=n("23e7"),i=n("b4bc"),o=n("dad2"),s=!o("isDisjointFrom",(function(e){return!e}));r({target:"Set",proto:!0,real:!0,forced:s},{isDisjointFrom:i})},c20d:function(e,t,n){"use strict";var r=n("cfe9"),i=n("d039"),o=n("e330"),s=n("577e"),a=n("58a8").trim,u=n("5899"),c=r.parseInt,l=r.Symbol,d=l&&l.iterator,h=/^[+-]?0x/i,f=o(h.exec),p=8!==c(u+"08")||22!==c(u+"0x16")||d&&!i((function(){c(Object(d))}));e.exports=p?function(e,t){var n=a(s(e));return c(n,t>>>0||(f(h,n)?16:10))}:c},c430:function(e,t,n){"use strict";e.exports=!1},c437:function(e,t,n){var r,i,o=n("e1f4"),s=n("2366"),a=0,u=0;function c(e,t,n){var c=t&&n||0,l=t||[];e=e||{};var d=e.node||r,h=void 0!==e.clockseq?e.clockseq:i;if(null==d||null==h){var f=o();null==d&&(d=r=[1|f[0],f[1],f[2],f[3],f[4],f[5]]),null==h&&(h=i=16383&(f[6]<<8|f[7]))}var p=void 0!==e.msecs?e.msecs:(new Date).getTime(),v=void 0!==e.nsecs?e.nsecs:u+1,m=p-a+(v-u)/1e4;if(m<0&&void 0===e.clockseq&&(h=h+1&16383),(m<0||p>a)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=p,u=v,i=h,p+=122192928e5;var g=(1e4*(268435455&p)+v)%4294967296;l[c++]=g>>>24&255,l[c++]=g>>>16&255,l[c++]=g>>>8&255,l[c++]=255&g;var _=p/4294967296*1e4&268435455;l[c++]=_>>>8&255,l[c++]=255&_,l[c++]=_>>>24&15|16,l[c++]=_>>>16&255,l[c++]=h>>>8|128,l[c++]=255&h;for(var y=0;y<6;++y)l[c+y]=d[y];return t||s(l)}e.exports=c},c5cc:function(e,t,n){"use strict";var r=n("c65b"),i=n("7c73"),o=n("9112"),s=n("6964"),a=n("b622"),u=n("69f3"),c=n("dc4a"),l=n("ae93").IteratorPrototype,d=n("4754"),h=n("2a62"),f=n("b64e"),p=a("toStringTag"),v="IteratorHelper",m="WrapForValidIterator",g="normal",_="throw",y=u.set,b=function(e){var t=u.getterFor(e?m:v);return s(i(l),{next:function(){var n=t(this);if(e)return n.nextHandler();if(n.done)return d(void 0,!0);try{var r=n.nextHandler();return n.returnHandlerResult?r:d(r,n.done)}catch(i){throw n.done=!0,i}},return:function(){var n=t(this),i=n.iterator;if(n.done=!0,e){var o=c(i,"return");return o?r(o,i):d(void 0,!0)}if(n.inner)try{h(n.inner.iterator,g)}catch(s){return h(i,_,s)}if(n.openIters)try{f(n.openIters,g)}catch(s){return h(i,_,s)}return i&&h(i,g),d(void 0,!0)}})},w=b(!0),T=b(!1);o(T,p,"Iterator Helper"),e.exports=function(e,t,n){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?m:v,i.returnHandlerResult=!!n,i.nextHandler=e,i.counter=0,i.done=!1,y(this,i)};return r.prototype=t?w:T,r}},c607:function(e,t,n){"use strict";var r=n("83ab"),i=n("fce3"),o=n("c6b6"),s=n("edd0"),a=n("69f3").get,u=RegExp.prototype,c=TypeError;r&&i&&s(u,"dotAll",{configurable:!0,get:function(){if(this!==u){if("RegExp"===o(this))return!!a(this).dotAll;throw new c("Incompatible receiver, RegExp required")}}})},c64e:function(e,t,n){var r=n("e1f4"),i=n("2366");function o(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null),e=e||{};var s=e.random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;a<16;++a)t[o+a]=s[a];return t||i(s)}e.exports=o},c65b:function(e,t,n){"use strict";var r=n("40d5"),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},c6b6:function(e,t,n){"use strict";var r=n("e330"),i=r({}.toString),o=r("".slice);e.exports=function(e){return o(i(e),8,-1)}},c6cd:function(e,t,n){"use strict";var r=n("c430"),i=n("cfe9"),o=n("6374"),s="__core-js_shared__",a=e.exports=i[s]||o(s,{});(a.versions||(a.versions=[])).push({version:"3.47.0",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.47.0/LICENSE",source:"https://github.com/zloirock/core-js"})},c6d2:function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),o=n("c430"),s=n("5e77"),a=n("1626"),u=n("dcc3"),c=n("e163"),l=n("d2bb"),d=n("d44e"),h=n("9112"),f=n("cb2d"),p=n("b622"),v=n("3f8c"),m=n("ae93"),g=s.PROPER,_=s.CONFIGURABLE,y=m.IteratorPrototype,b=m.BUGGY_SAFARI_ITERATORS,w=p("iterator"),T="keys",S="values",C="entries",E=function(){return this};e.exports=function(e,t,n,s,p,m,A){u(n,t,s);var x,R,O,I=function(e){if(e===p&&L)return L;if(!b&&e&&e in M)return M[e];switch(e){case T:return function(){return new n(this,e)};case S:return function(){return new n(this,e)};case C:return function(){return new n(this,e)}}return function(){return new n(this)}},k=t+" Iterator",P=!1,M=e.prototype,N=M[w]||M["@@iterator"]||p&&M[p],L=!b&&N||I(p),D="Array"===t&&M.entries||N;if(D&&(x=c(D.call(new e)),x!==Object.prototype&&x.next&&(o||c(x)===y||(l?l(x,y):a(x[w])||f(x,w,E)),d(x,k,!0,!0),o&&(v[k]=E))),g&&p===S&&N&&N.name!==S&&(!o&&_?h(M,"name",S):(P=!0,L=function(){return i(N,this)})),p)if(R={values:I(S),keys:m?L:I(T),entries:I(C)},A)for(O in R)(b||P||!(O in M))&&f(M,O,R[O]);else r({target:t,proto:!0,forced:b||P},R);return o&&!A||M[w]===L||f(M,w,L,{name:p}),v[t]=L,R}},c73d:function(e,t,n){"use strict";var r=n("23e7"),i=n("cfe9"),o=n("edd0"),s=n("83ab"),a=TypeError,u=Object.defineProperty,c=i.self!==i;try{if(s){var l=Object.getOwnPropertyDescriptor(i,"self");!c&&l&&l.get&&l.enumerable||o(i,"self",{get:function(){return i},set:function(e){if(this!==i)throw new a("Illegal invocation");u(i,"self",{value:e,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else r({global:!0,simple:!0,forced:c},{self:i})}catch(d){}},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},c8ce:function(e,t,n){"use strict";n("929e")},c8d2:function(e,t,n){"use strict";var r=n("5e77").PROPER,i=n("d039"),o=n("5899"),s="​…᠎";e.exports=function(e){return i((function(){return!!o[e]()||s[e]()!==s||r&&o[e].name!==e}))}},c973:function(e,t,n){function r(e,t,n,r,i,o,s){try{var a=e[o](s),u=a.value}catch(e){return void n(e)}a.done?t(u):Promise.resolve(u).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var s=e.apply(t,n);function a(e){r(s,i,o,a,u,"next",e)}function u(e){r(s,i,o,a,u,"throw",e)}a(void 0)}))}}n("e6cf"),e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},ca71:function(e,t,n){},ca84:function(e,t,n){"use strict";var r=n("e330"),i=n("1a2d"),o=n("fc6a"),s=n("4d64").indexOf,a=n("d012"),u=r([].push);e.exports=function(e,t){var n,r=o(e),c=0,l=[];for(n in r)!i(a,n)&&i(r,n)&&u(l,n);while(t.length>c)i(r,n=t[c++])&&(~s(l,n)||u(l,n));return l}},caad:function(e,t,n){"use strict";var r=n("23e7"),i=n("4d64").includes,o=n("d039"),s=n("44d2"),a=o((function(){return!Array(1).includes()}));r({target:"Array",proto:!0,forced:a},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),s("includes")},cb27:function(e,t,n){"use strict";var r=n("e330"),i=Set.prototype;e.exports={Set:Set,add:r(i.add),has:r(i.has),remove:r(i["delete"]),proto:i}},cb2d:function(e,t,n){"use strict";var r=n("1626"),i=n("9bf2"),o=n("13d2"),s=n("6374");e.exports=function(e,t,n,a){a||(a={});var u=a.enumerable,c=void 0!==a.name?a.name:t;if(r(n)&&o(n,c,a),a.global)u?e[t]=n:s(t,n);else{try{a.unsafe?e[t]&&(u=!0):delete e[t]}catch(l){}u?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},cc12:function(e,t,n){"use strict";var r=n("cfe9"),i=n("861d"),o=r.document,s=i(o)&&i(o.createElement);e.exports=function(e){return s?o.createElement(e):{}}},cc98:function(e,t,n){"use strict";var r=n("23e7"),i=n("c430"),o=n("4738").CONSTRUCTOR,s=n("d256"),a=n("d066"),u=n("1626"),c=n("cb2d"),l=s&&s.prototype;if(r({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&u(s)){var d=a("Promise").prototype["catch"];l["catch"]!==d&&c(l,"catch",d,{unsafe:!0})}},cca6:function(e,t,n){"use strict";var r=n("23e7"),i=n("60da");r({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},cdce:function(e,t,n){"use strict";var r=n("cfe9"),i=n("1626"),o=r.WeakMap;e.exports=i(o)&&/native code/.test(String(o))},cdf9:function(e,t,n){"use strict";var r=n("825a"),i=n("861d"),o=n("f069");e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e),s=n.resolve;return s(t),n.promise}},cf98:function(e,t,n){"use strict";e.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},cfe9:function(e,t,n){"use strict";(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)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},d012:function(e,t,n){"use strict";e.exports={}},d039:function(e,t,n){"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,n){"use strict";var r=n("cfe9"),i=n("1626"),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e]):r[e]&&r[e][t]}},d0cd:function(e,t,n){},d1e7:function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},d24a:function(e,t,n){"use strict";var r=n("e330"),i=n("1a2d"),o=SyntaxError,s=parseInt,a=String.fromCharCode,u=r("".charAt),c=r("".slice),l=r(/./.exec),d={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},h=/^[\da-f]{4}$/i,f=/^[\u0000-\u001F]$/;e.exports=function(e,t){var n=!0,r="";while(t<e.length){var p=u(e,t);if("\\"===p){var v=c(e,t,t+2);if(i(d,v))r+=d[v],t+=2;else{if("\\u"!==v)throw new o('Unknown escape sequence: "'+v+'"');t+=2;var m=c(e,t,t+4);if(!l(h,m))throw new o("Bad Unicode escape at: "+t);r+=a(s(m,16)),t+=4}}else{if('"'===p){n=!1,t++;break}if(l(f,p))throw new o("Bad control character in string literal at: "+t);r+=p,t++}}if(n)throw new o("Unterminated string at: "+t);return{value:r,end:t}}},d256:function(e,t,n){"use strict";var r=n("cfe9");e.exports=r.Promise},d2bb:function(e,t,n){"use strict";var r=n("7282"),i=n("861d"),o=n("1d80"),s=n("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=r(Object.prototype,"__proto__","set"),e(n,[]),t=n instanceof Array}catch(a){}return function(n,r){return o(n),s(r),i(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0)},d429:function(e,t,n){"use strict";var r=n("07fa"),i=n("5926"),o=RangeError;e.exports=function(e,t,n,s){var a=r(e),u=i(n),c=u<0?a+u:u;if(c>=a||c<0)throw new o("Incorrect index");for(var l=new t(a),d=0;d<a;d++)l[d]=d===c?s:e[d];return l}},d44e:function(e,t,n){"use strict";var r=n("9bf2").f,i=n("1a2d"),o=n("b622"),s=o("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!i(e,s)&&r(e,s,{configurable:!0,value:t})}},d58f:function(e,t,n){"use strict";var r=n("59ed"),i=n("7b0b"),o=n("44ad"),s=n("07fa"),a=TypeError,u="Reduce of empty array with no initial value",c=function(e){return function(t,n,c,l){var d=i(t),h=o(d),f=s(d);if(r(n),0===f&&c<2)throw new a(u);var p=e?f-1:0,v=e?-1:1;if(c<2)while(1){if(p in h){l=h[p],p+=v;break}if(p+=v,e?p<0:f<=p)throw new a(u)}for(;e?p>=0:f>p;p+=v)p in h&&(l=n(l,h[p],p,d));return l}};e.exports={left:c(!1),right:c(!0)}},d6d6:function(e,t,n){"use strict";var r=TypeError;e.exports=function(e,t){if(e<t)throw new r("Not enough arguments");return e}},d784:function(e,t,n){"use strict";n("ac1f");var r=n("c65b"),i=n("cb2d"),o=n("9263"),s=n("d039"),a=n("b622"),u=n("9112"),c=a("species"),l=RegExp.prototype;e.exports=function(e,t,n,d){var h=a(e),f=!s((function(){var t={};return t[h]=function(){return 7},7!==""[e](t)})),p=f&&!s((function(){var t=!1,n=/a/;if("split"===e){var r={};r[c]=function(){return n},n={constructor:r,flags:""},n[h]=/./[h]}return n.exec=function(){return t=!0,null},n[h](""),!t}));if(!f||!p||n){var v=/./[h],m=t(h,""[e],(function(e,t,n,i,s){var a=t.exec;return a===o||a===l.exec?f&&!s?{done:!0,value:r(v,t,n,i)}:{done:!0,value:r(e,n,t,i)}:{done:!1}}));i(String.prototype,e,m[0]),i(l,h,m[1])}d&&u(l[h],"sham",!0)}},d79f:function(e,t,n){},d866:function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),o=n("2266"),s=n("59ed"),a=n("825a"),u=n("46c4"),c=n("2a62"),l=n("f99f"),d=l("every",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:d},{every:function(e){a(this);try{s(e)}catch(r){c(this,"throw",r)}if(d)return i(d,this,e);var t=u(this),n=0;return!o(t,(function(t,r){if(!e(t,n++))return r()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},d86b:function(e,t,n){"use strict";var r=n("d039");e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},d9b5:function(e,t,n){"use strict";var r=n("d066"),i=n("1626"),o=n("3a9b"),s=n("fdbf"),a=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&o(t.prototype,a(e))}},d9e2:function(e,t,n){"use strict";var r=n("23e7"),i=n("cfe9"),o=n("2ba4"),s=n("e5cb"),a="WebAssembly",u=i[a],c=7!==new Error("e",{cause:7}).cause,l=function(e,t){var n={};n[e]=s(e,t,c),r({global:!0,constructor:!0,arity:1,forced:c},n)},d=function(e,t){if(u&&u[e]){var n={};n[e]=s(a+"."+e,t,c),r({target:a,stat:!0,constructor:!0,arity:1,forced:c},n)}};l("Error",(function(e){return function(t){return o(e,this,arguments)}})),l("EvalError",(function(e){return function(t){return o(e,this,arguments)}})),l("RangeError",(function(e){return function(t){return o(e,this,arguments)}})),l("ReferenceError",(function(e){return function(t){return o(e,this,arguments)}})),l("SyntaxError",(function(e){return function(t){return o(e,this,arguments)}})),l("TypeError",(function(e){return function(t){return o(e,this,arguments)}})),l("URIError",(function(e){return function(t){return o(e,this,arguments)}})),d("CompileError",(function(e){return function(t){return o(e,this,arguments)}})),d("LinkError",(function(e){return function(t){return o(e,this,arguments)}})),d("RuntimeError",(function(e){return function(t){return o(e,this,arguments)}}))},da63:function(e,t,n){"use strict";var r=TypeError;e.exports=function(e){var t=e&&e.alphabet;if(void 0===t||"base64"===t||"base64url"===t)return t||"base64";throw new r("Incorrect `alphabet` option")}},dad2:function(e,t,n){"use strict";var r=n("d066"),i=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},o=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};e.exports=function(e,t){var n=r("Set");try{(new n)[e](i(0));try{return(new n)[e](i(-1)),!1}catch(a){if(!t)return!0;try{return(new n)[e](o(-1/0)),!1}catch(u){var s=new n([1,2]);return t(s[e](o(1/0)))}}}catch(u){return!1}}},dbe5:function(e,t,n){"use strict";var r=n("cfe9"),i=n("d039"),o=n("1212"),s=n("8558"),a=r.structuredClone;e.exports=!!a&&!i((function(){if("DENO"===s&&o>92||"NODE"===s&&o>94||"BROWSER"===s&&o>97)return!1;var e=new ArrayBuffer(8),t=a(e,{transfer:[e]});return 0!==e.byteLength||8!==t.byteLength}))},dc19:function(e,t,n){"use strict";var r=n("cb27").has;e.exports=function(e){return r(e),e}},dc4a:function(e,t,n){"use strict";var r=n("59ed"),i=n("7234");e.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},dcc3:function(e,t,n){"use strict";var r=n("ae93").IteratorPrototype,i=n("7c73"),o=n("5c6c"),s=n("d44e"),a=n("3f8c"),u=function(){return this};e.exports=function(e,t,n,c){var l=t+" Iterator";return e.prototype=i(r,{next:o(+!c,n)}),s(e,l,!1,!0),a[l]=u,e}},ddb0:function(e,t,n){"use strict";var r=n("cfe9"),i=n("fdbc"),o=n("785a"),s=n("e260"),a=n("9112"),u=n("d44e"),c=n("b622"),l=c("iterator"),d=s.values,h=function(e,t){if(e){if(e[l]!==d)try{a(e,l,d)}catch(r){e[l]=d}if(u(e,t,!0),i[t])for(var n in s)if(e[n]!==s[n])try{a(e,n,s[n])}catch(r){e[n]=s[n]}}};for(var f in i)h(r[f]&&r[f].prototype,f);h(o,"DOMTokenList")},ded3:function(e,t,n){n("14d9"),n("e9f5"),n("910d"),n("7d54"),n("159b");var r=n("9523");function i(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 o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},df75:function(e,t,n){"use strict";var r=n("ca84"),i=n("7839");e.exports=Object.keys||function(e){return r(e,i)}},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}function i(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",r=!1,o=arguments.length-1;o>=-1&&!r;o--){var s=o>=0?arguments[o]:e.cwd();if("string"!==typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(t=s+"/"+t,r="/"===s.charAt(0))}return t=n(i(t.split("/"),(function(e){return!!e})),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),s="/"===o(e,-1);return e=n(i(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&s&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(i(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var n=e.length-1;n>=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),o=r(n.split("/")),s=Math.min(i.length,o.length),a=s,u=0;u<s;u++)if(i[u]!==o[u]){a=u;break}var c=[];for(u=a;u<i.length;u++)c.push("..");return c=c.concat(o.slice(a)),c.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,i=!0,o=e.length-1;o>=1;--o)if(t=e.charCodeAt(o),47===t){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=r(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,o=0,s=e.length-1;s>=0;--s){var a=e.charCodeAt(s);if(47!==a)-1===r&&(i=!1,r=s+1),46===a?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=s+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("4362"))},df7e:function(e,t,n){"use strict";var r=n("07fa");e.exports=function(e,t){for(var n=r(e),i=new t(n),o=0;o<n;o++)i[o]=e[n-o-1];return i}},dfb9:function(e,t,n){"use strict";var r=n("07fa");e.exports=function(e,t,n){var i=0,o=arguments.length>2?n:r(t),s=new e(o);while(o>i)s[i]=t[i++];return s}},e01a:function(e,t,n){"use strict";var r=n("23e7"),i=n("83ab"),o=n("cfe9"),s=n("e330"),a=n("1a2d"),u=n("1626"),c=n("3a9b"),l=n("577e"),d=n("edd0"),h=n("e893"),f=o.Symbol,p=f&&f.prototype;if(i&&u(f)&&(!("description"in p)||void 0!==f().description)){var v={},m=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),t=c(p,this)?new f(e):void 0===e?f():f(e);return""===e&&(v[t]=!0),t};h(m,f),m.prototype=p,p.constructor=m;var g="Symbol(description detection)"===String(f("description detection")),_=s(p.valueOf),y=s(p.toString),b=/^Symbol\((.*)\)[^)]+$/,w=s("".replace),T=s("".slice);d(p,"description",{configurable:!0,get:function(){var e=_(this);if(a(v,e))return"";var t=y(e),n=g?T(t,7,-1):w(t,b,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:m})}},e163:function(e,t,n){"use strict";var r=n("1a2d"),i=n("1626"),o=n("7b0b"),s=n("f772"),a=n("e177"),u=s("IE_PROTO"),c=Object,l=c.prototype;e.exports=a?c.getPrototypeOf:function(e){var t=o(e);if(r(t,u))return t[u];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof c?l:null}},e177:function(e,t,n){"use strict";var r=n("d039");e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e1e9:function(e,t,n){e.exports=n.p+"media/outgoing-call2.b8558579.mp3"},e1f4:function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0===(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},e25e:function(e,t,n){"use strict";var r=n("23e7"),i=n("c20d");r({global:!0,forced:parseInt!==i},{parseInt:i})},e260:function(e,t,n){"use strict";var r=n("fc6a"),i=n("44d2"),o=n("3f8c"),s=n("69f3"),a=n("9bf2").f,u=n("c6d2"),c=n("4754"),l=n("c430"),d=n("83ab"),h="Array Iterator",f=s.set,p=s.getterFor(h);e.exports=u(Array,"Array",(function(e,t){f(this,{type:h,target:r(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,c(void 0,!0);switch(e.kind){case"keys":return c(n,!1);case"values":return c(t[n],!1)}return c([n,t[n]],!1)}),"values");var v=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!l&&d&&"values"!==v.name)try{a(v,"name",{value:"values"})}catch(m){}},e330:function(e,t,n){"use strict";var r=n("40d5"),i=Function.prototype,o=i.call,s=r&&i.bind.bind(o,o);e.exports=r?s:function(e){return function(){return o.apply(e,arguments)}}},e391:function(e,t,n){"use strict";var r=n("577e");e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},e3db:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},e50d:function(e,t,n){n("d9e2");var r=n("7037")["default"];function i(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},e5cb:function(e,t,n){"use strict";var r=n("d066"),i=n("1a2d"),o=n("9112"),s=n("3a9b"),a=n("d2bb"),u=n("e893"),c=n("aeb0"),l=n("7156"),d=n("e391"),h=n("ab36"),f=n("6f19"),p=n("83ab"),v=n("c430");e.exports=function(e,t,n,m){var g="stackTraceLimit",_=m?2:1,y=e.split("."),b=y[y.length-1],w=r.apply(null,y);if(w){var T=w.prototype;if(!v&&i(T,"cause")&&delete T.cause,!n)return w;var S=r("Error"),C=t((function(e,t){var n=d(m?t:e,void 0),r=m?new w(e):new w;return void 0!==n&&o(r,"message",n),f(r,C,r.stack,2),this&&s(T,this)&&l(r,this,C),arguments.length>_&&h(r,arguments[_]),r}));if(C.prototype=T,"Error"!==b?a?a(C,S):u(C,S,{name:!0}):p&&g in w&&(c(C,w,g),c(C,w,"prepareStackTrace")),u(C,w),!v)try{T.name!==b&&o(T,"name",b),T.constructor=C}catch(E){}return C}}},e667:function(e,t,n){"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},e6cf:function(e,t,n){"use strict";n("5e7e"),n("14e5"),n("cc98"),n("3529"),n("f22b"),n("7149")},e893:function(e,t,n){"use strict";var r=n("1a2d"),i=n("56ef"),o=n("06cf"),s=n("9bf2");e.exports=function(e,t,n){for(var a=i(t),u=s.f,c=o.f,l=0;l<a.length;l++){var d=a[l];r(e,d)||n&&r(n,d)||u(e,d,c(t,d))}}},e8b5:function(e,t,n){"use strict";var r=n("c6b6");e.exports=Array.isArray||function(e){return"Array"===r(e)}},e95a:function(e,t,n){"use strict";var r=n("b622"),i=n("3f8c"),o=r("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||s[o]===e)}},e99a:function(e,t){function n(t,r,i,o){var s=Object.defineProperty;try{s({},"",{})}catch(t){s=0}e.exports=n=function(e,t,r,i){function o(t,r){n(e,t,(function(e){return this._invoke(t,r,e)}))}t?s?s(e,t,{value:r,enumerable:!i,configurable:!i,writable:!i}):e[t]=r:(o("next",0),o("throw",1),o("return",2))},e.exports.__esModule=!0,e.exports["default"]=e.exports,n(t,r,i,o)}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},e9bc:function(e,t,n){"use strict";var r=n("dc19"),i=n("cb27").add,o=n("83b9"),s=n("7f65"),a=n("5388");e.exports=function(e){var t=r(this),n=s(e).getIterator(),u=o(t);return a(n,(function(e){i(u,e)})),u}},e9c4:function(e,t,n){"use strict";var r=n("23e7"),i=n("d066"),o=n("2ba4"),s=n("c65b"),a=n("e330"),u=n("d039"),c=n("e8b5"),l=n("1626"),d=n("f748"),h=n("d9b5"),f=n("c6b6"),p=n("577e"),v=n("f36a"),m=n("d24a"),g=n("90e3"),_=n("04f8"),y=n("9cf7"),b=String,w=i("JSON","stringify"),T=a(/./.exec),S=a("".charAt),C=a("".charCodeAt),E=a("".replace),A=a("".slice),x=a([].push),R=a(1.1.toString),O=/[\uD800-\uDFFF]/g,I=/^[\uD800-\uDBFF]$/,k=/^[\uDC00-\uDFFF]$/,P=g(),M=P.length,N=!_||u((function(){var e=i("Symbol")("stringify detection");return"[null]"!==w([e])||"{}"!==w({a:e})||"{}"!==w(Object(e))})),L=u((function(){return'"\\udf06\\ud834"'!==w("\udf06\ud834")||'"\\udead"'!==w("\udead")})),D=N?function(e,t){var n=v(arguments),r=j(t);if(l(r)||void 0!==e&&!h(e))return n[1]=function(e,t){if(l(r)&&(t=s(r,this,b(e),t)),!h(t))return t},o(w,null,n)}:w,U=function(e,t,n){var r=S(n,t-1),i=S(n,t+1);return T(I,e)&&!T(k,i)||T(k,e)&&!T(I,r)?"\\u"+R(C(e,0),16):e},j=function(e){if(l(e))return e;if(c(e)){for(var t=e.length,n=[],r=0;r<t;r++){var i=e[r];"string"==typeof i?x(n,i):"number"!=typeof i&&"Number"!==f(i)&&"String"!==f(i)||x(n,p(i))}var o=n.length,s=!0;return function(e,t){if(s)return s=!1,t;if(c(this))return t;for(var r=0;r<o;r++)if(n[r]===e)return t}}};w&&r({target:"JSON",stat:!0,arity:3,forced:N||L||!y},{stringify:function(e,t,n){var r=j(t),i=[],o=D(e,(function(e,t){var n=l(r)?s(r,this,b(e),t):t;return!y&&d(n)?P+(x(i,n.rawJSON)-1):n}),n);if("string"!=typeof o)return o;if(L&&(o=E(o,O,U)),y)return o;for(var a="",u=o.length,c=0;c<u;c++){var h=S(o,c);if('"'===h){var f=m(o,++c).end-1,p=A(o,c,f);a+=A(p,0,M)===P?i[A(p,M)]:'"'+p+'"',c=f}else a+=h}return a}})},e9f5:function(e,t,n){"use strict";var r=n("23e7"),i=n("cfe9"),o=n("19aa"),s=n("825a"),a=n("1626"),u=n("e163"),c=n("edd0"),l=n("8418"),d=n("d039"),h=n("1a2d"),f=n("b622"),p=n("ae93").IteratorPrototype,v=n("83ab"),m=n("c430"),g="constructor",_="Iterator",y=f("toStringTag"),b=TypeError,w=i[_],T=m||!a(w)||w.prototype!==p||!d((function(){w({})})),S=function(){if(o(this,p),u(this)===p)throw new b("Abstract class Iterator not directly constructable")},C=function(e,t){v?c(p,e,{configurable:!0,get:function(){return t},set:function(t){if(s(this),this===p)throw new b("You can't redefine this property");h(this,e)?this[e]=t:l(this,e,t)}}):p[e]=t};h(p,y)||C(y,_),!T&&h(p,g)&&p[g]!==Object||C(g,S),S.prototype=p,r({global:!0,constructor:!0,forced:T},{Iterator:S})},ea83:function(e,t,n){"use strict";var r=n("b5db"),i=r.match(/AppleWebKit\/(\d+)\./);e.exports=!!i&&+i[1]},eac5:function(e,t,n){"use strict";var r=n("861d"),i=Math.floor;e.exports=Number.isInteger||function(e){return!r(e)&&isFinite(e)&&i(e)===e}},ebb5:function(e,t,n){"use strict";var r,i,o,s=n("4b11"),a=n("83ab"),u=n("cfe9"),c=n("1626"),l=n("861d"),d=n("1a2d"),h=n("f5df"),f=n("0d51"),p=n("9112"),v=n("cb2d"),m=n("edd0"),g=n("3a9b"),_=n("e163"),y=n("d2bb"),b=n("b622"),w=n("90e3"),T=n("69f3"),S=T.enforce,C=T.get,E=u.Int8Array,A=E&&E.prototype,x=u.Uint8ClampedArray,R=x&&x.prototype,O=E&&_(E),I=A&&_(A),k=Object.prototype,P=u.TypeError,M=b("toStringTag"),N=w("TYPED_ARRAY_TAG"),L="TypedArrayConstructor",D=s&&!!y&&"Opera"!==h(u.opera),U=!1,j={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},F={BigInt64Array:8,BigUint64Array:8},H=function(e){if(!l(e))return!1;var t=h(e);return"DataView"===t||d(j,t)||d(F,t)},B=function(e){var t=_(e);if(l(t)){var n=C(t);return n&&d(n,L)?n[L]:B(t)}},$=function(e){if(!l(e))return!1;var t=h(e);return d(j,t)||d(F,t)},q=function(e){if($(e))return e;throw new P("Target is not a typed array")},V=function(e){if(c(e)&&(!y||g(O,e)))return e;throw new P(f(e)+" is not a typed array constructor")},z=function(e,t,n,r){if(a){if(n)for(var i in j){var o=u[i];if(o&&d(o.prototype,e))try{delete o.prototype[e]}catch(s){try{o.prototype[e]=t}catch(c){}}}I[e]&&!n||v(I,e,n?t:D&&A[e]||t,r)}},W=function(e,t,n){var r,i;if(a){if(y){if(n)for(r in j)if(i=u[r],i&&d(i,e))try{delete i[e]}catch(o){}if(O[e]&&!n)return;try{return v(O,e,n?t:D&&O[e]||t)}catch(o){}}for(r in j)i=u[r],!i||i[e]&&!n||v(i,e,t)}};for(r in j)i=u[r],o=i&&i.prototype,o?S(o)[L]=i:D=!1;for(r in F)i=u[r],o=i&&i.prototype,o&&(S(o)[L]=i);if((!D||!c(O)||O===Function.prototype)&&(O=function(){throw new P("Incorrect invocation")},D))for(r in j)u[r]&&y(u[r],O);if((!D||!I||I===k)&&(I=O.prototype,D))for(r in j)u[r]&&y(u[r].prototype,I);if(D&&_(R)!==I&&y(R,I),a&&!d(I,M))for(r in U=!0,m(I,M,{configurable:!0,get:function(){return l(this)?this[N]:void 0}}),j)u[r]&&p(u[r],N,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:D,TYPED_ARRAY_TAG:U&&N,aTypedArray:q,aTypedArrayConstructor:V,exportTypedArrayMethod:z,exportTypedArrayStaticMethod:W,getTypedArrayConstructor:B,isView:H,isTypedArray:$,TypedArray:O,TypedArrayPrototype:I}},ebc1:function(e,t,n){"use strict";var r=n("b5db");e.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},ec87:function(e,t,n){"use strict";var r=n("b5db");e.exports=/web0s(?!.*chrome)/i.test(r)},ec97:function(e,t,n){"use strict";var r=n("ebb5"),i=n("8aa7"),o=r.aTypedArrayConstructor,s=r.exportTypedArrayStaticMethod;s("of",(function(){var e=0,t=arguments.length,n=new(o(this))(t);while(t>e)n[e]=arguments[e++];return n}),i)},edd0:function(e,t,n){"use strict";var r=n("13d2"),i=n("9bf2");e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),i.f(e,t,n)}},eee7:function(e,t,n){"use strict";n("02ec");var r=n("23e7"),i=n("67b6");r({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==i},{trimStart:i})},f069:function(e,t,n){"use strict";var r=n("59ed"),i=TypeError,o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw new i("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},f183:function(e,t,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("d012"),s=n("861d"),a=n("1a2d"),u=n("9bf2").f,c=n("241c"),l=n("057f"),d=n("4fad"),h=n("90e3"),f=n("bb2f"),p=!1,v=h("meta"),m=0,g=function(e){u(e,v,{value:{objectID:"O"+m++,weakData:{}}})},_=function(e,t){if(!s(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,v)){if(!d(e))return"F";if(!t)return"E";g(e)}return e[v].objectID},y=function(e,t){if(!a(e,v)){if(!d(e))return!0;if(!t)return!1;g(e)}return e[v].weakData},b=function(e){return f&&p&&d(e)&&!a(e,v)&&g(e),e},w=function(){T.enable=function(){},p=!0;var e=c.f,t=i([].splice),n={};n[v]=1,e(n).length&&(c.f=function(n){for(var r=e(n),i=0,o=r.length;i<o;i++)if(r[i]===v){t(r,i,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},T=e.exports={enable:w,fastKey:_,getWeakData:y,onFreeze:b};o[v]=!0},f22b:function(e,t,n){"use strict";var r=n("23e7"),i=n("f069"),o=n("4738").CONSTRUCTOR;r({target:"Promise",stat:!0,forced:o},{reject:function(e){var t=i.f(this),n=t.reject;return n(e),t.promise}})},f354:function(e,t,n){"use strict";var r=n("d039"),i=n("b622"),o=n("83ab"),s=n("c430"),a=i("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),r="";return e.pathname="c%20d",t.forEach((function(e,n){t["delete"]("b"),r+=n+e})),n["delete"]("a",2),n["delete"]("b",void 0),s&&(!e.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!t.size&&(s||!o)||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==r||"x"!==new URL("https://x",void 0).host}))},f36a:function(e,t,n){"use strict";var r=n("e330");e.exports=r([].slice)},f495:function(e,t,n){"use strict";var r=n("c04e"),i=TypeError;e.exports=function(e){var t=r(e,"number");if("number"==typeof t)throw new i("Can't convert number to bigint");return BigInt(t)}},f5df:function(e,t,n){"use strict";var r=n("00ee"),i=n("1626"),o=n("c6b6"),s=n("b622"),a=s("toStringTag"),u=Object,c="Arguments"===o(function(){return arguments}()),l=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=l(t=u(e),a))?n:c?o(t):"Object"===(r=o(t))&&i(t.callee)?"Arguments":r}},f665:function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),o=n("2266"),s=n("59ed"),a=n("825a"),u=n("46c4"),c=n("2a62"),l=n("f99f"),d=l("find",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:d},{find:function(e){a(this);try{s(e)}catch(r){c(this,"throw",r)}if(d)return i(d,this,e);var t=u(this),n=0;return o(t,(function(t,r){if(e(t,n++))return r(t)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}})},f69d:function(e,t,n){"use strict";var r=n("861d"),i=String,o=TypeError;e.exports=function(e){if(void 0===e||r(e))return e;throw new o(i(e)+" is not an object or undefined")}},f6d6:function(e,t,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("23cb"),s=RangeError,a=String.fromCharCode,u=String.fromCodePoint,c=i([].join),l=!!u&&1!==u.length;r({target:"String",stat:!0,arity:1,forced:l},{fromCodePoint:function(e){var t,n=[],r=arguments.length,i=0;while(r>i){if(t=+arguments[i++],o(t,1114111)!==t)throw new s(t+" is not a valid code point");n[i]=t<65536?a(t):a(55296+((t-=65536)>>10),t%1024+56320)}return c(n,"")}})},f748:function(e,t,n){"use strict";var r=n("861d"),i=n("69f3").get;e.exports=function(e){if(!r(e))return!1;var t=i(e);return!!t&&"RawJSON"===t.type}},f7485:function(e,t,n){"use strict";e.exports=Math.sign||function(e){var t=+e;return 0===t||t!==t?t:t<0?-1:1}},f772:function(e,t,n){"use strict";var r=n("5692"),i=n("90e3"),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},f8c9:function(e,t,n){"use strict";var r=n("23e7"),i=n("cfe9"),o=n("d44e");r({global:!0},{Reflect:{}}),o(i.Reflect,"Reflect",!0)},f8cd:function(e,t,n){"use strict";var r=n("5926"),i=RangeError;e.exports=function(e){var t=r(e);if(t<0)throw new i("The argument can't be less than 0");return t}},f99f:function(e,t,n){"use strict";var r=n("cfe9");e.exports=function(e,t){var n=r.Iterator,i=n&&n.prototype,o=i&&i[e],s=!1;if(o)try{o.call({next:function(){return{done:!0}},return:function(){s=!0}},-1)}catch(a){a instanceof t||(s=!1)}if(!s)return o}},fb15:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"linear",(function(){return de})),n.d(r,"easeInQuad",(function(){return he})),n.d(r,"easeOutQuad",(function(){return fe})),n.d(r,"easeInOutQuad",(function(){return pe})),n.d(r,"easeInCubic",(function(){return ve})),n.d(r,"easeOutCubic",(function(){return me})),n.d(r,"easeInOutCubic",(function(){return ge})),n.d(r,"easeInQuart",(function(){return _e})),n.d(r,"easeOutQuart",(function(){return ye})),n.d(r,"easeInOutQuart",(function(){return be})),n.d(r,"easeInQuint",(function(){return we})),n.d(r,"easeOutQuint",(function(){return Te})),n.d(r,"easeInOutQuint",(function(){return Se}));var i={};n.r(i),n.d(i,"shimGetUserMedia",(function(){return ti})),n.d(i,"shimGetDisplayMedia",(function(){return ni})),n.d(i,"shimMediaStream",(function(){return ri})),n.d(i,"shimOnTrack",(function(){return ii})),n.d(i,"shimGetSendersWithDtmf",(function(){return oi})),n.d(i,"shimGetStats",(function(){return si})),n.d(i,"shimSenderReceiverGetStats",(function(){return ai})),n.d(i,"shimAddTrackRemoveTrackWithNative",(function(){return ui})),n.d(i,"shimAddTrackRemoveTrack",(function(){return ci})),n.d(i,"shimPeerConnection",(function(){return li})),n.d(i,"fixNegotiationNeeded",(function(){return di}));var o={};n.r(o),n.d(o,"shimGetUserMedia",(function(){return hi})),n.d(o,"shimGetDisplayMedia",(function(){return fi})),n.d(o,"shimOnTrack",(function(){return pi})),n.d(o,"shimPeerConnection",(function(){return vi})),n.d(o,"shimSenderGetStats",(function(){return mi})),n.d(o,"shimReceiverGetStats",(function(){return gi})),n.d(o,"shimRemoveStream",(function(){return _i})),n.d(o,"shimRTCDataChannel",(function(){return yi})),n.d(o,"shimAddTransceiver",(function(){return bi})),n.d(o,"shimGetParameters",(function(){return wi})),n.d(o,"shimCreateOffer",(function(){return Ti})),n.d(o,"shimCreateAnswer",(function(){return Si}));var s={};n.r(s),n.d(s,"shimLocalStreamsAPI",(function(){return Ci})),n.d(s,"shimRemoteStreamsAPI",(function(){return Ei})),n.d(s,"shimCallbacksAPI",(function(){return Ai})),n.d(s,"shimGetUserMedia",(function(){return xi})),n.d(s,"shimConstraints",(function(){return Ri})),n.d(s,"shimRTCIceServerUrls",(function(){return Oi})),n.d(s,"shimTrackEventTransceiver",(function(){return Ii})),n.d(s,"shimCreateOfferLegacy",(function(){return ki})),n.d(s,"shimAudioContext",(function(){return Pi}));var a={};if(n.r(a),n.d(a,"shimRTCIceCandidate",(function(){return Li})),n.d(a,"shimRTCIceCandidateRelayProtocol",(function(){return Di})),n.d(a,"shimMaxMessageSize",(function(){return Ui})),n.d(a,"shimSendThrowTypeError",(function(){return ji})),n.d(a,"shimConnectionState",(function(){return Fi})),n.d(a,"removeExtmapAllowMixed",(function(){return Hi})),n.d(a,"shimAddIceCandidateNullOrEmpty",(function(){return Bi})),n.d(a,"shimParameterlessSetLocalDescription",(function(){return $i})),"undefined"!==typeof window){var u=window.document.currentScript,c=u&&u.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);c&&(n.p=c[1])}n("14d9"),n("e9f5"),n("910d"),n("7d54"),n("159b"),n("e01a"),n("e260"),n("ddb0");function l(e){return l="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},l(e)}n("d9e2");function d(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function h(e){var t=d(e,"string");return"symbol"==l(t)?t:t+""}function f(e,t,n){return(t=h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(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 v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}n("d0cd"),n("caad"),n("a732"),n("498a"),n("368e"),n("f665");var m=n("8bbf"),g=n.n(m),_=g.a.extend().extend({name:"themeable",provide(){return{theme:this.themeableProvide}},inject:{theme:{default:{isDark:!1}}},props:{dark:{type:Boolean,default:null},light:{type:Boolean,default:null}},data(){return{themeableProvide:{isDark:!1}}},computed:{appIsDark(){return this.$vuetify.theme.dark||!1},isDark(){return!0===this.dark||!0!==this.light&&this.theme.isDark},themeClasses(){return{"theme--dark":this.isDark,"theme--light":!this.isDark}},rootIsDark(){return!0===this.dark||!0!==this.light&&this.appIsDark},rootThemeClasses(){return{"theme--dark":this.rootIsDark,"theme--light":!this.rootIsDark}}},watch:{isDark:{handler(e,t){e!==t&&(this.themeableProvide.isDark=this.isDark)},immediate:!0}}}),y=_;var b=y.extend({name:"v-theme-provider",props:{root:Boolean},computed:{isDark(){return this.root?this.rootIsDark:y.options.computed.isDark.call(this)}},render(){return this.$slots.default&&this.$slots.default.find(e=>!e.isComment&&" "!==e.text)}}),w=(n("cca6"),n("e25e"),g.a.extend().extend({name:"delayable",props:{openDelay:{type:[Number,String],default:0},closeDelay:{type:[Number,String],default:0}},data:()=>({openTimeout:void 0,closeTimeout:void 0}),methods:{clearDelay(){clearTimeout(this.openTimeout),clearTimeout(this.closeTimeout)},runDelay(e,t){this.clearDelay();var n=parseInt(this[e+"Delay"],10);this[e+"Timeout"]=setTimeout(t||(()=>{this.isActive={open:!0,close:!1}[e]}),n)}}}));function T(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"value",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"input";return g.a.extend({name:"toggleable",model:{prop:e,event:t},props:{[e]:{required:!1}},data(){return{isActive:!!this[e]}},watch:{[e](e){this.isActive=!!e},isActive(n){!!n!==this[e]&&this.$emit(t,n)}}})}var S=T(),C=S;function E(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return g.a.extend({mixins:t})}function A(e){if(Array.isArray(e))return e}function x(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n["return"]&&(s=n["return"](),Object(s)!==s))return}finally{if(c)throw i}}return a}}n("a630"),n("ac1f"),n("00b4"),n("25f0");function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function O(e,t){if(e){if("string"==typeof e)return R(e,t);var n={}.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)?R(e,t):void 0}}function I(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function k(e,t){return A(e)||x(e,t)||O(e,t)||I()}n("13d5"),n("4e82"),n("d866"),n("9485"),n("b680"),n("5319"),n("2ca0");function P(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=o=>{n(o),e.removeEventListener(t,i,r)};e.addEventListener(t,i,r)}var M=!1;try{if("undefined"!==typeof window){var N=Object.defineProperty({},"passive",{get:()=>{M=!0}});window.addEventListener("testListener",N,N),window.removeEventListener("testListener",N,N)}}catch(so){console.warn(so)}function L(e,t,n,r){e.addEventListener(t,n,!!M&&r)}function D(e,t,n){var r=t.length-1;if(r<0)return void 0===e?n:e;for(var i=0;i<r;i++){if(null==e)return n;e=e[t[i]]}return null==e||void 0===e[t[r]]?n:e[t[r]]}function U(e,t,n){return null!=e&&t&&"string"===typeof t?void 0!==e[t]?e[t]:(t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,""),D(e,t.split("."),n)):n}function j(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return 0;var t=+window.getComputedStyle(e).getPropertyValue("z-index");return t||j(e.parentNode)}function F(e,t){for(var n={},r=0;r<t.length;r++){var i=t[r];"undefined"!==typeof e[i]&&(n[i]=e[i])}return n}function H(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px";return null==e||""===e?void 0:isNaN(+e)?String(e):`${Number(e)}${t}`}function B(e){return(e||"").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function $(e){return null!==e&&"object"===typeof e}var q=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16});function V(e,t){var n=e.$vuetify.icons.component;if(t.startsWith("$")){var r="$vuetify.icons.values."+t.split("$").pop().split(".").pop(),i=U(e,r,t);if("string"!==typeof i)return i;t=i}return null==n?t:{component:n,props:{icon:t}}}function z(e){return Object.keys(e)}var W=/-(\w)/g,G=e=>e.replace(W,(e,t)=>t?t.toUpperCase():"");function Y(e){return e.charAt(0).toUpperCase()+e.slice(1)}function K(e){return null!=e?Array.isArray(e)?e:[e]:[]}function X(e,t,n){return e.$slots.hasOwnProperty(t)&&e.$scopedSlots.hasOwnProperty(t)&&e.$scopedSlots[t].name?n?"v-slot":"scoped":e.$slots.hasOwnProperty(t)?"normal":e.$scopedSlots.hasOwnProperty(t)?"scoped":void 0}function J(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=B(t);return e.$scopedSlots.hasOwnProperty(t)?e.$scopedSlots[t](n instanceof Function?n():n):e.$scopedSlots.hasOwnProperty(i)?e.$scopedSlots[i](n instanceof Function?n():n):!e.$slots.hasOwnProperty(t)||n&&!r?!e.$slots.hasOwnProperty(i)||n&&!r?void 0:e.$slots[i]:e.$slots[t]}function Q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.max(t,Math.min(n,e))}function Z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var n in t){var r=e[n],i=t[n];$(r)&&$(i)?e[n]=Z(r,i):e[n]=i}return e}function ee(e){if(e.composedPath)return e.composedPath();var t=[],n=e.target;while(n){if(t.push(n),"HTML"===n.tagName)return t.push(document),t.push(window),t;n=n.parentElement}return t}n("2532"),n("466d");function te(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!te.installed){te.installed=!0,g.a!==e&&Ct("Multiple instances of Vue detected\nSee https://github.com/vuetifyjs/vuetify/issues/4068\n\nIf you're seeing \"$attrs is readonly\", it's caused by this");var n=t.components||{},r=t.directives||{};for(var i in r){var o=r[i];e.directive(i,o)}(function t(n){if(n){for(var r in n){var i=n[r];i&&!t(i.$_vuetify_subcomponents)&&e.component(r,i)}return!0}return!1})(n),e.$_vuetify_installed||(e.$_vuetify_installed=!0,e.mixin({beforeCreate(){var t=this.$options;t.vuetify?(t.vuetify.init(this,this.$ssrContext),this.$vuetify=e.observable(t.vuetify.framework)):this.$vuetify=t.parent&&t.parent.$vuetify||this},beforeMount(){this.$options.vuetify&&this.$el&&this.$el.hasAttribute("data-server-rendered")&&(this.$vuetify.isHydrating=!0,this.$vuetify.breakpoint.update(!0))},mounted(){this.$options.vuetify&&this.$vuetify.isHydrating&&(this.$vuetify.isHydrating=!1,this.$vuetify.breakpoint.update())}}))}}function ne(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function re(e,t){if(null==e)return{};var n,r,i=ne(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n("95ed");var ie={badge:"Badge",close:"Close",dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},datePicker:{itemsSelected:"{0} selected",nextMonthAriaLabel:"Next month",nextYearAriaLabel:"Next year",prevMonthAriaLabel:"Previous month",prevYearAriaLabel:"Previous year"},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},timePicker:{am:"AM",pm:"PM"},pagination:{ariaLabel:{wrapper:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Goto Page {0}",currentPage:"Current Page, Page {0}"}},rating:{ariaLabel:{icon:"Rating {0} of {1}"}},loading:"Loading..."},oe={breakpoint:{mobileBreakpoint:1264,scrollBarWidth:16,thresholds:{xs:600,sm:960,md:1280,lg:1920}},icons:{iconfont:"mdi",values:{}},lang:{current:"en",locales:{en:ie},t:void 0},rtl:!1,theme:{dark:!1,default:"light",disable:!1,options:{cspNonce:void 0,customProperties:void 0,minifyTheme:void 0,themeCache:void 0,variations:!0},themes:{light:{primary:"#1976D2",secondary:"#424242",accent:"#82B1FF",error:"#FF5252",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},dark:{primary:"#2196F3",secondary:"#424242",accent:"#FF4081",error:"#FF5252",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"}}}};class se{constructor(){this.framework={}}init(e,t){}}var ae=["preset"];class ue extends se{constructor(e,t){super();var n=Z({},oe),r=t.userPreset,i=r.preset,o=void 0===i?{}:i,s=re(r,ae);null!=o.preset&&St("Global presets do not support the **preset** option, it can be safely omitted"),t.preset=Z(Z(n,o),s)}}ue.property="presets";class ce extends se{constructor(){super(...arguments),this.bar=0,this.top=0,this.left=0,this.insetFooter=0,this.right=0,this.bottom=0,this.footer=0,this.application={bar:{},top:{},left:{},insetFooter:{},right:{},bottom:{},footer:{}}}register(e,t,n){this.application[t][e]=n,this.update(t)}unregister(e,t){null!=this.application[t][e]&&(delete this.application[t][e],this.update(t))}update(e){this[e]=Object.values(this.application[e]).reduce((e,t)=>e+t,0)}}ce.property="application";class le extends se{constructor(e){super(),this.xs=!1,this.sm=!1,this.md=!1,this.lg=!1,this.xl=!1,this.xsOnly=!1,this.smOnly=!1,this.smAndDown=!1,this.smAndUp=!1,this.mdOnly=!1,this.mdAndDown=!1,this.mdAndUp=!1,this.lgOnly=!1,this.lgAndDown=!1,this.lgAndUp=!1,this.xlOnly=!1,this.name="xs",this.height=0,this.width=0,this.mobile=!0,this.resizeTimeout=0;var t=e[le.property],n=t.mobileBreakpoint,r=t.scrollBarWidth,i=t.thresholds;this.mobileBreakpoint=n,this.scrollBarWidth=r,this.thresholds=i}init(){this.update(),"undefined"!==typeof window&&window.addEventListener("resize",this.onResize.bind(this),{passive:!0})}update(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=e?0:this.getClientHeight(),n=e?0:this.getClientWidth(),r=n<this.thresholds.xs,i=n<this.thresholds.sm&&!r,o=n<this.thresholds.md-this.scrollBarWidth&&!(i||r),s=n<this.thresholds.lg-this.scrollBarWidth&&!(o||i||r),a=n>=this.thresholds.lg-this.scrollBarWidth;switch(this.height=t,this.width=n,this.xs=r,this.sm=i,this.md=o,this.lg=s,this.xl=a,this.xsOnly=r,this.smOnly=i,this.smAndDown=(r||i)&&!(o||s||a),this.smAndUp=!r&&(i||o||s||a),this.mdOnly=o,this.mdAndDown=(r||i||o)&&!(s||a),this.mdAndUp=!(r||i)&&(o||s||a),this.lgOnly=s,this.lgAndDown=(r||i||o||s)&&!a,this.lgAndUp=!(r||i||o)&&(s||a),this.xlOnly=a,!0){case r:this.name="xs";break;case i:this.name="sm";break;case o:this.name="md";break;case s:this.name="lg";break;default:this.name="xl";break}if("number"!==typeof this.mobileBreakpoint){var u={xs:0,sm:1,md:2,lg:3,xl:4},c=u[this.name],l=u[this.mobileBreakpoint];this.mobile=c<=l}else this.mobile=n<parseInt(this.mobileBreakpoint,10)}onResize(){clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(this.update.bind(this),200)}getClientWidth(){return"undefined"===typeof document?0:Math.max(document.documentElement.clientWidth,window.innerWidth||0)}getClientHeight(){return"undefined"===typeof document?0:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}le.property="breakpoint";n("e6cf");var de=e=>e,he=e=>Math.pow(e,2),fe=e=>e*(2-e),pe=e=>e<.5?2*Math.pow(e,2):(4-2*e)*e-1,ve=e=>Math.pow(e,3),me=e=>Math.pow(--e,3)+1,ge=e=>e<.5?4*Math.pow(e,3):(e-1)*(2*e-2)*(2*e-2)+1,_e=e=>Math.pow(e,4),ye=e=>1-Math.pow(--e,4),be=e=>e<.5?8*e*e*e*e:1-8*--e*e*e*e,we=e=>Math.pow(e,5),Te=e=>1+Math.pow(--e,5),Se=e=>e<.5?16*Math.pow(e,5):1+16*Math.pow(--e,5);function Ce(e){if("number"===typeof e)return e;var t=xe(e);if(!t)throw"string"===typeof e?new Error(`Target element "${e}" not found.`):new TypeError(`Target must be a Number/Selector/HTMLElement/VueComponent, received ${Ae(e)} instead.`);var n=0;while(t)n+=t.offsetTop,t=t.offsetParent;return n}function Ee(e){var t=xe(e);if(t)return t;throw"string"===typeof e?new Error(`Container element "${e}" not found.`):new TypeError(`Container must be a Selector/HTMLElement/VueComponent, received ${Ae(e)} instead.`)}function Ae(e){return null==e?e:e.constructor.name}function xe(e){return"string"===typeof e?document.querySelector(e):e&&e._isVue?e.$el:e instanceof HTMLElement?e:null}function Re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=v({container:document.scrollingElement||document.body||document.documentElement,duration:500,offset:0,easing:"easeInOutCubic",appOffset:!0},t),i=Ee(n.container);if(n.appOffset&&Re.framework.application){var o=i.classList.contains("v-navigation-drawer"),s=i.classList.contains("v-navigation-drawer--clipped"),a=Re.framework.application,u=a.bar,c=a.top;n.offset+=u,o&&!s||(n.offset+=c)}var l,d=performance.now();l="number"===typeof e?Ce(e)-n.offset:Ce(e)-Ce(i)-n.offset;var h=i.scrollTop;if(l===h)return Promise.resolve(l);var f="function"===typeof n.easing?n.easing:r[n.easing];if(!f)throw new TypeError(`Easing function "${n.easing}" not found.`);return new Promise(e=>requestAnimationFrame((function t(r){var o=r-d,s=Math.abs(n.duration?Math.min(o/n.duration,1):1);i.scrollTop=Math.floor(h+(l-h)*f(s));var a=i===document.body?document.documentElement.clientHeight:i.clientHeight,u=a+i.scrollTop>=i.scrollHeight;if(1===s||l>i.scrollTop&&u)return e(l);requestAnimationFrame(t)})))}Re.framework={},Re.init=()=>{};class Oe extends se{constructor(){return super(),Re}}Oe.property="goTo";var Ie={complete:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",cancel:"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",close:"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",delete:"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",clear:"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",success:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z",info:"M13,9H11V7H13M13,17H11V11H13M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2ZM13,9H11V7H13M13,17H11V11H13M12,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",warning:"M13,13H11V7H13M13,17H11V15H13M12,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",error:"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",prev:"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",next:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",checkboxOn:"M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3Z",checkboxOff:"M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z",checkboxIndeterminate:"M17,13H7V11H17M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3Z",delimiter:"M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z",sort:"M13,20H11V8L5.5,13.5L4.08,12.08L12,4.16L19.92,12.08L18.5,13.5L13,8V20Z",expand:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",menu:"M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z",subgroup:"M7,10L12,15L17,10H7Z",dropdown:"M7,10L12,15L17,10H7Z",radioOn:"M12,20C7.58,20 4,16.42 4,12C4,7.58 7.58,4 12,4C16.42,4 20,7.58 20,12C20,16.42 16.42,20 12,20M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2M12,7C9.24,7 7,9.24 7,12C7,14.76 9.24,17 12,17C14.76,17 17,14.76 17,12C17,9.24 14.76,7 12,7Z",radioOff:"M12,20C7.58,20 4,16.42 4,12C4,7.58 7.58,4 12,4C16.42,4 20,7.58 20,12C20,16.42 16.42,20 12,20M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z",edit:"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",ratingEmpty:"M12,15.39L8.24,17.66L9.23,13.38L5.91,10.5L10.29,10.13L12,6.09L13.71,10.13L18.09,10.5L14.77,13.38L15.76,17.66M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z",ratingFull:"M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z",ratingHalf:"M12,15.4V6.1L13.71,10.13L18.09,10.5L14.77,13.39L15.76,17.67M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z",loading:"M19,8L15,12H18C18,15.31 15.31,18 12,18C11,18 10.03,17.75 9.2,17.3L7.74,18.76C8.97,19.54 10.43,20 12,20C16.42,20 20,16.42 20,12H23M6,12C6,8.69 8.69,6 12,6C13,6 13.97,6.25 14.8,6.7L16.26,5.24C15.03,4.46 13.57,4 12,4C7.58,4 4,7.58 4,12H1L5,16L9,12",first:"M18.41,16.59L13.82,12L18.41,7.41L17,6L11,12L17,18L18.41,16.59M6,6H8V18H6V6Z",last:"M5.59,7.41L10.18,12L5.59,16.59L7,18L13,12L7,6L5.59,7.41M16,6H18V18H16V6Z",unfold:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z",file:"M16.5,6V17.5C16.5,19.71 14.71,21.5 12.5,21.5C10.29,21.5 8.5,19.71 8.5,17.5V5C8.5,3.62 9.62,2.5 11,2.5C12.38,2.5 13.5,3.62 13.5,5V15.5C13.5,16.05 13.05,16.5 12.5,16.5C11.95,16.5 11.5,16.05 11.5,15.5V6H10V15.5C10,16.88 11.12,18 12.5,18C13.88,18 15,16.88 15,15.5V5C15,2.79 13.21,1 11,1C8.79,1 7,2.79 7,5V17.5C7,20.54 9.46,23 12.5,23C15.54,23 18,20.54 18,17.5V6H16.5Z",plus:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",minus:"M19,13H5V11H19V13Z"},ke=Ie,Pe={complete:"check",cancel:"cancel",close:"close",delete:"cancel",clear:"clear",success:"check_circle",info:"info",warning:"priority_high",error:"warning",prev:"chevron_left",next:"chevron_right",checkboxOn:"check_box",checkboxOff:"check_box_outline_blank",checkboxIndeterminate:"indeterminate_check_box",delimiter:"fiber_manual_record",sort:"arrow_upward",expand:"keyboard_arrow_down",menu:"menu",subgroup:"arrow_drop_down",dropdown:"arrow_drop_down",radioOn:"radio_button_checked",radioOff:"radio_button_unchecked",edit:"edit",ratingEmpty:"star_border",ratingFull:"star",ratingHalf:"star_half",loading:"cached",first:"first_page",last:"last_page",unfold:"unfold_more",file:"attach_file",plus:"add",minus:"remove"},Me=Pe,Ne={complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-exclamation",error:"mdi-alert",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sort:"mdi-arrow-up",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus"},Le=Ne,De={complete:"fas fa-check",cancel:"fas fa-times-circle",close:"fas fa-times",delete:"fas fa-times-circle",clear:"fas fa-times-circle",success:"fas fa-check-circle",info:"fas fa-info-circle",warning:"fas fa-exclamation-circle",error:"fas fa-exclamation-triangle",prev:"fas fa-chevron-left",next:"fas fa-chevron-right",checkboxOn:"fas fa-check-square",checkboxOff:"far fa-square",checkboxIndeterminate:"fas fa-minus-square",delimiter:"fas fa-circle",sort:"fas fa-sort-up",expand:"fas fa-chevron-down",menu:"fas fa-bars",subgroup:"fas fa-caret-down",dropdown:"fas fa-caret-down",radioOn:"far fa-dot-circle",radioOff:"far fa-circle",edit:"fas fa-edit",ratingEmpty:"far fa-star",ratingFull:"fas fa-star",ratingHalf:"fas fa-star-half",loading:"fas fa-sync",first:"fas fa-step-backward",last:"fas fa-step-forward",unfold:"fas fa-arrows-alt-v",file:"fas fa-paperclip",plus:"fas fa-plus",minus:"fas fa-minus"},Ue=De,je={complete:"fa fa-check",cancel:"fa fa-times-circle",close:"fa fa-times",delete:"fa fa-times-circle",clear:"fa fa-times-circle",success:"fa fa-check-circle",info:"fa fa-info-circle",warning:"fa fa-exclamation",error:"fa fa-exclamation-triangle",prev:"fa fa-chevron-left",next:"fa fa-chevron-right",checkboxOn:"fa fa-check-square",checkboxOff:"fa fa-square-o",checkboxIndeterminate:"fa fa-minus-square",delimiter:"fa fa-circle",sort:"fa fa-sort-up",expand:"fa fa-chevron-down",menu:"fa fa-bars",subgroup:"fa fa-caret-down",dropdown:"fa fa-caret-down",radioOn:"fa fa-dot-circle-o",radioOff:"fa fa-circle-o",edit:"fa fa-pencil",ratingEmpty:"fa fa-star-o",ratingFull:"fa fa-star",ratingHalf:"fa fa-star-half-o",loading:"fa fa-refresh",first:"fa fa-step-backward",last:"fa fa-step-forward",unfold:"fa fa-angle-double-down",file:"fa fa-paperclip",plus:"fa fa-plus",minus:"fa fa-minus"},Fe=je;function He(e,t){var n={};for(var r in t)n[r]={component:e,props:{icon:t[r].split(" fa-")}};return n}var Be=He("font-awesome-icon",Ue),$e=Object.freeze({mdiSvg:ke,md:Me,mdi:Le,fa:Ue,fa4:Fe,faSvg:Be});class qe extends se{constructor(e){super();var t=e[qe.property],n=t.iconfont,r=t.values,i=t.component;this.component=i,this.iconfont=n,this.values=Z($e[n],r)}}qe.property="icons";var Ve="$vuetify.",ze=Symbol("Lang fallback");function We(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=t.replace(Ve,""),o=U(e,i,ze);return o===ze&&(n?(Ct(`Translation key "${i}" not found in fallback`),o=t):(St(`Translation key "${i}" not found, falling back to default`),o=We(r,t,!0,r))),o}class Ge extends se{constructor(e){super(),this.defaultLocale="en";var t=e[Ge.property],n=t.current,r=t.locales,i=t.t;this.current=n,this.locales=r,this.translator=i||this.defaultTranslator}currentLocale(e){var t=this.locales[this.current],n=this.locales[this.defaultLocale];return We(t,e,!1,n)}t(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.startsWith(Ve)?this.translator(e,...n):this.replace(e,n)}defaultTranslator(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return this.replace(this.currentLocale(e),n)}replace(e,t){return e.replace(/\{(\d+)\}/g,(e,n)=>String(t[+n]))}}Ge.property="lang";n("1276"),n("ab43");var Ye=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],Ke=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,Xe=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],Je=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function Qe(e){for(var t=Array(3),n=Ke,r=Ye,i=0;i<3;++i)t[i]=Math.round(255*Q(n(r[i][0]*e[0]+r[i][1]*e[1]+r[i][2]*e[2])));return(t[0]<<16)+(t[1]<<8)+(t[2]<<0)}function Ze(e){for(var t=[0,0,0],n=Je,r=Xe,i=n((e>>16&255)/255),o=n((e>>8&255)/255),s=n((e>>0&255)/255),a=0;a<3;++a)t[a]=r[a][0]*i+r[a][1]*o+r[a][2]*s;return t}function et(e){return!!e&&!!e.match(/^(#|var\(--|(rgb|hsl)a?\()/)}function tt(e){var t;if("number"===typeof e)t=e;else{if("string"!==typeof e)throw new TypeError(`Colors can only be numbers or strings, recieved ${null==e?e:e.constructor.name} instead`);var n="#"===e[0]?e.substring(1):e;3===n.length&&(n=n.split("").map(e=>e+e).join("")),6!==n.length&&St(`'${e}' is not a valid rgb color`),t=parseInt(n,16)}return t<0?(St(`Colors cannot be negative: '${e}'`),t=0):(t>16777215||isNaN(t))&&(St(`'${e}' is not a valid rgb color`),t=16777215),t}function nt(e){var t=e.toString(16);return t.length<6&&(t="0".repeat(6-t.length)+t),"#"+t}function rt(e){return nt(tt(e))}var it=.20689655172413793,ot=e=>e>Math.pow(it,3)?Math.cbrt(e):e/(3*Math.pow(it,2))+4/29,st=e=>e>it?Math.pow(e,3):3*Math.pow(it,2)*(e-4/29);function at(e){var t=ot,n=t(e[1]);return[116*n-16,500*(t(e[0]/.95047)-n),200*(n-t(e[2]/1.08883))]}function ut(e){var t=st,n=(e[0]+16)/116;return[.95047*t(n+e[1]/500),t(n),1.08883*t(n-e[2]/200)]}var ct=["anchor"],lt=["anchor"];function dt(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e.anchor,i=re(e,ct),o=Object.keys(i),s={},a=0;a<o.length;++a){var u=o[a],c=e[u];null!=c&&(n?t?("base"===u||u.startsWith("lighten")||u.startsWith("darken"))&&(s[u]=rt(c)):s[u]="object"===typeof c?dt(c,!0,n):gt(u,tt(c)):s[u]={base:nt(tt(c))})}return t||(s.anchor=r||s.base||s.primary.base),s}var ht=(e,t)=>`\n.v-application .${e} {\n background-color: ${t} !important;\n border-color: ${t} !important;\n}\n.v-application .${e}--text {\n color: ${t} !important;\n caret-color: ${t} !important;\n}`,ft=(e,t,n)=>{var r=t.split(/(\d)/,2),i=k(r,2),o=i[0],s=i[1];return`\n.v-application .${e}.${o}-${s} {\n background-color: ${n} !important;\n border-color: ${n} !important;\n}\n.v-application .${e}--text.text--${o}-${s} {\n color: ${n} !important;\n caret-color: ${n} !important;\n}`},pt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"base";return`--v-${e}-${t}`},vt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"base";return`var(${pt(e,t)})`};function mt(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.anchor,r=re(e,lt),i=Object.keys(r);if(!i.length)return"";var o="",s="",a=t?vt("anchor"):n;s+=`.v-application a { color: ${a}; }`,t&&(o+=` ${pt("anchor")}: ${n};\n`);for(var u=0;u<i.length;++u){var c=i[u],l=e[c];s+=ht(c,t?vt(c):l.base),t&&(o+=` ${pt(c)}: ${l.base};\n`);for(var d=z(l),h=0;h<d.length;++h){var f=d[h],p=l[f];"base"!==f&&(s+=ft(c,f,t?vt(c,f):p),t&&(o+=` ${pt(c,f)}: ${p};\n`))}}return t&&(o=`:root {\n${o}}\n\n`),o+s}function gt(e,t){for(var n={base:nt(t)},r=5;r>0;--r)n["lighten"+r]=nt(_t(t,r));for(var i=1;i<=4;++i)n["darken"+i]=nt(yt(t,i));return n}function _t(e,t){var n=at(Ze(e));return n[0]=n[0]+10*t,Qe(ut(n))}function yt(e,t){var n=at(Ze(e));return n[0]=n[0]-10*t,Qe(ut(n))}class bt extends se{constructor(e){super(),this.disabled=!1,this.isDark=null,this.unwatch=null,this.vueMeta=null;var t=e[bt.property],n=t.dark,r=t.disable,i=t.options,o=t.themes;this.dark=Boolean(n),this.defaults=this.themes=o,this.options=i,r?this.disabled=!0:this.themes={dark:this.fillVariant(o.dark,!0),light:this.fillVariant(o.light,!1)}}set css(e){this.vueMeta?this.isVueMeta23&&this.applyVueMeta23():this.checkOrCreateStyleElement()&&(this.styleEl.innerHTML=e)}set dark(e){var t=this.isDark;this.isDark=e,null!=t&&this.applyTheme()}get dark(){return Boolean(this.isDark)}applyTheme(){if(this.disabled)return this.clearCss();this.css=this.generatedStyles}clearCss(){this.css=""}init(e,t){this.disabled||(e.$meta?this.initVueMeta(e):t&&this.initSSR(t),this.initTheme(e))}setTheme(e,t){this.themes[e]=Object.assign(this.themes[e],t),this.applyTheme()}resetThemes(){this.themes.light=Object.assign({},this.defaults.light),this.themes.dark=Object.assign({},this.defaults.dark),this.applyTheme()}checkOrCreateStyleElement(){return this.styleEl=document.getElementById("vuetify-theme-stylesheet"),!!this.styleEl||(this.genStyleElement(),Boolean(this.styleEl))}fillVariant(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=this.themes[t?"dark":"light"];return Object.assign({},n,e)}genStyleElement(){"undefined"!==typeof document&&(this.styleEl=document.createElement("style"),this.styleEl.type="text/css",this.styleEl.id="vuetify-theme-stylesheet",this.options.cspNonce&&this.styleEl.setAttribute("nonce",this.options.cspNonce),document.head.appendChild(this.styleEl))}initVueMeta(e){if(this.vueMeta=e.$meta(),this.isVueMeta23)e.$nextTick(()=>{this.applyVueMeta23()});else{var t="function"===typeof this.vueMeta.getOptions?this.vueMeta.getOptions().keyName:"metaInfo",n=e.$options[t]||{};e.$options[t]=()=>{n.style=n.style||[];var e=n.style.find(e=>"vuetify-theme-stylesheet"===e.id);return e?e.cssText=this.generatedStyles:n.style.push({cssText:this.generatedStyles,type:"text/css",id:"vuetify-theme-stylesheet",nonce:(this.options||{}).cspNonce}),n}}}applyVueMeta23(){var e=this.vueMeta.addApp("vuetify"),t=e.set;t({style:[{cssText:this.generatedStyles,type:"text/css",id:"vuetify-theme-stylesheet",nonce:this.options.cspNonce}]})}initSSR(e){var t=this.options.cspNonce?` nonce="${this.options.cspNonce}"`:"";e.head=e.head||"",e.head+=`<style type="text/css" id="vuetify-theme-stylesheet"${t}>${this.generatedStyles}</style>`}initTheme(e){"undefined"!==typeof document&&(this.unwatch&&(this.unwatch(),this.unwatch=null),e.$once("hook:created",()=>{var t=g.a.observable({themes:this.themes});this.unwatch=e.$watch(()=>t.themes,()=>this.applyTheme(),{deep:!0})}),this.applyTheme())}get currentTheme(){var e=this.dark?"dark":"light";return this.themes[e]}get generatedStyles(){var e,t=this.parsedTheme,n=this.options||{};return null!=n.themeCache&&(e=n.themeCache.get(t),null!=e)||(e=mt(t,n.customProperties),null!=n.minifyTheme&&(e=n.minifyTheme(e)),null!=n.themeCache&&n.themeCache.set(t,e)),e}get parsedTheme(){return dt(this.currentTheme||{},void 0,D(this.options,["variations"],!0))}get isVueMeta23(){return"function"===typeof this.vueMeta.addApp}}bt.property="theme";class wt{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.framework={isHydrating:!1},this.installed=[],this.preset={},this.userPreset={},this.userPreset=e,this.use(ue),this.use(ce),this.use(le),this.use(Oe),this.use(qe),this.use(Ge),this.use(bt)}init(e,t){this.installed.forEach(n=>{var r=this.framework[n];r.framework=this.framework,r.init(e,t)}),this.framework.rtl=Boolean(this.preset.rtl)}use(e){var t=e.property;this.installed.includes(t)||(this.framework[t]=new e(this.preset,this),this.installed.push(t))}}function Tt(e,t,n){if(!wt.config.silent){if(n&&(t={_isVue:!0,$parent:n,$options:t}),t){if(t.$_alreadyWarned=t.$_alreadyWarned||[],t.$_alreadyWarned.includes(e))return;t.$_alreadyWarned.push(e)}return"[Vuetify] "+e+(t?kt(t):"")}}function St(e,t,n){var r=Tt(e,t,n);null!=r&&console.warn(r)}function Ct(e,t,n){var r=Tt(e,t,n);null!=r&&console.error(r)}function Et(e,t,n,r){St(`[UPGRADE] '${e}' is deprecated, use '${t}' instead.`,n,r)}function At(e,t,n,r){Ct(`[BREAKING] '${e}' has been removed, use '${t}' instead. For more information, see the upgrade guide https://github.com/vuetifyjs/vuetify/releases/tag/v2.0.0#user-content-upgrade-guide`,n,r)}function xt(e,t,n){St(`[REMOVED] '${e}' has been removed. You can safely omit it.`,t,n)}wt.install=te,wt.installed=!1,wt.version="2.7.2",wt.config={silent:!1};var Rt=/(?:^|[-_])(\w)/g,Ot=e=>e.replace(Rt,e=>e.toUpperCase()).replace(/[-_]/g,"");function It(e,t){if(e.$root===e)return"<Root>";var n="function"===typeof e&&null!=e.cid?e.options:e._isVue?e.$options||e.constructor.options:e||{},r=n.name||n._componentTag,i=n.__file;if(!r&&i){var o=i.match(/([^/\\]+)\.vue$/);r=o&&o[1]}return(r?`<${Ot(r)}>`:"<Anonymous>")+(i&&!1!==t?" at "+i:"")}function kt(e){if(e._isVue&&e.$parent){var t=[],n=0;while(e){if(t.length>0){var r=t[t.length-1];if(r.constructor===e.constructor){n++,e=e.$parent;continue}n>0&&(t[t.length-1]=[r,n],n=0)}t.push(e),e=e.$parent}return"\n\nfound in\n\n"+t.map((e,t)=>`${0===t?"---\x3e ":" ".repeat(5+2*t)}${Array.isArray(e)?`${It(e[0])}... (${e[1]} recursive calls)`:It(e)}`).join("\n")}return`\n\n(found in ${It(e)})`}var Pt=E(w,C),Mt=Pt.extend({name:"activatable",props:{activator:{default:null,validator:e=>["string","object"].includes(typeof e)},disabled:Boolean,internalActivator:Boolean,openOnClick:{type:Boolean,default:!0},openOnHover:Boolean,openOnFocus:Boolean},data:()=>({activatorElement:null,activatorNode:[],events:["click","mouseenter","mouseleave","focus"],listeners:{}}),watch:{activator:"resetActivator",openOnFocus:"resetActivator",openOnHover:"resetActivator"},mounted(){var e=X(this,"activator",!0);e&&["v-slot","normal"].includes(e)&&Ct('The activator slot must be bound, try \'<template v-slot:activator="{ on }"><v-btn v-on="on">\'',this),this.addActivatorEvents()},beforeDestroy(){this.removeActivatorEvents()},methods:{addActivatorEvents(){if(this.activator&&!this.disabled&&this.getActivator()){this.listeners=this.genActivatorListeners();for(var e=Object.keys(this.listeners),t=0,n=e;t<n.length;t++){var r=n[t];this.getActivator().addEventListener(r,this.listeners[r])}}},genActivator(){var e=J(this,"activator",Object.assign(this.getValueProxy(),{on:this.genActivatorListeners(),attrs:this.genActivatorAttributes()}))||[];return this.activatorNode=e,e},genActivatorAttributes(){return{role:this.openOnClick&&!this.openOnHover?"button":void 0,"aria-haspopup":!0,"aria-expanded":String(this.isActive)}},genActivatorListeners(){if(this.disabled)return{};var e={};return this.openOnHover?(e.mouseenter=e=>{this.getActivator(e),this.runDelay("open")},e.mouseleave=e=>{this.getActivator(e),this.runDelay("close")}):this.openOnClick&&(e.click=e=>{var t=this.getActivator(e);t&&t.focus(),e.stopPropagation(),this.isActive=!this.isActive}),this.openOnFocus&&(e.focus=e=>{this.getActivator(e),e.stopPropagation(),this.isActive=!this.isActive}),e},getActivator(e){if(this.activatorElement)return this.activatorElement;var t=null;if(this.activator){var n=this.internalActivator?this.$el:document;t="string"===typeof this.activator?n.querySelector(this.activator):this.activator.$el?this.activator.$el:this.activator}else if(1===this.activatorNode.length||this.activatorNode.length&&!e){var r=this.activatorNode[0].componentInstance;t=r&&r.$options.mixins&&r.$options.mixins.some(e=>e.options&&["activatable","menuable"].includes(e.options.name))?r.getActivator():this.activatorNode[0].elm}else e&&(t=e.currentTarget||e.target);return this.activatorElement=(null===t||void 0===t?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null,this.activatorElement},getContentSlot(){return J(this,"default",this.getValueProxy(),!0)},getValueProxy(){var e=this;return{get value(){return e.isActive},set value(t){e.isActive=t}}},removeActivatorEvents(){if(this.activator&&this.activatorElement){for(var e=Object.keys(this.listeners),t=0,n=e;t<n.length;t++){var r=n[t];this.activatorElement.removeEventListener(r,this.listeners[r])}this.listeners={}}},resetActivator(){this.removeActivatorEvents(),this.activatorElement=null,this.getActivator(),this.addActivatorEvents()}}});function Nt(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];r.isActive&&r.isDependent?t.push(r):t.push(...Nt(r.$children))}return t}var Lt=E().extend({name:"dependent",data(){return{closeDependents:!0,isActive:!1,isDependent:!0}},watch:{isActive(e){if(!e)for(var t=this.getOpenDependents(),n=0;n<t.length;n++)t[n].isActive=!1}},methods:{getOpenDependents(){return this.closeDependents?Nt(this.$children):[]},getOpenDependentElements(){for(var e=[],t=this.getOpenDependents(),n=0;n<t.length;n++)e.push(...t[n].getClickableDependentElements());return e},getClickableDependentElements(){var e=[this.$el];return this.$refs.content&&e.push(this.$refs.content),this.overlay&&e.push(this.overlay.$el),e.push(...this.getOpenDependentElements()),e}}}),Dt=g.a.extend().extend({name:"bootable",props:{eager:Boolean},data:()=>({isBooted:!1}),computed:{hasContent(){return this.isBooted||this.eager||this.isActive}},watch:{isActive(){this.isBooted=!0}},created(){"lazy"in this.$attrs&&xt("lazy",this)},methods:{showLazyContent(e){return this.hasContent&&e?e():[this.$createElement()]}}});function Ut(e){var t=typeof e;return"boolean"===t||"string"===t||e.nodeType===Node.ELEMENT_NODE}function jt(e){e.forEach(e=>{e.elm&&e.elm.parentNode&&e.elm.parentNode.removeChild(e.elm)})}var Ft=E(Dt).extend({name:"detachable",props:{attach:{default:!1,validator:Ut},contentClass:{type:String,default:""}},data:()=>({activatorNode:null,hasDetached:!1}),watch:{attach(){this.hasDetached=!1,this.initDetach()},hasContent(){this.$nextTick(this.initDetach)}},beforeMount(){this.$nextTick(()=>{if(this.activatorNode){var e=Array.isArray(this.activatorNode)?this.activatorNode:[this.activatorNode];e.forEach(e=>{if(e.elm&&this.$el.parentNode){var t=this.$el===this.$el.parentNode.firstChild?this.$el:this.$el.nextSibling;this.$el.parentNode.insertBefore(e.elm,t)}})}})},mounted(){this.hasContent&&this.initDetach()},deactivated(){this.isActive=!1},beforeDestroy(){this.$refs.content&&this.$refs.content.parentNode&&this.$refs.content.parentNode.removeChild(this.$refs.content)},destroyed(){if(this.activatorNode){var e=Array.isArray(this.activatorNode)?this.activatorNode:[this.activatorNode];if(this.$el.isConnected){var t=new MutationObserver(n=>{n.some(e=>Array.from(e.removedNodes).includes(this.$el))&&(t.disconnect(),jt(e))});t.observe(this.$el.parentNode,{subtree:!1,childList:!0})}else jt(e)}},methods:{getScopeIdAttrs(){var e=U(this.$vnode,"context.$options._scopeId");return e&&{[e]:""}},initDetach(){var e;this._isDestroyed||!this.$refs.content||this.hasDetached||""===this.attach||!0===this.attach||"attach"===this.attach||(e=!1===this.attach?document.querySelector("[data-app]"):"string"===typeof this.attach?document.querySelector(this.attach):this.attach,e?(e.appendChild(this.$refs.content),this.hasDetached=!0):St("Unable to locate target "+(this.attach||"[data-app]"),this))}}}),Ht=(n("3c93"),g.a.extend({name:"colorable",props:{color:String},methods:{setBackgroundColor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"===typeof t.style?(Ct("style must be an object",this),t):"string"===typeof t.class?(Ct("class must be an object",this),t):(et(e)?t.style=v(v({},t.style),{},{"background-color":""+e,"border-color":""+e}):e&&(t.class=v(v({},t.class),{},{[e]:!0})),t)},setTextColor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"===typeof t.style)return Ct("style must be an object",this),t;if("string"===typeof t.class)return Ct("class must be an object",this),t;if(et(e))t.style=v(v({},t.style),{},{color:""+e,"caret-color":""+e});else if(e){var n=e.toString().trim().split(" ",2),r=k(n,2),i=r[0],o=r[1];t.class=v(v({},t.class),{},{[i+"--text"]:!0}),o&&(t.class["text--"+o]=!0)}return t}}})),Bt=E(Ht,y,C).extend({name:"v-overlay",props:{absolute:Boolean,color:{type:String,default:"#212121"},dark:{type:Boolean,default:!0},opacity:{type:[Number,String],default:.46},value:{default:!0},zIndex:{type:[Number,String],default:5}},computed:{__scrim(){var e=this.setBackgroundColor(this.color,{staticClass:"v-overlay__scrim",style:{opacity:this.computedOpacity}});return this.$createElement("div",e)},classes(){return v({"v-overlay--absolute":this.absolute,"v-overlay--active":this.isActive},this.themeClasses)},computedOpacity(){return Number(this.isActive?this.opacity:0)},styles(){return{zIndex:this.zIndex}}},methods:{genContent(){return this.$createElement("div",{staticClass:"v-overlay__content"},J(this))}},render(e){var t=[this.__scrim];return this.isActive&&t.push(this.genContent()),e("div",{staticClass:"v-overlay",on:this.$listeners,class:this.classes,style:this.styles},t)}}),$t=Bt,qt=g.a.extend().extend({name:"overlayable",props:{hideOverlay:Boolean,overlayColor:String,overlayOpacity:[Number,String]},data(){return{animationFrame:0,overlay:null}},watch:{hideOverlay(e){this.isActive&&(e?this.removeOverlay():this.genOverlay())}},beforeDestroy(){this.removeOverlay()},methods:{createOverlay(){var e=new $t({propsData:{absolute:this.absolute,value:!1,color:this.overlayColor,opacity:this.overlayOpacity}});e.$mount();var t=this.absolute?this.$el.parentNode:document.querySelector("[data-app]");t&&t.insertBefore(e.$el,t.firstChild),this.overlay=e},genOverlay(){if(this.hideScroll(),!this.hideOverlay)return this.overlay||this.createOverlay(),this.animationFrame=requestAnimationFrame(()=>{this.overlay&&(void 0!==this.activeZIndex?this.overlay.zIndex=String(this.activeZIndex-1):this.$el&&(this.overlay.zIndex=j(this.$el)),this.overlay.value=!0)}),!0},removeOverlay(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.overlay&&(P(this.overlay.$el,"transitionend",()=>{this.overlay&&this.overlay.$el&&this.overlay.$el.parentNode&&!this.overlay.value&&!this.isActive&&(this.overlay.$el.parentNode.removeChild(this.overlay.$el),this.overlay.$destroy(),this.overlay=null)}),cancelAnimationFrame(this.animationFrame),this.overlay.value=!1),e&&this.showScroll()},scrollListener(e){if("key"in e){if(["INPUT","TEXTAREA","SELECT"].includes(e.target.tagName)||e.target.isContentEditable)return;var t=[q.up,q.pageup],n=[q.down,q.pagedown];if(t.includes(e.keyCode))e.deltaY=-1;else{if(!n.includes(e.keyCode))return;e.deltaY=1}}(e.target===this.overlay||"keydown"!==e.type&&e.target===document.body||this.checkPath(e))&&e.preventDefault()},hasScrollbar(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e);return(["auto","scroll"].includes(t.overflowY)||"SELECT"===e.tagName)&&e.scrollHeight>e.clientHeight||["auto","scroll"].includes(t.overflowX)&&e.scrollWidth>e.clientWidth},shouldScroll(e,t){if(e.hasAttribute("data-app"))return!1;var n,r,i=t.shiftKey||t.deltaX?"x":"y",o="y"===i?t.deltaY:t.deltaX||t.deltaY;"y"===i?(n=0===e.scrollTop,r=e.scrollTop+e.clientHeight===e.scrollHeight):(n=0===e.scrollLeft,r=e.scrollLeft+e.clientWidth===e.scrollWidth);var s=o<0,a=o>0;return!(n||!s)||(!(r||!a)||!(!n&&!r||!e.parentNode)&&this.shouldScroll(e.parentNode,t))},isInside(e,t){return e===t||null!==e&&e!==document.body&&this.isInside(e.parentNode,t)},checkPath(e){var t=ee(e);if("keydown"===e.type&&t[0]===document.body){var n=this.$refs.dialog,r=window.getSelection().anchorNode;return!(n&&this.hasScrollbar(n)&&this.isInside(r,n))||!this.shouldScroll(n,e)}for(var i=0;i<t.length;i++){var o=t[i];if(o===document)return!0;if(o===document.documentElement)return!0;if(o===this.$refs.content)return!0;if(this.hasScrollbar(o))return!this.shouldScroll(o,e)}return!0},hideScroll(){this.$vuetify.breakpoint.smAndDown?document.documentElement.classList.add("overflow-y-hidden"):(L(window,"wheel",this.scrollListener,{passive:!1}),window.addEventListener("keydown",this.scrollListener))},showScroll(){document.documentElement.classList.remove("overflow-y-hidden"),window.removeEventListener("wheel",this.scrollListener),window.removeEventListener("keydown",this.scrollListener)}}}),Vt=g.a.extend({name:"returnable",props:{returnValue:null},data:()=>({isActive:!1,originalValue:null}),watch:{isActive(e){e?this.originalValue=this.returnValue:this.$emit("update:return-value",this.originalValue)}},methods:{save(e){this.originalValue=e,setTimeout(()=>{this.isActive=!1})}}}),zt=g.a.extend().extend({name:"stackable",data(){return{stackElement:null,stackExclude:null,stackMinZIndex:0,isActive:!1}},computed:{activeZIndex(){if("undefined"===typeof window)return 0;var e=this.stackElement||this.$refs.content,t=this.isActive?this.getMaxZIndex(this.stackExclude||[e])+2:j(e);return null==t?t:parseInt(t)}},methods:{getMaxZIndex(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=this.$el,n=[this.stackMinZIndex,j(t)],r=[...document.getElementsByClassName("v-menu__content--active"),...document.getElementsByClassName("v-dialog__content--active")],i=0;i<r.length;i++)e.includes(r[i])||n.push(j(r[i]));return Math.max(...n)}}});function Wt(e){if("function"!==typeof e.getRootNode){while(e.parentNode)e=e.parentNode;return e!==document?null:document}var t=e.getRootNode();return t!==document&&t.getRootNode({composed:!0})!==document?null:t}function Gt(){return!0}function Yt(e,t,n){if(!e||!1===Kt(e,n))return!1;var r=Wt(t);if("undefined"!==typeof ShadowRoot&&r instanceof ShadowRoot&&r.host===e.target)return!1;var i=("object"===typeof n.value&&n.value.include||(()=>[]))();return i.push(t),!i.some(t=>t.contains(e.target))}function Kt(e,t){var n="object"===typeof t.value&&t.value.closeConditional||Gt;return n(e)}function Xt(e,t,n){var r="function"===typeof n.value?n.value:n.value.handler;t._clickOutside.lastMousedownWasOutside&&Yt(e,t,n)&&setTimeout(()=>{Kt(e,n)&&r&&r(e)},0)}function Jt(e,t){var n=Wt(e);t(document),"undefined"!==typeof ShadowRoot&&n instanceof ShadowRoot&&t(n)}var Qt={inserted(e,t,n){var r=n=>Xt(n,e,t),i=n=>{e._clickOutside.lastMousedownWasOutside=Yt(n,e,t)};Jt(e,e=>{e.addEventListener("click",r,!0),e.addEventListener("mousedown",i,!0)}),e._clickOutside||(e._clickOutside={lastMousedownWasOutside:!0}),e._clickOutside[n.context._uid]={onClick:r,onMousedown:i}},unbind(e,t,n){e._clickOutside&&(Jt(e,t=>{var r;if(t&&(null===(r=e._clickOutside)||void 0===r?void 0:r[n.context._uid])){var i=e._clickOutside[n.context._uid],o=i.onClick,s=i.onMousedown;t.removeEventListener("click",o,!0),t.removeEventListener("mousedown",s,!0)}}),delete e._clickOutside[n.context._uid])}},Zt=Qt,en=E(Lt,Ft,qt,Vt,zt,Mt),tn=en.extend({name:"v-dialog",directives:{ClickOutside:Zt},props:{dark:Boolean,disabled:Boolean,fullscreen:Boolean,light:Boolean,maxWidth:[String,Number],noClickAnimation:Boolean,origin:{type:String,default:"center center"},persistent:Boolean,retainFocus:{type:Boolean,default:!0},scrollable:Boolean,transition:{type:[String,Boolean],default:"dialog-transition"},width:[String,Number]},data(){return{activatedBy:null,animate:!1,animateTimeout:-1,stackMinZIndex:200,previousActiveElement:null}},computed:{classes(){return{[("v-dialog "+this.contentClass).trim()]:!0,"v-dialog--active":this.isActive,"v-dialog--persistent":this.persistent,"v-dialog--fullscreen":this.fullscreen,"v-dialog--scrollable":this.scrollable,"v-dialog--animated":this.animate}},contentClasses(){return{"v-dialog__content":!0,"v-dialog__content--active":this.isActive}},hasActivator(){return Boolean(!!this.$slots.activator||!!this.$scopedSlots.activator)}},watch:{isActive(e){var t;e?(this.show(),this.hideScroll()):(this.removeOverlay(),this.unbind(),null===(t=this.previousActiveElement)||void 0===t||t.focus())},fullscreen(e){this.isActive&&(e?(this.hideScroll(),this.removeOverlay(!1)):(this.showScroll(),this.genOverlay()))}},created(){this.$attrs.hasOwnProperty("full-width")&&xt("full-width",this)},beforeMount(){this.$nextTick(()=>{this.isBooted=this.isActive,this.isActive&&this.show()})},beforeDestroy(){"undefined"!==typeof window&&this.unbind()},methods:{animateClick(){this.animate=!1,this.$nextTick(()=>{this.animate=!0,window.clearTimeout(this.animateTimeout),this.animateTimeout=window.setTimeout(()=>this.animate=!1,150)})},closeConditional(e){var t=e.target;return!(this._isDestroyed||!this.isActive||this.$refs.content.contains(t)||this.overlay&&t&&!this.overlay.$el.contains(t))&&this.activeZIndex>=this.getMaxZIndex()},hideScroll(){this.fullscreen?document.documentElement.classList.add("overflow-y-hidden"):qt.options.methods.hideScroll.call(this)},show(){!this.fullscreen&&!this.hideOverlay&&this.genOverlay(),this.$nextTick(()=>{this.$nextTick(()=>{var e,t;(null===(e=this.$refs.dialog)||void 0===e?void 0:e.contains(document.activeElement))||(this.previousActiveElement=document.activeElement,null===(t=this.$refs.dialog)||void 0===t||t.focus()),this.bind()})})},bind(){window.addEventListener("focusin",this.onFocusin)},unbind(){window.removeEventListener("focusin",this.onFocusin)},onClickOutside(e){this.$emit("click:outside",e),this.persistent?this.noClickAnimation||this.animateClick():this.isActive=!1},onKeydown(e){if(e.keyCode===q.esc&&!this.getOpenDependents().length)if(this.persistent)this.noClickAnimation||this.animateClick();else{this.isActive=!1;var t=this.getActivator();this.$nextTick(()=>t&&t.focus())}this.$emit("keydown",e)},onFocusin(e){if(e&&this.retainFocus){var t=e.target;if(t&&this.$refs.dialog&&![document,this.$refs.dialog].includes(t)&&!this.$refs.dialog.contains(t)&&this.activeZIndex>=this.getMaxZIndex()&&!this.getOpenDependentElements().some(e=>e.contains(t))){var n=this.$refs.dialog.querySelectorAll('button, [href], input:not([type="hidden"]), select, textarea, [tabindex]:not([tabindex="-1"])'),r=[...n].find(e=>!e.hasAttribute("disabled")&&!e.matches('[tabindex="-1"]'));r&&r.focus()}}},genContent(){return this.showLazyContent(()=>[this.$createElement(b,{props:{root:!0,light:this.light,dark:this.dark}},[this.$createElement("div",{class:this.contentClasses,attrs:v({role:"dialog","aria-modal":this.hideOverlay?void 0:"true"},this.getScopeIdAttrs()),on:{keydown:this.onKeydown},style:{zIndex:this.activeZIndex},ref:"content"},[this.genTransition()])])])},genTransition(){var e=this.genInnerContent();return this.transition?this.$createElement("transition",{props:{name:this.transition,origin:this.origin,appear:!0}},[e]):e},genInnerContent(){var e={class:this.classes,attrs:{tabindex:this.isActive?0:void 0},ref:"dialog",directives:[{name:"click-outside",value:{handler:this.onClickOutside,closeConditional:this.closeConditional,include:this.getOpenDependentElements}},{name:"show",value:this.isActive}],style:{transformOrigin:this.origin}};return this.fullscreen||(e.style=v(v({},e.style),{},{maxWidth:H(this.maxWidth),width:H(this.width)})),this.$createElement("div",e,this.getContentSlot())}},render(e){return e("div",{staticClass:"v-dialog__container",class:{"v-dialog__container--attached":""===this.attach||!0===this.attach||"attach"===this.attach}},[this.genActivator(),this.genContent()])}}),nn=tn.extend({name:"v-bottom-sheet",props:{inset:Boolean,maxWidth:[String,Number],transition:{type:String,default:"bottom-sheet-transition"}},computed:{classes(){return v(v({},tn.options.computed.classes.call(this)),{},{"v-bottom-sheet":!0,"v-bottom-sheet--inset":this.inset})}}});n("e9c4"),n("86cc"),n("25a8");function rn(e){return function(t,n){for(var r in n)Object.prototype.hasOwnProperty.call(t,r)||this.$delete(this.$data[e],r);for(var i in t)this.$set(this.$data[e],i,t[i])}}var on=g.a.extend({data:()=>({attrs$:{},listeners$:{}}),created(){this.$watch("$attrs",rn("attrs$"),{immediate:!0}),this.$watch("$listeners",rn("listeners$"),{immediate:!0})}}),sn=g.a.extend({name:"elevatable",props:{elevation:[Number,String]},computed:{computedElevation(){return this.elevation},elevationClasses(){var e=this.computedElevation;return null==e||isNaN(parseInt(e))?{}:{["elevation-"+this.elevation]:!0}}}}),an=g.a.extend({name:"measurable",props:{height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},computed:{measurableStyles(){var e={},t=H(this.height),n=H(this.minHeight),r=H(this.minWidth),i=H(this.maxHeight),o=H(this.maxWidth),s=H(this.width);return t&&(e.height=t),n&&(e.minHeight=n),r&&(e.minWidth=r),i&&(e.maxHeight=i),o&&(e.maxWidth=o),s&&(e.width=s),e}}});function un(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=O(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n["return"]||n["return"]()}finally{if(a)throw o}}}}var cn=g.a.extend({name:"roundable",props:{rounded:[Boolean,String],tile:Boolean},computed:{roundedClasses(){var e=[],t="string"===typeof this.rounded?String(this.rounded):!0===this.rounded;if(this.tile)e.push("rounded-0");else if("string"===typeof t){var n,r=t.split(" "),i=un(r);try{for(i.s();!(n=i.n()).done;){var o=n.value;e.push("rounded-"+o)}}catch(s){i.e(s)}finally{i.f()}}else t&&e.push("rounded");return e.length>0?{[e.join(" ")]:!0}:{}}}}),ln=E(on,Ht,sn,an,cn,y).extend({name:"v-sheet",props:{outlined:Boolean,shaped:Boolean,tag:{type:String,default:"div"}},computed:{classes(){return v(v(v({"v-sheet":!0,"v-sheet--outlined":this.outlined,"v-sheet--shaped":this.shaped},this.themeClasses),this.elevationClasses),this.roundedClasses)},styles(){return this.measurableStyles}},render(e){var t={class:this.classes,style:this.styles,on:this.listeners$};return e(this.tag,this.setBackgroundColor(this.color,t),this.$slots.default)}}),dn=ln;n("acd8"),n("8d4f");function hn(e,t,n){if("undefined"!==typeof window&&"IntersectionObserver"in window){var r=t.modifiers||{},i=t.value,o="object"===typeof i?i:{handler:i,options:{}},s=o.handler,a=o.options,u=new IntersectionObserver((function(){var i,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=arguments.length>1?arguments[1]:void 0,u=null===(i=e._observe)||void 0===i?void 0:i[n.context._uid];if(u){var c=o.some(e=>e.isIntersecting);!s||r.quiet&&!u.init||r.once&&!c&&!u.init||s(o,a,c),c&&r.once?fn(e,t,n):u.init=!0}}),a);e._observe=Object(e._observe),e._observe[n.context._uid]={init:!1,observer:u},u.observe(e)}}function fn(e,t,n){var r,i=null===(r=e._observe)||void 0===r?void 0:r[n.context._uid];i&&(i.observer.unobserve(e),delete e._observe[n.context._uid])}var pn={inserted:hn,unbind:fn},vn=pn,mn=Ht.extend({name:"v-progress-circular",directives:{intersect:vn},props:{button:Boolean,indeterminate:Boolean,rotate:{type:[Number,String],default:0},size:{type:[Number,String],default:32},width:{type:[Number,String],default:4},value:{type:[Number,String],default:0}},data:()=>({radius:20,isVisible:!0}),computed:{calculatedSize(){return Number(this.size)+(this.button?8:0)},circumference(){return 2*Math.PI*this.radius},classes(){return{"v-progress-circular--visible":this.isVisible,"v-progress-circular--indeterminate":this.indeterminate,"v-progress-circular--button":this.button}},normalizedValue(){return this.value<0?0:this.value>100?100:parseFloat(this.value)},strokeDashArray(){return Math.round(1e3*this.circumference)/1e3},strokeDashOffset(){return(100-this.normalizedValue)/100*this.circumference+"px"},strokeWidth(){return Number(this.width)/+this.size*this.viewBoxSize*2},styles(){return{height:H(this.calculatedSize),width:H(this.calculatedSize)}},svgStyles(){return{transform:`rotate(${Number(this.rotate)}deg)`}},viewBoxSize(){return this.radius/(1-Number(this.width)/+this.size)}},methods:{genCircle(e,t){return this.$createElement("circle",{class:"v-progress-circular__"+e,attrs:{fill:"transparent",cx:2*this.viewBoxSize,cy:2*this.viewBoxSize,r:this.radius,"stroke-width":this.strokeWidth,"stroke-dasharray":this.strokeDashArray,"stroke-dashoffset":t}})},genSvg(){var e=[this.indeterminate||this.genCircle("underlay",0),this.genCircle("overlay",this.strokeDashOffset)];return this.$createElement("svg",{style:this.svgStyles,attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:`${this.viewBoxSize} ${this.viewBoxSize} ${2*this.viewBoxSize} ${2*this.viewBoxSize}`}},e)},genInfo(){return this.$createElement("div",{staticClass:"v-progress-circular__info"},J(this))},onObserve(e,t,n){this.isVisible=n}},render(e){return e("div",this.setTextColor(this.color,{staticClass:"v-progress-circular",attrs:{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":this.indeterminate?void 0:this.normalizedValue},class:this.classes,directives:[{name:"intersect",value:this.onObserve}],style:this.styles,on:this.$listeners}),[this.genSvg(),this.genInfo()])}}),gn=mn;function _n(e,t){return()=>St(`The ${e} component must be used inside a ${t}`)}function yn(e,t,n){var r=t&&n?{register:_n(t,n),unregister:_n(t,n)}:null;return g.a.extend({name:"registrable-inject",inject:{[e]:{default:r}}})}function bn(e,t,n){return yn(e,t,n).extend({name:"groupable",props:{activeClass:{type:String,default(){if(this[e])return this[e].activeClass}},disabled:Boolean},data(){return{isActive:!1}},computed:{groupClasses(){return this.activeClass?{[this.activeClass]:this.isActive}:{}}},created(){this[e]&&this[e].register(this)},beforeDestroy(){this[e]&&this[e].unregister(this)},methods:{toggle(e){this.disabled&&e?e.preventDefault():this.$emit("change")}}})}bn("itemGroup");var wn={absolute:Boolean,bottom:Boolean,fixed:Boolean,left:Boolean,right:Boolean,top:Boolean};function Tn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return g.a.extend({name:"positionable",props:e.length?F(wn,e):wn})}var Sn=Tn(),Cn=(n("7435"),80);function En(e,t){e.style.transform=t,e.style.webkitTransform=t}function An(e){return"TouchEvent"===e.constructor.name}function xn(e){return"KeyboardEvent"===e.constructor.name}var Rn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=0,i=0;if(!xn(e)){var o=t.getBoundingClientRect(),s=An(e)?e.touches[e.touches.length-1]:e;r=s.clientX-o.left,i=s.clientY-o.top}var a=0,u=.3;t._ripple&&t._ripple.circle?(u=.15,a=t.clientWidth/2,a=n.center?a:a+Math.sqrt(Math.pow(r-a,2)+Math.pow(i-a,2))/4):a=Math.sqrt(Math.pow(t.clientWidth,2)+Math.pow(t.clientHeight,2))/2;var c=(t.clientWidth-2*a)/2+"px",l=(t.clientHeight-2*a)/2+"px",d=n.center?c:r-a+"px",h=n.center?l:i-a+"px";return{radius:a,scale:u,x:d,y:h,centerX:c,centerY:l}},On={show(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t._ripple&&t._ripple.enabled){var r=document.createElement("span"),i=document.createElement("span");r.appendChild(i),r.className="v-ripple__container",n.class&&(r.className+=" "+n.class);var o=Rn(e,t,n),s=o.radius,a=o.scale,u=o.x,c=o.y,l=o.centerX,d=o.centerY,h=2*s+"px";i.className="v-ripple__animation",i.style.width=h,i.style.height=h,t.appendChild(r);var f=window.getComputedStyle(t);f&&"static"===f.position&&(t.style.position="relative",t.dataset.previousPosition="static"),i.classList.add("v-ripple__animation--enter"),i.classList.add("v-ripple__animation--visible"),En(i,`translate(${u}, ${c}) scale3d(${a},${a},${a})`),i.dataset.activated=String(performance.now()),setTimeout(()=>{i.classList.remove("v-ripple__animation--enter"),i.classList.add("v-ripple__animation--in"),En(i,`translate(${l}, ${d}) scale3d(1,1,1)`)},0)}},hide(e){if(e&&e._ripple&&e._ripple.enabled){var t=e.getElementsByClassName("v-ripple__animation");if(0!==t.length){var n=t[t.length-1];if(!n.dataset.isHiding){n.dataset.isHiding="true";var r=performance.now()-Number(n.dataset.activated),i=Math.max(250-r,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{var t,r=e.getElementsByClassName("v-ripple__animation");1===r.length&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),(null===(t=n.parentNode)||void 0===t?void 0:t.parentNode)===e&&e.removeChild(n.parentNode)},300)},i)}}}}};function In(e){return"undefined"===typeof e||!!e}function kn(e){var t={},n=e.currentTarget;if(n&&n._ripple&&!n._ripple.touched&&!e.rippleStop){if(e.rippleStop=!0,An(e))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(t.center=n._ripple.centered||xn(e),n._ripple.class&&(t.class=n._ripple.class),An(e)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{On.show(e,n,t)},n._ripple.showTimer=window.setTimeout(()=>{n&&n._ripple&&n._ripple.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},Cn)}else On.show(e,n,t)}}function Pn(e){var t=e.currentTarget;if(t&&t._ripple){if(window.clearTimeout(t._ripple.showTimer),"touchend"===e.type&&t._ripple.showTimerCommit)return t._ripple.showTimerCommit(),t._ripple.showTimerCommit=null,void(t._ripple.showTimer=setTimeout(()=>{Pn(e)}));window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),On.hide(t)}}function Mn(e){var t=e.currentTarget;t&&t._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}var Nn=!1;function Ln(e){Nn||e.keyCode!==q.enter&&e.keyCode!==q.space||(Nn=!0,kn(e))}function Dn(e){Nn=!1,Pn(e)}function Un(e){!0===Nn&&(Nn=!1,Pn(e))}function jn(e,t,n){var r=In(t.value);r||On.hide(e),e._ripple=e._ripple||{},e._ripple.enabled=r;var i=t.value||{};i.center&&(e._ripple.centered=!0),i.class&&(e._ripple.class=t.value.class),i.circle&&(e._ripple.circle=i.circle),r&&!n?(e.addEventListener("touchstart",kn,{passive:!0}),e.addEventListener("touchend",Pn,{passive:!0}),e.addEventListener("touchmove",Mn,{passive:!0}),e.addEventListener("touchcancel",Pn),e.addEventListener("mousedown",kn),e.addEventListener("mouseup",Pn),e.addEventListener("mouseleave",Pn),e.addEventListener("keydown",Ln),e.addEventListener("keyup",Dn),e.addEventListener("blur",Un),e.addEventListener("dragstart",Pn,{passive:!0})):!r&&n&&Fn(e)}function Fn(e){e.removeEventListener("mousedown",kn),e.removeEventListener("touchstart",kn),e.removeEventListener("touchend",Pn),e.removeEventListener("touchmove",Mn),e.removeEventListener("touchcancel",Pn),e.removeEventListener("mouseup",Pn),e.removeEventListener("mouseleave",Pn),e.removeEventListener("keydown",Ln),e.removeEventListener("keyup",Dn),e.removeEventListener("dragstart",Pn),e.removeEventListener("blur",Un)}function Hn(e,t,n){jn(e,t,!1)}function Bn(e){delete e._ripple,Fn(e)}function $n(e,t){if(t.value!==t.oldValue){var n=In(t.oldValue);jn(e,t,n)}}var qn={bind:Hn,unbind:Bn,update:$n},Vn=qn,zn=g.a.extend({name:"routable",directives:{Ripple:Vn},props:{activeClass:String,append:Boolean,disabled:Boolean,exact:{type:Boolean,default:void 0},exactPath:Boolean,exactActiveClass:String,link:Boolean,href:[String,Object],to:[String,Object],nuxt:Boolean,replace:Boolean,ripple:{type:[Boolean,Object],default:null},tag:String,target:String},data:()=>({isActive:!1,proxyClass:""}),computed:{classes(){var e={};return this.to||(this.activeClass&&(e[this.activeClass]=this.isActive),this.proxyClass&&(e[this.proxyClass]=this.isActive)),e},computedRipple(){var e;return null!==(e=this.ripple)&&void 0!==e?e:!this.disabled&&this.isClickable},isClickable(){return!this.disabled&&Boolean(this.isLink||this.$listeners.click||this.$listeners["!click"]||this.$attrs.tabindex)},isLink(){return this.to||this.href||this.link},styles:()=>({})},watch:{$route:"onRouteChange"},mounted(){this.onRouteChange()},methods:{generateRouteLink(){var e,t=this.exact,n={attrs:{tabindex:"tabindex"in this.$attrs?this.$attrs.tabindex:void 0},class:this.classes,style:this.styles,props:{},directives:[{name:"ripple",value:this.computedRipple}],[this.to?"nativeOn":"on"]:v(v({},this.$listeners),"click"in this?{click:this.click}:void 0),ref:"link"};if("undefined"===typeof this.exact&&(t="/"===this.to||this.to===Object(this.to)&&"/"===this.to.path),this.to){var r=this.activeClass,i=this.exactActiveClass||r;this.proxyClass&&(r=`${r} ${this.proxyClass}`.trim(),i=`${i} ${this.proxyClass}`.trim()),e=this.nuxt?"nuxt-link":"router-link",Object.assign(n.props,{to:this.to,exact:t,exactPath:this.exactPath,activeClass:r,exactActiveClass:i,append:this.append,replace:this.replace})}else e=(this.href?"a":this.tag)||"div","a"===e&&this.href&&(n.attrs.href=this.href);return this.target&&(n.attrs.target=this.target),{tag:e,data:n}},onRouteChange(){if(this.to&&this.$refs.link&&this.$route){var e=`${this.activeClass||""} ${this.proxyClass||""}`.trim(),t=`${this.exactActiveClass||""} ${this.proxyClass||""}`.trim()||e,n="_vnode.data.class."+(this.exact?t:e);this.$nextTick(()=>{!U(this.$refs.link,n)===this.isActive&&this.toggle()})}},toggle(){this.isActive=!this.isActive}}}),Wn=g.a.extend({name:"sizeable",props:{large:Boolean,small:Boolean,xLarge:Boolean,xSmall:Boolean},computed:{medium(){return Boolean(!this.xSmall&&!this.small&&!this.large&&!this.xLarge)},sizeableClasses(){return{"v-size--x-small":this.xSmall,"v-size--small":this.small,"v-size--default":this.medium,"v-size--large":this.large,"v-size--x-large":this.xLarge}}}}),Gn=E(dn,zn,Sn,Wn,bn("btnToggle"),T("inputValue")),Yn=Gn.extend().extend({name:"v-btn",props:{activeClass:{type:String,default(){return this.btnToggle?this.btnToggle.activeClass:""}},block:Boolean,depressed:Boolean,fab:Boolean,icon:Boolean,loading:Boolean,outlined:Boolean,plain:Boolean,retainFocusOnClick:Boolean,rounded:Boolean,tag:{type:String,default:"button"},text:Boolean,tile:Boolean,type:{type:String,default:"button"},value:null},data:()=>({proxyClass:"v-btn--active"}),computed:{classes(){return v(v(v(v(v({"v-btn":!0},zn.options.computed.classes.call(this)),{},{"v-btn--absolute":this.absolute,"v-btn--block":this.block,"v-btn--bottom":this.bottom,"v-btn--disabled":this.disabled,"v-btn--is-elevated":this.isElevated,"v-btn--fab":this.fab,"v-btn--fixed":this.fixed,"v-btn--has-bg":this.hasBg,"v-btn--icon":this.icon,"v-btn--left":this.left,"v-btn--loading":this.loading,"v-btn--outlined":this.outlined,"v-btn--plain":this.plain,"v-btn--right":this.right,"v-btn--round":this.isRound,"v-btn--rounded":this.rounded,"v-btn--router":this.to,"v-btn--text":this.text,"v-btn--tile":this.tile,"v-btn--top":this.top},this.themeClasses),this.groupClasses),this.elevationClasses),this.sizeableClasses)},computedElevation(){if(!this.disabled)return sn.options.computed.computedElevation.call(this)},computedRipple(){var e,t=!this.icon&&!this.fab||{circle:!0};return!this.disabled&&(null!==(e=this.ripple)&&void 0!==e?e:t)},hasBg(){return!this.text&&!this.plain&&!this.outlined&&!this.icon},isElevated(){return Boolean(!this.icon&&!this.text&&!this.outlined&&!this.depressed&&!this.disabled&&!this.plain&&(null==this.elevation||Number(this.elevation)>0))},isRound(){return Boolean(this.icon||this.fab)},styles(){return v({},this.measurableStyles)}},created(){var e=[["flat","text"],["outline","outlined"],["round","rounded"]];e.forEach(e=>{var t=k(e,2),n=t[0],r=t[1];this.$attrs.hasOwnProperty(n)&&At(n,r,this)})},methods:{click(e){!this.retainFocusOnClick&&!this.fab&&e.detail&&this.$el.blur(),this.$emit("click",e),this.btnToggle&&this.toggle()},genContent(){return this.$createElement("span",{staticClass:"v-btn__content"},J(this))},genLoader(){return this.$createElement("span",{class:"v-btn__loader"},J(this,"loader")||[this.$createElement(gn,{props:{indeterminate:!0,size:23,width:2}})])}},render(e){var t=[this.genContent(),this.loading&&this.genLoader()],n=this.generateRouteLink(),r=n.tag,i=n.data,o=this.hasBg?this.setBackgroundColor:this.setTextColor;return"button"===r&&(i.attrs.type=this.type,i.attrs.disabled=this.disabled),i.attrs.value=["string","number"].includes(typeof this.value)?this.value:JSON.stringify(this.value),e(r,this.disabled?i:o(this.color,i),t)}}),Kn=(n("4ec9"),n("4b85"),{styleList:/;(?![^(]*\))/g,styleProp:/:(.*)/});function Xn(e){var t,n={},r=un(e.split(Kn.styleList));try{for(r.s();!(t=r.n()).done;){var i=t.value,o=i.split(Kn.styleProp),s=k(o,2),a=s[0],u=s[1];a=a.trim(),a&&("string"===typeof u&&(u=u.trim()),n[G(a)]=u)}}catch(c){r.e(c)}finally{r.f()}return n}function Jn(){var e,t={},n=arguments.length;while(n--)for(var r=0,i=Object.keys(arguments[n]);r<i.length;r++)switch(e=i[r],e){case"class":case"directives":arguments[n][e]&&(t[e]=Zn(t[e],arguments[n][e]));break;case"style":arguments[n][e]&&(t[e]=Qn(t[e],arguments[n][e]));break;case"staticClass":if(!arguments[n][e])break;void 0===t[e]&&(t[e]=""),t[e]&&(t[e]+=" "),t[e]+=arguments[n][e].trim();break;case"on":case"nativeOn":arguments[n][e]&&(t[e]=er(t[e],arguments[n][e]));break;case"attrs":case"props":case"domProps":case"scopedSlots":case"staticStyle":case"hook":case"transition":if(!arguments[n][e])break;t[e]||(t[e]={}),t[e]=v(v({},arguments[n][e]),t[e]);break;default:t[e]||(t[e]=arguments[n][e])}return t}function Qn(e,t){return e?t?(e=K("string"===typeof e?Xn(e):e),e.concat("string"===typeof t?Xn(t):t)):e:t}function Zn(e,t){return t?e&&e?K(e).concat(t):t:e}function er(){if(!(arguments.length<=0?void 0:arguments[0]))return arguments.length<=1?void 0:arguments[1];if(!(arguments.length<=1?void 0:arguments[1]))return arguments.length<=0?void 0:arguments[0];for(var e={},t=2;t--;){var n=t<0||arguments.length<=t?void 0:arguments[t];for(var r in n)n[r]&&(e[r]?e[r]=[].concat(n[r],e[r]):e[r]=n[r])}return e}var tr=["sm","md","lg","xl"],nr=(()=>tr.reduce((e,t)=>(e[t]={type:[Boolean,String,Number],default:!1},e),{}))(),rr=(()=>tr.reduce((e,t)=>(e["offset"+Y(t)]={type:[String,Number],default:null},e),{}))(),ir=(()=>tr.reduce((e,t)=>(e["order"+Y(t)]={type:[String,Number],default:null},e),{}))(),or={col:Object.keys(nr),offset:Object.keys(rr),order:Object.keys(ir)};function sr(e,t,n){var r=e;if(null!=n&&!1!==n){if(t){var i=t.replace(e,"");r+="-"+i}return"col"!==e||""!==n&&!0!==n?(r+="-"+n,r.toLowerCase()):r.toLowerCase()}}var ar=new Map,ur=g.a.extend({name:"v-col",functional:!0,props:v(v(v(v({cols:{type:[Boolean,String,Number],default:!1}},nr),{},{offset:{type:[String,Number],default:null}},rr),{},{order:{type:[String,Number],default:null}},ir),{},{alignSelf:{type:String,default:null,validator:e=>["auto","start","end","center","baseline","stretch"].includes(e)},tag:{type:String,default:"div"}}),render(e,t){var n=t.props,r=t.data,i=t.children,o=(t.parent,"");for(var s in n)o+=String(n[s]);var a=ar.get(o);if(!a){var u;for(u in a=[],or)or[u].forEach(e=>{var t=n[e],r=sr(u,e,t);r&&a.push(r)});var c=a.some(e=>e.startsWith("col-"));a.push({col:!c||!n.cols,["col-"+n.cols]:n.cols,["offset-"+n.offset]:n.offset,["order-"+n.order]:n.order,["align-self-"+n.alignSelf]:n.alignSelf}),ar.set(o,a)}return e(n.tag,Jn(r,{class:a}),i)}});function cr(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Array().concat(e,...n)}function lr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top center 0",n=arguments.length>2?arguments[2]:void 0;return{name:e,functional:!0,props:{group:{type:Boolean,default:!1},hideOnLeave:{type:Boolean,default:!1},leaveAbsolute:{type:Boolean,default:!1},mode:{type:String,default:n},origin:{type:String,default:t}},render(t,n){var r="transition"+(n.props.group?"-group":""),i={props:{name:e,mode:n.props.mode},on:{beforeEnter(e){e.style.transformOrigin=n.props.origin,e.style.webkitTransformOrigin=n.props.origin}}};return n.props.leaveAbsolute&&(i.on.leave=cr(i.on.leave,e=>{var t=e.offsetTop,n=e.offsetLeft,r=e.offsetWidth,i=e.offsetHeight;e._transitionInitialStyles={position:e.style.position,top:e.style.top,left:e.style.left,width:e.style.width,height:e.style.height},e.style.position="absolute",e.style.top=t+"px",e.style.left=n+"px",e.style.width=r+"px",e.style.height=i+"px"}),i.on.afterLeave=cr(i.on.afterLeave,e=>{if(e&&e._transitionInitialStyles){var t=e._transitionInitialStyles,n=t.position,r=t.top,i=t.left,o=t.width,s=t.height;delete e._transitionInitialStyles,e.style.position=n||"",e.style.top=r||"",e.style.left=i||"",e.style.width=o||"",e.style.height=s||""}})),n.props.hideOnLeave&&(i.on.leave=cr(i.on.leave,e=>{e.style.setProperty("display","none","important")})),t(r,Jn(n.data,i),n.children)}}}function dr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"in-out";return{name:e,functional:!0,props:{mode:{type:String,default:n}},render(n,r){return n("transition",Jn(r.data,{props:{name:e},on:t}),r.children)}}}var hr,fr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t?"width":"height",r="offset"+Y(n);return{beforeEnter(e){e._parent=e.parentNode,e._initialStyle={transition:e.style.transition,overflow:e.style.overflow,[n]:e.style[n]}},enter(t){var i=t._initialStyle;t.style.setProperty("transition","none","important"),t.style.overflow="hidden";var o=t[r]+"px";t.style[n]="0",t.offsetHeight,t.style.transition=i.transition,e&&t._parent&&t._parent.classList.add(e),requestAnimationFrame(()=>{t.style[n]=o})},afterEnter:o,enterCancelled:o,leave(e){e._initialStyle={transition:"",overflow:e.style.overflow,[n]:e.style[n]},e.style.overflow="hidden",e.style[n]=e[r]+"px",e.offsetHeight,requestAnimationFrame(()=>e.style[n]="0")},afterLeave:i,leaveCancelled:i};function i(t){e&&t._parent&&t._parent.classList.remove(e),o(t)}function o(e){var t=e._initialStyle[n];e.style.overflow=e._initialStyle.overflow,null!=t&&(e.style[n]=t),delete e._initialStyle}},pr=(lr("carousel-transition"),lr("carousel-reverse-transition"),lr("tab-transition"),lr("tab-reverse-transition"),lr("menu-transition"),lr("fab-transition","center center","out-in"),lr("dialog-transition"),lr("dialog-bottom-transition"),lr("dialog-top-transition"),lr("fade-transition"),lr("scale-transition"),lr("scroll-x-transition"),lr("scroll-x-reverse-transition"),lr("scroll-y-transition"),lr("scroll-y-reverse-transition"),lr("slide-x-transition"),lr("slide-x-reverse-transition"),lr("slide-y-transition"),lr("slide-y-reverse-transition"),dr("expand-transition",fr())),vr=dr("expand-x-transition",fr("",!0));n("4804");function mr(e){return["fas","far","fal","fab","fad","fak"].some(t=>e.includes(t))}function gr(e){return/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(e)&&/[\dz]$/i.test(e)&&e.length>4}(function(e){e["xSmall"]="12px",e["small"]="16px",e["default"]="24px",e["medium"]="28px",e["large"]="36px",e["xLarge"]="40px"})(hr||(hr={}));var _r=E(on,Ht,Wn,y).extend({name:"v-icon",props:{dense:Boolean,disabled:Boolean,left:Boolean,right:Boolean,size:[Number,String],tag:{type:String,required:!1,default:"i"}},computed:{medium(){return!1},hasClickListener(){return Boolean(this.listeners$.click||this.listeners$["!click"])}},methods:{getIcon(){var e="";return this.$slots.default&&(e=this.$slots.default[0].text.trim()),V(this,e)},getSize(){var e={xSmall:this.xSmall,small:this.small,medium:this.medium,large:this.large,xLarge:this.xLarge},t=z(e).find(t=>e[t]);return t&&hr[t]||H(this.size)},getDefaultData(){return{staticClass:"v-icon notranslate",class:{"v-icon--disabled":this.disabled,"v-icon--left":this.left,"v-icon--link":this.hasClickListener,"v-icon--right":this.right,"v-icon--dense":this.dense},attrs:v({"aria-hidden":!this.hasClickListener,disabled:this.hasClickListener&&this.disabled,type:this.hasClickListener?"button":void 0},this.attrs$),on:this.listeners$}},getSvgWrapperData(){var e=this.getSize(),t=v(v({},this.getDefaultData()),{},{style:e?{fontSize:e,height:e,width:e}:void 0});return this.applyColors(t),t},applyColors(e){e.class=v(v({},e.class),this.themeClasses),this.setTextColor(this.color,e)},renderFontIcon(e,t){var n=[],r=this.getDefaultData(),i="material-icons",o=e.indexOf("-"),s=o<=-1;s?n.push(e):(i=e.slice(0,o),mr(i)&&(i="")),r.class[i]=!0,r.class[e]=!s;var a=this.getSize();return a&&(r.style={fontSize:a}),this.applyColors(r),t(this.hasClickListener?"button":this.tag,r,n)},renderSvgIcon(e,t){var n={class:"v-icon__svg",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":!0}},r=this.getSize();return r&&(n.style={fontSize:r,height:r,width:r}),t(this.hasClickListener?"button":"span",this.getSvgWrapperData(),[t("svg",n,[t("path",{attrs:{d:e}})])])},renderSvgIconComponent(e,t){var n={class:{"v-icon__component":!0}},r=this.getSize();r&&(n.style={fontSize:r,height:r,width:r}),this.applyColors(n);var i=e.component;return n.props=e.props,n.nativeOn=n.on,t(this.hasClickListener?"button":"span",this.getSvgWrapperData(),[t(i,n)])}},render(e){var t=this.getIcon();return"string"===typeof t?gr(t)?this.renderSvgIcon(t,e):this.renderFontIcon(t,e):this.renderSvgIconComponent(t,e)}}),yr=g.a.extend({name:"v-icon",$_wrapperFor:_r,functional:!0,render(e,t){var n=t.data,r=t.children,i="";return n.domProps&&(i=n.domProps.textContent||n.domProps.innerHTML||i,delete n.domProps.textContent,delete n.domProps.innerHTML),e(_r,n,i?[i]:r)}}),br=["sm","md","lg","xl"],wr=["start","end","center"];function Tr(e,t){return br.reduce((n,r)=>(n[e+Y(r)]=t(),n),{})}var Sr=e=>[...wr,"baseline","stretch"].includes(e),Cr=Tr("align",()=>({type:String,default:null,validator:Sr})),Er=e=>[...wr,"space-between","space-around"].includes(e),Ar=Tr("justify",()=>({type:String,default:null,validator:Er})),xr=e=>[...wr,"space-between","space-around","stretch"].includes(e),Rr=Tr("alignContent",()=>({type:String,default:null,validator:xr})),Or={align:Object.keys(Cr),justify:Object.keys(Ar),alignContent:Object.keys(Rr)},Ir={align:"align",justify:"justify",alignContent:"align-content"};function kr(e,t,n){var r=Ir[e];if(null!=n){if(t){var i=t.replace(e,"");r+="-"+i}return r+="-"+n,r.toLowerCase()}}var Pr=new Map,Mr=g.a.extend({name:"v-row",functional:!0,props:v(v(v({tag:{type:String,default:"div"},dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:Sr}},Cr),{},{justify:{type:String,default:null,validator:Er}},Ar),{},{alignContent:{type:String,default:null,validator:xr}},Rr),render(e,t){var n=t.props,r=t.data,i=t.children,o="";for(var s in n)o+=String(n[s]);var a=Pr.get(o);if(!a){var u;for(u in a=[],Or)Or[u].forEach(e=>{var t=n[e],r=kr(u,e,t);r&&a.push(r)});a.push({"no-gutters":n.noGutters,"row--dense":n.dense,["align-"+n.align]:n.align,["justify-"+n.justify]:n.justify,["align-content-"+n.alignContent]:n.alignContent}),Pr.set(o,a)}return e(n.tag,Jn(r,{staticClass:"row",class:a}),i)}}),Nr=(n("ca71"),E(ln,Ht,C,Tn(["absolute","bottom","left","right","top"])).extend({name:"v-snackbar",props:{app:Boolean,centered:Boolean,contentClass:{type:String,default:""},multiLine:Boolean,text:Boolean,timeout:{type:[Number,String],default:5e3},transition:{type:[Boolean,String],default:"v-snack-transition",validator:e=>"string"===typeof e||!1===e},vertical:Boolean},data:()=>({activeTimeout:-1}),computed:{classes(){return{"v-snack--absolute":this.absolute,"v-snack--active":this.isActive,"v-snack--bottom":this.bottom||!this.top,"v-snack--centered":this.centered,"v-snack--has-background":this.hasBackground,"v-snack--left":this.left,"v-snack--multi-line":this.multiLine&&!this.vertical,"v-snack--right":this.right,"v-snack--text":this.text,"v-snack--top":this.top,"v-snack--vertical":this.vertical}},hasBackground(){return!this.text&&!this.outlined},isDark(){return this.hasBackground?!this.light:y.options.computed.isDark.call(this)},styles(){if(this.absolute||!this.app)return{};var e=this.$vuetify.application,t=e.bar,n=e.bottom,r=e.footer,i=e.insetFooter,o=e.left,s=e.right,a=e.top;return{paddingBottom:H(n+r+i),paddingLeft:H(o),paddingRight:H(s),paddingTop:H(t+a)}}},watch:{isActive:"setTimeout",timeout:"setTimeout"},mounted(){this.isActive&&this.setTimeout()},created(){this.$attrs.hasOwnProperty("auto-height")&&xt("auto-height",this),0==this.timeout&&Et('timeout="0"',"-1",this)},methods:{genActions(){return this.$createElement("div",{staticClass:"v-snack__action "},[J(this,"action",{attrs:{class:"v-snack__btn"}})])},genContent(){return this.$createElement("div",{staticClass:"v-snack__content",class:{[this.contentClass]:!0},attrs:{role:"status","aria-live":"polite"}},[J(this)])},genWrapper(){var e=this.hasBackground?this.setBackgroundColor:this.setTextColor,t=e(this.color,{staticClass:"v-snack__wrapper",class:ln.options.computed.classes.call(this),style:ln.options.computed.styles.call(this),directives:[{name:"show",value:this.isActive}],on:{pointerenter:()=>window.clearTimeout(this.activeTimeout),pointerleave:this.setTimeout}});return this.$createElement("div",t,[this.genContent(),this.genActions()])},genTransition(){return this.$createElement("transition",{props:{name:this.transition}},[this.genWrapper()])},setTimeout(){window.clearTimeout(this.activeTimeout);var e=Number(this.timeout);this.isActive&&![0,-1].includes(e)&&(this.activeTimeout=window.setTimeout(()=>{this.isActive=!1},e))}},render(e){return e("div",{staticClass:"v-snack",class:this.classes,style:this.styles},[!1!==this.transition?this.genTransition():this.genWrapper()])}})),Lr=function(){var e=this,t=e._self._c;return t("div",{staticClass:"d-flex flex-column align-center justify-space-between sip-call-main",class:e.isAPP?"my-APP":""},[e.showLocation?t("div",{staticClass:"location-wrapper"},[t("p",[e._v("LAT: "+e._s(e.latitude))]),t("p",[e._v("LNG: "+e._s(e.longitude))]),t("p",[e._v("ALT: "+e._s(e.altitude))])]):e._e(),e.miniMode||e.showDialPad?e._e():t("div",{staticClass:"d-flex flex-column align-center call-btn"},[t("img",{staticClass:"elevation-4 call-img",attrs:{alt:"logo",src:"https://kefu-gm-jc-dat.boc-samsunglife.cn/static/normal-logo.png"}}),t("p",{staticClass:"mt-6 mb-0 call-label"},[e._v(e._s(e.callPrompt))])]),e.miniMode||e.showDialPad?e._e():t("div",{staticClass:"pr-10 pl-10 btn-group"},[t(Mr,[t(ur,{staticClass:"text-center",attrs:{cols:"12"}},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.isCalling&&e.showHangup,expression:"isCalling && showHangup"}],staticClass:"call-duration"},[e._v(" 视频时长 "+e._s(e.duration)+" ")])])],1),t(Mr,{staticClass:"d-flex justify-space-around mb-10"},[t(Yn,{directives:[{name:"show",rawName:"v-show",value:!e.isCalling&&!e.needDial,expression:"!isCalling && !needDial"}],staticClass:"cancel-btn",staticStyle:{},on:{click:e.onHangupBtnClick}},[t("img",{staticClass:"cancel-img",attrs:{src:"https://kefu-gm-jc-dat.boc-samsunglife.cn/static/call-down.png",alt:"hangup"}}),t("span",{staticClass:"cancel-label"},[e._v("取消")])]),t(Yn,{directives:[{name:"show",rawName:"v-show",value:e.isCalling&&e.showHangup,expression:"isCalling && showHangup"}],staticClass:"custom-mute-btn",attrs:{large:""},on:{click:function(t){return e.onMuteBtnClick("audio")}}},[e.isAudioMute?t("img",{staticClass:"img-open-close",attrs:{src:"https://kefu-gm-jc-dat.boc-samsunglife.cn/static/adudio-close.png"}}):t("img",{staticClass:"img-open-close",attrs:{src:"https://kefu-gm-jc-dat.boc-samsunglife.cn/static/adudio-open.png"}})]),t(Yn,{directives:[{name:"show",rawName:"v-show",value:e.isCalling&&e.showHangup,expression:"isCalling && showHangup"}],staticClass:"custom-mute-btn",attrs:{large:""},on:{click:function(t){return e.onMuteBtnClick("video")}}},[e.isVideoMute?t("img",{staticClass:"img-open-close",attrs:{src:"https://kefu-gm-jc-dat.boc-samsunglife.cn/static/camera-close.png",alt:"mic-off"}}):t("img",{staticClass:"img-open-close",attrs:{src:"https://kefu-gm-jc-dat.boc-samsunglife.cn/static/camera-open.png",alt:"mic-on"}})])],1),t(Mr,{staticClass:"d-flex justify-center mt-10",staticStyle:{position:"relative",width:"100%"}},[t(Yn,{directives:[{name:"show",rawName:"v-show",value:e.isCalling&&e.showHangup,expression:"isCalling && showHangup"}],staticStyle:{opacity:"1",background:"transparent","box-shadow":"none",position:"relative"},on:{click:e.onHangupBtnClick}},[t("img",{staticClass:"hangup-img",attrs:{src:"https://kefu-gm-jc-dat.boc-samsunglife.cn/static/call-down.png",alt:"hangup"}}),t("span",{staticClass:"hangup-label"},[e._v("挂断")])]),t(Yn,{directives:[{name:"show",rawName:"v-show",value:e.isCalling&&e.showHangup,expression:"isCalling && showHangup"}],staticClass:"transparent-btn",on:{click:e.onSwitchCameraBtnClick}},[t(yr,{attrs:{size:"30"}},[e._v("mdi-camera-flip")])],1)],1)],1),e._v("· "),t(pr,[t("div",{directives:[{name:"show",rawName:"v-show",value:e.showVideoCt,expression:"showVideoCt"}],staticClass:"sip-call-wrapper",on:{click:e.onSipCallClick}},[t("vue-draggable-resizable",{directives:[{name:"show",rawName:"v-show",value:e.remoteVideo.show,expression:"remoteVideo.show"}],ref:"remoteVideoWrapper",attrs:{w:e.remoteVideo.w,h:e.remoteVideo.h,x:e.remoteVideo.x,y:e.remoteVideo.y,z:e.remoteVideo.z,draggable:e.remoteVideo.draggable,handles:[],parent:!0,active:!1,"class-name":"elevation-6 video-panel"},nativeOn:{mousedown:function(t){return e.onLocalVideoDragCallback(t,"remoteVideo")}}},[e.miniMode?t(Yn,{staticClass:"video-normal-mode",attrs:{dark:"",text:"","x-small":"",width:"24",height:"24","min-width":"24"},on:{click:e.onChangeVideoNormalModeBtnClick}},[t(yr,[e._v("mdi-arrow-bottom-right-bold-box")])],1):e._e(),t("video",{directives:[{name:"show",rawName:"v-show",value:e.remoteVideo.show,expression:"remoteVideo.show"}],ref:"remoteVideo",staticClass:"sip-call-video",staticStyle:{"object-fit":"contain"},attrs:{autoplay:"autoplay","webkit-playsinline":"true",playsinline:"true","x-webkit-airplay":"true","x5-video-player-type":"h5","x5-video-orientation":"h5",controls:""}})],1),t("vue-draggable-resizable",{directives:[{name:"show",rawName:"v-show",value:e.localVideo.show,expression:"localVideo.show"}],ref:"localVideoWrapper",attrs:{w:e.localVideo.w,h:e.localVideo.h,x:e.localVideo.x,y:e.localVideo.y,z:e.localVideo.z,draggable:e.localVideo.draggable,handles:[],parent:!0,active:!1,"class-name":"elevation-6 video-panel"},nativeOn:{mousedown:function(t){return e.onLocalVideoDragCallback(t,"localVideo")}}},[t("video",{directives:[{name:"show",rawName:"v-show",value:e.localVideo.show,expression:"localVideo.show"}],ref:"localVideo",staticClass:"sip-call-video",attrs:{autoplay:"autoplay",muted:"","webkit-playsinline":"true",playsinline:"true","x-webkit-airplay":"true","x5-video-player-type":"h5","x5-video-orientation":"h5",controls:""},domProps:{muted:!0}})])],1)]),t(pr,[t("dial-panel-mini",{directives:[{name:"show",rawName:"v-show",value:e.showDialPad,expression:"showDialPad"}],ref:"dialPanelMini",attrs:{isCalling:e.isCalling},on:{makeCall:e.onDialPadMakeCallBtnClick,close:function(t){e.showDialPad=!1},dtmf:e.onDialPadDtmfBtnClick,hangup:e.onHangupBtnClick}})],1),t(nn,{attrs:{"hide-overlay":""},model:{value:e.showAudioPlayer,callback:function(t){e.showAudioPlayer=t},expression:"showAudioPlayer"}},[t("audio",{ref:"audioPlayer",attrs:{src:n("e1e9"),loop:""}})]),t(Nr,{attrs:{timeout:2e3},model:{value:e.showSnackbar,callback:function(t){e.showSnackbar=t},expression:"showSnackbar"}},[e._v(" "+e._s(e.snackbarText)+" ")])],1)},Dr=[];function Ur(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}Ur=function(e,t,n,r){function o(t,n){Ur(e,t,(function(e){return this._invoke(t,n,e)}))}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},Ur(e,t,n,r)}function jr(){
13
13
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
14
- var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var u=r&&r.prototype instanceof a?r:a,c=Object.create(u.prototype);return Ur(c,"_invoke",function(n,r,i){var o,a,u,c=0,l=i||[],d=!1,h={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return o=t,a=0,u=e,h.n=n,s}};function f(n,r){for(a=n,u=r,t=0;!d&&c&&!i&&t<l.length;t++){var i,o=l[t],f=h.p,p=o[2];n>3?(i=p===r)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=e):o[0]<=f&&((i=n<2&&f<o[1])?(a=0,h.v=r,h.n=o[1]):f<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,h.n=p,a=0))}if(i||n>1)return s;throw d=!0,r}return function(i,l,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===l&&f(l,p),a=l,u=p;(t=a<2?e:u)||!d;){o||(a?a<3?(a>1&&(h.n=-1),f(a,u)):h.n=u:h.v=u);try{if(c=2,o){if(a||(i="next"),t=o[i]){if(!(t=t.call(o,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=o["return"])&&t.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=e}else if((t=(d=h.n<0)?u:n.call(r,h))!==s)break}catch(t){o=e,a=1,u=t}finally{c=1}}return{value:t,done:d}}}(n,i,o),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(Ur(t={},r,(function(){return this})),t),d=c.prototype=a.prototype=Object.create(l);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Ur(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return u.prototype=c,Ur(d,"constructor",c),Ur(c,"constructor",u),u.displayName="GeneratorFunction",Ur(c,i,"GeneratorFunction"),Ur(d),Ur(d,i,"Generator"),Ur(d,r,(function(){return this})),Ur(d,"toString",(function(){return"[object Generator]"})),(jr=function(){return{w:o,m:h}})()}function Fr(e,t,n,r,i,o,s){try{var a=e[o](s),u=a.value}catch(e){return void n(e)}a.done?t(u):Promise.resolve(u).then(r,i)}function Hr(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){Fr(o,r,i,s,a,"next",e)}function a(e){Fr(o,r,i,s,a,"throw",e)}s(void 0)}))}}n("5087e");let Br=!0,$r=!0;function qr(e,t,n){const r=e.match(t);return r&&r.length>=n&&parseFloat(r[n],10)}function Vr(e,t,n){if(!e.RTCPeerConnection)return;const r=e.RTCPeerConnection.prototype,i=r.addEventListener;r.addEventListener=function(e,r){if(e!==t)return i.apply(this,arguments);const o=e=>{const t=n(e);t&&(r.handleEvent?r.handleEvent(t):r(t))};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(r,o),i.apply(this,[e,o])};const o=r.removeEventListener;r.removeEventListener=function(e,n){if(e!==t||!this._eventMap||!this._eventMap[t])return o.apply(this,arguments);if(!this._eventMap[t].has(n))return o.apply(this,arguments);const r=this._eventMap[t].get(n);return this._eventMap[t].delete(n),0===this._eventMap[t].size&&delete this._eventMap[t],0===Object.keys(this._eventMap).length&&delete this._eventMap,o.apply(this,[e,r])},Object.defineProperty(r,"on"+t,{get(){return this["_on"+t]},set(e){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),e&&this.addEventListener(t,this["_on"+t]=e)},enumerable:!0,configurable:!0})}function zr(e){return"boolean"!==typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(Br=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function Wr(e){return"boolean"!==typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):($r=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function Gr(){if("object"===typeof window){if(Br)return;"undefined"!==typeof console&&"function"===typeof console.log&&console.log.apply(console,arguments)}}function Yr(e,t){$r&&console.warn(e+" is deprecated, please use "+t+" instead.")}function Kr(e){const t={browser:null,version:null};if("undefined"===typeof e||!e.navigator||!e.navigator.userAgent)return t.browser="Not a browser.",t;const{navigator:n}=e;if(n.mozGetUserMedia)t.browser="firefox",t.version=parseInt(qr(n.userAgent,/Firefox\/(\d+)\./,1));else if(n.webkitGetUserMedia||!1===e.isSecureContext&&e.webkitRTCPeerConnection)t.browser="chrome",t.version=parseInt(qr(n.userAgent,/Chrom(e|ium)\/(\d+)\./,2));else{if(!e.RTCPeerConnection||!n.userAgent.match(/AppleWebKit\/(\d+)\./))return t.browser="Not a supported browser.",t;t.browser="safari",t.version=parseInt(qr(n.userAgent,/AppleWebKit\/(\d+)\./,1)),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype,t._safariVersion=qr(n.userAgent,/Version\/(\d+(\.?\d+))/,1)}return t}function Xr(e){return"[object Object]"===Object.prototype.toString.call(e)}function Jr(e){return Xr(e)?Object.keys(e).reduce((function(t,n){const r=Xr(e[n]),i=r?Jr(e[n]):e[n],o=r&&!Object.keys(i).length;return void 0===i||o?t:Object.assign(t,{[n]:i})}),{}):e}function Qr(e,t,n){t&&!n.has(t.id)&&(n.set(t.id,t),Object.keys(t).forEach(r=>{r.endsWith("Id")?Qr(e,e.get(t[r]),n):r.endsWith("Ids")&&t[r].forEach(t=>{Qr(e,e.get(t),n)})}))}function Zr(e,t,n){const r=n?"outbound-rtp":"inbound-rtp",i=new Map;if(null===t)return i;const o=[];return e.forEach(e=>{"track"===e.type&&e.trackIdentifier===t.id&&o.push(e)}),o.forEach(t=>{e.forEach(n=>{n.type===r&&n.trackId===t.id&&Qr(e,n,i)})}),i}const ei=Gr;function ti(e,t){const n=e&&e.navigator;if(!n.mediaDevices)return;const r=function(e){if("object"!==typeof e||e.mandatory||e.optional)return e;const t={};return Object.keys(e).forEach(n=>{if("require"===n||"advanced"===n||"mediaSource"===n)return;const r="object"===typeof e[n]?e[n]:{ideal:e[n]};void 0!==r.exact&&"number"===typeof r.exact&&(r.min=r.max=r.exact);const i=function(e,t){return e?e+t.charAt(0).toUpperCase()+t.slice(1):"deviceId"===t?"sourceId":t};if(void 0!==r.ideal){t.optional=t.optional||[];let e={};"number"===typeof r.ideal?(e[i("min",n)]=r.ideal,t.optional.push(e),e={},e[i("max",n)]=r.ideal,t.optional.push(e)):(e[i("",n)]=r.ideal,t.optional.push(e))}void 0!==r.exact&&"number"!==typeof r.exact?(t.mandatory=t.mandatory||{},t.mandatory[i("",n)]=r.exact):["min","max"].forEach(e=>{void 0!==r[e]&&(t.mandatory=t.mandatory||{},t.mandatory[i(e,n)]=r[e])})}),e.advanced&&(t.optional=(t.optional||[]).concat(e.advanced)),t},i=function(e,i){if(t.version>=61)return i(e);if(e=JSON.parse(JSON.stringify(e)),e&&"object"===typeof e.audio){const t=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])};e=JSON.parse(JSON.stringify(e)),t(e.audio,"autoGainControl","googAutoGainControl"),t(e.audio,"noiseSuppression","googNoiseSuppression"),e.audio=r(e.audio)}if(e&&"object"===typeof e.video){let o=e.video.facingMode;o=o&&("object"===typeof o?o:{ideal:o});const s=t.version<66;if(o&&("user"===o.exact||"environment"===o.exact||"user"===o.ideal||"environment"===o.ideal)&&(!n.mediaDevices.getSupportedConstraints||!n.mediaDevices.getSupportedConstraints().facingMode||s)){let t;if(delete e.video.facingMode,"environment"===o.exact||"environment"===o.ideal?t=["back","rear"]:"user"!==o.exact&&"user"!==o.ideal||(t=["front"]),t)return n.mediaDevices.enumerateDevices().then(n=>{n=n.filter(e=>"videoinput"===e.kind);let s=n.find(e=>t.some(t=>e.label.toLowerCase().includes(t)));return!s&&n.length&&t.includes("back")&&(s=n[n.length-1]),s&&(e.video.deviceId=o.exact?{exact:s.deviceId}:{ideal:s.deviceId}),e.video=r(e.video),ei("chrome: "+JSON.stringify(e)),i(e)})}e.video=r(e.video)}return ei("chrome: "+JSON.stringify(e)),i(e)},o=function(e){return t.version>=64?e:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[e.name]||e.name,message:e.message,constraint:e.constraint||e.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}},s=function(e,t,r){i(e,e=>{n.webkitGetUserMedia(e,t,e=>{r&&r(o(e))})})};if(n.getUserMedia=s.bind(n),n.mediaDevices.getUserMedia){const e=n.mediaDevices.getUserMedia.bind(n.mediaDevices);n.mediaDevices.getUserMedia=function(t){return i(t,t=>e(t).then(e=>{if(t.audio&&!e.getAudioTracks().length||t.video&&!e.getVideoTracks().length)throw e.getTracks().forEach(e=>{e.stop()}),new DOMException("","NotFoundError");return e},e=>Promise.reject(o(e))))}}}function ni(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&("function"===typeof t?e.navigator.mediaDevices.getDisplayMedia=function(n){return t(n).then(t=>{const r=n.video&&n.video.width,i=n.video&&n.video.height,o=n.video&&n.video.frameRate;return n.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:t,maxFrameRate:o||3}},r&&(n.video.mandatory.maxWidth=r),i&&(n.video.mandatory.maxHeight=i),e.navigator.mediaDevices.getUserMedia(n)})}:console.error("shimGetDisplayMedia: getSourceId argument is not a function"))}function ri(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function ii(e){if("object"===typeof e&&e.RTCPeerConnection&&!("ontrack"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(e){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=e)},enumerable:!0,configurable:!0});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=t=>{t.stream.addEventListener("addtrack",n=>{let r;r=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find(e=>e.track&&e.track.id===n.track.id):{track:n.track};const i=new Event("track");i.track=n.track,i.receiver=r,i.transceiver={receiver:r},i.streams=[t.stream],this.dispatchEvent(i)}),t.stream.getTracks().forEach(n=>{let r;r=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find(e=>e.track&&e.track.id===n.id):{track:n};const i=new Event("track");i.track=n,i.receiver=r,i.transceiver={receiver:r},i.streams=[t.stream],this.dispatchEvent(i)})},this.addEventListener("addstream",this._ontrackpoly)),t.apply(this,arguments)}}else Vr(e,"track",e=>(e.transceiver||Object.defineProperty(e,"transceiver",{value:{receiver:e.receiver}}),e))}function oi(e){if("object"===typeof e&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){const t=function(e,t){return{track:t,get dtmf(){return void 0===this._dtmf&&("audio"===t.kind?this._dtmf=e.createDTMFSender(t):this._dtmf=null),this._dtmf},_pc:e}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};const n=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,r){let i=n.apply(this,arguments);return i||(i=t(this,e),this._senders.push(i)),i};const r=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){r.apply(this,arguments);const t=this._senders.indexOf(e);-1!==t&&this._senders.splice(t,1)}}const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){this._senders=this._senders||[],n.apply(this,[e]),e.getTracks().forEach(e=>{this._senders.push(t(this,e))})};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){this._senders=this._senders||[],r.apply(this,[e]),e.getTracks().forEach(e=>{const t=this._senders.find(t=>t.track===e);t&&this._senders.splice(this._senders.indexOf(t),1)})}}else if("object"===typeof e&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach(e=>e._pc=this),e},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function si(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[e,n,r]=arguments;if(arguments.length>0&&"function"===typeof e)return t.apply(this,arguments);if(0===t.length&&(0===arguments.length||"function"!==typeof e))return t.apply(this,[]);const i=function(e){const t={},n=e.result();return n.forEach(e=>{const n={id:e.id,timestamp:e.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[e.type]||e.type};e.names().forEach(t=>{n[t]=e.stat(t)}),t[n.id]=n}),t},o=function(e){return new Map(Object.keys(e).map(t=>[t,e[t]]))};if(arguments.length>=2){const r=function(e){n(o(i(e)))};return t.apply(this,[r,e])}return new Promise((e,n)=>{t.apply(this,[function(t){e(o(i(t)))},n])}).then(n,r)}}function ai(e){if(!("object"===typeof e&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver))return;if(!("getStats"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach(e=>e._pc=this),e});const n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){const e=n.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){const e=this;return this._pc.getStats().then(t=>Zr(t,e.track,!0))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const e=t.apply(this,[]);return e.forEach(e=>e._pc=this),e}),Vr(e,"track",e=>(e.receiver._pc=e.srcElement,e)),e.RTCRtpReceiver.prototype.getStats=function(){const e=this;return this._pc.getStats().then(t=>Zr(t,e.track,!1))}}if(!("getStats"in e.RTCRtpSender.prototype)||!("getStats"in e.RTCRtpReceiver.prototype))return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){const e=arguments[0];let t,n,r;return this.getSenders().forEach(n=>{n.track===e&&(t?r=!0:t=n)}),this.getReceivers().forEach(t=>(t.track===e&&(n?r=!0:n=t),t.track===e)),r||t&&n?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):t?t.getStats():n?n.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return t.apply(this,arguments)}}function ui(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map(e=>this._shimmedLocalStreams[e][0])};const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,n){if(!n)return t.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};const r=t.apply(this,arguments);return this._shimmedLocalStreams[n.id]?-1===this._shimmedLocalStreams[n.id].indexOf(r)&&this._shimmedLocalStreams[n.id].push(r):this._shimmedLocalStreams[n.id]=[n,r],r};const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){this._shimmedLocalStreams=this._shimmedLocalStreams||{},e.getTracks().forEach(e=>{const t=this.getSenders().find(t=>t.track===e);if(t)throw new DOMException("Track already exists.","InvalidAccessError")});const t=this.getSenders();n.apply(this,arguments);const r=this.getSenders().filter(e=>-1===t.indexOf(e));this._shimmedLocalStreams[e.id]=[e].concat(r)};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[e.id],r.apply(this,arguments)};const i=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},e&&Object.keys(this._shimmedLocalStreams).forEach(t=>{const n=this._shimmedLocalStreams[t].indexOf(e);-1!==n&&this._shimmedLocalStreams[t].splice(n,1),1===this._shimmedLocalStreams[t].length&&delete this._shimmedLocalStreams[t]}),i.apply(this,arguments)}}function ci(e,t){if(!e.RTCPeerConnection)return;if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return ui(e);const n=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){const e=n.apply(this);return this._reverseStreams=this._reverseStreams||{},e.map(e=>this._reverseStreams[e.id])};const r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(t){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},t.getTracks().forEach(e=>{const t=this.getSenders().find(t=>t.track===e);if(t)throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[t.id]){const n=new e.MediaStream(t.getTracks());this._streams[t.id]=n,this._reverseStreams[n.id]=t,t=n}r.apply(this,[t])};const i=e.RTCPeerConnection.prototype.removeStream;function o(e,t){let n=t.sdp;return Object.keys(e._reverseStreams||[]).forEach(t=>{const r=e._reverseStreams[t],i=e._streams[r.id];n=n.replace(new RegExp(i.id,"g"),r.id)}),new RTCSessionDescription({type:t.type,sdp:n})}function s(e,t){let n=t.sdp;return Object.keys(e._reverseStreams||[]).forEach(t=>{const r=e._reverseStreams[t],i=e._streams[r.id];n=n.replace(new RegExp(r.id,"g"),i.id)}),new RTCSessionDescription({type:t.type,sdp:n})}e.RTCPeerConnection.prototype.removeStream=function(e){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},i.apply(this,[this._streams[e.id]||e]),delete this._reverseStreams[this._streams[e.id]?this._streams[e.id].id:e.id],delete this._streams[e.id]},e.RTCPeerConnection.prototype.addTrack=function(t,n){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");const r=[].slice.call(arguments,1);if(1!==r.length||!r[0].getTracks().find(e=>e===t))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");const i=this.getSenders().find(e=>e.track===t);if(i)throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const o=this._streams[n.id];if(o)o.addTrack(t),Promise.resolve().then(()=>{this.dispatchEvent(new Event("negotiationneeded"))});else{const r=new e.MediaStream([t]);this._streams[n.id]=r,this._reverseStreams[r.id]=n,this.addStream(r)}return this.getSenders().find(e=>e.track===t)},["createOffer","createAnswer"].forEach((function(t){const n=e.RTCPeerConnection.prototype[t],r={[t](){const e=arguments,t=arguments.length&&"function"===typeof arguments[0];return t?n.apply(this,[t=>{const n=o(this,t);e[0].apply(null,[n])},t=>{e[1]&&e[1].apply(null,t)},arguments[2]]):n.apply(this,arguments).then(e=>o(this,e))}};e.RTCPeerConnection.prototype[t]=r[t]}));const a=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return arguments.length&&arguments[0].type?(arguments[0]=s(this,arguments[0]),a.apply(this,arguments)):a.apply(this,arguments)};const u=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get(){const e=u.get.apply(this);return""===e.type?e:o(this,e)}}),e.RTCPeerConnection.prototype.removeTrack=function(e){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!e._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");const t=e._pc===this;if(!t)throw new DOMException("Sender was not created by this connection.","InvalidAccessError");let n;this._streams=this._streams||{},Object.keys(this._streams).forEach(t=>{const r=this._streams[t].getTracks().find(t=>e.track===t);r&&(n=this._streams[t])}),n&&(1===n.getTracks().length?this.removeStream(this._reverseStreams[n.id]):n.removeTrack(e.track),this.dispatchEvent(new Event("negotiationneeded")))}}function li(e,t){!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),e.RTCPeerConnection&&t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){const n=e.RTCPeerConnection.prototype[t],r={[t](){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments)}};e.RTCPeerConnection.prototype[t]=r[t]}))}function di(e,t){Vr(e,"negotiationneeded",e=>{const n=e.target;if(!(t.version<72||n.getConfiguration&&"plan-b"===n.getConfiguration().sdpSemantics)||"stable"===n.signalingState)return e})}function hi(e,t){const n=e&&e.navigator,r=e&&e.MediaStreamTrack;if(n.getUserMedia=function(e,t,r){Yr("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),n.mediaDevices.getUserMedia(e).then(t,r)},!(t.version>55&&"autoGainControl"in n.mediaDevices.getSupportedConstraints())){const e=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])},t=n.mediaDevices.getUserMedia.bind(n.mediaDevices);if(n.mediaDevices.getUserMedia=function(n){return"object"===typeof n&&"object"===typeof n.audio&&(n=JSON.parse(JSON.stringify(n)),e(n.audio,"autoGainControl","mozAutoGainControl"),e(n.audio,"noiseSuppression","mozNoiseSuppression")),t(n)},r&&r.prototype.getSettings){const t=r.prototype.getSettings;r.prototype.getSettings=function(){const n=t.apply(this,arguments);return e(n,"mozAutoGainControl","autoGainControl"),e(n,"mozNoiseSuppression","noiseSuppression"),n}}if(r&&r.prototype.applyConstraints){const t=r.prototype.applyConstraints;r.prototype.applyConstraints=function(n){return"audio"===this.kind&&"object"===typeof n&&(n=JSON.parse(JSON.stringify(n)),e(n,"autoGainControl","mozAutoGainControl"),e(n,"noiseSuppression","mozNoiseSuppression")),t.apply(this,[n])}}}}function fi(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&(e.navigator.mediaDevices.getDisplayMedia=function(n){if(!n||!n.video){const e=new DOMException("getDisplayMedia without video constraints is undefined");return e.name="NotFoundError",e.code=8,Promise.reject(e)}return!0===n.video?n.video={mediaSource:t}:n.video.mediaSource=t,e.navigator.mediaDevices.getUserMedia(n)})}function pi(e){"object"===typeof e&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function vi(e,t){if("object"!==typeof e||!e.RTCPeerConnection&&!e.mozRTCPeerConnection)return;!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){const n=e.RTCPeerConnection.prototype[t],r={[t](){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments)}};e.RTCPeerConnection.prototype[t]=r[t]}));const n={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},r=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[e,i,o]=arguments;return r.apply(this,[e||null]).then(e=>{if(t.version<53&&!i)try{e.forEach(e=>{e.type=n[e.type]||e.type})}catch(so){if("TypeError"!==so.name)throw so;e.forEach((t,r)=>{e.set(r,Object.assign({},t,{type:n[t.type]||t.type}))})}return e}).then(i,o)}}function mi(e){if("object"!==typeof e||!e.RTCPeerConnection||!e.RTCRtpSender)return;if(e.RTCRtpSender&&"getStats"in e.RTCRtpSender.prototype)return;const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach(e=>e._pc=this),e});const n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){const e=n.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function gi(e){if("object"!==typeof e||!e.RTCPeerConnection||!e.RTCRtpSender)return;if(e.RTCRtpSender&&"getStats"in e.RTCRtpReceiver.prototype)return;const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const e=t.apply(this,[]);return e.forEach(e=>e._pc=this),e}),Vr(e,"track",e=>(e.receiver._pc=e.srcElement,e)),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function _i(e){e.RTCPeerConnection&&!("removeStream"in e.RTCPeerConnection.prototype)&&(e.RTCPeerConnection.prototype.removeStream=function(e){Yr("removeStream","removeTrack"),this.getSenders().forEach(t=>{t.track&&e.getTracks().includes(t.track)&&this.removeTrack(t)})})}function yi(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function bi(e){if("object"!==typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.addTransceiver;t&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];let e=arguments[1]&&arguments[1].sendEncodings;void 0===e&&(e=[]),e=[...e];const n=e.length>0;n&&e.forEach(e=>{if("rid"in e){const t=/^[a-z0-9]{0,16}$/i;if(!t.test(e.rid))throw new TypeError("Invalid RID value provided.")}if("scaleResolutionDownBy"in e&&!(parseFloat(e.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in e&&!(parseFloat(e.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")});const r=t.apply(this,arguments);if(n){const{sender:t}=r,n=t.getParameters();(!("encodings"in n)||1===n.encodings.length&&0===Object.keys(n.encodings[0]).length)&&(n.encodings=e,t.sendEncodings=e,this.setParametersPromises.push(t.setParameters(n).then(()=>{delete t.sendEncodings}).catch(()=>{delete t.sendEncodings})))}return r})}function wi(e){if("object"!==typeof e||!e.RTCRtpSender)return;const t=e.RTCRtpSender.prototype.getParameters;t&&(e.RTCRtpSender.prototype.getParameters=function(){const e=t.apply(this,arguments);return"encodings"in e||(e.encodings=[].concat(this.sendEncodings||[{}])),e})}function Ti(e){if("object"!==typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>t.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):t.apply(this,arguments)}}function Si(e){if("object"!==typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>t.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):t.apply(this,arguments)}}function Ci(e){if("object"===typeof e&&e.RTCPeerConnection){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in e.RTCPeerConnection.prototype)){const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(e){this._localStreams||(this._localStreams=[]),this._localStreams.includes(e)||this._localStreams.push(e),e.getAudioTracks().forEach(n=>t.call(this,n,e)),e.getVideoTracks().forEach(n=>t.call(this,n,e))},e.RTCPeerConnection.prototype.addTrack=function(e,...n){return n&&n.forEach(e=>{this._localStreams?this._localStreams.includes(e)||this._localStreams.push(e):this._localStreams=[e]}),t.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(e){this._localStreams||(this._localStreams=[]);const t=this._localStreams.indexOf(e);if(-1===t)return;this._localStreams.splice(t,1);const n=e.getTracks();this.getSenders().forEach(e=>{n.includes(e.track)&&this.removeTrack(e)})})}}function Ei(e){if("object"===typeof e&&e.RTCPeerConnection&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in e.RTCPeerConnection.prototype))){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(e){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=e),this.addEventListener("track",this._onaddstreampoly=e=>{e.streams.forEach(e=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(e))return;this._remoteStreams.push(e);const t=new Event("addstream");t.stream=e,this.dispatchEvent(t)})})}});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){const e=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(t){t.streams.forEach(t=>{if(e._remoteStreams||(e._remoteStreams=[]),e._remoteStreams.indexOf(t)>=0)return;e._remoteStreams.push(t);const n=new Event("addstream");n.stream=t,e.dispatchEvent(n)})}),t.apply(e,arguments)}}}function Ai(e){if("object"!==typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype,n=t.createOffer,r=t.createAnswer,i=t.setLocalDescription,o=t.setRemoteDescription,s=t.addIceCandidate;t.createOffer=function(e,t){const r=arguments.length>=2?arguments[2]:arguments[0],i=n.apply(this,[r]);return t?(i.then(e,t),Promise.resolve()):i},t.createAnswer=function(e,t){const n=arguments.length>=2?arguments[2]:arguments[0],i=r.apply(this,[n]);return t?(i.then(e,t),Promise.resolve()):i};let a=function(e,t,n){const r=i.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r};t.setLocalDescription=a,a=function(e,t,n){const r=o.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r},t.setRemoteDescription=a,a=function(e,t,n){const r=s.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r},t.addIceCandidate=a}function xi(e){const t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){const e=t.mediaDevices,n=e.getUserMedia.bind(e);t.mediaDevices.getUserMedia=e=>n(Ri(e))}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=function(e,n,r){t.mediaDevices.getUserMedia(e).then(n,r)}.bind(t))}function Ri(e){return e&&void 0!==e.video?Object.assign({},e,{video:Jr(e.video)}):e}function Oi(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection;e.RTCPeerConnection=function(e,n){if(e&&e.iceServers){const t=[];for(let n=0;n<e.iceServers.length;n++){let r=e.iceServers[n];void 0===r.urls&&r.url?(Yr("RTCIceServer.url","RTCIceServer.urls"),r=JSON.parse(JSON.stringify(r)),r.urls=r.url,delete r.url,t.push(r)):t.push(e.iceServers[n])}e.iceServers=t}return new t(e,n)},e.RTCPeerConnection.prototype=t.prototype,"generateCertificate"in t&&Object.defineProperty(e.RTCPeerConnection,"generateCertificate",{get(){return t.generateCertificate}})}function Ii(e){"object"===typeof e&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function ki(e){const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(e){if(e){"undefined"!==typeof e.offerToReceiveAudio&&(e.offerToReceiveAudio=!!e.offerToReceiveAudio);const t=this.getTransceivers().find(e=>"audio"===e.receiver.track.kind);!1===e.offerToReceiveAudio&&t?"sendrecv"===t.direction?t.setDirection?t.setDirection("sendonly"):t.direction="sendonly":"recvonly"===t.direction&&(t.setDirection?t.setDirection("inactive"):t.direction="inactive"):!0!==e.offerToReceiveAudio||t||this.addTransceiver("audio",{direction:"recvonly"}),"undefined"!==typeof e.offerToReceiveVideo&&(e.offerToReceiveVideo=!!e.offerToReceiveVideo);const n=this.getTransceivers().find(e=>"video"===e.receiver.track.kind);!1===e.offerToReceiveVideo&&n?"sendrecv"===n.direction?n.setDirection?n.setDirection("sendonly"):n.direction="sendonly":"recvonly"===n.direction&&(n.setDirection?n.setDirection("inactive"):n.direction="inactive"):!0!==e.offerToReceiveVideo||n||this.addTransceiver("video",{direction:"recvonly"})}return t.apply(this,arguments)}}function Pi(e){"object"!==typeof e||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}var Mi=n("282b"),Ni=n.n(Mi);function Li(e){if(!e.RTCIceCandidate||e.RTCIceCandidate&&"foundation"in e.RTCIceCandidate.prototype)return;const t=e.RTCIceCandidate;e.RTCIceCandidate=function(e){if("object"===typeof e&&e.candidate&&0===e.candidate.indexOf("a=")&&(e=JSON.parse(JSON.stringify(e)),e.candidate=e.candidate.substring(2)),e.candidate&&e.candidate.length){const n=new t(e),r=Ni.a.parseCandidate(e.candidate);for(const e in r)e in n||Object.defineProperty(n,e,{value:r[e]});return n.toJSON=function(){return{candidate:n.candidate,sdpMid:n.sdpMid,sdpMLineIndex:n.sdpMLineIndex,usernameFragment:n.usernameFragment}},n}return new t(e)},e.RTCIceCandidate.prototype=t.prototype,Vr(e,"icecandidate",t=>(t.candidate&&Object.defineProperty(t,"candidate",{value:new e.RTCIceCandidate(t.candidate),writable:"false"}),t))}function Di(e){!e.RTCIceCandidate||e.RTCIceCandidate&&"relayProtocol"in e.RTCIceCandidate.prototype||Vr(e,"icecandidate",e=>{if(e.candidate){const t=Ni.a.parseCandidate(e.candidate.candidate);"relay"===t.type&&(e.candidate.relayProtocol={0:"tls",1:"tcp",2:"udp"}[t.priority>>24])}return e})}function Ui(e,t){if(!e.RTCPeerConnection)return;"sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get(){return"undefined"===typeof this._sctp?null:this._sctp}});const n=function(e){if(!e||!e.sdp)return!1;const t=Ni.a.splitSections(e.sdp);return t.shift(),t.some(e=>{const t=Ni.a.parseMLine(e);return t&&"application"===t.kind&&-1!==t.protocol.indexOf("SCTP")})},r=function(e){const t=e.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(null===t||t.length<2)return-1;const n=parseInt(t[1],10);return n!==n?-1:n},i=function(e){let n=65536;return"firefox"===t.browser&&(n=t.version<57?-1===e?16384:2147483637:t.version<60?57===t.version?65535:65536:2147483637),n},o=function(e,n){let r=65536;"firefox"===t.browser&&57===t.version&&(r=65535);const i=Ni.a.matchPrefix(e.sdp,"a=max-message-size:");return i.length>0?r=parseInt(i[0].substring(19),10):"firefox"===t.browser&&-1!==n&&(r=2147483637),r},s=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,"chrome"===t.browser&&t.version>=76){const{sdpSemantics:e}=this.getConfiguration();"plan-b"===e&&Object.defineProperty(this,"sctp",{get(){return"undefined"===typeof this._sctp?null:this._sctp},enumerable:!0,configurable:!0})}if(n(arguments[0])){const e=r(arguments[0]),t=i(e),n=o(arguments[0],e);let s;s=0===t&&0===n?Number.POSITIVE_INFINITY:0===t||0===n?Math.max(t,n):Math.min(t,n);const a={};Object.defineProperty(a,"maxMessageSize",{get(){return s}}),this._sctp=a}return s.apply(this,arguments)}}function ji(e){if(!e.RTCPeerConnection||!("createDataChannel"in e.RTCPeerConnection.prototype))return;function t(e,t){const n=e.send;e.send=function(){const r=arguments[0],i=r.length||r.size||r.byteLength;if("open"===e.readyState&&t.sctp&&i>t.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+t.sctp.maxMessageSize+" bytes)");return n.apply(e,arguments)}}const n=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){const e=n.apply(this,arguments);return t(e,this),e},Vr(e,"datachannel",e=>(t(e.channel,e.target),e))}function Fi(e){if(!e.RTCPeerConnection||"connectionState"in e.RTCPeerConnection.prototype)return;const t=e.RTCPeerConnection.prototype;Object.defineProperty(t,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(t,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(e){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),e&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=e)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach(e=>{const n=t[e];t[e]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=e=>{const t=e.target;if(t._lastConnectionState!==t.connectionState){t._lastConnectionState=t.connectionState;const n=new Event("connectionstatechange",e);t.dispatchEvent(n)}return e},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),n.apply(this,arguments)}})}function Hi(e,t){if(!e.RTCPeerConnection)return;if("chrome"===t.browser&&t.version>=71)return;if("safari"===t.browser&&t._safariVersion>=13.1)return;const n=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(t){if(t&&t.sdp&&-1!==t.sdp.indexOf("\na=extmap-allow-mixed")){const n=t.sdp.split("\n").filter(e=>"a=extmap-allow-mixed"!==e.trim()).join("\n");e.RTCSessionDescription&&t instanceof e.RTCSessionDescription?arguments[0]=new e.RTCSessionDescription({type:t.type,sdp:n}):t.sdp=n}return n.apply(this,arguments)}}function Bi(e,t){if(!e.RTCPeerConnection||!e.RTCPeerConnection.prototype)return;const n=e.RTCPeerConnection.prototype.addIceCandidate;n&&0!==n.length&&(e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?("chrome"===t.browser&&t.version<78||"firefox"===t.browser&&t.version<68||"safari"===t.browser)&&arguments[0]&&""===arguments[0].candidate?Promise.resolve():n.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}function $i(e,t){if(!e.RTCPeerConnection||!e.RTCPeerConnection.prototype)return;const n=e.RTCPeerConnection.prototype.setLocalDescription;n&&0!==n.length&&(e.RTCPeerConnection.prototype.setLocalDescription=function(){let e=arguments[0]||{};if("object"!==typeof e||e.type&&e.sdp)return n.apply(this,arguments);if(e={type:e.type,sdp:e.sdp},!e.type)switch(this.signalingState){case"stable":case"have-local-offer":case"have-remote-pranswer":e.type="offer";break;default:e.type="answer";break}if(e.sdp||"offer"!==e.type&&"answer"!==e.type)return n.apply(this,[e]);const t="offer"===e.type?this.createOffer:this.createAnswer;return t.apply(this).then(e=>n.apply(this,[e]))})}function qi({window:e}={},t={shimChrome:!0,shimFirefox:!0,shimSafari:!0}){const n=Gr,r=Kr(e),u={browserDetails:r,commonShim:a,extractVersion:qr,disableLog:zr,disableWarnings:Wr,sdp:Mi};switch(r.browser){case"chrome":if(!i||!li||!t.shimChrome)return n("Chrome shim is not included in this adapter release."),u;if(null===r.version)return n("Chrome shim can not determine version, not shimming."),u;n("adapter.js shimming chrome."),u.browserShim=i,Bi(e,r),$i(e,r),ti(e,r),ri(e,r),li(e,r),ii(e,r),ci(e,r),oi(e,r),si(e,r),ai(e,r),di(e,r),Li(e,r),Di(e,r),Fi(e,r),Ui(e,r),ji(e,r),Hi(e,r);break;case"firefox":if(!o||!vi||!t.shimFirefox)return n("Firefox shim is not included in this adapter release."),u;n("adapter.js shimming firefox."),u.browserShim=o,Bi(e,r),$i(e,r),hi(e,r),vi(e,r),pi(e,r),_i(e,r),mi(e,r),gi(e,r),yi(e,r),bi(e,r),wi(e,r),Ti(e,r),Si(e,r),Li(e,r),Fi(e,r),Ui(e,r),ji(e,r);break;case"safari":if(!s||!t.shimSafari)return n("Safari shim is not included in this adapter release."),u;n("adapter.js shimming safari."),u.browserShim=s,Bi(e,r),$i(e,r),Oi(e,r),ki(e,r),Ai(e,r),Ci(e,r),Ei(e,r),Ii(e,r),xi(e,r),Pi(e,r),Li(e,r),Di(e,r),Ui(e,r),ji(e,r),Hi(e,r);break;default:n("Unsupported browser!");break}return u}qi({window:"undefined"===typeof window?void 0:window});var Vi=n("4022"),zi=n.n(Vi),Wi=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{"background-color":"transparent",width:"100%",position:"absolute",bottom:"96px","z-index":"4000"},style:e.isCalling?"opacity: 0.6":""},[t("div",{staticClass:"dial-panel pl-10 pr-10 d-flex flex-column align-center"},[t(Mr,{staticClass:"d-flex justify-space-around mb-12",staticStyle:{"font-size":"36px",color:"#FFFFFF"},attrs:{"no-gutters":""}},[e._v(" "+e._s(e.dialNum)+" ")]),t("div",{staticStyle:{width:"240px"}},[t(Mr,{staticClass:"d-flex justify-space-around mt-0 mb-3",attrs:{"no-gutters":""}},[t(Yn,{attrs:{fab:"",large:""},on:{click:e.onDialNumClick}},[e._v(" 1 ")]),t(Yn,{attrs:{fab:"",large:""},on:{click:e.onDialNumClick}},[e._v(" 2 ")]),t(Yn,{attrs:{fab:"",large:""},on:{click:e.onDialNumClick}},[e._v(" 3 ")])],1),t(Mr,{staticClass:"d-flex justify-space-around mt-3 mb-3",attrs:{"no-gutters":""}},[t(Yn,{attrs:{fab:"",large:""},on:{click:e.onDialNumClick}},[e._v(" 4 ")]),t(Yn,{attrs:{fab:"",large:""},on:{click:e.onDialNumClick}},[e._v(" 5 ")]),t(Yn,{attrs:{fab:"",large:""},on:{click:e.onDialNumClick}},[e._v(" 6 ")])],1),t(Mr,{staticClass:"d-flex justify-space-around mt-3 mb-3",attrs:{"no-gutters":""}},[t(Yn,{attrs:{fab:"",large:""},on:{click:e.onDialNumClick}},[e._v(" 7 ")]),t(Yn,{attrs:{fab:"",large:""},on:{click:e.onDialNumClick}},[e._v(" 8 ")]),t(Yn,{attrs:{fab:"",large:""},on:{click:e.onDialNumClick}},[e._v(" 9 ")])],1),t(Mr,{staticClass:"d-flex justify-space-around mt-3 mb-3",attrs:{"no-gutters":""}},[t(ur,{staticClass:"text-center",attrs:{cols:"4"}},[t(Yn,{attrs:{fab:"",large:""},on:{click:e.onDialNumClick}},[e._v(" * ")])],1),t(ur,{staticClass:"text-center",attrs:{cols:"4"}},[t(Yn,{attrs:{fab:"",large:""},on:{click:e.onDialNumClick}},[e._v(" 0 ")])],1),t(ur,{staticClass:"text-center",attrs:{cols:"4"}},[t(Yn,{attrs:{fab:"",large:""},on:{click:e.onDialNumClick}},[e._v(" # ")])],1)],1),t(Mr,{staticClass:"d-flex justify-space-around mt-3 mb-3",attrs:{"no-gutters":""}},[t(ur,{staticClass:"text-center",attrs:{cols:"4"}},[t(vr,[t(Yn,{directives:[{name:"show",rawName:"v-show",value:!e.isCalling,expression:"!isCalling"}],attrs:{color:"blue",fab:"",large:""},on:{click:function(t){return e.onCallBtnClick(t,"audio")}}},[t(yr,{attrs:{color:"white"}},[e._v("mdi-phone")])],1)],1)],1),t(ur,{staticClass:"text-center",attrs:{cols:"4"}},[t(vr,[t(Yn,{directives:[{name:"show",rawName:"v-show",value:e.isCalling,expression:"isCalling"}],attrs:{color:"red",fab:"",large:""},on:{click:e.onHangupBtnClick}},[t(yr,{attrs:{color:"white"}},[e._v("mdi-phone-hangup")])],1)],1),t(vr,[t(Yn,{directives:[{name:"show",rawName:"v-show",value:!e.isCalling,expression:"!isCalling"}],attrs:{color:"green",fab:"",large:""},on:{click:function(t){return e.onCallBtnClick(t,"video")}}},[t(yr,{attrs:{color:"white"}},[e._v("mdi-video")])],1)],1)],1),t(ur,{staticClass:"text-center",attrs:{cols:"4"}},[t(vr,[t(Yn,{directives:[{name:"show",rawName:"v-show",value:e.isCalling,expression:"isCalling"}],attrs:{fab:"",large:""},on:{click:e.onCloseBtnClick}},[t(yr,[e._v("mdi-window-close")])],1)],1),t(vr,[t(Yn,{directives:[{name:"show",rawName:"v-show",value:!e.isCalling,expression:"!isCalling"}],staticStyle:{opacity:"0.5"},attrs:{fab:"",depressed:"",large:""},on:{click:e.onDeleteBtnClick}},[t(yr,[e._v("mdi-backspace")])],1)],1)],1)],1)],1)],1)])},Gi=[],Yi={name:"DialPanelMini",props:{isCalling:{type:Boolean}},data:()=>({isInnerCall:!1,dialNum:"95518"}),methods:{onDialNumClick(e){e.stopPropagation();var t=e.target.innerText;this.dialNum=(this.dialNum||"")+t,this.isCalling&&this.$emit("dtmf",t)},onCloseBtnClick(){this.$emit("close")},onDeleteBtnClick(e){e.stopPropagation(),this.dialNum&&(this.dialNum=this.dialNum.substr(0,this.dialNum.length-1))},onCallBtnClick(e,t){e.stopPropagation(),this.$emit("makeCall",{isInnerCall:this.isInnerCall,type:t,dialNum:this.dialNum})},onHangupBtnClick(e){e.stopPropagation(),this.$emit("hangup",{dialNum:this.dialNum})},setDialNum(e){this.dialNum=e}}},Ki=Yi;n("6c13");function Xi(e,t,n,r,i,o,s,a){var u,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(u=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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=u):i&&(u=a?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(e,t){return u.call(t),l(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,u):[u]}return{exports:e,options:c}}var Ji=Xi(Ki,Wi,Gi,!1,null,null,null),Qi=Ji.exports,Zi=n("fb19"),eo=n.n(Zi);n("4d63"),n("c607"),n("6062"),n("1e70"),n("79a4"),n("c1a1"),n("8b00"),n("a4e7"),n("1e5a"),n("72c3"),n("841c"),n("11c1");function to(e){if(e)try{var t;if(e.getTracks){t=e.getTracks();var n,r=un(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.stop()}}catch(d){r.e(d)}finally{r.f()}}else{t=e.getAudioTracks();var o,s=un(t);try{for(s.s();!(o=s.n()).done;){var a=o.value;a.stop()}}catch(d){s.e(d)}finally{s.f()}t=e.getVideoTracks();var u,c=un(t);try{for(c.s();!(u=c.n()).done;){var l=u.value;l.stop()}}catch(d){c.e(d)}finally{c.f()}}}catch(h){"function"!==typeof e.stop&&"object"!==typeof e.stop||e.stop()}}var no={name:"MobilePhone",api:null,locateHandler:-1,sendPositionHandler:-1,clientHeight:0,clientWidth:0,components:{VueDraggableResizable:eo.a,DialPanelMini:Qi},props:{calledNum:{type:String,default:""},callingNum:{type:String,default:"H5User",validator:e=>!!e},callType:{type:String,default:"videoOnly",validator:e=>["audio","video","videoOnly"].indexOf(e)>-1},debug:{type:Boolean,default:!1},needDial:{type:Boolean,default:!1},autoHideLocalVideo:{type:Boolean,default:!1},showLocation:{type:Boolean,default:!0},callData:{type:String,default:""}},data:function(){return{prompt:this.$t("serverConnecting")+"...",callPrompt:this.$t("pleaseBePatient"),isCalling:!1,showHangup:!1,showAudioPlayer:!0,showVideoCt:!1,showDialPad:!1,showSnackbar:!1,miniMode:!1,dialNum:"",controls:"",isAudioMute:!1,isVideoMute:!1,cameraType:"front",videoInputList:[],videoInputIndex:0,localVideo:{w:1,h:1,x:0,y:0,z:1e3,show:!1,draggable:!0},remoteVideo:{w:1,h:1,x:0,y:0,z:1e3,show:!1,draggable:!0},connected:!1,callDuration:0,durationHandler:-1,snackbarText:"",callId:"",lastCallId:"",queueCount:0,latitude:0,longitude:0,altitude:0}},watch:{isCalling(e){e?this.startDurationCount():this.stopDurationCount()},callId(e){this.lastCallId=e||this.lastCallId},prompt(e){console.info("Prompt",e)}},computed:{duration(){var e=this.callDuration%60;e=e<10?"0"+e:""+e;var t=parseInt(this.callDuration/60);return t=t<10?"0"+t:""+t,`${t}:${e}`}},created(){setTimeout(()=>{},2e3)},methods:{handleWechatParams(e){console.log("测试模式:使用模拟参数");var t=e.calledNum,n=e.callData;if(console.log("测试模式:使用模拟参数"),t){this.setDialNum(t);var r=null;try{r=n?JSON.parse(decodeURIComponent(n)):null,r&&console.log("Call data received:",r)}catch(so){console.error("Failed to parse callData:",so)}this.$nextTick(()=>{this.onMakeCallBtnClick()})}},_resetCmpWHLRTB(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.rl,n=void 0===t?0:t,r=e.rt,i=void 0===r?0:r,o=e.ll,s=void 0===o?0:o,a=e.lt,u=void 0===a?0:a;this.$refs.remoteVideoWrapper.left=n,this.$refs.remoteVideoWrapper.top=i,this.$refs.localVideoWrapper.left=s,this.$refs.localVideoWrapper.top=u,this.$refs.localVideoWrapper.parentWidth=this.clientWidth,this.$refs.localVideoWrapper.parentHeight=this.clientHeight,this.$refs.localVideoWrapper.right=this.clientWidth-this.localVideo.w,this.$refs.localVideoWrapper.bottom=this.clientHeight-this.localVideo.h,this.$refs.remoteVideoWrapper.parentWidth=this.clientWidth,this.$refs.remoteVideoWrapper.parentHeight=this.clientHeight,this.$refs.remoteVideoWrapper.right=this.clientWidth-this.remoteVideo.w,this.$refs.remoteVideoWrapper.bottom=this.clientHeight-this.remoteVideo.h},toMiniMode(){this._resetCmpWHLRTB(),Object.assign(this.localVideo,{show:!1,draggable:!1}),this.miniMode=!0,setTimeout(()=>{Object.assign(this.remoteVideo,{show:!0,w:parseInt(this.clientWidth/3),h:parseInt(this.clientHeight/3),x:0,y:0,z:1100,draggable:!0})},500)},toNormalMode(){this._resetCmpWHLRTB(),Object.assign(this.localVideo,{show:!0,w:parseInt(this.clientWidth/3),h:parseInt(this.clientHeight/3),x:0,y:0,z:1100,draggable:!1}),this.miniMode=!1,setTimeout(()=>{Object.assign(this.remoteVideo,{show:!0,w:this.clientWidth,h:this.clientHeight,x:0,y:0,z:1e3,draggable:!0})},500)},onDialPadBtnClick(){this.showDialPad=!0},onDialPadMakeCallBtnClick(e){var t=e.dialNum;this.dialNum=t,this.onMakeCallBtnClick()},onDialPadDtmfBtnClick(e){this.sipMix.sendDTMF({tones:e})},onChangeVideoMiniModeBtnClick(){this.toMiniMode()},onChangeVideoNormalModeBtnClick(){this.toNormalMode()},onChangeVideoFullScreenBtnClick(){this.remoteVideo.show&&(this.$refs.remoteVideoWrapper.left=0,this.$refs.remoteVideoWrapper.top=0,this.$refs.localVideoWrapper.left=0,this.$refs.localVideoWrapper.top=0,this.$nextTick(()=>{this.localVideo.w===this.clientWidth?(Object.assign(this.localVideo,{w:parseInt(this.clientWidth/3),h:parseInt(this.clientHeight/3),z:1100,draggable:!0}),Object.assign(this.remoteVideo,{w:this.clientWidth,h:this.clientHeight,z:1e3,draggable:!1})):(Object.assign(this.localVideo,{w:this.clientWidth,h:this.clientHeight,z:1e3,draggable:!1}),Object.assign(this.remoteVideo,{w:parseInt(this.clientWidth/3),h:parseInt(this.clientHeight/3),z:1100,draggable:!0}))}))},onLocalVideoDragCallback(e,t){("remoteVideo"===t&&this.remoteVideo.w!==this.clientWidth||"localVideo"===t&&this.localVideo.w!==this.clientWidth)&&e.stopPropagation()},onSipCallClick(){this.autoShowHangupBtn()},onMakeCallBtnClick(){var e=this;return Hr(jr().m((function t(){var n;return jr().w((function(t){while(1)switch(t.p=t.n){case 0:return e.needDial||(e.dialNum=e.calledNum),n={target:e.dialNum},console.log("paramsparams Data",n),console.log("this.callData Data",e.callData),console.log("window.config.videoParams",window.config.videoParams),"videoOnly"===e.callType?(console.log("videoOnly"),n.video=Object.assign({facingMode:"user"},window.config.videoParams),n.audio=!1):"video"===e.callType?(console.log("video"),n.video=Object.assign({facingMode:"user"},window.config.videoParams),n.audio=!0):(n.video=!1,n.audio=!0),e.callData&&(n.callData=e.callData,console.log("Call Da1ta",e.callData)),t.p=1,t.n=2,e.sipMix.call(n);case 2:t.n=4;break;case 3:t.p=3,t.v,e.snackbarText=e.$t("gotCameraStreamFailed"),e.showSnackbar=!0;case 4:e.isCalling=!0,e.showHangup=!0,e.needDial?(e.callPrompt=`${e.$t("calling")} ${e.dialNum}`,e.showDialPad=!1):e.callPrompt=""+e.$t("pleaseBePatient");case 5:return t.a(2)}}),t,null,[[1,3]])})))()},onHangupBtnClick(){this.sipMix.hangup(),this.$emit("hangup",{imType:0})},onMuteBtnClick(e){"audio"===e?(this.isAudioMute?this.sipMix.unmute({audio:!0}):this.sipMix.mute({audio:!0}),this.isAudioMute=!this.isAudioMute):(this.isVideoMute?this.sipMix.unmute({video:!0}):this.sipMix.mute({video:!0}),this.isVideoMute=!this.isVideoMute)},onShowLocalVideoBtnClick(){this.localVideo.z=1===this.localVideo.z?1100:1},dealCallEndOrFail(){this.$refs.audioPlayer.pause(),this.showVideoCt=!1,this.remoteVideo.show=!1,this.localVideo.show=!1,this.localVideo.w=this.clientWidth,this.localVideo.h=this.clientHeight,this.isCalling=!1,this.callId="",this.prompt=this.$t("serverConnected"),this.needDial&&(this.showDialPad=!0),this.stopDurationCount(),this.toNormalMode(),this.stopSendPosition()},autoShowHangupBtn(){this.showHangup=!0},stopDurationCount(){this.callDuration=0,clearInterval(this.durationHandler)},startDurationCount(){this.stopDurationCount(),this.durationHandler=setInterval(()=>{this.callDuration++},1e3)},onSwitchCameraBtnClick(){var e=this;return Hr(jr().m((function t(){var n,r,i;return jr().w((function(t){while(1)switch(t.n){case 0:return t.n=1,navigator.mediaDevices.enumerateDevices();case 1:return n=t.v,console.warn(n),r={facingMode:"user"},"front"===e.cameraType&&(r={facingMode:{exact:"environment"}}),Object.assign(r,window.config.videoParams),t.n=2,navigator.mediaDevices.getUserMedia({video:r,audio:!1});case 2:i=t.v,i&&(e.cameraType="front"===e.cameraType?"back":"front",e.$refs.localVideo.srcObject=i,e.sipMix.changeLocalVideoTrack({stream:i}));case 3:return t.a(2)}}),t)})))()},setDialNum(e){this.$refs.dialPanelMini.setDialNum(e)},checkBrowser(){var e=this;return Hr(jr().m((function t(){var n,r,i;return jr().w((function(t){while(1)switch(t.n){case 0:return t.n=1,navigator.mediaDevices.getUserMedia({video:!0,audio:!0});case 1:if(n=t.v,!n){t.n=2;break}to(n),t.n=3;break;case 2:return t.a(2,Promise.reject(e.$t("cameraOrMicUnsupported")));case 3:if(window.RTCPeerConnection){t.n=4;break}return t.a(2,Promise.reject(e.$t("WebRTCUnsupported")));case 4:return t.n=5,navigator.mediaDevices.enumerateDevices();case 5:return r=t.v,i=r.filter(e=>"videoinput"===e.kind),i.forEach(e=>{console.warn({label:e.label,deviceId:e.deviceId,groupId:e.groupId})}),e.videoInputList=i,t.a(2,Promise.resolve(!0))}}),t)})))()},startSip(e){var t=this,n=e.debug,r=e.password,i=e.register,o=e.autoDial,s=void 0!==o&&o,a=window.config,u=a.domain,c=a.port,l=a.path;this.sipMix=zi.a.getInstance({domain:u,port:c,path:l}),this.sipMix.on("socketError",()=>this.prompt=this.$t("connectionFailedPleaseCheckYourNetwork")),this.sipMix.on("connecting",()=>this.prompt=this.$t("serverConnected")+"..."),this.sipMix.on("connected",()=>{this.prompt=this.$t("serverConnected"),!i&&s&&this.onMakeCallBtnClick()}),this.sipMix.on("disconnected",()=>this.prompt=this.$t("connectionClosed")),this.sipMix.on("registered",()=>{this.prompt=this.$t("registered"),i&&s&&this.onMakeCallBtnClick()}),this.sipMix.on("unregistered",()=>this.prompt=this.$t("unregistered")),this.sipMix.on("registrationFailed",()=>this.prompt=this.$t("registerFailed")),this.sipMix.on("newSession",e=>{var t=e.sessionId;console.info("New session, session id: ",t)}),this.sipMix.on("failed",e=>{console.warn("通话失败",e),this.dealCallEndOrFail(),this.callPrompt=this.$t("cancelled"),this.$emit("hangup",{imType:0,reason:"call_failed",error:e}),setTimeout(()=>{this.callPrompt=this.$t("pleaseBePatient")},2e3)}),this.sipMix.on("ended",()=>{console.warn("通话结束"),this.dealCallEndOrFail(),this.callPrompt=this.$t("hangedUp"),this.$emit("hangup",{imType:0,reason:"call_ended"}),setTimeout(()=>{this.callPrompt=this.$t("pleaseBePatient")},2e3)}),this.sipMix.on("localStream",function(){var e=Hr(jr().m((function e(n,r){return jr().w((function(e){while(1)switch(e.n){case 0:return console.info("localStream",n,r),t.localVideo.w=t.clientWidth,t.localVideo.h=t.clientHeight,t.localVideo.draggable=!1,t.showVideoCt=!0,t.localVideo.show=!0,e.n=1,t.$nextTick();case 1:t.$refs.localVideo.srcObject=n;case 2:return e.a(2)}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),this.sipMix.on("remoteStream",(e,n)=>{console.info("remoteStream",e,n),this._resetCmpWHLRTB(),Object.assign(this.localVideo,{w:parseInt(this.clientWidth/3),h:parseInt(this.clientHeight/3),x:0,y:80,z:1100,draggable:!0}),this.$nextTick(()=>{this.$refs.localVideoWrapper.moveVertically(80)}),setTimeout(Hr(jr().m((function n(){return jr().w((function(n){while(1)switch(n.n){case 0:return Object.assign(t.remoteVideo,{show:!0,w:t.clientWidth,h:t.clientHeight,x:0,y:0,z:1e3,draggable:!1}),n.n=1,t.$nextTick();case 1:t.autoHideLocalVideo&&(t.localVideo.show=!1),t.$refs.remoteVideo.srcObject=e;case 2:return n.a(2)}}),n)}))),500)}),this.sipMix.on("remoteRing",()=>{this.callPrompt=this.$t("remoteRinging");var e=this.$refs.audioPlayer.play();void 0!==e&&e.catch(e=>{console.info(e),"NotAllowedError"===e.name&&(this.showAudioPlayer=!0)})}),this.sipMix.on("accepted",e=>{this.callPrompt=this.$t("remoteAccept");var t=e.callId;this.callId=t,this.$refs.audioPlayer.pause(),this.autoShowHangupBtn()}),this.sipMix.on("confirmed",()=>{this.startSendPosition()}),this.sipMix.on("newInfo",e=>{var t=e.content,n=e.contentType;console.info("New Info",n,t)}),this.sipMix.start({deviceId:this.callingNum,password:r,register:i,debug:n})},startLocate(){navigator.geolocation&&(navigator.geolocation.getCurrentPosition(e=>{console.info("Position",e);var t=(null===e||void 0===e?void 0:e.coords)||{},n=t.latitude,r=t.longitude,i=t.altitude;console.info(`获取地里位置信息: ${n}, ${r}, ${i}`),this.latitude=n,this.longitude=r,this.altitude=i},()=>{console.info("获取地里位置信息失败")}),this.locateHandler=setTimeout(()=>{this.startLocate()},15e3))},stopLocate(){clearTimeout(this.locateHandler)},startSendPosition(){this.showLocation&&this.locateHandler&&this.sipMix.sendInfo({encode:!1,content:{type:"Position",content:{latitude:this.latitude,longitude:this.longitude,altitude:this.altitude}}}),this.sendPositionHandler=setTimeout(()=>{this.startSendPosition()},15e3)},stopSendPosition(){clearTimeout(this.sendPositionHandler)}},mounted(){var e=this;return Hr(jr().m((function t(){return jr().w((function(t){while(1)switch(t.n){case 0:return console.info("MobilePhone mounted"),t.n=1,e.checkBrowser().catch(t=>{e.showSnackbar=!0,e.snackbarText=t});case 1:setTimeout(()=>{var t=window.document.body,n=t.clientHeight,r=t.clientWidth;e.clientHeight=n,e.clientWidth=r,e.localVideo.w=r,e.localVideo.h=n,e.showLocation&&e.startLocate()},200),e.$nextTick(()=>{e.showAudioPlayer=!1});case 2:return t.a(2)}}),t)})))()}},ro=no,io=(n("2419"),n("db8a"),n("624d"),n("7364"),Xi(ro,Lr,Dr,!1,null,"df00958c",null)),oo=io.exports;t["default"]=oo},fb19:function(e,t,n){(function(t,n){e.exports=n()})("undefined"!==typeof self&&self,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.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 i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));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")}({"0029":function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"0185":function(e,t,n){var r=n("e5fa");e.exports=function(e){return Object(r(e))}},"01f9":function(e,t,n){"use strict";var r=n("2d00"),i=n("5ca1"),o=n("2aba"),s=n("32e9"),a=n("84f2"),u=n("41a0"),c=n("7f20"),l=n("38fd"),d=n("2b4c")("iterator"),h=!([].keys&&"next"in[].keys()),f="@@iterator",p="keys",v="values",m=function(){return this};e.exports=function(e,t,n,g,_,y,b){u(n,t,g);var w,T,S,C=function(e){if(!h&&e in R)return R[e];switch(e){case p:return function(){return new n(this,e)};case v:return function(){return new n(this,e)}}return function(){return new n(this,e)}},E=t+" Iterator",A=_==v,x=!1,R=e.prototype,O=R[d]||R[f]||_&&R[_],I=O||C(_),k=_?A?C("entries"):I:void 0,P="Array"==t&&R.entries||O;if(P&&(S=l(P.call(new e)),S!==Object.prototype&&S.next&&(c(S,E,!0),r||"function"==typeof S[d]||s(S,d,m))),A&&O&&O.name!==v&&(x=!0,I=function(){return O.call(this)}),r&&!b||!h&&!x&&R[d]||s(R,d,I),a[t]=I,a[E]=m,_)if(w={values:A?I:C(v),keys:y?I:C(p),entries:k},b)for(T in w)T in R||o(R,T,w[T]);else i(i.P+i.F*(h||x),t,w);return w}},"02f4":function(e,t,n){var r=n("4588"),i=n("be13");e.exports=function(e){return function(t,n){var o,s,a=String(i(t)),u=r(n),c=a.length;return u<0||u>=c?e?"":void 0:(o=a.charCodeAt(u),o<55296||o>56319||u+1===c||(s=a.charCodeAt(u+1))<56320||s>57343?e?a.charAt(u):o:e?a.slice(u,u+2):s-56320+(o-55296<<10)+65536)}}},"0a49":function(e,t,n){var r=n("9b43"),i=n("626a"),o=n("4bf8"),s=n("9def"),a=n("cd1c");e.exports=function(e,t){var n=1==e,u=2==e,c=3==e,l=4==e,d=6==e,h=5==e||d,f=t||a;return function(t,a,p){for(var v,m,g=o(t),_=i(g),y=r(a,p,3),b=s(_.length),w=0,T=n?f(t,b):u?f(t,0):void 0;b>w;w++)if((h||w in _)&&(v=_[w],m=y(v,w,g),e))if(n)T[w]=m;else if(m)switch(e){case 3:return!0;case 5:return v;case 6:return w;case 2:T.push(v)}else if(l)return!1;return d?-1:c||l?l:T}}},"0a91":function(e,t,n){n("b42c"),n("93c4"),e.exports=n("b77f")},"0bfb":function(e,t,n){"use strict";var r=n("cb7c");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0d58":function(e,t,n){var r=n("ce10"),i=n("e11e");e.exports=Object.keys||function(e){return r(e,i)}},"0f89":function(e,t,n){var r=n("6f8a");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},"103a":function(e,t,n){var r=n("da3c").document;e.exports=r&&r.documentElement},1169:function(e,t,n){var r=n("2d95");e.exports=Array.isArray||function(e){return"Array"==r(e)}},"11e9":function(e,t,n){var r=n("52a7"),i=n("4630"),o=n("6821"),s=n("6a99"),a=n("69a8"),u=n("c69a"),c=Object.getOwnPropertyDescriptor;t.f=n("9e1e")?c:function(e,t){if(e=o(e),t=s(t,!0),u)try{return c(e,t)}catch(n){}if(a(e,t))return i(!r.f.call(e,t),e[t])}},"12fd":function(e,t,n){var r=n("6f8a"),i=n("da3c").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},1495:function(e,t,n){var r=n("86cc"),i=n("cb7c"),o=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){i(e);var n,s=o(t),a=s.length,u=0;while(a>u)r.f(e,n=s[u++],t[n]);return e}},1938:function(e,t,n){var r=n("d13f");r(r.S,"Array",{isArray:n("b5aa")})},"1b55":function(e,t,n){var r=n("7772")("wks"),i=n("7b00"),o=n("da3c").Symbol,s="function"==typeof o,a=e.exports=function(e){return r[e]||(r[e]=s&&o[e]||(s?o:i)("Symbol."+e))};a.store=r},"1b8f":function(e,t,n){var r=n("a812"),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},"1c01":function(e,t,n){var r=n("5ca1");r(r.S+r.F*!n("9e1e"),"Object",{defineProperty:n("86cc").f})},"1fa8":function(e,t,n){var r=n("cb7c");e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(s){var o=e["return"];throw void 0!==o&&r(o.call(e)),s}}},"230e":function(e,t,n){var r=n("d3f4"),i=n("7726").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},2312:function(e,t,n){e.exports=n("8ce0")},"23c6":function(e,t,n){var r=n("2d95"),i=n("2b4c")("toStringTag"),o="Arguments"==r(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=s(t=Object(e),i))?n:o?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},2418:function(e,t,n){var r=n("6a9b"),i=n("a5ab"),o=n("1b8f");e.exports=function(e){return function(t,n,s){var a,u=r(t),c=i(u.length),l=o(s,c);if(e&&n!=n){while(c>l)if(a=u[l++],a!=a)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}}},"245b":function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},2695:function(e,t,n){var r=n("43c8"),i=n("6a9b"),o=n("2418")(!1),s=n("5d8f")("IE_PROTO");e.exports=function(e,t){var n,a=i(e),u=0,c=[];for(n in a)n!=s&&r(a,n)&&c.push(n);while(t.length>u)r(a,n=t[u++])&&(~o(c,n)||c.push(n));return c}},"27ee":function(e,t,n){var r=n("23c6"),i=n("2b4c")("iterator"),o=n("84f2");e.exports=n("8378").getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},"2a4e":function(e,t,n){var r=n("a812"),i=n("e5fa");e.exports=function(e){return function(t,n){var o,s,a=String(i(t)),u=r(n),c=a.length;return u<0||u>=c?e?"":void 0:(o=a.charCodeAt(u),o<55296||o>56319||u+1===c||(s=a.charCodeAt(u+1))<56320||s>57343?e?a.charAt(u):o:e?a.slice(u,u+2):s-56320+(o-55296<<10)+65536)}}},"2aba":function(e,t,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),s=n("ca5a")("src"),a="toString",u=Function[a],c=(""+u).split(a);n("8378").inspectSource=function(e){return u.call(e)},(e.exports=function(e,t,n,a){var u="function"==typeof n;u&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(u&&(o(n,s)||i(n,s,e[t]?""+e[t]:c.join(String(t)))),e===r?e[t]=n:a?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,a,(function(){return"function"==typeof this&&this[s]||u.call(this)}))},"2aeb":function(e,t,n){var r=n("cb7c"),i=n("1495"),o=n("e11e"),s=n("613b")("IE_PROTO"),a=function(){},u="prototype",c=function(){var e,t=n("230e")("iframe"),r=o.length,i="<",s=">";t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+s+"document.F=Object"+i+"/script"+s),e.close(),c=e.F;while(r--)delete c[u][o[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[u]=r(e),n=new a,a[u]=null,n[s]=e):n=c(),void 0===t?n:i(n,t)}},"2b4c":function(e,t,n){var r=n("5537")("wks"),i=n("ca5a"),o=n("7726").Symbol,s="function"==typeof o,a=e.exports=function(e){return r[e]||(r[e]=s&&o[e]||(s?o:i)("Symbol."+e))};a.store=r},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"2ea1":function(e,t,n){var r=n("6f8a");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"2f21":function(e,t,n){"use strict";var r=n("79e5");e.exports=function(e,t){return!!e&&r((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},"2fdb":function(e,t,n){"use strict";var r=n("5ca1"),i=n("d2c8"),o="includes";r(r.P+r.F*n("5147")(o),"String",{includes:function(e){return!!~i(this,e,o).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(e,t,n){var r=n("86cc"),i=n("4630");e.exports=n("9e1e")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"33a4":function(e,t,n){var r=n("84f2"),i=n("2b4c")("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},3425:function(e,t,n){"use strict";var r=function(){var e,t=this,n=t.$createElement,r=t._self._c||n;return r("div",{class:[(e={},e[t.classNameActive]=t.enabled,e[t.classNameDragging]=t.dragging,e[t.classNameResizing]=t.resizing,e[t.classNameDraggable]=t.draggable,e[t.classNameResizable]=t.resizable,e),t.className],style:t.style,on:{mousedown:t.elementMouseDown,touchstart:t.elementTouchDown}},[t._l(t.actualHandles,(function(e){return r("div",{key:e,class:[t.classNameHandle,t.classNameHandle+"-"+e],style:{display:t.enabled?"block":"none"},on:{mousedown:function(n){n.stopPropagation(),n.preventDefault(),t.handleDown(e,n)},touchstart:function(n){n.stopPropagation(),n.preventDefault(),t.handleTouchDown(e,n)}}},[t._t(e)],2)})),t._v(" "),t._t("default")],2)},i=[],o=(n("1c01"),n("58b2"),n("8e6e"),n("f3e2"),n("456d"),n("85f2")),s=n.n(o);function a(e,t,n){return t in e?s()(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n("3b2b");var u=n("a745"),c=n.n(u);function l(e){if(c()(e))return e}var d=n("5d73"),h=n.n(d),f=n("c8bb"),p=n.n(f);function v(e,t){if(p()(Object(e))||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=h()(e);!(r=(s=a.next()).done);r=!0)if(n.push(s.value),t&&n.length===t)break}catch(u){i=!0,o=u}finally{try{r||null==a["return"]||a["return"]()}finally{if(i)throw o}}return n}}function m(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function g(e,t){return l(e)||v(e,t)||m()}function _(e){return"function"===typeof e||"[object Function]"===Object.prototype.toString.call(e)}function y(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i="number"===typeof r?[r,r]:r,o=g(i,2),s=o[0],a=o[1],u=Math.round(t/s/e[0])*e[0],c=Math.round(n/a/e[1])*e[1];return[u,c]}function b(e,t,n){return e-t-n}function w(e,t,n){return e-t-n}function T(e,t,n){return null!==t&&e<t?t:null!==n&&n<e?n:e}function S(e,t,n){var r=e,i=["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"].find((function(e){return _(r[e])}));if(!_(r[i]))return!1;do{if(r[i](t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1}function C(e){var t=window.getComputedStyle(e);return[parseFloat(t.getPropertyValue("width"),10),parseFloat(t.getPropertyValue("height"),10)]}function E(e,t,n){e&&(e.attachEvent?e.attachEvent("on"+t,n):e.addEventListener?e.addEventListener(t,n,!0):e["on"+t]=n)}function A(e,t,n){e&&(e.detachEvent?e.detachEvent("on"+t,n):e.removeEventListener?e.removeEventListener(t,n,!0):e["on"+t]=null)}function x(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 R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(n,!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}n("6762"),n("2fdb"),n("d25f"),n("ac6a"),n("cadf"),n("5df3"),n("4f7f"),n("c5f6"),n("7514"),n("6b54"),n("87b3");var O={mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"},touch:{start:"touchstart",move:"touchmove",stop:"touchend"}},I={userSelect:"none",MozUserSelect:"none",WebkitUserSelect:"none",MsUserSelect:"none"},k={userSelect:"auto",MozUserSelect:"auto",WebkitUserSelect:"auto",MsUserSelect:"auto"},P=O.mouse,M={replace:!0,name:"vue-draggable-resizable",props:{className:{type:String,default:"vdr"},classNameDraggable:{type:String,default:"draggable"},classNameResizable:{type:String,default:"resizable"},classNameDragging:{type:String,default:"dragging"},classNameResizing:{type:String,default:"resizing"},classNameActive:{type:String,default:"active"},classNameHandle:{type:String,default:"handle"},disableUserSelect:{type:Boolean,default:!0},enableNativeDrag:{type:Boolean,default:!1},preventDeactivation:{type:Boolean,default:!1},active:{type:Boolean,default:!1},draggable:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},lockAspectRatio:{type:Boolean,default:!1},w:{type:[Number,String],default:200,validator:function(e){return"number"===typeof e?e>0:"auto"===e}},h:{type:[Number,String],default:200,validator:function(e){return"number"===typeof e?e>0:"auto"===e}},minWidth:{type:Number,default:0,validator:function(e){return e>=0}},minHeight:{type:Number,default:0,validator:function(e){return e>=0}},maxWidth:{type:Number,default:null,validator:function(e){return e>=0}},maxHeight:{type:Number,default:null,validator:function(e){return e>=0}},x:{type:Number,default:0},y:{type:Number,default:0},z:{type:[String,Number],default:"auto",validator:function(e){return"string"===typeof e?"auto"===e:e>=0}},handles:{type:Array,default:function(){return["tl","tm","tr","mr","br","bm","bl","ml"]},validator:function(e){var t=new Set(["tl","tm","tr","mr","br","bm","bl","ml"]);return new Set(e.filter((function(e){return t.has(e)}))).size===e.length}},dragHandle:{type:String,default:null},dragCancel:{type:String,default:null},axis:{type:String,default:"both",validator:function(e){return["x","y","both"].includes(e)}},grid:{type:Array,default:function(){return[1,1]}},parent:{type:Boolean,default:!1},scale:{type:[Number,Array],default:1,validator:function(e){return"number"===typeof e?e>0:2===e.length&&e[0]>0&&e[1]>0}},onDragStart:{type:Function,default:function(){return!0}},onDrag:{type:Function,default:function(){return!0}},onResizeStart:{type:Function,default:function(){return!0}},onResize:{type:Function,default:function(){return!0}}},data:function(){return{left:this.x,top:this.y,right:null,bottom:null,width:null,height:null,widthTouched:!1,heightTouched:!1,aspectFactor:null,parentWidth:null,parentHeight:null,minW:this.minWidth,minH:this.minHeight,maxW:this.maxWidth,maxH:this.maxHeight,handle:null,enabled:this.active,resizing:!1,dragging:!1,dragEnable:!1,resizeEnable:!1,zIndex:this.z}},created:function(){this.maxWidth&&this.minWidth>this.maxWidth&&console.warn("[Vdr warn]: Invalid prop: minWidth cannot be greater than maxWidth"),this.maxWidth&&this.minHeight>this.maxHeight&&console.warn("[Vdr warn]: Invalid prop: minHeight cannot be greater than maxHeight"),this.resetBoundsAndMouseState()},mounted:function(){this.enableNativeDrag||(this.$el.ondragstart=function(){return!1});var e=this.getParentSize(),t=g(e,2),n=t[0],r=t[1];this.parentWidth=n,this.parentHeight=r;var i=C(this.$el),o=g(i,2),s=o[0],a=o[1];this.aspectFactor=("auto"!==this.w?this.w:s)/("auto"!==this.h?this.h:a),this.width="auto"!==this.w?this.w:s,this.height="auto"!==this.h?this.h:a,this.right=this.parentWidth-this.width-this.left,this.bottom=this.parentHeight-this.height-this.top,this.active&&this.$emit("activated"),E(document.documentElement,"mousedown",this.deselect),E(document.documentElement,"touchend touchcancel",this.deselect),E(window,"resize",this.checkParentSize)},beforeDestroy:function(){A(document.documentElement,"mousedown",this.deselect),A(document.documentElement,"touchstart",this.handleUp),A(document.documentElement,"mousemove",this.move),A(document.documentElement,"touchmove",this.move),A(document.documentElement,"mouseup",this.handleUp),A(document.documentElement,"touchend touchcancel",this.deselect),A(window,"resize",this.checkParentSize)},methods:{resetBoundsAndMouseState:function(){this.mouseClickPosition={mouseX:0,mouseY:0,x:0,y:0,w:0,h:0},this.bounds={minLeft:null,maxLeft:null,minRight:null,maxRight:null,minTop:null,maxTop:null,minBottom:null,maxBottom:null}},checkParentSize:function(){if(this.parent){var e=this.getParentSize(),t=g(e,2),n=t[0],r=t[1];this.parentWidth=n,this.parentHeight=r,this.right=this.parentWidth-this.width-this.left,this.bottom=this.parentHeight-this.height-this.top}},getParentSize:function(){if(this.parent){var e=window.getComputedStyle(this.$el.parentNode,null);return[parseInt(e.getPropertyValue("width"),10),parseInt(e.getPropertyValue("height"),10)]}return[null,null]},elementTouchDown:function(e){P=O.touch,this.elementDown(e)},elementMouseDown:function(e){P=O.mouse,this.elementDown(e)},elementDown:function(e){if(!(e instanceof MouseEvent&&1!==e.which)){var t=e.target||e.srcElement;if(this.$el.contains(t)){if(!1===this.onDragStart(e))return;if(this.dragHandle&&!S(t,this.dragHandle,this.$el)||this.dragCancel&&S(t,this.dragCancel,this.$el))return void(this.dragging=!1);this.enabled||(this.enabled=!0,this.$emit("activated"),this.$emit("update:active",!0)),this.draggable&&(this.dragEnable=!0),this.mouseClickPosition.mouseX=e.touches?e.touches[0].pageX:e.pageX,this.mouseClickPosition.mouseY=e.touches?e.touches[0].pageY:e.pageY,this.mouseClickPosition.left=this.left,this.mouseClickPosition.right=this.right,this.mouseClickPosition.top=this.top,this.mouseClickPosition.bottom=this.bottom,this.parent&&(this.bounds=this.calcDragLimits()),E(document.documentElement,P.move,this.move),E(document.documentElement,P.stop,this.handleUp)}}},calcDragLimits:function(){return{minLeft:this.left%this.grid[0],maxLeft:Math.floor((this.parentWidth-this.width-this.left)/this.grid[0])*this.grid[0]+this.left,minRight:this.right%this.grid[0],maxRight:Math.floor((this.parentWidth-this.width-this.right)/this.grid[0])*this.grid[0]+this.right,minTop:this.top%this.grid[1],maxTop:Math.floor((this.parentHeight-this.height-this.top)/this.grid[1])*this.grid[1]+this.top,minBottom:this.bottom%this.grid[1],maxBottom:Math.floor((this.parentHeight-this.height-this.bottom)/this.grid[1])*this.grid[1]+this.bottom}},deselect:function(e){var t=e.target||e.srcElement,n=new RegExp(this.className+"-([trmbl]{2})","");this.$el.contains(t)||n.test(t.className)||(this.enabled&&!this.preventDeactivation&&(this.enabled=!1,this.$emit("deactivated"),this.$emit("update:active",!1)),A(document.documentElement,P.move,this.handleResize)),this.resetBoundsAndMouseState()},handleTouchDown:function(e,t){P=O.touch,this.handleDown(e,t)},handleDown:function(e,t){t instanceof MouseEvent&&1!==t.which||!1!==this.onResizeStart(e,t)&&(t.stopPropagation&&t.stopPropagation(),this.lockAspectRatio&&!e.includes("m")?this.handle="m"+e.substring(1):this.handle=e,this.resizeEnable=!0,this.mouseClickPosition.mouseX=t.touches?t.touches[0].pageX:t.pageX,this.mouseClickPosition.mouseY=t.touches?t.touches[0].pageY:t.pageY,this.mouseClickPosition.left=this.left,this.mouseClickPosition.right=this.right,this.mouseClickPosition.top=this.top,this.mouseClickPosition.bottom=this.bottom,this.bounds=this.calcResizeLimits(),E(document.documentElement,P.move,this.handleResize),E(document.documentElement,P.stop,this.handleUp))},calcResizeLimits:function(){var e=this.minW,t=this.minH,n=this.maxW,r=this.maxH,i=this.aspectFactor,o=g(this.grid,2),s=o[0],a=o[1],u=this.width,c=this.height,l=this.left,d=this.top,h=this.right,f=this.bottom;this.lockAspectRatio&&(e/t>i?t=e/i:e=i*t,n&&r?(n=Math.min(n,i*r),r=Math.min(r,n/i)):n?r=n/i:r&&(n=i*r)),n-=n%s,r-=r%a;var p={minLeft:null,maxLeft:null,minTop:null,maxTop:null,minRight:null,maxRight:null,minBottom:null,maxBottom:null};return this.parent?(p.minLeft=l%s,p.maxLeft=l+Math.floor((u-e)/s)*s,p.minTop=d%a,p.maxTop=d+Math.floor((c-t)/a)*a,p.minRight=h%s,p.maxRight=h+Math.floor((u-e)/s)*s,p.minBottom=f%a,p.maxBottom=f+Math.floor((c-t)/a)*a,n&&(p.minLeft=Math.max(p.minLeft,this.parentWidth-h-n),p.minRight=Math.max(p.minRight,this.parentWidth-l-n)),r&&(p.minTop=Math.max(p.minTop,this.parentHeight-f-r),p.minBottom=Math.max(p.minBottom,this.parentHeight-d-r)),this.lockAspectRatio&&(p.minLeft=Math.max(p.minLeft,l-d*i),p.minTop=Math.max(p.minTop,d-l/i),p.minRight=Math.max(p.minRight,h-f*i),p.minBottom=Math.max(p.minBottom,f-h/i))):(p.minLeft=null,p.maxLeft=l+Math.floor((u-e)/s)*s,p.minTop=null,p.maxTop=d+Math.floor((c-t)/a)*a,p.minRight=null,p.maxRight=h+Math.floor((u-e)/s)*s,p.minBottom=null,p.maxBottom=f+Math.floor((c-t)/a)*a,n&&(p.minLeft=-(h+n),p.minRight=-(l+n)),r&&(p.minTop=-(f+r),p.minBottom=-(d+r)),this.lockAspectRatio&&n&&r&&(p.minLeft=Math.min(p.minLeft,-(h+n)),p.minTop=Math.min(p.minTop,-(r+f)),p.minRight=Math.min(p.minRight,-l-n),p.minBottom=Math.min(p.minBottom,-d-r))),p},move:function(e){this.resizing?this.handleResize(e):this.dragEnable&&this.handleDrag(e)},handleDrag:function(e){var t=this.axis,n=this.grid,r=this.bounds,i=this.mouseClickPosition,o=t&&"y"!==t?i.mouseX-(e.touches?e.touches[0].pageX:e.pageX):0,s=t&&"x"!==t?i.mouseY-(e.touches?e.touches[0].pageY:e.pageY):0,a=y(n,o,s,this.scale),u=g(a,2),c=u[0],l=u[1],d=T(i.left-c,r.minLeft,r.maxLeft),h=T(i.top-l,r.minTop,r.maxTop);if(!1!==this.onDrag(d,h)){var f=T(i.right+c,r.minRight,r.maxRight),p=T(i.bottom+l,r.minBottom,r.maxBottom);this.left=d,this.top=h,this.right=f,this.bottom=p,this.$emit("dragging",this.left,this.top),this.dragging=!0}},moveHorizontally:function(e){var t=y(this.grid,e,this.top,1),n=g(t,2),r=n[0],i=(n[1],T(r,this.bounds.minLeft,this.bounds.maxLeft));this.left=i,this.right=this.parentWidth-this.width-i},moveVertically:function(e){var t=y(this.grid,this.left,e,1),n=g(t,2),r=(n[0],n[1]),i=T(r,this.bounds.minTop,this.bounds.maxTop);this.top=i,this.bottom=this.parentHeight-this.height-i},handleResize:function(e){var t=this.left,n=this.top,r=this.right,i=this.bottom,o=this.mouseClickPosition,s=(this.lockAspectRatio,this.aspectFactor),a=o.mouseX-(e.touches?e.touches[0].pageX:e.pageX),u=o.mouseY-(e.touches?e.touches[0].pageY:e.pageY);!this.widthTouched&&a&&(this.widthTouched=!0),!this.heightTouched&&u&&(this.heightTouched=!0);var c=y(this.grid,a,u,this.scale),l=g(c,2),d=l[0],h=l[1];this.handle.includes("b")?(i=T(o.bottom+h,this.bounds.minBottom,this.bounds.maxBottom),this.lockAspectRatio&&this.resizingOnY&&(r=this.right-(this.bottom-i)*s)):this.handle.includes("t")&&(n=T(o.top-h,this.bounds.minTop,this.bounds.maxTop),this.lockAspectRatio&&this.resizingOnY&&(t=this.left-(this.top-n)*s)),this.handle.includes("r")?(r=T(o.right+d,this.bounds.minRight,this.bounds.maxRight),this.lockAspectRatio&&this.resizingOnX&&(i=this.bottom-(this.right-r)/s)):this.handle.includes("l")&&(t=T(o.left-d,this.bounds.minLeft,this.bounds.maxLeft),this.lockAspectRatio&&this.resizingOnX&&(n=this.top-(this.left-t)/s));var f=b(this.parentWidth,t,r),p=w(this.parentHeight,n,i);!1!==this.onResize(this.handle,t,n,f,p)&&(this.left=t,this.top=n,this.right=r,this.bottom=i,this.width=f,this.height=p,this.$emit("resizing",this.left,this.top,this.width,this.height),this.resizing=!0)},changeWidth:function(e){var t=y(this.grid,e,0,1),n=g(t,2),r=n[0],i=(n[1],T(this.parentWidth-r-this.left,this.bounds.minRight,this.bounds.maxRight)),o=this.bottom;this.lockAspectRatio&&(o=this.bottom-(this.right-i)/this.aspectFactor);var s=b(this.parentWidth,this.left,i),a=w(this.parentHeight,this.top,o);this.right=i,this.bottom=o,this.width=s,this.height=a},changeHeight:function(e){var t=y(this.grid,0,e,1),n=g(t,2),r=(n[0],n[1]),i=T(this.parentHeight-r-this.top,this.bounds.minBottom,this.bounds.maxBottom),o=this.right;this.lockAspectRatio&&(o=this.right-(this.bottom-i)*this.aspectFactor);var s=b(this.parentWidth,this.left,o),a=w(this.parentHeight,this.top,i);this.right=o,this.bottom=i,this.width=s,this.height=a},handleUp:function(e){this.handle=null,this.resetBoundsAndMouseState(),this.dragEnable=!1,this.resizeEnable=!1,this.resizing&&(this.resizing=!1,this.$emit("resizestop",this.left,this.top,this.width,this.height)),this.dragging&&(this.dragging=!1,this.$emit("dragstop",this.left,this.top)),A(document.documentElement,P.move,this.handleResize)}},computed:{style:function(){return R({transform:"translate(".concat(this.left,"px, ").concat(this.top,"px)"),width:this.computedWidth,height:this.computedHeight,zIndex:this.zIndex},this.dragging&&this.disableUserSelect?I:k)},actualHandles:function(){return this.resizable?this.handles:[]},computedWidth:function(){return"auto"!==this.w||this.widthTouched?this.width+"px":"auto"},computedHeight:function(){return"auto"!==this.h||this.heightTouched?this.height+"px":"auto"},resizingOnX:function(){return Boolean(this.handle)&&(this.handle.includes("l")||this.handle.includes("r"))},resizingOnY:function(){return Boolean(this.handle)&&(this.handle.includes("t")||this.handle.includes("b"))},isCornerHandle:function(){return Boolean(this.handle)&&["tl","tr","br","bl"].includes(this.handle)}},watch:{active:function(e){this.enabled=e,e?this.$emit("activated"):this.$emit("deactivated")},z:function(e){(e>=0||"auto"===e)&&(this.zIndex=e)},x:function(e){this.resizing||this.dragging||(this.parent&&(this.bounds=this.calcDragLimits()),this.moveHorizontally(e))},y:function(e){this.resizing||this.dragging||(this.parent&&(this.bounds=this.calcDragLimits()),this.moveVertically(e))},lockAspectRatio:function(e){this.aspectFactor=e?this.width/this.height:void 0},minWidth:function(e){e>0&&e<=this.width&&(this.minW=e)},minHeight:function(e){e>0&&e<=this.height&&(this.minH=e)},maxWidth:function(e){this.maxW=e},maxHeight:function(e){this.maxH=e},w:function(e){this.resizing||this.dragging||(this.parent&&(this.bounds=this.calcResizeLimits()),this.changeWidth(e))},h:function(e){this.resizing||this.dragging||(this.parent&&(this.bounds=this.calcResizeLimits()),this.changeHeight(e))}}},N=M;function L(e,t,n,r,i,o,s,a){var u,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(u=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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=u):i&&(u=a?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(e,t){return u.call(t),l(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,u):[u]}return{exports:e,options:c}}var D=L(N,r,i,!1,null,null,null);t["a"]=D.exports},3846:function(e,t,n){n("9e1e")&&"g"!=/./g.flags&&n("86cc").f(RegExp.prototype,"flags",{configurable:!0,get:n("0bfb")})},"38fd":function(e,t,n){var r=n("69a8"),i=n("4bf8"),o=n("613b")("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},"3adc":function(e,t,n){var r=n("0f89"),i=n("a47f"),o=n("2ea1"),s=Object.defineProperty;t.f=n("7d95")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return s(e,t,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"3b2b":function(e,t,n){var r=n("7726"),i=n("5dbc"),o=n("86cc").f,s=n("9093").f,a=n("aae3"),u=n("0bfb"),c=r.RegExp,l=c,d=c.prototype,h=/a/g,f=/a/g,p=new c(h)!==h;if(n("9e1e")&&(!p||n("79e5")((function(){return f[n("2b4c")("match")]=!1,c(h)!=h||c(f)==f||"/a/i"!=c(h,"i")})))){c=function(e,t){var n=this instanceof c,r=a(e),o=void 0===t;return!n&&r&&e.constructor===c&&o?e:i(p?new l(r&&!o?e.source:e,t):l((r=e instanceof c)?e.source:e,r&&o?u.call(e):t),n?this:d,c)};for(var v=function(e){e in c||o(c,e,{configurable:!0,get:function(){return l[e]},set:function(t){l[e]=t}})},m=s(l),g=0;m.length>g;)v(m[g++]);d.constructor=c,c.prototype=d,n("2aba")(r,"RegExp",c)}n("7a56")("RegExp")},"41a0":function(e,t,n){"use strict";var r=n("2aeb"),i=n("4630"),o=n("7f20"),s={};n("32e9")(s,n("2b4c")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(s,{next:i(1,n)}),o(e,t+" Iterator")}},"43c8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"456d":function(e,t,n){var r=n("4bf8"),i=n("0d58");n("5eda")("keys",(function(){return function(e){return i(r(e))}}))},4588:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"4a59":function(e,t,n){var r=n("9b43"),i=n("1fa8"),o=n("33a4"),s=n("cb7c"),a=n("9def"),u=n("27ee"),c={},l={};t=e.exports=function(e,t,n,d,h){var f,p,v,m,g=h?function(){return e}:u(e),_=r(n,d,t?2:1),y=0;if("function"!=typeof g)throw TypeError(e+" is not iterable!");if(o(g)){for(f=a(e.length);f>y;y++)if(m=t?_(s(p=e[y])[0],p[1]):_(e[y]),m===c||m===l)return m}else for(v=g.call(e);!(p=v.next()).done;)if(m=i(v,_,p.value,t),m===c||m===l)return m},t.BREAK=c,t.RETURN=l},"4bf8":function(e,t,n){var r=n("be13");e.exports=function(e){return Object(r(e))}},"4f7f":function(e,t,n){"use strict";var r=n("c26b"),i=n("b39a"),o="Set";e.exports=n("e0b8")(o,(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return r.def(i(this,o),e=0===e?0:e,e)}},r)},5147:function(e,t,n){var r=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(i){}}return!0}},"52a7":function(e,t){t.f={}.propertyIsEnumerable},5537:function(e,t,n){var r=n("8378"),i=n("7726"),o="__core-js_shared__",s=i[o]||(i[o]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},"58b2":function(e,t,n){var r=n("5ca1");r(r.S+r.F*!n("9e1e"),"Object",{defineProperties:n("1495")})},"5ca1":function(e,t,n){var r=n("7726"),i=n("8378"),o=n("32e9"),s=n("2aba"),a=n("9b43"),u="prototype",c=function(e,t,n){var l,d,h,f,p=e&c.F,v=e&c.G,m=e&c.S,g=e&c.P,_=e&c.B,y=v?r:m?r[t]||(r[t]={}):(r[t]||{})[u],b=v?i:i[t]||(i[t]={}),w=b[u]||(b[u]={});for(l in v&&(n=t),n)d=!p&&y&&void 0!==y[l],h=(d?y:n)[l],f=_&&d?a(h,r):g&&"function"==typeof h?a(Function.call,h):h,y&&s(y,l,h,e&c.U),b[l]!=h&&o(b,l,f),g&&w[l]!=h&&(w[l]=h)};r.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},"5cc5":function(e,t,n){var r=n("2b4c")("iterator"),i=!1;try{var o=[7][r]();o["return"]=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(s){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},e(o)}catch(s){}return n}},"5ce7":function(e,t,n){"use strict";var r=n("7108"),i=n("f845"),o=n("c0d8"),s={};n("8ce0")(s,n("1b55")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(s,{next:i(1,n)}),o(e,t+" Iterator")}},"5d73":function(e,t,n){e.exports=n("0a91")},"5d8f":function(e,t,n){var r=n("7772")("keys"),i=n("7b00");e.exports=function(e){return r[e]||(r[e]=i(e))}},"5dbc":function(e,t,n){var r=n("d3f4"),i=n("8b97").set;e.exports=function(e,t,n){var o,s=t.constructor;return s!==n&&"function"==typeof s&&(o=s.prototype)!==n.prototype&&r(o)&&i&&i(e,o),e}},"5df3":function(e,t,n){"use strict";var r=n("02f4")(!0);n("01f9")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},"5eda":function(e,t,n){var r=n("5ca1"),i=n("8378"),o=n("79e5");e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],s={};s[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",s)}},"613b":function(e,t,n){var r=n("5537")("keys"),i=n("ca5a");e.exports=function(e){return r[e]||(r[e]=i(e))}},"626a":function(e,t,n){var r=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},6762:function(e,t,n){"use strict";var r=n("5ca1"),i=n("c366")(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},"67ab":function(e,t,n){var r=n("ca5a")("meta"),i=n("d3f4"),o=n("69a8"),s=n("86cc").f,a=0,u=Object.isExtensible||function(){return!0},c=!n("79e5")((function(){return u(Object.preventExtensions({}))})),l=function(e){s(e,r,{value:{i:"O"+ ++a,w:{}}})},d=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!u(e))return"F";if(!t)return"E";l(e)}return e[r].i},h=function(e,t){if(!o(e,r)){if(!u(e))return!0;if(!t)return!1;l(e)}return e[r].w},f=function(e){return c&&p.NEED&&u(e)&&!o(e,r)&&l(e),e},p=e.exports={KEY:r,NEED:!1,fastKey:d,getWeak:h,onFreeze:f}},6821:function(e,t,n){var r=n("626a"),i=n("be13");e.exports=function(e){return r(i(e))}},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"6a99":function(e,t,n){var r=n("d3f4");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"6a9b":function(e,t,n){var r=n("8bab"),i=n("e5fa");e.exports=function(e){return r(i(e))}},"6b54":function(e,t,n){"use strict";n("3846");var r=n("cb7c"),i=n("0bfb"),o=n("9e1e"),s="toString",a=/./[s],u=function(e){n("2aba")(RegExp.prototype,s,e,!0)};n("79e5")((function(){return"/a/b"!=a.call({source:"a",flags:"b"})}))?u((function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!o&&e instanceof RegExp?i.call(e):void 0)})):a.name!=s&&u((function(){return a.call(this)}))},"6e1f":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"6f42":function(e,t,n){},"6f8a":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},7108:function(e,t,n){var r=n("0f89"),i=n("f568"),o=n("0029"),s=n("5d8f")("IE_PROTO"),a=function(){},u="prototype",c=function(){var e,t=n("12fd")("iframe"),r=o.length,i="<",s=">";t.style.display="none",n("103a").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+s+"document.F=Object"+i+"/script"+s),e.close(),c=e.F;while(r--)delete c[u][o[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[u]=r(e),n=new a,a[u]=null,n[s]=e):n=c(),void 0===t?n:i(n,t)}},7514:function(e,t,n){"use strict";var r=n("5ca1"),i=n("0a49")(5),o="find",s=!0;o in[]&&Array(1)[o]((function(){s=!1})),r(r.P+r.F*s,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(o)},7633:function(e,t,n){var r=n("2695"),i=n("0029");e.exports=Object.keys||function(e){return r(e,i)}},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},7772:function(e,t,n){var r=n("a7d3"),i=n("da3c"),o="__core-js_shared__",s=i[o]||(i[o]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("b457")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"77f1":function(e,t,n){var r=n("4588"),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"7a56":function(e,t,n){"use strict";var r=n("7726"),i=n("86cc"),o=n("9e1e"),s=n("2b4c")("species");e.exports=function(e){var t=r[e];o&&t&&!t[s]&&i.f(t,s,{configurable:!0,get:function(){return this}})}},"7b00":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},"7d8a":function(e,t,n){var r=n("6e1f"),i=n("1b55")("toStringTag"),o="Arguments"==r(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=s(t=Object(e),i))?n:o?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},"7d95":function(e,t,n){e.exports=!n("d782")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"7f20":function(e,t,n){var r=n("86cc").f,i=n("69a8"),o=n("2b4c")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},8378:function(e,t){var n=e.exports={version:"2.6.1"};"number"==typeof __e&&(__e=n)},"84f2":function(e,t){e.exports={}},"85f2":function(e,t,n){e.exports=n("ec5b")},"86cc":function(e,t,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),s=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return s(e,t,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"87b3":function(e,t,n){var r=Date.prototype,i="Invalid Date",o="toString",s=r[o],a=r.getTime;new Date(NaN)+""!=i&&n("2aba")(r,o,(function(){var e=a.call(this);return e===e?s.call(this):i}))},8875:function(e,t,n){var r,i,o;(function(n,s){i=[],r=s,o="function"===typeof r?r.apply(t,i):r,void 0===o||(e.exports=o)})("undefined"!==typeof self&&self,(function(){function e(){if(document.currentScript)return document.currentScript;try{throw new Error}catch(d){var e,t,n,r=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,i=/@([^@]*):(\d+):(\d+)\s*$/gi,o=r.exec(d.stack)||i.exec(d.stack),s=o&&o[1]||!1,a=o&&o[2]||!1,u=document.location.href.replace(document.location.hash,""),c=document.getElementsByTagName("script");s===u&&(e=document.documentElement.outerHTML,t=new RegExp("(?:[^\\n]+?\\n){0,"+(a-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),n=e.replace(t,"$1").trim());for(var l=0;l<c.length;l++){if("interactive"===c[l].readyState)return c[l];if(c[l].src===s)return c[l];if(s===u&&c[l].innerHTML&&c[l].innerHTML.trim()===n)return c[l]}return null}}return e}))},"89ca":function(e,t,n){n("b42c"),n("93c4"),e.exports=n("d38f")},"8b97":function(e,t,n){var r=n("d3f4"),i=n("cb7c"),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(i){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},"8bab":function(e,t,n){var r=n("6e1f");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"8ce0":function(e,t,n){var r=n("3adc"),i=n("f845");e.exports=n("7d95")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"8e6e":function(e,t,n){var r=n("5ca1"),i=n("990b"),o=n("6821"),s=n("11e9"),a=n("f1ae");r(r.S,"Object",{getOwnPropertyDescriptors:function(e){var t,n,r=o(e),u=s.f,c=i(r),l={},d=0;while(c.length>d)n=u(r,t=c[d++]),void 0!==n&&a(l,t,n);return l}})},9093:function(e,t,n){var r=n("ce10"),i=n("e11e").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},"93c4":function(e,t,n){"use strict";var r=n("2a4e")(!0);n("e4a9")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},"990b":function(e,t,n){var r=n("9093"),i=n("2621"),o=n("cb7c"),s=n("7726").Reflect;e.exports=s&&s.ownKeys||function(e){var t=r.f(o(e)),n=i.f;return n?t.concat(n(e)):t}},"9b43":function(e,t,n){var r=n("d8e8");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,n){var r=n("2b4c")("unscopables"),i=Array.prototype;void 0==i[r]&&n("32e9")(i,r,{}),e.exports=function(e){i[r][e]=!0}},"9def":function(e,t,n){var r=n("4588"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a47f:function(e,t,n){e.exports=!n("7d95")&&!n("d782")((function(){return 7!=Object.defineProperty(n("12fd")("div"),"a",{get:function(){return 7}}).a}))},a5ab:function(e,t,n){var r=n("a812"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},a745:function(e,t,n){e.exports=n("d604")},a7d3:function(e,t){var n=e.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},a812:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},aa77:function(e,t,n){var r=n("5ca1"),i=n("be13"),o=n("79e5"),s=n("fdef"),a="["+s+"]",u="​…",c=RegExp("^"+a+a+"*"),l=RegExp(a+a+"*$"),d=function(e,t,n){var i={},a=o((function(){return!!s[e]()||u[e]()!=u})),c=i[e]=a?t(h):s[e];n&&(i[n]=c),r(r.P+r.F*a,"String",i)},h=d.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(c,"")),2&t&&(e=e.replace(l,"")),e};e.exports=d},aae3:function(e,t,n){var r=n("d3f4"),i=n("2d95"),o=n("2b4c")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},ac6a:function(e,t,n){for(var r=n("cadf"),i=n("0d58"),o=n("2aba"),s=n("7726"),a=n("32e9"),u=n("84f2"),c=n("2b4c"),l=c("iterator"),d=c("toStringTag"),h=u.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(f),v=0;v<p.length;v++){var m,g=p[v],_=f[g],y=s[g],b=y&&y.prototype;if(b&&(b[l]||a(b,l,h),b[d]||a(b,d,g),u[g]=h,_))for(m in r)b[m]||o(b,m,r[m],!0)}},b22a:function(e,t){e.exports={}},b39a:function(e,t,n){var r=n("d3f4");e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},b3e7:function(e,t){e.exports=function(){}},b42c:function(e,t,n){n("fa54");for(var r=n("da3c"),i=n("8ce0"),o=n("b22a"),s=n("1b55")("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<a.length;u++){var c=a[u],l=r[c],d=l&&l.prototype;d&&!d[s]&&i(d,s,c),o[c]=o.Array}},b457:function(e,t){e.exports=!0},b5aa:function(e,t,n){var r=n("6e1f");e.exports=Array.isArray||function(e){return"Array"==r(e)}},b635:function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return i})),n("6f42");var r=n("3425");function i(e){i.installed||(i.installed=!0,e.component("VueDraggableResizable",r["a"]))}var o={install:i},s=null;"undefined"!==typeof window?s=window.Vue:"undefined"!==typeof e&&(s=e.Vue),s&&s.use(o),t["a"]=r["a"]}).call(this,n("c8ba"))},b77f:function(e,t,n){var r=n("0f89"),i=n("f159");e.exports=n("a7d3").getIterator=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},bc25:function(e,t,n){var r=n("f2fe");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},be13:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},c0d8:function(e,t,n){var r=n("3adc").f,i=n("43c8"),o=n("1b55")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},c26b:function(e,t,n){"use strict";var r=n("86cc").f,i=n("2aeb"),o=n("dcbc"),s=n("9b43"),a=n("f605"),u=n("4a59"),c=n("01f9"),l=n("d53b"),d=n("7a56"),h=n("9e1e"),f=n("67ab").fastKey,p=n("b39a"),v=h?"_s":"size",m=function(e,t){var n,r=f(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,c){var l=e((function(e,r){a(e,l,t,"_i"),e._t=t,e._i=i(null),e._f=void 0,e._l=void 0,e[v]=0,void 0!=r&&u(r,n,e[c],e)}));return o(l.prototype,{clear:function(){for(var e=p(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[v]=0},delete:function(e){var n=p(this,t),r=m(n,e);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[v]--}return!!r},forEach:function(e){p(this,t);var n,r=s(e,arguments.length>1?arguments[1]:void 0,3);while(n=n?n.n:this._f){r(n.v,n.k,this);while(n&&n.r)n=n.p}},has:function(e){return!!m(p(this,t),e)}}),h&&r(l.prototype,"size",{get:function(){return p(this,t)[v]}}),l},def:function(e,t,n){var r,i,o=m(e,t);return o?o.v=n:(e._l=o={i:i=f(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=o),r&&(r.n=o),e[v]++,"F"!==i&&(e._i[i]=o)),e},getEntry:m,setStrong:function(e,t,n){c(e,t,(function(e,n){this._t=p(e,t),this._k=n,this._l=void 0}),(function(){var e=this,t=e._k,n=e._l;while(n&&n.r)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?l(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(e._t=void 0,l(1))}),n?"entries":"values",!n,!0),d(t)}}},c366:function(e,t,n){var r=n("6821"),i=n("9def"),o=n("77f1");e.exports=function(e){return function(t,n,s){var a,u=r(t),c=i(u.length),l=o(s,c);if(e&&n!=n){while(c>l)if(a=u[l++],a!=a)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}}},c5f6:function(e,t,n){"use strict";var r=n("7726"),i=n("69a8"),o=n("2d95"),s=n("5dbc"),a=n("6a99"),u=n("79e5"),c=n("9093").f,l=n("11e9").f,d=n("86cc").f,h=n("aa77").trim,f="Number",p=r[f],v=p,m=p.prototype,g=o(n("2aeb")(m))==f,_="trim"in String.prototype,y=function(e){var t=a(e,!1);if("string"==typeof t&&t.length>2){t=_?t.trim():h(t,3);var n,r,i,o=t.charCodeAt(0);if(43===o||45===o){if(n=t.charCodeAt(2),88===n||120===n)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+t}for(var s,u=t.slice(2),c=0,l=u.length;c<l;c++)if(s=u.charCodeAt(c),s<48||s>i)return NaN;return parseInt(u,r)}}return+t};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof p&&(g?u((function(){m.valueOf.call(n)})):o(n)!=f)?s(new v(y(t)),n,p):y(t)};for(var b,w=n("9e1e")?c(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),T=0;w.length>T;T++)i(v,b=w[T])&&!i(p,b)&&d(p,b,l(v,b));p.prototype=m,m.constructor=p,n("2aba")(r,f,p)}},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},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},c8bb:function(e,t,n){e.exports=n("89ca")},ca5a:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},cadf:function(e,t,n){"use strict";var r=n("9c6c"),i=n("d53b"),o=n("84f2"),s=n("6821");e.exports=n("01f9")(Array,"Array",(function(e,t){this._t=s(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},cb7c:function(e,t,n){var r=n("d3f4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},cd1c:function(e,t,n){var r=n("e853");e.exports=function(e,t){return new(r(e))(t)}},ce10:function(e,t,n){var r=n("69a8"),i=n("6821"),o=n("c366")(!1),s=n("613b")("IE_PROTO");e.exports=function(e,t){var n,a=i(e),u=0,c=[];for(n in a)n!=s&&r(a,n)&&c.push(n);while(t.length>u)r(a,n=t[u++])&&(~o(c,n)||c.push(n));return c}},d13f:function(e,t,n){var r=n("da3c"),i=n("a7d3"),o=n("bc25"),s=n("8ce0"),a=n("43c8"),u="prototype",c=function(e,t,n){var l,d,h,f=e&c.F,p=e&c.G,v=e&c.S,m=e&c.P,g=e&c.B,_=e&c.W,y=p?i:i[t]||(i[t]={}),b=y[u],w=p?r:v?r[t]:(r[t]||{})[u];for(l in p&&(n=t),n)d=!f&&w&&void 0!==w[l],d&&a(y,l)||(h=d?w[l]:n[l],y[l]=p&&"function"!=typeof w[l]?n[l]:g&&d?o(h,r):_&&w[l]==h?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[u]=e[u],t}(h):m&&"function"==typeof h?o(Function.call,h):h,m&&((y.virtual||(y.virtual={}))[l]=h,e&c.R&&b&&!b[l]&&s(b,l,h)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},d25f:function(e,t,n){"use strict";var r=n("5ca1"),i=n("0a49")(2);r(r.P+r.F*!n("2f21")([].filter,!0),"Array",{filter:function(e){return i(this,e,arguments[1])}})},d2c8:function(e,t,n){var r=n("aae3"),i=n("be13");e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},d38f:function(e,t,n){var r=n("7d8a"),i=n("1b55")("iterator"),o=n("b22a");e.exports=n("a7d3").isIterable=function(e){var t=Object(e);return void 0!==t[i]||"@@iterator"in t||o.hasOwnProperty(r(t))}},d3f4:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d604:function(e,t,n){n("1938"),e.exports=n("a7d3").Array.isArray},d782:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},da3c:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},dcbc:function(e,t,n){var r=n("2aba");e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},e0b8:function(e,t,n){"use strict";var r=n("7726"),i=n("5ca1"),o=n("2aba"),s=n("dcbc"),a=n("67ab"),u=n("4a59"),c=n("f605"),l=n("d3f4"),d=n("79e5"),h=n("5cc5"),f=n("7f20"),p=n("5dbc");e.exports=function(e,t,n,v,m,g){var _=r[e],y=_,b=m?"set":"add",w=y&&y.prototype,T={},S=function(e){var t=w[e];o(w,e,"delete"==e||"has"==e?function(e){return!(g&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return g&&!l(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof y&&(g||w.forEach&&!d((function(){(new y).entries().next()})))){var C=new y,E=C[b](g?{}:-0,1)!=C,A=d((function(){C.has(1)})),x=h((function(e){new y(e)})),R=!g&&d((function(){var e=new y,t=5;while(t--)e[b](t,t);return!e.has(-0)}));x||(y=t((function(t,n){c(t,y,e);var r=p(new _,t,y);return void 0!=n&&u(n,m,r[b],r),r})),y.prototype=w,w.constructor=y),(A||R)&&(S("delete"),S("has"),m&&S("get")),(R||E)&&S(b),g&&w.clear&&delete w.clear}else y=v.getConstructor(t,e,m,b),s(y.prototype,n),a.NEED=!0;return f(y,e),T[e]=y,i(i.G+i.W+i.F*(y!=_),T),g||v.setStrong(y,e,m),y}},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e341:function(e,t,n){var r=n("d13f");r(r.S+r.F*!n("7d95"),"Object",{defineProperty:n("3adc").f})},e4a9:function(e,t,n){"use strict";var r=n("b457"),i=n("d13f"),o=n("2312"),s=n("8ce0"),a=n("b22a"),u=n("5ce7"),c=n("c0d8"),l=n("ff0c"),d=n("1b55")("iterator"),h=!([].keys&&"next"in[].keys()),f="@@iterator",p="keys",v="values",m=function(){return this};e.exports=function(e,t,n,g,_,y,b){u(n,t,g);var w,T,S,C=function(e){if(!h&&e in R)return R[e];switch(e){case p:return function(){return new n(this,e)};case v:return function(){return new n(this,e)}}return function(){return new n(this,e)}},E=t+" Iterator",A=_==v,x=!1,R=e.prototype,O=R[d]||R[f]||_&&R[_],I=O||C(_),k=_?A?C("entries"):I:void 0,P="Array"==t&&R.entries||O;if(P&&(S=l(P.call(new e)),S!==Object.prototype&&S.next&&(c(S,E,!0),r||"function"==typeof S[d]||s(S,d,m))),A&&O&&O.name!==v&&(x=!0,I=function(){return O.call(this)}),r&&!b||!h&&!x&&R[d]||s(R,d,I),a[t]=I,a[E]=m,_)if(w={values:A?I:C(v),keys:y?I:C(p),entries:k},b)for(T in w)T in R||o(R,T,w[T]);else i(i.P+i.F*(h||x),t,w);return w}},e5fa:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},e853:function(e,t,n){var r=n("d3f4"),i=n("1169"),o=n("2b4c")("species");e.exports=function(e){var t;return i(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&(t=t[o],null===t&&(t=void 0))),void 0===t?Array:t}},ec5b:function(e,t,n){n("e341");var r=n("a7d3").Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},f159:function(e,t,n){var r=n("7d8a"),i=n("1b55")("iterator"),o=n("b22a");e.exports=n("a7d3").getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},f1ae:function(e,t,n){"use strict";var r=n("86cc"),i=n("4630");e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},f2fe:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},f3e2:function(e,t,n){"use strict";var r=n("5ca1"),i=n("0a49")(0),o=n("2f21")([].forEach,!0);r(r.P+r.F*!o,"Array",{forEach:function(e){return i(this,e,arguments[1])}})},f568:function(e,t,n){var r=n("3adc"),i=n("0f89"),o=n("7633");e.exports=n("7d95")?Object.defineProperties:function(e,t){i(e);var n,s=o(t),a=s.length,u=0;while(a>u)r.f(e,n=s[u++],t[n]);return e}},f605:function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},f845:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},fa54:function(e,t,n){"use strict";var r=n("b3e7"),i=n("245b"),o=n("b22a"),s=n("6a9b");e.exports=n("e4a9")(Array,"Array",(function(e,t){this._t=s(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},fab2:function(e,t,n){var r=n("7726").document;e.exports=r&&r.documentElement},fb15:function(e,t,n){"use strict";if(n.r(t),n.d(t,"install",(function(){return s["b"]})),"undefined"!==typeof window){var r=window.document.currentScript,i=n("8875");r=i(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:i});var o=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}var s=n("b635");t["default"]=s["a"]},fdef:function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},ff0c:function(e,t,n){var r=n("43c8"),i=n("0185"),o=n("5d8f")("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}}})["default"]}))},fb2c:function(e,t,n){"use strict";var r=n("74e8");r("Uint32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},fc1b:function(e,t,n){"use strict";var r=n("f7485"),i=n("82e3"),o=Math.abs,s=2220446049250313e-31;e.exports=function(e,t,n,a){var u=+e,c=o(u),l=r(u);if(c<a)return l*i(c/a/t)*a*t;var d=(1+t/s)*c,h=d-(d-c);return h>n||h!==h?l*(1/0):l*h}},fc6a:function(e,t,n){"use strict";var r=n("44ad"),i=n("1d80");e.exports=function(e){return r(i(e))}},fce3:function(e,t,n){"use strict";var r=n("d039"),i=n("cfe9"),o=i.RegExp;e.exports=r((function(){var e=o(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},fdbc:function(e,t,n){"use strict";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){"use strict";var r=n("04f8");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}})["default"]}));
14
+ var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var u=r&&r.prototype instanceof a?r:a,c=Object.create(u.prototype);return Ur(c,"_invoke",function(n,r,i){var o,a,u,c=0,l=i||[],d=!1,h={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return o=t,a=0,u=e,h.n=n,s}};function f(n,r){for(a=n,u=r,t=0;!d&&c&&!i&&t<l.length;t++){var i,o=l[t],f=h.p,p=o[2];n>3?(i=p===r)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=e):o[0]<=f&&((i=n<2&&f<o[1])?(a=0,h.v=r,h.n=o[1]):f<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,h.n=p,a=0))}if(i||n>1)return s;throw d=!0,r}return function(i,l,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===l&&f(l,p),a=l,u=p;(t=a<2?e:u)||!d;){o||(a?a<3?(a>1&&(h.n=-1),f(a,u)):h.n=u:h.v=u);try{if(c=2,o){if(a||(i="next"),t=o[i]){if(!(t=t.call(o,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=o["return"])&&t.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=e}else if((t=(d=h.n<0)?u:n.call(r,h))!==s)break}catch(t){o=e,a=1,u=t}finally{c=1}}return{value:t,done:d}}}(n,i,o),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(Ur(t={},r,(function(){return this})),t),d=c.prototype=a.prototype=Object.create(l);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Ur(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return u.prototype=c,Ur(d,"constructor",c),Ur(c,"constructor",u),u.displayName="GeneratorFunction",Ur(c,i,"GeneratorFunction"),Ur(d),Ur(d,i,"Generator"),Ur(d,r,(function(){return this})),Ur(d,"toString",(function(){return"[object Generator]"})),(jr=function(){return{w:o,m:h}})()}function Fr(e,t,n,r,i,o,s){try{var a=e[o](s),u=a.value}catch(e){return void n(e)}a.done?t(u):Promise.resolve(u).then(r,i)}function Hr(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){Fr(o,r,i,s,a,"next",e)}function a(e){Fr(o,r,i,s,a,"throw",e)}s(void 0)}))}}n("5087e");let Br=!0,$r=!0;function qr(e,t,n){const r=e.match(t);return r&&r.length>=n&&parseFloat(r[n],10)}function Vr(e,t,n){if(!e.RTCPeerConnection)return;const r=e.RTCPeerConnection.prototype,i=r.addEventListener;r.addEventListener=function(e,r){if(e!==t)return i.apply(this,arguments);const o=e=>{const t=n(e);t&&(r.handleEvent?r.handleEvent(t):r(t))};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(r,o),i.apply(this,[e,o])};const o=r.removeEventListener;r.removeEventListener=function(e,n){if(e!==t||!this._eventMap||!this._eventMap[t])return o.apply(this,arguments);if(!this._eventMap[t].has(n))return o.apply(this,arguments);const r=this._eventMap[t].get(n);return this._eventMap[t].delete(n),0===this._eventMap[t].size&&delete this._eventMap[t],0===Object.keys(this._eventMap).length&&delete this._eventMap,o.apply(this,[e,r])},Object.defineProperty(r,"on"+t,{get(){return this["_on"+t]},set(e){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),e&&this.addEventListener(t,this["_on"+t]=e)},enumerable:!0,configurable:!0})}function zr(e){return"boolean"!==typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(Br=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function Wr(e){return"boolean"!==typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):($r=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function Gr(){if("object"===typeof window){if(Br)return;"undefined"!==typeof console&&"function"===typeof console.log&&console.log.apply(console,arguments)}}function Yr(e,t){$r&&console.warn(e+" is deprecated, please use "+t+" instead.")}function Kr(e){const t={browser:null,version:null};if("undefined"===typeof e||!e.navigator||!e.navigator.userAgent)return t.browser="Not a browser.",t;const{navigator:n}=e;if(n.mozGetUserMedia)t.browser="firefox",t.version=parseInt(qr(n.userAgent,/Firefox\/(\d+)\./,1));else if(n.webkitGetUserMedia||!1===e.isSecureContext&&e.webkitRTCPeerConnection)t.browser="chrome",t.version=parseInt(qr(n.userAgent,/Chrom(e|ium)\/(\d+)\./,2));else{if(!e.RTCPeerConnection||!n.userAgent.match(/AppleWebKit\/(\d+)\./))return t.browser="Not a supported browser.",t;t.browser="safari",t.version=parseInt(qr(n.userAgent,/AppleWebKit\/(\d+)\./,1)),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype,t._safariVersion=qr(n.userAgent,/Version\/(\d+(\.?\d+))/,1)}return t}function Xr(e){return"[object Object]"===Object.prototype.toString.call(e)}function Jr(e){return Xr(e)?Object.keys(e).reduce((function(t,n){const r=Xr(e[n]),i=r?Jr(e[n]):e[n],o=r&&!Object.keys(i).length;return void 0===i||o?t:Object.assign(t,{[n]:i})}),{}):e}function Qr(e,t,n){t&&!n.has(t.id)&&(n.set(t.id,t),Object.keys(t).forEach(r=>{r.endsWith("Id")?Qr(e,e.get(t[r]),n):r.endsWith("Ids")&&t[r].forEach(t=>{Qr(e,e.get(t),n)})}))}function Zr(e,t,n){const r=n?"outbound-rtp":"inbound-rtp",i=new Map;if(null===t)return i;const o=[];return e.forEach(e=>{"track"===e.type&&e.trackIdentifier===t.id&&o.push(e)}),o.forEach(t=>{e.forEach(n=>{n.type===r&&n.trackId===t.id&&Qr(e,n,i)})}),i}const ei=Gr;function ti(e,t){const n=e&&e.navigator;if(!n.mediaDevices)return;const r=function(e){if("object"!==typeof e||e.mandatory||e.optional)return e;const t={};return Object.keys(e).forEach(n=>{if("require"===n||"advanced"===n||"mediaSource"===n)return;const r="object"===typeof e[n]?e[n]:{ideal:e[n]};void 0!==r.exact&&"number"===typeof r.exact&&(r.min=r.max=r.exact);const i=function(e,t){return e?e+t.charAt(0).toUpperCase()+t.slice(1):"deviceId"===t?"sourceId":t};if(void 0!==r.ideal){t.optional=t.optional||[];let e={};"number"===typeof r.ideal?(e[i("min",n)]=r.ideal,t.optional.push(e),e={},e[i("max",n)]=r.ideal,t.optional.push(e)):(e[i("",n)]=r.ideal,t.optional.push(e))}void 0!==r.exact&&"number"!==typeof r.exact?(t.mandatory=t.mandatory||{},t.mandatory[i("",n)]=r.exact):["min","max"].forEach(e=>{void 0!==r[e]&&(t.mandatory=t.mandatory||{},t.mandatory[i(e,n)]=r[e])})}),e.advanced&&(t.optional=(t.optional||[]).concat(e.advanced)),t},i=function(e,i){if(t.version>=61)return i(e);if(e=JSON.parse(JSON.stringify(e)),e&&"object"===typeof e.audio){const t=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])};e=JSON.parse(JSON.stringify(e)),t(e.audio,"autoGainControl","googAutoGainControl"),t(e.audio,"noiseSuppression","googNoiseSuppression"),e.audio=r(e.audio)}if(e&&"object"===typeof e.video){let o=e.video.facingMode;o=o&&("object"===typeof o?o:{ideal:o});const s=t.version<66;if(o&&("user"===o.exact||"environment"===o.exact||"user"===o.ideal||"environment"===o.ideal)&&(!n.mediaDevices.getSupportedConstraints||!n.mediaDevices.getSupportedConstraints().facingMode||s)){let t;if(delete e.video.facingMode,"environment"===o.exact||"environment"===o.ideal?t=["back","rear"]:"user"!==o.exact&&"user"!==o.ideal||(t=["front"]),t)return n.mediaDevices.enumerateDevices().then(n=>{n=n.filter(e=>"videoinput"===e.kind);let s=n.find(e=>t.some(t=>e.label.toLowerCase().includes(t)));return!s&&n.length&&t.includes("back")&&(s=n[n.length-1]),s&&(e.video.deviceId=o.exact?{exact:s.deviceId}:{ideal:s.deviceId}),e.video=r(e.video),ei("chrome: "+JSON.stringify(e)),i(e)})}e.video=r(e.video)}return ei("chrome: "+JSON.stringify(e)),i(e)},o=function(e){return t.version>=64?e:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[e.name]||e.name,message:e.message,constraint:e.constraint||e.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}},s=function(e,t,r){i(e,e=>{n.webkitGetUserMedia(e,t,e=>{r&&r(o(e))})})};if(n.getUserMedia=s.bind(n),n.mediaDevices.getUserMedia){const e=n.mediaDevices.getUserMedia.bind(n.mediaDevices);n.mediaDevices.getUserMedia=function(t){return i(t,t=>e(t).then(e=>{if(t.audio&&!e.getAudioTracks().length||t.video&&!e.getVideoTracks().length)throw e.getTracks().forEach(e=>{e.stop()}),new DOMException("","NotFoundError");return e},e=>Promise.reject(o(e))))}}}function ni(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&("function"===typeof t?e.navigator.mediaDevices.getDisplayMedia=function(n){return t(n).then(t=>{const r=n.video&&n.video.width,i=n.video&&n.video.height,o=n.video&&n.video.frameRate;return n.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:t,maxFrameRate:o||3}},r&&(n.video.mandatory.maxWidth=r),i&&(n.video.mandatory.maxHeight=i),e.navigator.mediaDevices.getUserMedia(n)})}:console.error("shimGetDisplayMedia: getSourceId argument is not a function"))}function ri(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function ii(e){if("object"===typeof e&&e.RTCPeerConnection&&!("ontrack"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(e){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=e)},enumerable:!0,configurable:!0});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=t=>{t.stream.addEventListener("addtrack",n=>{let r;r=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find(e=>e.track&&e.track.id===n.track.id):{track:n.track};const i=new Event("track");i.track=n.track,i.receiver=r,i.transceiver={receiver:r},i.streams=[t.stream],this.dispatchEvent(i)}),t.stream.getTracks().forEach(n=>{let r;r=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find(e=>e.track&&e.track.id===n.id):{track:n};const i=new Event("track");i.track=n,i.receiver=r,i.transceiver={receiver:r},i.streams=[t.stream],this.dispatchEvent(i)})},this.addEventListener("addstream",this._ontrackpoly)),t.apply(this,arguments)}}else Vr(e,"track",e=>(e.transceiver||Object.defineProperty(e,"transceiver",{value:{receiver:e.receiver}}),e))}function oi(e){if("object"===typeof e&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){const t=function(e,t){return{track:t,get dtmf(){return void 0===this._dtmf&&("audio"===t.kind?this._dtmf=e.createDTMFSender(t):this._dtmf=null),this._dtmf},_pc:e}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};const n=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,r){let i=n.apply(this,arguments);return i||(i=t(this,e),this._senders.push(i)),i};const r=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){r.apply(this,arguments);const t=this._senders.indexOf(e);-1!==t&&this._senders.splice(t,1)}}const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){this._senders=this._senders||[],n.apply(this,[e]),e.getTracks().forEach(e=>{this._senders.push(t(this,e))})};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){this._senders=this._senders||[],r.apply(this,[e]),e.getTracks().forEach(e=>{const t=this._senders.find(t=>t.track===e);t&&this._senders.splice(this._senders.indexOf(t),1)})}}else if("object"===typeof e&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach(e=>e._pc=this),e},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function si(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[e,n,r]=arguments;if(arguments.length>0&&"function"===typeof e)return t.apply(this,arguments);if(0===t.length&&(0===arguments.length||"function"!==typeof e))return t.apply(this,[]);const i=function(e){const t={},n=e.result();return n.forEach(e=>{const n={id:e.id,timestamp:e.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[e.type]||e.type};e.names().forEach(t=>{n[t]=e.stat(t)}),t[n.id]=n}),t},o=function(e){return new Map(Object.keys(e).map(t=>[t,e[t]]))};if(arguments.length>=2){const r=function(e){n(o(i(e)))};return t.apply(this,[r,e])}return new Promise((e,n)=>{t.apply(this,[function(t){e(o(i(t)))},n])}).then(n,r)}}function ai(e){if(!("object"===typeof e&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver))return;if(!("getStats"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach(e=>e._pc=this),e});const n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){const e=n.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){const e=this;return this._pc.getStats().then(t=>Zr(t,e.track,!0))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const e=t.apply(this,[]);return e.forEach(e=>e._pc=this),e}),Vr(e,"track",e=>(e.receiver._pc=e.srcElement,e)),e.RTCRtpReceiver.prototype.getStats=function(){const e=this;return this._pc.getStats().then(t=>Zr(t,e.track,!1))}}if(!("getStats"in e.RTCRtpSender.prototype)||!("getStats"in e.RTCRtpReceiver.prototype))return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){const e=arguments[0];let t,n,r;return this.getSenders().forEach(n=>{n.track===e&&(t?r=!0:t=n)}),this.getReceivers().forEach(t=>(t.track===e&&(n?r=!0:n=t),t.track===e)),r||t&&n?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):t?t.getStats():n?n.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return t.apply(this,arguments)}}function ui(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map(e=>this._shimmedLocalStreams[e][0])};const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,n){if(!n)return t.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};const r=t.apply(this,arguments);return this._shimmedLocalStreams[n.id]?-1===this._shimmedLocalStreams[n.id].indexOf(r)&&this._shimmedLocalStreams[n.id].push(r):this._shimmedLocalStreams[n.id]=[n,r],r};const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){this._shimmedLocalStreams=this._shimmedLocalStreams||{},e.getTracks().forEach(e=>{const t=this.getSenders().find(t=>t.track===e);if(t)throw new DOMException("Track already exists.","InvalidAccessError")});const t=this.getSenders();n.apply(this,arguments);const r=this.getSenders().filter(e=>-1===t.indexOf(e));this._shimmedLocalStreams[e.id]=[e].concat(r)};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[e.id],r.apply(this,arguments)};const i=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},e&&Object.keys(this._shimmedLocalStreams).forEach(t=>{const n=this._shimmedLocalStreams[t].indexOf(e);-1!==n&&this._shimmedLocalStreams[t].splice(n,1),1===this._shimmedLocalStreams[t].length&&delete this._shimmedLocalStreams[t]}),i.apply(this,arguments)}}function ci(e,t){if(!e.RTCPeerConnection)return;if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return ui(e);const n=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){const e=n.apply(this);return this._reverseStreams=this._reverseStreams||{},e.map(e=>this._reverseStreams[e.id])};const r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(t){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},t.getTracks().forEach(e=>{const t=this.getSenders().find(t=>t.track===e);if(t)throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[t.id]){const n=new e.MediaStream(t.getTracks());this._streams[t.id]=n,this._reverseStreams[n.id]=t,t=n}r.apply(this,[t])};const i=e.RTCPeerConnection.prototype.removeStream;function o(e,t){let n=t.sdp;return Object.keys(e._reverseStreams||[]).forEach(t=>{const r=e._reverseStreams[t],i=e._streams[r.id];n=n.replace(new RegExp(i.id,"g"),r.id)}),new RTCSessionDescription({type:t.type,sdp:n})}function s(e,t){let n=t.sdp;return Object.keys(e._reverseStreams||[]).forEach(t=>{const r=e._reverseStreams[t],i=e._streams[r.id];n=n.replace(new RegExp(r.id,"g"),i.id)}),new RTCSessionDescription({type:t.type,sdp:n})}e.RTCPeerConnection.prototype.removeStream=function(e){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},i.apply(this,[this._streams[e.id]||e]),delete this._reverseStreams[this._streams[e.id]?this._streams[e.id].id:e.id],delete this._streams[e.id]},e.RTCPeerConnection.prototype.addTrack=function(t,n){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");const r=[].slice.call(arguments,1);if(1!==r.length||!r[0].getTracks().find(e=>e===t))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");const i=this.getSenders().find(e=>e.track===t);if(i)throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const o=this._streams[n.id];if(o)o.addTrack(t),Promise.resolve().then(()=>{this.dispatchEvent(new Event("negotiationneeded"))});else{const r=new e.MediaStream([t]);this._streams[n.id]=r,this._reverseStreams[r.id]=n,this.addStream(r)}return this.getSenders().find(e=>e.track===t)},["createOffer","createAnswer"].forEach((function(t){const n=e.RTCPeerConnection.prototype[t],r={[t](){const e=arguments,t=arguments.length&&"function"===typeof arguments[0];return t?n.apply(this,[t=>{const n=o(this,t);e[0].apply(null,[n])},t=>{e[1]&&e[1].apply(null,t)},arguments[2]]):n.apply(this,arguments).then(e=>o(this,e))}};e.RTCPeerConnection.prototype[t]=r[t]}));const a=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return arguments.length&&arguments[0].type?(arguments[0]=s(this,arguments[0]),a.apply(this,arguments)):a.apply(this,arguments)};const u=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get(){const e=u.get.apply(this);return""===e.type?e:o(this,e)}}),e.RTCPeerConnection.prototype.removeTrack=function(e){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!e._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");const t=e._pc===this;if(!t)throw new DOMException("Sender was not created by this connection.","InvalidAccessError");let n;this._streams=this._streams||{},Object.keys(this._streams).forEach(t=>{const r=this._streams[t].getTracks().find(t=>e.track===t);r&&(n=this._streams[t])}),n&&(1===n.getTracks().length?this.removeStream(this._reverseStreams[n.id]):n.removeTrack(e.track),this.dispatchEvent(new Event("negotiationneeded")))}}function li(e,t){!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),e.RTCPeerConnection&&t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){const n=e.RTCPeerConnection.prototype[t],r={[t](){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments)}};e.RTCPeerConnection.prototype[t]=r[t]}))}function di(e,t){Vr(e,"negotiationneeded",e=>{const n=e.target;if(!(t.version<72||n.getConfiguration&&"plan-b"===n.getConfiguration().sdpSemantics)||"stable"===n.signalingState)return e})}function hi(e,t){const n=e&&e.navigator,r=e&&e.MediaStreamTrack;if(n.getUserMedia=function(e,t,r){Yr("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),n.mediaDevices.getUserMedia(e).then(t,r)},!(t.version>55&&"autoGainControl"in n.mediaDevices.getSupportedConstraints())){const e=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])},t=n.mediaDevices.getUserMedia.bind(n.mediaDevices);if(n.mediaDevices.getUserMedia=function(n){return"object"===typeof n&&"object"===typeof n.audio&&(n=JSON.parse(JSON.stringify(n)),e(n.audio,"autoGainControl","mozAutoGainControl"),e(n.audio,"noiseSuppression","mozNoiseSuppression")),t(n)},r&&r.prototype.getSettings){const t=r.prototype.getSettings;r.prototype.getSettings=function(){const n=t.apply(this,arguments);return e(n,"mozAutoGainControl","autoGainControl"),e(n,"mozNoiseSuppression","noiseSuppression"),n}}if(r&&r.prototype.applyConstraints){const t=r.prototype.applyConstraints;r.prototype.applyConstraints=function(n){return"audio"===this.kind&&"object"===typeof n&&(n=JSON.parse(JSON.stringify(n)),e(n,"autoGainControl","mozAutoGainControl"),e(n,"noiseSuppression","mozNoiseSuppression")),t.apply(this,[n])}}}}function fi(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&(e.navigator.mediaDevices.getDisplayMedia=function(n){if(!n||!n.video){const e=new DOMException("getDisplayMedia without video constraints is undefined");return e.name="NotFoundError",e.code=8,Promise.reject(e)}return!0===n.video?n.video={mediaSource:t}:n.video.mediaSource=t,e.navigator.mediaDevices.getUserMedia(n)})}function pi(e){"object"===typeof e&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function vi(e,t){if("object"!==typeof e||!e.RTCPeerConnection&&!e.mozRTCPeerConnection)return;!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){const n=e.RTCPeerConnection.prototype[t],r={[t](){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments)}};e.RTCPeerConnection.prototype[t]=r[t]}));const n={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},r=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[e,i,o]=arguments;return r.apply(this,[e||null]).then(e=>{if(t.version<53&&!i)try{e.forEach(e=>{e.type=n[e.type]||e.type})}catch(so){if("TypeError"!==so.name)throw so;e.forEach((t,r)=>{e.set(r,Object.assign({},t,{type:n[t.type]||t.type}))})}return e}).then(i,o)}}function mi(e){if("object"!==typeof e||!e.RTCPeerConnection||!e.RTCRtpSender)return;if(e.RTCRtpSender&&"getStats"in e.RTCRtpSender.prototype)return;const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach(e=>e._pc=this),e});const n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){const e=n.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function gi(e){if("object"!==typeof e||!e.RTCPeerConnection||!e.RTCRtpSender)return;if(e.RTCRtpSender&&"getStats"in e.RTCRtpReceiver.prototype)return;const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const e=t.apply(this,[]);return e.forEach(e=>e._pc=this),e}),Vr(e,"track",e=>(e.receiver._pc=e.srcElement,e)),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function _i(e){e.RTCPeerConnection&&!("removeStream"in e.RTCPeerConnection.prototype)&&(e.RTCPeerConnection.prototype.removeStream=function(e){Yr("removeStream","removeTrack"),this.getSenders().forEach(t=>{t.track&&e.getTracks().includes(t.track)&&this.removeTrack(t)})})}function yi(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function bi(e){if("object"!==typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.addTransceiver;t&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];let e=arguments[1]&&arguments[1].sendEncodings;void 0===e&&(e=[]),e=[...e];const n=e.length>0;n&&e.forEach(e=>{if("rid"in e){const t=/^[a-z0-9]{0,16}$/i;if(!t.test(e.rid))throw new TypeError("Invalid RID value provided.")}if("scaleResolutionDownBy"in e&&!(parseFloat(e.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in e&&!(parseFloat(e.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")});const r=t.apply(this,arguments);if(n){const{sender:t}=r,n=t.getParameters();(!("encodings"in n)||1===n.encodings.length&&0===Object.keys(n.encodings[0]).length)&&(n.encodings=e,t.sendEncodings=e,this.setParametersPromises.push(t.setParameters(n).then(()=>{delete t.sendEncodings}).catch(()=>{delete t.sendEncodings})))}return r})}function wi(e){if("object"!==typeof e||!e.RTCRtpSender)return;const t=e.RTCRtpSender.prototype.getParameters;t&&(e.RTCRtpSender.prototype.getParameters=function(){const e=t.apply(this,arguments);return"encodings"in e||(e.encodings=[].concat(this.sendEncodings||[{}])),e})}function Ti(e){if("object"!==typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>t.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):t.apply(this,arguments)}}function Si(e){if("object"!==typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>t.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):t.apply(this,arguments)}}function Ci(e){if("object"===typeof e&&e.RTCPeerConnection){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in e.RTCPeerConnection.prototype)){const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(e){this._localStreams||(this._localStreams=[]),this._localStreams.includes(e)||this._localStreams.push(e),e.getAudioTracks().forEach(n=>t.call(this,n,e)),e.getVideoTracks().forEach(n=>t.call(this,n,e))},e.RTCPeerConnection.prototype.addTrack=function(e,...n){return n&&n.forEach(e=>{this._localStreams?this._localStreams.includes(e)||this._localStreams.push(e):this._localStreams=[e]}),t.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(e){this._localStreams||(this._localStreams=[]);const t=this._localStreams.indexOf(e);if(-1===t)return;this._localStreams.splice(t,1);const n=e.getTracks();this.getSenders().forEach(e=>{n.includes(e.track)&&this.removeTrack(e)})})}}function Ei(e){if("object"===typeof e&&e.RTCPeerConnection&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in e.RTCPeerConnection.prototype))){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(e){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=e),this.addEventListener("track",this._onaddstreampoly=e=>{e.streams.forEach(e=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(e))return;this._remoteStreams.push(e);const t=new Event("addstream");t.stream=e,this.dispatchEvent(t)})})}});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){const e=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(t){t.streams.forEach(t=>{if(e._remoteStreams||(e._remoteStreams=[]),e._remoteStreams.indexOf(t)>=0)return;e._remoteStreams.push(t);const n=new Event("addstream");n.stream=t,e.dispatchEvent(n)})}),t.apply(e,arguments)}}}function Ai(e){if("object"!==typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype,n=t.createOffer,r=t.createAnswer,i=t.setLocalDescription,o=t.setRemoteDescription,s=t.addIceCandidate;t.createOffer=function(e,t){const r=arguments.length>=2?arguments[2]:arguments[0],i=n.apply(this,[r]);return t?(i.then(e,t),Promise.resolve()):i},t.createAnswer=function(e,t){const n=arguments.length>=2?arguments[2]:arguments[0],i=r.apply(this,[n]);return t?(i.then(e,t),Promise.resolve()):i};let a=function(e,t,n){const r=i.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r};t.setLocalDescription=a,a=function(e,t,n){const r=o.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r},t.setRemoteDescription=a,a=function(e,t,n){const r=s.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r},t.addIceCandidate=a}function xi(e){const t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){const e=t.mediaDevices,n=e.getUserMedia.bind(e);t.mediaDevices.getUserMedia=e=>n(Ri(e))}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=function(e,n,r){t.mediaDevices.getUserMedia(e).then(n,r)}.bind(t))}function Ri(e){return e&&void 0!==e.video?Object.assign({},e,{video:Jr(e.video)}):e}function Oi(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection;e.RTCPeerConnection=function(e,n){if(e&&e.iceServers){const t=[];for(let n=0;n<e.iceServers.length;n++){let r=e.iceServers[n];void 0===r.urls&&r.url?(Yr("RTCIceServer.url","RTCIceServer.urls"),r=JSON.parse(JSON.stringify(r)),r.urls=r.url,delete r.url,t.push(r)):t.push(e.iceServers[n])}e.iceServers=t}return new t(e,n)},e.RTCPeerConnection.prototype=t.prototype,"generateCertificate"in t&&Object.defineProperty(e.RTCPeerConnection,"generateCertificate",{get(){return t.generateCertificate}})}function Ii(e){"object"===typeof e&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function ki(e){const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(e){if(e){"undefined"!==typeof e.offerToReceiveAudio&&(e.offerToReceiveAudio=!!e.offerToReceiveAudio);const t=this.getTransceivers().find(e=>"audio"===e.receiver.track.kind);!1===e.offerToReceiveAudio&&t?"sendrecv"===t.direction?t.setDirection?t.setDirection("sendonly"):t.direction="sendonly":"recvonly"===t.direction&&(t.setDirection?t.setDirection("inactive"):t.direction="inactive"):!0!==e.offerToReceiveAudio||t||this.addTransceiver("audio",{direction:"recvonly"}),"undefined"!==typeof e.offerToReceiveVideo&&(e.offerToReceiveVideo=!!e.offerToReceiveVideo);const n=this.getTransceivers().find(e=>"video"===e.receiver.track.kind);!1===e.offerToReceiveVideo&&n?"sendrecv"===n.direction?n.setDirection?n.setDirection("sendonly"):n.direction="sendonly":"recvonly"===n.direction&&(n.setDirection?n.setDirection("inactive"):n.direction="inactive"):!0!==e.offerToReceiveVideo||n||this.addTransceiver("video",{direction:"recvonly"})}return t.apply(this,arguments)}}function Pi(e){"object"!==typeof e||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}var Mi=n("282b"),Ni=n.n(Mi);function Li(e){if(!e.RTCIceCandidate||e.RTCIceCandidate&&"foundation"in e.RTCIceCandidate.prototype)return;const t=e.RTCIceCandidate;e.RTCIceCandidate=function(e){if("object"===typeof e&&e.candidate&&0===e.candidate.indexOf("a=")&&(e=JSON.parse(JSON.stringify(e)),e.candidate=e.candidate.substring(2)),e.candidate&&e.candidate.length){const n=new t(e),r=Ni.a.parseCandidate(e.candidate);for(const e in r)e in n||Object.defineProperty(n,e,{value:r[e]});return n.toJSON=function(){return{candidate:n.candidate,sdpMid:n.sdpMid,sdpMLineIndex:n.sdpMLineIndex,usernameFragment:n.usernameFragment}},n}return new t(e)},e.RTCIceCandidate.prototype=t.prototype,Vr(e,"icecandidate",t=>(t.candidate&&Object.defineProperty(t,"candidate",{value:new e.RTCIceCandidate(t.candidate),writable:"false"}),t))}function Di(e){!e.RTCIceCandidate||e.RTCIceCandidate&&"relayProtocol"in e.RTCIceCandidate.prototype||Vr(e,"icecandidate",e=>{if(e.candidate){const t=Ni.a.parseCandidate(e.candidate.candidate);"relay"===t.type&&(e.candidate.relayProtocol={0:"tls",1:"tcp",2:"udp"}[t.priority>>24])}return e})}function Ui(e,t){if(!e.RTCPeerConnection)return;"sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get(){return"undefined"===typeof this._sctp?null:this._sctp}});const n=function(e){if(!e||!e.sdp)return!1;const t=Ni.a.splitSections(e.sdp);return t.shift(),t.some(e=>{const t=Ni.a.parseMLine(e);return t&&"application"===t.kind&&-1!==t.protocol.indexOf("SCTP")})},r=function(e){const t=e.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(null===t||t.length<2)return-1;const n=parseInt(t[1],10);return n!==n?-1:n},i=function(e){let n=65536;return"firefox"===t.browser&&(n=t.version<57?-1===e?16384:2147483637:t.version<60?57===t.version?65535:65536:2147483637),n},o=function(e,n){let r=65536;"firefox"===t.browser&&57===t.version&&(r=65535);const i=Ni.a.matchPrefix(e.sdp,"a=max-message-size:");return i.length>0?r=parseInt(i[0].substring(19),10):"firefox"===t.browser&&-1!==n&&(r=2147483637),r},s=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,"chrome"===t.browser&&t.version>=76){const{sdpSemantics:e}=this.getConfiguration();"plan-b"===e&&Object.defineProperty(this,"sctp",{get(){return"undefined"===typeof this._sctp?null:this._sctp},enumerable:!0,configurable:!0})}if(n(arguments[0])){const e=r(arguments[0]),t=i(e),n=o(arguments[0],e);let s;s=0===t&&0===n?Number.POSITIVE_INFINITY:0===t||0===n?Math.max(t,n):Math.min(t,n);const a={};Object.defineProperty(a,"maxMessageSize",{get(){return s}}),this._sctp=a}return s.apply(this,arguments)}}function ji(e){if(!e.RTCPeerConnection||!("createDataChannel"in e.RTCPeerConnection.prototype))return;function t(e,t){const n=e.send;e.send=function(){const r=arguments[0],i=r.length||r.size||r.byteLength;if("open"===e.readyState&&t.sctp&&i>t.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+t.sctp.maxMessageSize+" bytes)");return n.apply(e,arguments)}}const n=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){const e=n.apply(this,arguments);return t(e,this),e},Vr(e,"datachannel",e=>(t(e.channel,e.target),e))}function Fi(e){if(!e.RTCPeerConnection||"connectionState"in e.RTCPeerConnection.prototype)return;const t=e.RTCPeerConnection.prototype;Object.defineProperty(t,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(t,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(e){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),e&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=e)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach(e=>{const n=t[e];t[e]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=e=>{const t=e.target;if(t._lastConnectionState!==t.connectionState){t._lastConnectionState=t.connectionState;const n=new Event("connectionstatechange",e);t.dispatchEvent(n)}return e},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),n.apply(this,arguments)}})}function Hi(e,t){if(!e.RTCPeerConnection)return;if("chrome"===t.browser&&t.version>=71)return;if("safari"===t.browser&&t._safariVersion>=13.1)return;const n=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(t){if(t&&t.sdp&&-1!==t.sdp.indexOf("\na=extmap-allow-mixed")){const n=t.sdp.split("\n").filter(e=>"a=extmap-allow-mixed"!==e.trim()).join("\n");e.RTCSessionDescription&&t instanceof e.RTCSessionDescription?arguments[0]=new e.RTCSessionDescription({type:t.type,sdp:n}):t.sdp=n}return n.apply(this,arguments)}}function Bi(e,t){if(!e.RTCPeerConnection||!e.RTCPeerConnection.prototype)return;const n=e.RTCPeerConnection.prototype.addIceCandidate;n&&0!==n.length&&(e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?("chrome"===t.browser&&t.version<78||"firefox"===t.browser&&t.version<68||"safari"===t.browser)&&arguments[0]&&""===arguments[0].candidate?Promise.resolve():n.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}function $i(e,t){if(!e.RTCPeerConnection||!e.RTCPeerConnection.prototype)return;const n=e.RTCPeerConnection.prototype.setLocalDescription;n&&0!==n.length&&(e.RTCPeerConnection.prototype.setLocalDescription=function(){let e=arguments[0]||{};if("object"!==typeof e||e.type&&e.sdp)return n.apply(this,arguments);if(e={type:e.type,sdp:e.sdp},!e.type)switch(this.signalingState){case"stable":case"have-local-offer":case"have-remote-pranswer":e.type="offer";break;default:e.type="answer";break}if(e.sdp||"offer"!==e.type&&"answer"!==e.type)return n.apply(this,[e]);const t="offer"===e.type?this.createOffer:this.createAnswer;return t.apply(this).then(e=>n.apply(this,[e]))})}function qi({window:e}={},t={shimChrome:!0,shimFirefox:!0,shimSafari:!0}){const n=Gr,r=Kr(e),u={browserDetails:r,commonShim:a,extractVersion:qr,disableLog:zr,disableWarnings:Wr,sdp:Mi};switch(r.browser){case"chrome":if(!i||!li||!t.shimChrome)return n("Chrome shim is not included in this adapter release."),u;if(null===r.version)return n("Chrome shim can not determine version, not shimming."),u;n("adapter.js shimming chrome."),u.browserShim=i,Bi(e,r),$i(e,r),ti(e,r),ri(e,r),li(e,r),ii(e,r),ci(e,r),oi(e,r),si(e,r),ai(e,r),di(e,r),Li(e,r),Di(e,r),Fi(e,r),Ui(e,r),ji(e,r),Hi(e,r);break;case"firefox":if(!o||!vi||!t.shimFirefox)return n("Firefox shim is not included in this adapter release."),u;n("adapter.js shimming firefox."),u.browserShim=o,Bi(e,r),$i(e,r),hi(e,r),vi(e,r),pi(e,r),_i(e,r),mi(e,r),gi(e,r),yi(e,r),bi(e,r),wi(e,r),Ti(e,r),Si(e,r),Li(e,r),Fi(e,r),Ui(e,r),ji(e,r);break;case"safari":if(!s||!t.shimSafari)return n("Safari shim is not included in this adapter release."),u;n("adapter.js shimming safari."),u.browserShim=s,Bi(e,r),$i(e,r),Oi(e,r),ki(e,r),Ai(e,r),Ci(e,r),Ei(e,r),Ii(e,r),xi(e,r),Pi(e,r),Li(e,r),Di(e,r),Ui(e,r),ji(e,r),Hi(e,r);break;default:n("Unsupported browser!");break}return u}qi({window:"undefined"===typeof window?void 0:window});var Vi=n("4022"),zi=n.n(Vi),Wi=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{"background-color":"transparent",width:"100%",position:"absolute",bottom:"96px","z-index":"4000"},style:e.isCalling?"opacity: 0.6":""},[t("div",{staticClass:"dial-panel pl-10 pr-10 d-flex flex-column align-center"},[t(Mr,{staticClass:"d-flex justify-space-around mb-12",staticStyle:{"font-size":"36px",color:"#FFFFFF"},attrs:{"no-gutters":""}},[e._v(" "+e._s(e.dialNum)+" ")]),t("div",{staticStyle:{width:"240px"}},[t(Mr,{staticClass:"d-flex justify-space-around mt-0 mb-3",attrs:{"no-gutters":""}},[t(Yn,{attrs:{fab:"",large:""},on:{click:e.onDialNumClick}},[e._v(" 1 ")]),t(Yn,{attrs:{fab:"",large:""},on:{click:e.onDialNumClick}},[e._v(" 2 ")]),t(Yn,{attrs:{fab:"",large:""},on:{click:e.onDialNumClick}},[e._v(" 3 ")])],1),t(Mr,{staticClass:"d-flex justify-space-around mt-3 mb-3",attrs:{"no-gutters":""}},[t(Yn,{attrs:{fab:"",large:""},on:{click:e.onDialNumClick}},[e._v(" 4 ")]),t(Yn,{attrs:{fab:"",large:""},on:{click:e.onDialNumClick}},[e._v(" 5 ")]),t(Yn,{attrs:{fab:"",large:""},on:{click:e.onDialNumClick}},[e._v(" 6 ")])],1),t(Mr,{staticClass:"d-flex justify-space-around mt-3 mb-3",attrs:{"no-gutters":""}},[t(Yn,{attrs:{fab:"",large:""},on:{click:e.onDialNumClick}},[e._v(" 7 ")]),t(Yn,{attrs:{fab:"",large:""},on:{click:e.onDialNumClick}},[e._v(" 8 ")]),t(Yn,{attrs:{fab:"",large:""},on:{click:e.onDialNumClick}},[e._v(" 9 ")])],1),t(Mr,{staticClass:"d-flex justify-space-around mt-3 mb-3",attrs:{"no-gutters":""}},[t(ur,{staticClass:"text-center",attrs:{cols:"4"}},[t(Yn,{attrs:{fab:"",large:""},on:{click:e.onDialNumClick}},[e._v(" * ")])],1),t(ur,{staticClass:"text-center",attrs:{cols:"4"}},[t(Yn,{attrs:{fab:"",large:""},on:{click:e.onDialNumClick}},[e._v(" 0 ")])],1),t(ur,{staticClass:"text-center",attrs:{cols:"4"}},[t(Yn,{attrs:{fab:"",large:""},on:{click:e.onDialNumClick}},[e._v(" # ")])],1)],1),t(Mr,{staticClass:"d-flex justify-space-around mt-3 mb-3",attrs:{"no-gutters":""}},[t(ur,{staticClass:"text-center",attrs:{cols:"4"}},[t(vr,[t(Yn,{directives:[{name:"show",rawName:"v-show",value:!e.isCalling,expression:"!isCalling"}],attrs:{color:"blue",fab:"",large:""},on:{click:function(t){return e.onCallBtnClick(t,"audio")}}},[t(yr,{attrs:{color:"white"}},[e._v("mdi-phone")])],1)],1)],1),t(ur,{staticClass:"text-center",attrs:{cols:"4"}},[t(vr,[t(Yn,{directives:[{name:"show",rawName:"v-show",value:e.isCalling,expression:"isCalling"}],attrs:{color:"red",fab:"",large:""},on:{click:e.onHangupBtnClick}},[t(yr,{attrs:{color:"white"}},[e._v("mdi-phone-hangup")])],1)],1),t(vr,[t(Yn,{directives:[{name:"show",rawName:"v-show",value:!e.isCalling,expression:"!isCalling"}],attrs:{color:"green",fab:"",large:""},on:{click:function(t){return e.onCallBtnClick(t,"video")}}},[t(yr,{attrs:{color:"white"}},[e._v("mdi-video")])],1)],1)],1),t(ur,{staticClass:"text-center",attrs:{cols:"4"}},[t(vr,[t(Yn,{directives:[{name:"show",rawName:"v-show",value:e.isCalling,expression:"isCalling"}],attrs:{fab:"",large:""},on:{click:e.onCloseBtnClick}},[t(yr,[e._v("mdi-window-close")])],1)],1),t(vr,[t(Yn,{directives:[{name:"show",rawName:"v-show",value:!e.isCalling,expression:"!isCalling"}],staticStyle:{opacity:"0.5"},attrs:{fab:"",depressed:"",large:""},on:{click:e.onDeleteBtnClick}},[t(yr,[e._v("mdi-backspace")])],1)],1)],1)],1)],1)],1)])},Gi=[],Yi={name:"DialPanelMini",props:{isCalling:{type:Boolean}},data:()=>({isInnerCall:!1,dialNum:"95518"}),methods:{onDialNumClick(e){e.stopPropagation();var t=e.target.innerText;this.dialNum=(this.dialNum||"")+t,this.isCalling&&this.$emit("dtmf",t)},onCloseBtnClick(){this.$emit("close")},onDeleteBtnClick(e){e.stopPropagation(),this.dialNum&&(this.dialNum=this.dialNum.substr(0,this.dialNum.length-1))},onCallBtnClick(e,t){e.stopPropagation(),this.$emit("makeCall",{isInnerCall:this.isInnerCall,type:t,dialNum:this.dialNum})},onHangupBtnClick(e){e.stopPropagation(),this.$emit("hangup",{dialNum:this.dialNum})},setDialNum(e){this.dialNum=e}}},Ki=Yi;n("6c13");function Xi(e,t,n,r,i,o,s,a){var u,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(u=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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=u):i&&(u=a?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(e,t){return u.call(t),l(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,u):[u]}return{exports:e,options:c}}var Ji=Xi(Ki,Wi,Gi,!1,null,null,null),Qi=Ji.exports,Zi=n("fb19"),eo=n.n(Zi);n("4d63"),n("c607"),n("6062"),n("1e70"),n("79a4"),n("c1a1"),n("8b00"),n("a4e7"),n("1e5a"),n("72c3"),n("841c"),n("11c1");function to(e){if(e)try{var t;if(e.getTracks){t=e.getTracks();var n,r=un(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.stop()}}catch(d){r.e(d)}finally{r.f()}}else{t=e.getAudioTracks();var o,s=un(t);try{for(s.s();!(o=s.n()).done;){var a=o.value;a.stop()}}catch(d){s.e(d)}finally{s.f()}t=e.getVideoTracks();var u,c=un(t);try{for(c.s();!(u=c.n()).done;){var l=u.value;l.stop()}}catch(d){c.e(d)}finally{c.f()}}}catch(h){"function"!==typeof e.stop&&"object"!==typeof e.stop||e.stop()}}var no={name:"MobilePhone",api:null,locateHandler:-1,sendPositionHandler:-1,clientHeight:0,clientWidth:0,components:{VueDraggableResizable:eo.a,DialPanelMini:Qi},props:{calledNum:{type:String,default:""},callingNum:{type:String,default:"H5User",validator:e=>!!e},callType:{type:String,default:"videoOnly",validator:e=>["audio","video","videoOnly"].indexOf(e)>-1},debug:{type:Boolean,default:!1},needDial:{type:Boolean,default:!1},autoHideLocalVideo:{type:Boolean,default:!1},showLocation:{type:Boolean,default:!0},callData:{type:String,default:""}},data:function(){return{isAPP:!1,prompt:this.$t("serverConnecting")+"...",callPrompt:this.$t("pleaseBePatient"),isCalling:!1,showHangup:!1,showAudioPlayer:!0,showVideoCt:!1,showDialPad:!1,showSnackbar:!1,miniMode:!1,dialNum:"",controls:"",isAudioMute:!1,isVideoMute:!1,cameraType:"front",videoInputList:[],videoInputIndex:0,localVideo:{w:1,h:1,x:0,y:0,z:1e3,show:!1,draggable:!0},remoteVideo:{w:1,h:1,x:0,y:0,z:1e3,show:!1,draggable:!0},connected:!1,callDuration:0,durationHandler:-1,snackbarText:"",callId:"",lastCallId:"",queueCount:0,latitude:0,longitude:0,altitude:0}},watch:{isCalling(e){e?this.startDurationCount():this.stopDurationCount()},callId(e){this.lastCallId=e||this.lastCallId},prompt(e){console.info("Prompt",e)}},computed:{duration(){var e=this.callDuration%60;e=e<10?"0"+e:""+e;var t=parseInt(this.callDuration/60);return t=t<10?"0"+t:""+t,`${t}:${e}`}},created(){setTimeout(()=>{},2e3)},methods:{handleWechatParams(e){console.log("测试模式:使用模拟参数");var t=e.calledNum,n=e.callData;if(console.log("测试模式:使用模拟参数"),t){this.setDialNum(t);var r=null;try{r=n?JSON.parse(decodeURIComponent(n)):null,r&&console.log("Call data received:",r)}catch(so){console.error("Failed to parse callData:",so)}this.$nextTick(()=>{this.onMakeCallBtnClick()})}},_resetCmpWHLRTB(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.rl,n=void 0===t?0:t,r=e.rt,i=void 0===r?0:r,o=e.ll,s=void 0===o?0:o,a=e.lt,u=void 0===a?0:a;this.$refs.remoteVideoWrapper.left=n,this.$refs.remoteVideoWrapper.top=i,this.$refs.localVideoWrapper.left=s,this.$refs.localVideoWrapper.top=u,this.$refs.localVideoWrapper.parentWidth=this.clientWidth,this.$refs.localVideoWrapper.parentHeight=this.clientHeight,this.$refs.localVideoWrapper.right=this.clientWidth-this.localVideo.w,this.$refs.localVideoWrapper.bottom=this.clientHeight-this.localVideo.h,this.$refs.remoteVideoWrapper.parentWidth=this.clientWidth,this.$refs.remoteVideoWrapper.parentHeight=this.clientHeight,this.$refs.remoteVideoWrapper.right=this.clientWidth-this.remoteVideo.w,this.$refs.remoteVideoWrapper.bottom=this.clientHeight-this.remoteVideo.h},toMiniMode(){this._resetCmpWHLRTB(),Object.assign(this.localVideo,{show:!1,draggable:!1}),this.miniMode=!0,setTimeout(()=>{Object.assign(this.remoteVideo,{show:!0,w:parseInt(this.clientWidth/3),h:parseInt(this.clientHeight/3),x:0,y:0,z:1100,draggable:!0})},500)},toNormalMode(){this._resetCmpWHLRTB(),Object.assign(this.localVideo,{show:!0,w:parseInt(this.clientWidth/3),h:parseInt(this.clientHeight/3),x:0,y:0,z:1100,draggable:!1}),this.miniMode=!1,setTimeout(()=>{Object.assign(this.remoteVideo,{show:!0,w:this.clientWidth,h:this.clientHeight,x:0,y:0,z:1e3,draggable:!0})},500)},onDialPadBtnClick(){this.showDialPad=!0},onDialPadMakeCallBtnClick(e){var t=e.dialNum;this.dialNum=t,this.onMakeCallBtnClick()},onDialPadDtmfBtnClick(e){this.sipMix.sendDTMF({tones:e})},onChangeVideoMiniModeBtnClick(){this.toMiniMode()},onChangeVideoNormalModeBtnClick(){this.toNormalMode()},onChangeVideoFullScreenBtnClick(){this.remoteVideo.show&&(this.$refs.remoteVideoWrapper.left=0,this.$refs.remoteVideoWrapper.top=0,this.$refs.localVideoWrapper.left=0,this.$refs.localVideoWrapper.top=0,this.$nextTick(()=>{this.localVideo.w===this.clientWidth?(Object.assign(this.localVideo,{w:parseInt(this.clientWidth/3),h:parseInt(this.clientHeight/3),z:1100,draggable:!0}),Object.assign(this.remoteVideo,{w:this.clientWidth,h:this.clientHeight,z:1e3,draggable:!1})):(Object.assign(this.localVideo,{w:this.clientWidth,h:this.clientHeight,z:1e3,draggable:!1}),Object.assign(this.remoteVideo,{w:parseInt(this.clientWidth/3),h:parseInt(this.clientHeight/3),z:1100,draggable:!0}))}))},onLocalVideoDragCallback(e,t){("remoteVideo"===t&&this.remoteVideo.w!==this.clientWidth||"localVideo"===t&&this.localVideo.w!==this.clientWidth)&&e.stopPropagation()},onSipCallClick(){this.autoShowHangupBtn()},onMakeCallBtnClick(){var e=this;return Hr(jr().m((function t(){var n;return jr().w((function(t){while(1)switch(t.p=t.n){case 0:return e.needDial||(e.dialNum=e.calledNum),n={target:e.dialNum},console.log("paramsparams Data",n),console.log("this.callData Data",e.callData),console.log("window.config.videoParams",window.config.videoParams),"videoOnly"===e.callType?(console.log("videoOnly"),n.video=Object.assign({facingMode:"user"},window.config.videoParams),n.audio=!1):"video"===e.callType?(console.log("video"),n.video=Object.assign({facingMode:"user"},window.config.videoParams),n.audio=!0):(n.video=!1,n.audio=!0),e.callData&&(n.callData=e.callData,console.log("Call Da1ta",e.callData)),t.p=1,t.n=2,e.sipMix.call(n);case 2:t.n=4;break;case 3:t.p=3,t.v,e.snackbarText=e.$t("gotCameraStreamFailed"),e.showSnackbar=!0;case 4:e.isCalling=!0,e.showHangup=!0,e.needDial?(e.callPrompt=`${e.$t("calling")} ${e.dialNum}`,e.showDialPad=!1):e.callPrompt=""+e.$t("pleaseBePatient");case 5:return t.a(2)}}),t,null,[[1,3]])})))()},onHangupBtnClick(){this.sipMix.hangup(),this.$emit("hangup",{imType:0})},onMuteBtnClick(e){"audio"===e?(this.isAudioMute?this.sipMix.unmute({audio:!0}):this.sipMix.mute({audio:!0}),this.isAudioMute=!this.isAudioMute):(this.isVideoMute?this.sipMix.unmute({video:!0}):this.sipMix.mute({video:!0}),this.isVideoMute=!this.isVideoMute)},onShowLocalVideoBtnClick(){this.localVideo.z=1===this.localVideo.z?1100:1},dealCallEndOrFail(){this.$refs.audioPlayer.pause(),this.showVideoCt=!1,this.remoteVideo.show=!1,this.localVideo.show=!1,this.localVideo.w=this.clientWidth,this.localVideo.h=this.clientHeight,this.isCalling=!1,this.callId="",this.prompt=this.$t("serverConnected"),this.needDial&&(this.showDialPad=!0),this.stopDurationCount(),this.toNormalMode(),this.stopSendPosition()},autoShowHangupBtn(){this.showHangup=!0},stopDurationCount(){this.callDuration=0,clearInterval(this.durationHandler)},startDurationCount(){this.stopDurationCount(),this.durationHandler=setInterval(()=>{this.callDuration++},1e3)},onSwitchCameraBtnClick(){var e=this;return Hr(jr().m((function t(){var n,r,i;return jr().w((function(t){while(1)switch(t.n){case 0:return t.n=1,navigator.mediaDevices.enumerateDevices();case 1:return n=t.v,console.warn(n),r={facingMode:"user"},"front"===e.cameraType&&(r={facingMode:{exact:"environment"}}),Object.assign(r,window.config.videoParams),t.n=2,navigator.mediaDevices.getUserMedia({video:r,audio:!1});case 2:i=t.v,i&&(e.cameraType="front"===e.cameraType?"back":"front",e.$refs.localVideo.srcObject=i,e.sipMix.changeLocalVideoTrack({stream:i}));case 3:return t.a(2)}}),t)})))()},setDialNum(e){this.$refs.dialPanelMini.setDialNum(e)},checkBrowser(){var e=this;return Hr(jr().m((function t(){var n,r,i;return jr().w((function(t){while(1)switch(t.n){case 0:return t.n=1,navigator.mediaDevices.getUserMedia({video:!0,audio:!0});case 1:if(n=t.v,!n){t.n=2;break}to(n),t.n=3;break;case 2:return t.a(2,Promise.reject(e.$t("cameraOrMicUnsupported")));case 3:if(window.RTCPeerConnection){t.n=4;break}return t.a(2,Promise.reject(e.$t("WebRTCUnsupported")));case 4:return t.n=5,navigator.mediaDevices.enumerateDevices();case 5:return r=t.v,i=r.filter(e=>"videoinput"===e.kind),i.forEach(e=>{console.warn({label:e.label,deviceId:e.deviceId,groupId:e.groupId})}),e.videoInputList=i,t.a(2,Promise.resolve(!0))}}),t)})))()},startSip(e){var t=this,n=e.debug,r=e.password,i=e.register,o=e.autoDial,s=void 0!==o&&o,a=window.config,u=a.domain,c=a.port,l=a.path;this.sipMix=zi.a.getInstance({domain:u,port:c,path:l}),this.sipMix.on("socketError",()=>this.prompt=this.$t("connectionFailedPleaseCheckYourNetwork")),this.sipMix.on("connecting",()=>this.prompt=this.$t("serverConnected")+"..."),this.sipMix.on("connected",()=>{this.prompt=this.$t("serverConnected"),!i&&s&&this.onMakeCallBtnClick()}),this.sipMix.on("disconnected",()=>this.prompt=this.$t("connectionClosed")),this.sipMix.on("registered",()=>{this.prompt=this.$t("registered"),i&&s&&this.onMakeCallBtnClick()}),this.sipMix.on("unregistered",()=>this.prompt=this.$t("unregistered")),this.sipMix.on("registrationFailed",()=>this.prompt=this.$t("registerFailed")),this.sipMix.on("newSession",e=>{var t=e.sessionId;console.info("New session, session id: ",t)}),this.sipMix.on("failed",e=>{console.warn("通话失败",e),this.dealCallEndOrFail(),this.callPrompt=this.$t("cancelled"),this.$emit("hangup",{imType:0,reason:"call_failed",error:e}),setTimeout(()=>{this.callPrompt=this.$t("pleaseBePatient")},2e3)}),this.sipMix.on("ended",()=>{console.warn("通话结束"),this.dealCallEndOrFail(),this.callPrompt=this.$t("hangedUp"),this.$emit("hangup",{imType:0,reason:"call_ended"}),setTimeout(()=>{this.callPrompt=this.$t("pleaseBePatient")},2e3)}),this.sipMix.on("localStream",function(){var e=Hr(jr().m((function e(n,r){return jr().w((function(e){while(1)switch(e.n){case 0:return console.info("localStream",n,r),t.localVideo.w=t.clientWidth,t.localVideo.h=t.clientHeight,t.localVideo.draggable=!1,t.showVideoCt=!0,t.localVideo.show=!0,e.n=1,t.$nextTick();case 1:t.$refs.localVideo.srcObject=n;case 2:return e.a(2)}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),this.sipMix.on("remoteStream",(e,n)=>{console.info("remoteStream",e,n),this._resetCmpWHLRTB(),Object.assign(this.localVideo,{w:parseInt(this.clientWidth/3),h:parseInt(this.clientHeight/3),x:0,y:80,z:1100,draggable:!0}),this.$nextTick(()=>{this.$refs.localVideoWrapper.moveVertically(80)}),setTimeout(Hr(jr().m((function n(){return jr().w((function(n){while(1)switch(n.n){case 0:return Object.assign(t.remoteVideo,{show:!0,w:t.clientWidth,h:t.clientHeight,x:0,y:0,z:1e3,draggable:!1}),n.n=1,t.$nextTick();case 1:t.autoHideLocalVideo&&(t.localVideo.show=!1),t.$refs.remoteVideo.srcObject=e;case 2:return n.a(2)}}),n)}))),500)}),this.sipMix.on("remoteRing",()=>{this.callPrompt=this.$t("remoteRinging");var e=this.$refs.audioPlayer.play();void 0!==e&&e.catch(e=>{console.info(e),"NotAllowedError"===e.name&&(this.showAudioPlayer=!0)})}),this.sipMix.on("accepted",e=>{this.callPrompt=this.$t("remoteAccept");var t=e.callId;this.callId=t,this.$refs.audioPlayer.pause(),this.autoShowHangupBtn()}),this.sipMix.on("confirmed",()=>{this.startSendPosition()}),this.sipMix.on("newInfo",e=>{var t=e.content,n=e.contentType;console.info("New Info",n,t)}),this.sipMix.start({deviceId:this.callingNum,password:r,register:i,debug:n})},startLocate(){navigator.geolocation&&(navigator.geolocation.getCurrentPosition(e=>{console.info("Position",e);var t=(null===e||void 0===e?void 0:e.coords)||{},n=t.latitude,r=t.longitude,i=t.altitude;console.info(`获取地里位置信息: ${n}, ${r}, ${i}`),this.latitude=n,this.longitude=r,this.altitude=i},()=>{console.info("获取地里位置信息失败")}),this.locateHandler=setTimeout(()=>{this.startLocate()},15e3))},stopLocate(){clearTimeout(this.locateHandler)},startSendPosition(){this.showLocation&&this.locateHandler&&this.sipMix.sendInfo({encode:!1,content:{type:"Position",content:{latitude:this.latitude,longitude:this.longitude,altitude:this.altitude}}}),this.sendPositionHandler=setTimeout(()=>{this.startSendPosition()},15e3)},stopSendPosition(){clearTimeout(this.sendPositionHandler)},isAPPIF(){/android/i.test(navigator.userAgent)?(this.isAPP=!0,console.log("当前为Android App")):/iphone|ipad|ipod/i.test(navigator.userAgent)?(console.log("当前为iOS App"),this.isAPP=!0):(this.isAPP=!1,console.log("当前为H5页面"))}},mounted(){var e=this;return Hr(jr().m((function t(){return jr().w((function(t){while(1)switch(t.n){case 0:return console.info("MobilePhone mounted"),t.n=1,e.checkBrowser().catch(t=>{e.showSnackbar=!0,e.snackbarText=t});case 1:setTimeout(()=>{var t=window.document.body,n=t.clientHeight,r=t.clientWidth;e.clientHeight=n,e.clientWidth=r,e.localVideo.w=r,e.localVideo.h=n,e.showLocation&&e.startLocate()},200),e.$nextTick(()=>{e.showAudioPlayer=!1});case 2:return t.a(2)}}),t)})))()}},ro=no,io=(n("c8ce"),n("0dd1"),n("6ad9"),n("52b5"),Xi(ro,Lr,Dr,!1,null,"42e16efa",null)),oo=io.exports;t["default"]=oo},fb19:function(e,t,n){(function(t,n){e.exports=n()})("undefined"!==typeof self&&self,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.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 i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));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")}({"0029":function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"0185":function(e,t,n){var r=n("e5fa");e.exports=function(e){return Object(r(e))}},"01f9":function(e,t,n){"use strict";var r=n("2d00"),i=n("5ca1"),o=n("2aba"),s=n("32e9"),a=n("84f2"),u=n("41a0"),c=n("7f20"),l=n("38fd"),d=n("2b4c")("iterator"),h=!([].keys&&"next"in[].keys()),f="@@iterator",p="keys",v="values",m=function(){return this};e.exports=function(e,t,n,g,_,y,b){u(n,t,g);var w,T,S,C=function(e){if(!h&&e in R)return R[e];switch(e){case p:return function(){return new n(this,e)};case v:return function(){return new n(this,e)}}return function(){return new n(this,e)}},E=t+" Iterator",A=_==v,x=!1,R=e.prototype,O=R[d]||R[f]||_&&R[_],I=O||C(_),k=_?A?C("entries"):I:void 0,P="Array"==t&&R.entries||O;if(P&&(S=l(P.call(new e)),S!==Object.prototype&&S.next&&(c(S,E,!0),r||"function"==typeof S[d]||s(S,d,m))),A&&O&&O.name!==v&&(x=!0,I=function(){return O.call(this)}),r&&!b||!h&&!x&&R[d]||s(R,d,I),a[t]=I,a[E]=m,_)if(w={values:A?I:C(v),keys:y?I:C(p),entries:k},b)for(T in w)T in R||o(R,T,w[T]);else i(i.P+i.F*(h||x),t,w);return w}},"02f4":function(e,t,n){var r=n("4588"),i=n("be13");e.exports=function(e){return function(t,n){var o,s,a=String(i(t)),u=r(n),c=a.length;return u<0||u>=c?e?"":void 0:(o=a.charCodeAt(u),o<55296||o>56319||u+1===c||(s=a.charCodeAt(u+1))<56320||s>57343?e?a.charAt(u):o:e?a.slice(u,u+2):s-56320+(o-55296<<10)+65536)}}},"0a49":function(e,t,n){var r=n("9b43"),i=n("626a"),o=n("4bf8"),s=n("9def"),a=n("cd1c");e.exports=function(e,t){var n=1==e,u=2==e,c=3==e,l=4==e,d=6==e,h=5==e||d,f=t||a;return function(t,a,p){for(var v,m,g=o(t),_=i(g),y=r(a,p,3),b=s(_.length),w=0,T=n?f(t,b):u?f(t,0):void 0;b>w;w++)if((h||w in _)&&(v=_[w],m=y(v,w,g),e))if(n)T[w]=m;else if(m)switch(e){case 3:return!0;case 5:return v;case 6:return w;case 2:T.push(v)}else if(l)return!1;return d?-1:c||l?l:T}}},"0a91":function(e,t,n){n("b42c"),n("93c4"),e.exports=n("b77f")},"0bfb":function(e,t,n){"use strict";var r=n("cb7c");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0d58":function(e,t,n){var r=n("ce10"),i=n("e11e");e.exports=Object.keys||function(e){return r(e,i)}},"0f89":function(e,t,n){var r=n("6f8a");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},"103a":function(e,t,n){var r=n("da3c").document;e.exports=r&&r.documentElement},1169:function(e,t,n){var r=n("2d95");e.exports=Array.isArray||function(e){return"Array"==r(e)}},"11e9":function(e,t,n){var r=n("52a7"),i=n("4630"),o=n("6821"),s=n("6a99"),a=n("69a8"),u=n("c69a"),c=Object.getOwnPropertyDescriptor;t.f=n("9e1e")?c:function(e,t){if(e=o(e),t=s(t,!0),u)try{return c(e,t)}catch(n){}if(a(e,t))return i(!r.f.call(e,t),e[t])}},"12fd":function(e,t,n){var r=n("6f8a"),i=n("da3c").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},1495:function(e,t,n){var r=n("86cc"),i=n("cb7c"),o=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){i(e);var n,s=o(t),a=s.length,u=0;while(a>u)r.f(e,n=s[u++],t[n]);return e}},1938:function(e,t,n){var r=n("d13f");r(r.S,"Array",{isArray:n("b5aa")})},"1b55":function(e,t,n){var r=n("7772")("wks"),i=n("7b00"),o=n("da3c").Symbol,s="function"==typeof o,a=e.exports=function(e){return r[e]||(r[e]=s&&o[e]||(s?o:i)("Symbol."+e))};a.store=r},"1b8f":function(e,t,n){var r=n("a812"),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},"1c01":function(e,t,n){var r=n("5ca1");r(r.S+r.F*!n("9e1e"),"Object",{defineProperty:n("86cc").f})},"1fa8":function(e,t,n){var r=n("cb7c");e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(s){var o=e["return"];throw void 0!==o&&r(o.call(e)),s}}},"230e":function(e,t,n){var r=n("d3f4"),i=n("7726").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},2312:function(e,t,n){e.exports=n("8ce0")},"23c6":function(e,t,n){var r=n("2d95"),i=n("2b4c")("toStringTag"),o="Arguments"==r(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=s(t=Object(e),i))?n:o?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},2418:function(e,t,n){var r=n("6a9b"),i=n("a5ab"),o=n("1b8f");e.exports=function(e){return function(t,n,s){var a,u=r(t),c=i(u.length),l=o(s,c);if(e&&n!=n){while(c>l)if(a=u[l++],a!=a)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}}},"245b":function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},2695:function(e,t,n){var r=n("43c8"),i=n("6a9b"),o=n("2418")(!1),s=n("5d8f")("IE_PROTO");e.exports=function(e,t){var n,a=i(e),u=0,c=[];for(n in a)n!=s&&r(a,n)&&c.push(n);while(t.length>u)r(a,n=t[u++])&&(~o(c,n)||c.push(n));return c}},"27ee":function(e,t,n){var r=n("23c6"),i=n("2b4c")("iterator"),o=n("84f2");e.exports=n("8378").getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},"2a4e":function(e,t,n){var r=n("a812"),i=n("e5fa");e.exports=function(e){return function(t,n){var o,s,a=String(i(t)),u=r(n),c=a.length;return u<0||u>=c?e?"":void 0:(o=a.charCodeAt(u),o<55296||o>56319||u+1===c||(s=a.charCodeAt(u+1))<56320||s>57343?e?a.charAt(u):o:e?a.slice(u,u+2):s-56320+(o-55296<<10)+65536)}}},"2aba":function(e,t,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),s=n("ca5a")("src"),a="toString",u=Function[a],c=(""+u).split(a);n("8378").inspectSource=function(e){return u.call(e)},(e.exports=function(e,t,n,a){var u="function"==typeof n;u&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(u&&(o(n,s)||i(n,s,e[t]?""+e[t]:c.join(String(t)))),e===r?e[t]=n:a?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,a,(function(){return"function"==typeof this&&this[s]||u.call(this)}))},"2aeb":function(e,t,n){var r=n("cb7c"),i=n("1495"),o=n("e11e"),s=n("613b")("IE_PROTO"),a=function(){},u="prototype",c=function(){var e,t=n("230e")("iframe"),r=o.length,i="<",s=">";t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+s+"document.F=Object"+i+"/script"+s),e.close(),c=e.F;while(r--)delete c[u][o[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[u]=r(e),n=new a,a[u]=null,n[s]=e):n=c(),void 0===t?n:i(n,t)}},"2b4c":function(e,t,n){var r=n("5537")("wks"),i=n("ca5a"),o=n("7726").Symbol,s="function"==typeof o,a=e.exports=function(e){return r[e]||(r[e]=s&&o[e]||(s?o:i)("Symbol."+e))};a.store=r},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"2ea1":function(e,t,n){var r=n("6f8a");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"2f21":function(e,t,n){"use strict";var r=n("79e5");e.exports=function(e,t){return!!e&&r((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},"2fdb":function(e,t,n){"use strict";var r=n("5ca1"),i=n("d2c8"),o="includes";r(r.P+r.F*n("5147")(o),"String",{includes:function(e){return!!~i(this,e,o).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(e,t,n){var r=n("86cc"),i=n("4630");e.exports=n("9e1e")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"33a4":function(e,t,n){var r=n("84f2"),i=n("2b4c")("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},3425:function(e,t,n){"use strict";var r=function(){var e,t=this,n=t.$createElement,r=t._self._c||n;return r("div",{class:[(e={},e[t.classNameActive]=t.enabled,e[t.classNameDragging]=t.dragging,e[t.classNameResizing]=t.resizing,e[t.classNameDraggable]=t.draggable,e[t.classNameResizable]=t.resizable,e),t.className],style:t.style,on:{mousedown:t.elementMouseDown,touchstart:t.elementTouchDown}},[t._l(t.actualHandles,(function(e){return r("div",{key:e,class:[t.classNameHandle,t.classNameHandle+"-"+e],style:{display:t.enabled?"block":"none"},on:{mousedown:function(n){n.stopPropagation(),n.preventDefault(),t.handleDown(e,n)},touchstart:function(n){n.stopPropagation(),n.preventDefault(),t.handleTouchDown(e,n)}}},[t._t(e)],2)})),t._v(" "),t._t("default")],2)},i=[],o=(n("1c01"),n("58b2"),n("8e6e"),n("f3e2"),n("456d"),n("85f2")),s=n.n(o);function a(e,t,n){return t in e?s()(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n("3b2b");var u=n("a745"),c=n.n(u);function l(e){if(c()(e))return e}var d=n("5d73"),h=n.n(d),f=n("c8bb"),p=n.n(f);function v(e,t){if(p()(Object(e))||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=h()(e);!(r=(s=a.next()).done);r=!0)if(n.push(s.value),t&&n.length===t)break}catch(u){i=!0,o=u}finally{try{r||null==a["return"]||a["return"]()}finally{if(i)throw o}}return n}}function m(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function g(e,t){return l(e)||v(e,t)||m()}function _(e){return"function"===typeof e||"[object Function]"===Object.prototype.toString.call(e)}function y(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i="number"===typeof r?[r,r]:r,o=g(i,2),s=o[0],a=o[1],u=Math.round(t/s/e[0])*e[0],c=Math.round(n/a/e[1])*e[1];return[u,c]}function b(e,t,n){return e-t-n}function w(e,t,n){return e-t-n}function T(e,t,n){return null!==t&&e<t?t:null!==n&&n<e?n:e}function S(e,t,n){var r=e,i=["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"].find((function(e){return _(r[e])}));if(!_(r[i]))return!1;do{if(r[i](t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1}function C(e){var t=window.getComputedStyle(e);return[parseFloat(t.getPropertyValue("width"),10),parseFloat(t.getPropertyValue("height"),10)]}function E(e,t,n){e&&(e.attachEvent?e.attachEvent("on"+t,n):e.addEventListener?e.addEventListener(t,n,!0):e["on"+t]=n)}function A(e,t,n){e&&(e.detachEvent?e.detachEvent("on"+t,n):e.removeEventListener?e.removeEventListener(t,n,!0):e["on"+t]=null)}function x(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 R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(n,!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}n("6762"),n("2fdb"),n("d25f"),n("ac6a"),n("cadf"),n("5df3"),n("4f7f"),n("c5f6"),n("7514"),n("6b54"),n("87b3");var O={mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"},touch:{start:"touchstart",move:"touchmove",stop:"touchend"}},I={userSelect:"none",MozUserSelect:"none",WebkitUserSelect:"none",MsUserSelect:"none"},k={userSelect:"auto",MozUserSelect:"auto",WebkitUserSelect:"auto",MsUserSelect:"auto"},P=O.mouse,M={replace:!0,name:"vue-draggable-resizable",props:{className:{type:String,default:"vdr"},classNameDraggable:{type:String,default:"draggable"},classNameResizable:{type:String,default:"resizable"},classNameDragging:{type:String,default:"dragging"},classNameResizing:{type:String,default:"resizing"},classNameActive:{type:String,default:"active"},classNameHandle:{type:String,default:"handle"},disableUserSelect:{type:Boolean,default:!0},enableNativeDrag:{type:Boolean,default:!1},preventDeactivation:{type:Boolean,default:!1},active:{type:Boolean,default:!1},draggable:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},lockAspectRatio:{type:Boolean,default:!1},w:{type:[Number,String],default:200,validator:function(e){return"number"===typeof e?e>0:"auto"===e}},h:{type:[Number,String],default:200,validator:function(e){return"number"===typeof e?e>0:"auto"===e}},minWidth:{type:Number,default:0,validator:function(e){return e>=0}},minHeight:{type:Number,default:0,validator:function(e){return e>=0}},maxWidth:{type:Number,default:null,validator:function(e){return e>=0}},maxHeight:{type:Number,default:null,validator:function(e){return e>=0}},x:{type:Number,default:0},y:{type:Number,default:0},z:{type:[String,Number],default:"auto",validator:function(e){return"string"===typeof e?"auto"===e:e>=0}},handles:{type:Array,default:function(){return["tl","tm","tr","mr","br","bm","bl","ml"]},validator:function(e){var t=new Set(["tl","tm","tr","mr","br","bm","bl","ml"]);return new Set(e.filter((function(e){return t.has(e)}))).size===e.length}},dragHandle:{type:String,default:null},dragCancel:{type:String,default:null},axis:{type:String,default:"both",validator:function(e){return["x","y","both"].includes(e)}},grid:{type:Array,default:function(){return[1,1]}},parent:{type:Boolean,default:!1},scale:{type:[Number,Array],default:1,validator:function(e){return"number"===typeof e?e>0:2===e.length&&e[0]>0&&e[1]>0}},onDragStart:{type:Function,default:function(){return!0}},onDrag:{type:Function,default:function(){return!0}},onResizeStart:{type:Function,default:function(){return!0}},onResize:{type:Function,default:function(){return!0}}},data:function(){return{left:this.x,top:this.y,right:null,bottom:null,width:null,height:null,widthTouched:!1,heightTouched:!1,aspectFactor:null,parentWidth:null,parentHeight:null,minW:this.minWidth,minH:this.minHeight,maxW:this.maxWidth,maxH:this.maxHeight,handle:null,enabled:this.active,resizing:!1,dragging:!1,dragEnable:!1,resizeEnable:!1,zIndex:this.z}},created:function(){this.maxWidth&&this.minWidth>this.maxWidth&&console.warn("[Vdr warn]: Invalid prop: minWidth cannot be greater than maxWidth"),this.maxWidth&&this.minHeight>this.maxHeight&&console.warn("[Vdr warn]: Invalid prop: minHeight cannot be greater than maxHeight"),this.resetBoundsAndMouseState()},mounted:function(){this.enableNativeDrag||(this.$el.ondragstart=function(){return!1});var e=this.getParentSize(),t=g(e,2),n=t[0],r=t[1];this.parentWidth=n,this.parentHeight=r;var i=C(this.$el),o=g(i,2),s=o[0],a=o[1];this.aspectFactor=("auto"!==this.w?this.w:s)/("auto"!==this.h?this.h:a),this.width="auto"!==this.w?this.w:s,this.height="auto"!==this.h?this.h:a,this.right=this.parentWidth-this.width-this.left,this.bottom=this.parentHeight-this.height-this.top,this.active&&this.$emit("activated"),E(document.documentElement,"mousedown",this.deselect),E(document.documentElement,"touchend touchcancel",this.deselect),E(window,"resize",this.checkParentSize)},beforeDestroy:function(){A(document.documentElement,"mousedown",this.deselect),A(document.documentElement,"touchstart",this.handleUp),A(document.documentElement,"mousemove",this.move),A(document.documentElement,"touchmove",this.move),A(document.documentElement,"mouseup",this.handleUp),A(document.documentElement,"touchend touchcancel",this.deselect),A(window,"resize",this.checkParentSize)},methods:{resetBoundsAndMouseState:function(){this.mouseClickPosition={mouseX:0,mouseY:0,x:0,y:0,w:0,h:0},this.bounds={minLeft:null,maxLeft:null,minRight:null,maxRight:null,minTop:null,maxTop:null,minBottom:null,maxBottom:null}},checkParentSize:function(){if(this.parent){var e=this.getParentSize(),t=g(e,2),n=t[0],r=t[1];this.parentWidth=n,this.parentHeight=r,this.right=this.parentWidth-this.width-this.left,this.bottom=this.parentHeight-this.height-this.top}},getParentSize:function(){if(this.parent){var e=window.getComputedStyle(this.$el.parentNode,null);return[parseInt(e.getPropertyValue("width"),10),parseInt(e.getPropertyValue("height"),10)]}return[null,null]},elementTouchDown:function(e){P=O.touch,this.elementDown(e)},elementMouseDown:function(e){P=O.mouse,this.elementDown(e)},elementDown:function(e){if(!(e instanceof MouseEvent&&1!==e.which)){var t=e.target||e.srcElement;if(this.$el.contains(t)){if(!1===this.onDragStart(e))return;if(this.dragHandle&&!S(t,this.dragHandle,this.$el)||this.dragCancel&&S(t,this.dragCancel,this.$el))return void(this.dragging=!1);this.enabled||(this.enabled=!0,this.$emit("activated"),this.$emit("update:active",!0)),this.draggable&&(this.dragEnable=!0),this.mouseClickPosition.mouseX=e.touches?e.touches[0].pageX:e.pageX,this.mouseClickPosition.mouseY=e.touches?e.touches[0].pageY:e.pageY,this.mouseClickPosition.left=this.left,this.mouseClickPosition.right=this.right,this.mouseClickPosition.top=this.top,this.mouseClickPosition.bottom=this.bottom,this.parent&&(this.bounds=this.calcDragLimits()),E(document.documentElement,P.move,this.move),E(document.documentElement,P.stop,this.handleUp)}}},calcDragLimits:function(){return{minLeft:this.left%this.grid[0],maxLeft:Math.floor((this.parentWidth-this.width-this.left)/this.grid[0])*this.grid[0]+this.left,minRight:this.right%this.grid[0],maxRight:Math.floor((this.parentWidth-this.width-this.right)/this.grid[0])*this.grid[0]+this.right,minTop:this.top%this.grid[1],maxTop:Math.floor((this.parentHeight-this.height-this.top)/this.grid[1])*this.grid[1]+this.top,minBottom:this.bottom%this.grid[1],maxBottom:Math.floor((this.parentHeight-this.height-this.bottom)/this.grid[1])*this.grid[1]+this.bottom}},deselect:function(e){var t=e.target||e.srcElement,n=new RegExp(this.className+"-([trmbl]{2})","");this.$el.contains(t)||n.test(t.className)||(this.enabled&&!this.preventDeactivation&&(this.enabled=!1,this.$emit("deactivated"),this.$emit("update:active",!1)),A(document.documentElement,P.move,this.handleResize)),this.resetBoundsAndMouseState()},handleTouchDown:function(e,t){P=O.touch,this.handleDown(e,t)},handleDown:function(e,t){t instanceof MouseEvent&&1!==t.which||!1!==this.onResizeStart(e,t)&&(t.stopPropagation&&t.stopPropagation(),this.lockAspectRatio&&!e.includes("m")?this.handle="m"+e.substring(1):this.handle=e,this.resizeEnable=!0,this.mouseClickPosition.mouseX=t.touches?t.touches[0].pageX:t.pageX,this.mouseClickPosition.mouseY=t.touches?t.touches[0].pageY:t.pageY,this.mouseClickPosition.left=this.left,this.mouseClickPosition.right=this.right,this.mouseClickPosition.top=this.top,this.mouseClickPosition.bottom=this.bottom,this.bounds=this.calcResizeLimits(),E(document.documentElement,P.move,this.handleResize),E(document.documentElement,P.stop,this.handleUp))},calcResizeLimits:function(){var e=this.minW,t=this.minH,n=this.maxW,r=this.maxH,i=this.aspectFactor,o=g(this.grid,2),s=o[0],a=o[1],u=this.width,c=this.height,l=this.left,d=this.top,h=this.right,f=this.bottom;this.lockAspectRatio&&(e/t>i?t=e/i:e=i*t,n&&r?(n=Math.min(n,i*r),r=Math.min(r,n/i)):n?r=n/i:r&&(n=i*r)),n-=n%s,r-=r%a;var p={minLeft:null,maxLeft:null,minTop:null,maxTop:null,minRight:null,maxRight:null,minBottom:null,maxBottom:null};return this.parent?(p.minLeft=l%s,p.maxLeft=l+Math.floor((u-e)/s)*s,p.minTop=d%a,p.maxTop=d+Math.floor((c-t)/a)*a,p.minRight=h%s,p.maxRight=h+Math.floor((u-e)/s)*s,p.minBottom=f%a,p.maxBottom=f+Math.floor((c-t)/a)*a,n&&(p.minLeft=Math.max(p.minLeft,this.parentWidth-h-n),p.minRight=Math.max(p.minRight,this.parentWidth-l-n)),r&&(p.minTop=Math.max(p.minTop,this.parentHeight-f-r),p.minBottom=Math.max(p.minBottom,this.parentHeight-d-r)),this.lockAspectRatio&&(p.minLeft=Math.max(p.minLeft,l-d*i),p.minTop=Math.max(p.minTop,d-l/i),p.minRight=Math.max(p.minRight,h-f*i),p.minBottom=Math.max(p.minBottom,f-h/i))):(p.minLeft=null,p.maxLeft=l+Math.floor((u-e)/s)*s,p.minTop=null,p.maxTop=d+Math.floor((c-t)/a)*a,p.minRight=null,p.maxRight=h+Math.floor((u-e)/s)*s,p.minBottom=null,p.maxBottom=f+Math.floor((c-t)/a)*a,n&&(p.minLeft=-(h+n),p.minRight=-(l+n)),r&&(p.minTop=-(f+r),p.minBottom=-(d+r)),this.lockAspectRatio&&n&&r&&(p.minLeft=Math.min(p.minLeft,-(h+n)),p.minTop=Math.min(p.minTop,-(r+f)),p.minRight=Math.min(p.minRight,-l-n),p.minBottom=Math.min(p.minBottom,-d-r))),p},move:function(e){this.resizing?this.handleResize(e):this.dragEnable&&this.handleDrag(e)},handleDrag:function(e){var t=this.axis,n=this.grid,r=this.bounds,i=this.mouseClickPosition,o=t&&"y"!==t?i.mouseX-(e.touches?e.touches[0].pageX:e.pageX):0,s=t&&"x"!==t?i.mouseY-(e.touches?e.touches[0].pageY:e.pageY):0,a=y(n,o,s,this.scale),u=g(a,2),c=u[0],l=u[1],d=T(i.left-c,r.minLeft,r.maxLeft),h=T(i.top-l,r.minTop,r.maxTop);if(!1!==this.onDrag(d,h)){var f=T(i.right+c,r.minRight,r.maxRight),p=T(i.bottom+l,r.minBottom,r.maxBottom);this.left=d,this.top=h,this.right=f,this.bottom=p,this.$emit("dragging",this.left,this.top),this.dragging=!0}},moveHorizontally:function(e){var t=y(this.grid,e,this.top,1),n=g(t,2),r=n[0],i=(n[1],T(r,this.bounds.minLeft,this.bounds.maxLeft));this.left=i,this.right=this.parentWidth-this.width-i},moveVertically:function(e){var t=y(this.grid,this.left,e,1),n=g(t,2),r=(n[0],n[1]),i=T(r,this.bounds.minTop,this.bounds.maxTop);this.top=i,this.bottom=this.parentHeight-this.height-i},handleResize:function(e){var t=this.left,n=this.top,r=this.right,i=this.bottom,o=this.mouseClickPosition,s=(this.lockAspectRatio,this.aspectFactor),a=o.mouseX-(e.touches?e.touches[0].pageX:e.pageX),u=o.mouseY-(e.touches?e.touches[0].pageY:e.pageY);!this.widthTouched&&a&&(this.widthTouched=!0),!this.heightTouched&&u&&(this.heightTouched=!0);var c=y(this.grid,a,u,this.scale),l=g(c,2),d=l[0],h=l[1];this.handle.includes("b")?(i=T(o.bottom+h,this.bounds.minBottom,this.bounds.maxBottom),this.lockAspectRatio&&this.resizingOnY&&(r=this.right-(this.bottom-i)*s)):this.handle.includes("t")&&(n=T(o.top-h,this.bounds.minTop,this.bounds.maxTop),this.lockAspectRatio&&this.resizingOnY&&(t=this.left-(this.top-n)*s)),this.handle.includes("r")?(r=T(o.right+d,this.bounds.minRight,this.bounds.maxRight),this.lockAspectRatio&&this.resizingOnX&&(i=this.bottom-(this.right-r)/s)):this.handle.includes("l")&&(t=T(o.left-d,this.bounds.minLeft,this.bounds.maxLeft),this.lockAspectRatio&&this.resizingOnX&&(n=this.top-(this.left-t)/s));var f=b(this.parentWidth,t,r),p=w(this.parentHeight,n,i);!1!==this.onResize(this.handle,t,n,f,p)&&(this.left=t,this.top=n,this.right=r,this.bottom=i,this.width=f,this.height=p,this.$emit("resizing",this.left,this.top,this.width,this.height),this.resizing=!0)},changeWidth:function(e){var t=y(this.grid,e,0,1),n=g(t,2),r=n[0],i=(n[1],T(this.parentWidth-r-this.left,this.bounds.minRight,this.bounds.maxRight)),o=this.bottom;this.lockAspectRatio&&(o=this.bottom-(this.right-i)/this.aspectFactor);var s=b(this.parentWidth,this.left,i),a=w(this.parentHeight,this.top,o);this.right=i,this.bottom=o,this.width=s,this.height=a},changeHeight:function(e){var t=y(this.grid,0,e,1),n=g(t,2),r=(n[0],n[1]),i=T(this.parentHeight-r-this.top,this.bounds.minBottom,this.bounds.maxBottom),o=this.right;this.lockAspectRatio&&(o=this.right-(this.bottom-i)*this.aspectFactor);var s=b(this.parentWidth,this.left,o),a=w(this.parentHeight,this.top,i);this.right=o,this.bottom=i,this.width=s,this.height=a},handleUp:function(e){this.handle=null,this.resetBoundsAndMouseState(),this.dragEnable=!1,this.resizeEnable=!1,this.resizing&&(this.resizing=!1,this.$emit("resizestop",this.left,this.top,this.width,this.height)),this.dragging&&(this.dragging=!1,this.$emit("dragstop",this.left,this.top)),A(document.documentElement,P.move,this.handleResize)}},computed:{style:function(){return R({transform:"translate(".concat(this.left,"px, ").concat(this.top,"px)"),width:this.computedWidth,height:this.computedHeight,zIndex:this.zIndex},this.dragging&&this.disableUserSelect?I:k)},actualHandles:function(){return this.resizable?this.handles:[]},computedWidth:function(){return"auto"!==this.w||this.widthTouched?this.width+"px":"auto"},computedHeight:function(){return"auto"!==this.h||this.heightTouched?this.height+"px":"auto"},resizingOnX:function(){return Boolean(this.handle)&&(this.handle.includes("l")||this.handle.includes("r"))},resizingOnY:function(){return Boolean(this.handle)&&(this.handle.includes("t")||this.handle.includes("b"))},isCornerHandle:function(){return Boolean(this.handle)&&["tl","tr","br","bl"].includes(this.handle)}},watch:{active:function(e){this.enabled=e,e?this.$emit("activated"):this.$emit("deactivated")},z:function(e){(e>=0||"auto"===e)&&(this.zIndex=e)},x:function(e){this.resizing||this.dragging||(this.parent&&(this.bounds=this.calcDragLimits()),this.moveHorizontally(e))},y:function(e){this.resizing||this.dragging||(this.parent&&(this.bounds=this.calcDragLimits()),this.moveVertically(e))},lockAspectRatio:function(e){this.aspectFactor=e?this.width/this.height:void 0},minWidth:function(e){e>0&&e<=this.width&&(this.minW=e)},minHeight:function(e){e>0&&e<=this.height&&(this.minH=e)},maxWidth:function(e){this.maxW=e},maxHeight:function(e){this.maxH=e},w:function(e){this.resizing||this.dragging||(this.parent&&(this.bounds=this.calcResizeLimits()),this.changeWidth(e))},h:function(e){this.resizing||this.dragging||(this.parent&&(this.bounds=this.calcResizeLimits()),this.changeHeight(e))}}},N=M;function L(e,t,n,r,i,o,s,a){var u,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(u=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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=u):i&&(u=a?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(e,t){return u.call(t),l(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,u):[u]}return{exports:e,options:c}}var D=L(N,r,i,!1,null,null,null);t["a"]=D.exports},3846:function(e,t,n){n("9e1e")&&"g"!=/./g.flags&&n("86cc").f(RegExp.prototype,"flags",{configurable:!0,get:n("0bfb")})},"38fd":function(e,t,n){var r=n("69a8"),i=n("4bf8"),o=n("613b")("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},"3adc":function(e,t,n){var r=n("0f89"),i=n("a47f"),o=n("2ea1"),s=Object.defineProperty;t.f=n("7d95")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return s(e,t,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"3b2b":function(e,t,n){var r=n("7726"),i=n("5dbc"),o=n("86cc").f,s=n("9093").f,a=n("aae3"),u=n("0bfb"),c=r.RegExp,l=c,d=c.prototype,h=/a/g,f=/a/g,p=new c(h)!==h;if(n("9e1e")&&(!p||n("79e5")((function(){return f[n("2b4c")("match")]=!1,c(h)!=h||c(f)==f||"/a/i"!=c(h,"i")})))){c=function(e,t){var n=this instanceof c,r=a(e),o=void 0===t;return!n&&r&&e.constructor===c&&o?e:i(p?new l(r&&!o?e.source:e,t):l((r=e instanceof c)?e.source:e,r&&o?u.call(e):t),n?this:d,c)};for(var v=function(e){e in c||o(c,e,{configurable:!0,get:function(){return l[e]},set:function(t){l[e]=t}})},m=s(l),g=0;m.length>g;)v(m[g++]);d.constructor=c,c.prototype=d,n("2aba")(r,"RegExp",c)}n("7a56")("RegExp")},"41a0":function(e,t,n){"use strict";var r=n("2aeb"),i=n("4630"),o=n("7f20"),s={};n("32e9")(s,n("2b4c")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(s,{next:i(1,n)}),o(e,t+" Iterator")}},"43c8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"456d":function(e,t,n){var r=n("4bf8"),i=n("0d58");n("5eda")("keys",(function(){return function(e){return i(r(e))}}))},4588:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"4a59":function(e,t,n){var r=n("9b43"),i=n("1fa8"),o=n("33a4"),s=n("cb7c"),a=n("9def"),u=n("27ee"),c={},l={};t=e.exports=function(e,t,n,d,h){var f,p,v,m,g=h?function(){return e}:u(e),_=r(n,d,t?2:1),y=0;if("function"!=typeof g)throw TypeError(e+" is not iterable!");if(o(g)){for(f=a(e.length);f>y;y++)if(m=t?_(s(p=e[y])[0],p[1]):_(e[y]),m===c||m===l)return m}else for(v=g.call(e);!(p=v.next()).done;)if(m=i(v,_,p.value,t),m===c||m===l)return m},t.BREAK=c,t.RETURN=l},"4bf8":function(e,t,n){var r=n("be13");e.exports=function(e){return Object(r(e))}},"4f7f":function(e,t,n){"use strict";var r=n("c26b"),i=n("b39a"),o="Set";e.exports=n("e0b8")(o,(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return r.def(i(this,o),e=0===e?0:e,e)}},r)},5147:function(e,t,n){var r=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(i){}}return!0}},"52a7":function(e,t){t.f={}.propertyIsEnumerable},5537:function(e,t,n){var r=n("8378"),i=n("7726"),o="__core-js_shared__",s=i[o]||(i[o]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},"58b2":function(e,t,n){var r=n("5ca1");r(r.S+r.F*!n("9e1e"),"Object",{defineProperties:n("1495")})},"5ca1":function(e,t,n){var r=n("7726"),i=n("8378"),o=n("32e9"),s=n("2aba"),a=n("9b43"),u="prototype",c=function(e,t,n){var l,d,h,f,p=e&c.F,v=e&c.G,m=e&c.S,g=e&c.P,_=e&c.B,y=v?r:m?r[t]||(r[t]={}):(r[t]||{})[u],b=v?i:i[t]||(i[t]={}),w=b[u]||(b[u]={});for(l in v&&(n=t),n)d=!p&&y&&void 0!==y[l],h=(d?y:n)[l],f=_&&d?a(h,r):g&&"function"==typeof h?a(Function.call,h):h,y&&s(y,l,h,e&c.U),b[l]!=h&&o(b,l,f),g&&w[l]!=h&&(w[l]=h)};r.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},"5cc5":function(e,t,n){var r=n("2b4c")("iterator"),i=!1;try{var o=[7][r]();o["return"]=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(s){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},e(o)}catch(s){}return n}},"5ce7":function(e,t,n){"use strict";var r=n("7108"),i=n("f845"),o=n("c0d8"),s={};n("8ce0")(s,n("1b55")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(s,{next:i(1,n)}),o(e,t+" Iterator")}},"5d73":function(e,t,n){e.exports=n("0a91")},"5d8f":function(e,t,n){var r=n("7772")("keys"),i=n("7b00");e.exports=function(e){return r[e]||(r[e]=i(e))}},"5dbc":function(e,t,n){var r=n("d3f4"),i=n("8b97").set;e.exports=function(e,t,n){var o,s=t.constructor;return s!==n&&"function"==typeof s&&(o=s.prototype)!==n.prototype&&r(o)&&i&&i(e,o),e}},"5df3":function(e,t,n){"use strict";var r=n("02f4")(!0);n("01f9")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},"5eda":function(e,t,n){var r=n("5ca1"),i=n("8378"),o=n("79e5");e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],s={};s[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",s)}},"613b":function(e,t,n){var r=n("5537")("keys"),i=n("ca5a");e.exports=function(e){return r[e]||(r[e]=i(e))}},"626a":function(e,t,n){var r=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},6762:function(e,t,n){"use strict";var r=n("5ca1"),i=n("c366")(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},"67ab":function(e,t,n){var r=n("ca5a")("meta"),i=n("d3f4"),o=n("69a8"),s=n("86cc").f,a=0,u=Object.isExtensible||function(){return!0},c=!n("79e5")((function(){return u(Object.preventExtensions({}))})),l=function(e){s(e,r,{value:{i:"O"+ ++a,w:{}}})},d=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!u(e))return"F";if(!t)return"E";l(e)}return e[r].i},h=function(e,t){if(!o(e,r)){if(!u(e))return!0;if(!t)return!1;l(e)}return e[r].w},f=function(e){return c&&p.NEED&&u(e)&&!o(e,r)&&l(e),e},p=e.exports={KEY:r,NEED:!1,fastKey:d,getWeak:h,onFreeze:f}},6821:function(e,t,n){var r=n("626a"),i=n("be13");e.exports=function(e){return r(i(e))}},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"6a99":function(e,t,n){var r=n("d3f4");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"6a9b":function(e,t,n){var r=n("8bab"),i=n("e5fa");e.exports=function(e){return r(i(e))}},"6b54":function(e,t,n){"use strict";n("3846");var r=n("cb7c"),i=n("0bfb"),o=n("9e1e"),s="toString",a=/./[s],u=function(e){n("2aba")(RegExp.prototype,s,e,!0)};n("79e5")((function(){return"/a/b"!=a.call({source:"a",flags:"b"})}))?u((function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!o&&e instanceof RegExp?i.call(e):void 0)})):a.name!=s&&u((function(){return a.call(this)}))},"6e1f":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"6f42":function(e,t,n){},"6f8a":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},7108:function(e,t,n){var r=n("0f89"),i=n("f568"),o=n("0029"),s=n("5d8f")("IE_PROTO"),a=function(){},u="prototype",c=function(){var e,t=n("12fd")("iframe"),r=o.length,i="<",s=">";t.style.display="none",n("103a").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+s+"document.F=Object"+i+"/script"+s),e.close(),c=e.F;while(r--)delete c[u][o[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[u]=r(e),n=new a,a[u]=null,n[s]=e):n=c(),void 0===t?n:i(n,t)}},7514:function(e,t,n){"use strict";var r=n("5ca1"),i=n("0a49")(5),o="find",s=!0;o in[]&&Array(1)[o]((function(){s=!1})),r(r.P+r.F*s,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(o)},7633:function(e,t,n){var r=n("2695"),i=n("0029");e.exports=Object.keys||function(e){return r(e,i)}},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},7772:function(e,t,n){var r=n("a7d3"),i=n("da3c"),o="__core-js_shared__",s=i[o]||(i[o]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("b457")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"77f1":function(e,t,n){var r=n("4588"),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"7a56":function(e,t,n){"use strict";var r=n("7726"),i=n("86cc"),o=n("9e1e"),s=n("2b4c")("species");e.exports=function(e){var t=r[e];o&&t&&!t[s]&&i.f(t,s,{configurable:!0,get:function(){return this}})}},"7b00":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},"7d8a":function(e,t,n){var r=n("6e1f"),i=n("1b55")("toStringTag"),o="Arguments"==r(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=s(t=Object(e),i))?n:o?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},"7d95":function(e,t,n){e.exports=!n("d782")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"7f20":function(e,t,n){var r=n("86cc").f,i=n("69a8"),o=n("2b4c")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},8378:function(e,t){var n=e.exports={version:"2.6.1"};"number"==typeof __e&&(__e=n)},"84f2":function(e,t){e.exports={}},"85f2":function(e,t,n){e.exports=n("ec5b")},"86cc":function(e,t,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),s=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return s(e,t,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"87b3":function(e,t,n){var r=Date.prototype,i="Invalid Date",o="toString",s=r[o],a=r.getTime;new Date(NaN)+""!=i&&n("2aba")(r,o,(function(){var e=a.call(this);return e===e?s.call(this):i}))},8875:function(e,t,n){var r,i,o;(function(n,s){i=[],r=s,o="function"===typeof r?r.apply(t,i):r,void 0===o||(e.exports=o)})("undefined"!==typeof self&&self,(function(){function e(){if(document.currentScript)return document.currentScript;try{throw new Error}catch(d){var e,t,n,r=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,i=/@([^@]*):(\d+):(\d+)\s*$/gi,o=r.exec(d.stack)||i.exec(d.stack),s=o&&o[1]||!1,a=o&&o[2]||!1,u=document.location.href.replace(document.location.hash,""),c=document.getElementsByTagName("script");s===u&&(e=document.documentElement.outerHTML,t=new RegExp("(?:[^\\n]+?\\n){0,"+(a-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),n=e.replace(t,"$1").trim());for(var l=0;l<c.length;l++){if("interactive"===c[l].readyState)return c[l];if(c[l].src===s)return c[l];if(s===u&&c[l].innerHTML&&c[l].innerHTML.trim()===n)return c[l]}return null}}return e}))},"89ca":function(e,t,n){n("b42c"),n("93c4"),e.exports=n("d38f")},"8b97":function(e,t,n){var r=n("d3f4"),i=n("cb7c"),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(i){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},"8bab":function(e,t,n){var r=n("6e1f");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"8ce0":function(e,t,n){var r=n("3adc"),i=n("f845");e.exports=n("7d95")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"8e6e":function(e,t,n){var r=n("5ca1"),i=n("990b"),o=n("6821"),s=n("11e9"),a=n("f1ae");r(r.S,"Object",{getOwnPropertyDescriptors:function(e){var t,n,r=o(e),u=s.f,c=i(r),l={},d=0;while(c.length>d)n=u(r,t=c[d++]),void 0!==n&&a(l,t,n);return l}})},9093:function(e,t,n){var r=n("ce10"),i=n("e11e").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},"93c4":function(e,t,n){"use strict";var r=n("2a4e")(!0);n("e4a9")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},"990b":function(e,t,n){var r=n("9093"),i=n("2621"),o=n("cb7c"),s=n("7726").Reflect;e.exports=s&&s.ownKeys||function(e){var t=r.f(o(e)),n=i.f;return n?t.concat(n(e)):t}},"9b43":function(e,t,n){var r=n("d8e8");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,n){var r=n("2b4c")("unscopables"),i=Array.prototype;void 0==i[r]&&n("32e9")(i,r,{}),e.exports=function(e){i[r][e]=!0}},"9def":function(e,t,n){var r=n("4588"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a47f:function(e,t,n){e.exports=!n("7d95")&&!n("d782")((function(){return 7!=Object.defineProperty(n("12fd")("div"),"a",{get:function(){return 7}}).a}))},a5ab:function(e,t,n){var r=n("a812"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},a745:function(e,t,n){e.exports=n("d604")},a7d3:function(e,t){var n=e.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},a812:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},aa77:function(e,t,n){var r=n("5ca1"),i=n("be13"),o=n("79e5"),s=n("fdef"),a="["+s+"]",u="​…",c=RegExp("^"+a+a+"*"),l=RegExp(a+a+"*$"),d=function(e,t,n){var i={},a=o((function(){return!!s[e]()||u[e]()!=u})),c=i[e]=a?t(h):s[e];n&&(i[n]=c),r(r.P+r.F*a,"String",i)},h=d.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(c,"")),2&t&&(e=e.replace(l,"")),e};e.exports=d},aae3:function(e,t,n){var r=n("d3f4"),i=n("2d95"),o=n("2b4c")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},ac6a:function(e,t,n){for(var r=n("cadf"),i=n("0d58"),o=n("2aba"),s=n("7726"),a=n("32e9"),u=n("84f2"),c=n("2b4c"),l=c("iterator"),d=c("toStringTag"),h=u.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(f),v=0;v<p.length;v++){var m,g=p[v],_=f[g],y=s[g],b=y&&y.prototype;if(b&&(b[l]||a(b,l,h),b[d]||a(b,d,g),u[g]=h,_))for(m in r)b[m]||o(b,m,r[m],!0)}},b22a:function(e,t){e.exports={}},b39a:function(e,t,n){var r=n("d3f4");e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},b3e7:function(e,t){e.exports=function(){}},b42c:function(e,t,n){n("fa54");for(var r=n("da3c"),i=n("8ce0"),o=n("b22a"),s=n("1b55")("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<a.length;u++){var c=a[u],l=r[c],d=l&&l.prototype;d&&!d[s]&&i(d,s,c),o[c]=o.Array}},b457:function(e,t){e.exports=!0},b5aa:function(e,t,n){var r=n("6e1f");e.exports=Array.isArray||function(e){return"Array"==r(e)}},b635:function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return i})),n("6f42");var r=n("3425");function i(e){i.installed||(i.installed=!0,e.component("VueDraggableResizable",r["a"]))}var o={install:i},s=null;"undefined"!==typeof window?s=window.Vue:"undefined"!==typeof e&&(s=e.Vue),s&&s.use(o),t["a"]=r["a"]}).call(this,n("c8ba"))},b77f:function(e,t,n){var r=n("0f89"),i=n("f159");e.exports=n("a7d3").getIterator=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},bc25:function(e,t,n){var r=n("f2fe");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},be13:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},c0d8:function(e,t,n){var r=n("3adc").f,i=n("43c8"),o=n("1b55")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},c26b:function(e,t,n){"use strict";var r=n("86cc").f,i=n("2aeb"),o=n("dcbc"),s=n("9b43"),a=n("f605"),u=n("4a59"),c=n("01f9"),l=n("d53b"),d=n("7a56"),h=n("9e1e"),f=n("67ab").fastKey,p=n("b39a"),v=h?"_s":"size",m=function(e,t){var n,r=f(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,c){var l=e((function(e,r){a(e,l,t,"_i"),e._t=t,e._i=i(null),e._f=void 0,e._l=void 0,e[v]=0,void 0!=r&&u(r,n,e[c],e)}));return o(l.prototype,{clear:function(){for(var e=p(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[v]=0},delete:function(e){var n=p(this,t),r=m(n,e);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[v]--}return!!r},forEach:function(e){p(this,t);var n,r=s(e,arguments.length>1?arguments[1]:void 0,3);while(n=n?n.n:this._f){r(n.v,n.k,this);while(n&&n.r)n=n.p}},has:function(e){return!!m(p(this,t),e)}}),h&&r(l.prototype,"size",{get:function(){return p(this,t)[v]}}),l},def:function(e,t,n){var r,i,o=m(e,t);return o?o.v=n:(e._l=o={i:i=f(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=o),r&&(r.n=o),e[v]++,"F"!==i&&(e._i[i]=o)),e},getEntry:m,setStrong:function(e,t,n){c(e,t,(function(e,n){this._t=p(e,t),this._k=n,this._l=void 0}),(function(){var e=this,t=e._k,n=e._l;while(n&&n.r)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?l(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(e._t=void 0,l(1))}),n?"entries":"values",!n,!0),d(t)}}},c366:function(e,t,n){var r=n("6821"),i=n("9def"),o=n("77f1");e.exports=function(e){return function(t,n,s){var a,u=r(t),c=i(u.length),l=o(s,c);if(e&&n!=n){while(c>l)if(a=u[l++],a!=a)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}}},c5f6:function(e,t,n){"use strict";var r=n("7726"),i=n("69a8"),o=n("2d95"),s=n("5dbc"),a=n("6a99"),u=n("79e5"),c=n("9093").f,l=n("11e9").f,d=n("86cc").f,h=n("aa77").trim,f="Number",p=r[f],v=p,m=p.prototype,g=o(n("2aeb")(m))==f,_="trim"in String.prototype,y=function(e){var t=a(e,!1);if("string"==typeof t&&t.length>2){t=_?t.trim():h(t,3);var n,r,i,o=t.charCodeAt(0);if(43===o||45===o){if(n=t.charCodeAt(2),88===n||120===n)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+t}for(var s,u=t.slice(2),c=0,l=u.length;c<l;c++)if(s=u.charCodeAt(c),s<48||s>i)return NaN;return parseInt(u,r)}}return+t};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof p&&(g?u((function(){m.valueOf.call(n)})):o(n)!=f)?s(new v(y(t)),n,p):y(t)};for(var b,w=n("9e1e")?c(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),T=0;w.length>T;T++)i(v,b=w[T])&&!i(p,b)&&d(p,b,l(v,b));p.prototype=m,m.constructor=p,n("2aba")(r,f,p)}},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},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},c8bb:function(e,t,n){e.exports=n("89ca")},ca5a:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},cadf:function(e,t,n){"use strict";var r=n("9c6c"),i=n("d53b"),o=n("84f2"),s=n("6821");e.exports=n("01f9")(Array,"Array",(function(e,t){this._t=s(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},cb7c:function(e,t,n){var r=n("d3f4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},cd1c:function(e,t,n){var r=n("e853");e.exports=function(e,t){return new(r(e))(t)}},ce10:function(e,t,n){var r=n("69a8"),i=n("6821"),o=n("c366")(!1),s=n("613b")("IE_PROTO");e.exports=function(e,t){var n,a=i(e),u=0,c=[];for(n in a)n!=s&&r(a,n)&&c.push(n);while(t.length>u)r(a,n=t[u++])&&(~o(c,n)||c.push(n));return c}},d13f:function(e,t,n){var r=n("da3c"),i=n("a7d3"),o=n("bc25"),s=n("8ce0"),a=n("43c8"),u="prototype",c=function(e,t,n){var l,d,h,f=e&c.F,p=e&c.G,v=e&c.S,m=e&c.P,g=e&c.B,_=e&c.W,y=p?i:i[t]||(i[t]={}),b=y[u],w=p?r:v?r[t]:(r[t]||{})[u];for(l in p&&(n=t),n)d=!f&&w&&void 0!==w[l],d&&a(y,l)||(h=d?w[l]:n[l],y[l]=p&&"function"!=typeof w[l]?n[l]:g&&d?o(h,r):_&&w[l]==h?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[u]=e[u],t}(h):m&&"function"==typeof h?o(Function.call,h):h,m&&((y.virtual||(y.virtual={}))[l]=h,e&c.R&&b&&!b[l]&&s(b,l,h)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},d25f:function(e,t,n){"use strict";var r=n("5ca1"),i=n("0a49")(2);r(r.P+r.F*!n("2f21")([].filter,!0),"Array",{filter:function(e){return i(this,e,arguments[1])}})},d2c8:function(e,t,n){var r=n("aae3"),i=n("be13");e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},d38f:function(e,t,n){var r=n("7d8a"),i=n("1b55")("iterator"),o=n("b22a");e.exports=n("a7d3").isIterable=function(e){var t=Object(e);return void 0!==t[i]||"@@iterator"in t||o.hasOwnProperty(r(t))}},d3f4:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d604:function(e,t,n){n("1938"),e.exports=n("a7d3").Array.isArray},d782:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},da3c:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},dcbc:function(e,t,n){var r=n("2aba");e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},e0b8:function(e,t,n){"use strict";var r=n("7726"),i=n("5ca1"),o=n("2aba"),s=n("dcbc"),a=n("67ab"),u=n("4a59"),c=n("f605"),l=n("d3f4"),d=n("79e5"),h=n("5cc5"),f=n("7f20"),p=n("5dbc");e.exports=function(e,t,n,v,m,g){var _=r[e],y=_,b=m?"set":"add",w=y&&y.prototype,T={},S=function(e){var t=w[e];o(w,e,"delete"==e||"has"==e?function(e){return!(g&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return g&&!l(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof y&&(g||w.forEach&&!d((function(){(new y).entries().next()})))){var C=new y,E=C[b](g?{}:-0,1)!=C,A=d((function(){C.has(1)})),x=h((function(e){new y(e)})),R=!g&&d((function(){var e=new y,t=5;while(t--)e[b](t,t);return!e.has(-0)}));x||(y=t((function(t,n){c(t,y,e);var r=p(new _,t,y);return void 0!=n&&u(n,m,r[b],r),r})),y.prototype=w,w.constructor=y),(A||R)&&(S("delete"),S("has"),m&&S("get")),(R||E)&&S(b),g&&w.clear&&delete w.clear}else y=v.getConstructor(t,e,m,b),s(y.prototype,n),a.NEED=!0;return f(y,e),T[e]=y,i(i.G+i.W+i.F*(y!=_),T),g||v.setStrong(y,e,m),y}},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e341:function(e,t,n){var r=n("d13f");r(r.S+r.F*!n("7d95"),"Object",{defineProperty:n("3adc").f})},e4a9:function(e,t,n){"use strict";var r=n("b457"),i=n("d13f"),o=n("2312"),s=n("8ce0"),a=n("b22a"),u=n("5ce7"),c=n("c0d8"),l=n("ff0c"),d=n("1b55")("iterator"),h=!([].keys&&"next"in[].keys()),f="@@iterator",p="keys",v="values",m=function(){return this};e.exports=function(e,t,n,g,_,y,b){u(n,t,g);var w,T,S,C=function(e){if(!h&&e in R)return R[e];switch(e){case p:return function(){return new n(this,e)};case v:return function(){return new n(this,e)}}return function(){return new n(this,e)}},E=t+" Iterator",A=_==v,x=!1,R=e.prototype,O=R[d]||R[f]||_&&R[_],I=O||C(_),k=_?A?C("entries"):I:void 0,P="Array"==t&&R.entries||O;if(P&&(S=l(P.call(new e)),S!==Object.prototype&&S.next&&(c(S,E,!0),r||"function"==typeof S[d]||s(S,d,m))),A&&O&&O.name!==v&&(x=!0,I=function(){return O.call(this)}),r&&!b||!h&&!x&&R[d]||s(R,d,I),a[t]=I,a[E]=m,_)if(w={values:A?I:C(v),keys:y?I:C(p),entries:k},b)for(T in w)T in R||o(R,T,w[T]);else i(i.P+i.F*(h||x),t,w);return w}},e5fa:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},e853:function(e,t,n){var r=n("d3f4"),i=n("1169"),o=n("2b4c")("species");e.exports=function(e){var t;return i(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&(t=t[o],null===t&&(t=void 0))),void 0===t?Array:t}},ec5b:function(e,t,n){n("e341");var r=n("a7d3").Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},f159:function(e,t,n){var r=n("7d8a"),i=n("1b55")("iterator"),o=n("b22a");e.exports=n("a7d3").getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},f1ae:function(e,t,n){"use strict";var r=n("86cc"),i=n("4630");e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},f2fe:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},f3e2:function(e,t,n){"use strict";var r=n("5ca1"),i=n("0a49")(0),o=n("2f21")([].forEach,!0);r(r.P+r.F*!o,"Array",{forEach:function(e){return i(this,e,arguments[1])}})},f568:function(e,t,n){var r=n("3adc"),i=n("0f89"),o=n("7633");e.exports=n("7d95")?Object.defineProperties:function(e,t){i(e);var n,s=o(t),a=s.length,u=0;while(a>u)r.f(e,n=s[u++],t[n]);return e}},f605:function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},f845:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},fa54:function(e,t,n){"use strict";var r=n("b3e7"),i=n("245b"),o=n("b22a"),s=n("6a9b");e.exports=n("e4a9")(Array,"Array",(function(e,t){this._t=s(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},fab2:function(e,t,n){var r=n("7726").document;e.exports=r&&r.documentElement},fb15:function(e,t,n){"use strict";if(n.r(t),n.d(t,"install",(function(){return s["b"]})),"undefined"!==typeof window){var r=window.document.currentScript,i=n("8875");r=i(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:i});var o=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}var s=n("b635");t["default"]=s["a"]},fdef:function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},ff0c:function(e,t,n){var r=n("43c8"),i=n("0185"),o=n("5d8f")("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}}})["default"]}))},fb2c:function(e,t,n){"use strict";var r=n("74e8");r("Uint32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},fc1b:function(e,t,n){"use strict";var r=n("f7485"),i=n("82e3"),o=Math.abs,s=2220446049250313e-31;e.exports=function(e,t,n,a){var u=+e,c=o(u),l=r(u);if(c<a)return l*i(c/a/t)*a*t;var d=(1+t/s)*c,h=d-(d-c);return h>n||h!==h?l*(1/0):l*h}},fc6a:function(e,t,n){"use strict";var r=n("44ad"),i=n("1d80");e.exports=function(e){return r(i(e))}},fce3:function(e,t,n){"use strict";var r=n("d039"),i=n("cfe9"),o=i.RegExp;e.exports=r((function(){var e=o(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},fdbc:function(e,t,n){"use strict";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){"use strict";var r=n("04f8");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}})["default"]}));