0,r=e?arguments[0]:void 0;return new h(function(i,a){var s=o(e?n(t.next,t.iterator,r):n(t.next,t.iterator));y(s,i,a,t.iterator,!0)})},return:function(){var t=g(this).iterator,e=arguments.length>0,r=e?arguments[0]:void 0;return new h(function(i,s){var c=a(t,"return");if(void 0===c)return i(p(r,!0));var u=o(e?n(c,t,r):n(c,t));y(u,i,s,t)})},throw:function(){var t=g(this).iterator,e=arguments.length>0,r=e?arguments[0]:void 0;return new h(function(i,s){var c=a(t,"throw");if(void 0===c){try{u(t,"normal")}catch(t){return s(t)}return s(new TypeError("The iterator does not provide a throw method"))}var l=o(e?n(c,t,r):n(c,t));y(l,i,s,t,!0)})}}),t.exports=m},20772(t,e,r){"use strict";var n=r(69565),o=r(28551),i=r(97751),a=r(55966);t.exports=function(t,e,r,s){try{var c=a(t,"return");if(c)return i("Promise").resolve(n(c,t)).then(function(t){try{e!==s&&o(t)}catch(t){return void s(t)}e(r)},function(t){e===s?e(r):s(t)})}catch(t){return s(e===s?r:t)}e(r)}},36639(t,e,r){"use strict";var n=r(69565),o=r(79306),i=r(28551),a=r(20034),s=r(96837),c=r(97751),u=r(97040),l=r(34527),f=r(1767),p=r(20772),h=function(t){var e=0===t,r=1===t,h=2===t,d=3===t;return function(t,v,g){i(t);var y=void 0!==v;!y&&e||o(v);var m=f(t),A=c("Promise"),b=m.iterator,w=m.next,x=0;return new A(function(t,o){var c=function(t){p(b,o,t,o)},f=function(){try{try{s(x)}catch(t){return c(t)}A.resolve(i(n(w,b))).then(function(n){try{if(i(n).done)e?(l(g,x),t(g)):t(!d&&(h||void 0));else{var s=n.value;try{if(y){var m=x++,w=v(s,m),C=function(n){if(r)f();else if(h)n?f():p(b,t,!1,o);else if(e)try{u(g,m,n),f()}catch(t){c(t)}else n?p(b,t,d||s,o):f()};a(w)?A.resolve(w).then(C,c):C(w)}else u(g,x++,s),f()}catch(t){c(t)}}}catch(t){o(t)}},o)}catch(t){o(t)}};f()})}};t.exports={toArray:h(0),forEach:h(1),every:h(2),some:h(3),find:h(4)}},53982(t,e,r){"use strict";var n,o,i=r(44576),a=r(77629),s=r(94901),c=r(2360),u=r(42787),l=r(36840),f=r(78227),p=r(96395),h="USE_FUNCTION_CONSTRUCTOR",d=f("asyncIterator"),v=i.AsyncIterator,g=a.AsyncIteratorPrototype;if(g)n=g;else if(s(v))n=v.prototype;else if(a[h]||i[h])try{o=u(u(u(Function("return async function*(){}()")()))),u(o)===Object.prototype&&(n=o)}catch(t){}n?p&&(n=c(n)):n={},s(n[d])||l(n,d,function(){return this}),t.exports=n},92804(t){"use strict";var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=e+"+/",n=e+"-_",o=function(t){for(var e={},r=0;r<64;r++)e[t.charAt(r)]=r;return e};t.exports={i2c:r,c2i:o(r),i2cUrl:n,c2iUrl:o(n)}},96319(t,e,r){"use strict";var n=r(28551),o=r(9539);t.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(e){o(t,"throw",e)}}},84428(t,e,r){"use strict";var n=r(78227)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[n]=function(){return this},Array.from(a,function(){throw 2})}catch(t){}t.exports=function(t,e){try{if(!e&&!o)return!1}catch(t){return!1}var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},t(i)}catch(t){}return r}},22195(t,e,r){"use strict";var n=r(79504),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},36955(t,e,r){"use strict";var n=r(92140),o=r(94901),i=r(22195),a=r(78227)("toStringTag"),s=Object,c="Arguments"===i(function(){return arguments}());t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=s(t),a))?r:c?i(e):"Object"===(n=i(e))&&o(e.callee)?"Arguments":n}},86938(t,e,r){"use strict";var n=r(2360),o=r(62106),i=r(56279),a=r(76080),s=r(90679),c=r(64117),u=r(72652),l=r(51088),f=r(62529),p=r(87633),h=r(43724),d=r(3451).fastKey,v=r(91181),g=v.set,y=v.getterFor;t.exports={getConstructor:function(t,e,r,l){var f=t(function(t,o){s(t,p),g(t,{type:e,index:n(null),first:null,last:null,size:0}),h||(t.size=0),c(o)||u(o,t[l],{that:t,AS_ENTRIES:r})}),p=f.prototype,v=y(e),m=function(t,e,r){var n,o,i=v(t),a=A(t,e);return a?a.value=r:(i.last=a={index:o=d(e,!0),key:e,value:r,previous:n=i.last,next:null,removed:!1},i.first||(i.first=a),n&&(n.next=a),h?i.size++:t.size++,"F"!==o&&(i.index[o]=a)),t},A=function(t,e){var r,n=v(t),o=d(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key===e)return r};return i(p,{clear:function(){for(var t=v(this),e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=null),e=e.next;t.first=t.last=null,t.index=n(null),h?t.size=0:this.size=0},delete:function(t){var e=this,r=v(e),n=A(e,t);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first===n&&(r.first=o),r.last===n&&(r.last=i),h?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=v(this),n=a(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!A(this,t)}}),i(p,r?{get:function(t){var e=A(this,t);return e&&e.value},set:function(t,e){return m(this,0===t?0:t,e)}}:{add:function(t){return m(this,t=0===t?0:t,t)}}),h&&o(p,"size",{configurable:!0,get:function(){return v(this).size}}),f},setStrong:function(t,e,r){var n=e+" Iterator",o=y(e),i=y(n);l(t,e,function(t,e){g(this,{type:n,target:t,state:o(t),kind:e,last:null})},function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?f("keys"===e?r.key:"values"===e?r.value:[r.key,r.value],!1):(t.target=null,f(void 0,!0))},r?"entries":"values",!r,!0),p(e)}}},91625(t,e,r){"use strict";var n=r(79504),o=r(56279),i=r(3451).getWeakData,a=r(90679),s=r(28551),c=r(64117),u=r(20034),l=r(72652),f=r(59213),p=r(39297),h=r(91181),d=h.set,v=h.getterFor,g=f.find,y=f.findIndex,m=n([].splice),A=0,b=function(t){return t.frozen||(t.frozen=new w)},w=function(){this.entries=[]},x=function(t,e){return g(t.entries,function(t){return t[0]===e})};w.prototype={get:function(t){var e=x(this,t);if(e)return e[1]},has:function(t){return!!x(this,t)},set:function(t,e){var r=x(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=y(this.entries,function(e){return e[0]===t});return~e&&m(this.entries,e,1),!!~e}},t.exports={getConstructor:function(t,e,r,n){var f=t(function(t,o){a(t,h),d(t,{type:e,id:A++,frozen:null}),c(o)||l(o,t[n],{that:t,AS_ENTRIES:r})}),h=f.prototype,g=v(e),y=function(t,e,r){var n=g(t),o=i(s(e),!0);return!0===o?b(n).set(e,r):o[n.id]=r,t};return o(h,{delete:function(t){var e=g(this);if(!u(t))return!1;var r=i(t);return!0===r?b(e).delete(t):r&&p(r,e.id)&&delete r[e.id]},has:function(t){var e=g(this);if(!u(t))return!1;var r=i(t);return!0===r?b(e).has(t):r&&p(r,e.id)}}),o(h,r?{get:function(t){var e=g(this);if(u(t)){var r=i(t);if(!0===r)return b(e).get(t);if(r)return r[e.id]}},set:function(t,e){return y(this,t,e)}}:{add:function(t){return y(this,t,!0)}}),f}}},16468(t,e,r){"use strict";var n=r(46518),o=r(44576),i=r(79504),a=r(92796),s=r(36840),c=r(3451),u=r(72652),l=r(90679),f=r(94901),p=r(64117),h=r(20034),d=r(79039),v=r(84428),g=r(10687),y=r(23167);t.exports=function(t,e,r){var m=-1!==t.indexOf("Map"),A=-1!==t.indexOf("Weak"),b=m?"set":"add",w=o[t],x=w&&w.prototype,C=w,_={},E=function(t){var e=i(x[t]);s(x,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(A&&!h(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return A&&!h(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(A&&!h(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this})};if(a(t,!f(w)||!(A||x.forEach&&!d(function(){(new w).entries().next()}))))C=r.getConstructor(e,t,m,b),c.enable();else if(a(t,!0)){var S=new C,k=S[b](A?{}:-0,1)!==S,O=d(function(){S.has(1)}),T=v(function(t){new w(t)}),I=!A&&d(function(){for(var t=new w,e=5;e--;)t[b](e,e);return!t.has(-0)});T||((C=e(function(t,e){l(t,x);var r=y(new w,t,C);return p(e)||u(e,r[b],{that:r,AS_ENTRIES:m}),r})).prototype=x,x.constructor=C),(O||I)&&(E("delete"),E("has"),m&&E("get")),(I||k)&&E(b),A&&x.clear&&delete x.clear}return _[t]=C,n({global:!0,constructor:!0,forced:C!==w},_),g(C,t),A||r.setStrong(C,t,m),C}},77740(t,e,r){"use strict";var n=r(39297),o=r(35031),i=r(77347),a=r(24913);t.exports=function(t,e,r){for(var s=o(e),c=a.f,u=i.f,l=0;l0;)p[m++]=255&u,u/=256,h-=8;return p[m-1]|=128*y,p},unpack:function(t,e){var r,o=t.length,i=8*o-e-1,a=(1<>1,c=i-7,u=o-1,l=t[u--],f=127&l;for(l>>=7;c>0;)f=256*f+t[u--],c-=8;for(r=f&(1<<-c)-1,f>>=-c,c+=e;c>0;)r=256*r+t[u--],c-=8;if(0===f)f=1-s;else{if(f===a)return r?NaN:l?-1/0:1/0;r+=n(2,e),f-=s}return(l?-1:1)*r*n(2,f-e)}}},47055(t,e,r){"use strict";var n=r(79504),o=r(79039),i=r(22195),a=Object,s=n("".split);t.exports=o(function(){return!a("z").propertyIsEnumerable(0)})?function(t){return"String"===i(t)?s(t,""):a(t)}:a},23167(t,e,r){"use strict";var n=r(94901),o=r(20034),i=r(52967);t.exports=function(t,e,r){var a,s;return i&&n(a=e.constructor)&&a!==r&&o(s=a.prototype)&&s!==r.prototype&&i(t,s),t}},33706(t,e,r){"use strict";var n=r(79504),o=r(94901),i=r(77629),a=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource},77584(t,e,r){"use strict";var n=r(20034),o=r(66699);t.exports=function(t,e){n(e)&&"cause"in e&&o(t,"cause",e.cause)}},3451(t,e,r){"use strict";var n=r(46518),o=r(79504),i=r(30421),a=r(20034),s=r(39297),c=r(24913).f,u=r(38480),l=r(10298),f=r(34124),p=r(33392),h=r(92744),d=!1,v=p("meta"),g=0,y=function(t){c(t,v,{value:{objectID:"O"+g++,weakData:{}}})},m=t.exports={enable:function(){m.enable=function(){},d=!0;var t=u.f,e=o([].splice),r={};r[v]=1,t(r).length&&(u.f=function(r){for(var n=t(r),o=0,i=n.length;om;m++)if((b=I(t[m]))&&u(v,b))return b;return new d(!1)}g=l(t,y)}for(w=E?t.next:g.next;!(x=o(w,g)).done;){var R=x.value;try{b=I(R)}catch(t){if(!g)throw t;p(g,"throw",t)}if("object"==typeof b&&b&&u(v,b))return b}return new d(!1)}},91385(t,e,r){"use strict";var n=r(9539);t.exports=function(t,e,r){for(var o=t.length-1;o>=0;o--)if(void 0!==t[o])try{r=n(t[o].iterator,e,r)}catch(t){e="throw",r=t}if("throw"===e)throw r;return r}},9539(t,e,r){"use strict";var n=r(69565),o=r(28551),i=r(55966);t.exports=function(t,e,r){var a,s;o(t);try{if(!(a=i(t,"return"))){if("throw"===e)throw r;return r}a=n(a,t)}catch(t){s=!0,a=t}if("throw"===e)throw r;if(s)throw a;return o(a),r}},33994(t,e,r){"use strict";var n=r(57657).IteratorPrototype,o=r(2360),i=r(6980),a=r(10687),s=r(26269),c=function(){return this};t.exports=function(t,e,r,u){var l=e+" Iterator";return t.prototype=o(n,{next:i(+!u,r)}),a(t,l,!1,!0),s[l]=c,t}},19462(t,e,r){"use strict";var n=r(69565),o=r(2360),i=r(66699),a=r(56279),s=r(78227),c=r(91181),u=r(55966),l=r(57657).IteratorPrototype,f=r(62529),p=r(9539),h=r(91385),d=s("toStringTag"),v="IteratorHelper",g="WrapForValidIterator",y="normal",m="throw",A=c.set,b=function(t){var e=c.getterFor(t?g:v);return a(o(l),{next:function(){var r=e(this);if(t)return r.nextHandler();if(r.done)return f(void 0,!0);try{var n=r.nextHandler();return r.returnHandlerResult?n:f(n,r.done)}catch(t){throw r.done=!0,t}},return:function(){var r=e(this),o=r.iterator,i=r.done;if(r.done=!0,t){var a=u(o,"return");return a?n(a,o):f(void 0,!0)}if(i)return f(void 0,!0);if(r.inner)try{p(r.inner.iterator,y)}catch(t){return p(o,m,t)}if(r.openIters)try{h(r.openIters,y)}catch(t){if(o)return p(o,m,t);throw t}return o&&p(o,y),f(void 0,!0)}})},w=b(!0),x=b(!1);i(x,d,"Iterator Helper"),t.exports=function(t,e,r){var n=function(n,o){o?(o.iterator=n.iterator,o.next=n.next):o=n,o.type=e?g:v,o.returnHandlerResult=!!r,o.nextHandler=t,o.counter=0,o.done=!1,A(this,o)};return n.prototype=e?w:x,n}},51088(t,e,r){"use strict";var n=r(46518),o=r(69565),i=r(96395),a=r(10350),s=r(94901),c=r(33994),u=r(42787),l=r(52967),f=r(10687),p=r(66699),h=r(36840),d=r(78227),v=r(26269),g=r(57657),y=a.PROPER,m=a.CONFIGURABLE,A=g.IteratorPrototype,b=g.BUGGY_SAFARI_ITERATORS,w=d("iterator"),x="keys",C="values",_="entries",E=function(){return this};t.exports=function(t,e,r,a,d,g,S){c(r,e,a);var k,O,T,I=function(t){if(t===d&&P)return P;if(!b&&t&&t in M)return M[t];switch(t){case x:case C:case _:return function(){return new r(this,t)}}return function(){return new r(this)}},R=e+" Iterator",j=!1,M=t.prototype,N=M[w]||M["@@iterator"]||d&&M[d],P=!b&&N||I(d),L="Array"===e&&M.entries||N;if(L&&(k=u(L.call(new t)))!==Object.prototype&&k.next&&(i||u(k)===A||(l?l(k,A):s(k[w])||h(k,w,E)),f(k,R,!0,!0),i&&(v[R]=E)),y&&d===C&&N&&N.name!==C&&(!i&&m?p(M,"name",C):(j=!0,P=function(){return o(N,this)})),d)if(O={values:I(C),keys:g?P:I(x),entries:I(_)},S)for(T in O)(b||j||!(T in M))&&h(M,T,O[T]);else n({target:e,proto:!0,forced:b||j},O);return i&&!S||M[w]===P||h(M,w,P,{name:d}),v[e]=P,O}},30684(t){"use strict";t.exports=function(t,e){var r="function"==typeof Iterator&&Iterator.prototype[t];if(r)try{r.call({next:null},e).next()}catch(t){return!0}}},84549(t,e,r){"use strict";var n=r(44576);t.exports=function(t,e){var r=n.Iterator,o=r&&r.prototype,i=o&&o[t],a=!1;if(i)try{i.call({next:function(){return{done:!0}},return:function(){a=!0}},-1)}catch(t){t instanceof e||(a=!1)}if(!a)return i}},57657(t,e,r){"use strict";var n,o,i,a=r(79039),s=r(94901),c=r(20034),u=r(2360),l=r(42787),f=r(36840),p=r(78227),h=r(96395),d=p("iterator"),v=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(n=o):v=!0),!c(n)||a(function(){var t={};return n[d].call(t)!==t})?n={}:h&&(n=u(n)),s(n[d])||f(n,d,function(){return this}),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:v}},26269(t){"use strict";t.exports={}},26198(t,e,r){"use strict";var n=r(18014);t.exports=function(t){return n(t.length)}},50283(t,e,r){"use strict";var n=r(79504),o=r(79039),i=r(94901),a=r(39297),s=r(43724),c=r(10350).CONFIGURABLE,u=r(33706),l=r(91181),f=l.enforce,p=l.get,h=String,d=Object.defineProperty,v=n("".slice),g=n("".replace),y=n([].join),m=s&&!o(function(){return 8!==d(function(){},"length",{value:8}).length}),A=String(String).split("String"),b=t.exports=function(t,e,r){"Symbol("===v(h(e),0,7)&&(e="["+g(h(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!a(t,"name")||c&&t.name!==e)&&(s?d(t,"name",{value:e,configurable:!0}):t.name=e),m&&r&&a(r,"arity")&&t.length!==r.arity&&d(t,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?s&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=f(t);return a(n,"source")||(n.source=y(A,"string"==typeof e?e:"")),t};Function.prototype.toString=b(function(){return i(this)&&p(this).source||u(this)},"toString")},72248(t,e,r){"use strict";var n=r(79504),o=Map.prototype;t.exports={Map,set:n(o.set),get:n(o.get),has:n(o.has),remove:n(o.delete),proto:o}},53250(t){"use strict";var e=Math.expm1,r=Math.exp;t.exports=!e||e(10)>22025.465794806718||e(10)<22025.465794806718||-2e-17!==e(-2e-17)?function(t){var e=+t;return 0===e?e:e>-1e-6&&e<1e-6?e+e*e/2:r(e)-1}:e},33164(t,e,r){"use strict";var n=r(77782),o=r(53602),i=Math.abs;t.exports=function(t,e,r,a){var s=+t,c=i(s),u=n(s);if(cr||f!=f?u*(1/0):u*f}},15617(t,e,r){"use strict";var n=r(33164);t.exports=Math.fround||function(t){return n(t,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}},49340(t){"use strict";var e=Math.log,r=Math.LOG10E;t.exports=Math.log10||function(t){return e(t)*r}},7740(t){"use strict";var e=Math.log;t.exports=Math.log1p||function(t){var r=+t;return r>-1e-8&&r<1e-8?r-r*r/2:e(1+r)}},67787(t){"use strict";var e=Math.log,r=Math.LN2;t.exports=Math.log2||function(t){return e(t)/r}},53602(t){"use strict";var e=4503599627370496;t.exports=function(t){return t+e-e}},77782(t){"use strict";t.exports=Math.sign||function(t){var e=+t;return 0===e||e!=e?e:e<0?-1:1}},80741(t){"use strict";var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},91955(t,e,r){"use strict";var n,o,i,a,s,c=r(44576),u=r(93389),l=r(76080),f=r(59225).set,p=r(18265),h=r(89544),d=r(44265),v=r(7860),g=r(38574),y=c.MutationObserver||c.WebKitMutationObserver,m=c.document,A=c.process,b=c.Promise,w=u("queueMicrotask");if(!w){var x=new p,C=function(){var t,e;for(g&&(t=A.domain)&&t.exit();e=x.get();)try{e()}catch(t){throw x.head&&n(),t}t&&t.enter()};h||g||v||!y||!m?!d&&b&&b.resolve?((a=b.resolve(void 0)).constructor=b,s=l(a.then,a),n=function(){s(C)}):g?n=function(){A.nextTick(C)}:(f=l(f,c),n=function(){f(C)}):(o=!0,i=m.createTextNode(""),new y(C).observe(i,{characterData:!0}),n=function(){i.data=o=!o}),w=function(t){x.head||n(),x.add(t)}}t.exports=w},27819(t,e,r){"use strict";var n=r(79039);t.exports=!n(function(){var t="9007199254740993",e=JSON.rawJSON(t);return!JSON.isRawJSON(e)||JSON.stringify(e)!==t})},36043(t,e,r){"use strict";var n=r(79306),o=TypeError,i=function(t){var e,r;this.promise=new t(function(t,n){if(void 0!==e||void 0!==r)throw new o("Bad Promise constructor");e=t,r=n}),this.resolve=n(e),this.reject=n(r)};t.exports.f=function(t){return new i(t)}},32603(t,e,r){"use strict";var n=r(655);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:n(t)}},24149(t){"use strict";var e=RangeError;t.exports=function(t){if(t==t)return t;throw new e("NaN is not allowed")}},60511(t,e,r){"use strict";var n=r(60788),o=TypeError;t.exports=function(t){if(n(t))throw new o("The method doesn't accept regular expressions");return t}},50360(t,e,r){"use strict";var n=r(44576).isFinite;t.exports=Number.isFinite||function(t){return"number"==typeof t&&n(t)}},33904(t,e,r){"use strict";var n=r(44576),o=r(79039),i=r(79504),a=r(655),s=r(43802).trim,c=r(47452),u=i("".charAt),l=n.parseFloat,f=n.Symbol,p=f&&f.iterator,h=1/l(c+"-0")!=-1/0||p&&!o(function(){l(Object(p))});t.exports=h?function(t){var e=s(a(t)),r=l(e);return 0===r&&"-"===u(e,0)?-0:r}:l},52703(t,e,r){"use strict";var n=r(44576),o=r(79039),i=r(79504),a=r(655),s=r(43802).trim,c=r(47452),u=n.parseInt,l=n.Symbol,f=l&&l.iterator,p=/^[+-]?0x/i,h=i(p.exec),d=8!==u(c+"08")||22!==u(c+"0x16")||f&&!o(function(){u(Object(f))});t.exports=d?function(t,e){var r=s(a(t));return u(r,e>>>0||(h(p,r)?16:10))}:u},44213(t,e,r){"use strict";var n=r(43724),o=r(79504),i=r(69565),a=r(79039),s=r(71072),c=r(33717),u=r(48773),l=r(48981),f=r(47055),p=Object.assign,h=Object.defineProperty,d=o([].concat);t.exports=!p||a(function(){if(n&&1!==p({b:1},p(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol("assign detection"),o="abcdefghijklmnopqrst";return t[r]=7,o.split("").forEach(function(t){e[t]=t}),7!==p({},t)[r]||s(p({},e)).join("")!==o})?function(t,e){for(var r=l(t),o=arguments.length,a=1,p=c.f,h=u.f;o>a;)for(var v,g=f(arguments[a++]),y=p?d(s(g),p(g)):s(g),m=y.length,A=0;m>A;)v=y[A++],n&&!i(h,g,v)||(r[v]=g[v]);return r}:p},2360(t,e,r){"use strict";var n,o=r(28551),i=r(96801),a=r(88727),s=r(30421),c=r(20397),u=r(4055),l=r(66119),f="prototype",p="script",h=l("IE_PROTO"),d=function(){},v=function(t){return"<"+p+">"+t+""+p+">"},g=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;y="undefined"!=typeof document?document.domain&&n?g(n):(e=u("iframe"),r="java"+p+":",e.style.display="none",c.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):g(n);for(var o=a.length;o--;)delete y[f][a[o]];return y()};s[h]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(d[f]=o(t),r=new d,d[f]=null,r[h]=t):r=y(),void 0===e?r:i.f(r,e)}},96801(t,e,r){"use strict";var n=r(43724),o=r(48686),i=r(24913),a=r(28551),s=r(25397),c=r(71072);e.f=n&&!o?Object.defineProperties:function(t,e){a(t);for(var r,n=s(e),o=c(e),u=o.length,l=0;u>l;)i.f(t,r=o[l++],n[r]);return t}},24913(t,e,r){"use strict";var n=r(43724),o=r(35917),i=r(48686),a=r(28551),s=r(56969),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",p="configurable",h="writable";e.f=n?i?function(t,e,r){if(a(t),e=s(e),a(r),"function"==typeof t&&"prototype"===e&&"value"in r&&h in r&&!r[h]){var n=l(t,e);n&&n[h]&&(t[e]=r.value,r={configurable:p in r?r[p]:n[p],enumerable:f in r?r[f]:n[f],writable:!1})}return u(t,e,r)}:u:function(t,e,r){if(a(t),e=s(e),a(r),o)try{return u(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},77347(t,e,r){"use strict";var n=r(43724),o=r(69565),i=r(48773),a=r(6980),s=r(25397),c=r(56969),u=r(39297),l=r(35917),f=Object.getOwnPropertyDescriptor;e.f=n?f:function(t,e){if(t=s(t),e=c(e),l)try{return f(t,e)}catch(t){}if(u(t,e))return a(!o(i.f,t,e),t[e])}},10298(t,e,r){"use strict";var n=r(22195),o=r(25397),i=r(38480).f,a=r(67680),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"Window"===n(t)?function(t){try{return i(t)}catch(t){return a(s)}}(t):i(o(t))}},38480(t,e,r){"use strict";var n=r(61828),o=r(88727).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},33717(t,e){"use strict";e.f=Object.getOwnPropertySymbols},42787(t,e,r){"use strict";var n=r(39297),o=r(94901),i=r(48981),a=r(66119),s=r(12211),c=a("IE_PROTO"),u=Object,l=u.prototype;t.exports=s?u.getPrototypeOf:function(t){var e=i(t);if(n(e,c))return e[c];var r=e.constructor;return o(r)&&e instanceof r?r.prototype:e instanceof u?l:null}},34124(t,e,r){"use strict";var n=r(79039),o=r(20034),i=r(22195),a=r(15652),s=Object.isExtensible,c=n(function(){s(1)});t.exports=c||a?function(t){return!!o(t)&&(!a||"ArrayBuffer"!==i(t))&&(!s||s(t))}:s},1625(t,e,r){"use strict";var n=r(79504);t.exports=n({}.isPrototypeOf)},61828(t,e,r){"use strict";var n=r(79504),o=r(39297),i=r(25397),a=r(19617).indexOf,s=r(30421),c=n([].push);t.exports=function(t,e){var r,n=i(t),u=0,l=[];for(r in n)!o(s,r)&&o(n,r)&&c(l,r);for(;e.length>u;)o(n,r=e[u++])&&(~a(l,r)||c(l,r));return l}},71072(t,e,r){"use strict";var n=r(61828),o=r(88727);t.exports=Object.keys||function(t){return n(t,o)}},48773(t,e){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);e.f=o?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},42551(t,e,r){"use strict";var n=r(96395),o=r(44576),i=r(79039),a=r(3607);t.exports=n||!i(function(){if(!(a&&a<535)){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete o[t]}})},52967(t,e,r){"use strict";var n=r(46706),o=r(20034),i=r(67750),a=r(73506);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=n(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return i(r),a(n),o(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0)},32357(t,e,r){"use strict";var n=r(43724),o=r(79039),i=r(79504),a=r(42787),s=r(71072),c=r(25397),u=i(r(48773).f),l=i([].push),f=n&&o(function(){var t=Object.create(null);return t[2]=2,!u(t,2)}),p=function(t){return function(e){for(var r,o=c(e),i=s(o),p=f&&null===a(o),h=i.length,d=0,v=[];h>d;)r=i[d++],n&&!(p?r in o:u(o,r))||l(v,t?[r,o[r]]:o[r]);return v}};t.exports={entries:p(!0),values:p(!1)}},53179(t,e,r){"use strict";var n=r(92140),o=r(36955);t.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},84270(t,e,r){"use strict";var n=r(69565),o=r(94901),i=r(20034),a=TypeError;t.exports=function(t,e){var r,s;if("string"===e&&o(r=t.toString)&&!i(s=n(r,t)))return s;if(o(r=t.valueOf)&&!i(s=n(r,t)))return s;if("string"!==e&&o(r=t.toString)&&!i(s=n(r,t)))return s;throw new a("Can't convert object to primitive value")}},35031(t,e,r){"use strict";var n=r(97751),o=r(79504),i=r(38480),a=r(33717),s=r(28551),c=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(s(t)),r=a.f;return r?c(e,r(t)):e}},616(t,e,r){"use strict";var n=r(79504),o=r(39297),i=SyntaxError,a=parseInt,s=String.fromCharCode,c=n("".charAt),u=n("".slice),l=n(/./.exec),f={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},p=/^[\da-f]{4}$/i,h=/^[\u0000-\u001F]$/;t.exports=function(t,e){for(var r=!0,n="";e=3;return function(e,r,n,o){var i=!Oe(e)&&ht(e),a=(i||e).length,s=t>0?0:a-1;for(o||(n=e[i?i[s]:s],s+=t);s>=0&&s=0}const cr=R(function(t,e,r){var n,o;return $(e)?o=e:(e=Gt(e),n=e.slice(0,-1),e=e[e.length-1]),Ze(t,function(t){var i=o;if(!i){if(n&&n.length&&(t=$t(t,n)),null==t)return;i=t[e]}return null==i?i:i.apply(t,r)})});function ur(t,e){return Ze(t,Qt(e))}function lr(t,e){return nr(t,Xt(e))}function fr(t,e,r){var n,o,i=-1/0,a=-1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var s=0,c=(t=Oe(t)?t:Mt(t)).length;sv.value.find(t=>t.teamId===g.value)?.displayName);async function m(t){p.value=""===t?(0,Yr.t)("core","Loading your contacts …"):(0,Yr.t)("core","Looking for {term} …",{term:t}),d.value=!1;try{const{data:e}=await u.Ay.post((0,l.Jv)("/contactsmenu/contacts"),{filter:t,teamId:"$_all_$"!==g.value?g.value:void 0});f.value=e.contacts,s.value=e.contactsAppEnabled,p.value=void 0}catch(e){jn.error("could not load contacts",{error:e,searchTerm:t}),d.value=!0}}(0,Xr.sV)(async()=>{const t=e.getItem("core:contacts:team");if(t&&(g.value=JSON.parse(t)),0===Nn.length)try{const{data:t}=await u.Ay.get((0,l.Jv)("/contactsmenu/teams"));Nn.push(...t)}catch(t){jn.error("could not load user teams",{error:t})}v.value=[...Nn]}),(0,Xr.wB)(g,()=>{e.setItem("core:contacts:team",JSON.stringify(g.value)),m(h.value)});const A=(0,tn.A)(function(){m(h.value)},500);function b(){(0,Xr.dY)(()=>{i.value?.focus(),i.value?.select()})}return{__sfc:!0,userTeams:Nn,storage:e,user:r,contactsAppURL:n,contactsAppMgmtURL:o,contactsMenuInput:i,actions:a,contactsAppEnabled:s,contacts:f,loadingText:p,hasError:d,searchTerm:h,teams:v,selectedTeam:g,selectedTeamName:y,onOpened:async function(){await m("")},getContacts:m,onInputDebounced:A,onReset:function(){h.value="",f.value=[],b()},focusInput:b,mdiAccountGroupOutline:Qr.dgQ,mdiContacts:Qr.aB4,mdiMagnify:Qr.U4M,t:Yr.t,NcActionButton:en.A,NcActions:rn.A,NcButton:nn.A,NcEmptyContent:on.A,NcHeaderMenu:an.A,NcIconSvgWrapper:sn.A,NcLoadingIcon:cn.A,NcTextField:un.A,ContactMenuEntry:In}}}),Ln=Pn;var Dn=n(32351),Bn={};Bn.styleTagTransform=En(),Bn.setAttributes=xn(),Bn.insert=bn().bind(null,"head"),Bn.domAPI=mn(),Bn.insertStyleElement=_n(),gn()(Dn.A,Bn),Dn.A&&Dn.A.locals&&Dn.A.locals;const Un=(0,Tn.A)(Ln,function(){var t=this,e=t._self._c,r=t._self._setupProxy;return e(r.NcHeaderMenu,{staticClass:"contactsmenu",attrs:{id:"contactsmenu","aria-label":r.t("core","Search contacts"),"exclude-click-outside-selectors":".v-popper__popper"},on:{open:r.onOpened},scopedSlots:t._u([{key:"trigger",fn:function(){return[e(r.NcIconSvgWrapper,{staticClass:"contactsmenu__trigger-icon",attrs:{path:r.mdiContacts}})]},proxy:!0}])},[t._v(" "),e("div",{staticClass:"contactsmenu__menu"},[e("div",{staticClass:"contactsmenu__menu__search-container"},[e("div",{staticClass:"contactsmenu__menu__input-wrapper"},[e(r.NcActions,{attrs:{"force-menu":"","aria-label":r.t("core","Filter by team"),variant:"tertiary"},scopedSlots:t._u([{key:"icon",fn:function(){return[e(r.NcIconSvgWrapper,{attrs:{path:r.mdiAccountGroupOutline}})]},proxy:!0},{key:"default",fn:function(){return[e(r.NcActionButton,{attrs:{modelValue:r.selectedTeam,value:"$_all_$",type:"radio"},on:{"update:modelValue":function(t){r.selectedTeam=t},"update:model-value":function(t){r.selectedTeam=t}}},[t._v("\n\t\t\t\t\t\t\t"+t._s(r.t("core","All teams"))+"\n\t\t\t\t\t\t")]),t._v(" "),t._l(r.teams,function(n){return e(r.NcActionButton,{key:n.teamId,attrs:{modelValue:r.selectedTeam,value:n.teamId,type:"radio"},on:{"update:modelValue":function(t){r.selectedTeam=t},"update:model-value":function(t){r.selectedTeam=t}}},[t._v("\n\t\t\t\t\t\t\t"+t._s(n.displayName)+"\n\t\t\t\t\t\t")])})]},proxy:!0}])}),t._v(" "),e(r.NcTextField,{ref:"contactsMenuInput",staticClass:"contactsmenu__menu__search",attrs:{id:"contactsmenu__menu__search","trailing-button-icon":"close",label:r.selectedTeamName?r.t("core","Search contacts in team {team}",{team:r.selectedTeamName}):r.t("core","Search contacts …"),"trailing-button-label":r.t("core","Reset search"),"show-trailing-button":""!==r.searchTerm,type:"search"},on:{input:r.onInputDebounced,"trailing-button-click":r.onReset},model:{value:r.searchTerm,callback:function(t){r.searchTerm=t},expression:"searchTerm"}})],1),t._v(" "),t._l(r.actions,function(n){return e(r.NcButton,{key:n.id,staticClass:"contactsmenu__menu__action",attrs:{"aria-label":n.label,title:n.label,variant:"tertiary-no-background"},on:{click:n.onClick},scopedSlots:t._u([{key:"icon",fn:function(){return[e(r.NcIconSvgWrapper,{attrs:{svg:n.icon}})]},proxy:!0}],null,!0)})})],2),t._v(" "),r.hasError?e(r.NcEmptyContent,{attrs:{name:r.t("core","Could not load your contacts")},scopedSlots:t._u([{key:"icon",fn:function(){return[e(r.NcIconSvgWrapper,{attrs:{path:r.mdiMagnify}})]},proxy:!0}],null,!1,1853740774)}):r.loadingText?e(r.NcEmptyContent,{attrs:{name:r.loadingText},scopedSlots:t._u([{key:"icon",fn:function(){return[e(r.NcLoadingIcon)]},proxy:!0}])}):0===r.contacts.length?e(r.NcEmptyContent,{attrs:{name:r.t("core","No contacts found")},scopedSlots:t._u([{key:"icon",fn:function(){return[e(r.NcIconSvgWrapper,{attrs:{path:r.mdiMagnify}})]},proxy:!0}])}):e("div",{staticClass:"contactsmenu__menu__content"},[e("div",{attrs:{id:"contactsmenu-contacts"}},[e("ul",{attrs:{"aria-label":r.t("core","Contacts list")}},t._l(r.contacts,function(t){return e(r.ContactMenuEntry,{key:t.id,attrs:{contact:t}})}),1)]),t._v(" "),r.contactsAppEnabled?e("div",{staticClass:"contactsmenu__menu__content__footer"},[e(r.NcButton,{attrs:{variant:"tertiary",href:r.contactsAppURL}},[t._v("\n\t\t\t\t\t"+t._s(r.t("core","Show all contacts"))+"\n\t\t\t\t")])],1):r.user.isAdmin?e("div",{staticClass:"contactsmenu__menu__content__footer"},[e(r.NcButton,{attrs:{variant:"tertiary",href:r.contactsAppMgmtURL}},[t._v("\n\t\t\t\t\t"+t._s(r.t("core","Install the Contacts app"))+"\n\t\t\t\t")])],1):t._e()])],1)])},[],!1,null,"253ecd69",null).exports;class Fn{constructor(){(function(t,e,r){(e=function(t){var e=function(t){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r})(this,"_actions",void 0),this._actions=[]}get actions(){return this._actions}addAction(t){this._actions.push(t)}}var zn=n(61338),Hn=n(81222),Vn=n(54562);const qn={name:"DotsGridIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Wn=(0,Tn.A)(qn,function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon dots-grid-icon",attrs:{"aria-hidden":t.title?null:"true","aria-label":t.title,role:"img"},on:{click:function(e){return t.$emit("click",e)}}},"span",t.$attrs,!1),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M12 16C13.1 16 14 16.9 14 18S13.1 20 12 20 10 19.1 10 18 10.9 16 12 16M12 10C13.1 10 14 10.9 14 12S13.1 14 12 14 10 13.1 10 12 10.9 10 12 10M12 4C13.1 4 14 4.9 14 6S13.1 8 12 8 10 7.1 10 6 10.9 4 12 4M6 16C7.1 16 8 16.9 8 18S7.1 20 6 20 4 19.1 4 18 4.9 16 6 16M6 10C7.1 10 8 10.9 8 12S7.1 14 6 14 4 13.1 4 12 4.9 10 6 10M6 4C7.1 4 8 4.9 8 6S7.1 8 6 8 4 7.1 4 6 4.9 4 6 4M18 16C19.1 16 20 16.9 20 18S19.1 20 18 20 16 19.1 16 18 16.9 16 18 16M18 10C19.1 10 20 10.9 20 12S19.1 14 18 14 16 13.1 16 12 16.9 10 18 10M18 4C19.1 4 20 4.9 20 6S19.1 8 18 8 16 7.1 16 6 16.9 4 18 4Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])},[],!1,null,null,null).exports,Gn=(0,Xr.pM)({__name:"AppItem",props:{app:null,newTab:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},tabindex:{default:-1}},setup(t){const e=t,r=(0,Xr.EW)(()=>{if(e.app.unread)return(0,Yr.n)("core","{count} notification","{count} notifications",e.app.unread,{count:e.app.unread})});return{__sfc:!0,props:e,unreadLabel:r}}});var $n=n(3986),Yn={};Yn.styleTagTransform=En(),Yn.setAttributes=xn(),Yn.insert=bn().bind(null,"head"),Yn.domAPI=mn(),Yn.insertStyleElement=_n(),gn()($n.A,Yn),$n.A&&$n.A.locals&&$n.A.locals;const Kn=(0,Tn.A)(Gn,function(){var t=this,e=t._self._c,r=t._self._setupProxy;return e("a",{staticClass:"app-item",class:{"app-item--active":t.app.active,"app-item--outlined":t.outlined},attrs:{href:t.app.href,target:t.newTab?"_blank":void 0,rel:t.newTab?"noopener noreferrer":void 0,"aria-current":t.app.active?"page":void 0,tabindex:t.tabindex,title:t.app.name,role:"menuitem"}},[e("span",{staticClass:"app-item__circle"},[e("img",{staticClass:"app-item__icon",attrs:{src:t.app.icon,alt:"","aria-hidden":"true"}}),t._v(" "),t.app.unread?e("span",{staticClass:"app-item__unread",attrs:{"aria-hidden":"true"}}):t._e()]),t._v(" "),e("span",{staticClass:"app-item__label"},[t._v("\n\t\t"+t._s(t.app.name)+"\n\t\t"),t.app.unread?e("span",{staticClass:"hidden-visually"},[t._v(", "+t._s(r.unreadLabel))]):t._e()])])},[],!1,null,"4a459133",null).exports,Jn=(0,Xr.pM)({name:"AppMenu",components:{AppItem:Kn,IconDotsGrid:Wn,NcButton:nn.A,NcPopover:Vn.A},setup(){const t=(0,Xr.KR)(!1);return{t:Yr.t,n:Yr.n,opened:t}},data:()=>({appList:(0,Hn.C)("core","apps",[]),isAdmin:(0,c.HW)()?.isAdmin??!1,focusedIndex:0,openedFrom:null,moreAppsEntry:{id:"more-apps",active:!1,order:Number.MAX_SAFE_INTEGER,href:(0,l.Jv)("/settings/apps"),icon:(0,l.fg)("settings","img","apps.svg"),type:"link",name:(0,Yr.t)("core","More apps"),unread:0},popoverSkidding:(0,Yr.V8)()?82:-82}),computed:{currentApp(){return this.appList.find(t=>t.active)},openInNewTab(){return"dashboard"!==this.currentApp?.id},gridItems(){return this.isAdmin?[...this.appList,this.moreAppsEntry]:[...this.appList]}},watch:{opened(t){t&&(this.focusedIndex=this.activeGridIndex())}},mounted(){(0,zn.B1)("nextcloud:app-menu.refresh",this.setApps),this.focusedIndex=this.activeGridIndex(),this.$refs.popover.$on("after-hide",this.onPopoverAfterHide)},beforeUnmount(){(0,zn.al)("nextcloud:app-menu.refresh",this.setApps),this.$refs.popover?.$off("after-hide",this.onPopoverAfterHide)},methods:{returnFocusTarget(){return"currentApp"===this.openedFrom?this.$el.querySelector(".app-menu__current-app"):this.$el.querySelector(".app-menu__waffle")},onPopoverAfterHide(){this.openedFrom=null},onTriggerClick(t){this.openedFrom=t,this.opened=!this.opened},setNavigationCounter(t,e){const r=this.appList.find(({app:e})=>e===t);r?r.unread=e:jn.warn(`Could not find app "${t}" for setting navigation count`)},setApps({apps:t}){this.appList=t,this.focusedIndex>=this.gridItems.length&&(this.focusedIndex=this.activeGridIndex())},activeGridIndex(){const t=this.gridItems.findIndex(t=>t.active);return-1===t?0:t},async onGridKeydown(t){if(t.ctrlKey||t.metaKey||t.altKey||t.shiftKey)return;if(0===this.gridItems.length)return;const e=this.gridItems.length,r=this.focusedIndex;let n=r;switch(t.key){case"ArrowRight":r%4!=3&&r+1