UNPKG

@seontechnologies/seon-javascript-sdk

Version:

SEON JavaScript SDK for collecting session and device data

1 lines 661 kB
!function(r,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(r="undefined"!=typeof globalThis?globalThis:r||self).seon=t()}(this,(function(){"use strict";function r(r,t){(null==t||t>r.length)&&(t=r.length);for(var n=0,e=Array(t);n<t;n++)e[n]=r[n];return e}function t(r,t,n,e,i,o,u){try{var a=r[o](u),v=a.value}catch(r){return void n(r)}a.done?t(v):Promise.resolve(v).then(e,i)}function n(r){return function(){var n=this,e=arguments;return new Promise((function(i,o){var u=r.apply(n,e);function a(r){t(u,i,o,a,v,"next",r)}function v(r){t(u,i,o,a,v,"throw",r)}a(void 0)}))}}function e(r,t,n){return t=v(t),function(r,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(void 0===r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(r)}(r,c()?Reflect.construct(t,n||[],v(r).constructor):t.apply(r,n))}function i(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function o(r,t,n){return t&&function(r,t){for(var n=0;n<t.length;n++){var e=t[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(r,C(e.key),e)}}(r.prototype,t),Object.defineProperty(r,"prototype",{writable:!1}),r}function u(r,t){var n="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!n){if(Array.isArray(r)||(n=d(r))||t){n&&(r=n);var e=0,i=function(){};return{s:i,n:function(){return e>=r.length?{done:!0}:{done:!1,value:r[e++]}},e:function(r){throw r},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,u=!0,a=!1;return{s:function(){n=n.call(r)},n:function(){var r=n.next();return u=r.done,r},e:function(r){a=!0,o=r},f:function(){try{u||null==n.return||n.return()}finally{if(a)throw o}}}}function a(r,t,n){return(t=C(t))in r?Object.defineProperty(r,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[t]=n,r}function v(r){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},v(r)}function f(r,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&l(r,t)}function c(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(r){}return(c=function(){return!!r})()}function s(r,t){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(r);t&&(e=e.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.push.apply(n,e)}return n}function h(r){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){a(r,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(n,t))}))}return r}function w(){w=function(){return t};var r,t={},n=Object.prototype,e=n.hasOwnProperty,i=Object.defineProperty||function(r,t,n){r[t]=n.value},o="function"==typeof Symbol?Symbol:{},u=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",v=o.toStringTag||"@@toStringTag";function f(r,t,n){return Object.defineProperty(r,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),r[t]}try{f({},"")}catch(r){f=function(r,t,n){return r[t]=n}}function c(r,t,n,e){var o=t&&t.prototype instanceof B?t:B,u=Object.create(o.prototype),a=new m(e||[]);return i(u,"_invoke",{value:U(r,n,a)}),u}function s(r,t,n){try{return{type:"normal",arg:r.call(t,n)}}catch(r){return{type:"throw",arg:r}}}t.wrap=c;var h="suspendedStart",l="suspendedYield",g="executing",y="completed",C={};function B(){}function d(){}function z(){}var D={};f(D,u,(function(){return this}));var M=Object.getPrototypeOf,L=M&&M(M(Y([])));L&&L!==n&&e.call(L,u)&&(D=L);var x=z.prototype=B.prototype=Object.create(D);function p(r){["next","throw","return"].forEach((function(t){f(r,t,(function(r){return this._invoke(t,r)}))}))}function A(r,t){function n(i,o,u,a){var v=s(r[i],r,o);if("throw"!==v.type){var f=v.arg,c=f.value;return c&&"object"==typeof c&&e.call(c,"__await")?t.resolve(c.__await).then((function(r){n("next",r,u,a)}),(function(r){n("throw",r,u,a)})):t.resolve(c).then((function(r){f.value=r,u(f)}),(function(r){return n("throw",r,u,a)}))}a(v.arg)}var o;i(this,"_invoke",{value:function(r,e){function i(){return new t((function(t,i){n(r,e,t,i)}))}return o=o?o.then(i,i):i()}})}function U(t,n,e){var i=h;return function(o,u){if(i===g)throw Error("Generator is already running");if(i===y){if("throw"===o)throw u;return{value:r,done:!0}}for(e.method=o,e.arg=u;;){var a=e.delegate;if(a){var v=S(a,e);if(v){if(v===C)continue;return v}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(i===h)throw i=y,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);i=g;var f=s(t,n,e);if("normal"===f.type){if(i=e.done?y:l,f.arg===C)continue;return{value:f.arg,done:e.done}}"throw"===f.type&&(i=y,e.method="throw",e.arg=f.arg)}}}function S(t,n){var e=n.method,i=t.iterator[e];if(i===r)return n.delegate=null,"throw"===e&&t.iterator.return&&(n.method="return",n.arg=r,S(t,n),"throw"===n.method)||"return"!==e&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+e+"' method")),C;var o=s(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,C;var u=o.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=r),n.delegate=null,C):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,C)}function j(r){var t={tryLoc:r[0]};1 in r&&(t.catchLoc=r[1]),2 in r&&(t.finallyLoc=r[2],t.afterLoc=r[3]),this.tryEntries.push(t)}function b(r){var t=r.completion||{};t.type="normal",delete t.arg,r.completion=t}function m(r){this.tryEntries=[{tryLoc:"root"}],r.forEach(j,this),this.reset(!0)}function Y(t){if(t||""===t){var n=t[u];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(e.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=r,n.done=!0,n};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return d.prototype=z,i(x,"constructor",{value:z,configurable:!0}),i(z,"constructor",{value:d,configurable:!0}),d.displayName=f(z,v,"GeneratorFunction"),t.isGeneratorFunction=function(r){var t="function"==typeof r&&r.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(r){return Object.setPrototypeOf?Object.setPrototypeOf(r,z):(r.__proto__=z,f(r,v,"GeneratorFunction")),r.prototype=Object.create(x),r},t.awrap=function(r){return{__await:r}},p(A.prototype),f(A.prototype,a,(function(){return this})),t.AsyncIterator=A,t.async=function(r,n,e,i,o){void 0===o&&(o=Promise);var u=new A(c(r,n,e,i),o);return t.isGeneratorFunction(n)?u:u.next().then((function(r){return r.done?r.value:u.next()}))},p(x),f(x,v,"Generator"),f(x,u,(function(){return this})),f(x,"toString",(function(){return"[object Generator]"})),t.keys=function(r){var t=Object(r),n=[];for(var e in t)n.push(e);return n.reverse(),function r(){for(;n.length;){var e=n.pop();if(e in t)return r.value=e,r.done=!1,r}return r.done=!0,r}},t.values=Y,m.prototype={constructor:m,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(b),!t)for(var n in this)"t"===n.charAt(0)&&e.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=r)},stop:function(){this.done=!0;var r=this.tryEntries[0].completion;if("throw"===r.type)throw r.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(e,i){return a.type="throw",a.arg=t,n.next=e,i&&(n.method="next",n.arg=r),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var u=this.tryEntries[o],a=u.completion;if("root"===u.tryLoc)return i("end");if(u.tryLoc<=this.prev){var v=e.call(u,"catchLoc"),f=e.call(u,"finallyLoc");if(v&&f){if(this.prev<u.catchLoc)return i(u.catchLoc,!0);if(this.prev<u.finallyLoc)return i(u.finallyLoc)}else if(v){if(this.prev<u.catchLoc)return i(u.catchLoc,!0)}else{if(!f)throw Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return i(u.finallyLoc)}}}},abrupt:function(r,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&e.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===r||"continue"===r)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var u=o?o.completion:{};return u.type=r,u.arg=t,o?(this.method="next",this.next=o.finallyLoc,C):this.complete(u)},complete:function(r,t){if("throw"===r.type)throw r.arg;return"break"===r.type||"continue"===r.type?this.next=r.arg:"return"===r.type?(this.rval=this.arg=r.arg,this.method="return",this.next="end"):"normal"===r.type&&t&&(this.next=t),C},finish:function(r){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===r)return this.complete(n.completion,n.afterLoc),b(n),C}},catch:function(r){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===r){var e=n.completion;if("throw"===e.type){var i=e.arg;b(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,e){return this.delegate={iterator:Y(t),resultName:n,nextLoc:e},"next"===this.method&&(this.arg=r),C}},t}function l(r,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,t){return r.__proto__=t,r},l(r,t)}function g(r,t){return function(r){if(Array.isArray(r))return r}(r)||function(r,t){var n=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=n){var e,i,o,u,a=[],v=!0,f=!1;try{if(o=(n=n.call(r)).next,0===t){if(Object(n)!==n)return;v=!1}else for(;!(v=(e=o.call(n)).done)&&(a.push(e.value),a.length!==t);v=!0);}catch(r){f=!0,i=r}finally{try{if(!v&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(f)throw i}}return a}}(r,t)||d(r,t)||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.")}()}function y(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(t)||d(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(r){var t=function(r,t){if("object"!=typeof r||!r)return r;var n=r[Symbol.toPrimitive];if(void 0!==n){var e=n.call(r,t||"default");if("object"!=typeof e)return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(r)}(r,"string");return"symbol"==typeof t?t:t+""}function B(r){return B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},B(r)}function d(t,n){if(t){if("string"==typeof t)return r(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?r(t,n):void 0}}function z(r){var t="function"==typeof Map?new Map:void 0;return z=function(r){if(null===r||!function(r){try{return-1!==Function.toString.call(r).indexOf("[native code]")}catch(t){return"function"==typeof r}}(r))return r;if("function"!=typeof r)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return function(r,t,n){if(c())return Reflect.construct.apply(null,arguments);var e=[null];e.push.apply(e,t);var i=new(r.bind.apply(r,e));return n&&l(i,n.prototype),i}(r,arguments,v(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,r)},z(r)}var D="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function M(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var L=function(r){return r&&r.Math===Math&&r},x=L("object"==typeof globalThis&&globalThis)||L("object"==typeof window&&window)||L("object"==typeof self&&self)||L("object"==typeof D&&D)||L("object"==typeof D&&D)||function(){return this}()||Function("return this")(),p={},A=function(r){try{return!!r()}catch(r){return!0}},U=!A((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),S=!A((function(){var r=function(){}.bind();return"function"!=typeof r||r.hasOwnProperty("prototype")})),j=S,b=Function.prototype.call,m=j?b.bind(b):function(){return b.apply(b,arguments)},Y={},H={}.propertyIsEnumerable,N=Object.getOwnPropertyDescriptor,q=N&&!H.call({1:2},1);Y.f=q?function(r){var t=N(this,r);return!!t&&t.enumerable}:H;var P,K,V=function(r,t){return{enumerable:!(1&r),configurable:!(2&r),writable:!(4&r),value:t}},O=S,I=Function.prototype,T=I.call,W=O&&I.bind.bind(T,T),G=O?W:function(r){return function(){return T.apply(r,arguments)}},k=G,Z=k({}.toString),J=k("".slice),R=function(r){return J(Z(r),8,-1)},X=A,E=R,F=Object,Q=G("".split),_=X((function(){return!F("z").propertyIsEnumerable(0)}))?function(r){return"String"===E(r)?Q(r,""):F(r)}:F,$=function(r){return null==r},rr=$,tr=TypeError,nr=function(r){if(rr(r))throw new tr("Can't call method on "+r);return r},er=_,ir=nr,or=function(r){return er(ir(r))},ur="object"==typeof document&&document.all,ar=void 0===ur&&void 0!==ur?function(r){return"function"==typeof r||r===ur}:function(r){return"function"==typeof r},vr=ar,fr=function(r){return"object"==typeof r?null!==r:vr(r)},cr=x,sr=ar,hr=function(r,t){return arguments.length<2?(n=cr[r],sr(n)?n:void 0):cr[r]&&cr[r][t];var n},wr=G({}.isPrototypeOf),lr="undefined"!=typeof navigator&&String(navigator.userAgent)||"",gr=x,yr=lr,Cr=gr.process,Br=gr.Deno,dr=Cr&&Cr.versions||Br&&Br.version,zr=dr&&dr.v8;zr&&(K=(P=zr.split("."))[0]>0&&P[0]<4?1:+(P[0]+P[1])),!K&&yr&&(!(P=yr.match(/Edge\/(\d+)/))||P[1]>=74)&&(P=yr.match(/Chrome\/(\d+)/))&&(K=+P[1]);var Dr=K,Mr=Dr,Lr=A,xr=x.String,pr=!!Object.getOwnPropertySymbols&&!Lr((function(){var r=Symbol("symbol detection");return!xr(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&Mr&&Mr<41})),Ar=pr&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ur=hr,Sr=ar,jr=wr,br=Object,mr=Ar?function(r){return"symbol"==typeof r}:function(r){var t=Ur("Symbol");return Sr(t)&&jr(t.prototype,br(r))},Yr=String,Hr=function(r){try{return Yr(r)}catch(r){return"Object"}},Nr=ar,qr=Hr,Pr=TypeError,Kr=function(r){if(Nr(r))return r;throw new Pr(qr(r)+" is not a function")},Vr=Kr,Or=$,Ir=function(r,t){var n=r[t];return Or(n)?void 0:Vr(n)},Tr=m,Wr=ar,Gr=fr,kr=TypeError,Zr={exports:{}},Jr=x,Rr=Object.defineProperty,Xr=function(r,t){try{Rr(Jr,r,{value:t,configurable:!0,writable:!0})}catch(n){Jr[r]=t}return t},Er=x,Fr=Xr,Qr="__core-js_shared__",_r=Zr.exports=Er[Qr]||Fr(Qr,{});(_r.versions||(_r.versions=[])).push({});var $r=Zr.exports,rt=$r,tt=function(r,t){return rt[r]||(rt[r]=t||{})},nt=nr,et=Object,it=function(r){return et(nt(r))},ot=it,ut=G({}.hasOwnProperty),at=Object.hasOwn||function(r,t){return ut(ot(r),t)},vt=G,ft=0,ct=Math.random(),st=vt(1..toString),ht=function(r){return"Symbol("+(void 0===r?"":r)+")_"+st(++ft+ct,36)},wt=tt,lt=at,gt=ht,yt=pr,Ct=Ar,Bt=x.Symbol,dt=wt("wks"),zt=Ct?Bt.for||Bt:Bt&&Bt.withoutSetter||gt,Dt=function(r){return lt(dt,r)||(dt[r]=yt&&lt(Bt,r)?Bt[r]:zt("Symbol."+r)),dt[r]},Mt=m,Lt=fr,xt=mr,pt=Ir,At=function(r,t){var n,e;if("string"===t&&Wr(n=r.toString)&&!Gr(e=Tr(n,r)))return e;if(Wr(n=r.valueOf)&&!Gr(e=Tr(n,r)))return e;if("string"!==t&&Wr(n=r.toString)&&!Gr(e=Tr(n,r)))return e;throw new kr("Can't convert object to primitive value")},Ut=TypeError,St=Dt("toPrimitive"),jt=function(r,t){if(!Lt(r)||xt(r))return r;var n,e=pt(r,St);if(e){if(void 0===t&&(t="default"),n=Mt(e,r,t),!Lt(n)||xt(n))return n;throw new Ut("Can't convert object to primitive value")}return void 0===t&&(t="number"),At(r,t)},bt=jt,mt=mr,Yt=function(r){var t=bt(r,"string");return mt(t)?t:t+""},Ht=fr,Nt=x.document,qt=Ht(Nt)&&Ht(Nt.createElement),Pt=function(r){return qt?Nt.createElement(r):{}},Kt=Pt,Vt=!U&&!A((function(){return 7!==Object.defineProperty(Kt("div"),"a",{get:function(){return 7}}).a})),Ot=U,It=m,Tt=Y,Wt=V,Gt=or,kt=Yt,Zt=at,Jt=Vt,Rt=Object.getOwnPropertyDescriptor;p.f=Ot?Rt:function(r,t){if(r=Gt(r),t=kt(t),Jt)try{return Rt(r,t)}catch(r){}if(Zt(r,t))return Wt(!It(Tt.f,r,t),r[t])};var Xt={},Et=U&&A((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ft=fr,Qt=String,_t=TypeError,$t=function(r){if(Ft(r))return r;throw new _t(Qt(r)+" is not an object")},rn=U,tn=Vt,nn=Et,en=$t,on=Yt,un=TypeError,an=Object.defineProperty,vn=Object.getOwnPropertyDescriptor,fn="enumerable",cn="configurable",sn="writable";Xt.f=rn?nn?function(r,t,n){if(en(r),t=on(t),en(n),"function"==typeof r&&"prototype"===t&&"value"in n&&sn in n&&!n[sn]){var e=vn(r,t);e&&e[sn]&&(r[t]=n.value,n={configurable:cn in n?n[cn]:e[cn],enumerable:fn in n?n[fn]:e[fn],writable:!1})}return an(r,t,n)}:an:function(r,t,n){if(en(r),t=on(t),en(n),tn)try{return an(r,t,n)}catch(r){}if("get"in n||"set"in n)throw new un("Accessors not supported");return"value"in n&&(r[t]=n.value),r};var hn=Xt,wn=V,ln=U?function(r,t,n){return hn.f(r,t,wn(1,n))}:function(r,t,n){return r[t]=n,r},gn={exports:{}},yn=U,Cn=at,Bn=Function.prototype,dn=yn&&Object.getOwnPropertyDescriptor,zn=Cn(Bn,"name"),Dn={EXISTS:zn,PROPER:zn&&"something"===function(){}.name,CONFIGURABLE:zn&&(!yn||yn&&dn(Bn,"name").configurable)},Mn=ar,Ln=$r,xn=G(Function.toString);Mn(Ln.inspectSource)||(Ln.inspectSource=function(r){return xn(r)});var pn,An,Un,Sn=Ln.inspectSource,jn=ar,bn=x.WeakMap,mn=jn(bn)&&/native code/.test(String(bn)),Yn=ht,Hn=tt("keys"),Nn=function(r){return Hn[r]||(Hn[r]=Yn(r))},qn={},Pn=mn,Kn=x,Vn=fr,On=ln,In=at,Tn=$r,Wn=Nn,Gn=qn,kn="Object already initialized",Zn=Kn.TypeError,Jn=Kn.WeakMap;if(Pn||Tn.state){var Rn=Tn.state||(Tn.state=new Jn);Rn.get=Rn.get,Rn.has=Rn.has,Rn.set=Rn.set,pn=function(r,t){if(Rn.has(r))throw new Zn(kn);return t.facade=r,Rn.set(r,t),t},An=function(r){return Rn.get(r)||{}},Un=function(r){return Rn.has(r)}}else{var Xn=Wn("state");Gn[Xn]=!0,pn=function(r,t){if(In(r,Xn))throw new Zn(kn);return t.facade=r,On(r,Xn,t),t},An=function(r){return In(r,Xn)?r[Xn]:{}},Un=function(r){return In(r,Xn)}}var En={set:pn,get:An,has:Un,enforce:function(r){return Un(r)?An(r):pn(r,{})},getterFor:function(r){return function(t){var n;if(!Vn(t)||(n=An(t)).type!==r)throw new Zn("Incompatible receiver, "+r+" required");return n}}},Fn=G,Qn=A,_n=ar,$n=at,re=U,te=Dn.CONFIGURABLE,ne=Sn,ee=En.enforce,ie=En.get,oe=String,ue=Object.defineProperty,ae=Fn("".slice),ve=Fn("".replace),fe=Fn([].join),ce=re&&!Qn((function(){return 8!==ue((function(){}),"length",{value:8}).length})),se=String(String).split("String"),he=gn.exports=function(r,t,n){"Symbol("===ae(oe(t),0,7)&&(t="["+ve(oe(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!$n(r,"name")||te&&r.name!==t)&&(re?ue(r,"name",{value:t,configurable:!0}):r.name=t),ce&&n&&$n(n,"arity")&&r.length!==n.arity&&ue(r,"length",{value:n.arity});try{n&&$n(n,"constructor")&&n.constructor?re&&ue(r,"prototype",{writable:!1}):r.prototype&&(r.prototype=void 0)}catch(r){}var e=ee(r);return $n(e,"source")||(e.source=fe(se,"string"==typeof t?t:"")),r};Function.prototype.toString=he((function(){return _n(this)&&ie(this).source||ne(this)}),"toString");var we=gn.exports,le=ar,ge=Xt,ye=we,Ce=Xr,Be=function(r,t,n,e){e||(e={});var i=e.enumerable,o=void 0!==e.name?e.name:t;if(le(n)&&ye(n,o,e),e.global)i?r[t]=n:Ce(t,n);else{try{e.unsafe?r[t]&&(i=!0):delete r[t]}catch(r){}i?r[t]=n:ge.f(r,t,{value:n,enumerable:!1,configurable:!e.nonConfigurable,writable:!e.nonWritable})}return r},de={},ze=Math.ceil,De=Math.floor,Me=Math.trunc||function(r){var t=+r;return(t>0?De:ze)(t)},Le=function(r){var t=+r;return t!=t||0===t?0:Me(t)},xe=Le,pe=Math.max,Ae=Math.min,Ue=function(r,t){var n=xe(r);return n<0?pe(n+t,0):Ae(n,t)},Se=Le,je=Math.min,be=function(r){var t=Se(r);return t>0?je(t,9007199254740991):0},me=be,Ye=function(r){return me(r.length)},He=or,Ne=Ue,qe=Ye,Pe=function(r){return function(t,n,e){var i=He(t),o=qe(i);if(0===o)return!r&&-1;var u,a=Ne(e,o);if(r&&n!=n){for(;o>a;)if((u=i[a++])!=u)return!0}else for(;o>a;a++)if((r||a in i)&&i[a]===n)return r||a||0;return!r&&-1}},Ke={includes:Pe(!0),indexOf:Pe(!1)},Ve=at,Oe=or,Ie=Ke.indexOf,Te=qn,We=G([].push),Ge=function(r,t){var n,e=Oe(r),i=0,o=[];for(n in e)!Ve(Te,n)&&Ve(e,n)&&We(o,n);for(;t.length>i;)Ve(e,n=t[i++])&&(~Ie(o,n)||We(o,n));return o},ke=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ze=Ge,Je=ke.concat("length","prototype");de.f=Object.getOwnPropertyNames||function(r){return Ze(r,Je)};var Re={};Re.f=Object.getOwnPropertySymbols;var Xe=hr,Ee=de,Fe=Re,Qe=$t,_e=G([].concat),$e=Xe("Reflect","ownKeys")||function(r){var t=Ee.f(Qe(r)),n=Fe.f;return n?_e(t,n(r)):t},ri=at,ti=$e,ni=p,ei=Xt,ii=function(r,t,n){for(var e=ti(t),i=ei.f,o=ni.f,u=0;u<e.length;u++){var a=e[u];ri(r,a)||n&&ri(n,a)||i(r,a,o(t,a))}},oi=A,ui=ar,ai=/#|\.prototype\./,vi=function(r,t){var n=ci[fi(r)];return n===hi||n!==si&&(ui(t)?oi(t):!!t)},fi=vi.normalize=function(r){return String(r).replace(ai,".").toLowerCase()},ci=vi.data={},si=vi.NATIVE="N",hi=vi.POLYFILL="P",wi=vi,li=x,gi=p.f,yi=ln,Ci=Be,Bi=Xr,di=ii,zi=wi,Di=function(r,t){var n,e,i,o,u,a=r.target,v=r.global,f=r.stat;if(n=v?li:f?li[a]||Bi(a,{}):li[a]&&li[a].prototype)for(e in t){if(o=t[e],i=r.dontCallGetSet?(u=gi(n,e))&&u.value:n[e],!zi(v?e:a+(f?".":"#")+e,r.forced)&&void 0!==i){if(typeof o==typeof i)continue;di(o,i)}(r.sham||i&&i.sham)&&yi(o,"sham",!0),Ci(n,e,o,r)}},Mi=R,Li=Array.isArray||function(r){return"Array"===Mi(r)},xi=TypeError,pi=function(r){if(r>9007199254740991)throw xi("Maximum allowed index exceeded");return r},Ai=U,Ui=Xt,Si=V,ji=function(r,t,n){Ai?Ui.f(r,t,Si(0,n)):r[t]=n},bi={};bi[Dt("toStringTag")]="z";var mi="[object z]"===String(bi),Yi=mi,Hi=ar,Ni=R,qi=Dt("toStringTag"),Pi=Object,Ki="Arguments"===Ni(function(){return arguments}()),Vi=Yi?Ni:function(r){var t,n,e;return void 0===r?"Undefined":null===r?"Null":"string"==typeof(n=function(r,t){try{return r[t]}catch(r){}}(t=Pi(r),qi))?n:Ki?Ni(t):"Object"===(e=Ni(t))&&Hi(t.callee)?"Arguments":e},Oi=G,Ii=A,Ti=ar,Wi=Vi,Gi=Sn,ki=function(){},Zi=hr("Reflect","construct"),Ji=/^\s*(?:class|function)\b/,Ri=Oi(Ji.exec),Xi=!Ji.test(ki),Ei=function(r){if(!Ti(r))return!1;try{return Zi(ki,[],r),!0}catch(r){return!1}},Fi=function(r){if(!Ti(r))return!1;switch(Wi(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Xi||!!Ri(Ji,Gi(r))}catch(r){return!0}};Fi.sham=!0;var Qi=!Zi||Ii((function(){var r;return Ei(Ei.call)||!Ei(Object)||!Ei((function(){r=!0}))||r}))?Fi:Ei,_i=Li,$i=Qi,ro=fr,to=Dt("species"),no=Array,eo=function(r){var t;return _i(r)&&(t=r.constructor,($i(t)&&(t===no||_i(t.prototype))||ro(t)&&null===(t=t[to]))&&(t=void 0)),void 0===t?no:t},io=function(r,t){return new(eo(r))(0===t?0:t)},oo=A,uo=Dr,ao=Dt("species"),vo=function(r){return uo>=51||!oo((function(){var t=[];return(t.constructor={})[ao]=function(){return{foo:1}},1!==t[r](Boolean).foo}))},fo=Di,co=A,so=Li,ho=fr,wo=it,lo=Ye,go=pi,yo=ji,Co=io,Bo=vo,zo=Dr,Do=Dt("isConcatSpreadable"),Mo=zo>=51||!co((function(){var r=[];return r[Do]=!1,r.concat()[0]!==r})),Lo=function(r){if(!ho(r))return!1;var t=r[Do];return void 0!==t?!!t:so(r)};fo({target:"Array",proto:!0,arity:1,forced:!Mo||!Bo("concat")},{concat:function(r){var t,n,e,i,o,u=wo(this),a=Co(u,0),v=0;for(t=-1,e=arguments.length;t<e;t++)if(Lo(o=-1===t?u:arguments[t]))for(i=lo(o),go(v+i),n=0;n<i;n++,v++)n in o&&yo(a,v,o[n]);else go(v+1),yo(a,v++,o);return a.length=v,a}});var xo=R,po=G,Ao=function(r){if("Function"===xo(r))return po(r)},Uo=Kr,So=S,jo=Ao(Ao.bind),bo=function(r,t){return Uo(r),void 0===t?r:So?jo(r,t):function(){return r.apply(t,arguments)}},mo=bo,Yo=_,Ho=it,No=Ye,qo=io,Po=G([].push),Ko=function(r){var t=1===r,n=2===r,e=3===r,i=4===r,o=6===r,u=7===r,a=5===r||o;return function(v,f,c,s){for(var h,w,l=Ho(v),g=Yo(l),y=No(g),C=mo(f,c),B=0,d=s||qo,z=t?d(v,y):n||u?d(v,0):void 0;y>B;B++)if((a||B in g)&&(w=C(h=g[B],B,l),r))if(t)z[B]=w;else if(w)switch(r){case 3:return!0;case 5:return h;case 6:return B;case 2:Po(z,h)}else switch(r){case 4:return!1;case 7:Po(z,h)}return o?-1:e||i?i:z}},Vo={forEach:Ko(0),map:Ko(1),filter:Ko(2),some:Ko(3),every:Ko(4),find:Ko(5),findIndex:Ko(6),filterReject:Ko(7)},Oo=Vo.filter;Di({target:"Array",proto:!0,forced:!vo("filter")},{filter:function(r){return Oo(this,r,arguments.length>1?arguments[1]:void 0)}});var Io=Li,To=Ye,Wo=pi,Go=bo,ko=function(r,t,n,e,i,o,u,a){for(var v,f,c=i,s=0,h=!!u&&Go(u,a);s<e;)s in n&&(v=h?h(n[s],s,t):n[s],o>0&&Io(v)?(f=To(v),c=ko(r,t,v,f,c,o-1)-1):(Wo(c+1),r[c]=v),c++),s++;return c},Zo=ko,Jo=Zo,Ro=it,Xo=Ye,Eo=Le,Fo=io;Di({target:"Array",proto:!0},{flat:function(){var r=arguments.length?arguments[0]:void 0,t=Ro(this),n=Xo(t),e=Fo(t,0);return e.length=Jo(e,t,t,n,0,void 0===r?1:Eo(r)),e}});var Qo={},_o=Ge,$o=ke,ru=Object.keys||function(r){return _o(r,$o)},tu=U,nu=Et,eu=Xt,iu=$t,ou=or,uu=ru;Qo.f=tu&&!nu?Object.defineProperties:function(r,t){iu(r);for(var n,e=ou(t),i=uu(t),o=i.length,u=0;o>u;)eu.f(r,n=i[u++],e[n]);return r};var au,vu=hr("document","documentElement"),fu=$t,cu=Qo,su=ke,hu=qn,wu=vu,lu=Pt,gu="prototype",yu="script",Cu=Nn("IE_PROTO"),Bu=function(){},du=function(r){return"<"+yu+">"+r+"</"+yu+">"},zu=function(r){r.write(du("")),r.close();var t=r.parentWindow.Object;return r=null,t},Du=function(){try{au=new ActiveXObject("htmlfile")}catch(r){}var r,t,n;Du="undefined"!=typeof document?document.domain&&au?zu(au):(t=lu("iframe"),n="java"+yu+":",t.style.display="none",wu.appendChild(t),t.src=String(n),(r=t.contentWindow.document).open(),r.write(du("document.F=Object")),r.close(),r.F):zu(au);for(var e=su.length;e--;)delete Du[gu][su[e]];return Du()};hu[Cu]=!0;var Mu=Object.create||function(r,t){var n;return null!==r?(Bu[gu]=fu(r),n=new Bu,Bu[gu]=null,n[Cu]=r):n=Du(),void 0===t?n:cu.f(n,t)},Lu=Dt,xu=Mu,pu=Xt.f,Au=Lu("unscopables"),Uu=Array.prototype;void 0===Uu[Au]&&pu(Uu,Au,{configurable:!0,value:xu(null)});var Su=function(r){Uu[Au][r]=!0},ju=Ke.includes,bu=Su;Di({target:"Array",proto:!0,forced:A((function(){return!Array(1).includes()}))},{includes:function(r){return ju(this,r,arguments.length>1?arguments[1]:void 0)}}),bu("includes");var mu,Yu,Hu,Nu={},qu=!A((function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype})),Pu=at,Ku=ar,Vu=it,Ou=qu,Iu=Nn("IE_PROTO"),Tu=Object,Wu=Tu.prototype,Gu=Ou?Tu.getPrototypeOf:function(r){var t=Vu(r);if(Pu(t,Iu))return t[Iu];var n=t.constructor;return Ku(n)&&t instanceof n?n.prototype:t instanceof Tu?Wu:null},ku=A,Zu=ar,Ju=fr,Ru=Gu,Xu=Be,Eu=Dt("iterator"),Fu=!1;[].keys&&("next"in(Hu=[].keys())?(Yu=Ru(Ru(Hu)))!==Object.prototype&&(mu=Yu):Fu=!0);var Qu=!Ju(mu)||ku((function(){var r={};return mu[Eu].call(r)!==r}));Qu&&(mu={}),Zu(mu[Eu])||Xu(mu,Eu,(function(){return this}));var _u={IteratorPrototype:mu,BUGGY_SAFARI_ITERATORS:Fu},$u=Xt.f,ra=at,ta=Dt("toStringTag"),na=function(r,t,n){r&&!n&&(r=r.prototype),r&&!ra(r,ta)&&$u(r,ta,{configurable:!0,value:t})},ea=_u.IteratorPrototype,ia=Mu,oa=V,ua=na,aa=Nu,va=function(){return this},fa=function(r,t,n,e){var i=t+" Iterator";return r.prototype=ia(ea,{next:oa(+!e,n)}),ua(r,i,!1),aa[i]=va,r},ca=G,sa=Kr,ha=fr,wa=function(r){return ha(r)||null===r},la=String,ga=TypeError,ya=function(r,t,n){try{return ca(sa(Object.getOwnPropertyDescriptor(r,t)[n]))}catch(r){}},Ca=fr,Ba=nr,da=function(r){if(wa(r))return r;throw new ga("Can't set "+la(r)+" as a prototype")},za=Object.setPrototypeOf||("__proto__"in{}?function(){var r,t=!1,n={};try{(r=ya(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(r){}return function(n,e){return Ba(n),da(e),Ca(n)?(t?r(n,e):n.__proto__=e,n):n}}():void 0),Da=Di,Ma=m,La=ar,xa=fa,pa=Gu,Aa=za,Ua=na,Sa=ln,ja=Be,ba=Nu,ma=Dn.PROPER,Ya=Dn.CONFIGURABLE,Ha=_u.IteratorPrototype,Na=_u.BUGGY_SAFARI_ITERATORS,qa=Dt("iterator"),Pa="keys",Ka="values",Va="entries",Oa=function(){return this},Ia=function(r,t,n,e,i,o,u){xa(n,t,e);var a,v,f,c=function(r){if(r===i&&g)return g;if(!Na&&r&&r in w)return w[r];switch(r){case Pa:case Ka:case Va:return function(){return new n(this,r)}}return function(){return new n(this)}},s=t+" Iterator",h=!1,w=r.prototype,l=w[qa]||w["@@iterator"]||i&&w[i],g=!Na&&l||c(i),y="Array"===t&&w.entries||l;if(y&&(a=pa(y.call(new r)))!==Object.prototype&&a.next&&(pa(a)!==Ha&&(Aa?Aa(a,Ha):La(a[qa])||ja(a,qa,Oa)),Ua(a,s,!0)),ma&&i===Ka&&l&&l.name!==Ka&&(Ya?Sa(w,"name",Ka):(h=!0,g=function(){return Ma(l,this)})),i)if(v={values:c(Ka),keys:o?g:c(Pa),entries:c(Va)},u)for(f in v)(Na||h||!(f in w))&&ja(w,f,v[f]);else Da({target:t,proto:!0,forced:Na||h},v);return w[qa]!==g&&ja(w,qa,g,{name:i}),ba[t]=g,v},Ta=function(r,t){return{value:r,done:t}},Wa=or,Ga=Su,ka=Nu,Za=En,Ja=Xt.f,Ra=Ia,Xa=Ta,Ea=U,Fa="Array Iterator",Qa=Za.set,_a=Za.getterFor(Fa),$a=Ra(Array,"Array",(function(r,t){Qa(this,{type:Fa,target:Wa(r),index:0,kind:t})}),(function(){var r=_a(this),t=r.target,n=r.index++;if(!t||n>=t.length)return r.target=void 0,Xa(void 0,!0);switch(r.kind){case"keys":return Xa(n,!1);case"values":return Xa(t[n],!1)}return Xa([n,t[n]],!1)}),"values"),rv=ka.Arguments=ka.Array;if(Ga("keys"),Ga("values"),Ga("entries"),Ea&&"values"!==rv.name)try{Ja(rv,"name",{value:"values"})}catch(r){}var tv=A,nv=function(r,t){var n=[][r];return!!n&&tv((function(){n.call(null,t||function(){return 1},1)}))},ev=Di,iv=_,ov=or,uv=nv,av=G([].join);ev({target:"Array",proto:!0,forced:iv!==Object||!uv("join",",")},{join:function(r){return av(ov(this),void 0===r?",":r)}});var vv=Vo.map;Di({target:"Array",proto:!0,forced:!vo("map")},{map:function(r){return vv(this,r,arguments.length>1?arguments[1]:void 0)}});var fv=Kr,cv=it,sv=_,hv=Ye,wv=TypeError,lv="Reduce of empty array with no initial value",gv=function(r){return function(t,n,e,i){var o=cv(t),u=sv(o),a=hv(o);if(fv(n),0===a&&e<2)throw new wv(lv);var v=r?a-1:0,f=r?-1:1;if(e<2)for(;;){if(v in u){i=u[v],v+=f;break}if(v+=f,r?v<0:a<=v)throw new wv(lv)}for(;r?v>=0:a>v;v+=f)v in u&&(i=n(i,u[v],v,o));return i}},yv={left:gv(!1),right:gv(!0)},Cv="process"===R(x.process),Bv=yv.left;Di({target:"Array",proto:!0,forced:!Cv&&Dr>79&&Dr<83||!nv("reduce")},{reduce:function(r){var t=arguments.length;return Bv(this,r,t,t>1?arguments[1]:void 0)}}),Su("flat");var dv=Vi,zv=mi?{}.toString:function(){return"[object "+dv(this)+"]"};mi||Be(Object.prototype,"toString",zv,{unsafe:!0});var Dv=U,Mv=A,Lv=G,xv=Gu,pv=ru,Av=or,Uv=Lv(Y.f),Sv=Lv([].push),jv=Dv&&Mv((function(){var r=Object.create(null);return r[2]=2,!Uv(r,2)})),bv=function(r){return function(t){for(var n,e=Av(t),i=pv(e),o=jv&&null===xv(e),u=i.length,a=0,v=[];u>a;)n=i[a++],Dv&&!(o?n in e:Uv(e,n))||Sv(v,r?[n,e[n]]:e[n]);return v}},mv={entries:bv(!0),values:bv(!1)},Yv=mv.values;Di({target:"Object",stat:!0},{values:function(r){return Yv(r)}});var Hv,Nv,qv,Pv,Kv=we,Vv=Xt,Ov=function(r,t,n){return n.get&&Kv(n.get,t,{getter:!0}),n.set&&Kv(n.set,t,{setter:!0}),Vv.f(r,t,n)},Iv=hr,Tv=Ov,Wv=U,Gv=Dt("species"),kv=function(r){var t=Iv(r);Wv&&t&&!t[Gv]&&Tv(t,Gv,{configurable:!0,get:function(){return this}})},Zv=wr,Jv=TypeError,Rv=function(r,t){if(Zv(t,r))return r;throw new Jv("Incorrect invocation")},Xv=Qi,Ev=Hr,Fv=TypeError,Qv=function(r){if(Xv(r))return r;throw new Fv(Ev(r)+" is not a constructor")},_v=$t,$v=Qv,rf=$,tf=Dt("species"),nf=function(r,t){var n,e=_v(r).constructor;return void 0===e||rf(n=_v(e)[tf])?t:$v(n)},ef=S,of=Function.prototype,uf=of.apply,af=of.call,vf="object"==typeof Reflect&&Reflect.apply||(ef?af.bind(uf):function(){return af.apply(uf,arguments)}),ff=G([].slice),cf=TypeError,sf=function(r,t){if(r<t)throw new cf("Not enough arguments");return r},hf=/(?:ipad|iphone|ipod).*applewebkit/i.test(lr),wf=x,lf=vf,gf=bo,yf=ar,Cf=at,Bf=A,df=vu,zf=ff,Df=Pt,Mf=sf,Lf=hf,xf=Cv,pf=wf.setImmediate,Af=wf.clearImmediate,Uf=wf.process,Sf=wf.Dispatch,jf=wf.Function,bf=wf.MessageChannel,mf=wf.String,Yf=0,Hf={},Nf="onreadystatechange";Bf((function(){Hv=wf.location}));var qf=function(r){if(Cf(Hf,r)){var t=Hf[r];delete Hf[r],t()}},Pf=function(r){return function(){qf(r)}},Kf=function(r){qf(r.data)},Vf=function(r){wf.postMessage(mf(r),Hv.protocol+"//"+Hv.host)};pf&&Af||(pf=function(r){Mf(arguments.length,1);var t=yf(r)?r:jf(r),n=zf(arguments,1);return Hf[++Yf]=function(){lf(t,void 0,n)},Nv(Yf),Yf},Af=function(r){delete Hf[r]},xf?Nv=function(r){Uf.nextTick(Pf(r))}:Sf&&Sf.now?Nv=function(r){Sf.now(Pf(r))}:bf&&!Lf?(Pv=(qv=new bf).port2,qv.port1.onmessage=Kf,Nv=gf(Pv.postMessage,Pv)):wf.addEventListener&&yf(wf.postMessage)&&!wf.importScripts&&Hv&&"file:"!==Hv.protocol&&!Bf(Vf)?(Nv=Vf,wf.addEventListener("message",Kf,!1)):Nv=Nf in Df("script")?function(r){df.appendChild(Df("script"))[Nf]=function(){df.removeChild(this),qf(r)}}:function(r){setTimeout(Pf(r),0)});var Of={set:pf,clear:Af},If=x,Tf=U,Wf=Object.getOwnPropertyDescriptor,Gf=function(r){if(!Tf)return If[r];var t=Wf(If,r);return t&&t.value},kf=function(){this.head=null,this.tail=null};kf.prototype={add:function(r){var t={item:r,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var r=this.head;if(r)return null===(this.head=r.next)&&(this.tail=null),r.item}};var Zf,Jf,Rf,Xf,Ef,Ff=kf,Qf=/ipad|iphone|ipod/i.test(lr)&&"undefined"!=typeof Pebble,_f=/web0s(?!.*chrome)/i.test(lr),$f=x,rc=Gf,tc=bo,nc=Of.set,ec=Ff,ic=hf,oc=Qf,uc=_f,ac=Cv,vc=$f.MutationObserver||$f.WebKitMutationObserver,fc=$f.document,cc=$f.process,sc=$f.Promise,hc=rc("queueMicrotask");if(!hc){var wc=new ec,lc=function(){var r,t;for(ac&&(r=cc.domain)&&r.exit();t=wc.get();)try{t()}catch(r){throw wc.head&&Zf(),r}r&&r.enter()};ic||ac||uc||!vc||!fc?!oc&&sc&&sc.resolve?((Xf=sc.resolve(void 0)).constructor=sc,Ef=tc(Xf.then,Xf),Zf=function(){Ef(lc)}):ac?Zf=function(){cc.nextTick(lc)}:(nc=tc(nc,$f),Zf=function(){nc(lc)}):(Jf=!0,Rf=fc.createTextNode(""),new vc(lc).observe(Rf,{characterData:!0}),Zf=function(){Rf.data=Jf=!Jf}),hc=function(r){wc.head||Zf(),wc.add(r)}}var gc=hc,yc=function(r){try{return{error:!1,value:r()}}catch(r){return{error:!0,value:r}}},Cc=x.Promise,Bc="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,dc=!Bc&&!Cv&&"object"==typeof window&&"object"==typeof document,zc=x,Dc=Cc,Mc=ar,Lc=wi,xc=Sn,pc=Dt,Ac=dc,Uc=Bc,Sc=Dr;Dc&&Dc.prototype;var jc=pc("species"),bc=!1,mc=Mc(zc.PromiseRejectionEvent),Yc=Lc("Promise",(function(){var r=xc(Dc),t=r!==String(Dc);if(!t&&66===Sc)return!0;if(!Sc||Sc<51||!/native code/.test(r)){var n=new Dc((function(r){r(1)})),e=function(r){r((function(){}),(function(){}))};if((n.constructor={})[jc]=e,!(bc=n.then((function(){}))instanceof e))return!0}return!t&&(Ac||Uc)&&!mc})),Hc={CONSTRUCTOR:Yc,REJECTION_EVENT:mc,SUBCLASSING:bc},Nc={},qc=Kr,Pc=TypeError,Kc=function(r){var t,n;this.promise=new r((function(r,e){if(void 0!==t||void 0!==n)throw new Pc("Bad Promise constructor");t=r,n=e})),this.resolve=qc(t),this.reject=qc(n)};Nc.f=function(r){return new Kc(r)};var Vc,Oc,Ic,Tc=Di,Wc=Cv,Gc=x,kc=m,Zc=Be,Jc=za,Rc=na,Xc=kv,Ec=Kr,Fc=ar,Qc=fr,_c=Rv,$c=nf,rs=Of.set,ts=gc,ns=function(r,t){try{1===arguments.length?console.error(r):console.error(r,t)}catch(r){}},es=yc,is=Ff,os=En,us=Cc,as=Nc,vs="Promise",fs=Hc.CONSTRUCTOR,cs=Hc.REJECTION_EVENT,ss=Hc.SUBCLASSING,hs=os.getterFor(vs),ws=os.set,ls=us&&us.prototype,gs=us,ys=ls,Cs=Gc.TypeError,Bs=Gc.document,ds=Gc.process,zs=as.f,Ds=zs,Ms=!!(Bs&&Bs.createEvent&&Gc.dispatchEvent),Ls="unhandledrejection",xs=function(r){var t;return!(!Qc(r)||!Fc(t=r.then))&&t},ps=function(r,t){var n,e,i,o=t.value,u=1===t.state,a=u?r.ok:r.fail,v=r.resolve,f=r.reject,c=r.domain;try{a?(u||(2===t.rejection&&bs(t),t.rejection=1),!0===a?n=o:(c&&c.enter(),n=a(o),c&&(c.exit(),i=!0)),n===r.promise?f(new Cs("Promise-chain cycle")):(e=xs(n))?kc(e,n,v,f):v(n)):f(o)}catch(r){c&&!i&&c.exit(),f(r)}},As=function(r,t){r.notified||(r.notified=!0,ts((function(){for(var n,e=r.reactions;n=e.get();)ps(n,r);r.notified=!1,t&&!r.rejection&&Ss(r)})))},Us=function(r,t,n){var e,i;Ms?((e=Bs.createEvent("Event")).promise=t,e.reason=n,e.initEvent(r,!1,!0),Gc.dispatchEvent(e)):e={promise:t,reason:n},!cs&&(i=Gc["on"+r])?i(e):r===Ls&&ns("Unhandled promise rejection",n)},Ss=function(r){kc(rs,Gc,(function(){var t,n=r.facade,e=r.value;if(js(r)&&(t=es((function(){Wc?ds.emit("unhandledRejection",e,n):Us(Ls,n,e)})),r.rejection=Wc||js(r)?2:1,t.error))throw t.value}))},js=function(r){return 1!==r.rejection&&!r.parent},bs=function(r){kc(rs,Gc,(function(){var t=r.facade;Wc?ds.emit("rejectionHandled",t):Us("rejectionhandled",t,r.value)}))},ms=function(r,t,n){return function(e){r(t,e,n)}},Ys=function(r,t,n){r.done||(r.done=!0,n&&(r=n),r.value=t,r.state=2,As(r,!0))},Hs=function(r,t,n){if(!r.done){r.done=!0,n&&(r=n);try{if(r.facade===t)throw new Cs("Promise can't be resolved itself");var e=xs(t);e?ts((function(){var n={done:!1};try{kc(e,t,ms(Hs,n,r),ms(Ys,n,r))}catch(t){Ys(n,t,r)}})):(r.value=t,r.state=1,As(r,!1))}catch(t){Ys({done:!1},t,r)}}};if(fs&&(ys=(gs=function(r){_c(this,ys),Ec(r),kc(Vc,this);var t=hs(this);try{r(ms(Hs,t),ms(Ys,t))}catch(r){Ys(t,r)}}).prototype,(Vc=function(r){ws(this,{type:vs,done:!1,notified:!1,parent:!1,reactions:new is,rejection:!1,state:0,value:void 0})}).prototype=Zc(ys,"then",(function(r,t){var n=hs(this),e=zs($c(this,gs));return n.parent=!0,e.ok=!Fc(r)||r,e.fail=Fc(t)&&t,e.domain=Wc?ds.domain:void 0,0===n.state?n.reactions.add(e):ts((function(){ps(e,n)})),e.promise})),Oc=function(){var r=new Vc,t=hs(r);this.promise=r,this.resolve=ms(Hs,t),this.reject=ms(Ys,t)},as.f=zs=function(r){return r===gs||undefined===r?new Oc(r):Ds(r)},Fc(us)&&ls!==Object.prototype)){Ic=ls.then,ss||Zc(ls,"then",(function(r,t){var n=this;return new gs((function(r,t){kc(Ic,n,r,t)})).then(r,t)}),{unsafe:!0});try{delete ls.constructor}catch(r){}Jc&&Jc(ls,ys)}Tc({global:!0,constructor:!0,wrap:!0,forced:fs},{Promise:gs}),Rc(gs,vs,!1),Xc(vs);var Ns=Nu,qs=Dt("iterator"),Ps=Array.prototype,Ks=function(r){return void 0!==r&&(Ns.Array===r||Ps[qs]===r)},Vs=Vi,Os=Ir,Is=$,Ts=Nu,Ws=Dt("iterator"),Gs=function(r){if(!Is(r))return Os(r,Ws)||Os(r,"@@iterator")||Ts[Vs(r)]},ks=m,Zs=Kr,Js=$t,Rs=Hr,Xs=Gs,Es=TypeError,Fs=function(r,t){var n=arguments.length<2?Xs(r):t;if(Zs(n))return Js(ks(n,r));throw new Es(Rs(r)+" is not iterable")},Qs=m,_s=$t,$s=Ir,rh=function(r,t,n){var e,i;_s(r);try{if(!(e=$s(r,"return"))){if("throw"===t)throw n;return n}e=Qs(e,r)}catch(r){i=!0,e=r}if("throw"===t)throw n;if(i)throw e;return _s(e),n},th=bo,nh=m,eh=$t,ih=Hr,oh=Ks,uh=Ye,ah=wr,vh=Fs,fh=Gs,ch=rh,sh=TypeError,hh=function(r,t){this.stopped=r,this.result=t},wh=hh.prototype,lh=function(r,t,n){var e,i,o,u,a,v,f,c=n&&n.that,s=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_RECORD),w=!(!n||!n.IS_ITERATOR),l=!(!n||!n.INTERRUPTED),g=th(t,c),y=function(r){return e&&ch(e,"normal",r),new hh(!0,r)},C=function(r){return s?(eh(r),l?g(r[0],r[1],y):g(r[0],r[1])):l?g(r,y):g(r)};if(h)e=r.iterator;else if(w)e=r;else{if(!(i=fh(r)))throw new sh(ih(r)+" is not iterable");if(oh(i)){for(o=0,u=uh(r);u>o;o++)if((a=C(r[o]))&&ah(wh,a))return a;return new hh(!1)}e=vh(r,i)}for(v=h?r.next:e.next;!(f=nh(v,e)).done;){try{a=C(f.value)}catch(r){ch(e,"throw",r)}if("object"==typeof a&&a&&ah(wh,a))return a}return new hh(!1)},gh=Dt("iterator"),yh=!1;try{var Ch=0,Bh={next:function(){return{done:!!Ch++}},return:function(){yh=!0}};Bh[gh]=function(){return this},Array.from(Bh,(function(){throw 2}))}catch(r){}var dh=function(r,t){try{if(!t&&!yh)return!1}catch(r){return!1}var n=!1;try{var e={};e[gh]=function(){return{next:function(){return{done:n=!0}}}},r(e)}catch(r){}return n},zh=Cc,Dh=Hc.CONSTRUCTOR||!dh((function(r){zh.all(r).then(void 0,(function(){}))})),Mh=m,Lh=Kr,xh=Nc,ph=yc,Ah=lh;Di({target:"Promise",stat:!0,forced:Dh},{all:function(r){var t=this,n=xh.f(t),e=n.resolve,i=n.reject,o=ph((function(){var n=Lh(t.resolve),o=[],u=0,a=1;Ah(r,(function(r){var v=u++,f=!1;a++,Mh(n,t,r).then((function(r){f||(f=!0,o[v]=r,--a||e(o))}),i)})),--a||e(o)}));return o.error&&i(o.value),n.promise}});var Uh=Di,Sh=Hc.CONSTRUCTOR,jh=Cc,bh=hr,mh=ar,Yh=Be,Hh=jh&&jh.prototype;if(Uh({target:"Promise",proto:!0,forced:Sh,real:!0},{catch:function(r){return this.then(void 0,r)}}),mh(jh)){var Nh=bh("Promise").prototype.catch;Hh.catch!==Nh&&Yh(Hh,"catch",Nh,{unsafe:!0})}var qh=m,Ph=Kr,Kh=Nc,Vh=yc,Oh=lh;Di({target:"Promise",stat:!0,forced:Dh},{race:function(r){var t=this,n=Kh.f(t),e=n.reject,i=Vh((function(){var i=Ph(t.resolve);Oh(r,(function(r){qh(i,t,r).then(n.resolve,e)}))}));return i.error&&e(i.value),n.promise}});var Ih=Nc;Di({target:"Promise",stat:!0,forced:Hc.CONSTRUCTOR},{reject:function(r){var t=Ih.f(this);return(0,t.reject)(r),t.promise}});var Th=$t,Wh=fr,Gh=Nc,kh=Di,Zh=Hc.CONSTRUCTOR,Jh=function(r,t){if(Th(r),Wh(t)&&t.constructor===r)return t;var n=Gh.f(r);return(0,n.resolve)(t),n.promise};hr("Promise"),kh({target:"Promise",stat:!0,forced:Zh},{resolve:function(r){return Jh(this,r)}});var Rh=fr,Xh=R,Eh=Dt("match"),Fh=function(r){var t;return Rh(r)&&(void 0!==(t=r[Eh])?!!t:"RegExp"===Xh(r))},Qh=TypeError,_h=function(r){if(Fh(r))throw new Qh("The method doesn't accept regular expressions");return r},$h=Vi,rw=String,tw=function(r){if("Symbol"===$h(r))throw new TypeError("Cannot convert a Symbol value to a string");return rw(r)},nw=Dt("match"),ew=function(r){var t=/./;try{"/./"[r](t)}catch(n){try{return t[nw]=!1,"/./"[r](t)}catch(r){}}return!1},iw=Di,ow=_h,uw=nr,aw=tw,vw=ew,fw=G("".indexOf);iw({target:"String",proto:!0,forced:!vw("includes")},{includes:function(r){return!!~fw(aw(uw(this)),aw(ow(r)),arguments.length>1?arguments[1]:void 0)}});var cw=G,sw=Le,hw=tw,ww=nr,lw=cw("".charAt),gw=cw("".charCodeAt),yw=cw("".slice),Cw=function(r){return function(t,n){var e,i,o=hw(ww(t)),u=sw(n),a=o.length;return u<0||u>=a?r?"":void 0:(e=gw(o,u))<55296||e>56319||u+1===a||(i=gw(o,u+1))<56320||i>57343?r?lw(o,u):e:r?yw(o,u,u+2):i-56320+(e-55296<<10)+65536}},Bw={codeAt:Cw(!1),charAt:Cw(!0)},dw=Bw.charAt,zw=tw,Dw=En,Mw=Ia,Lw=Ta,xw="String Iterator",pw=Dw.set,Aw=Dw.getterFor(xw);Mw(String,"String",(function(r){pw(this,{type:xw,string:zw(r),index:0})}),(function(){var r,t=Aw(this),n=t.string,e=t.index;return e>=n.length?Lw(void 0,!0):(r=dw(n,e),t.index+=r.length,Lw(r,!1))}));var Uw={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},Sw=Pt("span").classList,jw=Sw&&Sw.constructor&&Sw.constructor.prototype,bw=jw===Object.prototype?void 0:jw,mw=Vo.forEach,Yw=nv("forEach")?[].forEach:function(r){return mw(this,r,arguments.length>1?arguments[1]:void 0)},Hw=x,Nw=Uw,qw=bw,Pw=Yw,Kw=ln,Vw=function(r){if(r&&r.forEach!==Pw)try{Kw(r,"forEach",Pw)}catch(t){r.forEach=Pw}};for(var Ow in Nw)Nw[Ow]&&Vw(Hw[Ow]&&Hw[Ow].prototype);Vw(qw);var Iw=x,Tw=Uw,Ww=bw,Gw=$a,kw=ln,Zw=na,Jw=Dt("iterator"),Rw=Gw.values,Xw=function(r,t){if(r){if(r[Jw]!==Rw)try{kw(r,Jw,Rw)}catch(t){r[Jw]=Rw}if(Zw(r,t,!0),Tw[t])for(var n in Gw)if(r[n]!==Gw[n])try{kw(r,n,Gw[n])}catch(t){r[n]=Gw[n]}}};for(var Ew in Tw)Xw(Iw[Ew]&&Iw[Ew].prototype,Ew);Xw(Ww,"DOMTokenList");var Fw,Qw=tl,_w=(Fw=!0,function(r,t){var n=Fw?function(){if(t){var n=t[tl(224)](r,arguments);return t=null,n}}:function(){};return Fw=!1,n}),$w=_w(window,(function(){var r=tl;return $w[r(228)]()[r(222)](r(226))[r(228)]()[r(225)]($w)[r(222)](r(226))}));$w();var rl={};function tl(r,t){var n=il();return tl=function(t,e){var i=n[t-=222];if(void 0===tl.dKtlmf){var o=function(r){for(var t,n,e="",i="",u=e+o,a=0,v=0;n=r.charAt(v++);~n&&(t=a%4?64*t+n:n,a++%4)?e+=u.charCodeAt(v+10)-10!=0?String.fromCharCode(255&t>>(-2*a&6)):a:0)n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(n);for(var f=0,c=e.length;f<c;f++)i+="%"+("00"+e.charCodeAt(f).toString(16)).slice(-2);return decodeURIComponent(i)};tl.wuyKuy=o,r=arguments,tl.dKtlmf=!0}var u=t+n[0],a=r[u];if(a)i=a;else{var v=function(r){this.yUbAth=r,this.pEZfpD=[1,0,0],this.pVcsDj=function(){return"newState"},this.pZyUkM="\\w+ *\\(\\) *{\\w+ *",this.JfrMOv="['|\"].+['|\"];? *}"};v.prototype.lMSIan=function(){var r=new RegExp(this.pZyUkM+this.JfrMOv).test(this.pVcsDj.toString())?--this.pEZfpD[1]:--this.pEZfpD[0];return this.ANFWAd(r)},v.prototype.ANFWAd=function(r){return Boolean(~r)?this.zPPkBl(this.yUbAth):r},v.prototype.zPPkBl=function(r){for(var t=0,n=this.pEZfpD.length;t<n;t++)this.pEZfpD.push(Math.round(Math.random())),n=this.pEZfpD.length;return r(this.pEZfpD[0])},new v(tl).lMSIan(),i=tl.wuyKuy(i),r[u]=i}return i},tl(r,t)}rl[Qw(227)]=[],rl[Qw(223)]=function(){return!1};var nl={};nl[Qw(229)]=rl;var el=nl;function il(){var r=["C2vHCMnO","DxnLCKfJDgL2yxrPB24","yxbWBhK","y29UC3rYDwn0B3i","kcGOlISPkYKRksSK","zMLLBgrZ","Dg9tDhjPBMC","Aw5PDfjLC3vSDa"];return(il=function(){return r})()}var ol,ul,al=$t,vl=function(){var r=al(this),t="";return r.hasIndices&&(t+="d"),r.global&&(t+="g"),r.ignoreCase&&(t+="i"),r.multiline&&(t+="m"),r.dotAll&&(t+="s"),r.unicode&&(t+="u"),r.unicodeSets&&(t+="v"),r.sticky&&(t+="y"),t},fl=A,cl=x.RegExp,sl=fl((function(){var r=cl("a","y");return r.lastIndex=2,null!==r.exec("abcd")})),hl=sl||fl((function(){return!cl("a","y").sticky})),wl={BROKEN_CARET:sl||fl((function(){var r=cl("^r","gy");return r.lastIndex=2,null!==r.exec("str")})),MISSED_STICKY:hl,UNSUPPORTED_Y:sl},ll=A,gl=x.RegExp,yl=ll((function(){var r=gl(".","s");return!(r.dotAll&&r.test("\n")&&"s"===r.flags)})),Cl=A,Bl=x.RegExp,dl=Cl((function(){var r=Bl("(?<a>b)","g");return"b"!==r.exec("b").groups.a||"bc"!=="b".replace(r,"$<a>c")})),zl=m,Dl=G,Ml=tw,Ll=vl,xl=wl,pl=Mu,Al=En.get,Ul=yl,Sl=dl,jl=tt("native-string-replace",String.prototype.replace),bl=RegExp.prototype.exec,ml=bl,Yl=Dl("".charAt),Hl=Dl("".indexOf),Nl=Dl("".replace),ql=Dl("".slice),Pl=(ul=/b*/g,zl(bl,ol=/a/,"a"),zl(bl,ul,"a"),0!==ol.lastIndex||0!==ul.lastIndex),Kl=xl.BROKEN_CARET,Vl=void 0!==/()??/.exec("")[1];(Pl||Vl||Kl||Ul||Sl)&&(ml=function(r){var t,n,e,i,o,u,a,v=this,f=Al(v),c=Ml(r),s=f.raw;if(s)return s.lastIndex=v.lastIndex,t=zl(ml,s,c),v.lastIndex=s.lastIndex,t;var h=f.groups,w=Kl&&v.sticky,l=zl(Ll,v),g=v.source,y=0,C=c;if(w&&(l=Nl(l,"y",""),-1===Hl(l,"g")&&(l+="g"),C=ql(c,v.lastIndex),v.lastIndex>0&&(!v.multiline||v.multiline&&"\n"!==Yl(c,v.lastIndex-1))&&(g="(?: "+g+")",C=" "+C,y++),n=new RegExp("^(?:"+g+")",l)),Vl&&(n=new RegExp("^"+g+"$(?!\\s)",l)),Pl&&(e=v.lastIndex),i=zl(bl,w?n:v,C),w?i?(i.input=ql(i.input,y),i[0]=ql(i[0],y),i.index=v.lastIndex,v.lastIndex+=i[0].length):v.lastIndex=0:Pl&&i&&(v.lastIndex=v.global?i.index+i[0].length:e),Vl&&i&&i.length>1&&zl(jl,i[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&h)for(i.groups=u=pl(null),o=0;o<h.length;o++)u[(a=h[o])[0]]=i[a[1]];return i});var Ol=ml;Di({target:"RegExp",proto:!0,forced:/./.exec!==Ol},{exec:Ol});var Il,Tl=(Il=!0,function(r,t){var n=Il?function(){if(t){var n=t[Zl(221)](r,arguments);return t=null,n}}:function(){};return Il=!1,n}),Wl=Tl(window,(function(){var r=Zl;return Wl[r(185)]()[r(173)](r(197))[r(185)]()[r(158)](Wl)[r(173)](r(197))}));Wl();var Gl=function(){var r,t,n,e,i=Zl;return(i(231)in(null!==(r=window[i(216)])&&void 0!==r?r:{})?1:0)+(i(156)in(null!==(t=window[i(216)])&&void 0!==t?t:{})?1:0)+(0===(null===(n=window[i(216)])||void 0===n||null===(n=n[i(168)])||void 0===n||null===(e=n[i(229)])||void 0===e?void 0:e[i(194)](n,i(148)))?1:0)+(i(154)in window?1:0)+(i(146)in window?1:0)+(i(203)in window?1:0)+(i(206)in window?1:0)>=5},kl=function(){var r,t,n=Zl;return(n(165)in navigator?1:0)+(n(184)in(null!==(r=null===(t=document[n(150)])||void 0===t?void 0:t[n(174)])&&void 0!==r?r:{})?1:0)+(n(234)in window?1:0)+(n(170)in window?1:0)+(n(228)in window?1:0)+(n(159)in window?1:0)>=4};function Zl(r,t){var n=Xl();return Zl=function(t,e){var i=n[t-=144];if(void 0===Zl.DAweTd){var o=function(r){for(var t,n,e="",i="",u=e+o,a=0,v=0;n=r.charAt(v++);~n&&(t=a%4?64*t+n:n,a++%4)?e+=u.charCodeAt(v+10)-10!=0?String.fromCharCode(255&t>>(-2*a&6)):a:0)n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(n);for(var f=0,c=e.length;f<c;f++)i+="%"+("00"+e.charCodeAt(f).toString(16)).slice(-2);return decodeURIComponent(i)};Zl.BGpHuw=o,r=arguments,Zl.DAweTd=!0}var u=t+n[0],a=r[u];if(a)i=a;else{var v=function(r){this.XHZmAZ=r,this.SmuqVR=[1,0,0],this.PFCvDy=function(){return"newState"},this.JflRzA="\\w+ *\\(\\) *{\\w+ *",this.xzxjJO="['|\"].+['|\"];? *}"};v.prototype.NJOSsT=function(){var r=new RegExp(this.JflRzA+this.xzxjJO).test(this.PFCvDy.toString())?--this.SmuqVR[1]:--this.SmuqVR[0];return this.kWFqzj(r)},v.prototype.kWFqzj=function(r){return Boolean(~r)?this.WfKUIr(this.XHZmAZ):r},v.prototype.WfKUIr=function(r){for(var t=0,n=this.SmuqVR.length;t<n;t++)this.SmuqVR.push(Math.round(Math.random())),n=this.SmuqVR.length;return r(this.SmuqVR[0])},new v(Zl).NJOSsT(),i=Zl.BGpHuw(i),r[u]=i}return i},Zl(r,t)}var Jl=function(){var r,t,n=Zl;return(n(192)in window?1:0)+(n(202)in window?1:0)+(n(189)in window?1:0)+(0===(null===(r=navigator[n(168)])||void 0===r||null===(t=r[n(229)])||