UNPKG

@stand/callback

Version:
2 lines (1 loc) 40.4 kB
!function(t,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):(t=t||self).StandCallback=r()}(this,(function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t,r){return t(r={exports:{}},r.exports),r.exports}var e="object",n=function(t){return t&&t.Math==Math&&t},o=n(typeof globalThis==e&&globalThis)||n(typeof window==e&&window)||n(typeof self==e&&self)||n(typeof t==e&&t)||Function("return this")(),i=function(t){try{return!!t()}catch(t){return!0}},u=!i((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),a={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,f={f:c&&!a.call({1:2},1)?function(t){var r=c(this,t);return!!r&&r.enumerable}:a},l=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},s={}.toString,v=function(t){return s.call(t).slice(8,-1)},p="".split,y=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==v(t)?p.call(t,""):Object(t)}:Object,h=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},d=function(t){return y(h(t))},g=function(t){return"object"==typeof t?null!==t:"function"==typeof t},b=function(t,r){if(!g(t))return t;var e,n;if(r&&"function"==typeof(e=t.toString)&&!g(n=e.call(t)))return n;if("function"==typeof(e=t.valueOf)&&!g(n=e.call(t)))return n;if(!r&&"function"==typeof(e=t.toString)&&!g(n=e.call(t)))return n;throw TypeError("Can't convert object to primitive value")},j={}.hasOwnProperty,O=function(t,r){return j.call(t,r)},_=o.document,m=g(_)&&g(_.createElement),w=function(t){return m?_.createElement(t):{}},S=!u&&!i((function(){return 7!=Object.defineProperty(w("div"),"a",{get:function(){return 7}}).a})),A=Object.getOwnPropertyDescriptor,P={f:u?A:function(t,r){if(t=d(t),r=b(r,!0),S)try{return A(t,r)}catch(t){}if(O(t,r))return l(!f.f.call(t,r),t[r])}},x=/#|\.prototype\./,T=function(t,r){var e=E[k(t)];return e==L||e!=I&&("function"==typeof r?i(r):!!r)},k=T.normalize=function(t){return String(t).replace(x,".").toLowerCase()},E=T.data={},I=T.NATIVE="N",L=T.POLYFILL="P",M=T,z={},C=function(t,r,e){if(function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function")}(t),void 0===r)return t;switch(e){case 0:return function(){return t.call(r)};case 1:return function(e){return t.call(r,e)};case 2:return function(e,n){return t.call(r,e,n)};case 3:return function(e,n,o){return t.call(r,e,n,o)}}return function(){return t.apply(r,arguments)}},D=function(t){if(!g(t))throw TypeError(String(t)+" is not an object");return t},F=Object.defineProperty,N={f:u?F:function(t,r,e){if(D(t),r=b(r,!0),D(e),S)try{return F(t,r,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},R=u?function(t,r,e){return N.f(t,r,l(1,e))}:function(t,r,e){return t[r]=e,t},G=P.f,B=function(t){var r=function(r,e,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,e)}return new t(r,e,n)}return t.apply(this,arguments)};return r.prototype=t.prototype,r},V=function(t,r){var e,n,i,u,a,c,f,l,s=t.target,v=t.global,p=t.stat,y=t.proto,h=v?o:p?o[s]:(o[s]||{}).prototype,d=v?z:z[s]||(z[s]={}),g=d.prototype;for(i in r)e=!M(v?i:s+(p?".":"#")+i,t.forced)&&h&&O(h,i),a=d[i],e&&(c=t.noTargetGet?(l=G(h,i))&&l.value:h[i]),u=e&&c?c:r[i],e&&typeof a==typeof u||(f=t.bind&&e?C(u,o):t.wrap&&e?B(u):y&&"function"==typeof u?C(Function.call,u):u,(t.sham||u&&u.sham||a&&a.sham)&&R(f,"sham",!0),d[i]=f,y&&(O(z,n=s+"Prototype")||R(z,n,{}),z[n][i]=u,t.real&&g&&!g[i]&&R(g,i,u)))};V({target:"Object",stat:!0,forced:!u,sham:!u},{defineProperty:N.f});var $=r((function(t){var r=z.Object,e=t.exports=function(t,e,n){return r.defineProperty(t,e,n)};r.defineProperty.sham&&(e.sham=!0)})),U=$,W=Math.ceil,q=Math.floor,H=function(t){return isNaN(t=+t)?0:(t>0?q:W)(t)},J=Math.min,Y=function(t){return t>0?J(H(t),9007199254740991):0},K=Math.max,Q=Math.min,X=function(t){return function(r,e,n){var o,i=d(r),u=Y(i.length),a=function(t,r){var e=H(t);return e<0?K(e+r,0):Q(e,r)}(n,u);if(t&&e!=e){for(;u>a;)if((o=i[a++])!=o)return!0}else for(;u>a;a++)if((t||a in i)&&i[a]===e)return t||a||0;return!t&&-1}},Z={includes:X(!0),indexOf:X(!1)},tt={},rt=Z.indexOf,et=function(t,r){var e,n=d(t),o=0,i=[];for(e in n)!O(tt,e)&&O(n,e)&&i.push(e);for(;r.length>o;)O(n,e=r[o++])&&(~rt(i,e)||i.push(e));return i},nt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ot=Object.keys||function(t){return et(t,nt)},it=u?Object.defineProperties:function(t,r){D(t);for(var e,n=ot(r),o=n.length,i=0;o>i;)N.f(t,e=n[i++],r[e]);return t};V({target:"Object",stat:!0,forced:!u,sham:!u},{defineProperties:it});var ut=r((function(t){var r=z.Object,e=t.exports=function(t,e){return r.defineProperties(t,e)};r.defineProperties.sham&&(e.sham=!0)})),at=function(t){return"function"==typeof t?t:void 0},ct=function(t,r){return arguments.length<2?at(z[t])||at(o[t]):z[t]&&z[t][r]||o[t]&&o[t][r]},ft=nt.concat("length","prototype"),lt={f:Object.getOwnPropertyNames||function(t){return et(t,ft)}},st={f:Object.getOwnPropertySymbols},vt=ct("Reflect","ownKeys")||function(t){var r=lt.f(D(t)),e=st.f;return e?r.concat(e(t)):r},pt=function(t,r,e){var n=b(r);n in t?N.f(t,n,l(0,e)):t[n]=e};V({target:"Object",stat:!0,sham:!u},{getOwnPropertyDescriptors:function(t){for(var r,e,n=d(t),o=P.f,i=vt(n),u={},a=0;i.length>a;)void 0!==(e=o(n,r=i[a++]))&&pt(u,r,e);return u}});var yt,ht,dt,gt=z.Object.getOwnPropertyDescriptors,bt={},jt=r((function(t){var r=o["__core-js_shared__"]||function(t,r){try{R(o,t,r)}catch(e){o[t]=r}return r}("__core-js_shared__",{});(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.2.1",mode:"pure",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),Ot=jt("native-function-to-string",Function.toString),_t=o.WeakMap,mt="function"==typeof _t&&/native code/.test(Ot.call(_t)),wt=0,St=Math.random(),At=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++wt+St).toString(36)},Pt=jt("keys"),xt=function(t){return Pt[t]||(Pt[t]=At(t))},Tt=o.WeakMap;if(mt){var kt=new Tt,Et=kt.get,It=kt.has,Lt=kt.set;yt=function(t,r){return Lt.call(kt,t,r),r},ht=function(t){return Et.call(kt,t)||{}},dt=function(t){return It.call(kt,t)}}else{var Mt=xt("state");tt[Mt]=!0,yt=function(t,r){return R(t,Mt,r),r},ht=function(t){return O(t,Mt)?t[Mt]:{}},dt=function(t){return O(t,Mt)}}var zt,Ct,Dt,Ft={set:yt,get:ht,has:dt,enforce:function(t){return dt(t)?ht(t):yt(t,{})},getterFor:function(t){return function(r){var e;if(!g(r)||(e=ht(r)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return e}}},Nt=function(t){return Object(h(t))},Rt=!i((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Gt=xt("IE_PROTO"),Bt=Object.prototype,Vt=Rt?Object.getPrototypeOf:function(t){return t=Nt(t),O(t,Gt)?t[Gt]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Bt:null},$t=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())})),Ut=o.Symbol,Wt=jt("wks"),qt=function(t){return Wt[t]||(Wt[t]=$t&&Ut[t]||($t?Ut:At)("Symbol."+t))},Ht=(qt("iterator"),!1);[].keys&&("next"in(Dt=[].keys())?(Ct=Vt(Vt(Dt)))!==Object.prototype&&(zt=Ct):Ht=!0),null==zt&&(zt={});var Jt={IteratorPrototype:zt,BUGGY_SAFARI_ITERATORS:Ht},Yt=ct("document","documentElement"),Kt=xt("IE_PROTO"),Qt=function(){},Xt=function(){var t,r=w("iframe"),e=nt.length;for(r.style.display="none",Yt.appendChild(r),r.src=String("javascript:"),(t=r.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),Xt=t.F;e--;)delete Xt.prototype[nt[e]];return Xt()},Zt=Object.create||function(t,r){var e;return null!==t?(Qt.prototype=D(t),e=new Qt,Qt.prototype=null,e[Kt]=t):e=Xt(),void 0===r?e:it(e,r)};tt[Kt]=!0;var tr=qt("toStringTag"),rr="Arguments"==v(function(){return arguments}()),er=function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(r=Object(t),tr))?e:rr?v(r):"Object"==(n=v(r))&&"function"==typeof r.callee?"Arguments":n},nr={};nr[qt("toStringTag")]="z";var or="[object z]"!==String(nr)?function(){return"[object "+er(this)+"]"}:nr.toString,ir=N.f,ur=qt("toStringTag"),ar=or!=={}.toString,cr=function(t,r,e,n){if(t){var o=e?t:t.prototype;O(o,ur)||ir(o,ur,{configurable:!0,value:r}),n&&ar&&R(o,"toString",or)}},fr=Jt.IteratorPrototype,lr=function(){return this},sr=(Object.setPrototypeOf||"__proto__"in{}&&function(){var t,r=!1,e={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(e,[]),r=e instanceof Array}catch(t){}}(),function(t,r,e,n){n&&n.enumerable?t[r]=e:R(t,r,e)}),vr=Jt.IteratorPrototype,pr=Jt.BUGGY_SAFARI_ITERATORS,yr=qt("iterator"),hr=function(){return this},dr=function(t,r,e,n,o,i,u){!function(t,r,e){var n=r+" Iterator";t.prototype=Zt(fr,{next:l(1,e)}),cr(t,n,!1,!0),bt[n]=lr}(e,r,n);var a,c,f,s=function(t){if(t===o&&d)return d;if(!pr&&t in y)return y[t];switch(t){case"keys":case"values":case"entries":return function(){return new e(this,t)}}return function(){return new e(this)}},v=r+" Iterator",p=!1,y=t.prototype,h=y[yr]||y["@@iterator"]||o&&y[o],d=!pr&&h||s(o),g="Array"==r&&y.entries||h;if(g&&(a=Vt(g.call(new t)),vr!==Object.prototype&&a.next&&(cr(a,v,!0,!0),bt[v]=hr)),"values"==o&&h&&"values"!==h.name&&(p=!0,d=function(){return h.call(this)}),u&&y[yr]!==d&&R(y,yr,d),bt[r]=d,o)if(c={values:s("values"),keys:i?d:s("keys"),entries:s("entries")},u)for(f in c)!pr&&!p&&f in y||sr(y,f,c[f]);else V({target:r,proto:!0,forced:pr||p},c);return c},gr=Ft.set,br=Ft.getterFor("Array Iterator");dr(Array,"Array",(function(t,r){gr(this,{type:"Array Iterator",target:d(t),index:0,kind:r})}),(function(){var t=br(this),r=t.target,e=t.kind,n=t.index++;return!r||n>=r.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==e?{value:n,done:!1}:"values"==e?{value:r[n],done:!1}:{value:[n,r[n]],done:!1}}),"values");bt.Arguments=bt.Array;var jr=qt("toStringTag");for(var Or in{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}){var _r=o[Or],mr=_r&&_r.prototype;mr&&!mr[jr]&&R(mr,jr,Or),bt[Or]=bt.Array}var wr=Array.isArray||function(t){return"Array"==v(t)},Sr=qt("species"),Ar=function(t,r){var e;return wr(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!wr(e.prototype)?g(e)&&null===(e=e[Sr])&&(e=void 0):e=void 0),new(void 0===e?Array:e)(0===r?0:r)},Pr=[].push,xr=function(t){var r=1==t,e=2==t,n=3==t,o=4==t,i=6==t,u=5==t||i;return function(a,c,f,l){for(var s,v,p=Nt(a),h=y(p),d=C(c,f,3),g=Y(h.length),b=0,j=l||Ar,O=r?j(a,g):e?j(a,0):void 0;g>b;b++)if((u||b in h)&&(v=d(s=h[b],b,p),t))if(r)O[b]=v;else if(v)switch(t){case 3:return!0;case 5:return s;case 6:return b;case 2:Pr.call(O,s)}else if(o)return!1;return i?-1:n||o?o:O}},Tr={forEach:xr(0),map:xr(1),filter:xr(2),some:xr(3),every:xr(4),find:xr(5),findIndex:xr(6)},kr=function(t,r){var e=[][t];return!e||!i((function(){e.call(null,r||function(){throw 1},1)}))},Er=Tr.forEach,Ir=kr("forEach")?function(t){return Er(this,t,arguments.length>1?arguments[1]:void 0)}:[].forEach;V({target:"Array",proto:!0,forced:[].forEach!=Ir},{forEach:Ir});var Lr=function(t){return z[t+"Prototype"]},Mr=Lr("Array").forEach,zr=Array.prototype,Cr={DOMTokenList:!0,NodeList:!0},Dr=function(t){var r=t.forEach;return t===zr||t instanceof Array&&r===zr.forEach||Cr.hasOwnProperty(er(t))?Mr:r},Fr=P.f,Nr=i((function(){Fr(1)}));V({target:"Object",stat:!0,forced:!u||Nr,sham:!u},{getOwnPropertyDescriptor:function(t,r){return Fr(d(t),r)}});var Rr=r((function(t){var r=z.Object,e=t.exports=function(t,e){return r.getOwnPropertyDescriptor(t,e)};r.getOwnPropertyDescriptor.sham&&(e.sham=!0)})),Gr=lt.f,Br={}.toString,Vr="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],$r={f:function(t){return Vr&&"[object Window]"==Br.call(t)?function(t){try{return Gr(t)}catch(t){return Vr.slice()}}(t):Gr(d(t))}},Ur={f:qt},Wr=N.f,qr=function(t){var r=z.Symbol||(z.Symbol={});O(r,t)||Wr(r,t,{value:Ur.f(t)})},Hr=Tr.forEach,Jr=xt("hidden"),Yr=qt("toPrimitive"),Kr=Ft.set,Qr=Ft.getterFor("Symbol"),Xr=Object.prototype,Zr=o.Symbol,te=o.JSON,re=te&&te.stringify,ee=P.f,ne=N.f,oe=$r.f,ie=f.f,ue=jt("symbols"),ae=jt("op-symbols"),ce=jt("string-to-symbol-registry"),fe=jt("symbol-to-string-registry"),le=jt("wks"),se=o.QObject,ve=!se||!se.prototype||!se.prototype.findChild,pe=u&&i((function(){return 7!=Zt(ne({},"a",{get:function(){return ne(this,"a",{value:7}).a}})).a}))?function(t,r,e){var n=ee(Xr,r);n&&delete Xr[r],ne(t,r,e),n&&t!==Xr&&ne(Xr,r,n)}:ne,ye=function(t,r){var e=ue[t]=Zt(Zr.prototype);return Kr(e,{type:"Symbol",tag:t,description:r}),u||(e.description=r),e},he=$t&&"symbol"==typeof Zr.iterator?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Zr},de=function(t,r,e){t===Xr&&de(ae,r,e),D(t);var n=b(r,!0);return D(e),O(ue,n)?(e.enumerable?(O(t,Jr)&&t[Jr][n]&&(t[Jr][n]=!1),e=Zt(e,{enumerable:l(0,!1)})):(O(t,Jr)||ne(t,Jr,l(1,{})),t[Jr][n]=!0),pe(t,n,e)):ne(t,n,e)},ge=function(t,r){D(t);var e=d(r),n=ot(e).concat(_e(e));return Hr(n,(function(r){u&&!be.call(e,r)||de(t,r,e[r])})),t},be=function(t){var r=b(t,!0),e=ie.call(this,r);return!(this===Xr&&O(ue,r)&&!O(ae,r))&&(!(e||!O(this,r)||!O(ue,r)||O(this,Jr)&&this[Jr][r])||e)},je=function(t,r){var e=d(t),n=b(r,!0);if(e!==Xr||!O(ue,n)||O(ae,n)){var o=ee(e,n);return!o||!O(ue,n)||O(e,Jr)&&e[Jr][n]||(o.enumerable=!0),o}},Oe=function(t){var r=oe(d(t)),e=[];return Hr(r,(function(t){O(ue,t)||O(tt,t)||e.push(t)})),e},_e=function(t){var r=t===Xr,e=oe(r?ae:d(t)),n=[];return Hr(e,(function(t){!O(ue,t)||r&&!O(Xr,t)||n.push(ue[t])})),n};$t||(sr((Zr=function(){if(this instanceof Zr)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,r=At(t),e=function(t){this===Xr&&e.call(ae,t),O(this,Jr)&&O(this[Jr],r)&&(this[Jr][r]=!1),pe(this,r,l(1,t))};return u&&ve&&pe(Xr,r,{configurable:!0,set:e}),ye(r,t)}).prototype,"toString",(function(){return Qr(this).tag})),f.f=be,N.f=de,P.f=je,lt.f=$r.f=Oe,st.f=_e,u&&ne(Zr.prototype,"description",{configurable:!0,get:function(){return Qr(this).description}}),Ur.f=function(t){return ye(qt(t),t)}),V({global:!0,wrap:!0,forced:!$t,sham:!$t},{Symbol:Zr}),Hr(ot(le),(function(t){qr(t)})),V({target:"Symbol",stat:!0,forced:!$t},{for:function(t){var r=String(t);if(O(ce,r))return ce[r];var e=Zr(r);return ce[r]=e,fe[e]=r,e},keyFor:function(t){if(!he(t))throw TypeError(t+" is not a symbol");if(O(fe,t))return fe[t]},useSetter:function(){ve=!0},useSimple:function(){ve=!1}}),V({target:"Object",stat:!0,forced:!$t,sham:!u},{create:function(t,r){return void 0===r?Zt(t):ge(Zt(t),r)},defineProperty:de,defineProperties:ge,getOwnPropertyDescriptor:je}),V({target:"Object",stat:!0,forced:!$t},{getOwnPropertyNames:Oe,getOwnPropertySymbols:_e}),V({target:"Object",stat:!0,forced:i((function(){st.f(1)}))},{getOwnPropertySymbols:function(t){return st.f(Nt(t))}}),te&&V({target:"JSON",stat:!0,forced:!$t||i((function(){var t=Zr();return"[null]"!=re([t])||"{}"!=re({a:t})||"{}"!=re(Object(t))}))},{stringify:function(t){for(var r,e,n=[t],o=1;arguments.length>o;)n.push(arguments[o++]);if(e=r=n[1],(g(r)||void 0!==t)&&!he(t))return wr(r)||(r=function(t,r){if("function"==typeof e&&(r=e.call(this,t,r)),!he(r))return r}),n[1]=r,re.apply(te,n)}}),Zr.prototype[Yr]||R(Zr.prototype,Yr,Zr.prototype.valueOf),cr(Zr,"Symbol"),tt[Jr]=!0;var me=z.Object.getOwnPropertySymbols,we=me,Se=i((function(){ot(1)}));V({target:"Object",stat:!0,forced:Se},{keys:function(t){return ot(Nt(t))}});var Ae=z.Object.keys,Pe=Ae;V({target:"Array",stat:!0},{isArray:wr});var xe=z.Array.isArray;var Te=function(t){if(xe(t))return t},ke=function(t){return function(r,e){var n,o,i=String(h(r)),u=H(e),a=i.length;return u<0||u>=a?t?"":void 0:(n=i.charCodeAt(u))<55296||n>56319||u+1===a||(o=i.charCodeAt(u+1))<56320||o>57343?t?i.charAt(u):n:t?i.slice(u,u+2):o-56320+(n-55296<<10)+65536}},Ee={codeAt:ke(!1),charAt:ke(!0)}.charAt,Ie=Ft.set,Le=Ft.getterFor("String Iterator");dr(String,"String",(function(t){Ie(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,r=Le(this),e=r.string,n=r.index;return n>=e.length?{value:void 0,done:!0}:(t=Ee(e,n),r.index+=t.length,{value:t,done:!1})}));var Me=qt("iterator"),ze=function(t){var r=function(t){if(null!=t)return t[Me]||t["@@iterator"]||bt[er(t)]}(t);if("function"!=typeof r)throw TypeError(String(t)+" is not iterable");return D(r.call(t))},Ce=qt("iterator"),De=function(t){var r=Object(t);return void 0!==r[Ce]||"@@iterator"in r||bt.hasOwnProperty(er(r))};var Fe=function(t,r){if(De(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t)){var e=[],n=!0,o=!1,i=void 0;try{for(var u,a=ze(t);!(n=(u=a.next()).done)&&(e.push(u.value),!r||e.length!==r);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return e}};var Ne=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")};var Re=function(t,r){return Te(t)||Fe(t,r)||Ne()},Ge=qt("species"),Be=function(t){return!i((function(){var r=[];return(r.constructor={})[Ge]=function(){return{foo:1}},1!==r[t](Boolean).foo}))},Ve=Tr.filter;V({target:"Array",proto:!0,forced:!Be("filter")},{filter:function(t){return Ve(this,t,arguments.length>1?arguments[1]:void 0)}});var $e=Lr("Array").filter,Ue=Array.prototype,We=function(t){var r=t.filter;return t===Ue||t instanceof Array&&r===Ue.filter?$e:r},qe=$;var He=function(t,r,e){return r in t?qe(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t},Je=Z.indexOf,Ye=[].indexOf,Ke=!!Ye&&1/[1].indexOf(1,-0)<0,Qe=kr("indexOf");V({target:"Array",proto:!0,forced:Ke||Qe},{indexOf:function(t){return Ke?Ye.apply(this,arguments)||0:Je(this,t,arguments.length>1?arguments[1]:void 0)}});var Xe=Lr("Array").indexOf,Ze=Array.prototype,tn=function(t){var r=t.indexOf;return t===Ze||t instanceof Array&&r===Ze.indexOf?Xe:r},rn=me,en=Ae;var nn=function(t,r){if(null==t)return{};var e,n,o={},i=en(t);for(n=0;n<i.length;n++)e=i[n],tn(r).call(r,e)>=0||(o[e]=t[e]);return o};var on=function(t,r){if(null==t)return{};var e,n,o=nn(t,r);if(rn){var i=rn(t);for(n=0;n<i.length;n++)e=i[n],tn(r).call(r,e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o},un="\t\n\v\f\r                 \u2028\u2029\ufeff",an="["+un+"]",cn=RegExp("^"+an+an+"*"),fn=RegExp(an+an+"*$"),ln=function(t){return function(r){var e=String(h(r));return 1&t&&(e=e.replace(cn,"")),2&t&&(e=e.replace(fn,"")),e}},sn={start:ln(1),end:ln(2),trim:ln(3)}.trim,vn=o.parseInt,pn=/^[+-]?0[Xx]/,yn=8!==vn(un+"08")||22!==vn(un+"0x16")?function(t,r){var e=sn(String(t));return vn(e,r>>>0||(pn.test(e)?16:10))}:vn;V({global:!0,forced:parseInt!=yn},{parseInt:yn});var hn=z.parseInt;var dn=function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")};function gn(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),qe(t,n.key,n)}}var bn=function(t,r,e){return r&&gn(t.prototype,r),e&&gn(t,e),t},jn=qt("isConcatSpreadable"),On=!i((function(){var t=[];return t[jn]=!1,t.concat()[0]!==t})),_n=Be("concat"),mn=function(t){if(!g(t))return!1;var r=t[jn];return void 0!==r?!!r:wr(t)};V({target:"Array",proto:!0,forced:!On||!_n},{concat:function(t){var r,e,n,o,i,u=Nt(this),a=Ar(u,0),c=0;for(r=-1,n=arguments.length;r<n;r++)if(i=-1===r?u:arguments[r],mn(i)){if(c+(o=Y(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(e=0;e<o;e++,c++)e in i&&pt(a,c,i[e])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");pt(a,c++,i)}return a.length=c,a}}),qr("asyncIterator"),qr("hasInstance"),qr("isConcatSpreadable"),qr("iterator"),qr("match"),qr("matchAll"),qr("replace"),qr("search"),qr("species"),qr("split"),qr("toPrimitive"),qr("toStringTag"),qr("unscopables"),cr(Math,"Math",!0),cr(o.JSON,"JSON",!0);var wn=z.Symbol;var Sn=function(t,r){for(var e=-1,n=r.length,o=t.length;++e<n;)t[o+e]=r[e];return t},An="object"==typeof t&&t&&t.Object===Object&&t,Pn="object"==typeof self&&self&&self.Object===Object&&self,xn=An||Pn||Function("return this")(),Tn=xn.Symbol,kn=Object.prototype,En=kn.hasOwnProperty,In=kn.toString,Ln=Tn?Tn.toStringTag:void 0;var Mn=function(t){var r=En.call(t,Ln),e=t[Ln];try{t[Ln]=void 0;var n=!0}catch(t){}var o=In.call(t);return n&&(r?t[Ln]=e:delete t[Ln]),o},zn=Object.prototype.toString;var Cn=function(t){return zn.call(t)},Dn="[object Null]",Fn="[object Undefined]",Nn=Tn?Tn.toStringTag:void 0;var Rn=function(t){return null==t?void 0===t?Fn:Dn:Nn&&Nn in Object(t)?Mn(t):Cn(t)};var Gn=function(t){return null!=t&&"object"==typeof t},Bn="[object Arguments]";var Vn=function(t){return Gn(t)&&Rn(t)==Bn},$n=Object.prototype,Un=$n.hasOwnProperty,Wn=$n.propertyIsEnumerable,qn=Vn(function(){return arguments}())?Vn:function(t){return Gn(t)&&Un.call(t,"callee")&&!Wn.call(t,"callee")},Hn=Array.isArray,Jn=Tn?Tn.isConcatSpreadable:void 0;var Yn=function(t){return Hn(t)||qn(t)||!!(Jn&&t&&t[Jn])};var Kn=function t(r,e,n,o,i){var u=-1,a=r.length;for(n||(n=Yn),i||(i=[]);++u<a;){var c=r[u];e>0&&n(c)?e>1?t(c,e-1,n,o,i):Sn(i,c):o||(i[i.length]=c)}return i};var Qn=function(t,r){for(var e=-1,n=null==t?0:t.length,o=Array(n);++e<n;)o[e]=r(t[e],e,t);return o};var Xn=function(){this.__data__=[],this.size=0};var Zn=function(t,r){return t===r||t!=t&&r!=r};var to=function(t,r){for(var e=t.length;e--;)if(Zn(t[e][0],r))return e;return-1},ro=Array.prototype.splice;var eo=function(t){var r=this.__data__,e=to(r,t);return!(e<0)&&(e==r.length-1?r.pop():ro.call(r,e,1),--this.size,!0)};var no=function(t){var r=this.__data__,e=to(r,t);return e<0?void 0:r[e][1]};var oo=function(t){return to(this.__data__,t)>-1};var io=function(t,r){var e=this.__data__,n=to(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this};function uo(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}uo.prototype.clear=Xn,uo.prototype.delete=eo,uo.prototype.get=no,uo.prototype.has=oo,uo.prototype.set=io;var ao=uo;var co=function(){this.__data__=new ao,this.size=0};var fo=function(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e};var lo=function(t){return this.__data__.get(t)};var so=function(t){return this.__data__.has(t)};var vo=function(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)},po="[object AsyncFunction]",yo="[object Function]",ho="[object GeneratorFunction]",go="[object Proxy]";var bo=function(t){if(!vo(t))return!1;var r=Rn(t);return r==yo||r==ho||r==po||r==go},jo=xn["__core-js_shared__"],Oo=function(){var t=/[^.]+$/.exec(jo&&jo.keys&&jo.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();var _o=function(t){return!!Oo&&Oo in t},mo=Function.prototype.toString;var wo=function(t){if(null!=t){try{return mo.call(t)}catch(t){}try{return t+""}catch(t){}}return""},So=/^\[object .+?Constructor\]$/,Ao=Function.prototype,Po=Object.prototype,xo=Ao.toString,To=Po.hasOwnProperty,ko=RegExp("^"+xo.call(To).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Eo=function(t){return!(!vo(t)||_o(t))&&(bo(t)?ko:So).test(wo(t))};var Io=function(t,r){return null==t?void 0:t[r]};var Lo=function(t,r){var e=Io(t,r);return Eo(e)?e:void 0},Mo=Lo(xn,"Map"),zo=Lo(Object,"create");var Co=function(){this.__data__=zo?zo(null):{},this.size=0};var Do=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r},Fo="__lodash_hash_undefined__",No=Object.prototype.hasOwnProperty;var Ro=function(t){var r=this.__data__;if(zo){var e=r[t];return e===Fo?void 0:e}return No.call(r,t)?r[t]:void 0},Go=Object.prototype.hasOwnProperty;var Bo=function(t){var r=this.__data__;return zo?void 0!==r[t]:Go.call(r,t)},Vo="__lodash_hash_undefined__";var $o=function(t,r){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=zo&&void 0===r?Vo:r,this};function Uo(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}Uo.prototype.clear=Co,Uo.prototype.delete=Do,Uo.prototype.get=Ro,Uo.prototype.has=Bo,Uo.prototype.set=$o;var Wo=Uo;var qo=function(){this.size=0,this.__data__={hash:new Wo,map:new(Mo||ao),string:new Wo}};var Ho=function(t){var r=typeof t;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t};var Jo=function(t,r){var e=t.__data__;return Ho(r)?e["string"==typeof r?"string":"hash"]:e.map};var Yo=function(t){var r=Jo(this,t).delete(t);return this.size-=r?1:0,r};var Ko=function(t){return Jo(this,t).get(t)};var Qo=function(t){return Jo(this,t).has(t)};var Xo=function(t,r){var e=Jo(this,t),n=e.size;return e.set(t,r),this.size+=e.size==n?0:1,this};function Zo(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}Zo.prototype.clear=qo,Zo.prototype.delete=Yo,Zo.prototype.get=Ko,Zo.prototype.has=Qo,Zo.prototype.set=Xo;var ti=Zo,ri=200;var ei=function(t,r){var e=this.__data__;if(e instanceof ao){var n=e.__data__;if(!Mo||n.length<ri-1)return n.push([t,r]),this.size=++e.size,this;e=this.__data__=new ti(n)}return e.set(t,r),this.size=e.size,this};function ni(t){var r=this.__data__=new ao(t);this.size=r.size}ni.prototype.clear=co,ni.prototype.delete=fo,ni.prototype.get=lo,ni.prototype.has=so,ni.prototype.set=ei;var oi=ni,ii="__lodash_hash_undefined__";var ui=function(t){return this.__data__.set(t,ii),this};var ai=function(t){return this.__data__.has(t)};function ci(t){var r=-1,e=null==t?0:t.length;for(this.__data__=new ti;++r<e;)this.add(t[r])}ci.prototype.add=ci.prototype.push=ui,ci.prototype.has=ai;var fi=ci;var li=function(t,r){for(var e=-1,n=null==t?0:t.length;++e<n;)if(r(t[e],e,t))return!0;return!1};var si=function(t,r){return t.has(r)},vi=1,pi=2;var yi=function(t,r,e,n,o,i){var u=e&vi,a=t.length,c=r.length;if(a!=c&&!(u&&c>a))return!1;var f=i.get(t);if(f&&i.get(r))return f==r;var l=-1,s=!0,v=e&pi?new fi:void 0;for(i.set(t,r),i.set(r,t);++l<a;){var p=t[l],y=r[l];if(n)var h=u?n(y,p,l,r,t,i):n(p,y,l,t,r,i);if(void 0!==h){if(h)continue;s=!1;break}if(v){if(!li(r,(function(t,r){if(!si(v,r)&&(p===t||o(p,t,e,n,i)))return v.push(r)}))){s=!1;break}}else if(p!==y&&!o(p,y,e,n,i)){s=!1;break}}return i.delete(t),i.delete(r),s},hi=xn.Uint8Array;var di=function(t){var r=-1,e=Array(t.size);return t.forEach((function(t,n){e[++r]=[n,t]})),e};var gi=function(t){var r=-1,e=Array(t.size);return t.forEach((function(t){e[++r]=t})),e},bi=1,ji=2,Oi="[object Boolean]",_i="[object Date]",mi="[object Error]",wi="[object Map]",Si="[object Number]",Ai="[object RegExp]",Pi="[object Set]",xi="[object String]",Ti="[object Symbol]",ki="[object ArrayBuffer]",Ei="[object DataView]",Ii=Tn?Tn.prototype:void 0,Li=Ii?Ii.valueOf:void 0;var Mi=function(t,r,e,n,o,i,u){switch(e){case Ei:if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case ki:return!(t.byteLength!=r.byteLength||!i(new hi(t),new hi(r)));case Oi:case _i:case Si:return Zn(+t,+r);case mi:return t.name==r.name&&t.message==r.message;case Ai:case xi:return t==r+"";case wi:var a=di;case Pi:var c=n&bi;if(a||(a=gi),t.size!=r.size&&!c)return!1;var f=u.get(t);if(f)return f==r;n|=ji,u.set(t,r);var l=yi(a(t),a(r),n,o,i,u);return u.delete(t),l;case Ti:if(Li)return Li.call(t)==Li.call(r)}return!1};var zi=function(t,r,e){var n=r(t);return Hn(t)?n:Sn(n,e(t))};var Ci=function(t,r){for(var e=-1,n=null==t?0:t.length,o=0,i=[];++e<n;){var u=t[e];r(u,e,t)&&(i[o++]=u)}return i};var Di=function(){return[]},Fi=Object.prototype.propertyIsEnumerable,Ni=Object.getOwnPropertySymbols,Ri=Ni?function(t){return null==t?[]:(t=Object(t),Ci(Ni(t),(function(r){return Fi.call(t,r)})))}:Di;var Gi=function(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n};var Bi=function(){return!1},Vi=r((function(t,r){var e=r&&!r.nodeType&&r,n=e&&t&&!t.nodeType&&t,o=n&&n.exports===e?xn.Buffer:void 0,i=(o?o.isBuffer:void 0)||Bi;t.exports=i})),$i=9007199254740991,Ui=/^(?:0|[1-9]\d*)$/;var Wi=function(t,r){var e=typeof t;return!!(r=null==r?$i:r)&&("number"==e||"symbol"!=e&&Ui.test(t))&&t>-1&&t%1==0&&t<r},qi=9007199254740991;var Hi=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=qi},Ji={};Ji["[object Float32Array]"]=Ji["[object Float64Array]"]=Ji["[object Int8Array]"]=Ji["[object Int16Array]"]=Ji["[object Int32Array]"]=Ji["[object Uint8Array]"]=Ji["[object Uint8ClampedArray]"]=Ji["[object Uint16Array]"]=Ji["[object Uint32Array]"]=!0,Ji["[object Arguments]"]=Ji["[object Array]"]=Ji["[object ArrayBuffer]"]=Ji["[object Boolean]"]=Ji["[object DataView]"]=Ji["[object Date]"]=Ji["[object Error]"]=Ji["[object Function]"]=Ji["[object Map]"]=Ji["[object Number]"]=Ji["[object Object]"]=Ji["[object RegExp]"]=Ji["[object Set]"]=Ji["[object String]"]=Ji["[object WeakMap]"]=!1;var Yi=function(t){return Gn(t)&&Hi(t.length)&&!!Ji[Rn(t)]};var Ki=function(t){return function(r){return t(r)}},Qi=r((function(t,r){var e=r&&!r.nodeType&&r,n=e&&t&&!t.nodeType&&t,o=n&&n.exports===e&&An.process,i=function(){try{var t=n&&n.require&&n.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=i})),Xi=Qi&&Qi.isTypedArray,Zi=Xi?Ki(Xi):Yi,tu=Object.prototype.hasOwnProperty;var ru=function(t,r){var e=Hn(t),n=!e&&qn(t),o=!e&&!n&&Vi(t),i=!e&&!n&&!o&&Zi(t),u=e||n||o||i,a=u?Gi(t.length,String):[],c=a.length;for(var f in t)!r&&!tu.call(t,f)||u&&("length"==f||o&&("offset"==f||"parent"==f)||i&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||Wi(f,c))||a.push(f);return a},eu=Object.prototype;var nu=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||eu)};var ou=function(t,r){return function(e){return t(r(e))}}(Object.keys,Object),iu=Object.prototype.hasOwnProperty;var uu=function(t){if(!nu(t))return ou(t);var r=[];for(var e in Object(t))iu.call(t,e)&&"constructor"!=e&&r.push(e);return r};var au=function(t){return null!=t&&Hi(t.length)&&!bo(t)};var cu=function(t){return au(t)?ru(t):uu(t)};var fu=function(t){return zi(t,cu,Ri)},lu=1,su=Object.prototype.hasOwnProperty;var vu=function(t,r,e,n,o,i){var u=e&lu,a=fu(t),c=a.length;if(c!=fu(r).length&&!u)return!1;for(var f=c;f--;){var l=a[f];if(!(u?l in r:su.call(r,l)))return!1}var s=i.get(t);if(s&&i.get(r))return s==r;var v=!0;i.set(t,r),i.set(r,t);for(var p=u;++f<c;){var y=t[l=a[f]],h=r[l];if(n)var d=u?n(h,y,l,r,t,i):n(y,h,l,t,r,i);if(!(void 0===d?y===h||o(y,h,e,n,i):d)){v=!1;break}p||(p="constructor"==l)}if(v&&!p){var g=t.constructor,b=r.constructor;g!=b&&"constructor"in t&&"constructor"in r&&!("function"==typeof g&&g instanceof g&&"function"==typeof b&&b instanceof b)&&(v=!1)}return i.delete(t),i.delete(r),v},pu=Lo(xn,"DataView"),yu=Lo(xn,"Promise"),hu=Lo(xn,"Set"),du=Lo(xn,"WeakMap"),gu=wo(pu),bu=wo(Mo),ju=wo(yu),Ou=wo(hu),_u=wo(du),mu=Rn;(pu&&"[object DataView]"!=mu(new pu(new ArrayBuffer(1)))||Mo&&"[object Map]"!=mu(new Mo)||yu&&"[object Promise]"!=mu(yu.resolve())||hu&&"[object Set]"!=mu(new hu)||du&&"[object WeakMap]"!=mu(new du))&&(mu=function(t){var r=Rn(t),e="[object Object]"==r?t.constructor:void 0,n=e?wo(e):"";if(n)switch(n){case gu:return"[object DataView]";case bu:return"[object Map]";case ju:return"[object Promise]";case Ou:return"[object Set]";case _u:return"[object WeakMap]"}return r});var wu=mu,Su=1,Au="[object Arguments]",Pu="[object Array]",xu="[object Object]",Tu=Object.prototype.hasOwnProperty;var ku=function(t,r,e,n,o,i){var u=Hn(t),a=Hn(r),c=u?Pu:wu(t),f=a?Pu:wu(r),l=(c=c==Au?xu:c)==xu,s=(f=f==Au?xu:f)==xu,v=c==f;if(v&&Vi(t)){if(!Vi(r))return!1;u=!0,l=!1}if(v&&!l)return i||(i=new oi),u||Zi(t)?yi(t,r,e,n,o,i):Mi(t,r,c,e,n,o,i);if(!(e&Su)){var p=l&&Tu.call(t,"__wrapped__"),y=s&&Tu.call(r,"__wrapped__");if(p||y){var h=p?t.value():t,d=y?r.value():r;return i||(i=new oi),o(h,d,e,n,i)}}return!!v&&(i||(i=new oi),vu(t,r,e,n,o,i))};var Eu=function t(r,e,n,o,i){return r===e||(null==r||null==e||!Gn(r)&&!Gn(e)?r!=r&&e!=e:ku(r,e,n,o,t,i))},Iu=1,Lu=2;var Mu=function(t,r,e,n){var o=e.length,i=o,u=!n;if(null==t)return!i;for(t=Object(t);o--;){var a=e[o];if(u&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++o<i;){var c=(a=e[o])[0],f=t[c],l=a[1];if(u&&a[2]){if(void 0===f&&!(c in t))return!1}else{var s=new oi;if(n)var v=n(f,l,c,t,r,s);if(!(void 0===v?Eu(l,f,Iu|Lu,n,s):v))return!1}}return!0};var zu=function(t){return t==t&&!vo(t)};var Cu=function(t){for(var r=cu(t),e=r.length;e--;){var n=r[e],o=t[n];r[e]=[n,o,zu(o)]}return r};var Du=function(t,r){return function(e){return null!=e&&(e[t]===r&&(void 0!==r||t in Object(e)))}};var Fu=function(t){var r=Cu(t);return 1==r.length&&r[0][2]?Du(r[0][0],r[0][1]):function(e){return e===t||Mu(e,t,r)}},Nu="[object Symbol]";var Ru=function(t){return"symbol"==typeof t||Gn(t)&&Rn(t)==Nu},Gu=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bu=/^\w*$/;var Vu=function(t,r){if(Hn(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!Ru(t))||(Bu.test(t)||!Gu.test(t)||null!=r&&t in Object(r))},$u="Expected a function";function Uu(t,r){if("function"!=typeof t||null!=r&&"function"!=typeof r)throw new TypeError($u);var e=function(){var n=arguments,o=r?r.apply(this,n):n[0],i=e.cache;if(i.has(o))return i.get(o);var u=t.apply(this,n);return e.cache=i.set(o,u)||i,u};return e.cache=new(Uu.Cache||ti),e}Uu.Cache=ti;var Wu=Uu,qu=500;var Hu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ju=/\\(\\)?/g,Yu=function(t){var r=Wu(t,(function(t){return e.size===qu&&e.clear(),t})),e=r.cache;return r}((function(t){var r=[];return 46===t.charCodeAt(0)&&r.push(""),t.replace(Hu,(function(t,e,n,o){r.push(n?o.replace(Ju,"$1"):e||t)})),r})),Ku=1/0,Qu=Tn?Tn.prototype:void 0,Xu=Qu?Qu.toString:void 0;var Zu=function t(r){if("string"==typeof r)return r;if(Hn(r))return Qn(r,t)+"";if(Ru(r))return Xu?Xu.call(r):"";var e=r+"";return"0"==e&&1/r==-Ku?"-0":e};var ta=function(t){return null==t?"":Zu(t)};var ra=function(t,r){return Hn(t)?t:Vu(t,r)?[t]:Yu(ta(t))},ea=1/0;var na=function(t){if("string"==typeof t||Ru(t))return t;var r=t+"";return"0"==r&&1/t==-ea?"-0":r};var oa=function(t,r){for(var e=0,n=(r=ra(r,t)).length;null!=t&&e<n;)t=t[na(r[e++])];return e&&e==n?t:void 0};var ia=function(t,r,e){var n=null==t?void 0:oa(t,r);return void 0===n?e:n};var ua=function(t,r){return null!=t&&r in Object(t)};var aa=function(t,r,e){for(var n=-1,o=(r=ra(r,t)).length,i=!1;++n<o;){var u=na(r[n]);if(!(i=null!=t&&e(t,u)))break;t=t[u]}return i||++n!=o?i:!!(o=null==t?0:t.length)&&Hi(o)&&Wi(u,o)&&(Hn(t)||qn(t))};var ca=function(t,r){return null!=t&&aa(t,r,ua)},fa=1,la=2;var sa=function(t,r){return Vu(t)&&zu(r)?Du(na(t),r):function(e){var n=ia(e,t);return void 0===n&&n===r?ca(e,t):Eu(r,n,fa|la)}};var va=function(t){return t};var pa=function(t){return function(r){return null==r?void 0:r[t]}};var ya=function(t){return function(r){return oa(r,t)}};var ha=function(t){return Vu(t)?pa(na(t)):ya(t)};var da=function(t){return"function"==typeof t?t:null==t?va:"object"==typeof t?Hn(t)?sa(t[0],t[1]):Fu(t):ha(t)};var ga=function(t){return function(r,e,n){for(var o=-1,i=Object(r),u=n(r),a=u.length;a--;){var c=u[t?a:++o];if(!1===e(i[c],c,i))break}return r}}();var ba=function(t,r){return function(e,n){if(null==e)return e;if(!au(e))return t(e,n);for(var o=e.length,i=r?o:-1,u=Object(e);(r?i--:++i<o)&&!1!==n(u[i],i,u););return e}}((function(t,r){return t&&ga(t,r,cu)}));var ja=function(t,r){var e=-1,n=au(t)?Array(t.length):[];return ba(t,(function(t,o,i){n[++e]=r(t,o,i)})),n};var Oa=function(t,r){var e=t.length;for(t.sort(r);e--;)t[e]=t[e].value;return t};var _a=function(t,r){if(t!==r){var e=void 0!==t,n=null===t,o=t==t,i=Ru(t),u=void 0!==r,a=null===r,c=r==r,f=Ru(r);if(!a&&!f&&!i&&t>r||i&&u&&c&&!a&&!f||n&&u&&c||!e&&c||!o)return 1;if(!n&&!i&&!f&&t<r||f&&e&&o&&!n&&!i||a&&e&&o||!u&&o||!c)return-1}return 0};var ma=function(t,r,e){for(var n=-1,o=t.criteria,i=r.criteria,u=o.length,a=e.length;++n<u;){var c=_a(o[n],i[n]);if(c)return n>=a?c:c*("desc"==e[n]?-1:1)}return t.index-r.index};var wa=function(t,r,e){var n=-1;r=Qn(r.length?r:[va],Ki(da));var o=ja(t,(function(t,e,o){return{criteria:Qn(r,(function(r){return r(t)})),index:++n,value:t}}));return Oa(o,(function(t,r){return ma(t,r,e)}))};var Sa=function(t,r,e){switch(e.length){case 0:return t.call(r);case 1:return t.call(r,e[0]);case 2:return t.call(r,e[0],e[1]);case 3:return t.call(r,e[0],e[1],e[2])}return t.apply(r,e)},Aa=Math.max;var Pa=function(t,r,e){return r=Aa(void 0===r?t.length-1:r,0),function(){for(var n=arguments,o=-1,i=Aa(n.length-r,0),u=Array(i);++o<i;)u[o]=n[r+o];o=-1;for(var a=Array(r+1);++o<r;)a[o]=n[o];return a[r]=e(u),Sa(t,this,a)}};var xa=function(t){return function(){return t}},Ta=function(){try{var t=Lo(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),ka=Ta?function(t,r){return Ta(t,"toString",{configurable:!0,enumerable:!1,value:xa(r),writable:!0})}:va,Ea=800,Ia=16,La=Date.now;var Ma=function(t){var r=0,e=0;return function(){var n=La(),o=Ia-(n-e);if(e=n,o>0){if(++r>=Ea)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}(ka);var za=function(t,r,e){if(!vo(e))return!1;var n=typeof r;return!!("number"==n?au(e)&&Wi(r,e.length):"string"==n&&r in e)&&Zn(e[r],t)},Ca=function(t,r){return Ma(Pa(t,r,va),t+"")}((function(t,r){if(null==t)return[];var e=r.length;return e>1&&za(t,r[0],r[1])?r=[]:e>2&&za(r[0],r[1],r[2])&&(r=[r[0]]),wa(t,Kn(r,1),[])}));function Da(t,r){var e=Pe(t);if(we){var n=we(t);r&&(n=We(n).call(n,(function(r){return Rr(t,r).enumerable}))),e.push.apply(e,n)}return e}var Fa=wn("groups"),Na=wn("sort"),Ra=wn("items");return function(){function t(){dn(this,t),this[Ra]=[],this[Fa]={}}return bn(t,[{key:"configGroup",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;return this.groups[t]=[hn(r,10),hn(e,10)],this}},{key:"getGroupConfig",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=this.groups;return r[t]?r[t]:[1e3,1e3]}},{key:"add",value:function(t){var r=t.method,e=t.group,n=void 0===e?"default":e,o=t.extra,i=t.id,u=function(t){for(var r=1;r<arguments.length;r++){var e,n=null!=arguments[r]?arguments[r]:{};if(r%2)Dr(e=Da(n,!0)).call(e,(function(r){He(t,r,n[r])}));else if(gt)ut(t,gt(n));else{var o;Dr(o=Da(n)).call(o,(function(r){U(t,r,Rr(n,r))}))}}return t}({},on(t,["method","group","extra","id"]),{group:n,extra:o,id:i}),a=this.getGroupConfig(n);return u.extra?u.extra=hn(u.extra):0===u.extra||"0"===u.extra?u.extra=0:u.extra=a[1],u.method=r||function(){},this[Ra].push(u),this}},{key:"getAll",value:function(){return this[Na](this[Ra])}},{key:"getItems",value:function(t){var r;return We(r=this[Ra]).call(r,t)}},{key:"getById",value:function(t,r){var e,n=r?function(e){return e.group===r&&e.id===t}:function(r){return r.id===t};return We(e=this[Ra]).call(e,n)[0]}},{key:"getByGroup",value:function(t,r){var e,n=void 0===r?function(r){return r.group===t}:function(e){return e.group===t&&e.extra===hn(r,10)},o=We(e=this[Ra]).call(e,n);return this[Na](o)}},{key:"removeAll",value:function(){return this[Ra]=[],this}},{key:"removeItems",value:function(t){var r;return this[Ra]=We(r=this[Ra]).call(r,(function(r){return!t(r)})),this}},{key:"removeByGroup",value:function(t,r){var e,n=void 0===r?function(r){return r.group!==t}:function(e){return!(e.group===t&&e.extra===hn(r,10))};return this[Ra]=We(e=this[Ra]).call(e,n),this}},{key:"removeById",value:function(t,r){var e,n=r?function(e){return!(e.group===r&&e.id===t)}:function(r){return r.id!==t};return this[Ra]=We(e=this[Ra]).call(e,n),this}},{key:Na,value:function(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Ca(r,[function(r){var e=r.group,n=t.getGroupConfig(e);return Re(n,1)[0]},function(t){return t.extra}])}},{key:"groups",get:function(){return this[Fa]}}]),t}()}));